@payloadcms/next 3.0.0-alpha.4 → 3.0.0-alpha.41
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/bin/index.js +5 -14
- package/dist/bin/install.js +16 -31
- package/dist/config.js +2 -12
- package/dist/elements/ClearRouteCache/index.d.ts +3 -0
- package/dist/elements/ClearRouteCache/index.d.ts.map +1 -0
- package/dist/elements/ClearRouteCache/index.js +16 -0
- package/dist/elements/LeaveWithoutSaving/index.js +26 -76
- package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +11 -29
- package/dist/exports/index.d.ts +1 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/index.js +2 -12
- package/dist/graphql/registerSchema.js +0 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/layouts/Admin/index.js +9 -32
- package/dist/layouts/Root/index.d.ts.map +1 -1
- package/dist/layouts/Root/index.js +39 -55
- 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/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/index.d.ts +1 -1
- package/dist/next-fileupload/index.js +10 -25
- package/dist/next-fileupload/isEligibleRequest.js +2 -12
- 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/processNested.js +4 -14
- package/dist/next-fileupload/uploadTimer.js +2 -12
- 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-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/routes/graphql/handler.d.ts.map +1 -1
- package/dist/routes/graphql/handler.js +19 -36
- 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/playground.js +6 -16
- 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/rest/RouteError.js +10 -25
- 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/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/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/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/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/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/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/registerFirstUser.d.ts +1 -1
- package/dist/routes/rest/auth/registerFirstUser.d.ts.map +1 -1
- package/dist/routes/rest/auth/registerFirstUser.js +8 -23
- 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/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/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/buildFormState.js +11 -34
- package/dist/routes/rest/checkEndpoints.d.ts.map +1 -1
- package/dist/routes/rest/checkEndpoints.js +4 -19
- 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 +8 -23
- 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/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/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/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/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/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/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/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/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/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/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/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/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/findOne.d.ts +1 -1
- package/dist/routes/rest/globals/findOne.d.ts.map +1 -1
- package/dist/routes/rest/globals/findOne.js +8 -23
- 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/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/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/update.d.ts +1 -1
- package/dist/routes/rest/globals/update.d.ts.map +1 -1
- package/dist/routes/rest/globals/update.js +8 -23
- package/dist/routes/rest/index.d.ts.map +1 -1
- package/dist/routes/rest/index.js +101 -121
- package/dist/routes/rest/types.js +2 -5
- package/dist/utilities/auth.d.ts +3 -3
- package/dist/utilities/auth.d.ts.map +1 -1
- package/dist/utilities/auth.js +7 -21
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +29 -31
- package/dist/utilities/getDataAndFile.js +6 -16
- package/dist/utilities/getNextI18n.js +11 -21
- package/dist/utilities/getNextT.js +11 -21
- package/dist/utilities/getPayload.d.ts +4 -0
- package/dist/utilities/getPayload.d.ts.map +1 -0
- package/dist/utilities/getPayload.js +62 -0
- package/dist/utilities/getRequestLanguage.d.ts +1 -1
- package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
- package/dist/utilities/getRequestLanguage.js +4 -14
- package/dist/utilities/getRequestLocales.js +2 -12
- package/dist/utilities/initPage.d.ts +6 -15
- package/dist/utilities/initPage.d.ts.map +1 -1
- package/dist/utilities/initPage.js +45 -45
- package/dist/utilities/meta.js +5 -15
- 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/{pages → views}/API/RenderJSON/index.d.ts.map +1 -1
- package/dist/views/API/RenderJSON/index.js +91 -0
- package/dist/views/API/index.client.d.ts +4 -0
- package/dist/views/API/index.client.d.ts.map +1 -0
- package/dist/views/API/index.client.js +176 -0
- package/dist/views/API/index.d.ts +4 -0
- package/dist/views/API/index.d.ts.map +1 -0
- package/dist/views/API/index.js +7 -0
- package/dist/{pages/LivePreview → views/API}/meta.d.ts +1 -1
- package/dist/views/API/meta.d.ts.map +1 -0
- package/dist/views/API/meta.js +11 -0
- package/dist/{pages → views}/Account/Settings/index.d.ts.map +1 -1
- package/dist/views/Account/Settings/index.js +30 -0
- package/dist/views/Account/ToggleTheme/index.d.ts.map +1 -0
- package/dist/views/Account/ToggleTheme/index.js +34 -0
- package/dist/views/Account/index.d.ts +5 -0
- package/dist/views/Account/index.d.ts.map +1 -0
- package/dist/views/Account/index.js +98 -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/CreateFirstUser/index.client.d.ts +7 -0
- package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/index.client.js +18 -0
- package/dist/views/CreateFirstUser/index.d.ts +6 -0
- package/dist/views/CreateFirstUser/index.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/index.js +51 -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/{pages → views}/Dashboard/Default/index.client.d.ts +2 -0
- package/dist/views/Dashboard/Default/index.client.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/index.client.js +99 -0
- package/dist/{pages → views}/Dashboard/Default/index.d.ts +2 -0
- package/dist/views/Dashboard/Default/index.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/index.js +28 -0
- package/dist/views/Dashboard/index.d.ts +5 -0
- package/dist/views/Dashboard/index.d.ts.map +1 -0
- package/dist/views/Dashboard/index.js +46 -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/{pages → views}/Document/getCustomViewByKey.d.ts +2 -2
- package/dist/views/Document/getCustomViewByKey.d.ts.map +1 -0
- package/dist/views/Document/getCustomViewByKey.js +5 -0
- package/dist/{pages → views}/Document/getCustomViewByPath.d.ts +2 -2
- package/dist/views/Document/getCustomViewByPath.d.ts.map +1 -0
- package/dist/views/Document/getCustomViewByPath.js +16 -0
- package/dist/views/Document/getMetaBySegment.d.ts +10 -0
- package/dist/views/Document/getMetaBySegment.d.ts.map +1 -0
- package/dist/views/Document/getMetaBySegment.js +77 -0
- package/dist/{pages → views}/Document/getViewsFromConfig.d.ts +3 -3
- package/dist/views/Document/getViewsFromConfig.d.ts.map +1 -0
- package/dist/views/Document/getViewsFromConfig.js +155 -0
- package/dist/views/Document/index.d.ts +6 -0
- package/dist/views/Document/index.d.ts.map +1 -0
- package/dist/views/Document/index.js +159 -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/{pages → views}/Edit/Default/Auth/APIKey.d.ts.map +1 -1
- package/dist/views/Edit/Default/Auth/APIKey.js +89 -0
- package/dist/{pages → views}/Edit/Default/Auth/index.d.ts +1 -1
- package/dist/{pages → views}/Edit/Default/Auth/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/Auth/index.js +124 -0
- package/dist/{pages → views}/Edit/Default/Auth/types.d.ts.map +1 -1
- package/dist/views/Edit/Default/Auth/types.js +3 -0
- package/dist/views/Edit/Default/SetDocumentTitle/formatTitle.d.ts +10 -0
- package/dist/views/Edit/Default/SetDocumentTitle/formatTitle.d.ts.map +1 -0
- package/dist/views/Edit/Default/SetDocumentTitle/formatTitle.js +23 -0
- package/dist/{pages → views}/Edit/Default/SetDocumentTitle/index.d.ts +1 -1
- package/dist/{pages → views}/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -1
- package/dist/views/Edit/Default/SetDocumentTitle/index.js +33 -0
- package/dist/{pages → views}/Edit/Default/SetStepNav/index.d.ts +1 -2
- package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +1 -0
- package/dist/views/Edit/Default/SetStepNav/index.js +60 -0
- package/dist/views/Edit/Default/index.d.ts.map +1 -0
- package/dist/views/Edit/Default/index.js +145 -0
- package/dist/{pages → views}/Edit/Default/types.d.ts.map +1 -1
- package/dist/views/Edit/Default/types.js +3 -0
- package/dist/views/Edit/index.client.d.ts +3 -0
- package/dist/views/Edit/index.client.d.ts.map +1 -0
- package/dist/views/Edit/index.client.js +53 -0
- package/dist/views/Edit/index.d.ts +4 -0
- package/dist/views/Edit/index.d.ts.map +1 -0
- package/dist/views/Edit/index.js +7 -0
- package/dist/{pages/API → views/Edit}/meta.d.ts +1 -1
- package/dist/views/Edit/meta.d.ts.map +1 -0
- package/dist/views/Edit/meta.js +26 -0
- package/dist/views/Edit/sanitizeEditViewProps.d.ts +3 -0
- package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +1 -0
- package/dist/views/Edit/sanitizeEditViewProps.js +11 -0
- package/dist/views/ForgotPassword/index.d.ts +6 -0
- package/dist/views/ForgotPassword/index.d.ts.map +1 -0
- package/dist/views/ForgotPassword/index.js +58 -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/{pages → views}/List/Default/Cell/cellTypes.spec.js +21 -30
- package/dist/{pages → views}/List/Default/Cell/fields/Array/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Array/index.js +12 -0
- package/dist/{pages → views}/List/Default/Cell/fields/Blocks/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Blocks/index.js +30 -0
- package/dist/{pages → views}/List/Default/Cell/fields/Checkbox/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Checkbox/index.js +8 -0
- package/dist/{pages → views}/List/Default/Cell/fields/Code/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Code/index.js +14 -0
- package/dist/{pages → views}/List/Default/Cell/fields/Date/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Date/index.js +11 -0
- package/dist/{pages → views}/List/Default/Cell/fields/File/index.d.ts.map +1 -1
- package/dist/{pages → views}/List/Default/Cell/fields/File/index.js +8 -23
- package/dist/{pages → views}/List/Default/Cell/fields/JSON/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/JSON/index.js +11 -0
- package/dist/{pages → views}/List/Default/Cell/fields/Relationship/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Relationship/index.js +70 -0
- package/dist/{pages → views}/List/Default/Cell/fields/Select/index.d.ts.map +1 -1
- package/dist/{pages → views}/List/Default/Cell/fields/Select/index.js +10 -25
- package/dist/{pages → views}/List/Default/Cell/fields/Textarea/index.d.ts.map +1 -1
- package/dist/views/List/Default/Cell/fields/Textarea/index.js +8 -0
- package/dist/views/List/Default/Cell/fields/index.d.ts +17 -0
- package/dist/views/List/Default/Cell/fields/index.d.ts.map +1 -0
- package/dist/views/List/Default/Cell/fields/index.js +26 -0
- package/dist/views/List/Default/Cell/index.d.ts.map +1 -0
- package/dist/views/List/Default/Cell/index.js +75 -0
- package/dist/{pages → views}/List/Default/RelationshipProvider/index.d.ts.map +1 -1
- package/dist/views/List/Default/RelationshipProvider/index.js +89 -0
- package/dist/{pages → views}/List/Default/RelationshipProvider/reducer.d.ts +1 -1
- package/dist/{pages → views}/List/Default/RelationshipProvider/reducer.d.ts.map +1 -1
- package/dist/views/List/Default/RelationshipProvider/reducer.js +45 -0
- package/dist/views/List/Default/index.d.ts.map +1 -0
- package/dist/views/List/Default/index.js +130 -0
- package/dist/{pages → views}/List/Default/types.d.ts.map +1 -1
- package/dist/views/List/Default/types.js +3 -0
- package/dist/views/List/index.d.ts +5 -0
- package/dist/views/List/index.d.ts.map +1 -0
- package/dist/views/List/index.js +70 -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/{pages → views}/LivePreview/Context/collisionDetection.d.ts.map +1 -1
- package/dist/{pages → views}/LivePreview/Context/collisionDetection.js +6 -14
- package/dist/{pages → views}/LivePreview/Context/context.d.ts +2 -2
- package/dist/views/LivePreview/Context/context.d.ts.map +1 -0
- package/dist/views/LivePreview/Context/context.js +40 -0
- package/dist/{pages → views}/LivePreview/Context/index.d.ts +3 -3
- package/dist/views/LivePreview/Context/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Context/index.js +157 -0
- package/dist/{pages → views}/LivePreview/Context/sizeReducer.d.ts.map +1 -1
- package/dist/{pages → views}/LivePreview/Context/sizeReducer.js +2 -12
- package/dist/{pages → views}/LivePreview/Device/index.d.ts.map +1 -1
- package/dist/views/LivePreview/Device/index.js +51 -0
- package/dist/{pages → views}/LivePreview/DeviceContainer/index.d.ts.map +1 -1
- package/dist/views/LivePreview/DeviceContainer/index.js +29 -0
- package/dist/{pages → views}/LivePreview/IFrame/index.d.ts.map +1 -1
- package/dist/views/LivePreview/IFrame/index.js +23 -0
- package/dist/{pages → views}/LivePreview/Preview/index.d.ts +1 -1
- package/dist/views/LivePreview/Preview/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Preview/index.js +76 -0
- package/dist/{pages → views}/LivePreview/Toolbar/Controls/index.d.ts +1 -1
- package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Toolbar/Controls/index.js +81 -0
- package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.d.ts.map +1 -1
- package/dist/views/LivePreview/Toolbar/SizeInput/index.js +61 -0
- package/dist/{pages → views}/LivePreview/Toolbar/index.d.ts +1 -1
- package/dist/views/LivePreview/Toolbar/index.d.ts.map +1 -0
- package/dist/views/LivePreview/Toolbar/index.js +50 -0
- package/dist/{pages → views}/LivePreview/ToolbarArea/index.d.ts.map +1 -1
- package/dist/views/LivePreview/ToolbarArea/index.js +17 -0
- package/dist/views/LivePreview/index.client.d.ts.map +1 -0
- package/dist/views/LivePreview/index.client.js +141 -0
- package/dist/views/LivePreview/index.d.ts +4 -0
- package/dist/views/LivePreview/index.d.ts.map +1 -0
- package/dist/views/LivePreview/index.js +45 -0
- package/dist/{pages/Version → views/LivePreview}/meta.d.ts +1 -1
- package/dist/views/LivePreview/meta.d.ts.map +1 -0
- package/dist/views/LivePreview/meta.js +26 -0
- package/dist/{pages → views}/LivePreview/usePopupWindow.d.ts.map +1 -1
- package/dist/{pages → views}/LivePreview/usePopupWindow.js +11 -21
- package/dist/{pages → views}/Login/LoginForm/index.d.ts.map +1 -1
- package/dist/views/Login/LoginForm/index.js +58 -0
- package/dist/views/Login/index.d.ts +7 -0
- package/dist/views/Login/index.d.ts.map +1 -0
- package/dist/views/Login/index.js +29 -0
- package/dist/views/Login/index.scss +8 -0
- package/dist/views/Login/meta.d.ts +3 -0
- package/dist/views/Login/meta.d.ts.map +1 -0
- package/dist/views/Login/meta.js +11 -0
- package/dist/views/Logout/LogoutClient.d.ts.map +1 -0
- package/dist/views/Logout/LogoutClient.js +33 -0
- package/dist/views/Logout/index.d.ts +9 -0
- package/dist/views/Logout/index.d.ts.map +1 -0
- package/dist/views/Logout/index.js +26 -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/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 +38 -0
- package/dist/views/NotFound/index.d.ts +12 -0
- package/dist/views/NotFound/index.d.ts.map +1 -0
- package/dist/views/NotFound/index.js +20 -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/ResetPassword/index.d.ts +7 -0
- package/dist/views/ResetPassword/index.d.ts.map +1 -0
- package/dist/views/ResetPassword/index.js +63 -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/Root/index.d.ts +31 -0
- package/dist/views/Root/index.d.ts.map +1 -0
- package/dist/views/Root/index.js +174 -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/Unauthorized/UnauthorizedClient.d.ts.map +1 -0
- package/dist/views/Unauthorized/UnauthorizedClient.js +15 -0
- package/dist/views/Unauthorized/index.d.ts +5 -0
- package/dist/views/Unauthorized/index.d.ts.map +1 -0
- package/dist/views/Unauthorized/index.js +11 -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/Verify/index.d.ts +7 -0
- package/dist/views/Verify/index.d.ts.map +1 -0
- package/dist/views/Verify/index.js +33 -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/{pages → views}/Version/Default/SetStepNav.d.ts.map +1 -1
- package/dist/{pages → views}/Version/Default/SetStepNav.js +13 -23
- package/dist/{pages → views}/Version/Default/index.d.ts +1 -1
- package/dist/views/Version/Default/index.d.ts.map +1 -0
- package/dist/views/Version/Default/index.js +100 -0
- package/dist/{pages → views}/Version/Default/types.d.ts +2 -7
- package/dist/views/Version/Default/types.d.ts.map +1 -0
- package/dist/views/Version/Default/types.js +3 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/Label/index.js +9 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +65 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +29 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +75 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +17 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +39 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +39 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +17 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +31 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.js +2 -12
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +25 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +29 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.d.ts.map +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.js +2 -12
- package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js +3 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/index.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js +100 -0
- package/dist/{pages → views}/Version/RenderFieldsToDiff/types.d.ts +1 -1
- package/dist/{pages → views}/Version/RenderFieldsToDiff/types.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/types.js +3 -0
- package/dist/{pages → views}/Version/Restore/index.d.ts +1 -1
- package/dist/views/Version/Restore/index.d.ts.map +1 -0
- package/dist/views/Version/Restore/index.js +71 -0
- package/dist/{pages → views}/Version/Restore/types.d.ts.map +1 -1
- package/dist/views/Version/Restore/types.js +3 -0
- package/dist/{pages → views}/Version/SelectComparison/index.d.ts +1 -1
- package/dist/views/Version/SelectComparison/index.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/index.js +112 -0
- package/dist/{pages → views}/Version/SelectComparison/types.d.ts +1 -1
- package/dist/{pages → views}/Version/SelectComparison/types.d.ts.map +1 -1
- package/dist/views/Version/SelectComparison/types.js +3 -0
- package/dist/{pages → views}/Version/SelectLocales/index.d.ts +1 -1
- package/dist/views/Version/SelectLocales/index.d.ts.map +1 -0
- package/dist/views/Version/SelectLocales/index.js +33 -0
- package/dist/{pages → views}/Version/SelectLocales/types.d.ts.map +1 -1
- package/dist/views/Version/SelectLocales/types.js +3 -0
- package/dist/views/Version/index.d.ts +3 -0
- package/dist/views/Version/index.d.ts.map +1 -0
- package/dist/views/Version/index.js +89 -0
- package/dist/{pages/Edit → views/Version}/meta.d.ts +1 -1
- package/dist/views/Version/meta.d.ts.map +1 -0
- package/dist/views/Version/meta.js +37 -0
- package/dist/{pages → views}/Version/shared.d.ts.map +1 -1
- package/dist/views/Version/shared.js +10 -0
- package/dist/{pages → views}/Versions/buildColumns.d.ts.map +1 -1
- package/dist/views/Versions/buildColumns.js +54 -0
- package/dist/{pages → views}/Versions/cells/AutosaveCell/index.d.ts.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.js +12 -0
- package/dist/{pages → views}/Versions/cells/CreatedAt/index.d.ts.map +1 -1
- package/dist/views/Versions/cells/CreatedAt/index.js +19 -0
- package/dist/{pages → views}/Versions/cells/ID/index.d.ts.map +1 -1
- package/dist/views/Versions/cells/ID/index.js +9 -0
- package/dist/{pages → views}/Versions/index.client.d.ts +0 -3
- package/dist/views/Versions/index.client.d.ts.map +1 -0
- package/dist/views/Versions/index.client.js +93 -0
- package/dist/{pages → views}/Versions/index.d.ts +1 -1
- package/dist/views/Versions/index.d.ts.map +1 -0
- package/dist/views/Versions/index.js +86 -0
- package/dist/views/Versions/meta.d.ts +3 -0
- package/dist/views/Versions/meta.d.ts.map +1 -0
- package/dist/views/Versions/meta.js +33 -0
- package/dist/{pages → views}/Versions/types.d.ts.map +1 -1
- package/dist/views/Versions/types.js +3 -0
- package/dist/withPayload.d.ts +2 -1
- package/dist/withPayload.d.ts.map +1 -1
- package/dist/withPayload.js +3 -6
- package/package.json +24 -15
- package/src/index.ts +5 -1
- package/dist/layouts/Document/index.d.ts +0 -14
- package/dist/layouts/Document/index.d.ts.map +0 -1
- package/dist/layouts/Document/index.js +0 -82
- package/dist/pages/API/RenderJSON/index.js +0 -142
- package/dist/pages/API/index.client.d.ts +0 -5
- package/dist/pages/API/index.client.d.ts.map +0 -1
- package/dist/pages/API/index.client.js +0 -241
- package/dist/pages/API/index.d.ts +0 -4
- package/dist/pages/API/index.d.ts.map +0 -1
- package/dist/pages/API/index.js +0 -27
- package/dist/pages/API/meta.d.ts.map +0 -1
- package/dist/pages/API/meta.js +0 -21
- package/dist/pages/Account/Settings/index.js +0 -45
- package/dist/pages/Account/ToggleTheme/index.d.ts.map +0 -1
- package/dist/pages/Account/ToggleTheme/index.js +0 -85
- package/dist/pages/Account/index.d.ts +0 -13
- package/dist/pages/Account/index.d.ts.map +0 -1
- package/dist/pages/Account/index.js +0 -171
- package/dist/pages/CreateFirstUser/index.client.d.ts +0 -5
- package/dist/pages/CreateFirstUser/index.client.d.ts.map +0 -1
- package/dist/pages/CreateFirstUser/index.client.js +0 -29
- package/dist/pages/CreateFirstUser/index.d.ts +0 -11
- package/dist/pages/CreateFirstUser/index.d.ts.map +0 -1
- package/dist/pages/CreateFirstUser/index.js +0 -91
- package/dist/pages/Dashboard/Default/index.client.d.ts.map +0 -1
- package/dist/pages/Dashboard/Default/index.client.js +0 -154
- package/dist/pages/Dashboard/Default/index.d.ts.map +0 -1
- package/dist/pages/Dashboard/Default/index.js +0 -44
- package/dist/pages/Dashboard/index.d.ts +0 -13
- package/dist/pages/Dashboard/index.d.ts.map +0 -1
- package/dist/pages/Dashboard/index.js +0 -128
- package/dist/pages/Document/getCustomViewByKey.d.ts.map +0 -1
- package/dist/pages/Document/getCustomViewByKey.js +0 -15
- package/dist/pages/Document/getCustomViewByPath.d.ts.map +0 -1
- package/dist/pages/Document/getCustomViewByPath.js +0 -26
- package/dist/pages/Document/getMetaBySegment.d.ts +0 -20
- package/dist/pages/Document/getMetaBySegment.d.ts.map +0 -1
- package/dist/pages/Document/getMetaBySegment.js +0 -124
- package/dist/pages/Document/getViewsFromConfig.d.ts.map +0 -1
- package/dist/pages/Document/getViewsFromConfig.js +0 -224
- package/dist/pages/Document/index.d.ts +0 -23
- package/dist/pages/Document/index.d.ts.map +0 -1
- package/dist/pages/Document/index.js +0 -237
- package/dist/pages/Edit/Default/Auth/APIKey.js +0 -140
- package/dist/pages/Edit/Default/Auth/index.js +0 -180
- package/dist/pages/Edit/Default/Auth/types.js +0 -6
- package/dist/pages/Edit/Default/RenderCustomView.d.ts +0 -2
- package/dist/pages/Edit/Default/RenderCustomView.d.ts.map +0 -1
- package/dist/pages/Edit/Default/RenderCustomView.js +0 -3
- package/dist/pages/Edit/Default/SetDocumentTitle/index.js +0 -50
- package/dist/pages/Edit/Default/SetStepNav/index.d.ts.map +0 -1
- package/dist/pages/Edit/Default/SetStepNav/index.js +0 -70
- package/dist/pages/Edit/Default/index.d.ts.map +0 -1
- package/dist/pages/Edit/Default/index.js +0 -202
- package/dist/pages/Edit/Default/types.js +0 -6
- package/dist/pages/Edit/index.client.d.ts +0 -4
- package/dist/pages/Edit/index.client.d.ts.map +0 -1
- package/dist/pages/Edit/index.client.js +0 -99
- package/dist/pages/Edit/index.d.ts +0 -4
- package/dist/pages/Edit/index.d.ts.map +0 -1
- package/dist/pages/Edit/index.js +0 -27
- package/dist/pages/Edit/meta.d.ts.map +0 -1
- package/dist/pages/Edit/meta.js +0 -36
- package/dist/pages/Edit/sanitizeEditViewProps.d.ts +0 -4
- package/dist/pages/Edit/sanitizeEditViewProps.d.ts.map +0 -1
- package/dist/pages/Edit/sanitizeEditViewProps.js +0 -24
- package/dist/pages/Edit/types.d.js +0 -7
- package/dist/pages/Edit/types.d.ts +0 -37
- package/dist/pages/Edit/types.d.ts.map +0 -1
- package/dist/pages/Edit/types.js +0 -6
- package/dist/pages/ForgotPassword/index.d.ts +0 -10
- package/dist/pages/ForgotPassword/index.d.ts.map +0 -1
- package/dist/pages/ForgotPassword/index.js +0 -101
- package/dist/pages/List/Default/Cell/fields/Array/index.js +0 -27
- package/dist/pages/List/Default/Cell/fields/Blocks/index.js +0 -45
- package/dist/pages/List/Default/Cell/fields/Checkbox/index.js +0 -23
- package/dist/pages/List/Default/Cell/fields/Code/index.js +0 -29
- package/dist/pages/List/Default/Cell/fields/Date/index.js +0 -26
- package/dist/pages/List/Default/Cell/fields/JSON/index.js +0 -26
- package/dist/pages/List/Default/Cell/fields/Relationship/index.js +0 -121
- package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts +0 -2
- package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/Richtext/index.js +0 -3
- package/dist/pages/List/Default/Cell/fields/Textarea/index.js +0 -23
- package/dist/pages/List/Default/Cell/fields/index.d.ts +0 -17
- package/dist/pages/List/Default/Cell/fields/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/fields/index.js +0 -36
- package/dist/pages/List/Default/Cell/index.d.ts.map +0 -1
- package/dist/pages/List/Default/Cell/index.js +0 -89
- package/dist/pages/List/Default/RelationshipProvider/index.js +0 -153
- package/dist/pages/List/Default/RelationshipProvider/reducer.js +0 -55
- package/dist/pages/List/Default/index.d.ts.map +0 -1
- package/dist/pages/List/Default/index.js +0 -174
- package/dist/pages/List/Default/types.js +0 -6
- package/dist/pages/List/index.d.ts +0 -18
- package/dist/pages/List/index.d.ts.map +0 -1
- package/dist/pages/List/index.js +0 -158
- package/dist/pages/LivePreview/Context/context.d.ts.map +0 -1
- package/dist/pages/LivePreview/Context/context.js +0 -58
- package/dist/pages/LivePreview/Context/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Context/index.js +0 -208
- package/dist/pages/LivePreview/Device/index.js +0 -102
- package/dist/pages/LivePreview/DeviceContainer/index.js +0 -44
- package/dist/pages/LivePreview/IFrame/index.js +0 -74
- package/dist/pages/LivePreview/Preview/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Preview/index.js +0 -127
- package/dist/pages/LivePreview/Toolbar/Controls/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Toolbar/Controls/index.js +0 -96
- package/dist/pages/LivePreview/Toolbar/SizeInput/index.js +0 -112
- package/dist/pages/LivePreview/Toolbar/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/Toolbar/index.js +0 -65
- package/dist/pages/LivePreview/ToolbarArea/index.js +0 -32
- package/dist/pages/LivePreview/index.client.d.ts.map +0 -1
- package/dist/pages/LivePreview/index.client.js +0 -195
- package/dist/pages/LivePreview/index.d.ts +0 -5
- package/dist/pages/LivePreview/index.d.ts.map +0 -1
- package/dist/pages/LivePreview/index.js +0 -59
- package/dist/pages/LivePreview/meta.d.ts.map +0 -1
- package/dist/pages/LivePreview/meta.js +0 -36
- package/dist/pages/Login/LoginForm/index.js +0 -67
- package/dist/pages/Login/index.d.ts +0 -14
- package/dist/pages/Login/index.d.ts.map +0 -1
- package/dist/pages/Login/index.js +0 -108
- package/dist/pages/Login/index.scss +0 -38
- package/dist/pages/Logout/LogoutClient.d.ts.map +0 -1
- package/dist/pages/Logout/LogoutClient.js +0 -88
- package/dist/pages/Logout/index.d.ts +0 -16
- package/dist/pages/Logout/index.d.ts.map +0 -1
- package/dist/pages/Logout/index.js +0 -61
- package/dist/pages/NotFound/index.d.ts +0 -7
- package/dist/pages/NotFound/index.d.ts.map +0 -1
- package/dist/pages/NotFound/index.js +0 -48
- package/dist/pages/ResetPassword/index.d.ts +0 -12
- package/dist/pages/ResetPassword/index.d.ts.map +0 -1
- package/dist/pages/ResetPassword/index.js +0 -99
- package/dist/pages/Root/index.d.ts +0 -5
- package/dist/pages/Root/index.d.ts.map +0 -1
- package/dist/pages/Root/index.js +0 -17
- package/dist/pages/Unauthorized/UnauthorizedClient.d.ts.map +0 -1
- package/dist/pages/Unauthorized/UnauthorizedClient.js +0 -27
- package/dist/pages/Unauthorized/index.d.ts +0 -10
- package/dist/pages/Unauthorized/index.d.ts.map +0 -1
- package/dist/pages/Unauthorized/index.js +0 -51
- package/dist/pages/Verify/index.d.ts +0 -13
- package/dist/pages/Verify/index.d.ts.map +0 -1
- package/dist/pages/Verify/index.js +0 -90
- package/dist/pages/Version/Default/index.d.ts.map +0 -1
- package/dist/pages/Version/Default/index.js +0 -157
- package/dist/pages/Version/Default/types.d.ts.map +0 -1
- package/dist/pages/Version/Default/types.js +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/Label/index.js +0 -24
- package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -80
- package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.js +0 -44
- package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -89
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +0 -72
- package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.js +0 -54
- package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -54
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +0 -72
- package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.js +0 -46
- package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts +0 -25
- package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
- package/dist/pages/Version/RenderFieldsToDiff/fields/index.js +0 -44
- package/dist/pages/Version/RenderFieldsToDiff/fields/types.js +0 -6
- package/dist/pages/Version/RenderFieldsToDiff/index.js +0 -115
- package/dist/pages/Version/RenderFieldsToDiff/types.js +0 -6
- package/dist/pages/Version/Restore/index.d.ts.map +0 -1
- package/dist/pages/Version/Restore/index.js +0 -121
- package/dist/pages/Version/Restore/types.js +0 -6
- package/dist/pages/Version/SelectComparison/index.d.ts.map +0 -1
- package/dist/pages/Version/SelectComparison/index.js +0 -167
- package/dist/pages/Version/SelectComparison/types.js +0 -6
- package/dist/pages/Version/SelectLocales/index.d.ts.map +0 -1
- package/dist/pages/Version/SelectLocales/index.js +0 -47
- package/dist/pages/Version/SelectLocales/types.js +0 -6
- package/dist/pages/Version/index.d.ts +0 -4
- package/dist/pages/Version/index.d.ts.map +0 -1
- package/dist/pages/Version/index.js +0 -111
- package/dist/pages/Version/meta.d.ts.map +0 -1
- package/dist/pages/Version/meta.js +0 -47
- package/dist/pages/Version/shared.js +0 -28
- package/dist/pages/Versions/buildColumns.js +0 -69
- package/dist/pages/Versions/cells/AutosaveCell/index.js +0 -63
- package/dist/pages/Versions/cells/CreatedAt/index.js +0 -33
- package/dist/pages/Versions/cells/ID/index.js +0 -60
- package/dist/pages/Versions/index.client.d.ts.map +0 -1
- package/dist/pages/Versions/index.client.js +0 -142
- package/dist/pages/Versions/index.d.ts.map +0 -1
- package/dist/pages/Versions/index.js +0 -125
- package/dist/pages/Versions/meta.d.ts +0 -3
- package/dist/pages/Versions/meta.d.ts.map +0 -1
- package/dist/pages/Versions/meta.js +0 -43
- package/dist/pages/Versions/types.js +0 -6
- package/dist/routes/rest/[collection]/file/[filename]/route.d.ts +0 -8
- package/dist/routes/rest/[collection]/file/[filename]/route.d.ts.map +0 -1
- package/dist/routes/rest/[collection]/file/[filename]/route.js +0 -116
- package/dist/utilities/createClientConfig.d.ts +0 -5
- package/dist/utilities/createClientConfig.d.ts.map +0 -1
- package/dist/utilities/createClientConfig.js +0 -120
- /package/dist/{pages → views}/API/RenderJSON/index.d.ts +0 -0
- /package/dist/{pages → views}/API/RenderJSON/index.scss +0 -0
- /package/dist/{pages → views}/API/index.scss +0 -0
- /package/dist/{pages → views}/Account/Settings/index.d.ts +0 -0
- /package/dist/{pages → views}/Account/Settings/index.scss +0 -0
- /package/dist/{pages → views}/Account/ToggleTheme/index.d.ts +0 -0
- /package/dist/{pages → views}/CreateFirstUser/index.scss +0 -0
- /package/dist/{pages → views}/Dashboard/Default/index.scss +0 -0
- /package/dist/{pages → views}/Edit/Default/Auth/APIKey.d.ts +0 -0
- /package/dist/{pages → views}/Edit/Default/Auth/index.scss +0 -0
- /package/dist/{pages → views}/Edit/Default/Auth/types.d.ts +0 -0
- /package/dist/{pages → views}/Edit/Default/index.d.ts +0 -0
- /package/dist/{pages → views}/Edit/Default/index.scss +0 -0
- /package/dist/{pages → views}/Edit/Default/types.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Array/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Blocks/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Checkbox/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Checkbox/index.scss +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Code/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Code/index.scss +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Date/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/File/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/File/index.scss +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/JSON/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/JSON/index.scss +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Relationship/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Relationship/index.scss +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Select/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/fields/Textarea/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/Cell/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/RelationshipProvider/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/index.d.ts +0 -0
- /package/dist/{pages → views}/List/Default/index.scss +0 -0
- /package/dist/{pages → views}/List/Default/types.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Context/collisionDetection.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Context/sizeReducer.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Device/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/DeviceContainer/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/IFrame/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/IFrame/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Preview/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/Controls/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/Toolbar/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/ToolbarArea/index.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/ToolbarArea/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/index.client.d.ts +0 -0
- /package/dist/{pages → views}/LivePreview/index.scss +0 -0
- /package/dist/{pages → views}/LivePreview/usePopupWindow.d.ts +0 -0
- /package/dist/{pages → views}/Login/LoginForm/index.d.ts +0 -0
- /package/dist/{pages → views}/Login/LoginForm/index.scss +0 -0
- /package/dist/{pages → views}/Logout/LogoutClient.d.ts +0 -0
- /package/dist/{pages → views}/Logout/index.scss +0 -0
- /package/dist/{pages → views}/NotFound/index.scss +0 -0
- /package/dist/{pages → views}/ResetPassword/index.scss +0 -0
- /package/dist/{pages → views}/Unauthorized/UnauthorizedClient.d.ts +0 -0
- /package/dist/{pages → views}/Verify/index.scss +0 -0
- /package/dist/{pages → views}/Version/Default/SetStepNav.d.ts +0 -0
- /package/dist/{pages → views}/Version/Default/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Relationship/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.scss +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/types.d.ts +0 -0
- /package/dist/{pages → views}/Version/RenderFieldsToDiff/index.scss +0 -0
- /package/dist/{pages → views}/Version/Restore/index.scss +0 -0
- /package/dist/{pages → views}/Version/Restore/types.d.ts +0 -0
- /package/dist/{pages → views}/Version/SelectComparison/index.scss +0 -0
- /package/dist/{pages → views}/Version/SelectLocales/index.scss +0 -0
- /package/dist/{pages → views}/Version/SelectLocales/types.d.ts +0 -0
- /package/dist/{pages → views}/Version/shared.d.ts +0 -0
- /package/dist/{pages → views}/Versions/buildColumns.d.ts +0 -0
- /package/dist/{pages → views}/Versions/cells/AutosaveCell/index.d.ts +0 -0
- /package/dist/{pages → views}/Versions/cells/CreatedAt/index.d.ts +0 -0
- /package/dist/{pages → views}/Versions/cells/ID/index.d.ts +0 -0
- /package/dist/{pages → views}/Versions/index.scss +0 -0
- /package/dist/{pages → views}/Versions/types.d.ts +0 -0
|
@@ -1,35 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return login;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _auth = require("payload/auth");
|
|
13
|
-
const _operations = require("payload/operations");
|
|
14
|
-
const _utilities = require("payload/utilities");
|
|
15
|
-
function _interop_require_default(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : {
|
|
17
|
-
default: obj
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const login = async ({ collection, req })=>{
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { generatePayloadCookie } from 'payload/auth';
|
|
3
|
+
import { loginOperation } from 'payload/operations';
|
|
4
|
+
import { isNumber } from 'payload/utilities';
|
|
5
|
+
export const login = async ({ collection, req })=>{
|
|
21
6
|
const { searchParams } = req;
|
|
22
7
|
const depth = searchParams.get('depth');
|
|
23
|
-
const result = await
|
|
8
|
+
const result = await loginOperation({
|
|
24
9
|
collection,
|
|
25
10
|
data: {
|
|
26
11
|
email: typeof req.data?.email === 'string' ? req.data.email : '',
|
|
27
12
|
password: typeof req.data?.password === 'string' ? req.data.password : ''
|
|
28
13
|
},
|
|
29
|
-
depth:
|
|
14
|
+
depth: isNumber(depth) ? Number(depth) : undefined,
|
|
30
15
|
req
|
|
31
16
|
});
|
|
32
|
-
const cookie =
|
|
17
|
+
const cookie = generatePayloadCookie({
|
|
33
18
|
collectionConfig: collection.config,
|
|
34
19
|
payload: req.payload,
|
|
35
20
|
token: result.token
|
|
@@ -45,8 +30,8 @@ const login = async ({ collection, req })=>{
|
|
|
45
30
|
headers: new Headers({
|
|
46
31
|
'Set-Cookie': cookie
|
|
47
32
|
}),
|
|
48
|
-
status:
|
|
33
|
+
status: httpStatus.OK
|
|
49
34
|
});
|
|
50
35
|
};
|
|
51
36
|
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL2xvZ2luLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBodHRwU3RhdHVzIGZyb20gJ2h0dHAtc3RhdHVzJ1xuaW1wb3J0IHsgZ2VuZXJhdGVQYXlsb2FkQ29va2llIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgbG9naW5PcGVyYXRpb24gfSBmcm9tICdwYXlsb2FkL29wZXJhdGlvbnMnXG5pbXBvcnQgeyBpc051bWJlciB9IGZyb20gJ3BheWxvYWQvdXRpbGl0aWVzJ1xuXG5pbXBvcnQgdHlwZSB7IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgfSBmcm9tICcuLi90eXBlcy5qcydcblxuZXhwb3J0IGNvbnN0IGxvZ2luOiBDb2xsZWN0aW9uUm91dGVIYW5kbGVyID0gYXN5bmMgKHsgY29sbGVjdGlvbiwgcmVxIH0pID0+IHtcbiAgY29uc3QgeyBzZWFyY2hQYXJhbXMgfSA9IHJlcVxuICBjb25zdCBkZXB0aCA9IHNlYXJjaFBhcmFtcy5nZXQoJ2RlcHRoJylcblxuICBjb25zdCByZXN1bHQgPSBhd2FpdCBsb2dpbk9wZXJhdGlvbih7XG4gICAgY29sbGVjdGlvbixcbiAgICBkYXRhOiB7XG4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BQU87UUFDcEJDLE9BQU9WLE9BQU9VLEtBQUs7SUFDckI7SUFFQSxJQUFJZixXQUFXYSxNQUFNLENBQUNHLElBQUksQ0FBQ0Msd0JBQXdCLEVBQUU7UUFDbkQsT0FBT1osT0FBT1UsS0FBSztJQUNyQjtJQUVBLE9BQU9HLFNBQVNDLElBQUksQ0FDbEI7UUFDRSxrQkFBa0I7UUFDbEJDLFNBQVM7UUFDVCxHQUFHZixNQUFNO0lBQ1gsR0FDQTtRQUNFZ0IsU0FBUyxJQUFJQyxRQUFRO1lBQ25CLGNBQWNYO1FBQ2hCO1FBQ0FZLFFBQVE1QixXQUFXNkIsRUFBRTtJQUN2QjtBQUVKLEVBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/logout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/logout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,MAAM,EAAE,sBAkCpB,CAAA"}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return logout;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _auth = require("payload/auth");
|
|
13
|
-
const _operations = require("payload/operations");
|
|
14
|
-
function _interop_require_default(obj) {
|
|
15
|
-
return obj && obj.__esModule ? obj : {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const logout = async ({ collection, req })=>{
|
|
20
|
-
const result = (0, _operations.logoutOperation)({
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { generateExpiredPayloadCookie } from 'payload/auth';
|
|
3
|
+
import { logoutOperation } from 'payload/operations';
|
|
4
|
+
export const logout = async ({ collection, req })=>{
|
|
5
|
+
const result = logoutOperation({
|
|
21
6
|
collection,
|
|
22
7
|
req
|
|
23
8
|
});
|
|
@@ -25,10 +10,10 @@ const logout = async ({ collection, req })=>{
|
|
|
25
10
|
return Response.json({
|
|
26
11
|
message: 'Logout failed.'
|
|
27
12
|
}, {
|
|
28
|
-
status:
|
|
13
|
+
status: httpStatus.BAD_REQUEST
|
|
29
14
|
});
|
|
30
15
|
}
|
|
31
|
-
const expiredCookie =
|
|
16
|
+
const expiredCookie = generateExpiredPayloadCookie({
|
|
32
17
|
collectionConfig: collection.config,
|
|
33
18
|
payload: req.payload
|
|
34
19
|
});
|
|
@@ -39,8 +24,8 @@ const logout = async ({ collection, req })=>{
|
|
|
39
24
|
headers: new Headers({
|
|
40
25
|
'Set-Cookie': expiredCookie
|
|
41
26
|
}),
|
|
42
|
-
status:
|
|
27
|
+
status: httpStatus.OK
|
|
43
28
|
});
|
|
44
29
|
};
|
|
45
30
|
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL2xvZ291dC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgaHR0cFN0YXR1cyBmcm9tICdodHRwLXN0YXR1cydcbmltcG9ydCB7IGdlbmVyYXRlRXhwaXJlZFBheWxvYWRDb29raWUgfSBmcm9tICdwYXlsb2FkL2F1dGgnXG5pbXBvcnQgeyBsb2dvdXRPcGVyYXRpb24gfSBmcm9tICdwYXlsb2FkL29wZXJhdGlvbnMnXG5cbmltcG9ydCB0eXBlIHsgQ29sbGVjdGl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3,"file":"me.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/me.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,EAAE,EAAE,sBAsBhB,CAAA"}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
get: function() {
|
|
8
|
-
return me;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _auth = require("payload/auth");
|
|
13
|
-
const _operations = require("payload/operations");
|
|
14
|
-
function _interop_require_default(obj) {
|
|
15
|
-
return obj && obj.__esModule ? obj : {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const me = async ({ collection, req })=>{
|
|
20
|
-
const currentToken = (0, _auth.extractJWT)(req);
|
|
21
|
-
const result = await (0, _operations.meOperation)({
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { extractJWT } from 'payload/auth';
|
|
3
|
+
import { meOperation } from 'payload/operations';
|
|
4
|
+
export const me = async ({ collection, req })=>{
|
|
5
|
+
const currentToken = extractJWT(req);
|
|
6
|
+
const result = await meOperation({
|
|
22
7
|
collection,
|
|
23
8
|
currentToken,
|
|
24
9
|
req
|
|
@@ -30,8 +15,8 @@ const me = async ({ collection, req })=>{
|
|
|
30
15
|
...result,
|
|
31
16
|
message: req.t('authentication:account')
|
|
32
17
|
}, {
|
|
33
|
-
status:
|
|
18
|
+
status: httpStatus.OK
|
|
34
19
|
});
|
|
35
20
|
};
|
|
36
21
|
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb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uRnJvbVJlc3BvbnNlcyIsInRva2VuIiwiUmVzcG9uc2UiLCJqc29uIiwibWVzc2FnZSIsInQiLCJzdGF0dXMiLCJPSyJdLCJtYXBwaW5ncyI6IkFBQUEsT0FBT0EsZ0JBQWdCLGNBQWE7QUFDcEMsU0FBU0MsVUFBVSxRQUFRLGVBQWM7QUFDekMsU0FBU0MsV0FBVyxRQUFRLHFCQUFvQjtBQUloRCxPQUFPLE1BQU1DLEtBQTZCLE9BQU8sRUFBRUMsVUFBVSxFQUFFQyxHQUFHLEVBQUU7SUFDbEUsTUFBTUMsZUFBZUwsV0FBV0k7SUFFaEMsTUFBTUUsU0FBUyxNQUFNTCxZQUFZO1FBQy9CRTtRQUNBRTtRQUNBRDtJQUNGO0lBRUEsSUFBSUQsV0FBV0ksTUFBTSxDQUFDQyxJQUFJLENBQUNDLHdCQUF3QixFQUFFO1FBQ25ELE9BQU9ILE9BQU9JLEtBQUs7SUFDckI7SUFFQSxPQUFPQyxTQUFTQyxJQUFJLENBQ2xCO1FBQ0UsR0FBR04sTUFBTTtRQUNUTyxTQUFTVCxJQUFJVSxDQUFDLENBQUM7SUFDakIsR0FDQTtRQUNFQyxRQUFRaEIsV0FBV2lCLEVBQUU7SUFDdkI7QUFFSixFQUFDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/refresh.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/refresh.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,OAAO,EAAE,sBA4CrB,CAAA"}
|
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
get: function() {
|
|
8
|
-
return refresh;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _auth = require("payload/auth");
|
|
13
|
-
const _operations = require("payload/operations");
|
|
14
|
-
function _interop_require_default(obj) {
|
|
15
|
-
return obj && obj.__esModule ? obj : {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const refresh = async ({ collection, req })=>{
|
|
20
|
-
const token = typeof req.data?.token === 'string' ? req.data.token : (0, _auth.extractJWT)(req);
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { extractJWT } from 'payload/auth';
|
|
3
|
+
import { generatePayloadCookie } from 'payload/auth';
|
|
4
|
+
import { refreshOperation } from 'payload/operations';
|
|
5
|
+
export const refresh = async ({ collection, req })=>{
|
|
6
|
+
const token = typeof req.data?.token === 'string' ? req.data.token : extractJWT(req);
|
|
21
7
|
if (!token) {
|
|
22
8
|
return Response.json({
|
|
23
9
|
// TODO(translate)
|
|
24
10
|
message: 'Token not provided.'
|
|
25
11
|
}, {
|
|
26
|
-
status:
|
|
12
|
+
status: httpStatus.UNAUTHORIZED
|
|
27
13
|
});
|
|
28
14
|
}
|
|
29
|
-
const result = await
|
|
15
|
+
const result = await refreshOperation({
|
|
30
16
|
collection,
|
|
31
17
|
req,
|
|
32
18
|
token
|
|
33
19
|
});
|
|
34
|
-
const cookie =
|
|
20
|
+
const cookie = generatePayloadCookie({
|
|
35
21
|
collectionConfig: collection.config,
|
|
36
22
|
payload: req.payload,
|
|
37
23
|
token: result.refreshedToken
|
|
@@ -47,8 +33,8 @@ const refresh = async ({ collection, req })=>{
|
|
|
47
33
|
headers: new Headers({
|
|
48
34
|
'Set-Cookie': cookie
|
|
49
35
|
}),
|
|
50
|
-
status:
|
|
36
|
+
status: httpStatus.OK
|
|
51
37
|
});
|
|
52
38
|
};
|
|
53
39
|
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3JlZnJlc2gudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGh0dHBTdGF0dXMgZnJvbSAnaHR0cC1zdGF0dXMnXG5pbXBvcnQgeyBleHRyYWN0SldUIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgZ2VuZXJhdGVQYXlsb2FkQ29va2llIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgcmVmcmVzaE9wZXJhdGlvbiB9IGZyb20gJ3BheWxvYWQvb3BlcmF0aW9ucydcblxuaW1wb3J0IHR5cGUgeyBDb2xsZWN0aW9uUm91dGVIYW5kbGVyIH0gZnJvbSAnLi4vdHlwZXMuanMnXG5cbmV4cG9ydCBjb25zdCByZWZyZXNoOiBDb2xsZWN0aW9uUm91dGVIYW5kbGVyID0gYXN5bmMgKHsgY29sbGVjdGlvbiwgcmVxIH0pID0+IHtcbiAgY29uc3QgdG9rZW4gPSB0eXBlb2YgcmVxLmRhdGE/LnRva2VuID09PSAnc3RyaW5nJyA/IHJlcS5kYXRhLnRva2VuIDogZXh0cmFjdEpXVChyZXEpXG5cbiAgaWYgKCF0b2tlbikge1xuICAgIHJldHVybiBSZXNwb25zZS5qc29uKFxuICAgICAge1xuICAgICAgICAvLyBUT0RPKHRyYW5zbGF0ZSlcbiAgICAgICAgbWVzc2FnZTogJ1Rva2VuIG5vdCBwcm92aWRlZC4nLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgc3RhdHVzOiBodHRwU3RhdHVzLlVOQVVUSE9SSVpFRCxcbiAgICAgIH0sXG4gICAgKVxuICB9XG5cbiAgY29uc3QgcmVzdWx0ID0gYXdhaXQgcmVmcmVzaE9wZXJh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NSO1FBQ2hCO1FBQ0FILFFBQVFaLFdBQVd3QixFQUFFO0lBQ3ZCO0FBRUosRUFBQyJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,iBAAiB,EAAE,sBA+B/B,CAAA"}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return registerFirstUser;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _auth = require("payload/auth");
|
|
13
|
-
const _operations = require("payload/operations");
|
|
14
|
-
function _interop_require_default(obj) {
|
|
15
|
-
return obj && obj.__esModule ? obj : {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const registerFirstUser = async ({ collection, req })=>{
|
|
20
|
-
const result = await (0, _operations.registerFirstUserOperation)({
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { generatePayloadCookie } from 'payload/auth';
|
|
3
|
+
import { registerFirstUserOperation } from 'payload/operations';
|
|
4
|
+
export const registerFirstUser = async ({ collection, req })=>{
|
|
5
|
+
const result = await registerFirstUserOperation({
|
|
21
6
|
collection,
|
|
22
7
|
data: {
|
|
23
8
|
email: typeof req.data?.email === 'string' ? req.data.email : '',
|
|
@@ -25,7 +10,7 @@ const registerFirstUser = async ({ collection, req })=>{
|
|
|
25
10
|
},
|
|
26
11
|
req
|
|
27
12
|
});
|
|
28
|
-
const cookie =
|
|
13
|
+
const cookie = generatePayloadCookie({
|
|
29
14
|
collectionConfig: collection.config,
|
|
30
15
|
payload: req.payload,
|
|
31
16
|
token: result.token
|
|
@@ -40,8 +25,8 @@ const registerFirstUser = async ({ collection, req })=>{
|
|
|
40
25
|
headers: new Headers({
|
|
41
26
|
'Set-Cookie': cookie
|
|
42
27
|
}),
|
|
43
|
-
status:
|
|
28
|
+
status: httpStatus.OK
|
|
44
29
|
});
|
|
45
30
|
};
|
|
46
31
|
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3JlZ2lzdGVyRmlyc3RVc2VyLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBodHRwU3RhdHVzIGZyb20gJ2h0dHAtc3RhdHVzJ1xuaW1wb3J0IHsgZ2VuZXJhdGVQYXlsb2FkQ29va2llIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgcmVnaXN0ZXJGaXJzdFVzZXJPcGVyYXRpb24gfSBmcm9tICdwYXlsb2FkL29wZXJhdGlvbnMnXG5cbmltcG9ydCB0eXBlIHsgQ29sbGVjdGlvblJvdXRlSGFuZGxlciB9IGZyb20gJy4uL3R5cGVzLmpzJ1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXJGaXJzdFVzZXI6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgPSBhc3luYyAoeyBjb2xsZWN0aW9uLCByZXEgfSkgPT4ge1xuICBjb25zdCByZXN1bHQgPSBhd2FpdCByZWdpc3RlckZpcnN0VXNlck9wZXJhdGlvbih7XG4gICAgY29sbGVjdGlvbixcbiAgICBkYXRhOiB7XG4gICAg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UMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resetPassword.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"resetPassword.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,aAAa,EAAE,sBAqC3B,CAAA"}
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
})
|
|
5
|
-
Object.defineProperty(exports, "resetPassword", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return resetPassword;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _auth = require("payload/auth");
|
|
13
|
-
const _operations = require("payload/operations");
|
|
14
|
-
function _interop_require_default(obj) {
|
|
15
|
-
return obj && obj.__esModule ? obj : {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const resetPassword = async ({ collection, req })=>{
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { generatePayloadCookie } from 'payload/auth';
|
|
3
|
+
import { resetPasswordOperation } from 'payload/operations';
|
|
4
|
+
export const resetPassword = async ({ collection, req })=>{
|
|
20
5
|
const { searchParams } = req;
|
|
21
6
|
const depth = searchParams.get('depth');
|
|
22
|
-
const result = await
|
|
7
|
+
const result = await resetPasswordOperation({
|
|
23
8
|
collection,
|
|
24
9
|
data: {
|
|
25
10
|
password: typeof req.data?.password === 'string' ? req.data.password : '',
|
|
@@ -28,7 +13,7 @@ const resetPassword = async ({ collection, req })=>{
|
|
|
28
13
|
depth: depth ? Number(depth) : undefined,
|
|
29
14
|
req
|
|
30
15
|
});
|
|
31
|
-
const cookie =
|
|
16
|
+
const cookie = generatePayloadCookie({
|
|
32
17
|
collectionConfig: collection.config,
|
|
33
18
|
payload: req.payload,
|
|
34
19
|
token: result.token
|
|
@@ -44,8 +29,8 @@ const resetPassword = async ({ collection, req })=>{
|
|
|
44
29
|
headers: new Headers({
|
|
45
30
|
'Set-Cookie': cookie
|
|
46
31
|
}),
|
|
47
|
-
status:
|
|
32
|
+
status: httpStatus.OK
|
|
48
33
|
});
|
|
49
34
|
};
|
|
50
35
|
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3Jlc2V0UGFzc3dvcmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGh0dHBTdGF0dXMgZnJvbSAnaHR0cC1zdGF0dXMnXG5pbXBvcnQgeyBnZW5lcmF0ZVBheWxvYWRDb29raWUgfSBmcm9tICdwYXlsb2FkL2F1dGgnXG5pbXBvcnQgeyByZXNldFBhc3N3b3JkT3BlcmF0aW9uIH0gZnJvbSAncGF5bG9hZC9vcGVyYXRpb25zJ1xuXG5pbXBvcnQgdHlwZSB7IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgfSBmcm9tICcuLi90eXBlcy5qcydcblxuZXhwb3J0IGNvbnN0IHJlc2V0UGFzc3dvcmQ6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgPSBhc3luYyAoeyBjb2xsZWN0aW9uLCByZXEgfSkgPT4ge1xuICBjb25zdCB7IHNlYXJjaFBhcmFtcyB9ID0gcmVxXG4gIGNvbnN0IGRlcHRoID0gc2VhcmNoUGFyYW1zLmdldCgnZGVwdGgnKVxuXG4gIGNvbnN0IHJlc3VsdCA9IGF3YWl0IHJlc2V0UGF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Q25DQyxTQUFTYixJQUFJYSxPQUFPO1FBQ3BCTixPQUFPSCxPQUFPRyxLQUFLO0lBQ3JCO0lBRUEsSUFBSVIsV0FBV2EsTUFBTSxDQUFDRSxJQUFJLENBQUNDLHdCQUF3QixFQUFFO1FBQ25ELE9BQU9YLE9BQU9HLEtBQUs7SUFDckI7SUFFQSxPQUFPUyxTQUFTQyxJQUFJLENBQ2xCO1FBQ0Usa0JBQWtCO1FBQ2xCQyxTQUFTO1FBQ1QsR0FBR2QsTUFBTTtJQUNYLEdBQ0E7UUFDRWUsU0FBUyxJQUFJQyxRQUFRO1lBQ25CLGNBQWNWO1FBQ2hCO1FBQ0FXLFFBQVExQixXQUFXMkIsRUFBRTtJQUN2QjtBQUVKLEVBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unlock.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/unlock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"unlock.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/unlock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,MAAM,EAAE,sBAgBpB,CAAA"}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "unlock", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return unlock;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _operations = require("payload/operations");
|
|
13
|
-
function _interop_require_default(obj) {
|
|
14
|
-
return obj && obj.__esModule ? obj : {
|
|
15
|
-
default: obj
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const unlock = async ({ collection, req })=>{
|
|
19
|
-
await (0, _operations.unlockOperation)({
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { unlockOperation } from 'payload/operations';
|
|
3
|
+
export const unlock = async ({ collection, req })=>{
|
|
4
|
+
await unlockOperation({
|
|
20
5
|
collection,
|
|
21
6
|
data: {
|
|
22
7
|
email: req.data.email
|
|
@@ -27,8 +12,8 @@ const unlock = async ({ collection, req })=>{
|
|
|
27
12
|
// TODO(translate)
|
|
28
13
|
message: 'Success'
|
|
29
14
|
}, {
|
|
30
|
-
status:
|
|
15
|
+
status: httpStatus.OK
|
|
31
16
|
});
|
|
32
17
|
};
|
|
33
18
|
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3VubG9jay50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgaHR0cFN0YXR1cyBmcm9tICdodHRwLXN0YXR1cydcbmltcG9ydCB7IHVubG9ja09wZXJhdGlvbiB9IGZyb20gJ3BheWxvYWQvb3BlcmF0aW9ucydcblxuaW1wb3J0IHR5cGUgeyBDb2xsZWN0aW9uUm91dGVIYW5kbGVyIH0gZnJvbSAnLi4vdHlwZXMuanMnXG5cbmV4cG9ydCBjb25zdCB1bmxvY2s6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgPSBhc3luYyAoeyBjb2xsZWN0aW9uLCByZXEgfSkgPT4ge1xuICBhd2FpdCB1bmxvY2tPcGVyYXRpb24oe1xuICAgIGNvbGxlY3Rpb24sXG4gICAgZGF0YTogeyBlbWFpbDogcmVxLmRhdGEuZW1haWwgYXMgc3RyaW5nIH0sXG4gICAgcmVxLFxuICB9KVxuXG4gIHJldHVybiBSZXNwb25zZS5qc29uKFxuICAgIHtcbiAgICAgIC8vIFRPRE8odHJhbnNsYXRlKVxuICAgICAgbWVzc2FnZTogJ1N1Y2Nlc3MnLFxuICAgIH0sXG4gICAge1xuICAgICAgc3RhdHVzOiBodHRwU3RhdHVzLk9LLFxuICAgIH0sXG4gIClcbn1cbiJdLCJuYW1lcyI6WyJodHRwU3RhdHVzIiwidW5sb2NrT3BlcmF0aW9uIiwidW5sb2NrIiwiY29sbGVjdGlvbiIsInJlcSIsImRhdGEiLCJlbWFpbCIsIlJlc3BvbnNlIiwianNvbiIsIm1lc3NhZ2UiLCJzdGF0dXMiLCJPSyJdLCJtYXBwaW5ncyI6IkFBQUEsT0FBT0EsZ0JBQWdCLGNBQWE7QUFDcEMsU0FBU0MsZUFBZSxRQUFRLHFCQUFvQjtBQUlwRCxPQUFPLE1BQU1DLFNBQWlDLE9BQU8sRUFBRUMsVUFBVSxFQUFFQyxHQUFHLEVBQUU7SUFDdEUsTUFBTUgsZ0JBQWdCO1FBQ3BCRTtRQUNBRSxNQUFNO1lBQUVDLE9BQU9GLElBQUlDLElBQUksQ0FBQ0MsS0FBSztRQUFXO1FBQ3hDRjtJQUNGO0lBRUEsT0FBT0csU0FBU0MsSUFBSSxDQUNsQjtRQUNFLGtCQUFrQjtRQUNsQkMsU0FBUztJQUNYLEdBQ0E7UUFDRUMsUUFBUVYsV0FBV1csRUFBRTtJQUN2QjtBQUVKLEVBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyEmail.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/verifyEmail.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"verifyEmail.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/verifyEmail.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAE/D,eAAO,MAAM,WAAW,EAAE,4BAgBzB,CAAA"}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "verifyEmail", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return verifyEmail;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
|
|
12
|
-
const _operations = require("payload/operations");
|
|
13
|
-
function _interop_require_default(obj) {
|
|
14
|
-
return obj && obj.__esModule ? obj : {
|
|
15
|
-
default: obj
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const verifyEmail = async ({ id, collection, req })=>{
|
|
19
|
-
await (0, _operations.verifyEmailOperation)({
|
|
1
|
+
import httpStatus from 'http-status';
|
|
2
|
+
import { verifyEmailOperation } from 'payload/operations';
|
|
3
|
+
export const verifyEmail = async ({ id, collection, req })=>{
|
|
4
|
+
await verifyEmailOperation({
|
|
20
5
|
collection,
|
|
21
6
|
req,
|
|
22
7
|
token: id
|
|
@@ -25,8 +10,8 @@ const verifyEmail = async ({ id, collection, req })=>{
|
|
|
25
10
|
// TODO(translate)
|
|
26
11
|
message: 'Email verified successfully.'
|
|
27
12
|
}, {
|
|
28
|
-
status:
|
|
13
|
+
status: httpStatus.OK
|
|
29
14
|
});
|
|
30
15
|
};
|
|
31
16
|
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3ZlcmlmeUVtYWlsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBodHRwU3RhdHVzIGZyb20gJ2h0dHAtc3RhdHVzJ1xuaW1wb3J0IHsgdmVyaWZ5RW1haWxPcGVyYXRpb24gfSBmcm9tICdwYXlsb2FkL29wZXJhdGlvbnMnXG5cbmltcG9ydCB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