@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
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* imported directly in next.config.mjs files. Since next.config files run before the build process,
|
|
4
4
|
* TypeScript compilation is not available. This ensures compatibility with all templates and
|
|
5
5
|
* user projects regardless of their TypeScript setup.
|
|
6
|
-
*/
|
|
6
|
+
*/import { fileURLToPath } from 'node:url';
|
|
7
|
+
const poweredByHeader = {
|
|
7
8
|
key: 'X-Powered-By',
|
|
8
9
|
value: 'Next.js, Payload'
|
|
9
10
|
};
|
|
@@ -13,7 +14,13 @@
|
|
|
13
14
|
* @param {boolean} [options.devBundleServerPackages] - Whether to bundle server packages in development mode. @default false
|
|
14
15
|
* */
|
|
15
16
|
export const withPayload = (nextConfig = {}, options = {}) => {
|
|
16
|
-
const env =
|
|
17
|
+
const env = {
|
|
18
|
+
...nextConfig.env
|
|
19
|
+
};
|
|
20
|
+
// Adds `export const instant = false` to the admin layout and page. See `instantLoader.js` for
|
|
21
|
+
// why this cannot live in the generated admin files.
|
|
22
|
+
const instantLoader = nextConfig.cacheComponents ? typeof import.meta?.resolve === 'function' ? fileURLToPath(new URL('./instantLoader.js', import.meta.url)) : require.resolve('@payloadcms/next/withPayload/instantLoader') : undefined;
|
|
23
|
+
const instantLoaderRule = '**/{layout,page}.{js,jsx,ts,tsx,mjs,mts,cjs,cts}';
|
|
17
24
|
if (nextConfig.experimental?.staleTimes?.dynamic) {
|
|
18
25
|
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.');
|
|
19
26
|
env.NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH = 'true';
|
|
@@ -36,30 +43,24 @@ export const withPayload = (nextConfig = {}, options = {}) => {
|
|
|
36
43
|
/** @type {import('next').NextConfig} */
|
|
37
44
|
const baseConfig = {
|
|
38
45
|
...nextConfig,
|
|
46
|
+
devIndicators: nextConfig.devIndicators !== undefined ? nextConfig.devIndicators : false,
|
|
39
47
|
env,
|
|
40
48
|
experimental: {
|
|
41
|
-
...(nextConfig.experimental || {})
|
|
42
|
-
// Server fast refresh breaks HMR
|
|
43
|
-
turbopackServerFastRefresh: false
|
|
49
|
+
...(nextConfig.experimental || {})
|
|
44
50
|
},
|
|
45
51
|
sassOptions: {
|
|
46
52
|
...(nextConfig.sassOptions || {}),
|
|
47
53
|
/**
|
|
48
54
|
* This prevents scss warning spam during pnpm dev that looks like this:
|
|
49
|
-
* ⚠ ./
|
|
55
|
+
* ⚠ ./path/to/some/index.scss
|
|
50
56
|
* Issue while running loader
|
|
51
|
-
* SassWarning: Deprecation Warning
|
|
52
|
-
*
|
|
57
|
+
* SassWarning: Deprecation Warning: Sass @import rules are deprecated and
|
|
58
|
+
* will be removed in Dart Sass 3.0.0.
|
|
53
59
|
*
|
|
54
60
|
* More info and automated migrator: https://sass-lang.com/d/import
|
|
55
61
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* packages/ui/src/scss/styles.scss 9:9 @import
|
|
60
|
-
* test/admin/components/views/CustomMinimal/index.scss 1:9 root stylesheet
|
|
61
|
-
*
|
|
62
|
-
* @todo: update all outdated scss imports to use @use instead of @import. Then, we can remove this.
|
|
62
|
+
* This can be triggered by any `.scss` file in a consumer's project that
|
|
63
|
+
* still uses `@import`.
|
|
63
64
|
*/
|
|
64
65
|
silenceDeprecations: [...(nextConfig.sassOptions?.silenceDeprecations || []), 'import']
|
|
65
66
|
},
|
|
@@ -67,12 +68,25 @@ export const withPayload = (nextConfig = {}, options = {}) => {
|
|
|
67
68
|
...(nextConfig.outputFileTracingExcludes || {}),
|
|
68
69
|
'**/*': [...(nextConfig.outputFileTracingExcludes?.['**/*'] || []), 'drizzle-kit', 'drizzle-kit/api']
|
|
69
70
|
},
|
|
70
|
-
outputFileTracingIncludes: {
|
|
71
|
-
...(nextConfig.outputFileTracingIncludes || {}),
|
|
72
|
-
'**/*': [...(nextConfig.outputFileTracingIncludes?.['**/*'] || []), '@libsql/client']
|
|
73
|
-
},
|
|
74
71
|
turbopack: {
|
|
75
|
-
...(nextConfig.turbopack || {})
|
|
72
|
+
...(nextConfig.turbopack || {}),
|
|
73
|
+
...(instantLoader ? {
|
|
74
|
+
rules: {
|
|
75
|
+
...nextConfig.turbopack?.rules,
|
|
76
|
+
[instantLoaderRule]: [...[].concat(nextConfig.turbopack?.rules?.[instantLoaderRule] ?? []), {
|
|
77
|
+
// Only send files that import the admin root components to the loader, so
|
|
78
|
+
// Turbopack does not run a JavaScript loader for every other layout and page.
|
|
79
|
+
condition: {
|
|
80
|
+
all: [{
|
|
81
|
+
not: 'foreign'
|
|
82
|
+
}, {
|
|
83
|
+
content: /['"]@payloadcms\/next\/(?:layouts|views)['"]/
|
|
84
|
+
}]
|
|
85
|
+
},
|
|
86
|
+
loaders: [instantLoader]
|
|
87
|
+
}]
|
|
88
|
+
}
|
|
89
|
+
} : {})
|
|
76
90
|
},
|
|
77
91
|
// We disable the poweredByHeader here because we add it manually in the headers function below
|
|
78
92
|
...(nextConfig.poweredByHeader !== false ? {
|
|
@@ -97,24 +111,20 @@ export const withPayload = (nextConfig = {}, options = {}) => {
|
|
|
97
111
|
serverExternalPackages: [...(nextConfig.serverExternalPackages || []),
|
|
98
112
|
// WHY: without externalizing graphql, a graphql version error will be thrown
|
|
99
113
|
// during runtime ("Ensure that there is only one instance of \"graphql\" in the node_modules\ndirectory.")
|
|
100
|
-
'graphql',
|
|
114
|
+
'graphql', 'drizzle-kit', 'drizzle-kit/api', 'sharp', 'libsql', 'require-in-the-middle', 'json-schema-to-typescript',
|
|
115
|
+
// Prevents turbopack build errors by the thread-stream package which is installed by pino
|
|
116
|
+
'pino',
|
|
117
|
+
// file-type v22 uses `import(specifier)` with a non-literal specifier, which Turbopack rejects
|
|
118
|
+
// with "Cannot find module as expression is too dynamic"
|
|
119
|
+
'file-type', ...(process.env.NODE_ENV === 'development' && options.devBundleServerPackages !== true ?
|
|
101
120
|
/**
|
|
102
121
|
* Unless explicitly disabled by the user, by passing `devBundleServerPackages: true` to withPayload, we
|
|
103
|
-
* do not bundle server-only packages during dev
|
|
104
|
-
*
|
|
105
|
-
* 1. Performance: Fewer files to compile means faster compilation speeds.
|
|
106
|
-
* 2. Turbopack support: Webpack's externals are not supported by Turbopack.
|
|
107
|
-
*
|
|
108
|
-
* Regarding Turbopack support: Unlike webpack.externals, we cannot use serverExternalPackages to
|
|
109
|
-
* externalized packages that are not resolvable from the project root. So including a package like
|
|
110
|
-
* "drizzle-kit" in here would do nothing - Next.js will ignore the rule and still bundle the package -
|
|
111
|
-
* because it detects that the package is not resolvable from the project root (= not directly installed
|
|
112
|
-
* by the user in their own package.json).
|
|
113
|
-
*
|
|
114
|
-
* Instead, we can use serverExternalPackages for the entry-point packages that *are* installed directly
|
|
115
|
-
* by the user (e.g. db-postgres, which then installs drizzle-kit as a dependency).
|
|
116
|
-
*
|
|
122
|
+
* do not bundle server-only packages during dev. Node.js loads them directly instead, so there are fewer
|
|
123
|
+
* files to compile, which means faster compilation speeds.
|
|
117
124
|
*
|
|
125
|
+
* A package can only be listed here if the import map never loads a client component from it. Node.js
|
|
126
|
+
* loads external packages as they are, so a `'use client'` file inside one would not become a client
|
|
127
|
+
* component. That is why packages with client components are not listed (see the TODO below).
|
|
118
128
|
*
|
|
119
129
|
* We should only do this during development, not build, because externalizing these packages can hurt
|
|
120
130
|
* the bundle size. Not only does it disable tree-shaking, it also risks installing duplicate copies of the
|
|
@@ -125,17 +135,29 @@ export const withPayload = (nextConfig = {}, options = {}) => {
|
|
|
125
135
|
* - payload (not in bundle, external) -> installs qs-esm (external because of importer)
|
|
126
136
|
* Result: we have two copies of qs-esm installed - one in the bundle, and one in node_modules.
|
|
127
137
|
*
|
|
128
|
-
* During development, these bundle size
|
|
129
|
-
*
|
|
138
|
+
* During development, these bundle size differences do not matter much, and development speed is more
|
|
139
|
+
* important.
|
|
130
140
|
*/
|
|
131
|
-
['payload', '@payloadcms/db-mongodb', '@payloadcms/db-postgres', '@payloadcms/db-sqlite', '@payloadcms/db-vercel-postgres', '@payloadcms/db-d1-sqlite', '@payloadcms/drizzle', '@payloadcms/email-nodemailer', '@payloadcms/email-resend', '@payloadcms/graphql', '@payloadcms/
|
|
141
|
+
['payload', '@payloadcms/db-mongodb', '@payloadcms/db-postgres', '@payloadcms/db-sqlite', '@payloadcms/db-vercel-postgres', '@payloadcms/db-d1-sqlite', '@payloadcms/drizzle', '@payloadcms/email-nodemailer', '@payloadcms/email-resend', '@payloadcms/graphql', '@payloadcms/kv-redis', '@payloadcms/payload-cloud',
|
|
142
|
+
// Its `/client` entry has no exports, so the import map never loads anything from it
|
|
143
|
+
'@payloadcms/plugin-mcp', '@payloadcms/plugin-nested-docs', '@payloadcms/plugin-redirects', '@payloadcms/transformer-sharp', '@payloadcms/translations'] : [])],
|
|
132
144
|
webpack: (webpackConfig, webpackOptions) => {
|
|
133
145
|
const incomingWebpackConfig = typeof nextConfig.webpack === 'function' ? nextConfig.webpack(webpackConfig, webpackOptions) : webpackConfig;
|
|
134
146
|
return {
|
|
135
147
|
...incomingWebpackConfig,
|
|
148
|
+
...(instantLoader ? {
|
|
149
|
+
module: {
|
|
150
|
+
...incomingWebpackConfig.module,
|
|
151
|
+
rules: [...(incomingWebpackConfig.module?.rules || []), {
|
|
152
|
+
enforce: 'pre',
|
|
153
|
+
exclude: /node_modules/,
|
|
154
|
+
test: /[/\\](layout|page)\.(?:[cm]?[jt]s|[jt]sx)$/,
|
|
155
|
+
use: [instantLoader]
|
|
156
|
+
}]
|
|
157
|
+
}
|
|
158
|
+
} : {}),
|
|
136
159
|
externals: [...(incomingWebpackConfig?.externals || []),
|
|
137
160
|
/**
|
|
138
|
-
* See the explanation in the serverExternalPackages section above.
|
|
139
161
|
* We need to force Webpack to emit require() calls for these packages, even though they are not
|
|
140
162
|
* 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.
|
|
141
163
|
*
|
|
@@ -184,12 +206,10 @@ export const withPayload = (nextConfig = {}, options = {}) => {
|
|
|
184
206
|
process.env.NEXT_BASE_PATH = nextConfig.basePath;
|
|
185
207
|
baseConfig.env.NEXT_BASE_PATH = nextConfig.basePath;
|
|
186
208
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
'pino']
|
|
192
|
-
};
|
|
209
|
+
const trailingSlash = nextConfig.trailingSlash === true ? 'true' : 'false';
|
|
210
|
+
process.env.NEXT_TRAILING_SLASH = trailingSlash;
|
|
211
|
+
baseConfig.env.NEXT_TRAILING_SLASH = trailingSlash;
|
|
212
|
+
return baseConfig;
|
|
193
213
|
};
|
|
194
214
|
export default withPayload;
|
|
195
215
|
//# sourceMappingURL=withPayload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withPayload.js","names":["poweredByHeader","key","value","withPayload","nextConfig","options","env","experimental","staleTimes","dynamic","console","warn","NEXT_PUBLIC_ENABLE_ROUTER_CACHE_REFRESH","cacheComponents","PAYLOAD_CACHE_COMPONENTS_ENABLED","consoleWarn","sassWarningTexts","args","some","text","includes","baseConfig","turbopackServerFastRefresh","sassOptions","silenceDeprecations","outputFileTracingExcludes","outputFileTracingIncludes","turbopack","headers","headersFromConfig","source","serverExternalPackages","process","NODE_ENV","devBundleServerPackages","webpack","webpackConfig","webpackOptions","incomingWebpackConfig","externals","plugins","IgnorePlugin","resourceRegExp","resolve","alias","fallback","aws4","basePath","NEXT_BASE_PATH"],"sources":["../../src/withPayload/withPayload.js"],"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"],"mappings":"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","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"withPayload.js","names":["fileURLToPath","poweredByHeader","key","value","withPayload","nextConfig","options","env","instantLoader","cacheComponents","import","meta","resolve","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"],"sources":["../../src/withPayload/withPayload.js"],"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"],"mappings":"AAAA;;;;;GAOA,SAASA,aAAa,QAAQ;AAE9B,MAAMC,eAAA,GAAkB;EACtBC,GAAA,EAAK;EACLC,KAAA,EAAO;AACT;AAEA;;;;;AAKA,OAAO,MAAMC,WAAA,GAAcA,CAACC,UAAA,GAAa,CAAC,CAAC,EAAEC,OAAA,GAAU,CAAC,CAAC;EACvD,MAAMC,GAAA,GAAM;IAAE,GAAGF,UAAA,CAAWE;EAAI;EAChC;EACA;EACA,MAAMC,aAAA,GAAgBH,UAAA,CAAWI,eAAe,GAC5C,OAAOC,MAAA,CAAAC,IAAA,EAAaC,OAAA,KAAY,aAC9BZ,aAAA,CAAc,IAAIa,GAAA,CAAI,sBAAsBH,MAAA,CAAAC,IAAA,CAAYG,GAAG,KAC3DC,OAAA,CAAQH,OAAO,CAAC,gDAClBI,SAAA;EACJ,MAAMC,iBAAA,GAAoB;EAE1B,IAAIZ,UAAA,CAAWa,YAAY,EAAEC,UAAA,EAAYC,OAAA,EAAS;IAChDC,OAAA,CAAQC,IAAI,CACV;IAEFf,GAAA,CAAIgB,uCAAuC,GAAG;EAChD;EAEA,IAAIlB,UAAA,CAAWI,eAAe,EAAE;IAC9BF,GAAA,CAAIiB,gCAAgC,GAAG;EACzC;EAEA,MAAMC,WAAA,GAAcJ,OAAA,CAAQC,IAAI;EAEhC,MAAMI,gBAAA,GAAmB;EACvB;EACA;EACA;EACA,yEACD;EACDL,OAAA,CAAQC,IAAI,GAAG,CAAC,GAAGK,IAAA;IACjB,IACE,OAAQA,IAAI,CAAC,EAAE,KAAK,YAAYD,gBAAA,CAAiBE,IAAI,CAAEC,IAAA,IAASF,IAAI,CAAC,EAAE,CAACG,QAAQ,CAACD,IAAA,MAChF,OAAOF,IAAI,CAAC,EAAE,KAAK,YAAYD,gBAAA,CAAiBE,IAAI,CAAEC,IAAA,IAASF,IAAI,CAAC,EAAE,CAACG,QAAQ,CAACD,IAAA,IACjF;MACA;IACF;IAEAJ,WAAA,IAAeE,IAAA;EACjB;EAEA;EACA,MAAMI,UAAA,GAAa;IACjB,GAAG1B,UAAU;IACb2B,aAAA,EAAe3B,UAAA,CAAW2B,aAAa,KAAKhB,SAAA,GAAYX,UAAA,CAAW2B,aAAa,GAAG;IACnFzB,GAAA;IACAW,YAAA,EAAc;MACZ,IAAIb,UAAA,CAAWa,YAAY,IAAI,CAAC,CAAC;IACnC;IACAe,WAAA,EAAa;MACX,IAAI5B,UAAA,CAAW4B,WAAW,IAAI,CAAC,CAAC;MAChC;;;;;;;;;;;;MAYAC,mBAAA,EAAqB,C,IAAK7B,UAAA,CAAW4B,WAAW,EAAEC,mBAAA,IAAuB,EAAE,GAAG;IAChF;IACAC,yBAAA,EAA2B;MACzB,IAAI9B,UAAA,CAAW8B,yBAAyB,IAAI,CAAC,CAAC;MAC9C,QAAQ,C,IACF9B,UAAA,CAAW8B,yBAAyB,GAAG,OAAO,IAAI,EAAE,GACxD,eACA;IAEJ;IACAC,SAAA,EAAW;MACT,IAAI/B,UAAA,CAAW+B,SAAS,IAAI,CAAC,CAAC;MAC9B,IAAI5B,aAAA,GACA;QACE6B,KAAA,EAAO;UACL,GAAGhC,UAAA,CAAW+B,SAAS,EAAEC,KAAK;UAC9B,CAACpB,iBAAA,GAAoB,C,GAChB,EAAE,CAACqB,MAAM,CAACjC,UAAA,CAAW+B,SAAS,EAAEC,KAAA,GAAQpB,iBAAA,CAAkB,IAAI,EAAE,GACnE;YACE;YACA;YACAsB,SAAA,EAAW;cACTC,GAAA,EAAK,CACH;gBAAEC,GAAA,EAAK;cAAU,GACjB;gBAAEC,OAAA,EAAS;cAA+C;YAE9D;YACAC,OAAA,EAAS,CAACnC,aAAA;UACZ;QAEJ;MACF,IACA,CAAC,CAAC;IACR;IACA;IACA,IAAIH,UAAA,CAAWJ,eAAe,KAAK,QAAQ;MAAEA,eAAA,EAAiB;IAAM,IAAI,CAAC,CAAC;IAC1E2C,OAAA,EAAS,MAAAA,CAAA;MACP,MAAMC,iBAAA,GAAoB,aAAaxC,UAAA,GAAa,MAAMA,UAAA,CAAWuC,OAAO,KAAK,EAAE;MAEnF,OAAO,C,IACDC,iBAAA,IAAqB,EAAE,GAC3B;QACED,OAAA,EAAS,CACP;UACE1C,GAAA,EAAK;UACLC,KAAA,EAAO;QACT,GACA;UACED,GAAA,EAAK;UACLC,KAAA,EAAO;QACT,GACA;UACED,GAAA,EAAK;UACLC,KAAA,EAAO;QACT,G,IACIE,UAAA,CAAWJ,eAAe,KAAK,QAAQ,CAACA,eAAA,CAAgB,GAAG,EAAE,EAClE;QACD6C,MAAA,EAAQ;MACV,EACD;IACH;IACAC,sBAAA,EAAwB,C,IAClB1C,UAAA,CAAW0C,sBAAsB,IAAI,EAAE;IAC3C;IACA;IACA,WACA,eACA,mBACA,SACA,UACA,yBACA;IACA;IACA;IACA;IACA;IACA,a,IACIC,OAAA,CAAQzC,GAAG,CAAC0C,QAAQ,KAAK,iBAAiB3C,OAAA,CAAQ4C,uBAAuB,KAAK;IAC9E;;;;;;;;;;;;;;;;;;;;;IAqBA,CACE,WACA,0BACA,2BACA,yBACA,kCACA,4BACA,uBACA,gCACA,4BACA,uBACA,wBACA;IACA;IACA,0BACA,kCACA,gCACA,iCACA,2BAWD,GACD,EAAE,EACP;IACDC,OAAA,EAASA,CAACC,aAAA,EAAeC,cAAA;MACvB,MAAMC,qBAAA,GACJ,OAAOjD,UAAA,CAAW8C,OAAO,KAAK,aAC1B9C,UAAA,CAAW8C,OAAO,CAACC,aAAA,EAAeC,cAAA,IAClCD,aAAA;MAEN,OAAO;QACL,GAAGE,qBAAqB;QACxB,IAAI9C,aAAA,GACA;UACE+C,MAAA,EAAQ;YACN,GAAGD,qBAAA,CAAsBC,MAAM;YAC/BlB,KAAA,EAAO,C,IACDiB,qBAAA,CAAsBC,MAAM,EAAElB,KAAA,IAAS,EAAE,GAC7C;cACEmB,OAAA,EAAS;cACTC,OAAA,EAAS;cACTC,IAAA,EAAM;cACNC,GAAA,EAAK,CAACnD,aAAA;YACR;UAEJ;QACF,IACA,CAAC,CAAC;QACNoD,SAAA,EAAW,C,IACLN,qBAAA,EAAuBM,SAAA,IAAa,EAAE;QAC1C;;;;;;;QAOA,eACA,mBACA,SACA,UACA,yBACA,4BACD;QACDC,OAAA,EAAS,C,IACHP,qBAAA,EAAuBO,OAAA,IAAW,EAAE;QACxC;QACA,IAAIR,cAAA,CAAeF,OAAO,CAACW,YAAY,CAAC;UACtCC,cAAA,EAAgB;QAClB,GACD;QACDnD,OAAA,EAAS;UACP,IAAI0C,qBAAA,EAAuB1C,OAAA,IAAW,CAAC,CAAC;UACxCoD,KAAA,EAAO;YACL,IAAIV,qBAAA,EAAuB1C,OAAA,EAASoD,KAAA,IAAS,CAAC,CAAC;UACjD;UACAC,QAAA,EAAU;YACR,IAAIX,qBAAA,EAAuB1C,OAAA,EAASqD,QAAA,IAAY,CAAC,CAAC;YAClD;;;;;;;;;;;;;;;;;;;YAmBAC,IAAA,EAAM;UACR;QACF;MACF;IACF;EACF;EAEA,IAAI7D,UAAA,CAAW8D,QAAQ,EAAE;IACvBnB,OAAA,CAAQzC,GAAG,CAAC6D,cAAc,GAAG/D,UAAA,CAAW8D,QAAQ;IAChDpC,UAAA,CAAWxB,GAAG,CAAC6D,cAAc,GAAG/D,UAAA,CAAW8D,QAAQ;EACrD;EAEA,MAAME,aAAA,GAAgBhE,UAAA,CAAWgE,aAAa,KAAK,OAAO,SAAS;EACnErB,OAAA,CAAQzC,GAAG,CAAC+D,mBAAmB,GAAGD,aAAA;EAClCtC,UAAA,CAAWxB,GAAG,CAAC+D,mBAAmB,GAAGD,aAAA;EAErC,OAAOtC,UAAA;AACT;AAEA,eAAe3B,WAAA","ignoreList":[]}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
2
|
+
* This was taken and modified from https://github.com/getsentry/sentry-javascript/blob/15256034ee8150a5b7dcb97d23eca1a5486f0cae/packages/nextjs/src/config/util.ts
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 Functional Software, Inc. dba Sentry
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
9
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
10
|
+
* the Software without restriction, including without limitation the rights to
|
|
11
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
12
|
+
* of the Software, and to permit persons to whom the Software is furnished to do
|
|
13
|
+
* so, subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
* copies or substantial portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
* SOFTWARE.
|
|
14
25
|
*/
|
|
15
26
|
export type SemVer = {
|
|
16
27
|
buildmetadata?: string;
|
|
@@ -23,4 +34,15 @@ export type SemVer = {
|
|
|
23
34
|
patch?: number;
|
|
24
35
|
prerelease?: string;
|
|
25
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Parses input into a SemVer interface
|
|
39
|
+
* @param {string} input - string representation of a semver version
|
|
40
|
+
* @returns {SemVer}
|
|
41
|
+
*/
|
|
42
|
+
export declare function parseSemver(input: string): SemVer;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the version of Next.js installed in the project, or undefined if it cannot be determined.
|
|
45
|
+
* @returns {SemVer | undefined}
|
|
46
|
+
*/
|
|
47
|
+
export declare function getNextjsVersion(): SemVer | undefined;
|
|
26
48
|
//# sourceMappingURL=withPayload.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withPayload.utils.d.ts","sourceRoot":"","sources":["../../src/withPayload/withPayload.utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withPayload.utils.d.ts","sourceRoot":"","sources":["../../src/withPayload/withPayload.utils.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAeA,YAAkB,MAAM,GACxB;IAAoB,aAAa,AAAjC,CACA,EADW,MAAM,CACjB;;;;IAAoB,aAAa,AAAjC,CACA,EADW,MAAM,CACjB;IAAoB,KAAK,AAAzB,CACA,EADW,MAAM,CACjB;IAAoB,KAAK,AAAzB,CACA,EADW,MAAM,CACjB;IAAoB,KAAK,AAAzB,CACA,EADW,MAAM,CACjB;IAAoB,UAAU,AAA9B,CAA+B,EAApB,MAAM,CAAc;CAAA,CAAA;AAOlC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAHtB,MAGsB,GAFpB,MAAM,CAqBlB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAFnB,MAAM,GAAG,SAAS,CAyB9B"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/next",
|
|
3
|
-
"version": "4.0.0-internal.
|
|
3
|
+
"version": "4.0.0-internal.d3909a9",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/payloadcms/payload.git",
|
|
8
|
-
"directory": "packages/next"
|
|
9
|
-
},
|
|
10
5
|
"license": "MIT",
|
|
11
6
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
12
7
|
"maintainers": [
|
|
@@ -16,13 +11,23 @@
|
|
|
16
11
|
"url": "https://payloadcms.com"
|
|
17
12
|
}
|
|
18
13
|
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/payloadcms/payload.git",
|
|
17
|
+
"directory": "packages/next"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
19
23
|
"sideEffects": [
|
|
20
|
-
"*.scss",
|
|
21
24
|
"*.css"
|
|
22
25
|
],
|
|
23
|
-
"
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.js",
|
|
24
28
|
"exports": {
|
|
25
29
|
"./css": {
|
|
30
|
+
"types": "./dist/exports/css.d.ts",
|
|
26
31
|
"import": "./dist/prod/styles.css",
|
|
27
32
|
"default": "./dist/prod/styles.css"
|
|
28
33
|
},
|
|
@@ -41,11 +46,6 @@
|
|
|
41
46
|
"types": "./dist/exports/routes.d.ts",
|
|
42
47
|
"default": "./dist/exports/routes.js"
|
|
43
48
|
},
|
|
44
|
-
"./templates": {
|
|
45
|
-
"import": "./dist/exports/templates.js",
|
|
46
|
-
"types": "./dist/exports/templates.d.ts",
|
|
47
|
-
"default": "./dist/exports/templates.js"
|
|
48
|
-
},
|
|
49
49
|
"./auth": {
|
|
50
50
|
"import": "./dist/exports/auth.js",
|
|
51
51
|
"types": "./dist/exports/auth.d.ts",
|
|
@@ -61,29 +61,13 @@
|
|
|
61
61
|
"types": "./dist/exports/views.d.ts",
|
|
62
62
|
"default": "./dist/exports/views.js"
|
|
63
63
|
},
|
|
64
|
-
"./
|
|
65
|
-
"import": "./dist/
|
|
66
|
-
"
|
|
67
|
-
"default": "./dist/exports/client.js"
|
|
68
|
-
},
|
|
69
|
-
"./rsc": {
|
|
70
|
-
"import": "./dist/exports/rsc.js",
|
|
71
|
-
"types": "./dist/exports/rsc.d.ts",
|
|
72
|
-
"default": "./dist/exports/rsc.js"
|
|
64
|
+
"./withPayload/instantLoader": {
|
|
65
|
+
"import": "./dist/withPayload/instantLoader.js",
|
|
66
|
+
"default": "./dist/withPayload/instantLoader.js"
|
|
73
67
|
}
|
|
74
68
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
"files": [
|
|
78
|
-
"dist"
|
|
79
|
-
],
|
|
80
|
-
"lint-staged": {
|
|
81
|
-
"**/package.json": "sort-package-json",
|
|
82
|
-
"*.{md,mdx,yml,json}": "prettier --write",
|
|
83
|
-
"*.{js,jsx,ts,tsx}": [
|
|
84
|
-
"eslint --flag v10_config_lookup_from_file --cache --fix",
|
|
85
|
-
"prettier --write"
|
|
86
|
-
]
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"registry": "https://registry.npmjs.org/"
|
|
87
71
|
},
|
|
88
72
|
"dependencies": {
|
|
89
73
|
"@dnd-kit/core": "6.3.1",
|
|
@@ -91,17 +75,16 @@
|
|
|
91
75
|
"@dnd-kit/sortable": "10.0.0",
|
|
92
76
|
"busboy": "^1.6.0",
|
|
93
77
|
"dequal": "2.0.3",
|
|
94
|
-
"file-type": "
|
|
95
|
-
"graphql-http": "
|
|
78
|
+
"file-type": "22.0.1",
|
|
79
|
+
"graphql-http": "1.22.4",
|
|
96
80
|
"graphql-playground-html": "1.6.30",
|
|
97
|
-
"http-status": "2.1.0",
|
|
98
81
|
"path-to-regexp": "6.3.0",
|
|
99
82
|
"qs-esm": "8.0.1",
|
|
100
83
|
"sass": "1.77.4",
|
|
101
84
|
"uuid": "14.0.0",
|
|
102
|
-
"@payloadcms/graphql": "4.0.0-internal.
|
|
103
|
-
"@payloadcms/
|
|
104
|
-
"@payloadcms/
|
|
85
|
+
"@payloadcms/graphql": "4.0.0-internal.d3909a9",
|
|
86
|
+
"@payloadcms/translations": "4.0.0-internal.d3909a9",
|
|
87
|
+
"@payloadcms/ui": "4.0.0-internal.d3909a9"
|
|
105
88
|
},
|
|
106
89
|
"devDependencies": {
|
|
107
90
|
"@babel/cli": "7.27.2",
|
|
@@ -109,28 +92,32 @@
|
|
|
109
92
|
"@babel/preset-env": "7.27.2",
|
|
110
93
|
"@babel/preset-react": "7.27.1",
|
|
111
94
|
"@babel/preset-typescript": "7.27.1",
|
|
112
|
-
"@next/eslint-plugin-next": "16.2
|
|
95
|
+
"@next/eslint-plugin-next": "16.4.2",
|
|
113
96
|
"@types/busboy": "1.5.4",
|
|
114
|
-
"@types/react": "19.
|
|
115
|
-
"@types/react-dom": "19.
|
|
97
|
+
"@types/react": "19.3.0",
|
|
98
|
+
"@types/react-dom": "19.3.0",
|
|
116
99
|
"babel-plugin-react-compiler": "19.1.0-rc.3",
|
|
117
100
|
"esbuild": "0.27.1",
|
|
118
101
|
"esbuild-sass-plugin": "3.3.1",
|
|
119
102
|
"swc-plugin-transform-remove-imports": "8.3.0",
|
|
120
|
-
"payload": "4.0.0-internal.
|
|
121
|
-
"@payloadcms/eslint-config": "3.28.0"
|
|
103
|
+
"payload": "4.0.0-internal.d3909a9"
|
|
122
104
|
},
|
|
123
105
|
"peerDependencies": {
|
|
124
106
|
"graphql": "^16.8.1",
|
|
125
|
-
"next": ">=16.
|
|
126
|
-
"payload": "4.0.0-internal.
|
|
107
|
+
"next": ">=16.4.0 <17.0.0",
|
|
108
|
+
"payload": "4.0.0-internal.d3909a9"
|
|
109
|
+
},
|
|
110
|
+
"lint-staged": {
|
|
111
|
+
"*.{cjs,css,cts,graphql,html,json,jsonc,md,mdx,mjs,mts,scss,toml,yaml,yml}": "oxfmt --no-error-on-unmatched-pattern",
|
|
112
|
+
".swcrc": "oxfmt --no-error-on-unmatched-pattern",
|
|
113
|
+
"*.{js,jsx,ts,tsx}": [
|
|
114
|
+
"oxlint -c ../../oxlint.config.ts --fix --no-error-on-unmatched-pattern",
|
|
115
|
+
"oxfmt --no-error-on-unmatched-pattern"
|
|
116
|
+
]
|
|
127
117
|
},
|
|
128
118
|
"engines": {
|
|
129
119
|
"node": ">=24.15.0"
|
|
130
120
|
},
|
|
131
|
-
"publishConfig": {
|
|
132
|
-
"registry": "https://registry.npmjs.org/"
|
|
133
|
-
},
|
|
134
121
|
"scripts": {
|
|
135
122
|
"build": "pnpm build:reactcompiler",
|
|
136
123
|
"build:babel": "rm -rf dist_optimized && babel dist --out-dir dist_optimized --source-maps --extensions .ts,.js,.tsx,.jsx,.cjs,.mjs && rm -rf dist && mv dist_optimized dist",
|
|
@@ -144,9 +131,7 @@
|
|
|
144
131
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
145
132
|
"build:without_reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc && pnpm build:cjs && pnpm build:esbuild",
|
|
146
133
|
"clean": "rimraf -g {dist,*.tsbuildinfo,esbuild}",
|
|
147
|
-
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
148
|
-
"copyfiles:debug": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
|
|
149
|
-
"lint": "eslint .",
|
|
150
|
-
"lint:fix": "eslint . --fix"
|
|
134
|
+
"copyfiles": "copyfiles -u 1 -e \"**/*.spec.*\" \"src/**/*.{html,css,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
135
|
+
"copyfiles:debug": "copyfiles -u 1 -e \"**/*.spec.*\" \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
|
|
151
136
|
}
|
|
152
137
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShouldRenderTabs.d.ts","sourceRoot":"","sources":["../../../../src/elements/DocumentHeader/Tabs/ShouldRenderTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAWA,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useDocumentInfo } from '@payloadcms/ui';
|
|
4
|
-
export const ShouldRenderTabs = t0 => {
|
|
5
|
-
const {
|
|
6
|
-
children
|
|
7
|
-
} = t0;
|
|
8
|
-
const {
|
|
9
|
-
id: idFromContext,
|
|
10
|
-
collectionSlug,
|
|
11
|
-
globalSlug
|
|
12
|
-
} = useDocumentInfo();
|
|
13
|
-
const id = idFromContext !== "create" ? idFromContext : null;
|
|
14
|
-
if (collectionSlug && id || globalSlug) {
|
|
15
|
-
return children;
|
|
16
|
-
}
|
|
17
|
-
return null;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=ShouldRenderTabs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShouldRenderTabs.js","names":["useDocumentInfo","ShouldRenderTabs","t0","children","id","idFromContext","collectionSlug","globalSlug"],"sources":["../../../../src/elements/DocumentHeader/Tabs/ShouldRenderTabs.tsx"],"sourcesContent":["'use client'\nimport type React from 'react'\n\nimport { useDocumentInfo } from '@payloadcms/ui'\n\nexport const ShouldRenderTabs: React.FC<{\n children: React.ReactNode\n}> = ({ children }) => {\n const { id: idFromContext, collectionSlug, globalSlug } = useDocumentInfo()\n\n const id = idFromContext !== 'create' ? idFromContext : null\n\n // Don't show tabs when creating new documents\n if ((collectionSlug && id) || globalSlug) {\n return children\n }\n\n return null\n}\n"],"mappings":"AAAA;;AAGA,SAASA,eAAe,QAAQ;AAEhC,OAAO,MAAMC,gBAAA,GAERC,EAAA;EAAC;IAAAC;EAAA,IAAAD,EAAY;EAChB;IAAAE,EAAA,EAAAC,aAAA;IAAAC,cAAA;IAAAC;EAAA,IAA0DP,eAAA;EAE1D,MAAAI,EAAA,GAAWC,aAAA,KAAkB,WAAWA,aAAA,OAAgB;EAAA,IAGpDC,cAAC,IAAkBF,EAAA,IAAOG,UAAA;IAAA,OACrBJ,QAAA;EAAA;EAAA;AAAA,CAIX","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SanitizedConfig } from 'payload';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const DocumentTabLink: React.FC<{
|
|
4
|
-
adminRoute: SanitizedConfig['routes']['admin'];
|
|
5
|
-
ariaLabel?: string;
|
|
6
|
-
baseClass: string;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
href: string;
|
|
9
|
-
isActive?: boolean;
|
|
10
|
-
newTab?: boolean;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=TabLink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabLink.d.ts","sourceRoot":"","sources":["../../../../../src/elements/DocumentHeader/Tabs/Tab/TabLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,UAAU,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAA;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAwDA,CAAA"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Button } from '@payloadcms/ui';
|
|
6
|
-
import { useParams, usePathname, useSearchParams } from 'next/navigation.js';
|
|
7
|
-
import { formatAdminURL } from 'payload/shared';
|
|
8
|
-
import React from 'react';
|
|
9
|
-
export const DocumentTabLink = t0 => {
|
|
10
|
-
const $ = _c(13);
|
|
11
|
-
const {
|
|
12
|
-
adminRoute,
|
|
13
|
-
ariaLabel,
|
|
14
|
-
baseClass,
|
|
15
|
-
children,
|
|
16
|
-
href: hrefFromProps,
|
|
17
|
-
isActive: isActiveFromProps,
|
|
18
|
-
newTab
|
|
19
|
-
} = t0;
|
|
20
|
-
const pathname = usePathname();
|
|
21
|
-
const params = useParams();
|
|
22
|
-
const searchParams = useSearchParams();
|
|
23
|
-
const locale = searchParams.get("locale");
|
|
24
|
-
const [entityType, entitySlug, segmentThree, segmentFour] = params.segments || [];
|
|
25
|
-
const isCollection = entityType === "collections";
|
|
26
|
-
const t1 = `/${isCollection ? "collections" : "globals"}/${entitySlug}`;
|
|
27
|
-
let t2;
|
|
28
|
-
if ($[0] !== adminRoute || $[1] !== t1) {
|
|
29
|
-
t2 = formatAdminURL({
|
|
30
|
-
adminRoute,
|
|
31
|
-
path: t1
|
|
32
|
-
});
|
|
33
|
-
$[0] = adminRoute;
|
|
34
|
-
$[1] = t1;
|
|
35
|
-
$[2] = t2;
|
|
36
|
-
} else {
|
|
37
|
-
t2 = $[2];
|
|
38
|
-
}
|
|
39
|
-
let docPath = t2;
|
|
40
|
-
if (isCollection) {
|
|
41
|
-
if (segmentThree === "trash" && segmentFour) {
|
|
42
|
-
docPath = docPath + `/trash/${segmentFour}`;
|
|
43
|
-
} else {
|
|
44
|
-
if (segmentThree) {
|
|
45
|
-
docPath = docPath + `/${segmentThree}`;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const href = `${docPath}${hrefFromProps}`;
|
|
50
|
-
const hrefWithLocale = `${href}${locale ? `?locale=${locale}` : ""}`;
|
|
51
|
-
let t3;
|
|
52
|
-
if ($[3] !== ariaLabel || $[4] !== baseClass || $[5] !== children || $[6] !== docPath || $[7] !== href || $[8] !== hrefWithLocale || $[9] !== isActiveFromProps || $[10] !== newTab || $[11] !== pathname) {
|
|
53
|
-
const isActive = href === docPath && pathname === docPath || href !== docPath && pathname.startsWith(href) || isActiveFromProps;
|
|
54
|
-
t3 = _jsx(Button, {
|
|
55
|
-
"aria-label": ariaLabel,
|
|
56
|
-
buttonStyle: "tab",
|
|
57
|
-
className: [baseClass, isActive && `${baseClass}--active`].filter(Boolean).join(" "),
|
|
58
|
-
disabled: isActive,
|
|
59
|
-
el: !isActive || href !== pathname ? "link" : "div",
|
|
60
|
-
margin: false,
|
|
61
|
-
newTab,
|
|
62
|
-
size: "medium",
|
|
63
|
-
to: !isActive || href !== pathname ? hrefWithLocale : undefined,
|
|
64
|
-
children
|
|
65
|
-
});
|
|
66
|
-
$[3] = ariaLabel;
|
|
67
|
-
$[4] = baseClass;
|
|
68
|
-
$[5] = children;
|
|
69
|
-
$[6] = docPath;
|
|
70
|
-
$[7] = href;
|
|
71
|
-
$[8] = hrefWithLocale;
|
|
72
|
-
$[9] = isActiveFromProps;
|
|
73
|
-
$[10] = newTab;
|
|
74
|
-
$[11] = pathname;
|
|
75
|
-
$[12] = t3;
|
|
76
|
-
} else {
|
|
77
|
-
t3 = $[12];
|
|
78
|
-
}
|
|
79
|
-
return t3;
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=TabLink.js.map
|