@payloadcms/next 3.0.0-beta.53 → 3.0.0-beta.55
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/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/getCustomViews.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/getViewConfig.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/tabs/index.js.map +1 -1
- package/dist/elements/DocumentHeader/index.js.map +1 -1
- package/dist/elements/LeaveWithoutSaving/index.js.map +1 -1
- package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -1
- package/dist/elements/Logo/index.js.map +1 -1
- package/dist/elements/Nav/NavHamburger/index.js.map +1 -1
- package/dist/elements/Nav/NavWrapper/index.js.map +1 -1
- package/dist/elements/Nav/index.client.js.map +1 -1
- package/dist/elements/Nav/index.js.map +1 -1
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/routes.js.map +1 -1
- package/dist/exports/templates.js.map +1 -1
- package/dist/exports/utilities.js.map +1 -1
- package/dist/exports/views.js.map +1 -1
- package/dist/fetchAPI-multipart/fileFactory.d.ts +0 -1
- package/dist/fetchAPI-multipart/fileFactory.d.ts.map +1 -1
- package/dist/fetchAPI-multipart/fileFactory.js.map +1 -1
- package/dist/fetchAPI-multipart/handlers.d.ts +0 -1
- package/dist/fetchAPI-multipart/handlers.d.ts.map +1 -1
- package/dist/fetchAPI-multipart/handlers.js.map +1 -1
- package/dist/fetchAPI-multipart/index.d.ts +0 -1
- package/dist/fetchAPI-multipart/index.d.ts.map +1 -1
- package/dist/fetchAPI-multipart/index.js.map +1 -1
- package/dist/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
- package/dist/fetchAPI-multipart/processMultipart.js.map +1 -1
- package/dist/fetchAPI-multipart/processNested.js.map +1 -1
- package/dist/fetchAPI-multipart/uploadTimer.js.map +1 -1
- package/dist/fetchAPI-multipart/utilities.d.ts.map +1 -1
- package/dist/fetchAPI-multipart/utilities.js.map +1 -1
- package/dist/fetchAPI-stream-file/index.d.ts +0 -1
- package/dist/fetchAPI-stream-file/index.d.ts.map +1 -1
- package/dist/fetchAPI-stream-file/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layouts/Root/index.d.ts.map +1 -1
- package/dist/layouts/Root/index.js.map +1 -1
- package/dist/prod/index.js +10 -10
- package/dist/prod/styles.css +1 -1
- package/dist/routes/graphql/handler.d.ts.map +1 -1
- package/dist/routes/graphql/handler.js.map +1 -1
- package/dist/routes/graphql/index.js.map +1 -1
- package/dist/routes/graphql/playground.d.ts.map +1 -1
- package/dist/routes/graphql/playground.js.map +1 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/rest/auth/access.js.map +1 -1
- package/dist/routes/rest/auth/forgotPassword.js.map +1 -1
- package/dist/routes/rest/auth/init.js.map +1 -1
- package/dist/routes/rest/auth/login.js.map +1 -1
- package/dist/routes/rest/auth/logout.js.map +1 -1
- package/dist/routes/rest/auth/me.js.map +1 -1
- package/dist/routes/rest/auth/refresh.js.map +1 -1
- package/dist/routes/rest/auth/registerFirstUser.js.map +1 -1
- package/dist/routes/rest/auth/resetPassword.js.map +1 -1
- package/dist/routes/rest/auth/unlock.js.map +1 -1
- package/dist/routes/rest/auth/verifyEmail.js.map +1 -1
- package/dist/routes/rest/buildFormState.js.map +1 -1
- package/dist/routes/rest/checkEndpoints.d.ts.map +1 -1
- package/dist/routes/rest/checkEndpoints.js.map +1 -1
- package/dist/routes/rest/collections/count.js.map +1 -1
- package/dist/routes/rest/collections/create.js.map +1 -1
- package/dist/routes/rest/collections/delete.js.map +1 -1
- package/dist/routes/rest/collections/deleteByID.js.map +1 -1
- package/dist/routes/rest/collections/docAccess.js.map +1 -1
- package/dist/routes/rest/collections/duplicate.js.map +1 -1
- package/dist/routes/rest/collections/find.js.map +1 -1
- package/dist/routes/rest/collections/findByID.js.map +1 -1
- package/dist/routes/rest/collections/findVersionByID.js.map +1 -1
- package/dist/routes/rest/collections/findVersions.js.map +1 -1
- package/dist/routes/rest/collections/preview.js.map +1 -1
- package/dist/routes/rest/collections/restoreVersion.js.map +1 -1
- package/dist/routes/rest/collections/update.js.map +1 -1
- package/dist/routes/rest/collections/updateByID.js.map +1 -1
- package/dist/routes/rest/files/checkFileAccess.js.map +1 -1
- package/dist/routes/rest/files/getFile.d.ts.map +1 -1
- package/dist/routes/rest/files/getFile.js +8 -6
- package/dist/routes/rest/files/getFile.js.map +1 -1
- package/dist/routes/rest/files/getFileTypeFallback.js.map +1 -1
- package/dist/routes/rest/globals/docAccess.js.map +1 -1
- package/dist/routes/rest/globals/findOne.js.map +1 -1
- package/dist/routes/rest/globals/findVersionByID.js.map +1 -1
- package/dist/routes/rest/globals/findVersions.js.map +1 -1
- package/dist/routes/rest/globals/preview.js.map +1 -1
- package/dist/routes/rest/globals/restoreVersion.js.map +1 -1
- package/dist/routes/rest/globals/update.js.map +1 -1
- package/dist/routes/rest/index.d.ts.map +1 -1
- package/dist/routes/rest/index.js.map +1 -1
- package/dist/routes/rest/og/image.js.map +1 -1
- package/dist/routes/rest/og/index.js.map +1 -1
- package/dist/routes/rest/routeError.d.ts.map +1 -1
- package/dist/routes/rest/routeError.js.map +1 -1
- package/dist/routes/rest/types.js.map +1 -1
- package/dist/routes/rest/utilities/sanitizeCollectionID.js.map +1 -1
- package/dist/templates/Default/NavHamburger/index.js.map +1 -1
- package/dist/templates/Default/Wrapper/index.js.map +1 -1
- package/dist/templates/Default/index.js.map +1 -1
- package/dist/templates/Minimal/index.js.map +1 -1
- package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
- package/dist/utilities/addLocalesToRequest.js.map +1 -1
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +0 -1
- package/dist/utilities/createPayloadRequest.js.map +1 -1
- package/dist/utilities/getNextRequestI18n.d.ts.map +1 -1
- package/dist/utilities/getNextRequestI18n.js.map +1 -1
- package/dist/utilities/getPayloadHMR.d.ts.map +1 -1
- package/dist/utilities/getPayloadHMR.js.map +1 -1
- package/dist/utilities/getRequestLanguage.js.map +1 -1
- package/dist/utilities/getRequestLocales.js.map +1 -1
- package/dist/utilities/getRequestTheme.js.map +1 -1
- package/dist/utilities/headersWithCors.js.map +1 -1
- package/dist/utilities/initPage/handleAdminPage.js.map +1 -1
- package/dist/utilities/initPage/handleAuthRedirect.d.ts +1 -1
- package/dist/utilities/initPage/handleAuthRedirect.d.ts.map +1 -1
- package/dist/utilities/initPage/handleAuthRedirect.js +4 -4
- package/dist/utilities/initPage/handleAuthRedirect.js.map +1 -1
- package/dist/utilities/initPage/index.d.ts.map +1 -1
- package/dist/utilities/initPage/index.js.map +1 -1
- package/dist/utilities/initPage/shared.js.map +1 -1
- package/dist/utilities/initPage/types.js.map +1 -1
- package/dist/utilities/meta.d.ts.map +1 -1
- package/dist/utilities/meta.js +2 -2
- package/dist/utilities/meta.js.map +1 -1
- package/dist/utilities/timestamp.js.map +1 -1
- package/dist/views/API/LocaleSelector/index.js.map +1 -1
- package/dist/views/API/RenderJSON/index.js.map +1 -1
- package/dist/views/API/index.client.d.ts.map +1 -1
- package/dist/views/API/index.client.js +4 -6
- package/dist/views/API/index.client.js.map +1 -1
- package/dist/views/API/index.js.map +1 -1
- package/dist/views/API/meta.js.map +1 -1
- package/dist/views/Account/Settings/LanguageSelector.js.map +1 -1
- package/dist/views/Account/Settings/index.js.map +1 -1
- package/dist/views/Account/ToggleTheme/index.js.map +1 -1
- package/dist/views/Account/index.js.map +1 -1
- package/dist/views/Account/meta.js.map +1 -1
- package/dist/views/CreateFirstUser/index.client.js.map +1 -1
- package/dist/views/CreateFirstUser/index.js.map +1 -1
- package/dist/views/CreateFirstUser/meta.js.map +1 -1
- package/dist/views/Dashboard/Default/index.js.map +1 -1
- package/dist/views/Dashboard/index.js.map +1 -1
- package/dist/views/Dashboard/meta.js.map +1 -1
- package/dist/views/Document/getCustomViewByKey.d.ts +1 -1
- package/dist/views/Document/getCustomViewByKey.js.map +1 -1
- package/dist/views/Document/getCustomViewByRoute.d.ts +1 -1
- package/dist/views/Document/getCustomViewByRoute.js.map +1 -1
- package/dist/views/Document/getDocumentData.d.ts.map +1 -1
- package/dist/views/Document/getDocumentData.js.map +1 -1
- package/dist/views/Document/getDocumentPermissions.d.ts.map +1 -1
- package/dist/views/Document/getDocumentPermissions.js.map +1 -1
- package/dist/views/Document/getMetaBySegment.js.map +1 -1
- package/dist/views/Document/getViewsFromConfig.js.map +1 -1
- package/dist/views/Document/index.d.ts.map +1 -1
- package/dist/views/Document/index.js +16 -11
- package/dist/views/Document/index.js.map +1 -1
- package/dist/views/Document/meta.js.map +1 -1
- package/dist/views/Edit/Default/Auth/APIKey.js.map +1 -1
- package/dist/views/Edit/Default/Auth/index.js.map +1 -1
- package/dist/views/Edit/Default/Auth/types.js.map +1 -1
- package/dist/views/Edit/Default/SetDocumentStepNav/index.d.ts +0 -1
- package/dist/views/Edit/Default/SetDocumentStepNav/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/SetDocumentStepNav/index.js.map +1 -1
- package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts +0 -1
- package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/SetDocumentTitle/index.js.map +1 -1
- package/dist/views/Edit/Default/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/index.js +6 -2
- package/dist/views/Edit/Default/index.js.map +1 -1
- package/dist/views/Edit/Default/types.js.map +1 -1
- package/dist/views/Edit/index.client.js.map +1 -1
- package/dist/views/Edit/index.js.map +1 -1
- package/dist/views/Edit/meta.js.map +1 -1
- package/dist/views/Edit/sanitizeEditViewProps.js.map +1 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +1 -1
- package/dist/views/ForgotPassword/index.js.map +1 -1
- package/dist/views/ForgotPassword/meta.js.map +1 -1
- package/dist/views/List/Default/index.js.map +1 -1
- package/dist/views/List/Default/types.js.map +1 -1
- package/dist/views/List/index.js.map +1 -1
- package/dist/views/List/meta.d.ts.map +1 -1
- package/dist/views/List/meta.js.map +1 -1
- package/dist/views/LivePreview/Context/collisionDetection.js.map +1 -1
- package/dist/views/LivePreview/Context/context.js.map +1 -1
- package/dist/views/LivePreview/Context/index.js.map +1 -1
- package/dist/views/LivePreview/Context/sizeReducer.js.map +1 -1
- package/dist/views/LivePreview/Device/index.js.map +1 -1
- package/dist/views/LivePreview/DeviceContainer/index.js.map +1 -1
- package/dist/views/LivePreview/IFrame/index.js.map +1 -1
- package/dist/views/LivePreview/Preview/index.js.map +1 -1
- package/dist/views/LivePreview/Toolbar/Controls/index.js.map +1 -1
- package/dist/views/LivePreview/Toolbar/SizeInput/index.js.map +1 -1
- package/dist/views/LivePreview/Toolbar/index.js.map +1 -1
- package/dist/views/LivePreview/ToolbarArea/index.js.map +1 -1
- package/dist/views/LivePreview/index.client.js.map +1 -1
- package/dist/views/LivePreview/index.js.map +1 -1
- package/dist/views/LivePreview/meta.js.map +1 -1
- package/dist/views/LivePreview/usePopupWindow.d.ts +1 -1
- package/dist/views/LivePreview/usePopupWindow.d.ts.map +1 -1
- package/dist/views/LivePreview/usePopupWindow.js.map +1 -1
- package/dist/views/Login/LoginForm/index.js.map +1 -1
- package/dist/views/Login/index.js.map +1 -1
- package/dist/views/Login/meta.js.map +1 -1
- package/dist/views/Logout/LogoutClient.js.map +1 -1
- package/dist/views/Logout/index.js.map +1 -1
- package/dist/views/Logout/meta.js.map +1 -1
- package/dist/views/NotFound/index.client.js.map +1 -1
- package/dist/views/NotFound/index.d.ts.map +1 -1
- package/dist/views/NotFound/index.js.map +1 -1
- package/dist/views/NotFound/meta.d.ts.map +1 -1
- package/dist/views/NotFound/meta.js.map +1 -1
- package/dist/views/ResetPassword/index.client.js.map +1 -1
- package/dist/views/ResetPassword/index.js.map +1 -1
- package/dist/views/ResetPassword/meta.js.map +1 -1
- package/dist/views/Root/getCustomViewByRoute.js.map +1 -1
- package/dist/views/Root/getViewFromConfig.d.ts +2 -2
- package/dist/views/Root/getViewFromConfig.d.ts.map +1 -1
- package/dist/views/Root/getViewFromConfig.js.map +1 -1
- package/dist/views/Root/index.d.ts.map +1 -1
- package/dist/views/Root/index.js +6 -1
- package/dist/views/Root/index.js.map +1 -1
- package/dist/views/Root/isPathMatchingRoute.js.map +1 -1
- package/dist/views/Root/meta.js.map +1 -1
- package/dist/views/Unauthorized/index.js.map +1 -1
- package/dist/views/Unauthorized/meta.js.map +1 -1
- package/dist/views/Verify/index.js.map +1 -1
- package/dist/views/Verify/meta.js.map +1 -1
- package/dist/views/Version/Default/SetStepNav.js.map +1 -1
- package/dist/views/Version/Default/index.js.map +1 -1
- package/dist/views/Version/Default/types.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/Label/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +3 -30
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/styles.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/types.js.map +1 -1
- package/dist/views/Version/Restore/index.js.map +1 -1
- package/dist/views/Version/Restore/types.js.map +1 -1
- package/dist/views/Version/SelectComparison/index.js.map +1 -1
- package/dist/views/Version/SelectComparison/types.js.map +1 -1
- package/dist/views/Version/SelectLocales/index.js.map +1 -1
- package/dist/views/Version/SelectLocales/types.js.map +1 -1
- package/dist/views/Version/index.js.map +1 -1
- package/dist/views/Version/meta.js.map +1 -1
- package/dist/views/Version/shared.js.map +1 -1
- package/dist/views/Versions/buildColumns.js.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -1
- package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -1
- package/dist/views/Versions/cells/ID/index.js.map +1 -1
- package/dist/views/Versions/index.client.js.map +1 -1
- package/dist/views/Versions/index.js.map +1 -1
- package/dist/views/Versions/meta.js.map +1 -1
- package/dist/views/Versions/types.js.map +1 -1
- package/dist/webpackEntry.js.map +1 -1
- package/dist/withPayload.d.ts +1 -1
- package/dist/withPayload.js.map +1 -1
- package/package.json +8 -8
- package/dist/elements/DocumentHeader/Tabs/Tab/index.scss +0 -91
- package/dist/elements/DocumentHeader/Tabs/index.scss +0 -53
- package/dist/elements/DocumentHeader/index.scss +0 -51
- package/dist/elements/LeaveWithoutSaving/index.scss +0 -36
- package/dist/elements/Nav/NavWrapper/index.scss +0 -17
- package/dist/elements/Nav/index.scss +0 -150
- package/dist/routes/rest/og/roboto-regular.woff +0 -0
- package/dist/scss/app.scss +0 -208
- package/dist/scss/colors.scss +0 -269
- package/dist/scss/custom.css +0 -1
- package/dist/scss/queries.scss +0 -27
- package/dist/scss/resets.scss +0 -17
- package/dist/scss/styles.scss +0 -11
- package/dist/scss/svg.scss +0 -10
- package/dist/scss/toasts.scss +0 -111
- package/dist/scss/type.scss +0 -117
- package/dist/scss/vars.scss +0 -213
- package/dist/scss/z-index.scss +0 -9
- package/dist/templates/Default/Wrapper/index.scss +0 -25
- package/dist/templates/Default/index.scss +0 -67
- package/dist/templates/Minimal/index.scss +0 -28
- package/dist/views/API/RenderJSON/index.scss +0 -90
- package/dist/views/API/index.scss +0 -124
- package/dist/views/Account/Settings/index.scss +0 -46
- package/dist/views/CreateFirstUser/index.scss +0 -5
- package/dist/views/Dashboard/Default/index.scss +0 -58
- package/dist/views/Edit/Default/Auth/index.scss +0 -61
- package/dist/views/Edit/Default/index.scss +0 -21
- package/dist/views/List/Default/index.scss +0 -195
- package/dist/views/LivePreview/IFrame/index.scss +0 -7
- package/dist/views/LivePreview/Preview/index.scss +0 -41
- package/dist/views/LivePreview/Toolbar/Controls/index.scss +0 -59
- package/dist/views/LivePreview/Toolbar/SizeInput/index.scss +0 -10
- package/dist/views/LivePreview/Toolbar/index.scss +0 -41
- package/dist/views/LivePreview/ToolbarArea/index.scss +0 -4
- package/dist/views/LivePreview/index.scss +0 -66
- package/dist/views/Login/LoginForm/index.scss +0 -8
- package/dist/views/Login/index.scss +0 -8
- package/dist/views/Logout/index.scss +0 -20
- package/dist/views/NotFound/index.scss +0 -37
- package/dist/views/ResetPassword/index.scss +0 -5
- package/dist/views/Unauthorized/index.scss +0 -36
- package/dist/views/Verify/index.scss +0 -14
- package/dist/views/Version/Default/index.scss +0 -70
- package/dist/views/Version/RenderFieldsToDiff/Label/index.scss +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.scss +0 -34
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.scss +0 -12
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.scss +0 -13
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.scss +0 -13
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.scss +0 -13
- package/dist/views/Version/RenderFieldsToDiff/index.scss +0 -18
- package/dist/views/Version/Restore/index.scss +0 -30
- package/dist/views/Version/SelectComparison/index.scss +0 -13
- package/dist/views/Version/SelectLocales/index.scss +0 -7
- package/dist/views/Versions/index.scss +0 -108
package/dist/withPayload.d.ts
CHANGED
package/dist/withPayload.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/withPayload.js"],"sourcesContent":["/**\n * @param {import('next').NextConfig} nextConfig\n *\n * @returns {import('next').NextConfig}\n * */\nexport const withPayload = (nextConfig = {}) => {\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 may cause stale data to load in 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 }\n\n /**\n * @type {import('next').NextConfig}\n */\n const toReturn = {\n ...nextConfig,\n env: {\n ...(nextConfig?.env || {}),\n },\n experimental: {\n ...(nextConfig?.experimental || {}),\n outputFileTracingExcludes: {\n '**/*': [\n ...(nextConfig.experimental?.outputFileTracingExcludes?.['**/*'] || []),\n 'drizzle-kit',\n 'drizzle-kit/payload',\n 'libsql',\n ],\n },\n turbo: {\n ...(nextConfig?.experimental?.turbo || {}),\n resolveAlias: {\n ...(nextConfig?.experimental?.turbo?.resolveAlias || {}),\n 'payload-mock-package': 'payload-mock-package',\n },\n },\n },\n headers: async () => {\n const headersFromConfig = 'headers' in nextConfig ? await nextConfig.headers() : []\n\n return [\n ...(headersFromConfig || []),\n {\n source: '/:path*',\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 ],\n },\n ]\n },\n serverExternalPackages: [\n ...(nextConfig?.serverExternalPackages || []),\n 'drizzle-kit',\n 'drizzle-kit/payload',\n 'libsql',\n 'pino',\n 'pino-pretty',\n 'graphql',\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 'drizzle-kit',\n 'drizzle-kit/payload',\n 'sharp',\n 'libsql',\n ],\n ignoreWarnings: [\n ...(incomingWebpackConfig?.ignoreWarnings || []),\n { module: /node_modules\\/mongodb\\/lib\\/utils\\.js/ },\n { file: /node_modules\\/mongodb\\/lib\\/utils\\.js/ },\n { module: /node_modules\\/mongodb\\/lib\\/bson\\.js/ },\n { file: /node_modules\\/mongodb\\/lib\\/bson\\.js/ },\n ],\n resolve: {\n ...(incomingWebpackConfig?.resolve || {}),\n alias: {\n ...(incomingWebpackConfig?.resolve?.alias || {}),\n },\n fallback: {\n ...(incomingWebpackConfig?.resolve?.fallback || {}),\n '@aws-sdk/credential-providers': false,\n '@mongodb-js/zstd': false,\n aws4: false,\n kerberos: false,\n 'mongodb-client-encryption': false,\n snappy: false,\n 'supports-color': false,\n 'yocto-queue': false,\n },\n },\n }\n },\n }\n\n if (nextConfig.basePath) {\n toReturn.env.NEXT_BASE_PATH = nextConfig.basePath\n }\n\n return toReturn\n}\n\nexport default withPayload\n"],"names":["withPayload","nextConfig","experimental","staleTimes","dynamic","console","warn","toReturn","env","outputFileTracingExcludes","turbo","resolveAlias","headers","headersFromConfig","source","key","value","serverExternalPackages","webpack","webpackConfig","webpackOptions","incomingWebpackConfig","externals","ignoreWarnings","module","file","resolve","alias","fallback","aws4","kerberos","snappy","basePath","NEXT_BASE_PATH"],"
|
|
1
|
+
{"version":3,"sources":["../src/withPayload.js"],"sourcesContent":["/**\n * @param {import('next').NextConfig} nextConfig\n *\n * @returns {import('next').NextConfig}\n * */\nexport const withPayload = (nextConfig = {}) => {\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 may cause stale data to load in 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 }\n\n /**\n * @type {import('next').NextConfig}\n */\n const toReturn = {\n ...nextConfig,\n env: {\n ...(nextConfig?.env || {}),\n },\n experimental: {\n ...(nextConfig?.experimental || {}),\n outputFileTracingExcludes: {\n '**/*': [\n ...(nextConfig.experimental?.outputFileTracingExcludes?.['**/*'] || []),\n 'drizzle-kit',\n 'drizzle-kit/payload',\n 'libsql',\n ],\n },\n turbo: {\n ...(nextConfig?.experimental?.turbo || {}),\n resolveAlias: {\n ...(nextConfig?.experimental?.turbo?.resolveAlias || {}),\n 'payload-mock-package': 'payload-mock-package',\n },\n },\n },\n headers: async () => {\n const headersFromConfig = 'headers' in nextConfig ? await nextConfig.headers() : []\n\n return [\n ...(headersFromConfig || []),\n {\n source: '/:path*',\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 ],\n },\n ]\n },\n serverExternalPackages: [\n ...(nextConfig?.serverExternalPackages || []),\n 'drizzle-kit',\n 'drizzle-kit/payload',\n 'libsql',\n 'pino',\n 'pino-pretty',\n 'graphql',\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 'drizzle-kit',\n 'drizzle-kit/payload',\n 'sharp',\n 'libsql',\n ],\n ignoreWarnings: [\n ...(incomingWebpackConfig?.ignoreWarnings || []),\n { module: /node_modules\\/mongodb\\/lib\\/utils\\.js/ },\n { file: /node_modules\\/mongodb\\/lib\\/utils\\.js/ },\n { module: /node_modules\\/mongodb\\/lib\\/bson\\.js/ },\n { file: /node_modules\\/mongodb\\/lib\\/bson\\.js/ },\n ],\n resolve: {\n ...(incomingWebpackConfig?.resolve || {}),\n alias: {\n ...(incomingWebpackConfig?.resolve?.alias || {}),\n },\n fallback: {\n ...(incomingWebpackConfig?.resolve?.fallback || {}),\n '@aws-sdk/credential-providers': false,\n '@mongodb-js/zstd': false,\n aws4: false,\n kerberos: false,\n 'mongodb-client-encryption': false,\n snappy: false,\n 'supports-color': false,\n 'yocto-queue': false,\n },\n },\n }\n },\n }\n\n if (nextConfig.basePath) {\n toReturn.env.NEXT_BASE_PATH = nextConfig.basePath\n }\n\n return toReturn\n}\n\nexport default withPayload\n"],"names":["withPayload","nextConfig","experimental","staleTimes","dynamic","console","warn","toReturn","env","outputFileTracingExcludes","turbo","resolveAlias","headers","headersFromConfig","source","key","value","serverExternalPackages","webpack","webpackConfig","webpackOptions","incomingWebpackConfig","externals","ignoreWarnings","module","file","resolve","alias","fallback","aws4","kerberos","snappy","basePath","NEXT_BASE_PATH"],"mappings":"AAAA;;;;GAIG,GACH,OAAO,MAAMA,cAAc,CAACC,aAAa,CAAC,CAAC;IACzC,IAAIA,WAAWC,YAAY,EAAEC,YAAYC,SAAS;QAChDC,QAAQC,IAAI,CACV;IAEJ;IAEA;;GAEC,GACD,MAAMC,WAAW;QACf,GAAGN,UAAU;QACbO,KAAK;YACH,GAAIP,YAAYO,OAAO,CAAC,CAAC;QAC3B;QACAN,cAAc;YACZ,GAAID,YAAYC,gBAAgB,CAAC,CAAC;YAClCO,2BAA2B;gBACzB,QAAQ;uBACFR,WAAWC,YAAY,EAAEO,2BAA2B,CAAC,OAAO,IAAI,EAAE;oBACtE;oBACA;oBACA;iBACD;YACH;YACAC,OAAO;gBACL,GAAIT,YAAYC,cAAcQ,SAAS,CAAC,CAAC;gBACzCC,cAAc;oBACZ,GAAIV,YAAYC,cAAcQ,OAAOC,gBAAgB,CAAC,CAAC;oBACvD,wBAAwB;gBAC1B;YACF;QACF;QACAC,SAAS;YACP,MAAMC,oBAAoB,aAAaZ,aAAa,MAAMA,WAAWW,OAAO,KAAK,EAAE;YAEnF,OAAO;mBACDC,qBAAqB,EAAE;gBAC3B;oBACEC,QAAQ;oBACRF,SAAS;wBACP;4BACEG,KAAK;4BACLC,OAAO;wBACT;wBACA;4BACED,KAAK;4BACLC,OAAO;wBACT;wBACA;4BACED,KAAK;4BACLC,OAAO;wBACT;qBACD;gBACH;aACD;QACH;QACAC,wBAAwB;eAClBhB,YAAYgB,0BAA0B,EAAE;YAC5C;YACA;YACA;YACA;YACA;YACA;SACD;QACDC,SAAS,CAACC,eAAeC;YACvB,MAAMC,wBACJ,OAAOpB,WAAWiB,OAAO,KAAK,aAC1BjB,WAAWiB,OAAO,CAACC,eAAeC,kBAClCD;YAEN,OAAO;gBACL,GAAGE,qBAAqB;gBACxBC,WAAW;uBACLD,uBAAuBC,aAAa,EAAE;oBAC1C;oBACA;oBACA;oBACA;iBACD;gBACDC,gBAAgB;uBACVF,uBAAuBE,kBAAkB,EAAE;oBAC/C;wBAAEC,QAAQ;oBAAwC;oBAClD;wBAAEC,MAAM;oBAAwC;oBAChD;wBAAED,QAAQ;oBAAuC;oBACjD;wBAAEC,MAAM;oBAAuC;iBAChD;gBACDC,SAAS;oBACP,GAAIL,uBAAuBK,WAAW,CAAC,CAAC;oBACxCC,OAAO;wBACL,GAAIN,uBAAuBK,SAASC,SAAS,CAAC,CAAC;oBACjD;oBACAC,UAAU;wBACR,GAAIP,uBAAuBK,SAASE,YAAY,CAAC,CAAC;wBAClD,iCAAiC;wBACjC,oBAAoB;wBACpBC,MAAM;wBACNC,UAAU;wBACV,6BAA6B;wBAC7BC,QAAQ;wBACR,kBAAkB;wBAClB,eAAe;oBACjB;gBACF;YACF;QACF;IACF;IAEA,IAAI9B,WAAW+B,QAAQ,EAAE;QACvBzB,SAASC,GAAG,CAACyB,cAAc,GAAGhC,WAAW+B,QAAQ;IACnD;IAEA,OAAOzB;AACT,EAAC;AAED,eAAeP,YAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/next",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.55",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"graphql-playground-html": "1.6.30",
|
|
58
58
|
"http-status": "1.6.2",
|
|
59
59
|
"path-to-regexp": "^6.2.1",
|
|
60
|
-
"qs": "6.
|
|
60
|
+
"qs": "6.12.1",
|
|
61
61
|
"react-diff-viewer-continued": "3.2.6",
|
|
62
62
|
"sass": "1.77.4",
|
|
63
63
|
"sonner": "^1.5.0",
|
|
64
64
|
"ws": "^8.16.0",
|
|
65
|
-
"@payloadcms/graphql": "3.0.0-beta.
|
|
66
|
-
"@payloadcms/
|
|
67
|
-
"@payloadcms/
|
|
65
|
+
"@payloadcms/graphql": "3.0.0-beta.55",
|
|
66
|
+
"@payloadcms/translations": "3.0.0-beta.55",
|
|
67
|
+
"@payloadcms/ui": "3.0.0-beta.55"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@next/eslint-plugin-next": "^14.1.0",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"terser-webpack-plugin": "^5.3.10",
|
|
84
84
|
"webpack": "^5.78.0",
|
|
85
85
|
"webpack-cli": "^5.1.4",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
86
|
+
"@payloadcms/eslint-config": "1.1.1",
|
|
87
|
+
"payload": "3.0.0-beta.55"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"graphql": "^16.8.1",
|
|
91
91
|
"next": "^15.0.0-rc.0",
|
|
92
|
-
"payload": "3.0.0-beta.
|
|
92
|
+
"payload": "3.0.0-beta.55"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": "^18.20.2 || >=20.9.0"
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
@import '../../../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.doc-tab {
|
|
4
|
-
@extend %h5;
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
&__link {
|
|
8
|
-
text-decoration: none;
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
white-space: nowrap;
|
|
13
|
-
|
|
14
|
-
// Use a pseudo element for the accessability so that it doesn't take up DOM space
|
|
15
|
-
// Also because the parent element has `overflow: hidden` which would clip an outline
|
|
16
|
-
&:focus-visible::after {
|
|
17
|
-
content: '';
|
|
18
|
-
border: var(--accessibility-outline);
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
right: 0;
|
|
22
|
-
bottom: 0;
|
|
23
|
-
left: 0;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:focus:not(:focus-visible) {
|
|
29
|
-
opacity: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&::before {
|
|
33
|
-
content: '';
|
|
34
|
-
display: block;
|
|
35
|
-
position: absolute;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
border-radius: 2px;
|
|
39
|
-
background-color: var(--theme-elevation-50);
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
&::before {
|
|
45
|
-
opacity: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.doc-tab__count {
|
|
49
|
-
background-color: var(--theme-elevation-150);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--active {
|
|
54
|
-
&::before {
|
|
55
|
-
opacity: 1;
|
|
56
|
-
background-color: var(--theme-elevation-100);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.doc-tab {
|
|
60
|
-
&__count {
|
|
61
|
-
background-color: var(--theme-elevation-250);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
.doc-tab {
|
|
67
|
-
&__count {
|
|
68
|
-
background-color: var(--theme-elevation-250);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&__label {
|
|
75
|
-
display: flex;
|
|
76
|
-
position: relative;
|
|
77
|
-
align-items: center;
|
|
78
|
-
gap: 4px;
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
padding: calc(var(--base) / 2) calc(var(--base));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&__count {
|
|
85
|
-
min-width: 22px;
|
|
86
|
-
text-align: center;
|
|
87
|
-
padding: 2px 7px;
|
|
88
|
-
background-color: var(--theme-elevation-100);
|
|
89
|
-
border-radius: 1px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
@import '../../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.doc-tabs {
|
|
4
|
-
display: flex;
|
|
5
|
-
|
|
6
|
-
&__tabs {
|
|
7
|
-
display: flex;
|
|
8
|
-
gap: calc(var(--base) / 2);
|
|
9
|
-
list-style: none;
|
|
10
|
-
align-items: center;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding-left: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include mid-break {
|
|
16
|
-
width: 100%;
|
|
17
|
-
padding: 0;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
|
|
20
|
-
// this container has a gradient overlay as visual indication of `overflow: scroll`
|
|
21
|
-
&::-webkit-scrollbar {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&::after {
|
|
26
|
-
content: '';
|
|
27
|
-
display: block;
|
|
28
|
-
position: sticky;
|
|
29
|
-
right: 0;
|
|
30
|
-
width: calc(var(--base) * 2);
|
|
31
|
-
height: calc(var(--base) * 2);
|
|
32
|
-
background: linear-gradient(to right, transparent, var(--theme-bg));
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
z-index: 1111;
|
|
35
|
-
pointer-events: none;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__tabs {
|
|
39
|
-
padding: 0;
|
|
40
|
-
margin-left: var(--gutter-h);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@include small-break {
|
|
45
|
-
&__tabs-container {
|
|
46
|
-
margin-right: var(--gutter-h);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&__tabs {
|
|
50
|
-
gap: var(--gutter-h);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
@import '../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.doc-header {
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: base(0.5);
|
|
6
|
-
padding-bottom: calc(var(--base) * 1.5);
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
position: relative;
|
|
10
|
-
display: flex;
|
|
11
|
-
gap: calc(var(--base) / 2);
|
|
12
|
-
|
|
13
|
-
&::after {
|
|
14
|
-
content: '';
|
|
15
|
-
display: block;
|
|
16
|
-
position: absolute;
|
|
17
|
-
height: 1px;
|
|
18
|
-
background: var(--theme-elevation-100);
|
|
19
|
-
width: 100%;
|
|
20
|
-
left: 0;
|
|
21
|
-
top: calc(100% - 1px);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__title {
|
|
25
|
-
flex-grow: 1;
|
|
26
|
-
white-space: nowrap;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
margin: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@include mid-break {
|
|
33
|
-
padding-left: 0;
|
|
34
|
-
padding-right: 0;
|
|
35
|
-
margin-top: base(0.25);
|
|
36
|
-
padding-bottom: calc(var(--base) / 1.5);
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: calc(var(--base) / 2);
|
|
39
|
-
padding-bottom: calc(var(--base) / 2);
|
|
40
|
-
|
|
41
|
-
&__title {
|
|
42
|
-
width: 100%;
|
|
43
|
-
padding-left: var(--gutter-h);
|
|
44
|
-
padding-right: var(--gutter-h);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@include small-break {
|
|
49
|
-
margin-top: 0;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@import '../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.leave-without-saving {
|
|
4
|
-
@include blur-bg;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 100%;
|
|
9
|
-
|
|
10
|
-
&__wrapper {
|
|
11
|
-
z-index: 1;
|
|
12
|
-
position: relative;
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
gap: var(--base);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__content {
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
gap: var(--base);
|
|
22
|
-
|
|
23
|
-
> * {
|
|
24
|
-
margin: 0;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&__controls {
|
|
29
|
-
display: flex;
|
|
30
|
-
gap: var(--base);
|
|
31
|
-
|
|
32
|
-
.btn {
|
|
33
|
-
margin: 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@import '../../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.nav {
|
|
4
|
-
position: sticky;
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
width: var(--nav-width);
|
|
10
|
-
border-right: 1px solid var(--theme-elevation-100);
|
|
11
|
-
opacity: 0;
|
|
12
|
-
transition: opacity var(--nav-trans-time) ease-in-out;
|
|
13
|
-
|
|
14
|
-
&--nav-open {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
@import '../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.nav {
|
|
4
|
-
position: sticky;
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
width: var(--nav-width);
|
|
10
|
-
border-right: 1px solid var(--theme-elevation-100);
|
|
11
|
-
opacity: 0;
|
|
12
|
-
transition: opacity var(--nav-trans-time) ease-in-out;
|
|
13
|
-
|
|
14
|
-
&--nav-open {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__header {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: var(--app-header-height);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__header-content {
|
|
26
|
-
z-index: 1;
|
|
27
|
-
position: relative;
|
|
28
|
-
height: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__mobile-close {
|
|
32
|
-
display: none;
|
|
33
|
-
background: none;
|
|
34
|
-
border: 0;
|
|
35
|
-
outline: 0;
|
|
36
|
-
padding: calc(var(--base) * 0.75) var(--gutter-h);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__scroll {
|
|
40
|
-
height: 100%;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
padding: var(--app-header-height) base(1) base(2) base(1);
|
|
44
|
-
overflow-y: auto;
|
|
45
|
-
|
|
46
|
-
// remove the scrollbar here to prevent layout shift as nav groups are toggled
|
|
47
|
-
&::-webkit-scrollbar {
|
|
48
|
-
display: none;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__wrap {
|
|
53
|
-
width: 100%;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
align-items: flex-start;
|
|
57
|
-
flex-grow: 1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__label {
|
|
61
|
-
color: var(--theme-elevation-400);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&__controls {
|
|
65
|
-
margin-top: auto;
|
|
66
|
-
margin-bottom: 0;
|
|
67
|
-
|
|
68
|
-
> * {
|
|
69
|
-
margin-top: base(1);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
a:focus-visible {
|
|
73
|
-
outline: var(--accessibility-outline);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__log-out {
|
|
78
|
-
&:hover {
|
|
79
|
-
g {
|
|
80
|
-
transform: translateX(-#{base(0.125)});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
nav {
|
|
86
|
-
a {
|
|
87
|
-
position: relative;
|
|
88
|
-
padding: base(0.125) base(1.5) base(0.125) 0;
|
|
89
|
-
display: flex;
|
|
90
|
-
text-decoration: none;
|
|
91
|
-
|
|
92
|
-
&:focus:not(:focus-visible) {
|
|
93
|
-
box-shadow: none;
|
|
94
|
-
font-weight: 600;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&:hover,
|
|
98
|
-
&:focus-visible {
|
|
99
|
-
text-decoration: underline;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.active {
|
|
103
|
-
font-weight: normal;
|
|
104
|
-
padding-left: 0;
|
|
105
|
-
font-weight: 600;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&__link {
|
|
111
|
-
display: flex;
|
|
112
|
-
align-items: center;
|
|
113
|
-
|
|
114
|
-
&.active {
|
|
115
|
-
.nav__link-icon {
|
|
116
|
-
display: block;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&__link-icon {
|
|
122
|
-
display: none;
|
|
123
|
-
margin-right: calc(var(--base) * 0.25);
|
|
124
|
-
top: -1px;
|
|
125
|
-
position: relative;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@include mid-break {
|
|
129
|
-
&__scroll {
|
|
130
|
-
padding: var(--app-header-height) base(0.5) base(2);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@include small-break {
|
|
135
|
-
&__scroll {
|
|
136
|
-
padding: var(--app-header-height) var(--gutter-h) base(2);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
nav a {
|
|
140
|
-
font-size: base(0.875);
|
|
141
|
-
line-height: base(1.5);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&__mobile-close {
|
|
145
|
-
display: flex;
|
|
146
|
-
height: 100%;
|
|
147
|
-
align-items: center;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
Binary file
|
package/dist/scss/app.scss
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
@import './styles.scss';
|
|
2
|
-
@import './toasts.scss';
|
|
3
|
-
@import './colors.scss';
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--base-px: 25;
|
|
7
|
-
--base-body-size: 13;
|
|
8
|
-
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
|
|
9
|
-
|
|
10
|
-
--breakpoint-xs-width: #{$breakpoint-xs-width};
|
|
11
|
-
--breakpoint-s-width: #{$breakpoint-s-width};
|
|
12
|
-
--breakpoint-m-width: #{$breakpoint-m-width};
|
|
13
|
-
--breakpoint-l-width: #{$breakpoint-l-width};
|
|
14
|
-
--scrollbar-width: 17px;
|
|
15
|
-
|
|
16
|
-
--theme-bg: var(--theme-elevation-0);
|
|
17
|
-
--theme-input-bg: var(--theme-elevation-0);
|
|
18
|
-
--theme-text: var(--theme-elevation-800);
|
|
19
|
-
--theme-overlay: rgba(5, 5, 5, 0.5);
|
|
20
|
-
--theme-baseline: #{$baseline-px};
|
|
21
|
-
--theme-baseline-body-size: #{$baseline-body-size};
|
|
22
|
-
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
23
|
-
sans-serif;
|
|
24
|
-
--font-mono: monospace;
|
|
25
|
-
|
|
26
|
-
--style-radius-s: #{$style-radius-s};
|
|
27
|
-
--style-radius-m: #{$style-radius-m};
|
|
28
|
-
--style-radius-l: #{$style-radius-l};
|
|
29
|
-
|
|
30
|
-
--z-popup: 10;
|
|
31
|
-
--z-nav: 20;
|
|
32
|
-
--z-modal: 30;
|
|
33
|
-
--z-status: 40;
|
|
34
|
-
|
|
35
|
-
--accessibility-outline: 2px solid var(--theme-text);
|
|
36
|
-
--accessibility-outline-offset: 2px;
|
|
37
|
-
|
|
38
|
-
--gutter-h: #{base(3)};
|
|
39
|
-
--spacing-view-bottom: var(--gutter-h);
|
|
40
|
-
--app-header-height: calc(var(--base) * 3);
|
|
41
|
-
--doc-controls-height: calc(var(--base) * 3);
|
|
42
|
-
--nav-width: 275px;
|
|
43
|
-
--nav-trans-time: 150ms;
|
|
44
|
-
|
|
45
|
-
@include mid-break {
|
|
46
|
-
--gutter-h: #{base(2)};
|
|
47
|
-
--app-header-height: calc(var(--base) * 2);
|
|
48
|
-
--doc-controls-height: calc(var(--base) * 2.5);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@include small-break {
|
|
52
|
-
--gutter-h: #{base(0.5)};
|
|
53
|
-
--spacing-view-bottom: calc(var(--base) * 2);
|
|
54
|
-
--nav-width: 100vw;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/////////////////////////////
|
|
59
|
-
// GLOBAL STYLES
|
|
60
|
-
/////////////////////////////
|
|
61
|
-
|
|
62
|
-
* {
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
html {
|
|
67
|
-
@extend %body;
|
|
68
|
-
background: var(--theme-bg);
|
|
69
|
-
-webkit-font-smoothing: antialiased;
|
|
70
|
-
opacity: 0;
|
|
71
|
-
|
|
72
|
-
&[data-theme='dark'],
|
|
73
|
-
&[data-theme='light'] {
|
|
74
|
-
opacity: initial;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&[data-theme='dark'] {
|
|
78
|
-
--theme-bg: var(--theme-elevation-0);
|
|
79
|
-
--theme-text: var(--theme-elevation-1000);
|
|
80
|
-
--theme-input-bg: var(--theme-elevation-50);
|
|
81
|
-
--theme-overlay: rgba(5, 5, 5, 0.75);
|
|
82
|
-
color-scheme: dark;
|
|
83
|
-
|
|
84
|
-
::selection {
|
|
85
|
-
color: var(--color-base-1000);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
::-moz-selection {
|
|
89
|
-
color: var(--color-base-1000);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@include mid-break {
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
html,
|
|
99
|
-
body,
|
|
100
|
-
#app {
|
|
101
|
-
height: 100%;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
body {
|
|
105
|
-
font-family: var(--font-body);
|
|
106
|
-
font-weight: 400;
|
|
107
|
-
color: var(--theme-text);
|
|
108
|
-
margin: 0;
|
|
109
|
-
// this is for the nav to be able to push the document over
|
|
110
|
-
overflow-x: hidden;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
::selection {
|
|
114
|
-
background: var(--theme-success-500);
|
|
115
|
-
color: var(--theme-base-800);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
::-moz-selection {
|
|
119
|
-
background: var(--theme-success-500);
|
|
120
|
-
color: var(--theme-base-800);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
img {
|
|
124
|
-
max-width: 100%;
|
|
125
|
-
height: auto;
|
|
126
|
-
display: block;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
h1 {
|
|
130
|
-
@extend %h1;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
h2 {
|
|
134
|
-
@extend %h2;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
h3 {
|
|
138
|
-
@extend %h3;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
h4 {
|
|
142
|
-
@extend %h4;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
h5 {
|
|
146
|
-
@extend %h5;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
h6 {
|
|
150
|
-
@extend %h6;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
p {
|
|
154
|
-
margin: 0 0 $baseline;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
ul,
|
|
158
|
-
ol {
|
|
159
|
-
padding-left: $baseline;
|
|
160
|
-
margin: 0 0 $baseline;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:focus-visible {
|
|
164
|
-
outline: var(--accessibility-outline);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
a {
|
|
168
|
-
color: currentColor;
|
|
169
|
-
|
|
170
|
-
&:focus {
|
|
171
|
-
&:not(:focus-visible) {
|
|
172
|
-
opacity: 0.8;
|
|
173
|
-
}
|
|
174
|
-
outline: none;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:active {
|
|
178
|
-
opacity: 0.7;
|
|
179
|
-
outline: none;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
svg {
|
|
184
|
-
vertical-align: middle;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
dialog {
|
|
188
|
-
width: 100%;
|
|
189
|
-
border: 0;
|
|
190
|
-
padding: 0;
|
|
191
|
-
color: currentColor;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.payload__modal-item {
|
|
195
|
-
min-height: 100%;
|
|
196
|
-
background: transparent;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.payload__modal-container--enterDone {
|
|
200
|
-
overflow: auto;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.payload__modal-item--enter,
|
|
204
|
-
.payload__modal-item--enterDone {
|
|
205
|
-
z-index: var(--z-modal);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// @import '~payload-user-css'; TODO: re-enable this
|