@payloadcms/next 4.0.0-internal.d28e9fb → 4.0.0-internal.d3909a9
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/UnmountWhenHidden/index.d.ts +18 -0
- package/dist/adapters/UnmountWhenHidden/index.d.ts.map +1 -0
- package/dist/adapters/UnmountWhenHidden/index.js +64 -0
- package/dist/adapters/UnmountWhenHidden/index.js.map +1 -0
- package/dist/adapters/handleServerFunctions.d.ts +2 -0
- package/dist/adapters/handleServerFunctions.d.ts.map +1 -0
- package/dist/adapters/handleServerFunctions.js +13 -0
- package/dist/adapters/handleServerFunctions.js.map +1 -0
- package/dist/adapters/layout.d.ts +7 -0
- package/dist/adapters/layout.d.ts.map +1 -0
- package/dist/adapters/layout.js +38 -0
- package/dist/adapters/layout.js.map +1 -0
- 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 +5 -0
- package/dist/adapters/router.d.ts.map +1 -0
- package/dist/adapters/router.js +54 -0
- package/dist/adapters/router.js.map +1 -0
- package/dist/adapters/server.d.ts +7 -0
- package/dist/adapters/server.d.ts.map +1 -0
- package/dist/adapters/server.js +39 -0
- package/dist/adapters/server.js.map +1 -0
- 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 +17 -0
- package/dist/adapters/views.d.ts.map +1 -0
- package/dist/adapters/views.js +33 -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 +95 -51
- 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 +3 -2
- package/dist/exports/layouts.d.ts.map +1 -1
- package/dist/exports/layouts.js +3 -2
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/utilities.d.ts +0 -70
- package/dist/exports/utilities.d.ts.map +1 -1
- package/dist/exports/utilities.js +0 -51
- 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 +11 -6
- package/dist/routes/graphql/handler.js.map +1 -1
- package/dist/routes/graphql/playground.d.ts.map +1 -1
- package/dist/routes/graphql/playground.js +2 -2
- package/dist/routes/graphql/playground.js.map +1 -1
- package/dist/routes/rest/index.d.ts +8 -26
- package/dist/routes/rest/index.d.ts.map +1 -1
- package/dist/routes/rest/og/index.d.ts.map +1 -1
- package/dist/routes/rest/og/index.js.map +1 -1
- package/dist/utilities/getNextRequestI18n.d.ts.map +1 -1
- package/dist/utilities/initAdminContext.d.ts +8 -0
- package/dist/utilities/initAdminContext.d.ts.map +1 -0
- package/dist/utilities/initAdminContext.js +35 -0
- package/dist/utilities/initAdminContext.js.map +1 -0
- package/dist/utilities/selectiveCache.d.ts +7 -1
- package/dist/utilities/selectiveCache.d.ts.map +1 -1
- package/dist/utilities/selectiveCache.js +7 -9
- package/dist/utilities/selectiveCache.js.map +1 -1
- package/dist/withPayload/instantLoader.d.ts +16 -0
- package/dist/withPayload/instantLoader.d.ts.map +1 -0
- package/dist/withPayload/instantLoader.js +27 -0
- package/dist/withPayload/instantLoader.js.map +1 -0
- package/dist/withPayload/withPayload.d.ts +13 -128
- package/dist/withPayload/withPayload.d.ts.map +1 -1
- package/dist/withPayload/withPayload.js +65 -45
- package/dist/withPayload/withPayload.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 +39 -54
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.d.ts +0 -5
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js +0 -19
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.d.ts +0 -12
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js +0 -81
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.d.ts +0 -16
- package/dist/elements/DocumentHeader/Tabs/Tab/index.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js +0 -66
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/index.d.ts +0 -10
- package/dist/elements/DocumentHeader/Tabs/index.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/index.js +0 -78
- package/dist/elements/DocumentHeader/Tabs/index.js.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.d.ts +0 -4
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js +0 -29
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/index.d.ts +0 -11
- package/dist/elements/DocumentHeader/Tabs/tabs/index.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/index.js +0 -68
- package/dist/elements/DocumentHeader/Tabs/tabs/index.js.map +0 -1
- package/dist/elements/DocumentHeader/index.d.ts +0 -15
- package/dist/elements/DocumentHeader/index.d.ts.map +0 -1
- package/dist/elements/DocumentHeader/index.js +0 -36
- package/dist/elements/DocumentHeader/index.js.map +0 -1
- package/dist/elements/FormHeader/index.d.ts +0 -9
- package/dist/elements/FormHeader/index.d.ts.map +0 -1
- package/dist/elements/FormHeader/index.js +0 -20
- package/dist/elements/FormHeader/index.js.map +0 -1
- package/dist/elements/HierarchyTypeField/index.d.ts +0 -9
- package/dist/elements/HierarchyTypeField/index.d.ts.map +0 -1
- package/dist/elements/HierarchyTypeField/index.js +0 -114
- package/dist/elements/HierarchyTypeField/index.js.map +0 -1
- package/dist/elements/HierarchyTypeField/index.server.d.ts +0 -9
- package/dist/elements/HierarchyTypeField/index.server.d.ts.map +0 -1
- package/dist/elements/HierarchyTypeField/index.server.js +0 -32
- package/dist/elements/HierarchyTypeField/index.server.js.map +0 -1
- package/dist/elements/Logo/index.d.ts +0 -4
- package/dist/elements/Logo/index.d.ts.map +0 -1
- package/dist/elements/Logo/index.js +0 -39
- package/dist/elements/Logo/index.js.map +0 -1
- package/dist/elements/Nav/NavHamburger/index.d.ts +0 -8
- package/dist/elements/Nav/NavHamburger/index.d.ts.map +0 -1
- package/dist/elements/Nav/NavHamburger/index.js +0 -51
- package/dist/elements/Nav/NavHamburger/index.js.map +0 -1
- package/dist/elements/Nav/NavWrapper/index.d.ts +0 -10
- package/dist/elements/Nav/NavWrapper/index.d.ts.map +0 -1
- package/dist/elements/Nav/NavWrapper/index.js +0 -61
- package/dist/elements/Nav/NavWrapper/index.js.map +0 -1
- package/dist/elements/Nav/SettingsMenuButton/index.d.ts +0 -7
- package/dist/elements/Nav/SettingsMenuButton/index.d.ts.map +0 -1
- package/dist/elements/Nav/SettingsMenuButton/index.js +0 -45
- package/dist/elements/Nav/SettingsMenuButton/index.js.map +0 -1
- package/dist/elements/Nav/SidebarTabs/TabError/index.css +0 -29
- package/dist/elements/Nav/SidebarTabs/TabError/index.d.ts +0 -8
- package/dist/elements/Nav/SidebarTabs/TabError/index.d.ts.map +0 -1
- package/dist/elements/Nav/SidebarTabs/TabError/index.js +0 -42
- package/dist/elements/Nav/SidebarTabs/TabError/index.js.map +0 -1
- package/dist/elements/Nav/SidebarTabs/constants.d.ts +0 -2
- package/dist/elements/Nav/SidebarTabs/constants.d.ts.map +0 -1
- package/dist/elements/Nav/SidebarTabs/constants.js +0 -2
- package/dist/elements/Nav/SidebarTabs/constants.js.map +0 -1
- package/dist/elements/Nav/SidebarTabs/index.client.d.ts +0 -22
- package/dist/elements/Nav/SidebarTabs/index.client.d.ts.map +0 -1
- package/dist/elements/Nav/SidebarTabs/index.client.js +0 -195
- package/dist/elements/Nav/SidebarTabs/index.client.js.map +0 -1
- package/dist/elements/Nav/SidebarTabs/index.css +0 -80
- package/dist/elements/Nav/SidebarTabs/index.d.ts +0 -17
- package/dist/elements/Nav/SidebarTabs/index.d.ts.map +0 -1
- package/dist/elements/Nav/SidebarTabs/index.js +0 -85
- package/dist/elements/Nav/SidebarTabs/index.js.map +0 -1
- package/dist/elements/Nav/SidebarTabs/renderTabServerFn.d.ts +0 -10
- package/dist/elements/Nav/SidebarTabs/renderTabServerFn.d.ts.map +0 -1
- package/dist/elements/Nav/SidebarTabs/renderTabServerFn.js +0 -54
- package/dist/elements/Nav/SidebarTabs/renderTabServerFn.js.map +0 -1
- package/dist/elements/Nav/getNavPrefs.d.ts +0 -3
- package/dist/elements/Nav/getNavPrefs.d.ts.map +0 -1
- package/dist/elements/Nav/getNavPrefs.js +0 -61
- package/dist/elements/Nav/getNavPrefs.js.map +0 -1
- package/dist/elements/Nav/index.client.d.ts +0 -11
- package/dist/elements/Nav/index.client.d.ts.map +0 -1
- package/dist/elements/Nav/index.client.js +0 -119
- package/dist/elements/Nav/index.client.js.map +0 -1
- package/dist/elements/Nav/index.css +0 -155
- package/dist/elements/Nav/index.d.ts +0 -8
- package/dist/elements/Nav/index.d.ts.map +0 -1
- package/dist/elements/Nav/index.js +0 -213
- package/dist/elements/Nav/index.js.map +0 -1
- package/dist/exports/client.d.ts +0 -6
- package/dist/exports/client.d.ts.map +0 -1
- package/dist/exports/client.js +0 -8
- package/dist/exports/client.js.map +0 -1
- package/dist/exports/rsc.d.ts +0 -6
- package/dist/exports/rsc.d.ts.map +0 -1
- package/dist/exports/rsc.js +0 -6
- package/dist/exports/rsc.js.map +0 -1
- package/dist/exports/templates.d.ts +0 -3
- package/dist/exports/templates.d.ts.map +0 -1
- package/dist/exports/templates.js +0 -3
- package/dist/exports/templates.js.map +0 -1
- package/dist/layouts/Root/NestProviders.d.ts +0 -12
- package/dist/layouts/Root/NestProviders.d.ts.map +0 -1
- package/dist/layouts/Root/NestProviders.js +0 -24
- package/dist/layouts/Root/NestProviders.js.map +0 -1
- package/dist/layouts/Root/checkDependencies.d.ts +0 -2
- package/dist/layouts/Root/checkDependencies.d.ts.map +0 -1
- package/dist/layouts/Root/checkDependencies.js +0 -49
- package/dist/layouts/Root/checkDependencies.js.map +0 -1
- package/dist/layouts/Root/index.d.ts +0 -17
- package/dist/layouts/Root/index.d.ts.map +0 -1
- package/dist/layouts/Root/index.js +0 -153
- package/dist/layouts/Root/index.js.map +0 -1
- package/dist/templates/Default/NavHamburger/index.d.ts +0 -3
- package/dist/templates/Default/NavHamburger/index.d.ts.map +0 -1
- package/dist/templates/Default/NavHamburger/index.js +0 -25
- package/dist/templates/Default/NavHamburger/index.js.map +0 -1
- package/dist/templates/Default/Wrapper/index.d.ts +0 -8
- package/dist/templates/Default/Wrapper/index.d.ts.map +0 -1
- package/dist/templates/Default/Wrapper/index.js +0 -49
- package/dist/templates/Default/Wrapper/index.js.map +0 -1
- package/dist/templates/Default/index.d.ts +0 -17
- package/dist/templates/Default/index.d.ts.map +0 -1
- package/dist/templates/Default/index.js +0 -129
- package/dist/templates/Default/index.js.map +0 -1
- package/dist/templates/Minimal/index.d.ts +0 -10
- package/dist/templates/Minimal/index.d.ts.map +0 -1
- package/dist/templates/Minimal/index.js +0 -21
- package/dist/templates/Minimal/index.js.map +0 -1
- 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/getPreferences.d.ts +0 -6
- package/dist/utilities/getPreferences.d.ts.map +0 -1
- package/dist/utilities/getPreferences.js +0 -26
- package/dist/utilities/getPreferences.js.map +0 -1
- package/dist/utilities/getRequestLocale.d.ts +0 -7
- package/dist/utilities/getRequestLocale.d.ts.map +0 -1
- package/dist/utilities/getRequestLocale.js +0 -20
- package/dist/utilities/getRequestLocale.js.map +0 -1
- package/dist/utilities/getRequestTheme.d.ts +0 -11
- package/dist/utilities/getRequestTheme.d.ts.map +0 -1
- package/dist/utilities/getRequestTheme.js +0 -22
- package/dist/utilities/getRequestTheme.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 -59
- package/dist/utilities/handleServerFunctions.js.map +0 -1
- package/dist/utilities/initReq.d.ts +0 -14
- package/dist/utilities/initReq.d.ts.map +0 -1
- package/dist/utilities/initReq.js +0 -110
- package/dist/utilities/initReq.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/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/RenderJSON/index.d.ts +0 -12
- package/dist/views/API/RenderJSON/index.d.ts.map +0 -1
- package/dist/views/API/RenderJSON/index.js +0 -135
- package/dist/views/API/RenderJSON/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 -216
- package/dist/views/API/index.client.js.map +0 -1
- 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.d.ts +0 -13
- package/dist/views/Account/Settings/index.d.ts.map +0 -1
- package/dist/views/Account/Settings/index.js +0 -33
- package/dist/views/Account/Settings/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 -182
- 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 -112
- package/dist/views/CreateFirstUser/index.client.js.map +0 -1
- 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 -88
- 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 -182
- 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 -128
- 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 -441
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +0 -1
- 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 -27
- package/dist/views/Dashboard/Default/index.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/index.js +0 -52
- 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 -50
- 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 -133
- 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 -394
- 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 -177
- 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.d.ts +0 -3
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +0 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +0 -182
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +0 -1
- package/dist/views/ForgotPassword/index.d.ts +0 -5
- package/dist/views/ForgotPassword/index.d.ts.map +0 -1
- package/dist/views/ForgotPassword/index.js +0 -72
- 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 -160
- 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 -258
- 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 -130
- package/dist/views/List/handleServerFunction.js.map +0 -1
- package/dist/views/List/index.d.ts +0 -42
- package/dist/views/List/index.d.ts.map +0 -1
- package/dist/views/List/index.js +0 -434
- 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 -80
- 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.d.ts +0 -11
- package/dist/views/Login/LoginForm/index.d.ts.map +0 -1
- package/dist/views/Login/LoginForm/index.js +0 -177
- package/dist/views/Login/LoginForm/index.js.map +0 -1
- 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 -95
- 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 -6
- package/dist/views/NotFound/index.client.d.ts.map +0 -1
- package/dist/views/NotFound/index.client.js +0 -88
- package/dist/views/NotFound/index.client.js.map +0 -1
- 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 -87
- 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.d.ts +0 -7
- package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts.map +0 -1
- package/dist/views/ResetPassword/ResetPasswordForm/index.js +0 -117
- package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +0 -1
- 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 -83
- 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 -297
- 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.d.ts +0 -6
- package/dist/views/Unauthorized/index.d.ts.map +0 -1
- package/dist/views/Unauthorized/index.js +0 -54
- 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 -71
- 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.d.ts +0 -5
- package/dist/views/Version/Default/index.d.ts.map +0 -1
- package/dist/views/Version/Default/index.js +0 -253
- 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.d.ts +0 -26
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +0 -130
- 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/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.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 -78
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +0 -1
- 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.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 -129
- 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.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 -216
- 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.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 -88
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +0 -1
- 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.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 -101
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +0 -1
- 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 -222
- 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 -35
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +0 -1
- 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.d.ts +0 -16
- package/dist/views/Version/Restore/index.d.ts.map +0 -1
- package/dist/views/Version/Restore/index.js +0 -105
- 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 -240
- 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 -115
- 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/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.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 -89
- package/dist/views/Versions/index.client.js.map +0 -1
- 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/withPayload/withPayload.spec.js +0 -40
- package/dist/withPayload/withPayload.spec.js.map +0 -1
- /package/dist/{views/Root → adapters}/metadata.d.ts +0 -0
package/dist/auth/logout.js
CHANGED
|
@@ -1,52 +1,11 @@
|
|
|
1
1
|
'use server';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) {
|
|
10
|
-
const payload = await getPayload({
|
|
11
|
-
config,
|
|
12
|
-
cron: true
|
|
3
|
+
import { logout as logoutFn } from 'payload/auth';
|
|
4
|
+
import { nextServerAdapter } from '../adapters/server.js';
|
|
5
|
+
export async function logout(args) {
|
|
6
|
+
return logoutFn({
|
|
7
|
+
...args,
|
|
8
|
+
serverAdapter: nextServerAdapter
|
|
13
9
|
});
|
|
14
|
-
const headers = await nextHeaders();
|
|
15
|
-
const authResult = await payload.auth({
|
|
16
|
-
headers
|
|
17
|
-
});
|
|
18
|
-
if (!authResult.user) {
|
|
19
|
-
return {
|
|
20
|
-
message: 'User already logged out',
|
|
21
|
-
success: true
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
const {
|
|
25
|
-
user
|
|
26
|
-
} = authResult;
|
|
27
|
-
const req = await createLocalReq({
|
|
28
|
-
user
|
|
29
|
-
}, payload);
|
|
30
|
-
const collection = payload.collections[user.collection];
|
|
31
|
-
const logoutResult = await logoutOperation({
|
|
32
|
-
allSessions,
|
|
33
|
-
collection,
|
|
34
|
-
req
|
|
35
|
-
});
|
|
36
|
-
if (!logoutResult) {
|
|
37
|
-
return {
|
|
38
|
-
message: 'Logout failed',
|
|
39
|
-
success: false
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
const existingCookie = await getExistingAuthToken(payload.config.cookiePrefix);
|
|
43
|
-
if (existingCookie) {
|
|
44
|
-
const cookies = await getCookies();
|
|
45
|
-
cookies.delete(existingCookie.name);
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
message: 'User logged out successfully',
|
|
49
|
-
success: true
|
|
50
|
-
};
|
|
51
10
|
}
|
|
52
11
|
//# sourceMappingURL=logout.js.map
|
package/dist/auth/logout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.js","names":["
|
|
1
|
+
{"version":3,"file":"logout.js","names":["logout","logoutFn","nextServerAdapter","args","serverAdapter"],"sources":["../../src/auth/logout.ts"],"sourcesContent":["'use server'\n\nimport type { LogoutArgs } from 'payload/auth'\n\nimport { logout as logoutFn } from 'payload/auth'\n\nimport { nextServerAdapter } from '../adapters/server.js'\n\nexport async function logout(\n args: Omit<LogoutArgs, 'serverAdapter'>,\n): Promise<{ message: string; success: boolean }> {\n return logoutFn({ ...args, serverAdapter: nextServerAdapter })\n}\n"],"mappings":"AAAA;;AAIA,SAASA,MAAA,IAAUC,QAAQ,QAAQ;AAEnC,SAASC,iBAAiB,QAAQ;AAElC,OAAO,eAAeF,OACpBG,IAAuC;EAEvC,OAAOF,QAAA,CAAS;IAAE,GAAGE,IAAI;IAAEC,aAAA,EAAeF;EAAkB;AAC9D","ignoreList":[]}
|
package/dist/auth/refresh.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function refresh(
|
|
3
|
-
config: MaybePromise<SanitizedConfig>;
|
|
4
|
-
}): Promise<{
|
|
1
|
+
import type { RefreshArgs } from 'payload/auth';
|
|
2
|
+
export declare function refresh(args: Omit<RefreshArgs, 'serverAdapter'>): Promise<{
|
|
5
3
|
message: string;
|
|
6
4
|
success: boolean;
|
|
7
5
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../src/auth/refresh.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../src/auth/refresh.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAM/C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,GACvC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAEhD"}
|
package/dist/auth/refresh.js
CHANGED
|
@@ -1,56 +1,11 @@
|
|
|
1
1
|
'use server';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) {
|
|
10
|
-
const payload = await getPayload({
|
|
11
|
-
config,
|
|
12
|
-
cron: true
|
|
3
|
+
import { refresh as refreshFn } from 'payload/auth';
|
|
4
|
+
import { nextServerAdapter } from '../adapters/server.js';
|
|
5
|
+
export async function refresh(args) {
|
|
6
|
+
return refreshFn({
|
|
7
|
+
...args,
|
|
8
|
+
serverAdapter: nextServerAdapter
|
|
13
9
|
});
|
|
14
|
-
const headers = await nextHeaders();
|
|
15
|
-
const result = await payload.auth({
|
|
16
|
-
headers
|
|
17
|
-
});
|
|
18
|
-
if (!result.user) {
|
|
19
|
-
throw new Error('Cannot refresh token: user not authenticated');
|
|
20
|
-
}
|
|
21
|
-
const existingCookie = await getExistingAuthToken(payload.config.cookiePrefix);
|
|
22
|
-
if (!existingCookie) {
|
|
23
|
-
return {
|
|
24
|
-
message: 'No valid token found to refresh',
|
|
25
|
-
success: false
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
const collection = result.user.collection;
|
|
29
|
-
const collectionConfig = payload.collections[collection];
|
|
30
|
-
if (!collectionConfig?.config.auth) {
|
|
31
|
-
throw new Error(`No auth config found for collection: ${collection}`);
|
|
32
|
-
}
|
|
33
|
-
const req = await createLocalReq({
|
|
34
|
-
user: result.user
|
|
35
|
-
}, payload);
|
|
36
|
-
const refreshResult = await refreshOperation({
|
|
37
|
-
collection: collectionConfig,
|
|
38
|
-
req
|
|
39
|
-
});
|
|
40
|
-
if (!refreshResult) {
|
|
41
|
-
return {
|
|
42
|
-
message: 'Token refresh failed',
|
|
43
|
-
success: false
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
await setPayloadAuthCookie({
|
|
47
|
-
authConfig: collectionConfig.config.auth,
|
|
48
|
-
cookiePrefix: payload.config.cookiePrefix,
|
|
49
|
-
token: refreshResult.refreshedToken
|
|
50
|
-
});
|
|
51
|
-
return {
|
|
52
|
-
message: 'Token refreshed successfully',
|
|
53
|
-
success: true
|
|
54
|
-
};
|
|
55
10
|
}
|
|
56
11
|
//# sourceMappingURL=refresh.js.map
|
package/dist/auth/refresh.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh.js","names":["
|
|
1
|
+
{"version":3,"file":"refresh.js","names":["refresh","refreshFn","nextServerAdapter","args","serverAdapter"],"sources":["../../src/auth/refresh.ts"],"sourcesContent":["'use server'\n\nimport type { RefreshArgs } from 'payload/auth'\n\nimport { refresh as refreshFn } from 'payload/auth'\n\nimport { nextServerAdapter } from '../adapters/server.js'\n\nexport async function refresh(\n args: Omit<RefreshArgs, 'serverAdapter'>,\n): Promise<{ message: string; success: boolean }> {\n return refreshFn({ ...args, serverAdapter: nextServerAdapter })\n}\n"],"mappings":"AAAA;;AAIA,SAASA,OAAA,IAAWC,SAAS,QAAQ;AAErC,SAASC,iBAAiB,QAAQ;AAElC,OAAO,eAAeF,QACpBG,IAAwC;EAExC,OAAOF,SAAA,CAAU;IAAE,GAAGE,IAAI;IAAEC,aAAA,EAAeF;EAAkB;AAC/D","ignoreList":[]}
|
package/dist/cjs/withPayload.cjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// dist/withPayload/withPayload.js
|
|
@@ -23,12 +33,18 @@ __export(withPayload_exports, {
|
|
|
23
33
|
withPayload: () => withPayload
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(withPayload_exports);
|
|
36
|
+
var import_node_url = require("node:url");
|
|
37
|
+
var import_meta = {};
|
|
26
38
|
var poweredByHeader = {
|
|
27
39
|
key: "X-Powered-By",
|
|
28
40
|
value: "Next.js, Payload"
|
|
29
41
|
};
|
|
30
42
|
var withPayload = (nextConfig = {}, options = {}) => {
|
|
31
|
-
const env =
|
|
43
|
+
const env = {
|
|
44
|
+
...nextConfig.env
|
|
45
|
+
};
|
|
46
|
+
const instantLoader = nextConfig.cacheComponents ? typeof import_meta?.resolve === "function" ? (0, import_node_url.fileURLToPath)(new URL("./instantLoader.js", import_meta.url)) : require.resolve("@payloadcms/next/withPayload/instantLoader") : void 0;
|
|
47
|
+
const instantLoaderRule = "**/{layout,page}.{js,jsx,ts,tsx,mjs,mts,cjs,cts}";
|
|
32
48
|
if (nextConfig.experimental?.staleTimes?.dynamic) {
|
|
33
49
|
console.warn("Payload: detected a non-zero value for the `staleTimes.dynamic` option in your Next.js config. This will slow down page transitions and may cause stale data to load within the Admin panel. To clear this warning, remove the `staleTimes.dynamic` option from your Next.js config or set it to 0. In the future, Next.js may support scoping this option to specific routes.");
|
|
34
50
|
env.NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH = "true";
|
|
@@ -51,30 +67,24 @@ var withPayload = (nextConfig = {}, options = {}) => {
|
|
|
51
67
|
};
|
|
52
68
|
const baseConfig = {
|
|
53
69
|
...nextConfig,
|
|
70
|
+
devIndicators: nextConfig.devIndicators !== void 0 ? nextConfig.devIndicators : false,
|
|
54
71
|
env,
|
|
55
72
|
experimental: {
|
|
56
|
-
...nextConfig.experimental || {}
|
|
57
|
-
// Server fast refresh breaks HMR
|
|
58
|
-
turbopackServerFastRefresh: false
|
|
73
|
+
...nextConfig.experimental || {}
|
|
59
74
|
},
|
|
60
75
|
sassOptions: {
|
|
61
76
|
...nextConfig.sassOptions || {},
|
|
62
77
|
/**
|
|
63
78
|
* This prevents scss warning spam during pnpm dev that looks like this:
|
|
64
|
-
* ⚠ ./
|
|
79
|
+
* ⚠ ./path/to/some/index.scss
|
|
65
80
|
* Issue while running loader
|
|
66
|
-
* SassWarning: Deprecation Warning
|
|
67
|
-
*
|
|
81
|
+
* SassWarning: Deprecation Warning: Sass @import rules are deprecated and
|
|
82
|
+
* will be removed in Dart Sass 3.0.0.
|
|
68
83
|
*
|
|
69
84
|
* More info and automated migrator: https://sass-lang.com/d/import
|
|
70
85
|
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* packages/ui/src/scss/styles.scss 9:9 @import
|
|
75
|
-
* test/admin/components/views/CustomMinimal/index.scss 1:9 root stylesheet
|
|
76
|
-
*
|
|
77
|
-
* @todo: update all outdated scss imports to use @use instead of @import. Then, we can remove this.
|
|
86
|
+
* This can be triggered by any `.scss` file in a consumer's project that
|
|
87
|
+
* still uses `@import`.
|
|
78
88
|
*/
|
|
79
89
|
silenceDeprecations: [...nextConfig.sassOptions?.silenceDeprecations || [], "import"]
|
|
80
90
|
},
|
|
@@ -82,12 +92,25 @@ var withPayload = (nextConfig = {}, options = {}) => {
|
|
|
82
92
|
...nextConfig.outputFileTracingExcludes || {},
|
|
83
93
|
"**/*": [...nextConfig.outputFileTracingExcludes?.["**/*"] || [], "drizzle-kit", "drizzle-kit/api"]
|
|
84
94
|
},
|
|
85
|
-
outputFileTracingIncludes: {
|
|
86
|
-
...nextConfig.outputFileTracingIncludes || {},
|
|
87
|
-
"**/*": [...nextConfig.outputFileTracingIncludes?.["**/*"] || [], "@libsql/client"]
|
|
88
|
-
},
|
|
89
95
|
turbopack: {
|
|
90
|
-
...nextConfig.turbopack || {}
|
|
96
|
+
...nextConfig.turbopack || {},
|
|
97
|
+
...instantLoader ? {
|
|
98
|
+
rules: {
|
|
99
|
+
...nextConfig.turbopack?.rules,
|
|
100
|
+
[instantLoaderRule]: [...[].concat(nextConfig.turbopack?.rules?.[instantLoaderRule] ?? []), {
|
|
101
|
+
// Only send files that import the admin root components to the loader, so
|
|
102
|
+
// Turbopack does not run a JavaScript loader for every other layout and page.
|
|
103
|
+
condition: {
|
|
104
|
+
all: [{
|
|
105
|
+
not: "foreign"
|
|
106
|
+
}, {
|
|
107
|
+
content: /['"]@payloadcms\/next\/(?:layouts|views)['"]/
|
|
108
|
+
}]
|
|
109
|
+
},
|
|
110
|
+
loaders: [instantLoader]
|
|
111
|
+
}]
|
|
112
|
+
}
|
|
113
|
+
} : {}
|
|
91
114
|
},
|
|
92
115
|
// We disable the poweredByHeader here because we add it manually in the headers function below
|
|
93
116
|
...nextConfig.poweredByHeader !== false ? {
|
|
@@ -114,24 +137,26 @@ var withPayload = (nextConfig = {}, options = {}) => {
|
|
|
114
137
|
// WHY: without externalizing graphql, a graphql version error will be thrown
|
|
115
138
|
// during runtime ("Ensure that there is only one instance of \"graphql\" in the node_modules\ndirectory.")
|
|
116
139
|
"graphql",
|
|
140
|
+
"drizzle-kit",
|
|
141
|
+
"drizzle-kit/api",
|
|
142
|
+
"sharp",
|
|
143
|
+
"libsql",
|
|
144
|
+
"require-in-the-middle",
|
|
145
|
+
"json-schema-to-typescript",
|
|
146
|
+
// Prevents turbopack build errors by the thread-stream package which is installed by pino
|
|
147
|
+
"pino",
|
|
148
|
+
// file-type v22 uses `import(specifier)` with a non-literal specifier, which Turbopack rejects
|
|
149
|
+
// with "Cannot find module as expression is too dynamic"
|
|
150
|
+
"file-type",
|
|
117
151
|
...process.env.NODE_ENV === "development" && options.devBundleServerPackages !== true ? (
|
|
118
152
|
/**
|
|
119
153
|
* Unless explicitly disabled by the user, by passing `devBundleServerPackages: true` to withPayload, we
|
|
120
|
-
* do not bundle server-only packages during dev
|
|
121
|
-
*
|
|
122
|
-
* 1. Performance: Fewer files to compile means faster compilation speeds.
|
|
123
|
-
* 2. Turbopack support: Webpack's externals are not supported by Turbopack.
|
|
124
|
-
*
|
|
125
|
-
* Regarding Turbopack support: Unlike webpack.externals, we cannot use serverExternalPackages to
|
|
126
|
-
* externalized packages that are not resolvable from the project root. So including a package like
|
|
127
|
-
* "drizzle-kit" in here would do nothing - Next.js will ignore the rule and still bundle the package -
|
|
128
|
-
* because it detects that the package is not resolvable from the project root (= not directly installed
|
|
129
|
-
* by the user in their own package.json).
|
|
130
|
-
*
|
|
131
|
-
* Instead, we can use serverExternalPackages for the entry-point packages that *are* installed directly
|
|
132
|
-
* by the user (e.g. db-postgres, which then installs drizzle-kit as a dependency).
|
|
133
|
-
*
|
|
154
|
+
* do not bundle server-only packages during dev. Node.js loads them directly instead, so there are fewer
|
|
155
|
+
* files to compile, which means faster compilation speeds.
|
|
134
156
|
*
|
|
157
|
+
* A package can only be listed here if the import map never loads a client component from it. Node.js
|
|
158
|
+
* loads external packages as they are, so a `'use client'` file inside one would not become a client
|
|
159
|
+
* component. That is why packages with client components are not listed (see the TODO below).
|
|
135
160
|
*
|
|
136
161
|
* We should only do this during development, not build, because externalizing these packages can hurt
|
|
137
162
|
* the bundle size. Not only does it disable tree-shaking, it also risks installing duplicate copies of the
|
|
@@ -142,20 +167,49 @@ var withPayload = (nextConfig = {}, options = {}) => {
|
|
|
142
167
|
* - payload (not in bundle, external) -> installs qs-esm (external because of importer)
|
|
143
168
|
* Result: we have two copies of qs-esm installed - one in the bundle, and one in node_modules.
|
|
144
169
|
*
|
|
145
|
-
* During development, these bundle size
|
|
146
|
-
*
|
|
170
|
+
* During development, these bundle size differences do not matter much, and development speed is more
|
|
171
|
+
* important.
|
|
147
172
|
*/
|
|
148
|
-
[
|
|
173
|
+
[
|
|
174
|
+
"payload",
|
|
175
|
+
"@payloadcms/db-mongodb",
|
|
176
|
+
"@payloadcms/db-postgres",
|
|
177
|
+
"@payloadcms/db-sqlite",
|
|
178
|
+
"@payloadcms/db-vercel-postgres",
|
|
179
|
+
"@payloadcms/db-d1-sqlite",
|
|
180
|
+
"@payloadcms/drizzle",
|
|
181
|
+
"@payloadcms/email-nodemailer",
|
|
182
|
+
"@payloadcms/email-resend",
|
|
183
|
+
"@payloadcms/graphql",
|
|
184
|
+
"@payloadcms/kv-redis",
|
|
185
|
+
"@payloadcms/payload-cloud",
|
|
186
|
+
// Its `/client` entry has no exports, so the import map never loads anything from it
|
|
187
|
+
"@payloadcms/plugin-mcp",
|
|
188
|
+
"@payloadcms/plugin-nested-docs",
|
|
189
|
+
"@payloadcms/plugin-redirects",
|
|
190
|
+
"@payloadcms/transformer-sharp",
|
|
191
|
+
"@payloadcms/translations"
|
|
192
|
+
]
|
|
149
193
|
) : []
|
|
150
194
|
],
|
|
151
195
|
webpack: (webpackConfig, webpackOptions) => {
|
|
152
196
|
const incomingWebpackConfig = typeof nextConfig.webpack === "function" ? nextConfig.webpack(webpackConfig, webpackOptions) : webpackConfig;
|
|
153
197
|
return {
|
|
154
198
|
...incomingWebpackConfig,
|
|
199
|
+
...instantLoader ? {
|
|
200
|
+
module: {
|
|
201
|
+
...incomingWebpackConfig.module,
|
|
202
|
+
rules: [...incomingWebpackConfig.module?.rules || [], {
|
|
203
|
+
enforce: "pre",
|
|
204
|
+
exclude: /node_modules/,
|
|
205
|
+
test: /[/\\](layout|page)\.(?:[cm]?[jt]s|[jt]sx)$/,
|
|
206
|
+
use: [instantLoader]
|
|
207
|
+
}]
|
|
208
|
+
}
|
|
209
|
+
} : {},
|
|
155
210
|
externals: [
|
|
156
211
|
...incomingWebpackConfig?.externals || [],
|
|
157
212
|
/**
|
|
158
|
-
* See the explanation in the serverExternalPackages section above.
|
|
159
213
|
* We need to force Webpack to emit require() calls for these packages, even though they are not
|
|
160
214
|
* resolvable from the project root. You would expect this to error during runtime, but Next.js seems to be able to require these just fine.
|
|
161
215
|
*
|
|
@@ -212,20 +266,10 @@ var withPayload = (nextConfig = {}, options = {}) => {
|
|
|
212
266
|
process.env.NEXT_BASE_PATH = nextConfig.basePath;
|
|
213
267
|
baseConfig.env.NEXT_BASE_PATH = nextConfig.basePath;
|
|
214
268
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"drizzle-kit",
|
|
220
|
-
"drizzle-kit/api",
|
|
221
|
-
"sharp",
|
|
222
|
-
"libsql",
|
|
223
|
-
"require-in-the-middle",
|
|
224
|
-
"json-schema-to-typescript",
|
|
225
|
-
// Prevents turbopack build errors by the thread-stream package which is installed by pino
|
|
226
|
-
"pino"
|
|
227
|
-
]
|
|
228
|
-
};
|
|
269
|
+
const trailingSlash = nextConfig.trailingSlash === true ? "true" : "false";
|
|
270
|
+
process.env.NEXT_TRAILING_SLASH = trailingSlash;
|
|
271
|
+
baseConfig.env.NEXT_TRAILING_SLASH = trailingSlash;
|
|
272
|
+
return baseConfig;
|
|
229
273
|
};
|
|
230
274
|
var withPayload_default = withPayload;
|
|
231
275
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/withPayload/withPayload.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * These files must remain as plain JavaScript (.js) rather than TypeScript (.ts) because they are\n * imported directly in next.config.mjs files. Since next.config files run before the build process,\n * TypeScript compilation is not available. This ensures compatibility with all templates and\n * user projects regardless of their TypeScript setup.\n */\n\nconst poweredByHeader = {\n key: 'X-Powered-By',\n value: 'Next.js, Payload',\n}\n\n/**\n * @param {import('next').NextConfig} nextConfig\n * @param {Object} [options] - Optional configuration options\n * @param {boolean} [options.devBundleServerPackages] - Whether to bundle server packages in development mode. @default false\n * */\nexport const withPayload = (nextConfig = {}, options = {}) => {\n const env = nextConfig.env || {}\n\n if (nextConfig.experimental?.staleTimes?.dynamic) {\n console.warn(\n 'Payload: detected a non-zero value for the `staleTimes.dynamic` option in your Next.js config. This will slow down page transitions and may cause stale data to load within the Admin panel. To clear this warning, remove the `staleTimes.dynamic` option from your Next.js config or set it to 0. In the future, Next.js may support scoping this option to specific routes.',\n )\n env.NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH = 'true'\n }\n\n if (nextConfig.cacheComponents) {\n env.PAYLOAD_CACHE_COMPONENTS_ENABLED = 'true'\n }\n\n const consoleWarn = console.warn\n\n const sassWarningTexts = [\n // This warning is a lie - without silencing import deprecation warnings, sass will spam the console with deprecation warnings\n 'Future import deprecation is not yet active, so silencing it is unnecessary',\n // Sometimes happens despite silenceDeprecations\n 'The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0',\n ]\n console.warn = (...args) => {\n if (\n (typeof args[1] === 'string' && sassWarningTexts.some((text) => args[1].includes(text))) ||\n (typeof args[0] === 'string' && sassWarningTexts.some((text) => args[0].includes(text)))\n ) {\n return\n }\n\n consoleWarn(...args)\n }\n\n /** @type {import('next').NextConfig} */\n const baseConfig = {\n ...nextConfig,\n env,\n experimental: {\n ...(nextConfig.experimental || {}),\n // Server fast refresh breaks HMR\n turbopackServerFastRefresh: false,\n },\n sassOptions: {\n ...(nextConfig.sassOptions || {}),\n /**\n * This prevents scss warning spam during pnpm dev that looks like this:\n * ⚠ ./test/admin/components/views/CustomMinimal/index.scss\n * Issue while running loader\n * SassWarning: Deprecation Warning on line 8, column 8 of file:///Users/alessio/Documents/GitHub/ payload/packages/ui/src/scss/styles.scss:8:8:\n * Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.\n *\n * More info and automated migrator: https://sass-lang.com/d/import\n *\n * 8 | @import 'queries';\n *\n *\n * packages/ui/src/scss/styles.scss 9:9 @import\n * test/admin/components/views/CustomMinimal/index.scss 1:9 root stylesheet\n *\n * @todo: update all outdated scss imports to use @use instead of @import. Then, we can remove this.\n */\n silenceDeprecations: [...(nextConfig.sassOptions?.silenceDeprecations || []), 'import'],\n },\n outputFileTracingExcludes: {\n ...(nextConfig.outputFileTracingExcludes || {}),\n '**/*': [\n ...(nextConfig.outputFileTracingExcludes?.['**/*'] || []),\n 'drizzle-kit',\n 'drizzle-kit/api',\n ],\n },\n outputFileTracingIncludes: {\n ...(nextConfig.outputFileTracingIncludes || {}),\n '**/*': [...(nextConfig.outputFileTracingIncludes?.['**/*'] || []), '@libsql/client'],\n },\n turbopack: {\n ...(nextConfig.turbopack || {}),\n },\n // We disable the poweredByHeader here because we add it manually in the headers function below\n ...(nextConfig.poweredByHeader !== false ? { poweredByHeader: false } : {}),\n headers: async () => {\n const headersFromConfig = 'headers' in nextConfig ? await nextConfig.headers() : []\n\n return [\n ...(headersFromConfig || []),\n {\n headers: [\n {\n key: 'Accept-CH',\n value: 'Sec-CH-Prefers-Color-Scheme',\n },\n {\n key: 'Vary',\n value: 'Sec-CH-Prefers-Color-Scheme',\n },\n {\n key: 'Critical-CH',\n value: 'Sec-CH-Prefers-Color-Scheme',\n },\n ...(nextConfig.poweredByHeader !== false ? [poweredByHeader] : []),\n ],\n source: '/:path*',\n },\n ]\n },\n serverExternalPackages: [\n ...(nextConfig.serverExternalPackages || []),\n // WHY: without externalizing graphql, a graphql version error will be thrown\n // during runtime (\"Ensure that there is only one instance of \\\"graphql\\\" in the node_modules\\ndirectory.\")\n 'graphql',\n ...(process.env.NODE_ENV === 'development' && options.devBundleServerPackages !== true\n ? /**\n * Unless explicitly disabled by the user, by passing `devBundleServerPackages: true` to withPayload, we\n * do not bundle server-only packages during dev for two reasons:\n *\n * 1. Performance: Fewer files to compile means faster compilation speeds.\n * 2. Turbopack support: Webpack's externals are not supported by Turbopack.\n *\n * Regarding Turbopack support: Unlike webpack.externals, we cannot use serverExternalPackages to\n * externalized packages that are not resolvable from the project root. So including a package like\n * \"drizzle-kit\" in here would do nothing - Next.js will ignore the rule and still bundle the package -\n * because it detects that the package is not resolvable from the project root (= not directly installed\n * by the user in their own package.json).\n *\n * Instead, we can use serverExternalPackages for the entry-point packages that *are* installed directly\n * by the user (e.g. db-postgres, which then installs drizzle-kit as a dependency).\n *\n *\n *\n * We should only do this during development, not build, because externalizing these packages can hurt\n * the bundle size. Not only does it disable tree-shaking, it also risks installing duplicate copies of the\n * same package.\n *\n * Example:\n * - @payloadcms/richtext-lexical (in bundle) -> installs qs-esm (bundled because of importer)\n * - payload (not in bundle, external) -> installs qs-esm (external because of importer)\n * Result: we have two copies of qs-esm installed - one in the bundle, and one in node_modules.\n *\n * During development, these bundle size difference do not matter much, and development speed /\n * turbopack support are more important.\n */\n [\n 'payload',\n '@payloadcms/db-mongodb',\n '@payloadcms/db-postgres',\n '@payloadcms/db-sqlite',\n '@payloadcms/db-vercel-postgres',\n '@payloadcms/db-d1-sqlite',\n '@payloadcms/drizzle',\n '@payloadcms/email-nodemailer',\n '@payloadcms/email-resend',\n '@payloadcms/graphql',\n '@payloadcms/payload-cloud',\n '@payloadcms/plugin-redirects',\n // TODO: Add the following packages, excluding their /client subpath exports, once Next.js supports it\n // see: https://github.com/vercel/next.js/discussions/76991\n //'@payloadcms/plugin-cloud-storage',\n //'@payloadcms/plugin-sentry',\n //'@payloadcms/plugin-stripe',\n // @payloadcms/richtext-lexical\n //'@payloadcms/storage-azure',\n //'@payloadcms/storage-gcs',\n //'@payloadcms/storage-s3',\n //'@payloadcms/storage-uploadthing',\n //'@payloadcms/storage-vercel-blob',\n ]\n : []),\n ],\n webpack: (webpackConfig, webpackOptions) => {\n const incomingWebpackConfig =\n typeof nextConfig.webpack === 'function'\n ? nextConfig.webpack(webpackConfig, webpackOptions)\n : webpackConfig\n\n return {\n ...incomingWebpackConfig,\n externals: [\n ...(incomingWebpackConfig?.externals || []),\n /**\n * See the explanation in the serverExternalPackages section above.\n * We need to force Webpack to emit require() calls for these packages, even though they are not\n * resolvable from the project root. You would expect this to error during runtime, but Next.js seems to be able to require these just fine.\n *\n * This is the only way to get Webpack Build to work, without the bundle size caveats of externalizing the\n * entry point packages, as explained in the serverExternalPackages section above.\n */\n 'drizzle-kit',\n 'drizzle-kit/api',\n 'sharp',\n 'libsql',\n 'require-in-the-middle',\n 'json-schema-to-typescript',\n ],\n plugins: [\n ...(incomingWebpackConfig?.plugins || []),\n // Fix cloudflare:sockets error: https://github.com/vercel/next.js/discussions/50177\n new webpackOptions.webpack.IgnorePlugin({\n resourceRegExp: /^pg-native$|^cloudflare:sockets$/,\n }),\n ],\n resolve: {\n ...(incomingWebpackConfig?.resolve || {}),\n alias: {\n ...(incomingWebpackConfig?.resolve?.alias || {}),\n },\n fallback: {\n ...(incomingWebpackConfig?.resolve?.fallback || {}),\n /*\n * This fixes the following warning when running next build with webpack (tested on Next.js 16.0.3 with Payload 3.64.0):\n *\n * ⚠ Compiled with warnings in 8.7s\n *\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/deps.js\n * Module not found: Can't resolve 'aws4' in '/Users/alessio/Documents/temp/next16p/node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib'\n *\n * Import trace for requested module:\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/deps.js\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.js\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/index.js\n * ./node_modules/.pnpm/mongoose@8.15.1/node_modules/mongoose/lib/index.js\n * ./node_modules/.pnpm/mongoose@8.15.1/node_modules/mongoose/index.js\n * ./node_modules/.pnpm/@payloadcms+db-mongodb@3.64.0_payload@3.64.0_graphql@16.12.0_typescript@5.7.3_/node_modules/@payloadcms/db-mongodb/dist/index.js\n * ./src/payload.config.ts\n * ./src/app/my-route/route.ts\n *\n **/\n aws4: false,\n },\n },\n }\n },\n }\n\n if (nextConfig.basePath) {\n process.env.NEXT_BASE_PATH = nextConfig.basePath\n baseConfig.env.NEXT_BASE_PATH = nextConfig.basePath\n }\n\n return {\n ...baseConfig,\n serverExternalPackages: [\n ...(baseConfig.serverExternalPackages || []),\n 'drizzle-kit',\n 'drizzle-kit/api',\n 'sharp',\n 'libsql',\n 'require-in-the-middle',\n 'json-schema-to-typescript',\n // Prevents turbopack build errors by the thread-stream package which is installed by pino\n 'pino',\n ],\n }\n}\n\nexport default withPayload\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["poweredByHeader", "key", "value", "withPayload", "nextConfig", "options", "env", "experimental", "staleTimes", "dynamic", "console", "warn", "NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH", "
|
|
4
|
+
"sourcesContent": ["/**\n * These files must remain as plain JavaScript (.js) rather than TypeScript (.ts) because they are\n * imported directly in next.config.mjs files. Since next.config files run before the build process,\n * TypeScript compilation is not available. This ensures compatibility with all templates and\n * user projects regardless of their TypeScript setup.\n */\n\nimport { fileURLToPath } from 'node:url'\n\nconst poweredByHeader = {\n key: 'X-Powered-By',\n value: 'Next.js, Payload',\n}\n\n/**\n * @param {import('next').NextConfig} nextConfig\n * @param {Object} [options] - Optional configuration options\n * @param {boolean} [options.devBundleServerPackages] - Whether to bundle server packages in development mode. @default false\n * */\nexport const withPayload = (nextConfig = {}, options = {}) => {\n const env = { ...nextConfig.env }\n // Adds `export const instant = false` to the admin layout and page. See `instantLoader.js` for\n // why this cannot live in the generated admin files.\n const instantLoader = nextConfig.cacheComponents\n ? typeof import.meta?.resolve === 'function'\n ? fileURLToPath(new URL('./instantLoader.js', import.meta.url))\n : require.resolve('@payloadcms/next/withPayload/instantLoader')\n : undefined\n const instantLoaderRule = '**/{layout,page}.{js,jsx,ts,tsx,mjs,mts,cjs,cts}'\n\n if (nextConfig.experimental?.staleTimes?.dynamic) {\n console.warn(\n 'Payload: detected a non-zero value for the `staleTimes.dynamic` option in your Next.js config. This will slow down page transitions and may cause stale data to load within the Admin panel. To clear this warning, remove the `staleTimes.dynamic` option from your Next.js config or set it to 0. In the future, Next.js may support scoping this option to specific routes.',\n )\n env.NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH = 'true'\n }\n\n if (nextConfig.cacheComponents) {\n env.PAYLOAD_CACHE_COMPONENTS_ENABLED = 'true'\n }\n\n const consoleWarn = console.warn\n\n const sassWarningTexts = [\n // This warning is a lie - without silencing import deprecation warnings, sass will spam the console with deprecation warnings\n 'Future import deprecation is not yet active, so silencing it is unnecessary',\n // Sometimes happens despite silenceDeprecations\n 'The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0',\n ]\n console.warn = (...args) => {\n if (\n (typeof args[1] === 'string' && sassWarningTexts.some((text) => args[1].includes(text))) ||\n (typeof args[0] === 'string' && sassWarningTexts.some((text) => args[0].includes(text)))\n ) {\n return\n }\n\n consoleWarn(...args)\n }\n\n /** @type {import('next').NextConfig} */\n const baseConfig = {\n ...nextConfig,\n devIndicators: nextConfig.devIndicators !== undefined ? nextConfig.devIndicators : false,\n env,\n experimental: {\n ...(nextConfig.experimental || {}),\n },\n sassOptions: {\n ...(nextConfig.sassOptions || {}),\n /**\n * This prevents scss warning spam during pnpm dev that looks like this:\n * ⚠ ./path/to/some/index.scss\n * Issue while running loader\n * SassWarning: Deprecation Warning: Sass @import rules are deprecated and\n * will be removed in Dart Sass 3.0.0.\n *\n * More info and automated migrator: https://sass-lang.com/d/import\n *\n * This can be triggered by any `.scss` file in a consumer's project that\n * still uses `@import`.\n */\n silenceDeprecations: [...(nextConfig.sassOptions?.silenceDeprecations || []), 'import'],\n },\n outputFileTracingExcludes: {\n ...(nextConfig.outputFileTracingExcludes || {}),\n '**/*': [\n ...(nextConfig.outputFileTracingExcludes?.['**/*'] || []),\n 'drizzle-kit',\n 'drizzle-kit/api',\n ],\n },\n turbopack: {\n ...(nextConfig.turbopack || {}),\n ...(instantLoader\n ? {\n rules: {\n ...nextConfig.turbopack?.rules,\n [instantLoaderRule]: [\n ...[].concat(nextConfig.turbopack?.rules?.[instantLoaderRule] ?? []),\n {\n // Only send files that import the admin root components to the loader, so\n // Turbopack does not run a JavaScript loader for every other layout and page.\n condition: {\n all: [\n { not: 'foreign' },\n { content: /['\"]@payloadcms\\/next\\/(?:layouts|views)['\"]/ },\n ],\n },\n loaders: [instantLoader],\n },\n ],\n },\n }\n : {}),\n },\n // We disable the poweredByHeader here because we add it manually in the headers function below\n ...(nextConfig.poweredByHeader !== false ? { poweredByHeader: false } : {}),\n headers: async () => {\n const headersFromConfig = 'headers' in nextConfig ? await nextConfig.headers() : []\n\n return [\n ...(headersFromConfig || []),\n {\n headers: [\n {\n key: 'Accept-CH',\n value: 'Sec-CH-Prefers-Color-Scheme',\n },\n {\n key: 'Vary',\n value: 'Sec-CH-Prefers-Color-Scheme',\n },\n {\n key: 'Critical-CH',\n value: 'Sec-CH-Prefers-Color-Scheme',\n },\n ...(nextConfig.poweredByHeader !== false ? [poweredByHeader] : []),\n ],\n source: '/:path*',\n },\n ]\n },\n serverExternalPackages: [\n ...(nextConfig.serverExternalPackages || []),\n // WHY: without externalizing graphql, a graphql version error will be thrown\n // during runtime (\"Ensure that there is only one instance of \\\"graphql\\\" in the node_modules\\ndirectory.\")\n 'graphql',\n 'drizzle-kit',\n 'drizzle-kit/api',\n 'sharp',\n 'libsql',\n 'require-in-the-middle',\n 'json-schema-to-typescript',\n // Prevents turbopack build errors by the thread-stream package which is installed by pino\n 'pino',\n // file-type v22 uses `import(specifier)` with a non-literal specifier, which Turbopack rejects\n // with \"Cannot find module as expression is too dynamic\"\n 'file-type',\n ...(process.env.NODE_ENV === 'development' && options.devBundleServerPackages !== true\n ? /**\n * Unless explicitly disabled by the user, by passing `devBundleServerPackages: true` to withPayload, we\n * do not bundle server-only packages during dev. Node.js loads them directly instead, so there are fewer\n * files to compile, which means faster compilation speeds.\n *\n * A package can only be listed here if the import map never loads a client component from it. Node.js\n * loads external packages as they are, so a `'use client'` file inside one would not become a client\n * component. That is why packages with client components are not listed (see the TODO below).\n *\n * We should only do this during development, not build, because externalizing these packages can hurt\n * the bundle size. Not only does it disable tree-shaking, it also risks installing duplicate copies of the\n * same package.\n *\n * Example:\n * - @payloadcms/richtext-lexical (in bundle) -> installs qs-esm (bundled because of importer)\n * - payload (not in bundle, external) -> installs qs-esm (external because of importer)\n * Result: we have two copies of qs-esm installed - one in the bundle, and one in node_modules.\n *\n * During development, these bundle size differences do not matter much, and development speed is more\n * important.\n */\n [\n 'payload',\n '@payloadcms/db-mongodb',\n '@payloadcms/db-postgres',\n '@payloadcms/db-sqlite',\n '@payloadcms/db-vercel-postgres',\n '@payloadcms/db-d1-sqlite',\n '@payloadcms/drizzle',\n '@payloadcms/email-nodemailer',\n '@payloadcms/email-resend',\n '@payloadcms/graphql',\n '@payloadcms/kv-redis',\n '@payloadcms/payload-cloud',\n // Its `/client` entry has no exports, so the import map never loads anything from it\n '@payloadcms/plugin-mcp',\n '@payloadcms/plugin-nested-docs',\n '@payloadcms/plugin-redirects',\n '@payloadcms/transformer-sharp',\n '@payloadcms/translations',\n // TODO: Add the following packages, excluding their /client subpath exports, once Next.js supports it\n // see: https://github.com/vercel/next.js/discussions/76991\n //'@payloadcms/plugin-cloud-storage',\n //'@payloadcms/plugin-sentry',\n //'@payloadcms/plugin-stripe',\n // @payloadcms/richtext-lexical\n //'@payloadcms/storage-azure',\n //'@payloadcms/storage-gcs',\n //'@payloadcms/storage-s3',\n //'@payloadcms/storage-vercel-blob',\n ]\n : []),\n ],\n webpack: (webpackConfig, webpackOptions) => {\n const incomingWebpackConfig =\n typeof nextConfig.webpack === 'function'\n ? nextConfig.webpack(webpackConfig, webpackOptions)\n : webpackConfig\n\n return {\n ...incomingWebpackConfig,\n ...(instantLoader\n ? {\n module: {\n ...incomingWebpackConfig.module,\n rules: [\n ...(incomingWebpackConfig.module?.rules || []),\n {\n enforce: 'pre',\n exclude: /node_modules/,\n test: /[/\\\\](layout|page)\\.(?:[cm]?[jt]s|[jt]sx)$/,\n use: [instantLoader],\n },\n ],\n },\n }\n : {}),\n externals: [\n ...(incomingWebpackConfig?.externals || []),\n /**\n * We need to force Webpack to emit require() calls for these packages, even though they are not\n * resolvable from the project root. You would expect this to error during runtime, but Next.js seems to be able to require these just fine.\n *\n * This is the only way to get Webpack Build to work, without the bundle size caveats of externalizing the\n * entry point packages, as explained in the serverExternalPackages section above.\n */\n 'drizzle-kit',\n 'drizzle-kit/api',\n 'sharp',\n 'libsql',\n 'require-in-the-middle',\n 'json-schema-to-typescript',\n ],\n plugins: [\n ...(incomingWebpackConfig?.plugins || []),\n // Fix cloudflare:sockets error: https://github.com/vercel/next.js/discussions/50177\n new webpackOptions.webpack.IgnorePlugin({\n resourceRegExp: /^pg-native$|^cloudflare:sockets$/,\n }),\n ],\n resolve: {\n ...(incomingWebpackConfig?.resolve || {}),\n alias: {\n ...(incomingWebpackConfig?.resolve?.alias || {}),\n },\n fallback: {\n ...(incomingWebpackConfig?.resolve?.fallback || {}),\n /*\n * This fixes the following warning when running next build with webpack (tested on Next.js 16.0.3 with Payload 3.64.0):\n *\n * ⚠ Compiled with warnings in 8.7s\n *\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/deps.js\n * Module not found: Can't resolve 'aws4' in '/Users/alessio/Documents/temp/next16p/node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib'\n *\n * Import trace for requested module:\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/deps.js\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.js\n * ./node_modules/.pnpm/mongodb@6.16.0/node_modules/mongodb/lib/index.js\n * ./node_modules/.pnpm/mongoose@8.15.1/node_modules/mongoose/lib/index.js\n * ./node_modules/.pnpm/mongoose@8.15.1/node_modules/mongoose/index.js\n * ./node_modules/.pnpm/@payloadcms+db-mongodb@3.64.0_payload@3.64.0_graphql@16.12.0_typescript@5.7.3_/node_modules/@payloadcms/db-mongodb/dist/index.js\n * ./src/payload.config.ts\n * ./src/app/my-route/route.ts\n *\n **/\n aws4: false,\n },\n },\n }\n },\n }\n\n if (nextConfig.basePath) {\n process.env.NEXT_BASE_PATH = nextConfig.basePath\n baseConfig.env.NEXT_BASE_PATH = nextConfig.basePath\n }\n\n const trailingSlash = nextConfig.trailingSlash === true ? 'true' : 'false'\n process.env.NEXT_TRAILING_SLASH = trailingSlash\n baseConfig.env.NEXT_TRAILING_SLASH = trailingSlash\n\n return baseConfig\n}\n\nexport default withPayload\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAOA,sBAA8B;AAP9B;AASA,IAAMA,kBAAkB;EACtBC,KAAK;EACLC,OAAO;AACT;AAOO,IAAMC,cAAcA,CAACC,aAAa,CAAC,GAAGC,UAAU,CAAC,MAAC;AACvD,QAAMC,MAAM;IAAE,GAAGF,WAAWE;EAAI;AAGhC,QAAMC,gBAAgBH,WAAWI,kBAC7B,OAAOC,aAAaC,YAAY,iBAC9BC,+BAAc,IAAIC,IAAI,sBAAsBH,YAAYI,GAAG,CAAA,IAC3DC,gBAAgB,4CAAA,IAClBC;AACJ,QAAMC,oBAAoB;AAE1B,MAAIZ,WAAWa,cAAcC,YAAYC,SAAS;AAChDC,YAAQC,KACN,gXAAA;AAEFf,QAAIgB,0CAA0C;EAChD;AAEA,MAAIlB,WAAWI,iBAAiB;AAC9BF,QAAIiB,mCAAmC;EACzC;AAEA,QAAMC,cAAcJ,QAAQC;AAE5B,QAAMI,mBAAmB;;IAEvB;;IAEA;EAAA;AAEFL,UAAQC,OAAO,IAAIK,SAAA;AACjB,QACE,OAAQA,KAAK,CAAA,MAAO,YAAYD,iBAAiBE,KAAMC,UAASF,KAAK,CAAA,EAAGG,SAASD,IAAA,CAAA,KAChF,OAAOF,KAAK,CAAA,MAAO,YAAYD,iBAAiBE,KAAMC,UAASF,KAAK,CAAA,EAAGG,SAASD,IAAA,CAAA,GACjF;AACA;IACF;AAEAJ,gBAAA,GAAeE,IAAA;EACjB;AAGA,QAAMI,aAAa;IACjB,GAAG1B;IACH2B,eAAe3B,WAAW2B,kBAAkBhB,SAAYX,WAAW2B,gBAAgB;IACnFzB;IACAW,cAAc;MACZ,GAAIb,WAAWa,gBAAgB,CAAC;IAClC;IACAe,aAAa;MACX,GAAI5B,WAAW4B,eAAe,CAAC;;;;;;;;;;;;;MAa/BC,qBAAqB,CAAA,GAAK7B,WAAW4B,aAAaC,uBAAuB,CAAA,GAAK,QAAA;IAChF;IACAC,2BAA2B;MACzB,GAAI9B,WAAW8B,6BAA6B,CAAC;MAC7C,QAAQ,CAAA,GACF9B,WAAW8B,4BAA4B,MAAA,KAAW,CAAA,GACtD,eACA,iBAAA;IAEJ;IACAC,WAAW;MACT,GAAI/B,WAAW+B,aAAa,CAAC;MAC7B,GAAI5B,gBACA;QACE6B,OAAO;UACL,GAAGhC,WAAW+B,WAAWC;UACzB,CAACpB,iBAAA,GAAoB,CAAA,GAChB,CAAA,EAAGqB,OAAOjC,WAAW+B,WAAWC,QAAQpB,iBAAA,KAAsB,CAAA,CAAE,GACnE;;;YAGEsB,WAAW;cACTC,KAAK,CACH;gBAAEC,KAAK;cAAU,GACjB;gBAAEC,SAAS;cAA+C,CAAA;YAE9D;YACAC,SAAS,CAACnC,aAAA;UACZ,CAAA;QAEJ;MACF,IACA,CAAC;IACP;;IAEA,GAAIH,WAAWJ,oBAAoB,QAAQ;MAAEA,iBAAiB;IAAM,IAAI,CAAC;IACzE2C,SAAS,YAAA;AACP,YAAMC,oBAAoB,aAAaxC,aAAa,MAAMA,WAAWuC,QAAO,IAAK,CAAA;AAEjF,aAAO,CAAA,GACDC,qBAAqB,CAAA,GACzB;QACED,SAAS,CACP;UACE1C,KAAK;UACLC,OAAO;QACT,GACA;UACED,KAAK;UACLC,OAAO;QACT,GACA;UACED,KAAK;UACLC,OAAO;QACT,GAAA,GACIE,WAAWJ,oBAAoB,QAAQ,CAACA,eAAA,IAAmB,CAAA,CAAE;QAEnE6C,QAAQ;MACV,CAAA;IAEJ;IACAC,wBAAwB;MAAA,GAClB1C,WAAW0C,0BAA0B,CAAA;;;MAGzC;MACA;MACA;MACA;MACA;MACA;MACA;;MAEA;;;MAGA;MAAA,GACIC,QAAQzC,IAAI0C,aAAa,iBAAiB3C,QAAQ4C,4BAA4B;;;;;;;;;;;;;;;;;;;;;;QAsB9E;UACE;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;QAAA;UAYF,CAAA;IAAE;IAERC,SAASA,CAACC,eAAeC,mBAAA;AACvB,YAAMC,wBACJ,OAAOjD,WAAW8C,YAAY,aAC1B9C,WAAW8C,QAAQC,eAAeC,cAAA,IAClCD;AAEN,aAAO;QACL,GAAGE;QACH,GAAI9C,gBACA;UACE+C,QAAQ;YACN,GAAGD,sBAAsBC;YACzBlB,OAAO,CAAA,GACDiB,sBAAsBC,QAAQlB,SAAS,CAAA,GAC3C;cACEmB,SAAS;cACTC,SAAS;cACTC,MAAM;cACNC,KAAK,CAACnD,aAAA;YACR,CAAA;UAEJ;QACF,IACA,CAAC;QACLoD,WAAW;UAAA,GACLN,uBAAuBM,aAAa,CAAA;;;;;;;;UAQxC;UACA;UACA;UACA;UACA;UACA;QAAA;QAEFC,SAAS;UAAA,GACHP,uBAAuBO,WAAW,CAAA;;UAEtC,IAAIR,eAAeF,QAAQW,aAAa;YACtCC,gBAAgB;UAClB,CAAA;QAAA;QAEFpD,SAAS;UACP,GAAI2C,uBAAuB3C,WAAW,CAAC;UACvCqD,OAAO;YACL,GAAIV,uBAAuB3C,SAASqD,SAAS,CAAC;UAChD;UACAC,UAAU;YACR,GAAIX,uBAAuB3C,SAASsD,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;YAoBjDC,MAAM;UACR;QACF;MACF;IACF;EACF;AAEA,MAAI7D,WAAW8D,UAAU;AACvBnB,YAAQzC,IAAI6D,iBAAiB/D,WAAW8D;AACxCpC,eAAWxB,IAAI6D,iBAAiB/D,WAAW8D;EAC7C;AAEA,QAAME,gBAAgBhE,WAAWgE,kBAAkB,OAAO,SAAS;AACnErB,UAAQzC,IAAI+D,sBAAsBD;AAClCtC,aAAWxB,IAAI+D,sBAAsBD;AAErC,SAAOtC;AACT;AAEA,IAAA,sBAAe3B;",
|
|
6
|
+
"names": ["poweredByHeader", "key", "value", "withPayload", "nextConfig", "options", "env", "instantLoader", "cacheComponents", "import", "resolve", "fileURLToPath", "URL", "url", "require", "undefined", "instantLoaderRule", "experimental", "staleTimes", "dynamic", "console", "warn", "NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH", "PAYLOAD_CACHE_COMPONENTS_ENABLED", "consoleWarn", "sassWarningTexts", "args", "some", "text", "includes", "baseConfig", "devIndicators", "sassOptions", "silenceDeprecations", "outputFileTracingExcludes", "turbopack", "rules", "concat", "condition", "all", "not", "content", "loaders", "headers", "headersFromConfig", "source", "serverExternalPackages", "process", "NODE_ENV", "devBundleServerPackages", "webpack", "webpackConfig", "webpackOptions", "incomingWebpackConfig", "module", "enforce", "exclude", "test", "use", "externals", "plugins", "IgnorePlugin", "resourceRegExp", "alias", "fallback", "aws4", "basePath", "NEXT_BASE_PATH", "trailingSlash", "NEXT_TRAILING_SLASH"]
|
|
7
7
|
}
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;wBAEzB,OAAO,CAAC,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;wBAEzB,OAAO,CAAC,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/exports/css.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,EAAE,IAAgB,CAAA;eACf,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":["styles","undefined"],"sources":["../../src/exports/css.ts"],"sourcesContent":["const styles: void = undefined\nexport default styles\n"],"mappings":"AAAA,MAAMA,MAAA,GAAeC,SAAA;AACrB,eAAeD,MAAA","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { handleServerFunctions } from '../adapters/handleServerFunctions.js';
|
|
2
|
+
export { metadata, RootLayout } from '../adapters/layout.js';
|
|
3
|
+
export { generateViewport as generatePayloadViewport } from '../adapters/viewport.js';
|
|
3
4
|
//# sourceMappingURL=layouts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../src/exports/layouts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../src/exports/layouts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,MAAM,yBAAyB,CAAA"}
|
package/dist/exports/layouts.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { handleServerFunctions } from '../adapters/handleServerFunctions.js';
|
|
2
|
+
export { metadata, RootLayout } from '../adapters/layout.js';
|
|
3
|
+
export { generateViewport as generatePayloadViewport } from '../adapters/viewport.js';
|
|
3
4
|
//# sourceMappingURL=layouts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layouts.js","names":["metadata","RootLayout","
|
|
1
|
+
{"version":3,"file":"layouts.js","names":["handleServerFunctions","metadata","RootLayout","generateViewport","generatePayloadViewport"],"sources":["../../src/exports/layouts.ts"],"sourcesContent":["export { handleServerFunctions } from '../adapters/handleServerFunctions.js'\nexport { metadata, RootLayout } from '../adapters/layout.js'\nexport { generateViewport as generatePayloadViewport } from '../adapters/viewport.js'\n"],"mappings":"AAAA,SAASA,qBAAqB,QAAQ;AACtC,SAASC,QAAQ,EAAEC,UAAU,QAAQ;AACrC,SAASC,gBAAA,IAAoBC,uBAAuB,QAAQ","ignoreList":[]}
|
|
@@ -1,72 +1,2 @@
|
|
|
1
|
-
export { getHierarchyAncestry } from '../utilities/getHierarchyAncestry.js';
|
|
2
|
-
export type { GetHierarchyAncestryArgs, HierarchyAncestryItem, HierarchyAncestryResult, } from '../utilities/getHierarchyAncestry.js';
|
|
3
1
|
export { getNextRequestI18n } from '../utilities/getNextRequestI18n.js';
|
|
4
|
-
export { getPayloadHMR } from '../utilities/getPayloadHMR.js';
|
|
5
|
-
import { addLocalesToRequestFromData as _addLocalesToRequestFromData } from 'payload';
|
|
6
|
-
/**
|
|
7
|
-
* Use:
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { mergeHeaders } from 'payload'
|
|
10
|
-
* ```
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
export declare const mergeHeaders: (sourceHeaders: Headers, destinationHeaders: Headers) => Headers;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
* Use:
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { headersWithCors } from 'payload'
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare const headersWithCors: ({ headers, req }: {
|
|
22
|
-
headers: Headers;
|
|
23
|
-
req: Partial<import("payload").PayloadRequest>;
|
|
24
|
-
}) => Headers;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated
|
|
27
|
-
* Use:
|
|
28
|
-
* ```ts
|
|
29
|
-
* import { createPayloadRequest } from 'payload'
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare const createPayloadRequest: ({ canSetHeaders, config: configPromise, params, payloadInstanceCacheKey, request, }: {
|
|
33
|
-
canSetHeaders?: boolean;
|
|
34
|
-
config: Promise<import("payload").SanitizedConfig> | import("payload").SanitizedConfig;
|
|
35
|
-
params?: {
|
|
36
|
-
collection: string;
|
|
37
|
-
};
|
|
38
|
-
payloadInstanceCacheKey?: string;
|
|
39
|
-
request: Request;
|
|
40
|
-
}) => Promise<import("payload").PayloadRequest>;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* Use:
|
|
44
|
-
* ```ts
|
|
45
|
-
* import { addDataAndFileToRequest } from 'payload'
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export declare const addDataAndFileToRequest: (req: import("payload").PayloadRequest) => Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated
|
|
51
|
-
* Use:
|
|
52
|
-
* ```ts
|
|
53
|
-
* import { sanitizeLocales } from 'payload'
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
export declare const sanitizeLocales: ({ fallbackLocale, locale, localization, }: {
|
|
57
|
-
fallbackLocale: import("payload").TypedFallbackLocale;
|
|
58
|
-
locale: string;
|
|
59
|
-
localization: import("payload").SanitizedConfig["localization"];
|
|
60
|
-
}) => {
|
|
61
|
-
fallbackLocale?: import("payload").TypedFallbackLocale;
|
|
62
|
-
locale?: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated
|
|
66
|
-
* Use:
|
|
67
|
-
* ```ts
|
|
68
|
-
* import { addLocalesToRequestFromData } from 'payload'
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
export declare const addLocalesToRequestFromData: typeof _addLocalesToRequestFromData;
|
|
72
2
|
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/exports/utilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/exports/utilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA"}
|