@contember/react-client-tenant 2.1.0-beta.2 → 2.2.0-alpha.2
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/development/index.cjs +18 -0
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +19 -1
- package/dist/development/index.js.map +1 -1
- package/dist/development/src/components/IdentityProvider.cjs.map +1 -1
- package/dist/development/src/components/IdentityProvider.js.map +1 -1
- package/dist/development/src/components/IdentityState.cjs.map +1 -1
- package/dist/development/src/components/IdentityState.js.map +1 -1
- package/dist/development/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -1
- package/dist/development/src/components/forms/ChangeMyPasswordForm.js.map +1 -1
- package/dist/development/src/components/forms/ConfirmEmailChangeForm.cjs +52 -0
- package/dist/development/src/components/forms/ConfirmEmailChangeForm.cjs.map +1 -0
- package/dist/development/src/components/forms/ConfirmEmailChangeForm.js +52 -0
- package/dist/development/src/components/forms/ConfirmEmailChangeForm.js.map +1 -0
- package/dist/development/src/components/forms/CreateApiKeyForm.cjs.map +1 -1
- package/dist/development/src/components/forms/CreateApiKeyForm.js.map +1 -1
- package/dist/development/src/components/forms/CreateSessionTokenForm.cjs.map +1 -1
- package/dist/development/src/components/forms/CreateSessionTokenForm.js.map +1 -1
- package/dist/development/src/components/forms/InviteForm.cjs.map +1 -1
- package/dist/development/src/components/forms/InviteForm.js.map +1 -1
- package/dist/development/src/components/forms/LoginForm.cjs +3 -1
- package/dist/development/src/components/forms/LoginForm.cjs.map +1 -1
- package/dist/development/src/components/forms/LoginForm.js +3 -1
- package/dist/development/src/components/forms/LoginForm.js.map +1 -1
- package/dist/development/src/components/forms/OtpConfirmForm.cjs.map +1 -1
- package/dist/development/src/components/forms/OtpConfirmForm.js.map +1 -1
- package/dist/development/src/components/forms/OtpPrepareForm.cjs.map +1 -1
- package/dist/development/src/components/forms/OtpPrepareForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordResetForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordResetForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordResetRequestForm.cjs +3 -1
- package/dist/development/src/components/forms/PasswordResetRequestForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordResetRequestForm.js +3 -1
- package/dist/development/src/components/forms/PasswordResetRequestForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +2 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.js +2 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs +3 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js +3 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js.map +1 -1
- package/dist/development/src/components/forms/RequestEmailVerificationForm.cjs +50 -0
- package/dist/development/src/components/forms/RequestEmailVerificationForm.cjs.map +1 -0
- package/dist/development/src/components/forms/RequestEmailVerificationForm.js +50 -0
- package/dist/development/src/components/forms/RequestEmailVerificationForm.js.map +1 -0
- package/dist/development/src/components/forms/TenantForm.cjs.map +1 -1
- package/dist/development/src/components/forms/TenantForm.js.map +1 -1
- package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -1
- package/dist/development/src/components/forms/UpdateProjectMemberForm.js.map +1 -1
- package/dist/development/src/components/forms/VerifyEmailForm.cjs +50 -0
- package/dist/development/src/components/forms/VerifyEmailForm.cjs.map +1 -0
- package/dist/development/src/components/forms/VerifyEmailForm.js +50 -0
- package/dist/development/src/components/forms/VerifyEmailForm.js.map +1 -0
- package/dist/development/src/components/idp/IDP.cjs.map +1 -1
- package/dist/development/src/components/idp/IDP.js.map +1 -1
- package/dist/development/src/components/idp/IDPInitTrigger.cjs.map +1 -1
- package/dist/development/src/components/idp/IDPInitTrigger.js.map +1 -1
- package/dist/development/src/components/idp/IDPState.cjs.map +1 -1
- package/dist/development/src/components/idp/IDPState.js.map +1 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +1 -1
- package/dist/development/src/components/triggers/LogoutTrigger.cjs +3 -3
- package/dist/development/src/components/triggers/LogoutTrigger.cjs.map +1 -1
- package/dist/development/src/components/triggers/LogoutTrigger.js +3 -3
- package/dist/development/src/components/triggers/LogoutTrigger.js.map +1 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
- package/dist/development/src/contexts.cjs.map +1 -1
- package/dist/development/src/contexts.js.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js +15 -0
- package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js +15 -0
- package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js +15 -0
- package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -1
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -1
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -1
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.js.map +1 -1
- package/dist/development/src/hooks/queries/useMeQuery.cjs.map +1 -1
- package/dist/development/src/hooks/queries/useMeQuery.js.map +1 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -1
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -1
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -1
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -1
- package/dist/development/src/hooks/useFetchIdentity.cjs.map +1 -1
- package/dist/development/src/hooks/useFetchIdentity.js.map +1 -1
- package/dist/development/src/hooks/useLogout.cjs.map +1 -1
- package/dist/development/src/hooks/useLogout.js.map +1 -1
- package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -1
- package/dist/development/src/hooks/usePasswordlessOtpActivator.js.map +1 -1
- package/dist/development/src/hooks/useTenantMutation.cjs.map +1 -1
- package/dist/development/src/hooks/useTenantMutation.js.map +1 -1
- package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -1
- package/dist/development/src/internal/hooks/useHandleIDPResponse.js.map +1 -1
- package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -1
- package/dist/development/src/internal/hooks/useInitIDPRedirect.js.map +1 -1
- package/dist/development/src/internal/hooks/useLogoutInternal.cjs +12 -7
- package/dist/development/src/internal/hooks/useLogoutInternal.cjs.map +1 -1
- package/dist/development/src/internal/hooks/useLogoutInternal.js +13 -8
- package/dist/development/src/internal/hooks/useLogoutInternal.js.map +1 -1
- package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -1
- package/dist/development/src/internal/hooks/useRedirectToBacklink.js.map +1 -1
- package/dist/production/index.cjs +18 -0
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +19 -1
- package/dist/production/index.js.map +1 -1
- package/dist/production/src/components/IdentityProvider.cjs.map +1 -1
- package/dist/production/src/components/IdentityProvider.js.map +1 -1
- package/dist/production/src/components/IdentityState.cjs.map +1 -1
- package/dist/production/src/components/IdentityState.js.map +1 -1
- package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -1
- package/dist/production/src/components/forms/ChangeMyPasswordForm.js.map +1 -1
- package/dist/production/src/components/forms/ConfirmEmailChangeForm.cjs +44 -0
- package/dist/production/src/components/forms/ConfirmEmailChangeForm.cjs.map +1 -0
- package/dist/production/src/components/forms/ConfirmEmailChangeForm.js +44 -0
- package/dist/production/src/components/forms/ConfirmEmailChangeForm.js.map +1 -0
- package/dist/production/src/components/forms/CreateApiKeyForm.cjs.map +1 -1
- package/dist/production/src/components/forms/CreateApiKeyForm.js.map +1 -1
- package/dist/production/src/components/forms/CreateSessionTokenForm.cjs.map +1 -1
- package/dist/production/src/components/forms/CreateSessionTokenForm.js.map +1 -1
- package/dist/production/src/components/forms/InviteForm.cjs.map +1 -1
- package/dist/production/src/components/forms/InviteForm.js.map +1 -1
- package/dist/production/src/components/forms/LoginForm.cjs +3 -1
- package/dist/production/src/components/forms/LoginForm.cjs.map +1 -1
- package/dist/production/src/components/forms/LoginForm.js +3 -1
- package/dist/production/src/components/forms/LoginForm.js.map +1 -1
- package/dist/production/src/components/forms/OtpConfirmForm.cjs.map +1 -1
- package/dist/production/src/components/forms/OtpConfirmForm.js.map +1 -1
- package/dist/production/src/components/forms/OtpPrepareForm.cjs.map +1 -1
- package/dist/production/src/components/forms/OtpPrepareForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordResetForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordResetForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordResetRequestForm.cjs +3 -1
- package/dist/production/src/components/forms/PasswordResetRequestForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordResetRequestForm.js +3 -1
- package/dist/production/src/components/forms/PasswordResetRequestForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +2 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.js +2 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs +3 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js +3 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js.map +1 -1
- package/dist/production/src/components/forms/RequestEmailVerificationForm.cjs +42 -0
- package/dist/production/src/components/forms/RequestEmailVerificationForm.cjs.map +1 -0
- package/dist/production/src/components/forms/RequestEmailVerificationForm.js +42 -0
- package/dist/production/src/components/forms/RequestEmailVerificationForm.js.map +1 -0
- package/dist/production/src/components/forms/TenantForm.cjs.map +1 -1
- package/dist/production/src/components/forms/TenantForm.js.map +1 -1
- package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -1
- package/dist/production/src/components/forms/UpdateProjectMemberForm.js.map +1 -1
- package/dist/production/src/components/forms/VerifyEmailForm.cjs +42 -0
- package/dist/production/src/components/forms/VerifyEmailForm.cjs.map +1 -0
- package/dist/production/src/components/forms/VerifyEmailForm.js +42 -0
- package/dist/production/src/components/forms/VerifyEmailForm.js.map +1 -0
- package/dist/production/src/components/idp/IDP.cjs.map +1 -1
- package/dist/production/src/components/idp/IDP.js.map +1 -1
- package/dist/production/src/components/idp/IDPInitTrigger.cjs.map +1 -1
- package/dist/production/src/components/idp/IDPInitTrigger.js.map +1 -1
- package/dist/production/src/components/idp/IDPState.cjs.map +1 -1
- package/dist/production/src/components/idp/IDPState.js.map +1 -1
- package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
- package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +1 -1
- package/dist/production/src/components/triggers/LogoutTrigger.cjs +2 -2
- package/dist/production/src/components/triggers/LogoutTrigger.cjs.map +1 -1
- package/dist/production/src/components/triggers/LogoutTrigger.js +2 -2
- package/dist/production/src/components/triggers/LogoutTrigger.js.map +1 -1
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
- package/dist/production/src/contexts.cjs.map +1 -1
- package/dist/production/src/contexts.js.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js +15 -0
- package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js +15 -0
- package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js +15 -0
- package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -1
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -1
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -1
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.js.map +1 -1
- package/dist/production/src/hooks/queries/useMeQuery.cjs.map +1 -1
- package/dist/production/src/hooks/queries/useMeQuery.js.map +1 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -1
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -1
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -1
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -1
- package/dist/production/src/hooks/useFetchIdentity.cjs.map +1 -1
- package/dist/production/src/hooks/useFetchIdentity.js.map +1 -1
- package/dist/production/src/hooks/useLogout.cjs.map +1 -1
- package/dist/production/src/hooks/useLogout.js.map +1 -1
- package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -1
- package/dist/production/src/hooks/usePasswordlessOtpActivator.js.map +1 -1
- package/dist/production/src/hooks/useTenantMutation.cjs.map +1 -1
- package/dist/production/src/hooks/useTenantMutation.js.map +1 -1
- package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -1
- package/dist/production/src/internal/hooks/useHandleIDPResponse.js.map +1 -1
- package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -1
- package/dist/production/src/internal/hooks/useInitIDPRedirect.js.map +1 -1
- package/dist/production/src/internal/hooks/useLogoutInternal.cjs +12 -7
- package/dist/production/src/internal/hooks/useLogoutInternal.cjs.map +1 -1
- package/dist/production/src/internal/hooks/useLogoutInternal.js +13 -8
- package/dist/production/src/internal/hooks/useLogoutInternal.js.map +1 -1
- package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -1
- package/dist/production/src/internal/hooks/useRedirectToBacklink.js.map +1 -1
- package/dist/types/components/IdentityState.d.ts +1 -1
- package/dist/types/components/IdentityState.d.ts.map +1 -1
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts +1 -1
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -1
- package/dist/types/components/forms/ConfirmEmailChangeForm.d.ts +18 -0
- package/dist/types/components/forms/ConfirmEmailChangeForm.d.ts.map +1 -0
- package/dist/types/components/forms/CreateApiKeyForm.d.ts +2 -2
- package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +1 -1
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts +2 -2
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +1 -1
- package/dist/types/components/forms/InviteForm.d.ts +2 -2
- package/dist/types/components/forms/InviteForm.d.ts.map +1 -1
- package/dist/types/components/forms/LoginForm.d.ts +1 -1
- package/dist/types/components/forms/LoginForm.d.ts.map +1 -1
- package/dist/types/components/forms/OtpConfirmForm.d.ts +1 -1
- package/dist/types/components/forms/OtpConfirmForm.d.ts.map +1 -1
- package/dist/types/components/forms/OtpPrepareForm.d.ts +2 -2
- package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordResetForm.d.ts +1 -1
- package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts +1 -1
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts +1 -1
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts +2 -2
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +1 -1
- package/dist/types/components/forms/RequestEmailVerificationForm.d.ts +17 -0
- package/dist/types/components/forms/RequestEmailVerificationForm.d.ts.map +1 -0
- package/dist/types/components/forms/TenantForm.d.ts +1 -1
- package/dist/types/components/forms/TenantForm.d.ts.map +1 -1
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts +1 -1
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -1
- package/dist/types/components/forms/VerifyEmailForm.d.ts +18 -0
- package/dist/types/components/forms/VerifyEmailForm.d.ts.map +1 -0
- package/dist/types/components/forms/index.d.ts +15 -12
- package/dist/types/components/forms/index.d.ts.map +1 -1
- package/dist/types/components/idp/IDP.d.ts +1 -1
- package/dist/types/components/idp/IDP.d.ts.map +1 -1
- package/dist/types/components/idp/IDPState.d.ts +1 -1
- package/dist/types/components/idp/IDPState.d.ts.map +1 -1
- package/dist/types/components/idp/index.d.ts +3 -3
- package/dist/types/components/idp/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +5 -5
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/triggers/LogoutTrigger.d.ts +7 -1
- package/dist/types/components/triggers/LogoutTrigger.d.ts.map +1 -1
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +1 -1
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -1
- package/dist/types/components/triggers/index.d.ts +3 -3
- package/dist/types/components/triggers/index.d.ts.map +1 -1
- package/dist/types/contexts.d.ts +1 -1
- package/dist/types/contexts.d.ts.map +1 -1
- package/dist/types/hooks/index.d.ts +8 -8
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/apiKey/index.d.ts +4 -4
- package/dist/types/hooks/mutations/apiKey/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts +4 -2
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts +4 -2
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts +4 -2
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/auth/index.d.ts +3 -3
- package/dist/types/hooks/mutations/auth/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts +12 -2
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts +4 -2
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/emailVerification/index.d.ts +4 -0
- package/dist/types/hooks/mutations/emailVerification/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailVerification/useVerifyEmailMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/emailVerification/useVerifyEmailMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/index.d.ts +2 -2
- package/dist/types/hooks/mutations/idp/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts +1 -1
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts +2 -1
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/index.d.ts +10 -9
- package/dist/types/hooks/mutations/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/invite/index.d.ts +1 -1
- package/dist/types/hooks/mutations/invite/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/memberships/index.d.ts +3 -3
- package/dist/types/hooks/mutations/memberships/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/otp/index.d.ts +3 -3
- package/dist/types/hooks/mutations/otp/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts +1 -1
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/passwordReset/index.d.ts +2 -2
- package/dist/types/hooks/mutations/passwordReset/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts +4 -2
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordless/index.d.ts +5 -5
- package/dist/types/hooks/mutations/passwordless/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts +2 -2
- package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts +1 -1
- package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts +1 -1
- package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts +3 -2
- package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts +4 -2
- package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts.map +1 -1
- package/dist/types/hooks/mutations/profile/index.d.ts +2 -2
- package/dist/types/hooks/mutations/profile/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts +2 -2
- package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts.map +1 -1
- package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts +2 -2
- package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts.map +1 -1
- package/dist/types/hooks/queries/index.d.ts +4 -4
- package/dist/types/hooks/queries/index.d.ts.map +1 -1
- package/dist/types/hooks/queries/useMeQuery.d.ts +1 -1
- package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +15 -3
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts +1 -1
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +1 -1
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -1
- package/dist/types/hooks/useFetchIdentity.d.ts +1 -1
- package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -1
- package/dist/types/hooks/useLogout.d.ts +2 -1
- package/dist/types/hooks/useLogout.d.ts.map +1 -1
- package/dist/types/hooks/useTenantMutation.d.ts +1 -1
- package/dist/types/hooks/useTenantMutation.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts +1 -1
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -1
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts +1 -1
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -1
- package/dist/types/internal/hooks/useLogoutInternal.d.ts +2 -1
- package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/types/index.d.ts +5 -5
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/IdentityProvider.tsx +2 -2
- package/src/components/IdentityState.tsx +2 -2
- package/src/components/forms/ChangeMyPasswordForm.tsx +4 -4
- package/src/components/forms/ConfirmEmailChangeForm.tsx +66 -0
- package/src/components/forms/CreateApiKeyForm.tsx +4 -4
- package/src/components/forms/CreateSessionTokenForm.tsx +4 -4
- package/src/components/forms/InviteForm.tsx +4 -4
- package/src/components/forms/LoginForm.tsx +7 -5
- package/src/components/forms/OtpConfirmForm.tsx +4 -4
- package/src/components/forms/OtpPrepareForm.tsx +4 -4
- package/src/components/forms/PasswordResetForm.tsx +4 -4
- package/src/components/forms/PasswordResetRequestForm.tsx +6 -4
- package/src/components/forms/PasswordlessSignInForm.tsx +6 -5
- package/src/components/forms/PasswordlessSignInInitForm.tsx +8 -6
- package/src/components/forms/RequestEmailVerificationForm.tsx +62 -0
- package/src/components/forms/TenantForm.tsx +2 -2
- package/src/components/forms/UpdateProjectMemberForm.tsx +4 -4
- package/src/components/forms/VerifyEmailForm.tsx +64 -0
- package/src/components/forms/index.ts +15 -12
- package/src/components/idp/IDP.tsx +5 -5
- package/src/components/idp/IDPInitTrigger.tsx +1 -1
- package/src/components/idp/IDPState.tsx +2 -2
- package/src/components/idp/index.ts +3 -3
- package/src/components/index.ts +5 -5
- package/src/components/triggers/DisableOtpTrigger.tsx +3 -3
- package/src/components/triggers/LogoutTrigger.tsx +9 -3
- package/src/components/triggers/RemoveProjectMemberTrigger.tsx +2 -2
- package/src/components/triggers/index.ts +3 -3
- package/src/contexts.ts +1 -1
- package/src/hooks/index.ts +8 -8
- package/src/hooks/mutations/apiKey/index.ts +4 -4
- package/src/hooks/mutations/apiKey/useCreateApiKeyMutation.tsx +1 -1
- package/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.tsx +1 -1
- package/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.tsx +1 -1
- package/src/hooks/mutations/apiKey/useDisableApiKeyMutation.tsx +1 -1
- package/src/hooks/mutations/auth/index.ts +3 -3
- package/src/hooks/mutations/auth/useChangeMyPasswordMutation.ts +1 -1
- package/src/hooks/mutations/auth/useSignInMutation.ts +2 -2
- package/src/hooks/mutations/auth/useSignOutMutation.ts +1 -1
- package/src/hooks/mutations/emailVerification/index.ts +3 -0
- package/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.ts +17 -0
- package/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.ts +17 -0
- package/src/hooks/mutations/emailVerification/useVerifyEmailMutation.ts +17 -0
- package/src/hooks/mutations/idp/index.ts +2 -2
- package/src/hooks/mutations/idp/useInitSignInIDPMutation.ts +2 -2
- package/src/hooks/mutations/idp/useSignInIdpMutation.ts +2 -2
- package/src/hooks/mutations/index.ts +10 -9
- package/src/hooks/mutations/invite/index.ts +1 -1
- package/src/hooks/mutations/invite/useInviteMutation.tsx +1 -1
- package/src/hooks/mutations/memberships/index.ts +3 -3
- package/src/hooks/mutations/memberships/useAddProjectMemberMutation.ts +1 -1
- package/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.ts +1 -1
- package/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.ts +1 -1
- package/src/hooks/mutations/otp/index.ts +3 -3
- package/src/hooks/mutations/otp/useConfirmOtpMutation.ts +1 -1
- package/src/hooks/mutations/otp/useDisableOtpMutation.ts +1 -1
- package/src/hooks/mutations/otp/usePrepareOtpMutation.ts +1 -1
- package/src/hooks/mutations/passwordReset/index.ts +2 -2
- package/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.ts +2 -2
- package/src/hooks/mutations/passwordReset/useResetPasswordMutation.ts +2 -2
- package/src/hooks/mutations/passwordless/index.ts +5 -5
- package/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.ts +2 -2
- package/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.ts +1 -1
- package/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.ts +1 -1
- package/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.ts +2 -2
- package/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.ts +2 -2
- package/src/hooks/mutations/profile/index.ts +2 -2
- package/src/hooks/mutations/profile/useChangeMyProfile.ts +1 -1
- package/src/hooks/mutations/profile/useChangeProfile.ts +1 -1
- package/src/hooks/queries/index.ts +4 -4
- package/src/hooks/queries/useMeQuery.ts +1 -1
- package/src/hooks/queries/useProjectMembersQuery.ts +1 -1
- package/src/hooks/queries/useProjectMembershipsQuery.ts +1 -1
- package/src/hooks/queries/useProjectRolesDefinitionQuery.ts +1 -1
- package/src/hooks/useFetchIdentity.ts +3 -3
- package/src/hooks/useLogout.ts +2 -2
- package/src/hooks/usePasswordlessOtpActivator.ts +4 -4
- package/src/hooks/useTenantMutation.ts +1 -1
- package/src/index.ts +4 -4
- package/src/internal/hooks/useHandleIDPResponse.ts +5 -5
- package/src/internal/hooks/useInitIDPRedirect.ts +5 -5
- package/src/internal/hooks/useLogoutInternal.ts +18 -8
- package/src/internal/hooks/useRedirectToBacklink.ts +1 -1
- package/src/types/index.ts +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogoutInternal.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport {
|
|
1
|
+
{"version":3,"file":"useLogoutInternal.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport { signOutMutation, useTenantApi } from '../../hooks/index.js'\n\nexport const useLogoutInternal = (clearIdentity?: () => void) => {\n\tconst tenantApi = useTenantApi()\n\tconst setSessionToken = useSetSessionToken()\n\n\treturn useCallback(\n\t\tasync ({ noRedirect = false, idpLogout = false }: { noRedirect?: boolean; idpLogout?: boolean } = {}) => {\n\t\t\tif (navigator.credentials?.preventSilentAccess) {\n\t\t\t\ttry {\n\t\t\t\t\tawait navigator.credentials.preventSilentAccess()\n\t\t\t\t} catch {\n\t\t\t\t\t// actually, not implemented in safari:\n\t\t\t\t\t// https://github.com/WebKit/WebKit/blob/414f4e45b0e82bbfcee783d08a9642be1afa8f72/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp#L132\n\t\t\t\t}\n\t\t\t}\n\t\t\tclearIdentity?.()\n\t\t\tsetSessionToken(undefined)\n\t\t\t// RP-initiated (front-channel) Single Logout: when the session was federated via an OIDC\n\t\t\t// IdP that advertises an end_session_endpoint, `signOut` returns the URL to send the\n\t\t\t// browser to so the user is also signed out at the IdP. Opt-in via `idpLogout` — by\n\t\t\t// default we keep the existing local-only redirect to `/`. We call the tenant API\n\t\t\t// directly (not useSignOutMutation) because the generic mutation wrapper only surfaces a\n\t\t\t// `result` payload, whereas `logoutUrl` is a top-level field on SignOutResponse.\n\t\t\tlet idpLogoutUrl: string | undefined\n\t\t\ttry {\n\t\t\t\tconst { mutation } = await tenantApi(signOutMutation)\n\t\t\t\tif (!mutation?.ok) {\n\t\t\t\t\tconsole.warn(mutation?.error)\n\t\t\t\t}\n\t\t\t\tif (idpLogout) {\n\t\t\t\t\tidpLogoutUrl = mutation?.logoutUrl ?? undefined\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e)\n\t\t\t}\n\t\t\tif (!noRedirect) {\n\t\t\t\twindow.location.href = idpLogoutUrl ?? '/' // todo better redirect?\n\t\t\t}\n\t\t},\n\t\t[clearIdentity, setSessionToken, tenantApi],\n\t)\n}\n"],"names":["useTenantApi","useSetSessionToken","useCallback","signOutMutation"],"mappings":";;;;;;AAIO,MAAM,oBAAoB,CAAC,kBAA+B;AAChE,QAAM,YAAYA,aAAAA,aAAA;AAClB,QAAM,kBAAkBC,YAAAA,mBAAA;AAExB,SAAOC,MAAAA;AAAAA,IACN,OAAO,EAAE,aAAa,OAAO,YAAY,MAAA,IAAyD,CAAA,MAAO;AACxG,UAAI,UAAU,aAAa,qBAAqB;AAC/C,YAAI;AACH,gBAAM,UAAU,YAAY,oBAAA;AAAA,QAC7B,QAAQ;AAAA,QAGR;AAAA,MACD;AACA,sBAAA;AACA,sBAAgB,MAAS;AAOzB,UAAI;AACJ,UAAI;AACH,cAAM,EAAE,SAAA,IAAa,MAAM,UAAUC,mBAAAA,eAAe;AACpD,YAAI,CAAC,UAAU,IAAI;AAClB,kBAAQ,KAAK,UAAU,KAAK;AAAA,QAC7B;AACA,YAAI,WAAW;AACd,yBAAe,UAAU,aAAa;AAAA,QACvC;AAAA,MACD,SAAS,GAAG;AACX,gBAAQ,KAAK,CAAC;AAAA,MACf;AACA,UAAI,CAAC,YAAY;AAChB,eAAO,SAAS,OAAO,gBAAgB;AAAA,MACxC;AAAA,IACD;AAAA,IACA,CAAC,eAAe,iBAAiB,SAAS;AAAA,EAAA;AAE5C;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useSetSessionToken } from "@contember/react-client";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useTenantApi } from "../../hooks/useTenantApi.js";
|
|
4
|
+
import { signOutMutation } from "../../hooks/mutations/auth/useSignOutMutation.js";
|
|
4
5
|
const useLogoutInternal = (clearIdentity) => {
|
|
5
|
-
const
|
|
6
|
+
const tenantApi = useTenantApi();
|
|
6
7
|
const setSessionToken = useSetSessionToken();
|
|
7
8
|
return useCallback(
|
|
8
|
-
async ({ noRedirect = false } = {}) => {
|
|
9
|
+
async ({ noRedirect = false, idpLogout = false } = {}) => {
|
|
9
10
|
if (navigator.credentials?.preventSilentAccess) {
|
|
10
11
|
try {
|
|
11
12
|
await navigator.credentials.preventSilentAccess();
|
|
@@ -14,19 +15,23 @@ const useLogoutInternal = (clearIdentity) => {
|
|
|
14
15
|
}
|
|
15
16
|
clearIdentity?.();
|
|
16
17
|
setSessionToken(void 0);
|
|
18
|
+
let idpLogoutUrl;
|
|
17
19
|
try {
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
20
|
-
console.warn(
|
|
20
|
+
const { mutation } = await tenantApi(signOutMutation);
|
|
21
|
+
if (!mutation?.ok) {
|
|
22
|
+
console.warn(mutation?.error);
|
|
23
|
+
}
|
|
24
|
+
if (idpLogout) {
|
|
25
|
+
idpLogoutUrl = mutation?.logoutUrl ?? void 0;
|
|
21
26
|
}
|
|
22
27
|
} catch (e) {
|
|
23
28
|
console.warn(e);
|
|
24
29
|
}
|
|
25
30
|
if (!noRedirect) {
|
|
26
|
-
window.location.href = "/";
|
|
31
|
+
window.location.href = idpLogoutUrl ?? "/";
|
|
27
32
|
}
|
|
28
33
|
},
|
|
29
|
-
[clearIdentity, setSessionToken,
|
|
34
|
+
[clearIdentity, setSessionToken, tenantApi]
|
|
30
35
|
);
|
|
31
36
|
};
|
|
32
37
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogoutInternal.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport {
|
|
1
|
+
{"version":3,"file":"useLogoutInternal.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport { signOutMutation, useTenantApi } from '../../hooks/index.js'\n\nexport const useLogoutInternal = (clearIdentity?: () => void) => {\n\tconst tenantApi = useTenantApi()\n\tconst setSessionToken = useSetSessionToken()\n\n\treturn useCallback(\n\t\tasync ({ noRedirect = false, idpLogout = false }: { noRedirect?: boolean; idpLogout?: boolean } = {}) => {\n\t\t\tif (navigator.credentials?.preventSilentAccess) {\n\t\t\t\ttry {\n\t\t\t\t\tawait navigator.credentials.preventSilentAccess()\n\t\t\t\t} catch {\n\t\t\t\t\t// actually, not implemented in safari:\n\t\t\t\t\t// https://github.com/WebKit/WebKit/blob/414f4e45b0e82bbfcee783d08a9642be1afa8f72/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp#L132\n\t\t\t\t}\n\t\t\t}\n\t\t\tclearIdentity?.()\n\t\t\tsetSessionToken(undefined)\n\t\t\t// RP-initiated (front-channel) Single Logout: when the session was federated via an OIDC\n\t\t\t// IdP that advertises an end_session_endpoint, `signOut` returns the URL to send the\n\t\t\t// browser to so the user is also signed out at the IdP. Opt-in via `idpLogout` — by\n\t\t\t// default we keep the existing local-only redirect to `/`. We call the tenant API\n\t\t\t// directly (not useSignOutMutation) because the generic mutation wrapper only surfaces a\n\t\t\t// `result` payload, whereas `logoutUrl` is a top-level field on SignOutResponse.\n\t\t\tlet idpLogoutUrl: string | undefined\n\t\t\ttry {\n\t\t\t\tconst { mutation } = await tenantApi(signOutMutation)\n\t\t\t\tif (!mutation?.ok) {\n\t\t\t\t\tconsole.warn(mutation?.error)\n\t\t\t\t}\n\t\t\t\tif (idpLogout) {\n\t\t\t\t\tidpLogoutUrl = mutation?.logoutUrl ?? undefined\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e)\n\t\t\t}\n\t\t\tif (!noRedirect) {\n\t\t\t\twindow.location.href = idpLogoutUrl ?? '/' // todo better redirect?\n\t\t\t}\n\t\t},\n\t\t[clearIdentity, setSessionToken, tenantApi],\n\t)\n}\n"],"names":[],"mappings":";;;;AAIO,MAAM,oBAAoB,CAAC,kBAA+B;AAChE,QAAM,YAAY,aAAA;AAClB,QAAM,kBAAkB,mBAAA;AAExB,SAAO;AAAA,IACN,OAAO,EAAE,aAAa,OAAO,YAAY,MAAA,IAAyD,CAAA,MAAO;AACxG,UAAI,UAAU,aAAa,qBAAqB;AAC/C,YAAI;AACH,gBAAM,UAAU,YAAY,oBAAA;AAAA,QAC7B,QAAQ;AAAA,QAGR;AAAA,MACD;AACA,sBAAA;AACA,sBAAgB,MAAS;AAOzB,UAAI;AACJ,UAAI;AACH,cAAM,EAAE,SAAA,IAAa,MAAM,UAAU,eAAe;AACpD,YAAI,CAAC,UAAU,IAAI;AAClB,kBAAQ,KAAK,UAAU,KAAK;AAAA,QAC7B;AACA,YAAI,WAAW;AACd,yBAAe,UAAU,aAAa;AAAA,QACvC;AAAA,MACD,SAAS,GAAG;AACX,gBAAQ,KAAK,CAAC;AAAA,MACf;AACA,UAAI,CAAC,YAAY;AAChB,eAAO,SAAS,OAAO,gBAAgB;AAAA,MACxC;AAAA,IACD;AAAA,IACA,CAAC,eAAe,iBAAiB,SAAS;AAAA,EAAA;AAE5C;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedirectToBacklink.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":["useCallback"],"mappings":";;;AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;;;"}
|
|
1
|
+
{"version":3,"file":"useRedirectToBacklink.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts.js'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":["useCallback"],"mappings":";;;AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedirectToBacklink.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":[],"mappings":";AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;"}
|
|
1
|
+
{"version":3,"file":"useRedirectToBacklink.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts.js'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":[],"mappings":";AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityState.d.ts","sourceRoot":"","sources":["../../../src/components/IdentityState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"IdentityState.d.ts","sourceRoot":"","sources":["../../../src/components/IdentityState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAA;IAChD,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,mDAIpE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ChangeMyPasswordErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
4
4
|
export type ChangeMyPasswordFormValues = {
|
|
5
5
|
currentPassword: string;
|
|
6
6
|
newPassword: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeMyPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ChangeMyPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,GAAI,yBAAyB,yBAAyB,4CAkCtF,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ConfirmEmailChangeErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
4
|
+
export type ConfirmEmailChangeFormValues = {
|
|
5
|
+
token: string;
|
|
6
|
+
};
|
|
7
|
+
export type ConfirmEmailChangeFormErrorCode = ConfirmEmailChangeErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
|
|
8
|
+
export type ConfirmEmailChangeFormState = FormState;
|
|
9
|
+
export type ConfirmEmailChangeFormError = FormError<ConfirmEmailChangeFormValues, ConfirmEmailChangeFormErrorCode>;
|
|
10
|
+
export type ConfirmEmailChangeFormContextValue = FormContextValue<ConfirmEmailChangeFormValues, ConfirmEmailChangeFormErrorCode>;
|
|
11
|
+
export interface ConfirmEmailChangeFormProps {
|
|
12
|
+
children: ReactElement;
|
|
13
|
+
onSuccess?: () => void;
|
|
14
|
+
token?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const useConfirmEmailChangeForm: () => ConfirmEmailChangeFormContextValue;
|
|
17
|
+
export declare const ConfirmEmailChangeForm: ({ children, onSuccess, token }: ConfirmEmailChangeFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=ConfirmEmailChangeForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmEmailChangeForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ConfirmEmailChangeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,2BAA2B,GAC3B,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAEhI,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAE5F,eAAO,MAAM,sBAAsB,GAAI,gCAAgC,2BAA2B,4CAyBjG,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
3
3
|
import { CreateApiKeyErrorCode, MembershipInput } from '@contember/graphql-client-tenant';
|
|
4
|
-
import { CreateApiKeyMutationResult } from '../../hooks';
|
|
4
|
+
import { CreateApiKeyMutationResult } from '../../hooks/index.js';
|
|
5
5
|
export type CreateApiKeyFormValues = {
|
|
6
6
|
description: string;
|
|
7
7
|
memberships: readonly MembershipInput[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateApiKeyForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateApiKeyForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CreateApiKeyForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateApiKeyForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,0BAA0B,EAA2B,MAAM,sBAAsB,CAAA;AAE1F,MAAM,MAAM,sBAAsB,GAAG;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAClC,qBAAqB,GACrB,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAA;AAE7C,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AAEhG,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AAE9G,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,0BAA0B,CAAA;KAAE,KAAK,IAAI,CAAA;CAClE;AAED,eAAO,MAAM,mBAAmB,EAAc,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,gBAAgB,GAAI,0DAA0D,qBAAqB,4CA+B/G,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
3
3
|
import { CreateSessionTokenErrorCode } from '@contember/graphql-client-tenant';
|
|
4
|
-
import { CreateSessionTokenMutationResult } from '../../hooks';
|
|
4
|
+
import { CreateSessionTokenMutationResult } from '../../hooks/index.js';
|
|
5
5
|
export type CreateSessionTokenFormValues = {
|
|
6
6
|
email: string;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSessionTokenForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateSessionTokenForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CreateSessionTokenForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateSessionTokenForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAC9E,OAAO,EAAE,gCAAgC,EAAiC,MAAM,sBAAsB,CAAA;AAEtG,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,2BAA2B,GAC3B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAEhI,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,gCAAgC,CAAA;KAAE,KAAK,IAAI,CAAA;CACxE;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAE5F,eAAO,MAAM,sBAAsB,GAAI,+CAA+C,2BAA2B,4CA0BhH,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
3
3
|
import { InviteErrorCode, InviteOptions, MembershipInput } from '@contember/graphql-client-tenant';
|
|
4
|
-
import { InviteMutationResult } from '../../hooks';
|
|
4
|
+
import { InviteMutationResult } from '../../hooks/index.js';
|
|
5
5
|
export type InviteFormValues = {
|
|
6
6
|
email: string;
|
|
7
7
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InviteForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/InviteForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"InviteForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/InviteForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAA;AAE9E,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC5B,eAAe,GACf,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,eAAe,GAAG,SAAS,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE5F,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oBAAoB,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5D;AAED,eAAO,MAAM,aAAa,EAAc,MAAM,sBAAsB,CAAA;AAEpE,eAAO,MAAM,UAAU,GAAI,yEAAyE,eAAe,4CAkClH,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SignInErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
4
4
|
export type LoginFormValues = {
|
|
5
5
|
email: string;
|
|
6
6
|
password: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAM7E,MAAM,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC3B,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,cAAc,GACvB,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAA;AAE3E,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,eAAe,EAAE,kBAAkB,EAAE,cAAc,CAAC,CAAA;AAEzG,MAAM,WAAW,cAAc;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,YAAY,EAAc,MAAM,qBAAqB,CAAA;AAQlE,eAAO,MAAM,SAAS,GAAI,qCAAgE,cAAc,4CAuDvG,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
3
3
|
import { ConfirmOtpErrorCode } from '@contember/graphql-client-tenant';
|
|
4
4
|
export type OtpConfirmFormValues = {
|
|
5
5
|
otpToken: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpConfirmForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpConfirmForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OtpConfirmForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpConfirmForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGtE,MAAM,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAChC,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,CAAA;AAElB,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CA8B1E,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
3
|
-
import { PrepareOtpMutationResult } from '../../hooks';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
3
|
+
import { PrepareOtpMutationResult } from '../../hooks/index.js';
|
|
4
4
|
export type OtpPrepareFormValues = {
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpPrepareForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpPrepareForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OtpPrepareForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpPrepareForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,wBAAwB,EAAyB,MAAM,sBAAsB,CAAA;AAEtF,MAAM,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,wBAAwB,CAAA;KAAE,KAAK,IAAI,CAAA;CAChE;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CAiB1E,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ResetPasswordErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
4
4
|
export type PasswordResetFormValues = {
|
|
5
5
|
token: string;
|
|
6
6
|
password: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordResetForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PasswordResetForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,0BAA0B,GACnC,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEnG,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEjH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,oBAAoB,EAAc,MAAM,6BAA6B,CAAA;AAElF,eAAO,MAAM,iBAAiB,GAAI,gCAAgC,sBAAsB,4CAqCvF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CreatePasswordResetRequestErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
-
import { FormContextValue, FormError, FormState } from '../../types/forms';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/forms.js';
|
|
4
4
|
export type PasswordResetRequestFormValues = {
|
|
5
5
|
email: string;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordResetRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetRequestForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PasswordResetRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetRequestForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,8BAA8B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC1C,mCAAmC,GACnC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAA;AAErD,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAExH,MAAM,MAAM,oCAAoC,GAAG,gBAAgB,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAEtI,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,2BAA2B,EAAc,MAAM,oCAAoC,CAAA;AAEhG,eAAO,MAAM,wBAAwB,GAAI,yBAAyB,6BAA6B,4CA0B9F,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
import { FormContextValue, FormError, FormState } from '../../types/forms';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/forms.js';
|
|
4
4
|
export type PasswordlessSignInFormValues = {
|
|
5
5
|
token: string;
|
|
6
6
|
otpToken: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordlessSignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAI1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PasswordlessSignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAI1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG7E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,SAAS,CAAC,2BAA2B,GACrC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GACpC,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAChE,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,CAC3B,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,SAAS,CAAC,0BAA0B,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAO5F,eAAO,MAAM,sBAAsB,GAClC,uEAAkG,2BAA2B,4CA8C7H,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
3
|
-
import { FormContextValue, FormError, FormState } from '../../types/forms';
|
|
4
|
-
import { InitSignInPasswordlessMutationResult } from '../../hooks';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/forms.js';
|
|
4
|
+
import { InitSignInPasswordlessMutationResult } from '../../hooks/index.js';
|
|
5
5
|
export type PasswordlessSignInInitFormValues = {
|
|
6
6
|
email: string;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordlessSignInInitForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInInitForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PasswordlessSignInInitForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInInitForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,oCAAoC,EAAqC,MAAM,sBAAsB,CAAA;AAI9G,MAAM,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC5C,SAAS,CAAC,+BAA+B,GACzC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAA;AAEvD,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE9H,MAAM,MAAM,sCAAsC,GAAG,gBAAgB,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE5I,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oCAAoC,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,6BAA6B,EAAc,MAAM,sCAAsC,CAAA;AAEpG,eAAO,MAAM,0BAA0B,GAAI,yBAAyB,+BAA+B,4CAkClG,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { RequestEmailVerificationErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/forms.js';
|
|
4
|
+
export type RequestEmailVerificationFormValues = {
|
|
5
|
+
email: string;
|
|
6
|
+
};
|
|
7
|
+
export type RequestEmailVerificationFormErrorCode = RequestEmailVerificationErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
|
|
8
|
+
export type RequestEmailVerificationFormState = FormState;
|
|
9
|
+
export type RequestEmailVerificationFormError = FormError<RequestEmailVerificationFormValues, RequestEmailVerificationFormErrorCode>;
|
|
10
|
+
export type RequestEmailVerificationFormContextValue = FormContextValue<RequestEmailVerificationFormValues, RequestEmailVerificationFormErrorCode>;
|
|
11
|
+
export interface RequestEmailVerificationFormProps {
|
|
12
|
+
children: ReactElement;
|
|
13
|
+
onSuccess?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const useRequestEmailVerificationForm: () => RequestEmailVerificationFormContextValue;
|
|
16
|
+
export declare const RequestEmailVerificationForm: ({ children, onSuccess }: RequestEmailVerificationFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=RequestEmailVerificationForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestEmailVerificationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/RequestEmailVerificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAA;AAEpF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,kCAAkC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC9C,iCAAiC,GACjC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAEpI,MAAM,MAAM,wCAAwC,GAAG,gBAAgB,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAElJ,MAAM,WAAW,iCAAiC;IACjD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,+BAA+B,EAAc,MAAM,wCAAwC,CAAA;AAExG,eAAO,MAAM,4BAA4B,GAAI,yBAAyB,iCAAiC,4CA0BtG,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue } from '../../types/forms';
|
|
2
|
+
import { FormContextValue } from '../../types/forms.js';
|
|
3
3
|
type ExecuteResult<T extends FormContextValue<any, any, any>, OkResult = undefined> = ({
|
|
4
4
|
ok: true;
|
|
5
5
|
} & (OkResult extends undefined ? {} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/TenantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAoC,MAAM,OAAO,CAAA;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TenantForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/TenantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAoC,MAAM,OAAO,CAAA;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAMvD,KAAK,aAAa,CAAC,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,IAC/E,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,CAAC,QAAQ,SAAS,SAAS,GAAG,EAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,GACzE;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;CAAE,CAAA;AAEpG,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS;IAC/F,QAAQ,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAA;IACxF,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;IAClG,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;IAChD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,KAAK,IAAI,CAAA;CAClG;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,EAAE,6IASzF,eAAe,CAAC,CAAC,EAAE,QAAQ,CAAC,4CAuF9B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FormContextValue, FormError, FormState } from '../../types';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
3
3
|
import { MembershipInput, UpdateProjectMemberErrorCode } from '@contember/graphql-client-tenant';
|
|
4
4
|
export type UpdateProjectMemberFormValues = {
|
|
5
5
|
memberships: readonly MembershipInput[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateProjectMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/UpdateProjectMemberForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UpdateProjectMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/UpdateProjectMemberForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAGhG,MAAM,MAAM,6BAA6B,GAAG;IAC3C,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,gCAAgC,GACzC,4BAA4B,GAC5B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAA;AAEpD,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAErH,MAAM,MAAM,mCAAmC,GAAG,gBAAgB,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAEnI,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,0BAA0B,EAAc,MAAM,mCAAmC,CAAA;AAE9F,eAAO,MAAM,uBAAuB,GAAI,kDAAkD,4BAA4B,4CAoCrH,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { VerifyEmailErrorCode } from '@contember/graphql-client-tenant';
|
|
3
|
+
import { FormContextValue, FormError, FormState } from '../../types/index.js';
|
|
4
|
+
export type VerifyEmailFormValues = {
|
|
5
|
+
token: string;
|
|
6
|
+
};
|
|
7
|
+
export type VerifyEmailFormErrorCode = VerifyEmailErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
|
|
8
|
+
export type VerifyEmailFormState = FormState;
|
|
9
|
+
export type VerifyEmailFormError = FormError<VerifyEmailFormValues, VerifyEmailFormErrorCode>;
|
|
10
|
+
export type VerifyEmailFormContextValue = FormContextValue<VerifyEmailFormValues, VerifyEmailFormErrorCode>;
|
|
11
|
+
export interface VerifyEmailFormProps {
|
|
12
|
+
children: ReactElement;
|
|
13
|
+
onSuccess?: () => void;
|
|
14
|
+
token?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const useVerifyEmailForm: () => VerifyEmailFormContextValue;
|
|
17
|
+
export declare const VerifyEmailForm: ({ children, onSuccess, token }: VerifyEmailFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=VerifyEmailForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyEmailForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/VerifyEmailForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,wBAAwB,GACjC,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAE5C,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,CAAA;AAE7F,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,CAAA;AAE3G,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,kBAAkB,EAAc,MAAM,2BAA2B,CAAA;AAE9E,eAAO,MAAM,eAAe,GAAI,gCAAgC,oBAAoB,4CAyBnF,CAAA"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
export * from './CreateApiKeyForm';
|
|
2
|
-
export * from './CreateSessionTokenForm';
|
|
3
|
-
export * from './ChangeMyPasswordForm';
|
|
4
|
-
export * from './InviteForm';
|
|
5
|
-
export * from './LoginForm';
|
|
6
|
-
export * from './PasswordResetForm';
|
|
7
|
-
export * from './PasswordResetRequestForm';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
1
|
+
export * from './CreateApiKeyForm.js';
|
|
2
|
+
export * from './CreateSessionTokenForm.js';
|
|
3
|
+
export * from './ChangeMyPasswordForm.js';
|
|
4
|
+
export * from './InviteForm.js';
|
|
5
|
+
export * from './LoginForm.js';
|
|
6
|
+
export * from './PasswordResetForm.js';
|
|
7
|
+
export * from './PasswordResetRequestForm.js';
|
|
8
|
+
export * from './VerifyEmailForm.js';
|
|
9
|
+
export * from './ConfirmEmailChangeForm.js';
|
|
10
|
+
export * from './RequestEmailVerificationForm.js';
|
|
11
|
+
export * from './PasswordlessSignInForm.js';
|
|
12
|
+
export * from './PasswordlessSignInInitForm.js';
|
|
13
|
+
export * from './OtpPrepareForm.js';
|
|
14
|
+
export * from './OtpConfirmForm.js';
|
|
15
|
+
export * from './UpdateProjectMemberForm.js';
|
|
13
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,mCAAmC,CAAA;AACjD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,8BAA8B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDP.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDP.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAEvE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"IDP.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDP.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAEvE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAiB,MAAM,oBAAoB,CAAA;AAKlF,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,GAAG,GAAI,8EAA8E,QAAQ,4CAgDzG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDPState.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDPState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"IDPState.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDPState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACpC,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,GAAI,qBAAqB,aAAa,mDAI1D,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './IDPState';
|
|
2
|
-
export * from './IDP';
|
|
3
|
-
export * from './IDPInitTrigger';
|
|
1
|
+
export * from './IDPState.js';
|
|
2
|
+
export * from './IDP.js';
|
|
3
|
+
export * from './IDPInitTrigger.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,qBAAqB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './IdentityProvider';
|
|
2
|
-
export * from './IdentityState';
|
|
3
|
-
export * from './forms';
|
|
4
|
-
export * from './idp';
|
|
5
|
-
export * from './triggers';
|
|
1
|
+
export * from './IdentityProvider.js';
|
|
2
|
+
export * from './IdentityState.js';
|
|
3
|
+
export * from './forms/index.js';
|
|
4
|
+
export * from './idp/index.js';
|
|
5
|
+
export * from './triggers/index.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export declare const LogoutTrigger: ({ children }: {
|
|
2
|
+
export declare const LogoutTrigger: ({ children, idpLogout }: {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Opt in to OIDC front-channel Single Logout: when the session was federated via an OIDC IdP
|
|
6
|
+
* that advertises an end_session_endpoint, redirect the browser to the IdP's logout URL so the
|
|
7
|
+
* user is also signed out at the IdP. Defaults to a local-only logout.
|
|
8
|
+
*/
|
|
9
|
+
idpLogout?: boolean;
|
|
4
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
11
|
//# sourceMappingURL=LogoutTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoutTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/LogoutTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAI9C,eAAO,MAAM,aAAa,GAAI,
|
|
1
|
+
{"version":3,"file":"LogoutTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/LogoutTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAI9C,eAAO,MAAM,aAAa,GAAI,yBAAyB;IACtD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB,4CAGA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { RemoveProjectMemberMutationVariables } from '../../hooks';
|
|
2
|
+
import { RemoveProjectMemberMutationVariables } from '../../hooks/index.js';
|
|
3
3
|
export type RemoveProjectMemberTriggerProps = RemoveProjectMemberMutationVariables & {
|
|
4
4
|
children: ReactElement;
|
|
5
5
|
onSuccess?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveProjectMemberTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/RemoveProjectMemberTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,oCAAoC,EAAkC,MAAM,
|
|
1
|
+
{"version":3,"file":"RemoveProjectMemberTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/RemoveProjectMemberTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,oCAAoC,EAAkC,MAAM,sBAAsB,CAAA;AAE3G,MAAM,MAAM,+BAA+B,GACxC,oCAAoC,GACpC;IACD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAC9B,CAAA;AAEF,eAAO,MAAM,0BAA0B,GAAI,uCAAuC,+BAA+B,4CAIhH,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './DisableOtpTrigger';
|
|
2
|
-
export * from './LogoutTrigger';
|
|
3
|
-
export * from './RemoveProjectMemberTrigger';
|
|
1
|
+
export * from './DisableOtpTrigger.js';
|
|
2
|
+
export * from './LogoutTrigger.js';
|
|
3
|
+
export * from './RemoveProjectMemberTrigger.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iCAAiC,CAAA"}
|