@payloadcms/next 3.0.0-alpha.8 → 3.0.0-beta.1
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/cjs/withPayload.cjs +87 -0
- package/dist/cjs/withPayload.cjs.map +1 -0
- 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/getNextRequestI18n.d.ts +11 -0
- package/dist/utilities/getNextRequestI18n.d.ts.map +1 -0
- package/dist/utilities/getNextRequestI18n.js +18 -0
- package/dist/utilities/getNextRequestI18n.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 +14 -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 +7 -2
- package/dist/withPayload.d.ts.map +1 -1
- package/dist/withPayload.js +7 -8
- package/dist/withPayload.js.map +1 -0
- package/package.json +38 -53
- 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/getNextI18n.d.ts +0 -7
- package/dist/utilities/getNextI18n.d.ts.map +0 -1
- package/dist/utilities/getNextI18n.js +0 -28
- 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
|
@@ -1,120 +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
|
-
createClientConfig: function() {
|
|
13
|
-
return createClientConfig;
|
|
14
|
-
},
|
|
15
|
-
sanitizeField: function() {
|
|
16
|
-
return sanitizeField;
|
|
17
|
-
},
|
|
18
|
-
sanitizeFields: function() {
|
|
19
|
-
return sanitizeFields;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const sanitizeField = (f)=>{
|
|
23
|
-
const field = {
|
|
24
|
-
...f
|
|
25
|
-
};
|
|
26
|
-
if ('access' in field) delete field.access;
|
|
27
|
-
if ('hooks' in field) delete field.hooks;
|
|
28
|
-
if ('validate' in field) delete field.validate;
|
|
29
|
-
if ('defaultValue' in field) delete field.defaultValue;
|
|
30
|
-
if ('label' in field) delete field.label;
|
|
31
|
-
if ('fields' in field) {
|
|
32
|
-
field.fields = sanitizeFields(field.fields);
|
|
33
|
-
}
|
|
34
|
-
if ('editor' in field) {
|
|
35
|
-
delete field.editor;
|
|
36
|
-
}
|
|
37
|
-
if ('blocks' in field) {
|
|
38
|
-
field.blocks = field.blocks.map((block)=>{
|
|
39
|
-
const sanitized = {
|
|
40
|
-
...block
|
|
41
|
-
};
|
|
42
|
-
sanitized.fields = sanitizeFields(sanitized.fields);
|
|
43
|
-
return sanitized;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
if ('tabs' in field) {
|
|
47
|
-
field.tabs = field.tabs.map((tab)=>sanitizeField(tab));
|
|
48
|
-
}
|
|
49
|
-
if ('admin' in field) {
|
|
50
|
-
field.admin = {
|
|
51
|
-
...field.admin
|
|
52
|
-
};
|
|
53
|
-
if ('components' in field.admin) {
|
|
54
|
-
delete field.admin.components;
|
|
55
|
-
}
|
|
56
|
-
if ('condition' in field.admin) {
|
|
57
|
-
delete field.admin.condition;
|
|
58
|
-
}
|
|
59
|
-
if ('description' in field.admin) {
|
|
60
|
-
delete field.admin.description;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return field;
|
|
64
|
-
};
|
|
65
|
-
const sanitizeCollections = (collections)=>collections.map((collection)=>{
|
|
66
|
-
const sanitized = {
|
|
67
|
-
...collection
|
|
68
|
-
};
|
|
69
|
-
sanitized.fields = sanitizeFields(sanitized.fields);
|
|
70
|
-
delete sanitized.hooks;
|
|
71
|
-
delete sanitized.access;
|
|
72
|
-
delete sanitized.endpoints;
|
|
73
|
-
if ('editor' in sanitized) delete sanitized.editor;
|
|
74
|
-
if ('admin' in sanitized) {
|
|
75
|
-
sanitized.admin = {
|
|
76
|
-
...sanitized.admin
|
|
77
|
-
};
|
|
78
|
-
if ('components' in sanitized.admin) {
|
|
79
|
-
delete sanitized.admin.components;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return sanitized;
|
|
83
|
-
});
|
|
84
|
-
const sanitizeGlobals = (globals)=>globals.map((global)=>{
|
|
85
|
-
const sanitized = {
|
|
86
|
-
...global
|
|
87
|
-
};
|
|
88
|
-
sanitized.fields = sanitizeFields(sanitized.fields);
|
|
89
|
-
delete sanitized.hooks;
|
|
90
|
-
delete sanitized.access;
|
|
91
|
-
delete sanitized.endpoints;
|
|
92
|
-
if ('admin' in sanitized) {
|
|
93
|
-
sanitized.admin = {
|
|
94
|
-
...sanitized.admin
|
|
95
|
-
};
|
|
96
|
-
if ('components' in sanitized.admin) {
|
|
97
|
-
delete sanitized.admin.components;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return sanitized;
|
|
101
|
-
});
|
|
102
|
-
const sanitizeFields = (fields)=>fields.map(sanitizeField);
|
|
103
|
-
const createClientConfig = async (configPromise)=>{
|
|
104
|
-
const config = await configPromise;
|
|
105
|
-
const clientConfig = {
|
|
106
|
-
...config
|
|
107
|
-
};
|
|
108
|
-
delete clientConfig.endpoints;
|
|
109
|
-
delete clientConfig.db;
|
|
110
|
-
delete clientConfig.editor;
|
|
111
|
-
'localization' in clientConfig && clientConfig.localization && clientConfig.localization.locales.forEach((locale)=>{
|
|
112
|
-
delete locale.toString;
|
|
113
|
-
});
|
|
114
|
-
clientConfig.onInit = undefined;
|
|
115
|
-
clientConfig.collections = sanitizeCollections(clientConfig.collections);
|
|
116
|
-
clientConfig.globals = sanitizeGlobals(clientConfig.globals);
|
|
117
|
-
return clientConfig;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvY3JlYXRlQ2xpZW50Q29uZmlnLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ2xpZW50Q29uZmlnLCBGaWVsZCwgU2FuaXRpemVkQ29uZmlnIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuZXhwb3J0IGNvbnN0IHNhbml0aXplRmllbGQgPSAoZikgPT4ge1xuICBjb25zdCBmaWVsZCA9IHsgLi4uZiB9XG5cbiAgaWYgKCdhY2Nlc3MnIGluIGZpZWxkKSBkZWxldGUgZmllbGQuYWNjZXNzXG4gIGlmICgnaG9va3MnIGluIGZpZWxkKSBkZWxldGUgZmllbGQuaG9va3NcbiAgaWYgKCd2YWxpZGF0ZScgaW4gZmllbGQpIGRlbGV0ZSBmaWVsZC52YWxpZGF0ZVxuICBpZiAoJ2RlZmF1bHRWYWx1ZScgaW4gZmllbGQpIGRlbGV0ZSBmaWVsZC5kZWZhdWx0VmFsdWVcbiAg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FBT0ssVUFBVVQsS0FBSztRQUN0QixPQUFPUyxVQUFVVixNQUFNO1FBQ3ZCLE9BQU9VLFVBQVVVLFNBQVM7UUFFMUIsSUFBSSxXQUFXVixXQUFXO1lBQ3hCQSxVQUFVRyxLQUFLLEdBQUc7Z0JBQUUsR0FBR0gsVUFBVUcsS0FBSztZQUFDO1lBRXZDLElBQUksZ0JBQWdCSCxVQUFVRyxLQUFLLEVBQUU7Z0JBQ25DLE9BQU9ILFVBQVVHLEtBQUssQ0FBQ0MsVUFBVTtZQUNuQztRQUNGO1FBRUEsT0FBT0o7SUFDVDtBQUVLLE1BQU1iLGlCQUFpQixDQUFDUSxTQUE2QkEsT0FBT0csR0FBRyxDQUFDWjtBQUVoRSxNQUFNRCxxQkFBcUIsT0FDaEM2QjtJQUVBLE1BQU1DLFNBQVMsTUFBTUQ7SUFDckIsTUFBTUUsZUFBZTtRQUFFLEdBQUdELE1BQU07SUFBQztJQUVqQyxPQUFPQyxhQUFhTixTQUFTO0lBQzdCLE9BQU9NLGFBQWFDLEVBQUU7SUFDdEIsT0FBT0QsYUFBYXBCLE1BQU07SUFFMUIsa0JBQWtCb0IsZ0JBQ2hCQSxhQUFhRSxZQUFZLElBQ3pCRixhQUFhRSxZQUFZLENBQUNDLE9BQU8sQ0FBQ0MsT0FBTyxDQUFDLENBQUNDO1FBQ3pDLE9BQU9BLE9BQU9DLFFBQVE7SUFDeEI7SUFFRk4sYUFBYU8sTUFBTSxHQUFHQztJQUV0QlIsYUFBYVIsV0FBVyxHQUFHRCxvQkFBb0JTLGFBQWFSLFdBQVc7SUFDdkVRLGFBQWFKLE9BQU8sR0FBR0QsZ0JBQWdCSyxhQUFhSixPQUFPO0lBRTNELE9BQU9JO0FBQ1QifQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { I18n } from '@payloadcms/translations';
|
|
2
|
-
import type { SanitizedConfig } from 'payload/types';
|
|
3
|
-
export declare const getNextI18n: ({ config, language, }: {
|
|
4
|
-
config: SanitizedConfig;
|
|
5
|
-
language?: string;
|
|
6
|
-
}) => Promise<I18n>;
|
|
7
|
-
//# sourceMappingURL=getNextI18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNextI18n.d.ts","sourceRoot":"","sources":["../../src/utilities/getNextI18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAQpD,eAAO,MAAM,WAAW;YAId,eAAe;eACZ,MAAM;MACf,QAAQ,IAAI,CASf,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "getNextI18n", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return getNextI18n;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _translations = require("@payloadcms/translations");
|
|
12
|
-
const _client = require("@payloadcms/translations/client");
|
|
13
|
-
const _headers = require("next/headers");
|
|
14
|
-
const _getRequestLanguage = require("./getRequestLanguage");
|
|
15
|
-
const getNextI18n = async ({ config, language })=>{
|
|
16
|
-
const i18n = (0, _translations.initI18n)({
|
|
17
|
-
config: config.i18n,
|
|
18
|
-
context: 'client',
|
|
19
|
-
language: language || (0, _getRequestLanguage.getRequestLanguage)({
|
|
20
|
-
cookies: (0, _headers.cookies)(),
|
|
21
|
-
headers: (0, _headers.headers)()
|
|
22
|
-
}),
|
|
23
|
-
translations: _client.translations
|
|
24
|
-
});
|
|
25
|
-
return i18n;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvZ2V0TmV4d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YW5ndWFnZSIsImNvb2tpZXMiLCJoZWFkZXJzIiwidHJhbnNsYXRpb25zIl0sIm1hcHBpbmdzIjoiOzs7OytCQVNhQTs7O2VBQUFBOzs7OEJBTlk7d0JBQ0k7eUJBQ0k7b0NBRUU7QUFFNUIsTUFBTUEsY0FBYyxPQUFPLEVBQ2hDQyxNQUFNLEVBQ05DLFFBQVEsRUFJVDtJQUNDLE1BQU1DLE9BQU9DLElBQUFBLHNCQUFRLEVBQUM7UUFDcEJILFFBQVFBLE9BQU9FLElBQUk7UUFDbkJFLFNBQVM7UUFDVEgsVUFBVUEsWUFBWUksSUFBQUEsc0NBQWtCLEVBQUM7WUFBRUMsU0FBU0EsSUFBQUEsZ0JBQU87WUFBSUMsU0FBU0EsSUFBQUEsZ0JBQU87UUFBRztRQUNsRkMsY0FBQUEsb0JBQVk7SUFDZDtJQUVBLE9BQU9OO0FBQ1QifQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from '@payloadcms/translations';
|
|
2
|
-
import type { SanitizedConfig } from 'payload/types';
|
|
3
|
-
export declare const getNextT: ({ config, language, }: {
|
|
4
|
-
config: SanitizedConfig;
|
|
5
|
-
language?: string;
|
|
6
|
-
}) => Promise<TFunction>;
|
|
7
|
-
//# sourceMappingURL=getNextT.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNextT.d.ts","sourceRoot":"","sources":["../../src/utilities/getNextT.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAQpD,eAAO,MAAM,QAAQ;YAIX,eAAe;eACZ,MAAM;MACf,QAAQ,SAAS,CASpB,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "getNextT", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return getNextT;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _translations = require("@payloadcms/translations");
|
|
12
|
-
const _client = require("@payloadcms/translations/client");
|
|
13
|
-
const _headers = require("next/headers");
|
|
14
|
-
const _getRequestLanguage = require("./getRequestLanguage");
|
|
15
|
-
const getNextT = async ({ config, language })=>{
|
|
16
|
-
const i18n = await (0, _translations.initI18n)({
|
|
17
|
-
config: config.i18n,
|
|
18
|
-
context: 'client',
|
|
19
|
-
language: language || (0, _getRequestLanguage.getRequestLanguage)({
|
|
20
|
-
cookies: (0, _headers.cookies)(),
|
|
21
|
-
headers: (0, _headers.headers)()
|
|
22
|
-
}),
|
|
23
|
-
translations: _client.translations
|
|
24
|
-
});
|
|
25
|
-
return i18n.t;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvZ2V0TmV4dFQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBURnVuY3Rpb24gfSBmcm9tICdAcGF5bG9hZGNtcy90cmFuc2xhdGlvbnMnXG5pbXBvcnQgdHlwZSB7IFNhbml0aXplZENvbmZpZyB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGluaXRJMThuIH0gZnJvbSAnQHBheWxvYWRjbXMvdHJhbnNsYXRpb25zJ1xuaW1wb3J0IHsgdHJhbnNsYXRpb25zIH0gZnJvbSAnQHBheWxvYWRjbXMvdHJhbnNsYXRpb25zL2NsaWVudCdcbmltcG9ydCB7IGNvb2tpZXMsIGhlYWRlcnMgfSBmcm9tICduZXh0L2hlYWRlcnMnXG5cbmltcG9ydCB7IGdldFJlcXVlc3RMYW5ndWFnZSB9IGZyb20gJy4v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VBLE9BQU9OLEtBQUtPLENBQUM7QUFDZiJ9
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AdminViewComponent } from 'payload/config';
|
|
2
|
-
import type { SanitizedCollectionConfig, 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/views/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
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return null;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy92aWV3cy9Eb2N1bWVudC9nZXRDdXN0b21WaWV3QnlQYXRoLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEFkbWluVmlld0NvbXBvbmVudCB9IGZyb20gJ3BheWxvYWQvY29uZmlnJ1xuaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnLCBTYW5pdGl6ZWRHbG9iYWxDb25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5leHBvcnQgY29uc3QgZ2V0Q3VzdG9tVmlld0J5UGF0aCA9IChcbiAgdmlld3M6XG4gICAgfCBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnWydhZG1pbiddWydjb21wb25lbnRzJ11bJ3ZpZXdzJ11cbiAgICB8IFNhbml0aXplZEdsb2JhbENvbmZpZ1snYWRtaW4nXVsnY29tcG9uZW50cyddWyd2aWV3cyddLFxuICBwYXRoOiBzdHJpbmcsXG4pOiBBZG1pblZpZXdDb21wb25lbnQgPT4ge1xuICBpZiAodHlwZW9mIHZpZXdzPy5FZGl0ID09PSAnb2JqZWN0JyAmJiB0eXBlb2Ygdmlld3M/LkVkaXQgIT09ICdmdW5jdGlvbicpIHtcbiAgICBjb25zdCBmb3VuZFZpZXdDb25maWcgPSBPYmplY3QuZW50cmllcyh2aWV3cy5FZGl0KS5maW5kKChbLCB2aWV3XSkgPT4ge1xuICAgICAgaWYgKHR5cGVvZiB2aWV3ID09PSAnb2JqZWN0JyA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
|
-
{"version":3,"file":"RenderCustomView.d.ts","sourceRoot":"","sources":["../../../../src/views/Edit/Default/RenderCustomView.tsx"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
//# sourceMappingURL=types.d.ts.map
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy92aWV3cy9FZGl0L3R5cGVzLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBJMThuIH0gZnJvbSAnQHBheWxvYWRjbXMvdHJhbnNsYXRpb25zJ1xuaW1wb3J0IHR5cGUgeyBGb3JtU3RhdGUgfSBmcm9tICdAcGF5bG9hZGNtcy91aSdcbmltcG9ydCB0eXBlIHsgUGVybWlzc2lvbnMsIFVzZXIgfSBmcm9tICdwYXlsb2FkL2F1dGgnXG5pbXBvcnQgdHlwZSB7IEVkaXRWaWV3UHJvcHMsIExvY2FsZSB9IGZyb20gJ3BheWxvYWQvY29uZmlnJ1xuaW1wb3J0IHR5cGUge1xuICBEYXRhLFxuICBEb2N1bWVudFBlcm1pc3Npb25zLFxuICBEb2N1bWVudFByZWZlcmVuY2VzLFxuICBQYXlsb2FkLFxuICBTYW5pdGl6ZWRDb25maWcsXG59IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5leHBvcnQgdHlwZSBTZXJ2ZXJTaWRlRWRpdFZpZXdQcm9wcyA9IEVkaXRWaWV3UHJvcHMgJiB7XG4gIGFjdGlvbj86IHN0cmluZ1xuICBhcGlVUkw6IHN0cmluZ1xuICBjYW5BY2Nlc3NBZG1pbj86IGJvb2xlYW5cbiAgY29sbGVjdGlvbkNvbmZpZz86IFNhbml0aXplZENvbmZpZ1snY29sbGVjdGlvbnMnXVswXVxuICBjb25maWc6IFNhbml0aXplZENvbmZpZ1xuICBkYXRhOiBEYXRhXG4gIGRpc2FibGVBY3Rpb25zPzogYm9vbGVhblxuICBkaXNhYmxlTGVhdmVXaXRob3V0U2F2aW5nPzogYm9vbGVhblxuICBkb2NQZXJtaXNzaW9uczogRG9jdW1lbnRQZXJtaXNzaW9uc1xuICBkb2NQcmVmZXJlbmNlczogRG9jdW1lbnRQcmVmZXJlbmNlc1xuICBnbG9iYWxDb25maWc/OiBTYW5pdGl6ZWRDb25maWdbJ2dsb2JhbHMnXVswXVxuICBoYXNTYXZlUGVybWlzc2lvbj86IGJvb2xlYW5cbiAgaTE4bjogSTE4blxuICBpZD86IHN0cmluZ1xuICBpbml0aWFsU3RhdGU/OiBGb3JtU3RhdGVcbiAgaXNFZGl0aW5nPzogYm9vbGVhblxuICBsb2NhbGU6IExvY2FsZVxuICBwYXJhbXM/OiB7XG4gICAgY29sbGVjdGlvbj86IHN0cmluZ1xuICAgIGdsb2JhbD86IHN0cmluZ1xuICAgIHNlZ21lbnRzOiBzdHJpbmdbXVxuICB9XG4gIHBheWxvYWQ6IFBheWxvYWRcbiAgcGVybWlzc2lvbnM6IFBlcm1pc3Npb25zXG4gIHNlYXJjaFBhcmFtczoge1xuICAgIFtrZXk6IHN0cmluZ106IHN0cmluZyB8IHN0cmluZ1tdIHwgdW5kZWZpbmVkXG4gIH1cbiAgdXBkYXRlZEF0OiBzdHJpbmdcbiAgdXNlcjogVXNlclxufVxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZXMuZC50cy5tYXBcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0NBMENBLG1DQUFtQyJ9
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { I18n } from '@payloadcms/translations';
|
|
2
|
-
import type { FormState } from '@payloadcms/ui';
|
|
3
|
-
import type { Permissions, User } from 'payload/auth';
|
|
4
|
-
import type { EditViewProps, Locale } from 'payload/config';
|
|
5
|
-
import type { Data, DocumentPermissions, DocumentPreferences, Payload, SanitizedConfig } from 'payload/types';
|
|
6
|
-
export type ServerSideEditViewProps = EditViewProps & {
|
|
7
|
-
action?: string;
|
|
8
|
-
apiURL: string;
|
|
9
|
-
canAccessAdmin?: boolean;
|
|
10
|
-
collectionConfig?: SanitizedConfig['collections'][0];
|
|
11
|
-
config: SanitizedConfig;
|
|
12
|
-
data: Data;
|
|
13
|
-
disableActions?: boolean;
|
|
14
|
-
disableLeaveWithoutSaving?: boolean;
|
|
15
|
-
docPermissions: DocumentPermissions;
|
|
16
|
-
docPreferences: DocumentPreferences;
|
|
17
|
-
globalConfig?: SanitizedConfig['globals'][0];
|
|
18
|
-
hasSavePermission?: boolean;
|
|
19
|
-
i18n: I18n;
|
|
20
|
-
id?: string;
|
|
21
|
-
initialState?: FormState;
|
|
22
|
-
isEditing?: boolean;
|
|
23
|
-
locale: Locale;
|
|
24
|
-
payload: Payload;
|
|
25
|
-
permissions: Permissions;
|
|
26
|
-
searchParams: {
|
|
27
|
-
[key: string]: string | string[] | undefined;
|
|
28
|
-
};
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
user: User;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/views/Edit/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,KAAK,EACV,IAAI,EACJ,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACP,eAAe,EAChB,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IACpD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IACpD,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,IAAI,CAAA;IACV,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,cAAc,EAAE,mBAAmB,CAAA;IACnC,cAAc,EAAE,mBAAmB,CAAA;IACnC,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,IAAI,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,CAAA;IAE9D,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,IAAI,CAAA;CACX,CAAA"}
|
package/dist/views/Edit/types.js
DELETED
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _react = require("@testing-library/react");
|
|
6
|
-
const _react1 = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
7
|
-
const _Blocks = require("./fields/Blocks");
|
|
8
|
-
const _Checkbox = require("./fields/Checkbox");
|
|
9
|
-
const _Date = require("./fields/Date");
|
|
10
|
-
const _Select = require("./fields/Select");
|
|
11
|
-
const _Textarea = require("./fields/Textarea");
|
|
12
|
-
function _interop_require_default(obj) {
|
|
13
|
-
return obj && obj.__esModule ? obj : {
|
|
14
|
-
default: obj
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
jest.mock('../../../../utilities/Config', ()=>({
|
|
18
|
-
useConfig: ()=>({
|
|
19
|
-
admin: {
|
|
20
|
-
dateFormat: 'MMMM do yyyy, h:mm a'
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
}));
|
|
24
|
-
jest.mock('../../../../providers/Translation', ()=>({
|
|
25
|
-
useTranslation: ()=>({
|
|
26
|
-
t: (string)=>string
|
|
27
|
-
})
|
|
28
|
-
}));
|
|
29
|
-
describe('Cell Types', ()=>{
|
|
30
|
-
describe('Blocks', ()=>{
|
|
31
|
-
const field = {
|
|
32
|
-
blocks: [
|
|
33
|
-
{
|
|
34
|
-
fields: [],
|
|
35
|
-
labels: {
|
|
36
|
-
plural: 'Numbers',
|
|
37
|
-
singular: 'Number'
|
|
38
|
-
},
|
|
39
|
-
slug: 'number'
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
label: 'Blocks Content',
|
|
43
|
-
labels: {
|
|
44
|
-
plural: 'Blocks Content',
|
|
45
|
-
singular: 'Block'
|
|
46
|
-
},
|
|
47
|
-
name: 'blocks',
|
|
48
|
-
type: 'blocks'
|
|
49
|
-
};
|
|
50
|
-
it('renders multiple', ()=>{
|
|
51
|
-
const data = [
|
|
52
|
-
{
|
|
53
|
-
blockType: 'number'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
blockType: 'number'
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Blocks.BlocksCell, {
|
|
60
|
-
data: data,
|
|
61
|
-
field: field
|
|
62
|
-
}));
|
|
63
|
-
const el = container.querySelector('span');
|
|
64
|
-
expect(el).toHaveTextContent('2 Blocks Content - Number, Number');
|
|
65
|
-
});
|
|
66
|
-
it('renders zero', ()=>{
|
|
67
|
-
const data = [];
|
|
68
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Blocks.BlocksCell, {
|
|
69
|
-
data: data,
|
|
70
|
-
field: field
|
|
71
|
-
}));
|
|
72
|
-
const el = container.querySelector('span');
|
|
73
|
-
expect(el).toHaveTextContent('0 Blocks Content');
|
|
74
|
-
});
|
|
75
|
-
it('renders "and X more" if over maximum of 5', ()=>{
|
|
76
|
-
const data = [
|
|
77
|
-
{
|
|
78
|
-
blockType: 'number'
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
blockType: 'number'
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
blockType: 'number'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
blockType: 'number'
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
blockType: 'number'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
blockType: 'number'
|
|
94
|
-
}
|
|
95
|
-
];
|
|
96
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Blocks.BlocksCell, {
|
|
97
|
-
data: data,
|
|
98
|
-
field: field
|
|
99
|
-
}));
|
|
100
|
-
const el = container.querySelector('span');
|
|
101
|
-
expect(el).toHaveTextContent('fields:itemsAndMore');
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
describe('Date', ()=>{
|
|
105
|
-
const field = {
|
|
106
|
-
admin: {
|
|
107
|
-
date: {
|
|
108
|
-
pickerAppearance: 'dayOnly'
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
name: 'dayOnly',
|
|
112
|
-
type: 'date'
|
|
113
|
-
};
|
|
114
|
-
it('renders date', ()=>{
|
|
115
|
-
const timeStamp = '2020-10-06T14:07:39.033Z';
|
|
116
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Date.DateCell, {
|
|
117
|
-
data: timeStamp,
|
|
118
|
-
field: field
|
|
119
|
-
}));
|
|
120
|
-
const dateMatch = /October\s6th\s2020,\s\d{1,2}:07\s[A|P]M/ // Had to account for timezones in CI
|
|
121
|
-
;
|
|
122
|
-
const el = container.querySelector('span');
|
|
123
|
-
expect(el.textContent).toMatch(dateMatch);
|
|
124
|
-
});
|
|
125
|
-
it('handles undefined', ()=>{
|
|
126
|
-
const timeStamp = undefined;
|
|
127
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Date.DateCell, {
|
|
128
|
-
data: timeStamp,
|
|
129
|
-
field: field
|
|
130
|
-
}));
|
|
131
|
-
const el = container.querySelector('span');
|
|
132
|
-
expect(el.textContent).toBe('');
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
describe('Checkbox', ()=>{
|
|
136
|
-
it('renders true', ()=>{
|
|
137
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Checkbox.Checkbox, {
|
|
138
|
-
data: true
|
|
139
|
-
}));
|
|
140
|
-
const el = container.querySelector('span');
|
|
141
|
-
expect(el).toHaveTextContent('true');
|
|
142
|
-
});
|
|
143
|
-
it('renders false', ()=>{
|
|
144
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Checkbox.Checkbox, {
|
|
145
|
-
data: false
|
|
146
|
-
}));
|
|
147
|
-
const el = container.querySelector('span');
|
|
148
|
-
expect(el).toHaveTextContent('false');
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
describe('Textarea', ()=>{
|
|
152
|
-
it('renders data', ()=>{
|
|
153
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Textarea.Textarea, {
|
|
154
|
-
data: "data"
|
|
155
|
-
}));
|
|
156
|
-
const el = container.querySelector('span');
|
|
157
|
-
expect(el).toHaveTextContent('data');
|
|
158
|
-
});
|
|
159
|
-
it('handle undefined - bug/13', ()=>{
|
|
160
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Textarea.Textarea, {
|
|
161
|
-
data: undefined
|
|
162
|
-
}));
|
|
163
|
-
const el = container.querySelector('span');
|
|
164
|
-
expect(el).toHaveTextContent('');
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
describe('Select', ()=>{
|
|
168
|
-
const fieldWithOptionsObject = {
|
|
169
|
-
name: 'selectObject',
|
|
170
|
-
options: [
|
|
171
|
-
{
|
|
172
|
-
label: 'One',
|
|
173
|
-
value: 'one'
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
label: 'Two',
|
|
177
|
-
value: 'two'
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
type: 'select'
|
|
181
|
-
};
|
|
182
|
-
const fieldWithStringsOptions = {
|
|
183
|
-
name: 'selectString',
|
|
184
|
-
options: [
|
|
185
|
-
'blue',
|
|
186
|
-
'green',
|
|
187
|
-
'yellow'
|
|
188
|
-
],
|
|
189
|
-
type: 'select'
|
|
190
|
-
};
|
|
191
|
-
it('renders options objects', ()=>{
|
|
192
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Select.Select, {
|
|
193
|
-
data: "one",
|
|
194
|
-
field: fieldWithOptionsObject
|
|
195
|
-
}));
|
|
196
|
-
const el = container.querySelector('span');
|
|
197
|
-
expect(el).toHaveTextContent('One');
|
|
198
|
-
});
|
|
199
|
-
it('renders option strings', ()=>{
|
|
200
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Select.Select, {
|
|
201
|
-
data: "blue",
|
|
202
|
-
field: fieldWithStringsOptions
|
|
203
|
-
}));
|
|
204
|
-
const el = container.querySelector('span');
|
|
205
|
-
expect(el).toHaveTextContent('blue');
|
|
206
|
-
});
|
|
207
|
-
describe('HasMany', ()=>{
|
|
208
|
-
it('renders options objects', ()=>{
|
|
209
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Select.Select, {
|
|
210
|
-
data: [
|
|
211
|
-
'one',
|
|
212
|
-
'two'
|
|
213
|
-
],
|
|
214
|
-
field: fieldWithOptionsObject
|
|
215
|
-
}));
|
|
216
|
-
const el = container.querySelector('span');
|
|
217
|
-
expect(el).toHaveTextContent('One, Two');
|
|
218
|
-
});
|
|
219
|
-
it('renders option strings', ()=>{
|
|
220
|
-
const { container } = (0, _react.render)(/*#__PURE__*/ _react1.default.createElement(_Select.Select, {
|
|
221
|
-
data: [
|
|
222
|
-
'blue',
|
|
223
|
-
'green'
|
|
224
|
-
],
|
|
225
|
-
field: fieldWithStringsOptions
|
|
226
|
-
}));
|
|
227
|
-
const el = container.querySelector('span');
|
|
228
|
-
expect(el).toHaveTextContent('blue, green');
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy92aWV3cy9MaXN0L0RlZmF1bHQvQ2VsbC9jZWxsVHlwZXMuc3BlYy50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyIH0gZnJvbSAnQHRlc3RpbmctbGlicmFyeS9yZWFjdCdcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxuaW1wb3J0IHR5cGUgeyBCbG9ja0ZpZWxkLCBEYXRlRmllbGQsIFNlbGVjdEZpZWxkIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgQmxvY2tzQ2VsbCB9IGZyb20gJy4vZmllbGRzL0Jsb2NrcydcbmltcG9ydCB7IENoZWNrYm94IH0gZnJvbSAnLi9maWVsZHMvQ2hlY2tib3gnXG5pbXBvcnQgeyBEYXRlQ2VsbCB9IGZyb20gJy4vZmllbGRzL0RhdGUnXG5pbXBvcnQgeyBTZWxlY3QgfSBmcm9tICcuL2ZpZWxkcy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BmaWVsZD17ZmllbGRXaXRoT3B0aW9uc09iamVjdH0gLz4pXG4gICAgICBjb25zdCBlbCA9IGNvbnRhaW5lci5xdWVyeVNlbGVjdG9yKCdzcGFuJylcbiAgICAgIGV4cGVjdChlbCkudG9IYXZlVGV4dENvbnRlbnQoJ09uZScpXG4gICAgfSlcbiAgICBpdCgncmVuZGVycyBvcHRpb24gc3RyaW5ncycsICgpID0+IHtcbiAgICAgIGNvbnN0IHsgY29udGFpbmVyIH0gPSByZW5kZXIoPFNlbGVjdCBkYXRhPVwiYmx1ZVwiIGZpZWxkPXtmaWVsZFdpdGhTdHJpbmdzT3B0aW9uc30gLz4pXG4gICAgICBjb25zdCBlbCA9IGNvbnRhaW5lci5xdWVyeVNlbGVjdG9yKCdzcGFuJylcbiAgICAgIGV4cGVjdChlbCkudG9IYXZlVGV4dENvbnRlbnQoJ2JsdWUnKVxuICAgIH0pXG5cbiAgICBkZXNjcmliZSgnSGFzTWFueScsICgpID0+IHtcbiAgICAgIGl0KCdyZW5kZXJzIG9wdGlvbnMgb2JqZWN0cycsICgpID0+IHtcbiAgICAgICAgY29uc3QgeyBjb250YWluZXIgfSA9IHJlbmRlcihcbiAgICAgICAgICA8U2VsZWN0IGRhdGE9e1snb25lJywgJ3R3byddfSBmaWVsZD17ZmllbGRXaXRoT3B0aW9uc09iamVjdH0gLz4sXG4gICAgICAgIClcbiAgICAgICAgY29uc3QgZWwgPSBjb250YWluZXIucXVlcnlTZWxlY3Rvcignc3BhbicpXG4gICAgICAgIGV4cGVjdChlbCkudG9IYXZlVGV4dENvbnRlbnQoJ09uZSwgVHdvJylcbiAgICAgIH0pXG4gICAgICBpdCgncmVuZGVycyBvcHRpb24gc3RyaW5ncycsICgpID0+IHtcbiAgICAgICAgY29uc3QgeyBjb250YWluZXIgfSA9IHJlbmRlcihcbiAgICAgICAgICA8U2VsZWN0IGRhdGE9e1snYmx1ZScsICdncmVlbiddfSBmaWVsZD17ZmllbGRXaXRoU3RyaW5nc09wdG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FNLEVBQUVHLFNBQVMsRUFBRSxHQUFHQyxJQUFBQSxhQUFNLGdCQUMxQiw4QkFBQ3FCLGNBQU07b0JBQUN4QixNQUFNO3dCQUFDO3dCQUFPO3FCQUFNO29CQUFFWCxPQUFPK0I7O2dCQUV2QyxNQUFNZixLQUFLSCxVQUFVSSxhQUFhLENBQUM7Z0JBQ25DQyxPQUFPRixJQUFJRyxpQkFBaUIsQ0FBQztZQUMvQjtZQUNBVCxHQUFHLDBCQUEwQjtnQkFDM0IsTUFBTSxFQUFFRyxTQUFTLEVBQUUsR0FBR0MsSUFBQUEsYUFBTSxnQkFDMUIsOEJBQUNxQixjQUFNO29CQUFDeEIsTUFBTTt3QkFBQzt3QkFBUTtxQkFBUTtvQkFBRVgsT0FBT2tDOztnQkFFMUMsTUFBTWxCLEtBQUtILFVBQVVJLGFBQWEsQ0FBQztnQkFDbkNDLE9BQU9GLElBQUlHLGlCQUFpQixDQUFDO1lBQy9CO1FBQ0Y7SUFDRjtBQUNGIn0=
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CellComponentProps, CellProps } from 'payload/types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface ArrayCellProps extends CellComponentProps<Record<string, unknown>[]> {
|
|
4
|
-
labels: CellProps['labels'];
|
|
5
|
-
}
|
|
6
|
-
export declare const ArrayCell: React.FC<ArrayCellProps>;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/List/Default/Cell/fields/Array/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAIlE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,cAAe,SAAQ,kBAAkB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACnF,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;CAC5B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAW9C,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ArrayCell", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return ArrayCell;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const _translations = require("@payloadcms/translations");
|
|
13
|
-
const _ui = require("@payloadcms/ui");
|
|
14
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
15
|
-
function _interop_require_default(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : {
|
|
17
|
-
default: obj
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const ArrayCell = ({ cellData, labels })=>{
|
|
21
|
-
const { i18n } = (0, _ui.useTranslation)();
|
|
22
|
-
const arrayFields = cellData ?? [];
|
|
23
|
-
const label = `${arrayFields.length} ${(0, _translations.getTranslation)(labels?.plural || i18n.t('general:rows'), i18n)}`;
|
|
24
|
-
return /*#__PURE__*/ _react.default.createElement("span", null, label);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy92aWV3cy9MaXN0L0RlZmF1bHQvQ2VsbC9maWVsZHMvQXJyYXkvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuaW1wb3J0IHR5cGUgeyBDZWxsQ29tcG9uZW50UHJvcHMsIENlbGxQcm9wcyB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGdldFRyY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TUFBTSxFQUFFO0lBQ3RFLE1BQU0sRUFBRUMsSUFBSSxFQUFFLEdBQUdDLElBQUFBLGtCQUFjO0lBRS9CLE1BQU1DLGNBQWNKLFlBQVksRUFBRTtJQUVsQyxNQUFNSyxRQUFRLENBQUMsRUFBRUQsWUFBWUUsTUFBTSxDQUFDLENBQUMsRUFBRUMsSUFBQUEsNEJBQWMsRUFDbkROLFFBQVFPLFVBQVVOLEtBQUtPLENBQUMsQ0FBQyxpQkFDekJQLE1BQ0EsQ0FBQztJQUVILHFCQUFPLDZCQUFDUSxjQUFNTDtBQUNoQiJ9
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CellComponentProps, CellProps } from 'payload/types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface BlocksCellProps extends CellComponentProps<any> {
|
|
4
|
-
blocks: CellProps['blocks'];
|
|
5
|
-
labels: CellProps['labels'];
|
|
6
|
-
}
|
|
7
|
-
export declare const BlocksCell: React.FC<BlocksCellProps>;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|