@payloadcms/next 3.0.0-alpha.5 → 3.0.0-alpha.50
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.js +2 -12
- package/dist/config.js.map +1 -0
- package/dist/elements/LeaveWithoutSaving/index.js +25 -76
- package/dist/elements/LeaveWithoutSaving/index.js.map +1 -0
- package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +11 -29
- package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -0
- package/dist/exports/layouts.d.ts +2 -0
- package/dist/exports/layouts.d.ts.map +1 -0
- package/dist/exports/layouts.js +3 -0
- package/dist/exports/layouts.js.map +1 -0
- package/dist/exports/routes.d.ts +3 -0
- package/dist/exports/routes.d.ts.map +1 -0
- package/dist/exports/routes.js +4 -0
- package/dist/exports/routes.js.map +1 -0
- package/dist/exports/utilities.d.ts +2 -0
- package/dist/exports/utilities.d.ts.map +1 -0
- package/dist/exports/utilities.js +3 -0
- package/dist/exports/utilities.js.map +1 -0
- package/dist/exports/views.d.ts +4 -0
- package/dist/exports/views.d.ts.map +1 -0
- package/dist/exports/views.js +5 -0
- package/dist/exports/views.js.map +1 -0
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -0
- package/dist/layouts/Root/index.d.ts.map +1 -1
- package/dist/layouts/Root/index.js +39 -55
- package/dist/layouts/Root/index.js.map +1 -0
- package/dist/next-fileupload/fileFactory.d.ts +2 -2
- package/dist/next-fileupload/fileFactory.d.ts.map +1 -1
- package/dist/next-fileupload/fileFactory.js +9 -19
- package/dist/next-fileupload/fileFactory.js.map +1 -0
- package/dist/next-fileupload/handlers.d.ts +2 -2
- package/dist/next-fileupload/handlers.d.ts.map +1 -1
- package/dist/next-fileupload/handlers.js +25 -89
- package/dist/next-fileupload/handlers.js.map +1 -0
- package/dist/next-fileupload/index.d.ts +1 -1
- package/dist/next-fileupload/index.js +10 -25
- package/dist/next-fileupload/index.js.map +1 -0
- package/dist/next-fileupload/isEligibleRequest.js +2 -12
- package/dist/next-fileupload/isEligibleRequest.js.map +1 -0
- package/dist/next-fileupload/processMultipart.d.ts +1 -1
- package/dist/next-fileupload/processMultipart.d.ts.map +1 -1
- package/dist/next-fileupload/processMultipart.js +33 -46
- package/dist/next-fileupload/processMultipart.js.map +1 -0
- package/dist/next-fileupload/processNested.js +4 -14
- package/dist/next-fileupload/processNested.js.map +1 -0
- package/dist/next-fileupload/uploadTimer.js +2 -12
- package/dist/next-fileupload/uploadTimer.js.map +1 -0
- package/dist/next-fileupload/utilities.d.ts +1 -1
- package/dist/next-fileupload/utilities.d.ts.map +1 -1
- package/dist/next-fileupload/utilities.js +31 -76
- package/dist/next-fileupload/utilities.js.map +1 -0
- package/dist/next-stream-file/index.d.ts +4 -0
- package/dist/next-stream-file/index.d.ts.map +1 -1
- package/dist/next-stream-file/index.js +6 -21
- package/dist/next-stream-file/index.js.map +1 -0
- package/dist/prod/payload/SuisseIntl-Bold.woff +0 -0
- package/dist/prod/payload/SuisseIntl-Bold.woff2 +0 -0
- package/dist/prod/payload/SuisseIntl-Medium.woff +0 -0
- package/dist/prod/payload/SuisseIntl-Medium.woff2 +0 -0
- package/dist/prod/payload/SuisseIntl-SemiBold.woff +0 -0
- package/dist/prod/payload/SuisseIntl-SemiBold.woff2 +0 -0
- package/dist/prod/payload/SuisseIntl.woff +0 -0
- package/dist/prod/payload/SuisseIntl.woff2 +0 -0
- package/dist/prod/payload/favicon.svg +15 -0
- package/dist/prod/payload/merriweather-v30-latin-900.woff +0 -0
- package/dist/prod/payload/merriweather-v30-latin-900.woff2 +0 -0
- package/dist/prod/payload/merriweather-v30-latin-900italic.woff +0 -0
- package/dist/prod/payload/merriweather-v30-latin-900italic.woff2 +0 -0
- package/dist/prod/payload/merriweather-v30-latin-italic.woff +0 -0
- package/dist/prod/payload/merriweather-v30-latin-italic.woff2 +0 -0
- package/dist/prod/payload/merriweather-v30-latin-regular.woff +0 -0
- package/dist/prod/payload/merriweather-v30-latin-regular.woff2 +0 -0
- package/dist/prod/payload/og-image.png +0 -0
- package/dist/prod/styles.css +1 -0
- package/dist/routes/graphql/handler.d.ts.map +1 -1
- package/dist/routes/graphql/handler.js +19 -36
- package/dist/routes/graphql/handler.js.map +1 -0
- package/dist/routes/graphql/index.d.ts +2 -2
- package/dist/routes/graphql/index.d.ts.map +1 -1
- package/dist/routes/graphql/index.js +3 -21
- package/dist/routes/graphql/index.js.map +1 -0
- package/dist/routes/graphql/playground.js +6 -16
- package/dist/routes/graphql/playground.js.map +1 -0
- package/dist/routes/index.d.ts +2 -3
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +3 -37
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/rest/auth/access.d.ts +1 -1
- package/dist/routes/rest/auth/access.d.ts.map +1 -1
- package/dist/routes/rest/auth/access.js +6 -21
- package/dist/routes/rest/auth/access.js.map +1 -0
- package/dist/routes/rest/auth/forgotPassword.d.ts +1 -1
- package/dist/routes/rest/auth/forgotPassword.d.ts.map +1 -1
- package/dist/routes/rest/auth/forgotPassword.js +6 -21
- package/dist/routes/rest/auth/forgotPassword.js.map +1 -0
- package/dist/routes/rest/auth/init.d.ts +1 -1
- package/dist/routes/rest/auth/init.d.ts.map +1 -1
- package/dist/routes/rest/auth/init.js +4 -14
- package/dist/routes/rest/auth/init.js.map +1 -0
- package/dist/routes/rest/auth/login.d.ts +1 -1
- package/dist/routes/rest/auth/login.d.ts.map +1 -1
- package/dist/routes/rest/auth/login.js +10 -25
- package/dist/routes/rest/auth/login.js.map +1 -0
- package/dist/routes/rest/auth/logout.d.ts +1 -1
- package/dist/routes/rest/auth/logout.d.ts.map +1 -1
- package/dist/routes/rest/auth/logout.js +9 -24
- package/dist/routes/rest/auth/logout.js.map +1 -0
- package/dist/routes/rest/auth/me.d.ts +1 -1
- package/dist/routes/rest/auth/me.d.ts.map +1 -1
- package/dist/routes/rest/auth/me.js +8 -23
- package/dist/routes/rest/auth/me.js.map +1 -0
- package/dist/routes/rest/auth/refresh.d.ts +1 -1
- package/dist/routes/rest/auth/refresh.d.ts.map +1 -1
- package/dist/routes/rest/auth/refresh.js +11 -25
- package/dist/routes/rest/auth/refresh.js.map +1 -0
- package/dist/routes/rest/auth/registerFirstUser.d.ts +1 -1
- package/dist/routes/rest/auth/registerFirstUser.d.ts.map +1 -1
- package/dist/routes/rest/auth/registerFirstUser.js +12 -25
- package/dist/routes/rest/auth/registerFirstUser.js.map +1 -0
- package/dist/routes/rest/auth/resetPassword.d.ts +1 -1
- package/dist/routes/rest/auth/resetPassword.d.ts.map +1 -1
- package/dist/routes/rest/auth/resetPassword.js +8 -23
- package/dist/routes/rest/auth/resetPassword.js.map +1 -0
- package/dist/routes/rest/auth/unlock.d.ts +1 -1
- package/dist/routes/rest/auth/unlock.d.ts.map +1 -1
- package/dist/routes/rest/auth/unlock.js +6 -21
- package/dist/routes/rest/auth/unlock.js.map +1 -0
- package/dist/routes/rest/auth/verifyEmail.d.ts +1 -1
- package/dist/routes/rest/auth/verifyEmail.d.ts.map +1 -1
- package/dist/routes/rest/auth/verifyEmail.js +6 -21
- package/dist/routes/rest/auth/verifyEmail.js.map +1 -0
- package/dist/routes/rest/buildFormState.d.ts +1 -1
- package/dist/routes/rest/buildFormState.d.ts.map +1 -1
- package/dist/routes/rest/buildFormState.js +141 -79
- package/dist/routes/rest/buildFormState.js.map +1 -0
- package/dist/routes/rest/checkEndpoints.d.ts.map +1 -1
- package/dist/routes/rest/checkEndpoints.js +4 -19
- package/dist/routes/rest/checkEndpoints.js.map +1 -0
- package/dist/routes/rest/collections/create.d.ts +1 -1
- package/dist/routes/rest/collections/create.d.ts.map +1 -1
- package/dist/routes/rest/collections/create.js +10 -24
- package/dist/routes/rest/collections/create.js.map +1 -0
- package/dist/routes/rest/collections/delete.d.ts +1 -1
- package/dist/routes/rest/collections/delete.d.ts.map +1 -1
- package/dist/routes/rest/collections/delete.js +13 -31
- package/dist/routes/rest/collections/delete.js.map +1 -0
- package/dist/routes/rest/collections/deleteByID.d.ts +1 -1
- package/dist/routes/rest/collections/deleteByID.d.ts.map +1 -1
- package/dist/routes/rest/collections/deleteByID.js +9 -24
- package/dist/routes/rest/collections/deleteByID.js.map +1 -0
- package/dist/routes/rest/collections/docAccess.d.ts +1 -1
- package/dist/routes/rest/collections/docAccess.d.ts.map +1 -1
- package/dist/routes/rest/collections/docAccess.js +6 -21
- package/dist/routes/rest/collections/docAccess.js.map +1 -0
- package/dist/routes/rest/collections/duplicate.d.ts +3 -0
- package/dist/routes/rest/collections/duplicate.d.ts.map +1 -0
- package/dist/routes/rest/collections/duplicate.js +28 -0
- package/dist/routes/rest/collections/duplicate.js.map +1 -0
- package/dist/routes/rest/collections/find.d.ts +1 -1
- package/dist/routes/rest/collections/find.d.ts.map +1 -1
- package/dist/routes/rest/collections/find.js +11 -29
- package/dist/routes/rest/collections/find.js.map +1 -0
- package/dist/routes/rest/collections/findByID.d.ts +1 -1
- package/dist/routes/rest/collections/findByID.d.ts.map +1 -1
- package/dist/routes/rest/collections/findByID.js +8 -23
- package/dist/routes/rest/collections/findByID.js.map +1 -0
- package/dist/routes/rest/collections/findVersionByID.d.ts +1 -1
- package/dist/routes/rest/collections/findVersionByID.d.ts.map +1 -1
- package/dist/routes/rest/collections/findVersionByID.js +8 -23
- package/dist/routes/rest/collections/findVersionByID.js.map +1 -0
- package/dist/routes/rest/collections/findVersions.d.ts +1 -1
- package/dist/routes/rest/collections/findVersions.d.ts.map +1 -1
- package/dist/routes/rest/collections/findVersions.js +11 -29
- package/dist/routes/rest/collections/findVersions.js.map +1 -0
- package/dist/routes/rest/collections/preview.d.ts +3 -0
- package/dist/routes/rest/collections/preview.d.ts.map +1 -0
- package/dist/routes/rest/collections/preview.js +36 -0
- package/dist/routes/rest/collections/preview.js.map +1 -0
- package/dist/routes/rest/collections/restoreVersion.d.ts +1 -1
- package/dist/routes/rest/collections/restoreVersion.d.ts.map +1 -1
- package/dist/routes/rest/collections/restoreVersion.js +8 -23
- package/dist/routes/rest/collections/restoreVersion.js.map +1 -0
- package/dist/routes/rest/collections/update.d.ts +1 -1
- package/dist/routes/rest/collections/update.d.ts.map +1 -1
- package/dist/routes/rest/collections/update.js +13 -31
- package/dist/routes/rest/collections/update.js.map +1 -0
- package/dist/routes/rest/collections/updateByID.d.ts +1 -1
- package/dist/routes/rest/collections/updateByID.d.ts.map +1 -1
- package/dist/routes/rest/collections/updateByID.js +8 -23
- package/dist/routes/rest/collections/updateByID.js.map +1 -0
- package/dist/routes/rest/files/checkFileAccess.d.ts +7 -0
- package/dist/routes/rest/files/checkFileAccess.d.ts.map +1 -0
- package/dist/routes/rest/files/checkFileAccess.js +50 -0
- package/dist/routes/rest/files/checkFileAccess.js.map +1 -0
- package/dist/routes/rest/files/getFile.d.ts +9 -0
- package/dist/routes/rest/files/getFile.d.ts.map +1 -0
- package/dist/routes/rest/files/getFile.js +52 -0
- package/dist/routes/rest/files/getFile.js.map +1 -0
- package/dist/routes/rest/globals/docAccess.d.ts +1 -1
- package/dist/routes/rest/globals/docAccess.d.ts.map +1 -1
- package/dist/routes/rest/globals/docAccess.js +6 -21
- package/dist/routes/rest/globals/docAccess.js.map +1 -0
- package/dist/routes/rest/globals/findOne.d.ts +1 -1
- package/dist/routes/rest/globals/findOne.d.ts.map +1 -1
- package/dist/routes/rest/globals/findOne.js +10 -25
- package/dist/routes/rest/globals/findOne.js.map +1 -0
- package/dist/routes/rest/globals/findVersionByID.d.ts +1 -1
- package/dist/routes/rest/globals/findVersionByID.d.ts.map +1 -1
- package/dist/routes/rest/globals/findVersionByID.js +8 -23
- package/dist/routes/rest/globals/findVersionByID.js.map +1 -0
- package/dist/routes/rest/globals/findVersions.d.ts +1 -1
- package/dist/routes/rest/globals/findVersions.d.ts.map +1 -1
- package/dist/routes/rest/globals/findVersions.js +11 -29
- package/dist/routes/rest/globals/findVersions.js.map +1 -0
- package/dist/routes/rest/globals/preview.d.ts +3 -0
- package/dist/routes/rest/globals/preview.d.ts.map +1 -0
- package/dist/routes/rest/globals/preview.js +35 -0
- package/dist/routes/rest/globals/preview.js.map +1 -0
- package/dist/routes/rest/globals/restoreVersion.d.ts +1 -1
- package/dist/routes/rest/globals/restoreVersion.d.ts.map +1 -1
- package/dist/routes/rest/globals/restoreVersion.js +8 -23
- package/dist/routes/rest/globals/restoreVersion.js.map +1 -0
- package/dist/routes/rest/globals/update.d.ts +1 -1
- package/dist/routes/rest/globals/update.d.ts.map +1 -1
- package/dist/routes/rest/globals/update.js +10 -25
- package/dist/routes/rest/globals/update.js.map +1 -0
- package/dist/routes/rest/index.d.ts.map +1 -1
- package/dist/routes/rest/index.js +129 -122
- package/dist/routes/rest/index.js.map +1 -0
- package/dist/routes/rest/routeError.d.ts +13 -0
- package/dist/routes/rest/routeError.d.ts.map +1 -0
- package/dist/routes/rest/routeError.js +93 -0
- package/dist/routes/rest/routeError.js.map +1 -0
- package/dist/routes/rest/types.js +2 -5
- package/dist/routes/rest/types.js.map +1 -0
- package/dist/scss/app.scss +2 -2
- package/dist/utilities/auth.d.ts +6 -4
- package/dist/utilities/auth.d.ts.map +1 -1
- package/dist/utilities/auth.js +7 -22
- package/dist/utilities/auth.js.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/index.d.ts +4 -0
- package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/index.js +26 -0
- package/dist/utilities/buildFieldSchemaMap/index.js.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts +12 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.js +67 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.js.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/types.d.ts +3 -0
- package/dist/utilities/buildFieldSchemaMap/types.d.ts.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/types.js +3 -0
- package/dist/utilities/buildFieldSchemaMap/types.js.map +1 -0
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +30 -31
- package/dist/utilities/createPayloadRequest.js.map +1 -0
- package/dist/utilities/getDataAndFile.js +6 -16
- package/dist/utilities/getDataAndFile.js.map +1 -0
- package/dist/utilities/getNextI18n.d.ts +1 -1
- package/dist/utilities/getNextI18n.d.ts.map +1 -1
- package/dist/utilities/getNextI18n.js +11 -23
- package/dist/utilities/getNextI18n.js.map +1 -0
- package/dist/utilities/getPayloadHMR.d.ts +4 -0
- package/dist/utilities/getPayloadHMR.d.ts.map +1 -0
- package/dist/utilities/getPayloadHMR.js +75 -0
- package/dist/utilities/getPayloadHMR.js.map +1 -0
- package/dist/utilities/getRequestLanguage.d.ts +4 -2
- package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
- package/dist/utilities/getRequestLanguage.js +6 -16
- package/dist/utilities/getRequestLanguage.js.map +1 -0
- package/dist/utilities/getRequestLocales.js +2 -12
- package/dist/utilities/getRequestLocales.js.map +1 -0
- package/dist/utilities/initPage.d.ts +8 -17
- package/dist/utilities/initPage.d.ts.map +1 -1
- package/dist/utilities/initPage.js +66 -46
- package/dist/utilities/initPage.js.map +1 -0
- package/dist/utilities/meta.js +5 -15
- package/dist/utilities/meta.js.map +1 -0
- package/dist/utilities/timestamp.d.ts +2 -0
- package/dist/utilities/timestamp.d.ts.map +1 -0
- package/dist/utilities/timestamp.js +7 -0
- package/dist/utilities/timestamp.js.map +1 -0
- package/dist/views/API/RenderJSON/index.d.ts.map +1 -0
- package/dist/views/API/RenderJSON/index.js +90 -0
- package/dist/views/API/RenderJSON/index.js.map +1 -0
- package/dist/views/API/index.client.d.ts +4 -0
- package/dist/views/API/index.client.d.ts.map +1 -0
- package/dist/views/API/index.client.js +187 -0
- package/dist/views/API/index.client.js.map +1 -0
- package/dist/views/API/index.d.ts +3 -0
- package/dist/views/API/index.d.ts.map +1 -0
- package/dist/views/API/index.js +7 -0
- package/dist/views/API/index.js.map +1 -0
- package/dist/views/API/meta.d.ts +3 -0
- package/dist/views/API/meta.d.ts.map +1 -0
- package/dist/views/API/meta.js +11 -0
- package/dist/views/API/meta.js.map +1 -0
- package/dist/views/Account/Settings/index.d.ts.map +1 -0
- package/dist/views/Account/Settings/index.js +31 -0
- package/dist/views/Account/Settings/index.js.map +1 -0
- package/dist/views/Account/ToggleTheme/index.d.ts.map +1 -0
- package/dist/views/Account/ToggleTheme/index.js +36 -0
- package/dist/views/Account/ToggleTheme/index.js.map +1 -0
- package/dist/views/Account/index.d.ts +5 -0
- package/dist/views/Account/index.d.ts.map +1 -0
- package/dist/views/Account/index.js +56 -0
- package/dist/views/Account/index.js.map +1 -0
- package/dist/views/Account/meta.d.ts +3 -0
- package/dist/views/Account/meta.d.ts.map +1 -0
- package/dist/views/Account/meta.js +11 -0
- package/dist/views/Account/meta.js.map +1 -0
- package/dist/views/CreateFirstUser/index.client.d.ts +7 -0
- package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/index.client.js +22 -0
- package/dist/views/CreateFirstUser/index.client.js.map +1 -0
- package/dist/views/CreateFirstUser/index.d.ts +6 -0
- package/dist/views/CreateFirstUser/index.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/index.js +53 -0
- package/dist/views/CreateFirstUser/index.js.map +1 -0
- package/dist/views/CreateFirstUser/meta.d.ts +3 -0
- package/dist/views/CreateFirstUser/meta.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/meta.js +11 -0
- package/dist/views/CreateFirstUser/meta.js.map +1 -0
- package/dist/views/Dashboard/Default/index.client.d.ts +10 -0
- package/dist/views/Dashboard/Default/index.client.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/index.client.js +103 -0
- package/dist/views/Dashboard/Default/index.client.js.map +1 -0
- package/dist/views/Dashboard/Default/index.d.ts +12 -0
- package/dist/views/Dashboard/Default/index.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/index.js +28 -0
- package/dist/views/Dashboard/Default/index.js.map +1 -0
- package/dist/views/Dashboard/index.d.ts +5 -0
- package/dist/views/Dashboard/index.d.ts.map +1 -0
- package/dist/views/Dashboard/index.js +27 -0
- package/dist/views/Dashboard/index.js.map +1 -0
- package/dist/views/Dashboard/meta.d.ts +3 -0
- package/dist/views/Dashboard/meta.d.ts.map +1 -0
- package/dist/views/Dashboard/meta.js +11 -0
- package/dist/views/Dashboard/meta.js.map +1 -0
- package/dist/views/Document/getCustomViewByKey.d.ts +4 -0
- package/dist/views/Document/getCustomViewByKey.d.ts.map +1 -0
- package/dist/views/Document/getCustomViewByKey.js +5 -0
- package/dist/views/Document/getCustomViewByKey.js.map +1 -0
- package/dist/views/Document/getCustomViewByRoute.d.ts +8 -0
- package/dist/views/Document/getCustomViewByRoute.d.ts.map +1 -0
- package/dist/views/Document/getCustomViewByRoute.js +22 -0
- package/dist/views/Document/getCustomViewByRoute.js.map +1 -0
- package/dist/views/Document/getMetaBySegment.d.ts +10 -0
- package/dist/views/Document/getMetaBySegment.d.ts.map +1 -0
- package/dist/views/Document/getMetaBySegment.js +77 -0
- package/dist/views/Document/getMetaBySegment.js.map +1 -0
- package/dist/views/Document/getViewsFromConfig.d.ts +18 -0
- package/dist/views/Document/getViewsFromConfig.d.ts.map +1 -0
- package/dist/views/Document/getViewsFromConfig.js +241 -0
- package/dist/views/Document/getViewsFromConfig.js.map +1 -0
- package/dist/views/Document/index.d.ts +6 -0
- package/dist/views/Document/index.d.ts.map +1 -0
- package/dist/views/Document/index.js +162 -0
- package/dist/views/Document/index.js.map +1 -0
- package/dist/views/Document/meta.d.ts +3 -0
- package/dist/views/Document/meta.d.ts.map +1 -0
- package/dist/views/Document/meta.js +4 -0
- package/dist/views/Document/meta.js.map +1 -0
- package/dist/views/Edit/Default/Auth/APIKey.d.ts +5 -0
- package/dist/views/Edit/Default/Auth/APIKey.d.ts.map +1 -0
- package/dist/views/Edit/Default/Auth/APIKey.js +99 -0
- package/dist/views/Edit/Default/Auth/APIKey.js.map +1 -0
- package/dist/views/Edit/Default/Auth/index.d.ts +5 -0
- package/dist/views/Edit/Default/Auth/index.d.ts.map +1 -0
- package/dist/views/Edit/Default/Auth/index.js +129 -0
- package/dist/views/Edit/Default/Auth/index.js.map +1 -0
- package/dist/views/Edit/Default/Auth/types.d.ts.map +1 -0
- package/dist/views/Edit/Default/Auth/types.js +3 -0
- package/dist/views/Edit/Default/Auth/types.js.map +1 -0
- package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts +9 -0
- package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -0
- package/dist/views/Edit/Default/SetDocumentTitle/index.js +38 -0
- package/dist/views/Edit/Default/SetDocumentTitle/index.js.map +1 -0
- package/dist/views/Edit/Default/SetStepNav/index.d.ts +12 -0
- package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +1 -0
- package/dist/views/Edit/Default/SetStepNav/index.js +64 -0
- package/dist/views/Edit/Default/SetStepNav/index.js.map +1 -0
- package/dist/views/Edit/Default/index.d.ts.map +1 -0
- package/dist/views/Edit/Default/index.js +194 -0
- package/dist/views/Edit/Default/index.js.map +1 -0
- package/dist/views/Edit/Default/types.d.ts.map +1 -0
- package/dist/views/Edit/Default/types.js +3 -0
- package/dist/views/Edit/Default/types.js.map +1 -0
- package/dist/views/Edit/index.client.d.ts +3 -0
- package/dist/views/Edit/index.client.d.ts.map +1 -0
- package/dist/views/Edit/index.client.js +23 -0
- package/dist/views/Edit/index.client.js.map +1 -0
- package/dist/views/Edit/index.d.ts +3 -0
- package/dist/views/Edit/index.d.ts.map +1 -0
- package/dist/views/Edit/index.js +7 -0
- package/dist/views/Edit/index.js.map +1 -0
- package/dist/views/Edit/meta.d.ts +3 -0
- package/dist/views/Edit/meta.d.ts.map +1 -0
- package/dist/views/Edit/meta.js +26 -0
- package/dist/views/Edit/meta.js.map +1 -0
- package/dist/views/Edit/sanitizeEditViewProps.d.ts +3 -0
- package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +1 -0
- package/dist/views/Edit/sanitizeEditViewProps.js +11 -0
- package/dist/views/Edit/sanitizeEditViewProps.js.map +1 -0
- package/dist/views/ForgotPassword/index.d.ts +6 -0
- package/dist/views/ForgotPassword/index.d.ts.map +1 -0
- package/dist/views/ForgotPassword/index.js +69 -0
- package/dist/views/ForgotPassword/index.js.map +1 -0
- package/dist/views/ForgotPassword/meta.d.ts +3 -0
- package/dist/views/ForgotPassword/meta.d.ts.map +1 -0
- package/dist/views/ForgotPassword/meta.js +11 -0
- package/dist/views/ForgotPassword/meta.js.map +1 -0
- package/dist/views/List/Default/index.d.ts.map +1 -0
- package/dist/views/List/Default/index.js +149 -0
- package/dist/views/List/Default/index.js.map +1 -0
- package/dist/views/List/Default/types.d.ts +15 -0
- package/dist/views/List/Default/types.d.ts.map +1 -0
- package/dist/views/List/Default/types.js +3 -0
- package/dist/views/List/Default/types.js.map +1 -0
- package/dist/views/List/index.d.ts +5 -0
- package/dist/views/List/index.d.ts.map +1 -0
- package/dist/views/List/index.js +104 -0
- package/dist/views/List/index.js.map +1 -0
- package/dist/views/List/meta.d.ts +7 -0
- package/dist/views/List/meta.d.ts.map +1 -0
- package/dist/views/List/meta.js +19 -0
- package/dist/views/List/meta.js.map +1 -0
- package/dist/views/LivePreview/Context/collisionDetection.d.ts.map +1 -0
- package/dist/views/LivePreview/Context/collisionDetection.js +26 -0
- package/dist/views/LivePreview/Context/collisionDetection.js.map +1 -0
- package/dist/views/LivePreview/Context/context.d.ts +50 -0
- package/dist/views/LivePreview/Context/context.d.ts.map +1 -0
- package/dist/views/LivePreview/Context/context.js +40 -0
- package/dist/views/LivePreview/Context/context.js.map +1 -0
- package/dist/views/LivePreview/Context/index.d.ts +20 -0
- package/dist/views/LivePreview/Context/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Context/index.js +153 -0
- package/dist/views/LivePreview/Context/index.js.map +1 -0
- package/dist/views/LivePreview/Context/sizeReducer.d.ts.map +1 -0
- package/dist/views/LivePreview/Context/sizeReducer.js +31 -0
- package/dist/views/LivePreview/Context/sizeReducer.js.map +1 -0
- package/dist/views/LivePreview/Device/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Device/index.js +51 -0
- package/dist/views/LivePreview/Device/index.js.map +1 -0
- package/dist/views/LivePreview/DeviceContainer/index.d.ts.map +1 -0
- package/dist/views/LivePreview/DeviceContainer/index.js +29 -0
- package/dist/views/LivePreview/DeviceContainer/index.js.map +1 -0
- package/dist/views/LivePreview/IFrame/index.d.ts.map +1 -0
- package/dist/views/LivePreview/IFrame/index.js +22 -0
- package/dist/views/LivePreview/IFrame/index.js.map +1 -0
- package/dist/views/LivePreview/Preview/index.d.ts +5 -0
- package/dist/views/LivePreview/Preview/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Preview/index.js +78 -0
- package/dist/views/LivePreview/Preview/index.js.map +1 -0
- package/dist/views/LivePreview/Toolbar/Controls/index.d.ts +5 -0
- package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Toolbar/Controls/index.js +83 -0
- package/dist/views/LivePreview/Toolbar/Controls/index.js.map +1 -0
- package/dist/views/LivePreview/Toolbar/SizeInput/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Toolbar/SizeInput/index.js +60 -0
- package/dist/views/LivePreview/Toolbar/SizeInput/index.js.map +1 -0
- package/dist/views/LivePreview/Toolbar/index.d.ts +7 -0
- package/dist/views/LivePreview/Toolbar/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Toolbar/index.js +49 -0
- package/dist/views/LivePreview/Toolbar/index.js.map +1 -0
- package/dist/views/LivePreview/ToolbarArea/index.d.ts.map +1 -0
- package/dist/views/LivePreview/ToolbarArea/index.js +16 -0
- package/dist/views/LivePreview/ToolbarArea/index.js.map +1 -0
- package/dist/views/LivePreview/index.client.d.ts +10 -0
- package/dist/views/LivePreview/index.client.d.ts.map +1 -0
- package/dist/views/LivePreview/index.client.js +170 -0
- package/dist/views/LivePreview/index.client.js.map +1 -0
- package/dist/views/LivePreview/index.d.ts +4 -0
- package/dist/views/LivePreview/index.d.ts.map +1 -0
- package/dist/views/LivePreview/index.js +43 -0
- package/dist/views/LivePreview/index.js.map +1 -0
- package/dist/views/LivePreview/meta.d.ts +3 -0
- package/dist/views/LivePreview/meta.d.ts.map +1 -0
- package/dist/views/LivePreview/meta.js +26 -0
- package/dist/views/LivePreview/meta.js.map +1 -0
- package/dist/views/LivePreview/usePopupWindow.d.ts.map +1 -0
- package/dist/views/LivePreview/usePopupWindow.js +102 -0
- package/dist/views/LivePreview/usePopupWindow.js.map +1 -0
- package/dist/views/Login/LoginForm/index.d.ts.map +1 -0
- package/dist/views/Login/LoginForm/index.js +58 -0
- package/dist/views/Login/LoginForm/index.js.map +1 -0
- package/dist/views/Login/index.d.ts +7 -0
- package/dist/views/Login/index.d.ts.map +1 -0
- package/dist/views/Login/index.js +28 -0
- package/dist/views/Login/index.js.map +1 -0
- package/dist/views/Login/index.scss +8 -0
- package/dist/views/Login/meta.d.ts +3 -0
- package/dist/views/Login/meta.d.ts.map +1 -0
- package/dist/views/Login/meta.js +11 -0
- package/dist/views/Login/meta.js.map +1 -0
- package/dist/views/Logout/LogoutClient.d.ts.map +1 -0
- package/dist/views/Logout/LogoutClient.js +34 -0
- package/dist/views/Logout/LogoutClient.js.map +1 -0
- package/dist/views/Logout/index.d.ts +9 -0
- package/dist/views/Logout/index.d.ts.map +1 -0
- package/dist/views/Logout/index.js +25 -0
- package/dist/views/Logout/index.js.map +1 -0
- package/dist/views/Logout/meta.d.ts +3 -0
- package/dist/views/Logout/meta.d.ts.map +1 -0
- package/dist/views/Logout/meta.js +11 -0
- package/dist/views/Logout/meta.js.map +1 -0
- package/dist/views/NotFound/index.client.d.ts +6 -0
- package/dist/views/NotFound/index.client.d.ts.map +1 -0
- package/dist/views/NotFound/index.client.js +41 -0
- package/dist/views/NotFound/index.client.js.map +1 -0
- package/dist/views/NotFound/index.d.ts +28 -0
- package/dist/views/NotFound/index.d.ts.map +1 -0
- package/dist/views/NotFound/index.js +27 -0
- package/dist/views/NotFound/index.js.map +1 -0
- package/dist/views/NotFound/index.scss +37 -0
- package/dist/views/NotFound/meta.d.ts +8 -0
- package/dist/views/NotFound/meta.d.ts.map +1 -0
- package/dist/views/NotFound/meta.js +11 -0
- package/dist/views/NotFound/meta.js.map +1 -0
- package/dist/views/ResetPassword/index.d.ts +7 -0
- package/dist/views/ResetPassword/index.d.ts.map +1 -0
- package/dist/views/ResetPassword/index.js +69 -0
- package/dist/views/ResetPassword/index.js.map +1 -0
- package/dist/views/ResetPassword/meta.d.ts +3 -0
- package/dist/views/ResetPassword/meta.d.ts.map +1 -0
- package/dist/views/ResetPassword/meta.js +11 -0
- package/dist/views/ResetPassword/meta.js.map +1 -0
- package/dist/views/Root/getCustomViewByRoute.d.ts +6 -0
- package/dist/views/Root/getCustomViewByRoute.d.ts.map +1 -0
- package/dist/views/Root/getCustomViewByRoute.js +19 -0
- package/dist/views/Root/getCustomViewByRoute.js.map +1 -0
- package/dist/views/Root/getViewFromConfig.d.ts +18 -0
- package/dist/views/Root/getViewFromConfig.d.ts.map +1 -0
- package/dist/views/Root/getViewFromConfig.js +138 -0
- package/dist/views/Root/getViewFromConfig.js.map +1 -0
- package/dist/views/Root/index.d.ts +22 -0
- package/dist/views/Root/index.d.ts.map +1 -0
- package/dist/views/Root/index.js +51 -0
- package/dist/views/Root/index.js.map +1 -0
- package/dist/views/Root/isPathMatchingRoute.d.ts +8 -0
- package/dist/views/Root/isPathMatchingRoute.d.ts.map +1 -0
- package/dist/views/Root/isPathMatchingRoute.js +16 -0
- package/dist/views/Root/isPathMatchingRoute.js.map +1 -0
- package/dist/views/Root/meta.d.ts +14 -0
- package/dist/views/Root/meta.d.ts.map +1 -0
- package/dist/views/Root/meta.js +159 -0
- package/dist/views/Root/meta.js.map +1 -0
- package/dist/views/Unauthorized/index.d.ts +4 -0
- package/dist/views/Unauthorized/index.d.ts.map +1 -0
- package/dist/views/Unauthorized/index.js +18 -0
- package/dist/views/Unauthorized/index.js.map +1 -0
- package/dist/views/Unauthorized/meta.d.ts +3 -0
- package/dist/views/Unauthorized/meta.d.ts.map +1 -0
- package/dist/views/Unauthorized/meta.js +11 -0
- package/dist/views/Unauthorized/meta.js.map +1 -0
- package/dist/views/Verify/index.d.ts +7 -0
- package/dist/views/Verify/index.d.ts.map +1 -0
- package/dist/views/Verify/index.js +32 -0
- package/dist/views/Verify/index.js.map +1 -0
- package/dist/views/Verify/meta.d.ts +3 -0
- package/dist/views/Verify/meta.d.ts.map +1 -0
- package/dist/views/Verify/meta.js +11 -0
- package/dist/views/Verify/meta.js.map +1 -0
- package/dist/views/Version/Default/SetStepNav.d.ts +14 -0
- package/dist/views/Version/Default/SetStepNav.d.ts.map +1 -0
- package/dist/views/Version/Default/SetStepNav.js +92 -0
- package/dist/views/Version/Default/SetStepNav.js.map +1 -0
- package/dist/views/Version/Default/index.d.ts +5 -0
- package/dist/views/Version/Default/index.d.ts.map +1 -0
- package/dist/views/Version/Default/index.js +111 -0
- package/dist/views/Version/Default/index.js.map +1 -0
- package/dist/views/Version/Default/types.d.ts +19 -0
- package/dist/views/Version/Default/types.d.ts.map +1 -0
- package/dist/views/Version/Default/types.js +3 -0
- package/dist/views/Version/Default/types.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/Label/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/Label/index.js +8 -0
- package/dist/views/Version/RenderFieldsToDiff/Label/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +6 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +64 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +6 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +28 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +6 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +74 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +17 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +10 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +38 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +9 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +39 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +17 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +6 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +30 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js +8 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +60 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +29 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/styles.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/styles.js +28 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/styles.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +21 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js +3 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts +6 -0
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.js +100 -0
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts +20 -0
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/types.js +3 -0
- package/dist/views/Version/RenderFieldsToDiff/types.js.map +1 -0
- package/dist/views/Version/Restore/index.d.ts +6 -0
- package/dist/views/Version/Restore/index.d.ts.map +1 -0
- package/dist/views/Version/Restore/index.js +74 -0
- package/dist/views/Version/Restore/index.js.map +1 -0
- package/dist/views/Version/Restore/types.d.ts +11 -0
- package/dist/views/Version/Restore/types.d.ts.map +1 -0
- package/dist/views/Version/Restore/types.js +3 -0
- package/dist/views/Version/Restore/types.js.map +1 -0
- package/dist/views/Version/SelectComparison/index.d.ts +5 -0
- package/dist/views/Version/SelectComparison/index.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/index.js +126 -0
- package/dist/views/Version/SelectComparison/index.js.map +1 -0
- package/dist/views/Version/SelectComparison/types.d.ts +27 -0
- package/dist/views/Version/SelectComparison/types.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/types.js +3 -0
- package/dist/views/Version/SelectComparison/types.js.map +1 -0
- package/dist/views/Version/SelectLocales/index.d.ts +5 -0
- package/dist/views/Version/SelectLocales/index.d.ts.map +1 -0
- package/dist/views/Version/SelectLocales/index.js +33 -0
- package/dist/views/Version/SelectLocales/index.js.map +1 -0
- package/dist/views/Version/SelectLocales/types.d.ts +7 -0
- package/dist/views/Version/SelectLocales/types.d.ts.map +1 -0
- package/dist/views/Version/SelectLocales/types.js +3 -0
- package/dist/views/Version/SelectLocales/types.js.map +1 -0
- package/dist/views/Version/index.d.ts +3 -0
- package/dist/views/Version/index.d.ts.map +1 -0
- package/dist/views/Version/index.js +102 -0
- package/dist/views/Version/index.js.map +1 -0
- package/dist/views/Version/meta.d.ts +3 -0
- package/dist/views/Version/meta.d.ts.map +1 -0
- package/dist/views/Version/meta.js +37 -0
- package/dist/views/Version/meta.js.map +1 -0
- package/dist/views/Version/shared.d.ts.map +1 -0
- package/dist/views/Version/shared.js +10 -0
- package/dist/views/Version/shared.js.map +1 -0
- package/dist/views/Versions/buildColumns.d.ts +11 -0
- package/dist/views/Versions/buildColumns.d.ts.map +1 -0
- package/dist/views/Versions/buildColumns.js +63 -0
- package/dist/views/Versions/buildColumns.js.map +1 -0
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/AutosaveCell/index.js +14 -0
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -0
- package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/CreatedAt/index.js +22 -0
- package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -0
- package/dist/views/Versions/cells/ID/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/ID/index.js +9 -0
- package/dist/views/Versions/cells/ID/index.js.map +1 -0
- package/dist/views/Versions/index.client.d.ts +10 -0
- package/dist/views/Versions/index.client.d.ts.map +1 -0
- package/dist/views/Versions/index.client.js +57 -0
- package/dist/views/Versions/index.client.js.map +1 -0
- package/dist/views/Versions/index.d.ts +5 -0
- package/dist/views/Versions/index.d.ts.map +1 -0
- package/dist/views/Versions/index.js +93 -0
- package/dist/views/Versions/index.js.map +1 -0
- package/dist/views/Versions/meta.d.ts +3 -0
- package/dist/views/Versions/meta.d.ts.map +1 -0
- package/dist/views/Versions/meta.js +33 -0
- package/dist/views/Versions/meta.js.map +1 -0
- package/dist/views/Versions/types.d.ts.map +1 -0
- package/dist/views/Versions/types.js +3 -0
- package/dist/views/Versions/types.js.map +1 -0
- package/dist/webpackEntry.d.ts +5 -0
- package/dist/webpackEntry.d.ts.map +1 -0
- package/dist/webpackEntry.js +6 -0
- package/dist/webpackEntry.js.map +1 -0
- package/dist/withPayload.d.ts +2 -1
- package/dist/withPayload.d.ts.map +1 -1
- package/dist/withPayload.js +3 -8
- package/dist/withPayload.js.map +1 -0
- package/package.json +45 -40
- package/src/index.js +1 -0
- package/dist/bin/index.d.ts +0 -2
- package/dist/bin/index.d.ts.map +0 -1
- package/dist/bin/index.js +0 -37
- package/dist/bin/install.d.ts +0 -4
- package/dist/bin/install.d.ts.map +0 -1
- package/dist/bin/install.js +0 -77
- package/dist/exports/index.d.ts +0 -2
- package/dist/exports/index.d.ts.map +0 -1
- package/dist/exports/index.js +0 -13
- package/dist/graphql/registerSchema.d.ts +0 -2
- package/dist/graphql/registerSchema.d.ts.map +0 -1
- package/dist/graphql/registerSchema.js +0 -3
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/layouts/Admin/index.d.ts +0 -12
- package/dist/layouts/Admin/index.d.ts.map +0 -1
- package/dist/layouts/Admin/index.js +0 -44
- package/dist/layouts/Document/index.d.ts +0 -14
- package/dist/layouts/Document/index.d.ts.map +0 -1
- package/dist/layouts/Document/index.js +0 -82
- package/dist/pages/API/RenderJSON/index.d.ts.map +0 -1
- package/dist/pages/API/RenderJSON/index.js +0 -142
- package/dist/pages/API/index.client.d.ts +0 -5
- package/dist/pages/API/index.client.d.ts.map +0 -1
- package/dist/pages/API/index.client.js +0 -241
- package/dist/pages/API/index.d.ts +0 -4
- package/dist/pages/API/index.d.ts.map +0 -1
- package/dist/pages/API/index.js +0 -27
- package/dist/pages/API/meta.d.ts +0 -3
- package/dist/pages/API/meta.d.ts.map +0 -1
- package/dist/pages/API/meta.js +0 -21
- package/dist/pages/Account/Settings/index.d.ts.map +0 -1
- package/dist/pages/Account/Settings/index.js +0 -45
- package/dist/pages/Account/ToggleTheme/index.d.ts.map +0 -1
- package/dist/pages/Account/ToggleTheme/index.js +0 -85
- package/dist/pages/Account/index.d.ts +0 -13
- package/dist/pages/Account/index.d.ts.map +0 -1
- package/dist/pages/Account/index.js +0 -171
- package/dist/pages/CreateFirstUser/index.client.d.ts +0 -5
- package/dist/pages/CreateFirstUser/index.client.d.ts.map +0 -1
- package/dist/pages/CreateFirstUser/index.client.js +0 -29
- package/dist/pages/CreateFirstUser/index.d.ts +0 -11
- package/dist/pages/CreateFirstUser/index.d.ts.map +0 -1
- package/dist/pages/CreateFirstUser/index.js +0 -91
- package/dist/pages/Dashboard/Default/index.client.d.ts +0 -8
- package/dist/pages/Dashboard/Default/index.client.d.ts.map +0 -1
- package/dist/pages/Dashboard/Default/index.client.js +0 -154
- package/dist/pages/Dashboard/Default/index.d.ts +0 -11
- package/dist/pages/Dashboard/Default/index.d.ts.map +0 -1
- package/dist/pages/Dashboard/Default/index.js +0 -44
- package/dist/pages/Dashboard/index.d.ts +0 -13
- package/dist/pages/Dashboard/index.d.ts.map +0 -1
- package/dist/pages/Dashboard/index.js +0 -128
- package/dist/pages/Document/getCustomViewByKey.d.ts +0 -4
- package/dist/pages/Document/getCustomViewByKey.d.ts.map +0 -1
- package/dist/pages/Document/getCustomViewByKey.js +0 -15
- package/dist/pages/Document/getCustomViewByPath.d.ts +0 -4
- package/dist/pages/Document/getCustomViewByPath.d.ts.map +0 -1
- package/dist/pages/Document/getCustomViewByPath.js +0 -26
- package/dist/pages/Document/getMetaBySegment.d.ts +0 -20
- package/dist/pages/Document/getMetaBySegment.d.ts.map +0 -1
- package/dist/pages/Document/getMetaBySegment.js +0 -124
- package/dist/pages/Document/getViewsFromConfig.d.ts +0 -15
- package/dist/pages/Document/getViewsFromConfig.d.ts.map +0 -1
- package/dist/pages/Document/getViewsFromConfig.js +0 -163
- package/dist/pages/Document/index.d.ts +0 -23
- package/dist/pages/Document/index.d.ts.map +0 -1
- package/dist/pages/Document/index.js +0 -237
- package/dist/pages/Edit/Default/Auth/APIKey.d.ts +0 -6
- package/dist/pages/Edit/Default/Auth/APIKey.d.ts.map +0 -1
- package/dist/pages/Edit/Default/Auth/APIKey.js +0 -140
- package/dist/pages/Edit/Default/Auth/index.d.ts +0 -6
- package/dist/pages/Edit/Default/Auth/index.d.ts.map +0 -1
- package/dist/pages/Edit/Default/Auth/index.js +0 -180
- package/dist/pages/Edit/Default/Auth/types.d.ts.map +0 -1
- package/dist/pages/Edit/Default/Auth/types.js +0 -6
- package/dist/pages/Edit/Default/RenderCustomView.d.ts +0 -2
- package/dist/pages/Edit/Default/RenderCustomView.d.ts.map +0 -1
- package/dist/pages/Edit/Default/RenderCustomView.js +0 -3
- package/dist/pages/Edit/Default/SetDocumentTitle/index.d.ts +0 -8
- package/dist/pages/Edit/Default/SetDocumentTitle/index.d.ts.map +0 -1
- package/dist/pages/Edit/Default/SetDocumentTitle/index.js +0 -50
- package/dist/pages/Edit/Default/SetStepNav/index.d.ts +0 -13
- package/dist/pages/Edit/Default/SetStepNav/index.d.ts.map +0 -1
- package/dist/pages/Edit/Default/SetStepNav/index.js +0 -70
- package/dist/pages/Edit/Default/index.d.ts.map +0 -1
- package/dist/pages/Edit/Default/index.js +0 -202
- package/dist/pages/Edit/Default/types.d.ts.map +0 -1
- package/dist/pages/Edit/Default/types.js +0 -6
- package/dist/pages/Edit/index.client.d.ts +0 -4
- package/dist/pages/Edit/index.client.d.ts.map +0 -1
- package/dist/pages/Edit/index.client.js +0 -99
- package/dist/pages/Edit/index.d.ts +0 -4
- package/dist/pages/Edit/index.d.ts.map +0 -1
- package/dist/pages/Edit/index.js +0 -27
- package/dist/pages/Edit/meta.d.ts +0 -3
- package/dist/pages/Edit/meta.d.ts.map +0 -1
- package/dist/pages/Edit/meta.js +0 -36
- package/dist/pages/Edit/sanitizeEditViewProps.d.ts +0 -4
- package/dist/pages/Edit/sanitizeEditViewProps.d.ts.map +0 -1
- package/dist/pages/Edit/sanitizeEditViewProps.js +0 -24
- package/dist/pages/Edit/types.d.js +0 -7
- package/dist/pages/Edit/types.d.ts +0 -37
- package/dist/pages/Edit/types.d.ts.map +0 -1
- package/dist/pages/Edit/types.js +0 -6
- package/dist/pages/ForgotPassword/index.d.ts +0 -10
- package/dist/pages/ForgotPassword/index.d.ts.map +0 -1
- package/dist/pages/ForgotPassword/index.js +0 -101
- package/dist/pages/List/Default/Cell/cellTypes.spec.js +0 -234
- package/dist/pages/List/Default/Cell/fields/Array/index.d.ts +0 -7
- package/dist/pages/List/Default/Cell/fields/Array/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Array/index.js +0 -27
- package/dist/pages/List/Default/Cell/fields/Blocks/index.d.ts +0 -8
- package/dist/pages/List/Default/Cell/fields/Blocks/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Blocks/index.js +0 -45
- package/dist/pages/List/Default/Cell/fields/Checkbox/index.d.ts +0 -5
- package/dist/pages/List/Default/Cell/fields/Checkbox/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Checkbox/index.js +0 -23
- package/dist/pages/List/Default/Cell/fields/Checkbox/index.scss +0 -22
- package/dist/pages/List/Default/Cell/fields/Code/index.d.ts +0 -8
- package/dist/pages/List/Default/Cell/fields/Code/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Code/index.js +0 -29
- package/dist/pages/List/Default/Cell/fields/Code/index.scss +0 -27
- package/dist/pages/List/Default/Cell/fields/Date/index.d.ts +0 -7
- package/dist/pages/List/Default/Cell/fields/Date/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Date/index.js +0 -26
- package/dist/pages/List/Default/Cell/fields/File/index.d.ts +0 -7
- package/dist/pages/List/Default/Cell/fields/File/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/File/index.js +0 -39
- package/dist/pages/List/Default/Cell/fields/File/index.scss +0 -23
- package/dist/pages/List/Default/Cell/fields/JSON/index.d.ts +0 -5
- package/dist/pages/List/Default/Cell/fields/JSON/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/JSON/index.js +0 -26
- package/dist/pages/List/Default/Cell/fields/JSON/index.scss +0 -22
- package/dist/pages/List/Default/Cell/fields/Relationship/index.d.ts +0 -9
- package/dist/pages/List/Default/Cell/fields/Relationship/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Relationship/index.js +0 -121
- package/dist/pages/List/Default/Cell/fields/Relationship/index.scss +0 -3
- package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts +0 -2
- package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Richtext/index.js +0 -3
- package/dist/pages/List/Default/Cell/fields/Select/index.d.ts +0 -7
- package/dist/pages/List/Default/Cell/fields/Select/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Select/index.js +0 -40
- package/dist/pages/List/Default/Cell/fields/Textarea/index.d.ts +0 -4
- package/dist/pages/List/Default/Cell/fields/Textarea/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Textarea/index.js +0 -23
- package/dist/pages/List/Default/Cell/fields/index.d.ts +0 -17
- package/dist/pages/List/Default/Cell/fields/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/index.js +0 -36
- package/dist/pages/List/Default/Cell/index.d.ts +0 -4
- package/dist/pages/List/Default/Cell/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/index.js +0 -89
- package/dist/pages/List/Default/RelationshipProvider/index.d.ts +0 -20
- package/dist/pages/List/Default/RelationshipProvider/index.d.ts.map +0 -1
- package/dist/pages/List/Default/RelationshipProvider/index.js +0 -153
- package/dist/pages/List/Default/RelationshipProvider/reducer.d.ts +0 -19
- package/dist/pages/List/Default/RelationshipProvider/reducer.d.ts.map +0 -1
- package/dist/pages/List/Default/RelationshipProvider/reducer.js +0 -55
- package/dist/pages/List/Default/index.d.ts.map +0 -1
- package/dist/pages/List/Default/index.js +0 -174
- package/dist/pages/List/Default/types.d.ts +0 -14
- package/dist/pages/List/Default/types.d.ts.map +0 -1
- package/dist/pages/List/Default/types.js +0 -6
- package/dist/pages/List/index.d.ts +0 -18
- package/dist/pages/List/index.d.ts.map +0 -1
- package/dist/pages/List/index.js +0 -158
- package/dist/pages/LivePreview/Context/collisionDetection.d.ts.map +0 -1
- package/dist/pages/LivePreview/Context/collisionDetection.js +0 -34
- package/dist/pages/LivePreview/Context/context.d.ts +0 -50
- package/dist/pages/LivePreview/Context/context.d.ts.map +0 -1
- package/dist/pages/LivePreview/Context/context.js +0 -58
- package/dist/pages/LivePreview/Context/index.d.ts +0 -18
- package/dist/pages/LivePreview/Context/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Context/index.js +0 -208
- package/dist/pages/LivePreview/Context/sizeReducer.d.ts.map +0 -1
- package/dist/pages/LivePreview/Context/sizeReducer.js +0 -41
- package/dist/pages/LivePreview/Device/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Device/index.js +0 -102
- package/dist/pages/LivePreview/DeviceContainer/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/DeviceContainer/index.js +0 -44
- package/dist/pages/LivePreview/IFrame/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/IFrame/index.js +0 -74
- package/dist/pages/LivePreview/Preview/index.d.ts +0 -5
- package/dist/pages/LivePreview/Preview/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Preview/index.js +0 -127
- package/dist/pages/LivePreview/Toolbar/Controls/index.d.ts +0 -5
- package/dist/pages/LivePreview/Toolbar/Controls/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Toolbar/Controls/index.js +0 -96
- package/dist/pages/LivePreview/Toolbar/SizeInput/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Toolbar/SizeInput/index.js +0 -112
- package/dist/pages/LivePreview/Toolbar/index.d.ts +0 -7
- package/dist/pages/LivePreview/Toolbar/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Toolbar/index.js +0 -65
- package/dist/pages/LivePreview/ToolbarArea/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/ToolbarArea/index.js +0 -32
- package/dist/pages/LivePreview/index.client.d.ts +0 -11
- package/dist/pages/LivePreview/index.client.d.ts.map +0 -1
- package/dist/pages/LivePreview/index.client.js +0 -195
- package/dist/pages/LivePreview/index.d.ts +0 -5
- package/dist/pages/LivePreview/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/index.js +0 -59
- package/dist/pages/LivePreview/meta.d.ts +0 -3
- package/dist/pages/LivePreview/meta.d.ts.map +0 -1
- package/dist/pages/LivePreview/meta.js +0 -36
- package/dist/pages/LivePreview/usePopupWindow.d.ts.map +0 -1
- package/dist/pages/LivePreview/usePopupWindow.js +0 -112
- package/dist/pages/Login/LoginForm/index.d.ts.map +0 -1
- package/dist/pages/Login/LoginForm/index.js +0 -67
- package/dist/pages/Login/index.d.ts +0 -14
- package/dist/pages/Login/index.d.ts.map +0 -1
- package/dist/pages/Login/index.js +0 -108
- package/dist/pages/Login/index.scss +0 -38
- package/dist/pages/Logout/LogoutClient.d.ts.map +0 -1
- package/dist/pages/Logout/LogoutClient.js +0 -88
- package/dist/pages/Logout/index.d.ts +0 -16
- package/dist/pages/Logout/index.d.ts.map +0 -1
- package/dist/pages/Logout/index.js +0 -61
- package/dist/pages/NotFound/index.d.ts +0 -7
- package/dist/pages/NotFound/index.d.ts.map +0 -1
- package/dist/pages/NotFound/index.js +0 -48
- package/dist/pages/NotFound/index.scss +0 -36
- package/dist/pages/ResetPassword/index.d.ts +0 -12
- package/dist/pages/ResetPassword/index.d.ts.map +0 -1
- package/dist/pages/ResetPassword/index.js +0 -99
- package/dist/pages/Root/index.d.ts +0 -5
- package/dist/pages/Root/index.d.ts.map +0 -1
- package/dist/pages/Root/index.js +0 -17
- package/dist/pages/Unauthorized/UnauthorizedClient.d.ts +0 -5
- package/dist/pages/Unauthorized/UnauthorizedClient.d.ts.map +0 -1
- package/dist/pages/Unauthorized/UnauthorizedClient.js +0 -27
- package/dist/pages/Unauthorized/index.d.ts +0 -10
- package/dist/pages/Unauthorized/index.d.ts.map +0 -1
- package/dist/pages/Unauthorized/index.js +0 -51
- package/dist/pages/Verify/index.d.ts +0 -13
- package/dist/pages/Verify/index.d.ts.map +0 -1
- package/dist/pages/Verify/index.js +0 -90
- package/dist/pages/Version/Default/SetStepNav.d.ts +0 -13
- package/dist/pages/Version/Default/SetStepNav.d.ts.map +0 -1
- package/dist/pages/Version/Default/SetStepNav.js +0 -92
- package/dist/pages/Version/Default/index.d.ts +0 -5
- package/dist/pages/Version/Default/index.d.ts.map +0 -1
- package/dist/pages/Version/Default/index.js +0 -157
- package/dist/pages/Version/Default/types.d.ts +0 -24
- package/dist/pages/Version/Default/types.d.ts.map +0 -1
- package/dist/pages/Version/Default/types.js +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/Label/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/Label/index.js +0 -24
- package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -80
- package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.js +0 -44
- package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -89
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +0 -72
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.js +0 -54
- package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -5
- package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -54
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +0 -72
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.js +0 -46
- package/dist/pages/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/diffMethods.js +0 -18
- package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts +0 -25
- package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/index.js +0 -44
- package/dist/pages/Version/RenderFieldsToDiff/fields/styles.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/styles.js +0 -38
- package/dist/pages/Version/RenderFieldsToDiff/fields/types.d.ts +0 -21
- package/dist/pages/Version/RenderFieldsToDiff/fields/types.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/types.js +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/index.d.ts +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/index.js +0 -115
- package/dist/pages/Version/RenderFieldsToDiff/types.d.ts +0 -20
- package/dist/pages/Version/RenderFieldsToDiff/types.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/types.js +0 -6
- package/dist/pages/Version/Restore/index.d.ts +0 -6
- package/dist/pages/Version/Restore/index.d.ts.map +0 -1
- package/dist/pages/Version/Restore/index.js +0 -121
- package/dist/pages/Version/Restore/types.d.ts +0 -11
- package/dist/pages/Version/Restore/types.d.ts.map +0 -1
- package/dist/pages/Version/Restore/types.js +0 -6
- package/dist/pages/Version/SelectComparison/index.d.ts +0 -5
- package/dist/pages/Version/SelectComparison/index.d.ts.map +0 -1
- package/dist/pages/Version/SelectComparison/index.js +0 -167
- package/dist/pages/Version/SelectComparison/types.d.ts +0 -27
- package/dist/pages/Version/SelectComparison/types.d.ts.map +0 -1
- package/dist/pages/Version/SelectComparison/types.js +0 -6
- package/dist/pages/Version/SelectLocales/index.d.ts +0 -5
- package/dist/pages/Version/SelectLocales/index.d.ts.map +0 -1
- package/dist/pages/Version/SelectLocales/index.js +0 -47
- package/dist/pages/Version/SelectLocales/types.d.ts +0 -7
- package/dist/pages/Version/SelectLocales/types.d.ts.map +0 -1
- package/dist/pages/Version/SelectLocales/types.js +0 -6
- package/dist/pages/Version/index.d.ts +0 -4
- package/dist/pages/Version/index.d.ts.map +0 -1
- package/dist/pages/Version/index.js +0 -111
- package/dist/pages/Version/meta.d.ts +0 -3
- package/dist/pages/Version/meta.d.ts.map +0 -1
- package/dist/pages/Version/meta.js +0 -47
- package/dist/pages/Version/shared.d.ts.map +0 -1
- package/dist/pages/Version/shared.js +0 -28
- package/dist/pages/Versions/buildColumns.d.ts +0 -11
- package/dist/pages/Versions/buildColumns.d.ts.map +0 -1
- package/dist/pages/Versions/buildColumns.js +0 -69
- package/dist/pages/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
- package/dist/pages/Versions/cells/AutosaveCell/index.js +0 -63
- package/dist/pages/Versions/cells/CreatedAt/index.d.ts.map +0 -1
- package/dist/pages/Versions/cells/CreatedAt/index.js +0 -33
- package/dist/pages/Versions/cells/ID/index.d.ts.map +0 -1
- package/dist/pages/Versions/cells/ID/index.js +0 -60
- package/dist/pages/Versions/index.client.d.ts +0 -15
- package/dist/pages/Versions/index.client.d.ts.map +0 -1
- package/dist/pages/Versions/index.client.js +0 -142
- package/dist/pages/Versions/index.d.ts +0 -6
- package/dist/pages/Versions/index.d.ts.map +0 -1
- package/dist/pages/Versions/index.js +0 -125
- package/dist/pages/Versions/meta.d.ts +0 -3
- package/dist/pages/Versions/meta.d.ts.map +0 -1
- package/dist/pages/Versions/meta.js +0 -43
- package/dist/pages/Versions/types.d.ts.map +0 -1
- package/dist/pages/Versions/types.js +0 -6
- package/dist/routes/rest/RouteError.d.ts +0 -13
- package/dist/routes/rest/RouteError.d.ts.map +0 -1
- package/dist/routes/rest/RouteError.js +0 -104
- package/dist/routes/rest/[collection]/file/[filename]/route.d.ts +0 -8
- package/dist/routes/rest/[collection]/file/[filename]/route.d.ts.map +0 -1
- package/dist/routes/rest/[collection]/file/[filename]/route.js +0 -116
- package/dist/utilities/createClientConfig.d.ts +0 -5
- package/dist/utilities/createClientConfig.d.ts.map +0 -1
- package/dist/utilities/createClientConfig.js +0 -120
- package/dist/utilities/getNextT.d.ts +0 -7
- package/dist/utilities/getNextT.d.ts.map +0 -1
- package/dist/utilities/getNextT.js +0 -28
- package/src/index.ts +0 -1
- /package/dist/{pages → views}/API/RenderJSON/index.d.ts +0 -0
- /package/dist/{pages → views}/API/RenderJSON/index.scss +0 -0
- /package/dist/{pages → views}/API/index.scss +0 -0
- /package/dist/{pages → views}/Account/Settings/index.d.ts +0 -0
- /package/dist/{pages → views}/Account/Settings/index.scss +0 -0
- /package/dist/{pages → views}/Account/ToggleTheme/index.d.ts +0 -0
- /package/dist/{pages → views}/CreateFirstUser/index.scss +0 -0
- /package/dist/{pages → views}/Dashboard/Default/index.scss +0 -0
- /package/dist/{pages → views}/Edit/Default/Auth/index.scss +0 -0
- /package/dist/{pages → views}/Edit/Default/Auth/types.d.ts +0 -0
- /package/dist/{pages → views}/Edit/Default/index.d.ts +0 -0
- /package/dist/{pages → views}/Edit/Default/index.scss +0 -0
- /package/dist/{pages → views}/Edit/Default/types.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Context/collisionDetection.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Context/sizeReducer.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Device/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/DeviceContainer/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/IFrame/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/IFrame/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Preview/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/Controls/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/ToolbarArea/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/ToolbarArea/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/usePopupWindow.d.ts +0 -0
- /package/dist/{pages → views}/Login/LoginForm/index.d.ts +0 -0
- /package/dist/{pages → views}/Login/LoginForm/index.scss +0 -0
- /package/dist/{pages → views}/Logout/LogoutClient.d.ts +0 -0
- /package/dist/{pages → views}/Logout/index.scss +0 -0
- /package/dist/{pages → views}/ResetPassword/index.scss +0 -0
- /package/dist/{pages → views}/Verify/index.scss +0 -0
- /package/dist/{pages → views}/Version/Default/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Relationship/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/index.scss +0 -0
- /package/dist/{pages → views}/Version/Restore/index.scss +0 -0
- /package/dist/{pages → views}/Version/SelectComparison/index.scss +0 -0
- /package/dist/{pages → views}/Version/SelectLocales/index.scss +0 -0
- /package/dist/{pages → views}/Version/shared.d.ts +0 -0
- /package/dist/{pages → views}/Versions/cells/AutosaveCell/index.d.ts +0 -0
- /package/dist/{pages → views}/Versions/cells/CreatedAt/index.d.ts +0 -0
- /package/dist/{pages → views}/Versions/cells/ID/index.d.ts +0 -0
- /package/dist/{pages → views}/Versions/index.scss +0 -0
- /package/dist/{pages → views}/Versions/types.d.ts +0 -0
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DefaultDashboardClient", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return DefaultDashboardClient;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const _translations = require("@payloadcms/translations");
|
|
13
|
-
const _ui = require("@payloadcms/ui");
|
|
14
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
15
|
-
require("./index.scss");
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
17
|
-
if (typeof WeakMap !== "function") return null;
|
|
18
|
-
var cacheBabelInterop = new WeakMap();
|
|
19
|
-
var cacheNodeInterop = new WeakMap();
|
|
20
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
21
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
22
|
-
})(nodeInterop);
|
|
23
|
-
}
|
|
24
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
25
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
29
|
-
return {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34
|
-
if (cache && cache.has(obj)) {
|
|
35
|
-
return cache.get(obj);
|
|
36
|
-
}
|
|
37
|
-
var newObj = {
|
|
38
|
-
__proto__: null
|
|
39
|
-
};
|
|
40
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
41
|
-
for(var key in obj){
|
|
42
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
43
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
44
|
-
if (desc && (desc.get || desc.set)) {
|
|
45
|
-
Object.defineProperty(newObj, key, desc);
|
|
46
|
-
} else {
|
|
47
|
-
newObj[key] = obj[key];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
newObj.default = obj;
|
|
52
|
-
if (cache) {
|
|
53
|
-
cache.set(obj, newObj);
|
|
54
|
-
}
|
|
55
|
-
return newObj;
|
|
56
|
-
}
|
|
57
|
-
const baseClass = 'dashboard';
|
|
58
|
-
const DefaultDashboardClient = ({ Link, visibleCollections, visibleGlobals })=>{
|
|
59
|
-
const config = (0, _ui.useConfig)();
|
|
60
|
-
const { collections: collectionsConfig, globals: globalsConfig, routes: { admin } } = config;
|
|
61
|
-
const { setViewActions } = (0, _ui.useActions)();
|
|
62
|
-
(0, _react.useEffect)(()=>{
|
|
63
|
-
setViewActions([]);
|
|
64
|
-
}, [
|
|
65
|
-
setViewActions
|
|
66
|
-
]);
|
|
67
|
-
const { permissions, user } = (0, _ui.useAuth)();
|
|
68
|
-
const { i18n, t } = (0, _ui.useTranslation)();
|
|
69
|
-
const [groups, setGroups] = (0, _react.useState)([]);
|
|
70
|
-
(0, _react.useEffect)(()=>{
|
|
71
|
-
const collections = collectionsConfig.filter((collection)=>permissions?.collections?.[collection.slug]?.read?.permission && visibleCollections.includes(collection.slug));
|
|
72
|
-
const globals = globalsConfig.filter((global)=>permissions?.globals?.[global.slug]?.read?.permission && visibleGlobals.includes(global.slug));
|
|
73
|
-
setGroups((0, _ui.groupNavItems)([
|
|
74
|
-
...collections.map((collection)=>{
|
|
75
|
-
const entityToGroup = {
|
|
76
|
-
type: _ui.EntityType.collection,
|
|
77
|
-
entity: collection
|
|
78
|
-
};
|
|
79
|
-
return entityToGroup;
|
|
80
|
-
}) ?? [],
|
|
81
|
-
...globals.map((global)=>{
|
|
82
|
-
const entityToGroup = {
|
|
83
|
-
type: _ui.EntityType.global,
|
|
84
|
-
entity: global
|
|
85
|
-
};
|
|
86
|
-
return entityToGroup;
|
|
87
|
-
}) ?? []
|
|
88
|
-
], permissions, i18n));
|
|
89
|
-
}, [
|
|
90
|
-
permissions,
|
|
91
|
-
user,
|
|
92
|
-
i18n,
|
|
93
|
-
visibleCollections,
|
|
94
|
-
visibleGlobals,
|
|
95
|
-
collectionsConfig,
|
|
96
|
-
globalsConfig
|
|
97
|
-
]);
|
|
98
|
-
return /*#__PURE__*/ _react.default.createElement(_react.Fragment, null, groups.map(({ entities, label }, groupIndex)=>{
|
|
99
|
-
return /*#__PURE__*/ _react.default.createElement("div", {
|
|
100
|
-
className: `${baseClass}__group`,
|
|
101
|
-
key: groupIndex
|
|
102
|
-
}, /*#__PURE__*/ _react.default.createElement("h2", {
|
|
103
|
-
className: `${baseClass}__label`
|
|
104
|
-
}, label), /*#__PURE__*/ _react.default.createElement("ul", {
|
|
105
|
-
className: `${baseClass}__card-list`
|
|
106
|
-
}, entities.map(({ type, entity }, entityIndex)=>{
|
|
107
|
-
let title;
|
|
108
|
-
let buttonAriaLabel;
|
|
109
|
-
let createHREF;
|
|
110
|
-
let href;
|
|
111
|
-
let hasCreatePermission;
|
|
112
|
-
if (type === _ui.EntityType.collection) {
|
|
113
|
-
title = (0, _translations.getTranslation)(entity.labels.plural, i18n);
|
|
114
|
-
buttonAriaLabel = t('general:showAllLabel', {
|
|
115
|
-
label: title
|
|
116
|
-
});
|
|
117
|
-
href = `${admin}/collections/${entity.slug}`;
|
|
118
|
-
createHREF = `${admin}/collections/${entity.slug}/create`;
|
|
119
|
-
hasCreatePermission = permissions?.collections?.[entity.slug]?.create?.permission;
|
|
120
|
-
}
|
|
121
|
-
if (type === _ui.EntityType.global) {
|
|
122
|
-
title = (0, _translations.getTranslation)(entity.label, i18n);
|
|
123
|
-
buttonAriaLabel = t('general:editLabel', {
|
|
124
|
-
label: (0, _translations.getTranslation)(entity.label, i18n)
|
|
125
|
-
});
|
|
126
|
-
href = `${admin}/globals/${entity.slug}`;
|
|
127
|
-
}
|
|
128
|
-
return /*#__PURE__*/ _react.default.createElement("li", {
|
|
129
|
-
key: entityIndex
|
|
130
|
-
}, /*#__PURE__*/ _react.default.createElement(_ui.Card, {
|
|
131
|
-
Link: Link,
|
|
132
|
-
actions: hasCreatePermission && type === _ui.EntityType.collection ? /*#__PURE__*/ _react.default.createElement(_ui.Button, {
|
|
133
|
-
Link: Link,
|
|
134
|
-
"aria-label": t('general:createNewLabel', {
|
|
135
|
-
label: (0, _translations.getTranslation)(entity.labels.singular, i18n)
|
|
136
|
-
}),
|
|
137
|
-
buttonStyle: "icon-label",
|
|
138
|
-
el: "link",
|
|
139
|
-
icon: "plus",
|
|
140
|
-
iconStyle: "with-border",
|
|
141
|
-
round: true,
|
|
142
|
-
to: createHREF
|
|
143
|
-
}) : undefined,
|
|
144
|
-
buttonAriaLabel: buttonAriaLabel,
|
|
145
|
-
href: href,
|
|
146
|
-
id: `card-${entity.slug}`,
|
|
147
|
-
title: title,
|
|
148
|
-
titleAs: "h3"
|
|
149
|
-
}));
|
|
150
|
-
})));
|
|
151
|
-
}));
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWdlcy9EYXNoYm9hcmQvRGVmYXVsdC9pbmRleC5jbGllbnQudHN4Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuaW1wb3J0IHR5cGUgeyBFbnRpdHlUb0dyb3VwLCBHcm91cCB9IGZyb20gJ0BwYXlsb2FkY21zL3VpJ1xuXG5pbXBvcnQgeyBnZX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ogc3RyaW5nXG4gICAgICAgICAgICAgICAgbGV0IGJ1dHRvbkFyaWFMYWJlbDogc3RyaW5nXG4gICAgICAgICAgICAgICAgbGV0IGNyZWF0ZUhSRUY6IHN0cmluZ1xuICAgICAgICAgICAgICAgIGxldCBocmVmOiBzdHJpbmdcbiAgICAgICAgICAgICAgICBsZXQgaGFzQ3JlYXRlUGVybWlzc2lvbjogYm9vbGVhblxuXG4gICAgICAgICAgICAgICAgaWYgKHR5cGUgPT09IEVudGl0eVR5cGUuY29sbGVjdGlvbikge1xuICAgICAgICAgICAgICAgICAgdGl0bGUgPSBnZXRUcmFuc2xhdGlvbihlbnRpdHkubGFiZWxzLnBsdXJhbCwgaTE4bilcbiAgICAgICAgICAgICAgICAgIGJ1dHRvbkFyaWFMYWJlbCA9IHQoJ2dlbmVyYWw6c2hvd0FsbExhYmVsJywgeyBsYWJlbDogdGl0bGUgfSlcbiAgICAgICAgICAgICAgICAgIGhyZWYgPSBgJHthZG1pbn0vY29sbGVjdGlvbnMvJHtlbnRpdHkuc2x1Z31gXG4gICAgICAgICAgICAgICAgICBjcmVhdGVIUkVGID0gYCR7YWRtaW59L2NvbGxlY3Rpb25zLyR7ZW50aXR5LnNsdWd9L2NyZWF0ZWBcbiAgICAgICAgICAgICAgICAgIGhhc0NyZWF0ZVBlcm1pc3Npb24gPSBwZXJtaXNzaW9ucz8uY29sbGVjdGlvbnM/LltlbnRpdHkuc2x1Z10/LmNyZWF0ZT8ucGVybWlzc2lvblxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0eXBlID09PSBFbnRpdHlUeXBlLmdsb2JhbCkge1xuICAgICAgICAgICAgICAgICAgdGl0bGUgPSBnZXRUcmFuc2xhdGlvbihlbnRpdHkubGFiZWwsIGkxOG4pXG4gICAgICAgICAgICAgICAgICBidXR0b25BcmlhTGFiZWwgPSB0KCdnZW5lcmFsOmVkaXRMYWJlbCcsIHtcbiAgICAgICAgICAgICAgICAgICAgbGFiZWw6IGdldFRyYW5zbGF0aW9uKGVudGl0eS5sYWJlbCwgaTE4biksXG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgaHJlZiA9IGAke2FkbWlufS9nbG9iYWxzLyR7ZW50aXR5LnNsdWd9YFxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgICA8bGkga2V5PXtlbnRpdHlJbmRleH0+XG4gICAgICAgICAgICAgICAgICAgIDxDYXJkXG4gICAgICAgICAgICAgICAgICAgICAgTGluaz17TGlua31cbiAgICAgICAgICAgICAgICAgICAgICBhY3Rpb25zPXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhc0NyZWF0ZVBlcm1pc3Npb24gJiYgdHlwZSA9PT0gRW50aXR5VHlwZS5jb2xsZWN0aW9uID8gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICA8QnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgTGluaz17TGlua31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcmlhLWxhYmVsPXt0KCdnZW5lcmFsOmNyZWF0ZU5ld0xhYmVsJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IGdldFRyYW5zbGF0aW9uKGVudGl0eS5sYWJlbHMuc2luZ3VsYXIsIGkxOG4pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ1dHRvblN0eWxlPVwiaWNvbi1sYWJlbFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWw9XCJsaW5rXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uPVwicGx1c1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvblN0eWxlPVwid2l0aC1ib3JkZXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdW5kXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG89e2NyZWF0ZUhSRUZ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICApIDogdW5kZWZpbmVkXG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIGJ1dHRvbkFyaWFMYWJlbD17YnV0dG9uQXJpYUxhYmVsfVxuICAgICAgICAgICAgICAgICAgICAgIGhyZWY9e2hyZWZ9XG4gICAgICAgICAgICAgICAgICAgICAgaWQ9e2BjYXJkLSR7ZW50aXR5LnNsdWd9YH1cbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZT17dGl0bGV9XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGVBcz1cImgzXCJcbiAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgIDwvbGk+XG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICB9KX1cbiAgICAgICAgICAgIDwvdWw+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICAgIH0pfVxuICAgIDwvRnJhZ21lbnQ+XG4gIClcbn1cbiJdLCJuYW1lcyI6WyJEZWZhdWx0RGFzaGJvYXJkQ2xpZW50IiwiYmFzZUNsYXNzIiwiTGluayIsInZpc2libGVDb2xsZWN0aW9ucyIsInZpc2libGVHbG9iYWxzIiwiY29uZmlnIiwidXNlQ29uZmlnIiwiY29sbGVjdGlvbnMiLCJjb2xsZWN0aW9uc0NvbmZpZyIsImdsb2JhbHMiLCJnbG9iYWxzQ29uZmlnIiwicm91dGVzIiwiYWRtaW4iLCJzZXRWaWV3QWN0aW9ucyIsInVzZUFjdGlvbnMiLCJ1c2VFZmZlY3QiLCJwZXJtaXNzaW9ucyIsInVzZXIiLCJ1c2VBdXRoIiwiaTE4biIsInQiLCJ1c2VUcmFuc2xhdGlvbiIsImdyb3VwcyIsInNldEdyb3VwcyIsInVzZVN0YXRlIiwiZmlsdGVyIiwiY29sbGVjdGlvbiIs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CO0lBSVI7QUFHTiJ9
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SanitizedConfig } from 'payload/types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export type DashboardProps = {
|
|
5
|
-
Link: React.ComponentType<any>;
|
|
6
|
-
config: SanitizedConfig;
|
|
7
|
-
visibleCollections: string[];
|
|
8
|
-
visibleGlobals: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare const DefaultDashboard: React.FC<DashboardProps>;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Dashboard/Default/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,cAAc,CAAA;AAIrB,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,EAAE,eAAe,CAAA;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkCrD,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "DefaultDashboard", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return DefaultDashboard;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _ui = require("@payloadcms/ui");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const _indexclient = require("./index.client");
|
|
14
|
-
require("./index.scss");
|
|
15
|
-
function _interop_require_default(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : {
|
|
17
|
-
default: obj
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const baseClass = 'dashboard';
|
|
21
|
-
const DefaultDashboard = (props)=>{
|
|
22
|
-
const { Link, config: { admin: { components: { afterDashboard, beforeDashboard } } }, visibleCollections, visibleGlobals } = props;
|
|
23
|
-
// const { setViewActions } = useActions()
|
|
24
|
-
// useEffect(() => {
|
|
25
|
-
// setViewActions([])
|
|
26
|
-
// }, [setViewActions])
|
|
27
|
-
return /*#__PURE__*/ _react.default.createElement("div", {
|
|
28
|
-
className: baseClass
|
|
29
|
-
}, /*#__PURE__*/ _react.default.createElement(_ui.SetStepNav, {
|
|
30
|
-
nav: []
|
|
31
|
-
}), /*#__PURE__*/ _react.default.createElement(_ui.Gutter, {
|
|
32
|
-
className: `${baseClass}__wrap`
|
|
33
|
-
}, Array.isArray(beforeDashboard) && beforeDashboard.map((Component, i)=>/*#__PURE__*/ _react.default.createElement(Component, {
|
|
34
|
-
key: i
|
|
35
|
-
})), /*#__PURE__*/ _react.default.createElement(_indexclient.DefaultDashboardClient, {
|
|
36
|
-
Link: Link,
|
|
37
|
-
visibleCollections: visibleCollections,
|
|
38
|
-
visibleGlobals: visibleGlobals
|
|
39
|
-
}), Array.isArray(afterDashboard) && afterDashboard.map((Component, i)=>/*#__PURE__*/ _react.default.createElement(Component, {
|
|
40
|
-
key: i
|
|
41
|
-
}))));
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWdlcy9EYXNoYm9hcmQvRGVmYXVsdC9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb25maWcgfSBmcm9tICdwYXlsb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0I7OERBQ2pCOzZCQUVxQjtRQUNoQzs7Ozs7O0FBRVAsTUFBTUMsWUFBWTtBQVNYLE1BQU1ELG1CQUE2QyxDQUFDRTtJQUN6RCxNQUFNLEVBQ0pDLElBQUksRUFDSkMsUUFBUSxFQUNOQyxPQUFPLEVBQ0xDLFlBQVksRUFBRUMsY0FBYyxFQUFFQyxlQUFlLEVBQUUsRUFDaEQsRUFDRixFQUNEQyxrQkFBa0IsRUFDbEJDLGNBQWMsRUFDZixHQUFHUjtJQUVKLDBDQUEwQztJQUUxQyxvQkFBb0I7SUFDcEIsdUJBQXVCO0lBQ3ZCLHVCQUF1QjtJQUV2QixxQkFDRSw2QkFBQ1M7UUFBSUMsV0FBV1g7cUJBQ2QsNkJBQUNZLGNBQVU7UUFBQ0MsS0FBSyxFQUFFO3NCQUNuQiw2QkFBQ0MsVUFBTTtRQUFDSCxXQUFXLENBQUMsRUFBRVgsVUFBVSxNQUFNLENBQUM7T0FDcENlLE1BQU1DLE9BQU8sQ0FBQ1Qsb0JBQ2JBLGdCQUFnQlUsR0FBRyxDQUFDLENBQUNDLFdBQVdDLGtCQUFNLDZCQUFDRDtZQUFVRSxLQUFLRDsyQkFDeEQsNkJBQUNFLG1DQUFzQjtRQUNyQm5CLE1BQU1BO1FBQ05NLG9CQUFvQkE7UUFDcEJDLGdCQUFnQkE7UUFFakJNLE1BQU1DLE9BQU8sQ0FBQ1YsbUJBQ2JBLGVBQWVXLEdBQUcsQ0FBQyxDQUFDQyxXQUFXQyxrQkFBTSw2QkFBQ0Q7WUFBVUUsS0FBS0Q7O0FBSS9EIn0=
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from 'next';
|
|
2
|
-
import type { SanitizedConfig } from 'payload/types';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare const generateMetadata: ({ config: configPromise, }: {
|
|
5
|
-
config: Promise<SanitizedConfig>;
|
|
6
|
-
}) => Promise<Metadata>;
|
|
7
|
-
export declare const Dashboard: ({ config: configPromise, searchParams, }: {
|
|
8
|
-
config: Promise<SanitizedConfig>;
|
|
9
|
-
searchParams: {
|
|
10
|
-
[key: string]: string | string[];
|
|
11
|
-
};
|
|
12
|
-
}) => Promise<React.JSX.Element>;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/Dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAKpD,OAAO,KAAmB,MAAM,OAAO,CAAA;AASvC,eAAO,MAAM,gBAAgB,+BAE1B;IACD,MAAM,EAAE,QAAQ,eAAe,CAAC,CAAA;CACjC,KAAG,QAAQ,QAAQ,CAanB,CAAA;AAED,eAAO,MAAM,SAAS;YAIZ,QAAQ,eAAe,CAAC;;;;gCAkDjC,CAAA"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
Dashboard: function() {
|
|
13
|
-
return Dashboard;
|
|
14
|
-
},
|
|
15
|
-
generateMetadata: function() {
|
|
16
|
-
return generateMetadata;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _ui = require("@payloadcms/ui");
|
|
20
|
-
const _link = /*#__PURE__*/ _interop_require_default(require("next/link"));
|
|
21
|
-
const _utilities = require("payload/utilities");
|
|
22
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
23
|
-
const _getNextI18n = require("../../utilities/getNextI18n");
|
|
24
|
-
const _initPage = require("../../utilities/initPage");
|
|
25
|
-
const _meta = require("../../utilities/meta");
|
|
26
|
-
const _Default = require("./Default");
|
|
27
|
-
function _interop_require_default(obj) {
|
|
28
|
-
return obj && obj.__esModule ? obj : {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
33
|
-
if (typeof WeakMap !== "function") return null;
|
|
34
|
-
var cacheBabelInterop = new WeakMap();
|
|
35
|
-
var cacheNodeInterop = new WeakMap();
|
|
36
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
37
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
38
|
-
})(nodeInterop);
|
|
39
|
-
}
|
|
40
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
41
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
42
|
-
return obj;
|
|
43
|
-
}
|
|
44
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
45
|
-
return {
|
|
46
|
-
default: obj
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
50
|
-
if (cache && cache.has(obj)) {
|
|
51
|
-
return cache.get(obj);
|
|
52
|
-
}
|
|
53
|
-
var newObj = {
|
|
54
|
-
__proto__: null
|
|
55
|
-
};
|
|
56
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
57
|
-
for(var key in obj){
|
|
58
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
59
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
60
|
-
if (desc && (desc.get || desc.set)) {
|
|
61
|
-
Object.defineProperty(newObj, key, desc);
|
|
62
|
-
} else {
|
|
63
|
-
newObj[key] = obj[key];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
newObj.default = obj;
|
|
68
|
-
if (cache) {
|
|
69
|
-
cache.set(obj, newObj);
|
|
70
|
-
}
|
|
71
|
-
return newObj;
|
|
72
|
-
}
|
|
73
|
-
const generateMetadata = async ({ config: configPromise })=>{
|
|
74
|
-
const config = await configPromise;
|
|
75
|
-
const { t } = await (0, _getNextI18n.getNextI18n)({
|
|
76
|
-
config
|
|
77
|
-
});
|
|
78
|
-
return (0, _meta.meta)({
|
|
79
|
-
config,
|
|
80
|
-
description: `${t('general:dashboard')} Payload`,
|
|
81
|
-
keywords: `${t('general:dashboard')}, Payload`,
|
|
82
|
-
title: t('general:dashboard')
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
const Dashboard = async ({ config: configPromise, searchParams })=>{
|
|
86
|
-
const { permissions, req } = await (0, _initPage.initPage)({
|
|
87
|
-
config: configPromise,
|
|
88
|
-
redirectUnauthenticatedUser: true,
|
|
89
|
-
route: '',
|
|
90
|
-
searchParams
|
|
91
|
-
});
|
|
92
|
-
const { payload: { config }, user } = req;
|
|
93
|
-
const CustomDashboardComponent = config.admin.components?.views?.Dashboard;
|
|
94
|
-
const visibleCollections = config.collections.reduce((acc, collection)=>{
|
|
95
|
-
if (!(0, _utilities.isEntityHidden)({
|
|
96
|
-
hidden: collection.admin.hidden,
|
|
97
|
-
user
|
|
98
|
-
})) {
|
|
99
|
-
acc.push(collection.slug);
|
|
100
|
-
}
|
|
101
|
-
return acc;
|
|
102
|
-
}, []);
|
|
103
|
-
const visibleGlobals = config.globals.reduce((acc, global)=>{
|
|
104
|
-
if (!(0, _utilities.isEntityHidden)({
|
|
105
|
-
hidden: global.admin.hidden,
|
|
106
|
-
user
|
|
107
|
-
})) {
|
|
108
|
-
acc.push(global.slug);
|
|
109
|
-
}
|
|
110
|
-
return acc;
|
|
111
|
-
}, []);
|
|
112
|
-
const componentProps = {
|
|
113
|
-
Link: _link.default,
|
|
114
|
-
config,
|
|
115
|
-
visibleCollections,
|
|
116
|
-
visibleGlobals
|
|
117
|
-
};
|
|
118
|
-
return /*#__PURE__*/ _react.default.createElement(_react.Fragment, null, /*#__PURE__*/ _react.default.createElement(_ui.HydrateClientUser, {
|
|
119
|
-
permissions: permissions,
|
|
120
|
-
user: user
|
|
121
|
-
}), /*#__PURE__*/ _react.default.createElement(_ui.RenderCustomComponent, {
|
|
122
|
-
CustomComponent: typeof CustomDashboardComponent === 'function' ? CustomDashboardComponent : undefined,
|
|
123
|
-
DefaultComponent: _Default.DefaultDashboard,
|
|
124
|
-
componentProps: componentProps
|
|
125
|
-
}));
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWdlcy9EYXNoYm9hcmQvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTWV0YWRhdGEgfSBmcm9tICduZXh0J1xuaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBIeWRyYXRlQ2xpZW50VXNlciwgUmVuZGVyQ3VzdG9tQ29tcG9uZW50IH0gZnJvbSAnQHBheWxvYWRjbXMvdWknXG5pbXBvcnQgTGluayBmcm9tICduZXh0L2xpbmsnXG5pbXBvcnQgeyBpc0VudGl0eUhpZGRlbiB9IGZyb20gJ3BheWxvYWQvdXRpbGl0aWVzJ1xuaW1wb3J0IFJlYWN0LCB7IEZyYWdtZW50IH0gZnJvbSAncmVhY3QnXG5cbmltcG9ydCB0eXBlIHsgRGFzaGJvYXJkUHJvcHMgfSBmcm9tICcuL0RlZmF1bHQnXG5cbmltcG9ydCB7IGdldE5leHRJMThuIH0gZnJvbSAnLi4vLi4vdXRpbGl0aWVzL2dldE5leHRJMThuJ1xuaW1wb3J0IHsgaW5pdFBhZ2UgfSBmcm9tICcuLi8uLi91dGlsa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type { SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload/types';
|
|
3
|
-
export declare const getCustomViewByKey: (views: SanitizedCollectionConfig['admin']['components']['views'] | SanitizedGlobalConfig['admin']['components']['views'], customViewKey: string) => AdminViewComponent;
|
|
4
|
-
//# sourceMappingURL=getCustomViewByKey.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCustomViewByKey.d.ts","sourceRoot":"","sources":["../../../src/pages/Document/getCustomViewByKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErF,eAAO,MAAM,kBAAkB,UAEzB,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,iBAC1C,MAAM,KACpB,kBAaF,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "getCustomViewByKey", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return getCustomViewByKey;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const getCustomViewByKey = (views, customViewKey)=>{
|
|
12
|
-
return typeof views?.Edit === 'function' ? views?.Edit : typeof views?.Edit === 'object' && views?.Edit?.[customViewKey] && typeof views?.Edit?.[customViewKey] === 'function' ? views?.Edit?.[customViewKey] : views?.Edit?.[customViewKey] ? typeof views?.Edit?.[customViewKey] === 'object' && 'Component' in views?.Edit?.[customViewKey] && typeof views?.Edit?.[customViewKey].Component === 'function' && views?.Edit?.[customViewKey].Component : null;
|
|
13
|
-
};
|
|
14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, SanitizedGlobalConfig } from 'payload/types';
|
|
3
|
-
export declare const getCustomViewByPath: (views: SanitizedCollectionConfig['admin']['components']['views'] | SanitizedGlobalConfig['admin']['components']['views'], path: string) => AdminViewComponent;
|
|
4
|
-
//# sourceMappingURL=getCustomViewByPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCustomViewByPath.d.ts","sourceRoot":"","sources":["../../../src/pages/Document/getCustomViewByPath.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErF,eAAO,MAAM,mBAAmB,UAE1B,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,QACnD,MAAM,KACX,kBAeF,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "getCustomViewByPath", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return getCustomViewByPath;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const getCustomViewByPath = (views, path)=>{
|
|
12
|
-
if (typeof views?.Edit === 'object' && typeof views?.Edit !== 'function') {
|
|
13
|
-
const foundViewConfig = Object.entries(views.Edit).find(([, view])=>{
|
|
14
|
-
if (typeof view === 'object' && typeof view !== 'function' && 'path' in view) {
|
|
15
|
-
return view.path === path;
|
|
16
|
-
}
|
|
17
|
-
return false;
|
|
18
|
-
})?.[1];
|
|
19
|
-
if (foundViewConfig && 'Component' in foundViewConfig) {
|
|
20
|
-
return foundViewConfig.Component;
|
|
21
|
-
}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B9XG4gICAgICByZXR1cm4gZmFsc2VcbiAgICB9KT8uWzFdXG5cbiAgICBpZiAoZm91bmRWaWV3Q29uZmlnICYmICdDb21wb25lbnQnIGluIGZvdW5kVmlld0NvbmZpZykge1xuICAgICAgcmV0dXJuIGZvdW5kVmlld0NvbmZpZy5Db21wb25lbnRcbiAgICB9XG4gIH1cblxuICByZXR1cm4gbnVsbFxufVxuIl0sIm5hbWVzIjpbImdldEN1c3RvbVZpZXdCeVBhdGgiLCJ2aWV3cyIsInBhdGgiLCJFZGl0IiwiZm91bmRWaWV3Q29uZmlnIiwiT2JqZWN0IiwiZW50cmllcyIsImZpbmQiLCJ2aWV3IiwiQ29tcG9uZW50Il0sIm1hcHBpbmdzIjoiOzs7OytCQUdhQTs7O2VBQUFBOzs7QUFBTixNQUFNQSxzQkFBc0IsQ0FDakNDLE9BR0FDO0lBRUEsSUFBSSxPQUFPRCxPQUFPRSxTQUFTLFlBQVksT0FBT0YsT0FBT0UsU0FBUyxZQUFZO1FBQ3hFLE1BQU1DLGtCQUFrQkMsT0FBT0MsT0FBTyxDQUFDTCxNQUFNRSxJQUFJLEVBQUVJLElBQUksQ0FBQyxDQUFDLEdBQUdDLEtBQUs7WUFDL0QsSUFBSSxPQUFPQSxTQUFTLFlBQVksT0FBT0EsU0FBUyxjQUFjLFVBQVVBLE1BQU07Z0JBQzVFLE9BQU9BLEtBQUtOLElBQUksS0FBS0E7WUFDdkI7WUFDQSxPQUFPO1FBQ1QsSUFBSSxDQUFDLEVBQUU7UUFFUCxJQUFJRSxtQkFBbUIsZUFBZUEsaUJBQWlCO1lBQ3JELE9BQU9BLGdCQUFnQkssU0FBUztRQUNsQztJQUNGO0lBRUEsT0FBTztBQUNUIn0=
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { I18n } from '@payloadcms/translations';
|
|
3
|
-
import type { Metadata } from 'next';
|
|
4
|
-
import type { SanitizedCollectionConfig, SanitizedConfig, SanitizedGlobalConfig } from 'payload/types';
|
|
5
|
-
export type GenerateEditViewMetadata = (args: {
|
|
6
|
-
collectionConfig?: SanitizedCollectionConfig;
|
|
7
|
-
config: SanitizedConfig;
|
|
8
|
-
globalConfig?: SanitizedGlobalConfig;
|
|
9
|
-
i18n: I18n;
|
|
10
|
-
isEditing: boolean;
|
|
11
|
-
}) => Promise<Metadata>;
|
|
12
|
-
export declare const getMetaBySegment: ({ config: configPromise, params, }: {
|
|
13
|
-
config: Promise<SanitizedConfig>;
|
|
14
|
-
params: {
|
|
15
|
-
collection?: string;
|
|
16
|
-
global?: string;
|
|
17
|
-
segments: string[];
|
|
18
|
-
};
|
|
19
|
-
}) => Promise<Metadata>;
|
|
20
|
-
//# sourceMappingURL=getMetaBySegment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMetaBySegment.d.ts","sourceRoot":"","sources":["../../../src/pages/Document/getMetaBySegment.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AACpC,OAAO,KAAK,EACV,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACtB,MAAM,eAAe,CAAA;AAKtB,MAAM,MAAM,wBAAwB,GAAG,CAAC,IAAI,EAAE;IAC5C,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,IAAI,EAAE,IAAI,CAAA;IACV,SAAS,EAAE,OAAO,CAAA;CACnB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEvB,eAAO,MAAM,gBAAgB;YAInB,QAAQ,eAAe,CAAC;YACxB;QACN,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,EAAE,CAAA;KACnB;MACC,QAAQ,QAAQ,CA2FnB,CAAA"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "getMetaBySegment", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return getMetaBySegment;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _getNextI18nts = require("../../utilities/getNextI18n.ts");
|
|
12
|
-
const _metats = require("../../utilities/meta.ts");
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
14
|
-
if (typeof WeakMap !== "function") return null;
|
|
15
|
-
var cacheBabelInterop = new WeakMap();
|
|
16
|
-
var cacheNodeInterop = new WeakMap();
|
|
17
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
18
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
19
|
-
})(nodeInterop);
|
|
20
|
-
}
|
|
21
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
22
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
23
|
-
return obj;
|
|
24
|
-
}
|
|
25
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
26
|
-
return {
|
|
27
|
-
default: obj
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
31
|
-
if (cache && cache.has(obj)) {
|
|
32
|
-
return cache.get(obj);
|
|
33
|
-
}
|
|
34
|
-
var newObj = {
|
|
35
|
-
__proto__: null
|
|
36
|
-
};
|
|
37
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
38
|
-
for(var key in obj){
|
|
39
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
40
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
41
|
-
if (desc && (desc.get || desc.set)) {
|
|
42
|
-
Object.defineProperty(newObj, key, desc);
|
|
43
|
-
} else {
|
|
44
|
-
newObj[key] = obj[key];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
newObj.default = obj;
|
|
49
|
-
if (cache) {
|
|
50
|
-
cache.set(obj, newObj);
|
|
51
|
-
}
|
|
52
|
-
return newObj;
|
|
53
|
-
}
|
|
54
|
-
const getMetaBySegment = async ({ config: configPromise, params })=>{
|
|
55
|
-
const config = await configPromise;
|
|
56
|
-
let fn = null;
|
|
57
|
-
const isEditing = Boolean(params.collection && params.segments?.length > 0 && params.segments[0] !== 'create');
|
|
58
|
-
if (params.collection && params?.segments?.length) {
|
|
59
|
-
// `/:id`
|
|
60
|
-
if (params.segments.length === 1) {
|
|
61
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Edit/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
62
|
-
}
|
|
63
|
-
// `/:id/api`
|
|
64
|
-
if (params.segments.length === 2 && params.segments[1] === 'api') {
|
|
65
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../API/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
66
|
-
}
|
|
67
|
-
// `/:id/preview`
|
|
68
|
-
if (params.segments.length === 2 && params.segments[1] === 'preview') {
|
|
69
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../LivePreview/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
70
|
-
}
|
|
71
|
-
// `/:id/versions`
|
|
72
|
-
if (params.segments.length === 2 && params.segments[1] === 'versions') {
|
|
73
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Versions/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
74
|
-
}
|
|
75
|
-
// `/:id/versions/:version`
|
|
76
|
-
if (params.segments.length === 3 && params.segments[1] === 'versions') {
|
|
77
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Version/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (params.global) {
|
|
81
|
-
// `/:slug`
|
|
82
|
-
if (!params.segments?.length) {
|
|
83
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Edit/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
84
|
-
}
|
|
85
|
-
// `/:slug/api`
|
|
86
|
-
if (params.segments?.length === 1 && params.segments[0] === 'api') {
|
|
87
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../API/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
88
|
-
}
|
|
89
|
-
// `/:slug/preview`
|
|
90
|
-
if (params.segments?.length === 1 && params.segments[0] === 'preview') {
|
|
91
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../LivePreview/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
92
|
-
}
|
|
93
|
-
// `/:slug/versions`
|
|
94
|
-
if (params.segments?.length === 1 && params.segments[0] === 'versions') {
|
|
95
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Versions/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
96
|
-
}
|
|
97
|
-
// `/:slug/versions/:version`
|
|
98
|
-
if (params.segments?.length === 2 && params.segments[0] === 'versions') {
|
|
99
|
-
fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Version/meta.ts"))).then((mod)=>mod.generateMetadata);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const i18n = await (0, _getNextI18nts.getNextI18n)({
|
|
103
|
-
config
|
|
104
|
-
});
|
|
105
|
-
const collectionConfig = params.collection ? config?.collections?.find((collection)=>collection.slug === params.collection) : null;
|
|
106
|
-
const globalConfig = params.global ? config?.globals?.find((global)=>global.slug === params.global) : null;
|
|
107
|
-
if (typeof fn === 'function') {
|
|
108
|
-
return fn({
|
|
109
|
-
collectionConfig,
|
|
110
|
-
config,
|
|
111
|
-
globalConfig,
|
|
112
|
-
i18n,
|
|
113
|
-
isEditing
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return (0, _metats.meta)({
|
|
117
|
-
config,
|
|
118
|
-
description: '',
|
|
119
|
-
keywords: '',
|
|
120
|
-
title: ''
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWdlcy9Eb2N1bWVudC9nZXRNZXRhQnlTZWdtZW50LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEkxOG4gfSBmcm9tICdAcGF5bG9hZGNtcy90cmFuc2xhdGlvbnMnXG5pbXBvcnQgdHlwZSB7IE1ldGFkYXRhIH0gZnJvbSAnbmV4dCdcbmltcG9ydCB0eXBlIHtcbiAgU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZyxcbiAgU2FuaXRpemVkQ29uZmlnLFxuICBTYW5pdGl6ZWRHbG9iYWxDb25maWcsXG59IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGdldE5leHRJMThuIH0gZnJvbSAnLi4vLi4vdXRpbGl0aWVzL2dldE5leHRJMThuLnRzJ1xuaW1wb3J0IHsgbWV0YSB9IGZyb20gJy4uLy4uL3V0aWxpdGllcy9tZXRhLnRzJ1xuXG5leHBvcnQgdHlwZSBHZW5lcmF0ZUVkaXRWaWV3TWV0YWRhdGEgPSAoYXJnczoge1xuICBjb2xsZWN0aW9uQ29uZmlnPzogU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZ1xuICBjb25maWc6IFNhbml0aXplZENvbmZpZ1xuICBnbG9i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