@payloadcms/next 3.0.0-alpha.8 → 3.0.0-beta.0
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.d.ts.map +1 -1
- 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 +3 -0
- package/dist/exports/utilities.d.ts.map +1 -0
- package/dist/exports/utilities.js +4 -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 +3 -35
- package/dist/index.js.map +1 -0
- package/dist/layouts/Root/index.d.ts.map +1 -1
- package/dist/layouts/Root/index.js +62 -77
- 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/favicon.svg +15 -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 +3 -3
- package/dist/routes/rest/buildFormState.d.ts.map +1 -1
- package/dist/routes/rest/buildFormState.js +143 -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 → routeError.d.ts} +3 -3
- 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/buildFieldSchemaMap/index.d.ts +4 -0
- package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/index.js +28 -0
- package/dist/utilities/buildFieldSchemaMap/index.js.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts +14 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -0
- package/dist/utilities/buildFieldSchemaMap/traverseFields.js +72 -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 +29 -32
- 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 +2 -2
- package/dist/utilities/getNextI18n.d.ts.map +1 -1
- package/dist/utilities/getNextI18n.js +10 -24
- 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 +6 -3
- 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 +4 -16
- package/dist/utilities/initPage.d.ts.map +1 -1
- package/dist/utilities/initPage.js +70 -54
- 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.js +17 -69
- package/dist/views/API/RenderJSON/index.js.map +1 -0
- package/dist/views/API/index.client.d.ts +1 -2
- package/dist/views/API/index.client.d.ts.map +1 -1
- package/dist/views/API/index.client.js +58 -106
- package/dist/views/API/index.client.js.map +1 -0
- package/dist/views/API/index.d.ts +2 -3
- package/dist/views/API/index.d.ts.map +1 -1
- package/dist/views/API/index.js +5 -25
- package/dist/views/API/index.js.map +1 -0
- package/dist/views/API/meta.d.ts +1 -1
- package/dist/views/API/meta.d.ts.map +1 -1
- package/dist/views/API/meta.js +4 -14
- package/dist/views/API/meta.js.map +1 -0
- package/dist/views/Account/Settings/index.d.ts.map +1 -1
- package/dist/views/Account/Settings/index.js +16 -30
- package/dist/views/Account/Settings/index.js.map +1 -0
- package/dist/views/Account/ToggleTheme/index.js +10 -59
- package/dist/views/Account/ToggleTheme/index.js.map +1 -0
- package/dist/views/Account/index.d.ts +3 -12
- package/dist/views/Account/index.d.ts.map +1 -1
- package/dist/views/Account/index.js +43 -152
- 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 +2 -0
- package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -1
- package/dist/views/CreateFirstUser/index.client.js +15 -22
- package/dist/views/CreateFirstUser/index.client.js.map +1 -0
- package/dist/views/CreateFirstUser/index.d.ts +3 -17
- package/dist/views/CreateFirstUser/index.d.ts.map +1 -1
- package/dist/views/CreateFirstUser/index.js +23 -64
- 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 +4 -2
- package/dist/views/Dashboard/Default/index.client.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/index.client.js +35 -82
- package/dist/views/Dashboard/Default/index.client.js.map +1 -0
- package/dist/views/Dashboard/Default/index.d.ts +4 -3
- package/dist/views/Dashboard/Default/index.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/index.js +17 -31
- package/dist/views/Dashboard/Default/index.js.map +1 -0
- package/dist/views/Dashboard/index.d.ts +3 -14
- package/dist/views/Dashboard/index.d.ts.map +1 -1
- package/dist/views/Dashboard/index.js +18 -113
- 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 +2 -2
- package/dist/views/Document/getCustomViewByKey.d.ts.map +1 -1
- package/dist/views/Document/getCustomViewByKey.js +2 -12
- 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 +6 -16
- package/dist/views/Document/getMetaBySegment.d.ts.map +1 -1
- package/dist/views/Document/getMetaBySegment.js +39 -86
- package/dist/views/Document/getMetaBySegment.js.map +1 -0
- package/dist/views/Document/getViewsFromConfig.d.ts +12 -9
- package/dist/views/Document/getViewsFromConfig.d.ts.map +1 -1
- package/dist/views/Document/getViewsFromConfig.js +198 -121
- package/dist/views/Document/getViewsFromConfig.js.map +1 -0
- package/dist/views/Document/index.d.ts +4 -22
- package/dist/views/Document/index.d.ts.map +1 -1
- package/dist/views/Document/index.js +115 -192
- 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 +1 -2
- package/dist/views/Edit/Default/Auth/APIKey.d.ts.map +1 -1
- package/dist/views/Edit/Default/Auth/APIKey.js +37 -78
- package/dist/views/Edit/Default/Auth/APIKey.js.map +1 -0
- package/dist/views/Edit/Default/Auth/index.d.ts +2 -3
- package/dist/views/Edit/Default/Auth/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/Auth/index.js +42 -93
- package/dist/views/Edit/Default/Auth/index.js.map +1 -0
- package/dist/views/Edit/Default/Auth/types.js +2 -5
- package/dist/views/Edit/Default/Auth/types.js.map +1 -0
- package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts +5 -4
- package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/SetDocumentTitle/index.js +27 -39
- package/dist/views/Edit/Default/SetDocumentTitle/index.js.map +1 -0
- package/dist/views/Edit/Default/SetStepNav/index.d.ts +1 -2
- package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/SetStepNav/index.js +17 -23
- package/dist/views/Edit/Default/SetStepNav/index.js.map +1 -0
- package/dist/views/Edit/Default/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/index.js +109 -109
- package/dist/views/Edit/Default/index.js.map +1 -0
- package/dist/views/Edit/Default/types.js +2 -5
- package/dist/views/Edit/Default/types.js.map +1 -0
- package/dist/views/Edit/index.client.d.ts +1 -2
- package/dist/views/Edit/index.client.d.ts.map +1 -1
- package/dist/views/Edit/index.client.js +11 -94
- package/dist/views/Edit/index.client.js.map +1 -0
- package/dist/views/Edit/index.d.ts +2 -3
- package/dist/views/Edit/index.d.ts.map +1 -1
- package/dist/views/Edit/index.js +5 -25
- package/dist/views/Edit/index.js.map +1 -0
- package/dist/views/Edit/meta.d.ts +1 -1
- package/dist/views/Edit/meta.d.ts.map +1 -1
- package/dist/views/Edit/meta.js +11 -21
- package/dist/views/Edit/meta.js.map +1 -0
- package/dist/views/Edit/sanitizeEditViewProps.d.ts +1 -2
- package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +1 -1
- package/dist/views/Edit/sanitizeEditViewProps.js +5 -18
- package/dist/views/Edit/sanitizeEditViewProps.js.map +1 -0
- package/dist/views/ForgotPassword/index.d.ts +4 -12
- package/dist/views/ForgotPassword/index.d.ts.map +1 -1
- package/dist/views/ForgotPassword/index.js +27 -91
- 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 -1
- package/dist/views/List/Default/index.js +80 -109
- package/dist/views/List/Default/index.js.map +1 -0
- package/dist/views/List/Default/types.d.ts +3 -2
- package/dist/views/List/Default/types.d.ts.map +1 -1
- package/dist/views/List/Default/types.js +2 -5
- package/dist/views/List/Default/types.js.map +1 -0
- package/dist/views/List/index.d.ts +3 -20
- package/dist/views/List/index.d.ts.map +1 -1
- package/dist/views/List/index.js +69 -114
- 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.js +6 -14
- package/dist/views/LivePreview/Context/collisionDetection.js.map +1 -0
- package/dist/views/LivePreview/Context/context.d.ts +2 -2
- package/dist/views/LivePreview/Context/context.d.ts.map +1 -1
- package/dist/views/LivePreview/Context/context.js +4 -22
- package/dist/views/LivePreview/Context/context.js.map +1 -0
- package/dist/views/LivePreview/Context/index.d.ts +5 -3
- package/dist/views/LivePreview/Context/index.d.ts.map +1 -1
- package/dist/views/LivePreview/Context/index.js +38 -93
- package/dist/views/LivePreview/Context/index.js.map +1 -0
- package/dist/views/LivePreview/Context/sizeReducer.js +2 -12
- package/dist/views/LivePreview/Context/sizeReducer.js.map +1 -0
- package/dist/views/LivePreview/Device/index.js +10 -61
- package/dist/views/LivePreview/Device/index.js.map +1 -0
- package/dist/views/LivePreview/DeviceContainer/index.js +6 -21
- package/dist/views/LivePreview/DeviceContainer/index.js.map +1 -0
- package/dist/views/LivePreview/IFrame/index.d.ts +4 -3
- package/dist/views/LivePreview/IFrame/index.d.ts.map +1 -1
- package/dist/views/LivePreview/IFrame/index.js +6 -58
- package/dist/views/LivePreview/IFrame/index.js.map +1 -0
- package/dist/views/LivePreview/Preview/index.d.ts +1 -1
- package/dist/views/LivePreview/Preview/index.d.ts.map +1 -1
- package/dist/views/LivePreview/Preview/index.js +23 -72
- package/dist/views/LivePreview/Preview/index.js.map +1 -0
- package/dist/views/LivePreview/Toolbar/Controls/index.d.ts +1 -1
- package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -1
- package/dist/views/LivePreview/Toolbar/Controls/index.js +24 -37
- package/dist/views/LivePreview/Toolbar/Controls/index.js.map +1 -0
- package/dist/views/LivePreview/Toolbar/SizeInput/index.js +9 -61
- package/dist/views/LivePreview/Toolbar/SizeInput/index.js.map +1 -0
- package/dist/views/LivePreview/Toolbar/index.d.ts +1 -1
- package/dist/views/LivePreview/Toolbar/index.d.ts.map +1 -1
- package/dist/views/LivePreview/Toolbar/index.js +16 -32
- package/dist/views/LivePreview/Toolbar/index.js.map +1 -0
- package/dist/views/LivePreview/ToolbarArea/index.js +6 -22
- package/dist/views/LivePreview/ToolbarArea/index.js.map +1 -0
- package/dist/views/LivePreview/index.client.d.ts +2 -3
- package/dist/views/LivePreview/index.client.d.ts.map +1 -1
- package/dist/views/LivePreview/index.client.js +83 -106
- package/dist/views/LivePreview/index.client.js.map +1 -0
- package/dist/views/LivePreview/index.d.ts +2 -2
- package/dist/views/LivePreview/index.d.ts.map +1 -1
- package/dist/views/LivePreview/index.js +34 -30
- package/dist/views/LivePreview/index.js.map +1 -0
- package/dist/views/LivePreview/meta.d.ts +1 -1
- package/dist/views/LivePreview/meta.d.ts.map +1 -1
- package/dist/views/LivePreview/meta.js +11 -21
- package/dist/views/LivePreview/meta.js.map +1 -0
- package/dist/views/LivePreview/usePopupWindow.d.ts.map +1 -1
- package/dist/views/LivePreview/usePopupWindow.js +11 -21
- package/dist/views/LivePreview/usePopupWindow.js.map +1 -0
- package/dist/views/Login/LoginForm/index.d.ts.map +1 -1
- package/dist/views/Login/LoginForm/index.js +22 -36
- package/dist/views/Login/LoginForm/index.js.map +1 -0
- package/dist/views/Login/index.d.ts +4 -15
- package/dist/views/Login/index.d.ts.map +1 -1
- package/dist/views/Login/index.js +16 -88
- package/dist/views/Login/index.js.map +1 -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 -1
- package/dist/views/Logout/LogoutClient.js +15 -69
- package/dist/views/Logout/LogoutClient.js.map +1 -0
- package/dist/views/Logout/index.d.ts +5 -17
- package/dist/views/Logout/index.d.ts.map +1 -1
- package/dist/views/Logout/index.js +12 -53
- 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 +26 -5
- package/dist/views/NotFound/index.d.ts.map +1 -1
- package/dist/views/NotFound/index.js +34 -45
- package/dist/views/NotFound/index.js.map +1 -0
- package/dist/views/NotFound/index.scss +1 -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 +4 -17
- package/dist/views/ResetPassword/index.d.ts.map +1 -1
- package/dist/views/ResetPassword/index.js +34 -62
- 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 +13 -6
- package/dist/views/Root/index.d.ts.map +1 -1
- package/dist/views/Root/index.js +43 -226
- 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 -11
- package/dist/views/Unauthorized/index.d.ts.map +1 -1
- package/dist/views/Unauthorized/index.js +18 -42
- package/dist/views/Unauthorized/index.js.map +1 -0
- package/dist/views/Unauthorized/index.scss +36 -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 +4 -17
- package/dist/views/Verify/index.d.ts.map +1 -1
- package/dist/views/Verify/index.js +14 -55
- 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 +4 -3
- package/dist/views/Version/Default/SetStepNav.d.ts.map +1 -1
- package/dist/views/Version/Default/SetStepNav.js +36 -28
- package/dist/views/Version/Default/SetStepNav.js.map +1 -0
- package/dist/views/Version/Default/index.d.ts +1 -1
- package/dist/views/Version/Default/index.d.ts.map +1 -1
- package/dist/views/Version/Default/index.js +53 -93
- package/dist/views/Version/Default/index.js.map +1 -0
- package/dist/views/Version/Default/types.d.ts +4 -9
- package/dist/views/Version/Default/types.d.ts.map +1 -1
- package/dist/views/Version/Default/types.js +2 -5
- package/dist/views/Version/Default/types.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/Label/index.js +4 -20
- package/dist/views/Version/RenderFieldsToDiff/Label/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +31 -47
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +10 -26
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +20 -35
- 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 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +7 -62
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +6 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +16 -31
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +6 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +11 -26
- 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 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +7 -62
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +11 -27
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js +2 -12
- package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +54 -19
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +25 -40
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/styles.js +2 -12
- package/dist/views/Version/RenderFieldsToDiff/fields/styles.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js +2 -5
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js +28 -43
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts +2 -2
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/types.js +2 -5
- package/dist/views/Version/RenderFieldsToDiff/types.js.map +1 -0
- package/dist/views/Version/Restore/index.d.ts +1 -1
- package/dist/views/Version/Restore/index.d.ts.map +1 -1
- package/dist/views/Version/Restore/index.js +24 -71
- package/dist/views/Version/Restore/index.js.map +1 -0
- package/dist/views/Version/Restore/types.d.ts +1 -1
- package/dist/views/Version/Restore/types.d.ts.map +1 -1
- package/dist/views/Version/Restore/types.js +2 -5
- package/dist/views/Version/Restore/types.js.map +1 -0
- package/dist/views/Version/SelectComparison/index.d.ts +1 -1
- package/dist/views/Version/SelectComparison/index.d.ts.map +1 -1
- package/dist/views/Version/SelectComparison/index.js +53 -90
- package/dist/views/Version/SelectComparison/index.js.map +1 -0
- package/dist/views/Version/SelectComparison/types.d.ts +1 -1
- package/dist/views/Version/SelectComparison/types.d.ts.map +1 -1
- package/dist/views/Version/SelectComparison/types.js +2 -5
- package/dist/views/Version/SelectComparison/types.js.map +1 -0
- package/dist/views/Version/SelectLocales/index.d.ts +1 -1
- package/dist/views/Version/SelectLocales/index.d.ts.map +1 -1
- package/dist/views/Version/SelectLocales/index.js +11 -25
- package/dist/views/Version/SelectLocales/index.js.map +1 -0
- package/dist/views/Version/SelectLocales/types.d.ts +4 -4
- package/dist/views/Version/SelectLocales/types.d.ts.map +1 -1
- package/dist/views/Version/SelectLocales/types.js +2 -5
- package/dist/views/Version/SelectLocales/types.js.map +1 -0
- package/dist/views/Version/index.d.ts +2 -2
- package/dist/views/Version/index.d.ts.map +1 -1
- package/dist/views/Version/index.js +35 -42
- package/dist/views/Version/index.js.map +1 -0
- package/dist/views/Version/meta.d.ts +1 -1
- package/dist/views/Version/meta.d.ts.map +1 -1
- package/dist/views/Version/meta.js +13 -19
- package/dist/views/Version/meta.js.map +1 -0
- package/dist/views/Version/shared.js +3 -21
- package/dist/views/Version/shared.js.map +1 -0
- package/dist/views/Versions/buildColumns.d.ts +2 -2
- package/dist/views/Versions/buildColumns.d.ts.map +1 -1
- package/dist/views/Versions/buildColumns.js +36 -42
- package/dist/views/Versions/buildColumns.js.map +1 -0
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.js +10 -59
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -0
- package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +1 -1
- package/dist/views/Versions/cells/CreatedAt/index.js +18 -25
- package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -0
- package/dist/views/Versions/cells/ID/index.js +6 -57
- package/dist/views/Versions/cells/ID/index.js.map +1 -0
- package/dist/views/Versions/index.client.d.ts +1 -6
- package/dist/views/Versions/index.client.d.ts.map +1 -1
- package/dist/views/Versions/index.client.js +31 -117
- package/dist/views/Versions/index.client.js.map +1 -0
- package/dist/views/Versions/index.d.ts +2 -3
- package/dist/views/Versions/index.d.ts.map +1 -1
- package/dist/views/Versions/index.js +40 -72
- package/dist/views/Versions/index.js.map +1 -0
- package/dist/views/Versions/meta.d.ts +1 -1
- package/dist/views/Versions/meta.d.ts.map +1 -1
- package/dist/views/Versions/meta.js +7 -17
- package/dist/views/Versions/meta.js.map +1 -0
- package/dist/views/Versions/types.js +2 -5
- 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 +36 -52
- package/src/index.js +1 -0
- package/dist/295bdb5117ce718dc7ce.woff2 +0 -1
- package/dist/3dec23c585a4abb5db73.woff +0 -1
- package/dist/542802f243f0fcaf55b3.woff2 +0 -1
- package/dist/5e5b3593b8911609ead8.woff +0 -1
- package/dist/64ee2a3127da82b7ea68.woff2 +0 -1
- package/dist/67a3a8f8301a0429df2d.woff +0 -1
- package/dist/8d0dc94a123c04b123f0.woff +0 -1
- package/dist/94db87589768ca1eec3c.woff2 +0 -1
- package/dist/997a8ea7da8ec3068210.woff2 +0 -1
- package/dist/9ab00e972f6f94ca3ff4.woff +0 -1
- package/dist/ab1f8b95d9d1911a4a3e.woff +0 -1
- package/dist/ba5a15d71add74a81bb9.woff +0 -1
- package/dist/bd2c036744af4b004ea6.woff2 +0 -1
- 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/cc56c782af93204aba75.woff +0 -1
- package/dist/d377d6e20b542fe3b375.woff2 +0 -1
- package/dist/e415ace668b22ac52c65.woff2 +0 -1
- 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 -7
- 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/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/styles.css +0 -1
- package/dist/utilities/auth.d.ts +0 -10
- package/dist/utilities/auth.d.ts.map +0 -1
- package/dist/utilities/auth.js +0 -42
- 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/dist/views/Document/getCustomViewByPath.d.ts +0 -4
- package/dist/views/Document/getCustomViewByPath.d.ts.map +0 -1
- package/dist/views/Document/getCustomViewByPath.js +0 -26
- package/dist/views/Edit/Default/RenderCustomView.d.ts +0 -2
- package/dist/views/Edit/Default/RenderCustomView.d.ts.map +0 -1
- package/dist/views/Edit/Default/RenderCustomView.js +0 -3
- package/dist/views/Edit/types.d.js +0 -7
- package/dist/views/Edit/types.d.ts +0 -32
- package/dist/views/Edit/types.d.ts.map +0 -1
- package/dist/views/Edit/types.js +0 -6
- package/dist/views/List/Default/Cell/cellTypes.spec.js +0 -234
- package/dist/views/List/Default/Cell/fields/Array/index.d.ts +0 -7
- package/dist/views/List/Default/Cell/fields/Array/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Array/index.js +0 -27
- package/dist/views/List/Default/Cell/fields/Blocks/index.d.ts +0 -8
- package/dist/views/List/Default/Cell/fields/Blocks/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Blocks/index.js +0 -45
- package/dist/views/List/Default/Cell/fields/Checkbox/index.d.ts +0 -5
- package/dist/views/List/Default/Cell/fields/Checkbox/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Checkbox/index.js +0 -23
- package/dist/views/List/Default/Cell/fields/Checkbox/index.scss +0 -22
- package/dist/views/List/Default/Cell/fields/Code/index.d.ts +0 -8
- package/dist/views/List/Default/Cell/fields/Code/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Code/index.js +0 -29
- package/dist/views/List/Default/Cell/fields/Code/index.scss +0 -27
- package/dist/views/List/Default/Cell/fields/Date/index.d.ts +0 -7
- package/dist/views/List/Default/Cell/fields/Date/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Date/index.js +0 -26
- package/dist/views/List/Default/Cell/fields/File/index.d.ts +0 -7
- package/dist/views/List/Default/Cell/fields/File/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/File/index.js +0 -39
- package/dist/views/List/Default/Cell/fields/File/index.scss +0 -23
- package/dist/views/List/Default/Cell/fields/JSON/index.d.ts +0 -5
- package/dist/views/List/Default/Cell/fields/JSON/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/JSON/index.js +0 -26
- package/dist/views/List/Default/Cell/fields/JSON/index.scss +0 -22
- package/dist/views/List/Default/Cell/fields/Relationship/index.d.ts +0 -9
- package/dist/views/List/Default/Cell/fields/Relationship/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Relationship/index.js +0 -121
- package/dist/views/List/Default/Cell/fields/Relationship/index.scss +0 -3
- package/dist/views/List/Default/Cell/fields/Richtext/index.d.ts +0 -2
- package/dist/views/List/Default/Cell/fields/Richtext/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Richtext/index.js +0 -3
- package/dist/views/List/Default/Cell/fields/Select/index.d.ts +0 -7
- package/dist/views/List/Default/Cell/fields/Select/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Select/index.js +0 -40
- package/dist/views/List/Default/Cell/fields/Textarea/index.d.ts +0 -4
- package/dist/views/List/Default/Cell/fields/Textarea/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/Textarea/index.js +0 -23
- package/dist/views/List/Default/Cell/fields/index.d.ts +0 -17
- package/dist/views/List/Default/Cell/fields/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/fields/index.js +0 -36
- package/dist/views/List/Default/Cell/index.d.ts +0 -4
- package/dist/views/List/Default/Cell/index.d.ts.map +0 -1
- package/dist/views/List/Default/Cell/index.js +0 -89
- package/dist/views/List/Default/RelationshipProvider/index.d.ts +0 -20
- package/dist/views/List/Default/RelationshipProvider/index.d.ts.map +0 -1
- package/dist/views/List/Default/RelationshipProvider/index.js +0 -153
- package/dist/views/List/Default/RelationshipProvider/reducer.d.ts +0 -19
- package/dist/views/List/Default/RelationshipProvider/reducer.d.ts.map +0 -1
- package/dist/views/List/Default/RelationshipProvider/reducer.js +0 -55
- package/dist/views/Unauthorized/UnauthorizedClient.d.ts +0 -5
- package/dist/views/Unauthorized/UnauthorizedClient.d.ts.map +0 -1
- package/dist/views/Unauthorized/UnauthorizedClient.js +0 -27
- package/src/index.ts +0 -6
- /package/dist/{static/SuisseIntl-Bold.2211c494.woff → prod/payload/SuisseIntl-Bold.woff} +0 -0
- /package/dist/{static/SuisseIntl-Bold.9c7dfd00.woff2 → prod/payload/SuisseIntl-Bold.woff2} +0 -0
- /package/dist/{static/SuisseIntl-Medium.d7aeda9e.woff → prod/payload/SuisseIntl-Medium.woff} +0 -0
- /package/dist/{static/SuisseIntl-Medium.5b718d97.woff2 → prod/payload/SuisseIntl-Medium.woff2} +0 -0
- /package/dist/{static/SuisseIntl-SemiBold.e7caa9e1.woff → prod/payload/SuisseIntl-SemiBold.woff} +0 -0
- /package/dist/{static/SuisseIntl-SemiBold.40ad7515.woff2 → prod/payload/SuisseIntl-SemiBold.woff2} +0 -0
- /package/dist/{static/SuisseIntl.8b4ddd0d.woff → prod/payload/SuisseIntl.woff} +0 -0
- /package/dist/{static/SuisseIntl.51922ceb.woff2 → prod/payload/SuisseIntl.woff2} +0 -0
- /package/dist/{static/merriweather-v30-latin-900.efe8f6a3.woff → prod/payload/merriweather-v30-latin-900.woff} +0 -0
- /package/dist/{static/merriweather-v30-latin-900.52244336.woff2 → prod/payload/merriweather-v30-latin-900.woff2} +0 -0
- /package/dist/{static/merriweather-v30-latin-900italic.78b8935f.woff → prod/payload/merriweather-v30-latin-900italic.woff} +0 -0
- /package/dist/{static/merriweather-v30-latin-900italic.f53bb8d4.woff2 → prod/payload/merriweather-v30-latin-900italic.woff2} +0 -0
- /package/dist/{static/merriweather-v30-latin-italic.8f612153.woff → prod/payload/merriweather-v30-latin-italic.woff} +0 -0
- /package/dist/{static/merriweather-v30-latin-italic.a1cfdc5b.woff2 → prod/payload/merriweather-v30-latin-italic.woff2} +0 -0
- /package/dist/{static/merriweather-v30-latin-regular.787999a6.woff → prod/payload/merriweather-v30-latin-regular.woff} +0 -0
- /package/dist/{static/merriweather-v30-latin-regular.e009f214.woff2 → prod/payload/merriweather-v30-latin-regular.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,67 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/next",
|
|
3
|
-
"version": "3.0.0-
|
|
4
|
-
"main": "./dist/
|
|
5
|
-
"types": "./dist/
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"homepage": "https://payloadcms.com",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/payloadcms/payload.git",
|
|
11
|
+
"directory": "packages/next"
|
|
8
12
|
},
|
|
9
13
|
"exports": {
|
|
10
|
-
"./
|
|
11
|
-
"import": "./dist/
|
|
12
|
-
"require": "./dist/
|
|
13
|
-
"
|
|
14
|
+
"./css": {
|
|
15
|
+
"import": "./dist/prod/styles.css",
|
|
16
|
+
"require": "./dist/prod/styles.css",
|
|
17
|
+
"default": "./dist/prod/styles.css"
|
|
14
18
|
},
|
|
15
19
|
".": {
|
|
16
20
|
"import": "./dist/index.js",
|
|
17
|
-
"require": "./dist/index.js"
|
|
18
|
-
"types": "./dist/index.d.ts"
|
|
21
|
+
"require": "./dist/index.js"
|
|
19
22
|
},
|
|
20
|
-
"
|
|
21
|
-
"import": "./dist/
|
|
22
|
-
"require": "./dist/
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
},
|
|
25
|
-
"./layouts/*": {
|
|
26
|
-
"import": "./dist/layouts/*.js",
|
|
27
|
-
"require": "./dist/layouts/*.js",
|
|
28
|
-
"types": "./dist/layouts/*.d.ts"
|
|
29
|
-
},
|
|
30
|
-
"./views/*": {
|
|
31
|
-
"import": "./dist/views/*.js",
|
|
32
|
-
"require": "./dist/views/*.js",
|
|
33
|
-
"types": "./dist/views/*.d.ts"
|
|
34
|
-
},
|
|
35
|
-
"./app/*": {
|
|
36
|
-
"import": "./dist/app/*.js",
|
|
37
|
-
"require": "./dist/app/*.js",
|
|
38
|
-
"types": "./dist/app/*.d.ts"
|
|
39
|
-
},
|
|
40
|
-
"./routes": {
|
|
41
|
-
"import": "./dist/routes/index.js",
|
|
42
|
-
"require": "./dist/routes/index.js",
|
|
43
|
-
"types": "./dist/routes/index.d.ts"
|
|
23
|
+
"./*": {
|
|
24
|
+
"import": "./dist/exports/*.js",
|
|
25
|
+
"require": "./dist/exports/*.js",
|
|
26
|
+
"types": "./dist/exports/*.d.ts"
|
|
44
27
|
}
|
|
45
28
|
},
|
|
46
29
|
"devDependencies": {
|
|
47
30
|
"@next/eslint-plugin-next": "^14.1.0",
|
|
48
|
-
"@types/react": "18.2.
|
|
49
|
-
"@types/react-dom": "18.2.
|
|
31
|
+
"@types/react": "18.2.74",
|
|
32
|
+
"@types/react-dom": "18.2.24",
|
|
33
|
+
"@types/ws": "^8.5.10",
|
|
50
34
|
"css-loader": "^6.10.0",
|
|
51
35
|
"css-minimizer-webpack-plugin": "^6.0.0",
|
|
52
|
-
"file-loader": "6.2.0",
|
|
53
36
|
"mini-css-extract-plugin": "1.6.2",
|
|
54
37
|
"postcss-loader": "^8.1.1",
|
|
55
|
-
"postcss-preset-env": "^9.
|
|
56
|
-
"sass": "^1.70.0",
|
|
38
|
+
"postcss-preset-env": "^9.5.0",
|
|
57
39
|
"sass-loader": "^14.1.1",
|
|
58
40
|
"swc-loader": "^0.2.6",
|
|
41
|
+
"swc-plugin-transform-remove-imports": "^1.12.1",
|
|
59
42
|
"terser-webpack-plugin": "^5.3.10",
|
|
60
|
-
"url-loader": "^4.1.1",
|
|
61
43
|
"webpack": "^5.78.0",
|
|
62
44
|
"webpack-cli": "^5.1.4",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
45
|
+
"payload": "3.0.0-beta.0",
|
|
46
|
+
"@payloadcms/eslint-config": "1.1.1"
|
|
65
47
|
},
|
|
66
48
|
"dependencies": {
|
|
67
49
|
"@dnd-kit/core": "6.0.8",
|
|
@@ -72,16 +54,19 @@
|
|
|
72
54
|
"graphql-http": "^1.22.0",
|
|
73
55
|
"graphql-playground-html": "1.6.30",
|
|
74
56
|
"path-to-regexp": "^6.2.1",
|
|
57
|
+
"qs": "6.11.2",
|
|
75
58
|
"react-diff-viewer-continued": "3.2.6",
|
|
76
59
|
"react-toastify": "8.2.0",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"@payloadcms/
|
|
60
|
+
"sass": "^1.71.1",
|
|
61
|
+
"ws": "^8.16.0",
|
|
62
|
+
"@payloadcms/graphql": "3.0.0-beta.0",
|
|
63
|
+
"@payloadcms/translations": "3.0.0-beta.0",
|
|
64
|
+
"@payloadcms/ui": "3.0.0-beta.0"
|
|
80
65
|
},
|
|
81
66
|
"peerDependencies": {
|
|
82
67
|
"http-status": "1.6.2",
|
|
83
|
-
"next": "14.
|
|
84
|
-
"payload": "3.0.0-
|
|
68
|
+
"next": "14.2.0-canary.23",
|
|
69
|
+
"payload": "3.0.0-beta.0"
|
|
85
70
|
},
|
|
86
71
|
"publishConfig": {
|
|
87
72
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -93,13 +78,12 @@
|
|
|
93
78
|
"dist"
|
|
94
79
|
],
|
|
95
80
|
"scripts": {
|
|
96
|
-
"build:
|
|
97
|
-
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:webpack && pnpm build:types",
|
|
81
|
+
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types && pnpm build:webpack && rm dist/prod/index.js",
|
|
98
82
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
|
|
99
83
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
84
|
+
"build:webpack": "webpack --config webpack.config.js",
|
|
100
85
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
|
101
|
-
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" \"src/app/api/**\" dist/
|
|
102
|
-
"copyfiles:api": "copyfiles -u 1 \"src/app/(payload)/**\" dist/template",
|
|
86
|
+
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" \"src/app/api/**\" dist/",
|
|
103
87
|
"fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
|
104
88
|
"lint": "eslint \"src/**/*.{ts,tsx}\""
|
|
105
89
|
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as withPayload } from './withPayload.js'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl-Medium.5b718d97.woff2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-900italic.78b8935f.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl-SemiBold.40ad7515.woff2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl-Bold.2211c494.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-900.52244336.woff2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl.8b4ddd0d.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-900.efe8f6a3.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-regular.e009f214.woff2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl.51922ceb.woff2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-regular.787999a6.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl-Medium.d7aeda9e.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl-SemiBold.e7caa9e1.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-900italic.f53bb8d4.woff2";
|
package/dist/bin/index.d.ts
DELETED
package/dist/bin/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bin/index.ts"],"names":[],"mappings":""}
|
package/dist/bin/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _minimist = /*#__PURE__*/ _interop_require_default(require("minimist"));
|
|
6
|
-
const _install = require("./install");
|
|
7
|
-
function _interop_require_default(obj) {
|
|
8
|
-
return obj && obj.__esModule ? obj : {
|
|
9
|
-
default: obj
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const args = (0, _minimist.default)(process.argv.slice(2));
|
|
13
|
-
const scriptIndex = args._.findIndex((x)=>x === 'install');
|
|
14
|
-
const script = scriptIndex === -1 ? args._[0] : args._[scriptIndex];
|
|
15
|
-
const { debug } = args;
|
|
16
|
-
main();
|
|
17
|
-
async function main() {
|
|
18
|
-
if (debug) console.log({
|
|
19
|
-
debug,
|
|
20
|
-
pwd: process.cwd()
|
|
21
|
-
});
|
|
22
|
-
switch(script.toLowerCase()){
|
|
23
|
-
case 'install':
|
|
24
|
-
{
|
|
25
|
-
if (debug) console.log('Running install');
|
|
26
|
-
await (0, _install.install)({
|
|
27
|
-
debug
|
|
28
|
-
});
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
default:
|
|
32
|
-
console.log(`Unknown script "${script}".`);
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3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IsImluc3RhbGwiXSwibWFwcGluZ3MiOiI7Ozs7aUVBQXFCO3lCQVFHOzs7Ozs7QUFOeEIsTUFBTUEsT0FBT0MsSUFBQUEsaUJBQVEsRUFBQ0MsUUFBUUMsSUFBSSxDQUFDQyxLQUFLLENBQUM7QUFDekMsTUFBTUMsY0FBY0wsS0FBS00sQ0FBQyxDQUFDQyxTQUFTLENBQUMsQ0FBQ0MsSUFBTUEsTUFBTTtBQUNsRCxNQUFNQyxTQUFTSixnQkFBZ0IsQ0FBQyxJQUFJTCxLQUFLTSxDQUFDLENBQUMsRUFBRSxHQUFHTixLQUFLTSxDQUFDLENBQUNELFlBQVk7QUFFbkUsTUFBTSxFQUFFSyxLQUFLLEVBQUUsR0FBR1Y7QUFJbEJXO0FBRUEsZUFBZUE7SUFDYixJQUFJRCxPQUFPRSxRQUFRQyxHQUFHLENBQUM7UUFBRUg7UUFBT0ksS0FBS1osUUFBUWEsR0FBRztJQUFHO0lBQ25ELE9BQVFOLE9BQU9PLFdBQVc7UUFDeEIsS0FBSztZQUFXO2dCQUNkLElBQUlOLE9BQU9FLFFBQVFDLEdBQUcsQ0FBQztnQkFDdkIsTUFBTUksSUFBQUEsZ0JBQU8sRUFBQztvQkFBRVA7Z0JBQU07Z0JBQ3RCO1lBQ0Y7UUFFQTtZQUNFRSxRQUFRQyxHQUFHLENBQUMsQ0FBQyxnQkFBZ0IsRUFBRUosT0FBTyxFQUFFLENBQUM7WUFDekM7SUFDSjtBQUNGIn0=
|
package/dist/bin/install.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/bin/install.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,UAAW;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,KAAG,QAAQ,IAAI,CAsChE,CAAA"}
|
package/dist/bin/install.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "install", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return install;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
|
|
12
|
-
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
13
|
-
function _interop_require_default(obj) {
|
|
14
|
-
return obj && obj.__esModule ? obj : {
|
|
15
|
-
default: obj
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const install = (args)=>{
|
|
19
|
-
const debug = args?.debug;
|
|
20
|
-
const nextConfigPath = _path.default.resolve(process.cwd(), 'next.config.js');
|
|
21
|
-
if (!_fs.default.existsSync(nextConfigPath)) {
|
|
22
|
-
console.log(`No next.config.js found at ${nextConfigPath}`);
|
|
23
|
-
process.exit(1);
|
|
24
|
-
}
|
|
25
|
-
const apiTemplateDir = _path.default.resolve(__dirname, '../..', 'dist', 'template/app/(payload)');
|
|
26
|
-
const userProjectDir = process.cwd();
|
|
27
|
-
if (!_fs.default.existsSync(apiTemplateDir)) {
|
|
28
|
-
console.log(`Could not find template source files from ${apiTemplateDir}`);
|
|
29
|
-
process.exit(1);
|
|
30
|
-
}
|
|
31
|
-
if (!_fs.default.existsSync(_path.default.resolve(userProjectDir, 'app'))) {
|
|
32
|
-
console.log(`Could not find user app directory at ${userProjectDir}/app`);
|
|
33
|
-
process.exit(1);
|
|
34
|
-
}
|
|
35
|
-
const templateFileDest = _path.default.resolve(userProjectDir, 'app/(payload)');
|
|
36
|
-
if (debug) {
|
|
37
|
-
console.log({
|
|
38
|
-
cwd: process.cwd(),
|
|
39
|
-
// Paths
|
|
40
|
-
apiTemplateDir,
|
|
41
|
-
templateFileDest,
|
|
42
|
-
userProjectDir
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
// Merge api dir into user's app/api, user's files take precedence
|
|
46
|
-
copyRecursiveSync(apiTemplateDir, templateFileDest, debug);
|
|
47
|
-
process.exit(0);
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Recursively copy files from src to dest
|
|
51
|
-
*/ function copyRecursiveSync(src, dest, debug) {
|
|
52
|
-
const exists = _fs.default.existsSync(src);
|
|
53
|
-
const stats = exists && _fs.default.statSync(src);
|
|
54
|
-
const isDirectory = exists && stats.isDirectory();
|
|
55
|
-
if (isDirectory) {
|
|
56
|
-
if (debug) console.log(`Dir: ${src}\n--Dest: ${dest}`);
|
|
57
|
-
_fs.default.mkdirSync(dest, {
|
|
58
|
-
recursive: true
|
|
59
|
-
});
|
|
60
|
-
_fs.default.readdirSync(src).forEach((childItemName)=>{
|
|
61
|
-
copyRecursiveSync(_path.default.join(src, childItemName), _path.default.join(dest, childItemName));
|
|
62
|
-
});
|
|
63
|
-
} else {
|
|
64
|
-
if (debug) console.log(`File: ${src}\n--Dest: ${dest}`);
|
|
65
|
-
_fs.default.copyFileSync(src, dest);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if (require.main === module) {
|
|
69
|
-
install({
|
|
70
|
-
debug: true
|
|
71
|
-
}).catch((e)=>{
|
|
72
|
-
console.error(e);
|
|
73
|
-
process.exit(1);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iaW4vaW5zdGFsbC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgZnMgZnJvbSAnZnMnXG5pbXBvcnQgcGF0aCBmcm9tICdwYXRoJ1xuXG5leHBvcnQgY29uc3QgaW5zdGFsbCA9IChhcmdzPzogeyBkZWJ1Zz86IGJvb2xlYW4gfSk6IFByb21pc2U8dm9pZD4gPT4ge1xuICBjb25zdCBkZWJ1ZyA9IGFyZ3M/LmRlYnVnXG5cbiAgY29uc3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0lBQzdCLE1BQU1HLFFBQVFELFVBQVVaLFdBQUUsQ0FBQ2MsUUFBUSxDQUFDSjtJQUNwQyxNQUFNSyxjQUFjSCxVQUFVQyxNQUFNRSxXQUFXO0lBQy9DLElBQUlBLGFBQWE7UUFDZixJQUFJckIsT0FBT1EsUUFBUUMsR0FBRyxDQUFDLENBQUMsS0FBSyxFQUFFTyxJQUFJLFVBQVUsRUFBRUMsS0FBSyxDQUFDO1FBQ3JEWCxXQUFFLENBQUNnQixTQUFTLENBQUNMLE1BQU07WUFBRU0sV0FBVztRQUFLO1FBQ3JDakIsV0FBRSxDQUFDa0IsV0FBVyxDQUFDUixLQUFLUyxPQUFPLENBQUMsQ0FBQ0M7WUFDM0JYLGtCQUFrQmIsYUFBSSxDQUFDeUIsSUFBSSxDQUFDWCxLQUFLVSxnQkFBZ0J4QixhQUFJLENBQUN5QixJQUFJLENBQUNWLE1BQU1TO1FBQ25FO0lBQ0YsT0FBTztRQUNMLElBQUkxQixPQUFPUSxRQUFRQyxHQUFHLENBQUMsQ0FBQyxNQUFNLEVBQUVPLElBQUksVUFBVSxFQUFFQyxLQUFLLENBQUM7UUFDdERYLFdBQUUsQ0FBQ3NCLFlBQVksQ0FBQ1osS0FBS0M7SUFDdkI7QUFDRjtBQUVBLElBQUlZLFFBQVFDLElBQUksS0FBS0MsUUFBUTtJQUMzQmpDLFFBQVE7UUFBRUUsT0FBTztJQUFLLEdBQUdnQyxLQUFLLENBQUMsQ0FBQ0M7UUFDOUJ6QixRQUFRMEIsS0FBSyxDQUFDRDtRQUNkN0IsUUFBUU0sSUFBSSxDQUFDO0lBQ2Y7QUFDRiJ9
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-italic.8f612153.woff";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/SuisseIntl-Bold.9c7dfd00.woff2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default __webpack_public_path__ + "static/merriweather-v30-latin-italic.a1cfdc5b.woff2";
|
package/dist/exports/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/exports/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "withPayload", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _withPayload.withPayload;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _withPayload = require("../withPayload");
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leHBvcnRzL2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IHdpdGhQYXlsb2FkIH0gZnJvbSAnLi4vd2l0aFBheWxvYWQnXG4iXSwibmFtZXMiOlsid2l0aFBheWxvYWQiXSwibWFwcGluZ3MiOiI7Ozs7K0JBQVNBOzs7ZUFBQUEsd0JBQVc7Ozs2QkFBUSJ9
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registerSchema.d.ts","sourceRoot":"","sources":["../../src/graphql/registerSchema.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { AdminLayout } from './layouts/Admin';
|
|
2
|
-
export { DocumentLayout } from './layouts/Document';
|
|
3
|
-
export { RootLayout } from './layouts/Root';
|
|
4
|
-
export { Dashboard as DashboardPage, generateMetadata as dashboardMeta } from './views/Dashboard';
|
|
5
|
-
export { Login, generateMetadata as loginMeta } from './views/Login';
|
|
6
|
-
export { RootPage } from './views/Root';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,gBAAgB,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,gBAAgB,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SanitizedConfig } from 'payload/types';
|
|
2
|
-
import '@payloadcms/ui/scss/app.scss';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare const metadata: {
|
|
5
|
-
description: string;
|
|
6
|
-
title: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const AdminLayout: ({ children, config, }: {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
config: Promise<SanitizedConfig> | SanitizedConfig;
|
|
11
|
-
}) => Promise<React.JSX.Element>;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/Admin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,8BAA8B,CAAA;AACrC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,QAAQ;;;CAGpB,CAAA;AAED,eAAO,MAAM,WAAW;cAIZ,MAAM,SAAS;YACjB,QAAQ,eAAe,CAAC,GAAG,eAAe;gCASnD,CAAA"}
|
|
@@ -1,44 +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
|
-
AdminLayout: function() {
|
|
13
|
-
return AdminLayout;
|
|
14
|
-
},
|
|
15
|
-
metadata: function() {
|
|
16
|
-
return metadata;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _ui = require("@payloadcms/ui");
|
|
20
|
-
require("@payloadcms/ui/scss/app.scss");
|
|
21
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
22
|
-
const _initPage = require("../../utilities/initPage");
|
|
23
|
-
function _interop_require_default(obj) {
|
|
24
|
-
return obj && obj.__esModule ? obj : {
|
|
25
|
-
default: obj
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
const metadata = {
|
|
29
|
-
description: 'Generated by Next.js',
|
|
30
|
-
title: 'Next.js'
|
|
31
|
-
};
|
|
32
|
-
const AdminLayout = async ({ children, config })=>{
|
|
33
|
-
const { permissions, req } = await (0, _initPage.initPage)({
|
|
34
|
-
config
|
|
35
|
-
});
|
|
36
|
-
return /*#__PURE__*/ _react.default.createElement(_ui.DefaultTemplate, {
|
|
37
|
-
config: config,
|
|
38
|
-
i18n: req.i18n,
|
|
39
|
-
permissions: permissions,
|
|
40
|
-
user: req.user
|
|
41
|
-
}, children);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9sYXlvdXRzL0FkbWluL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29uZmlnIiwicGVybWlzc2lvbnMiLCJyZXEiLCJpbml0UGFnZSIsIkRlZmF1bHRUZW1wbGF0ZSIsImkxOG4iLCJ1c2VyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQWFhQSxXQUFXO2VBQVhBOztJQUxBQyxRQUFRO2VBQVJBOzs7b0JBTm1CO1FBQ3pCOzhEQUNXOzBCQUVPOzs7Ozs7QUFFbEIsTUFBTUEsV0FBVztJQUN0QkMsYUFBYTtJQUNiQyxPQUFPO0FBQ1Q7QUFFTyxNQUFNSCxjQUFjLE9BQU8sRUFDaENJLFFBQVEsRUFDUkMsTUFBTSxFQUlQO0lBQ0MsTUFBTSxFQUFFQyxXQUFXLEVBQUVDLEdBQUcsRUFBRSxHQUFHLE1BQU1DLElBQUFBLGtCQUFRLEVBQUM7UUFBRUg7SUFBTztJQUVyRCxxQkFDRSw2QkFBQ0ksbUJBQWU7UUFBQ0osUUFBUUE7UUFBUUssTUFBTUgsSUFBSUcsSUFBSTtRQUFFSixhQUFhQTtRQUFhSyxNQUFNSixJQUFJSSxJQUFJO09BQ3RGUDtBQUdQIn0=
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SanitizedConfig } from 'payload/types';
|
|
2
|
-
import '@payloadcms/ui/scss/app.scss';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare const metadata: {
|
|
5
|
-
description: string;
|
|
6
|
-
title: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const DocumentLayout: ({ children, collectionSlug, config: configPromise, globalSlug, }: {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
collectionSlug?: string;
|
|
11
|
-
config: Promise<SanitizedConfig>;
|
|
12
|
-
globalSlug?: string;
|
|
13
|
-
}) => Promise<React.JSX.Element>;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/Document/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,8BAA8B,CAAA;AACrC,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,eAAO,MAAM,QAAQ;;;CAGpB,CAAA;AAED,eAAO,MAAM,cAAc;cAMf,MAAM,SAAS;qBACR,MAAM;YACf,QAAQ,eAAe,CAAC;iBACnB,MAAM;gCAmBpB,CAAA"}
|
|
@@ -1,82 +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
|
-
DocumentLayout: function() {
|
|
13
|
-
return DocumentLayout;
|
|
14
|
-
},
|
|
15
|
-
metadata: function() {
|
|
16
|
-
return metadata;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _ui = require("@payloadcms/ui");
|
|
20
|
-
require("@payloadcms/ui/scss/app.scss");
|
|
21
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
22
|
-
const _initPage = require("../../utilities/initPage");
|
|
23
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
24
|
-
if (typeof WeakMap !== "function") return null;
|
|
25
|
-
var cacheBabelInterop = new WeakMap();
|
|
26
|
-
var cacheNodeInterop = new WeakMap();
|
|
27
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
28
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
29
|
-
})(nodeInterop);
|
|
30
|
-
}
|
|
31
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
32
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
33
|
-
return obj;
|
|
34
|
-
}
|
|
35
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
36
|
-
return {
|
|
37
|
-
default: obj
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
41
|
-
if (cache && cache.has(obj)) {
|
|
42
|
-
return cache.get(obj);
|
|
43
|
-
}
|
|
44
|
-
var newObj = {
|
|
45
|
-
__proto__: null
|
|
46
|
-
};
|
|
47
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
48
|
-
for(var key in obj){
|
|
49
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
50
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
51
|
-
if (desc && (desc.get || desc.set)) {
|
|
52
|
-
Object.defineProperty(newObj, key, desc);
|
|
53
|
-
} else {
|
|
54
|
-
newObj[key] = obj[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
newObj.default = obj;
|
|
59
|
-
if (cache) {
|
|
60
|
-
cache.set(obj, newObj);
|
|
61
|
-
}
|
|
62
|
-
return newObj;
|
|
63
|
-
}
|
|
64
|
-
const metadata = {
|
|
65
|
-
description: 'Generated by Next.js',
|
|
66
|
-
title: 'Next.js'
|
|
67
|
-
};
|
|
68
|
-
const DocumentLayout = async ({ children, collectionSlug, config: configPromise, globalSlug })=>{
|
|
69
|
-
const { collectionConfig, globalConfig, req } = await (0, _initPage.initPage)({
|
|
70
|
-
collectionSlug,
|
|
71
|
-
config: configPromise,
|
|
72
|
-
globalSlug
|
|
73
|
-
});
|
|
74
|
-
return /*#__PURE__*/ _react.default.createElement(_react.Fragment, null, /*#__PURE__*/ _react.default.createElement(_ui.DocumentHeader, {
|
|
75
|
-
collectionConfig: collectionConfig,
|
|
76
|
-
config: req.payload.config,
|
|
77
|
-
globalConfig: globalConfig,
|
|
78
|
-
i18n: req.i18n
|
|
79
|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