@contember/react-client-tenant 2.1.0-beta.2 → 2.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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
package/src/hooks/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './mutations'
|
|
2
|
-
export * from './queries'
|
|
3
|
-
export * from './useFetchIdentity'
|
|
4
|
-
export * from './useLogout'
|
|
5
|
-
export * from './useTenantApi'
|
|
6
|
-
export * from './useTenantQueryLoader'
|
|
7
|
-
export * from './useTenantMutation'
|
|
8
|
-
export * from './usePasswordlessOtpActivator'
|
|
1
|
+
export * from './mutations/index.js'
|
|
2
|
+
export * from './queries/index.js'
|
|
3
|
+
export * from './useFetchIdentity.js'
|
|
4
|
+
export * from './useLogout.js'
|
|
5
|
+
export * from './useTenantApi.js'
|
|
6
|
+
export * from './useTenantQueryLoader.js'
|
|
7
|
+
export * from './useTenantMutation.js'
|
|
8
|
+
export * from './usePasswordlessOtpActivator.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './useCreateApiKeyMutation'
|
|
2
|
-
export * from './useCreateSessionTokenMutation'
|
|
3
|
-
export * from './useCreateGlobalApiKeyMutation'
|
|
4
|
-
export * from './useDisableApiKeyMutation'
|
|
1
|
+
export * from './useCreateApiKeyMutation.js'
|
|
2
|
+
export * from './useCreateSessionTokenMutation.js'
|
|
3
|
+
export * from './useCreateGlobalApiKeyMutation.js'
|
|
4
|
+
export * from './useDisableApiKeyMutation.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
const createApiKeyMutationResult = TenantApi.createApiKeyResult$.apiKey(TenantApi.apiKeyWithToken$$.identity(TenantApi.identity$$))
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
const createGlobalApiKeyMutationResult = TenantApi.createApiKeyResult$.apiKey(TenantApi.apiKeyWithToken$$.identity(TenantApi.identity$$))
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
const createSessionTokenMutationResult = TenantApi.createSessionTokenResult$.token.person(TenantApi.person$.id.email.name)
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
3
3
|
|
|
4
4
|
export const disableApiKeyMutation = TenantApi.mutation$
|
|
5
5
|
.disableApiKey(
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './useChangeMyPasswordMutation'
|
|
2
|
-
export * from './useSignInMutation'
|
|
3
|
-
export * from './useSignOutMutation'
|
|
1
|
+
export * from './useChangeMyPasswordMutation.js'
|
|
2
|
+
export * from './useSignInMutation.js'
|
|
3
|
+
export * from './useSignOutMutation.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
3
|
import { ModelType } from 'graphql-ts-client-api'
|
|
4
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
4
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
5
5
|
|
|
6
6
|
const signInResultFragment = TenantApi.signInResult$$.person(TenantApi.person$.id.email.name)
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
3
3
|
|
|
4
4
|
export const signOutMutation = TenantApi.mutation$.signOut(
|
|
5
5
|
TenantApi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
|
+
|
|
5
|
+
export const confirmEmailChangeMutation = TenantApi
|
|
6
|
+
.mutation$
|
|
7
|
+
.confirmEmailChange(
|
|
8
|
+
TenantApi
|
|
9
|
+
.confirmEmailChangeResponse$$
|
|
10
|
+
.error(TenantApi.confirmEmailChangeError$$),
|
|
11
|
+
options => options.alias('mutation'),
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
export const useConfirmEmailChangeMutation = createTenantMutation(confirmEmailChangeMutation, {
|
|
15
|
+
apiToken: LoginToken,
|
|
16
|
+
})
|
|
17
|
+
export type ConfirmEmailChangeMutationVariables = Parameters<ReturnType<typeof useConfirmEmailChangeMutation>>[0]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
|
+
|
|
5
|
+
export const requestEmailVerificationMutation = TenantApi
|
|
6
|
+
.mutation$
|
|
7
|
+
.requestEmailVerification(
|
|
8
|
+
TenantApi
|
|
9
|
+
.requestEmailVerificationResponse$$
|
|
10
|
+
.error(TenantApi.requestEmailVerificationError$$),
|
|
11
|
+
options => options.alias('mutation'),
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
export const useRequestEmailVerificationMutation = createTenantMutation(requestEmailVerificationMutation, {
|
|
15
|
+
apiToken: LoginToken,
|
|
16
|
+
})
|
|
17
|
+
export type RequestEmailVerificationMutationVariables = Parameters<ReturnType<typeof useRequestEmailVerificationMutation>>[0]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
|
+
|
|
5
|
+
export const verifyEmailMutation = TenantApi
|
|
6
|
+
.mutation$
|
|
7
|
+
.verifyEmail(
|
|
8
|
+
TenantApi
|
|
9
|
+
.verifyEmailResponse$$
|
|
10
|
+
.error(TenantApi.verifyEmailError$$),
|
|
11
|
+
options => options.alias('mutation'),
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
export const useVerifyEmailMutation = createTenantMutation(verifyEmailMutation, {
|
|
15
|
+
apiToken: LoginToken,
|
|
16
|
+
})
|
|
17
|
+
export type VerifyEmailMutationVariables = Parameters<ReturnType<typeof useVerifyEmailMutation>>[0]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './useInitSignInIDPMutation'
|
|
2
|
-
export * from './useSignInIdpMutation'
|
|
1
|
+
export * from './useInitSignInIDPMutation.js'
|
|
2
|
+
export * from './useSignInIdpMutation.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
import { ModelType } from 'graphql-ts-client-api'
|
|
5
5
|
|
|
6
6
|
export type InitSignInIDPMutationVariables = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
import { ModelType } from 'graphql-ts-client-api'
|
|
5
5
|
|
|
6
6
|
const signInIdpFragment = TenantApi.signInIDPResult$$.person(TenantApi.person$.id.email.name)
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './apiKey'
|
|
2
|
-
export * from './auth'
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
1
|
+
export * from './apiKey/index.js'
|
|
2
|
+
export * from './auth/index.js'
|
|
3
|
+
export * from './emailVerification/index.js'
|
|
4
|
+
export * from './invite/index.js'
|
|
5
|
+
export * from './idp/index.js'
|
|
6
|
+
export * from './memberships/index.js'
|
|
7
|
+
export * from './passwordless/index.js'
|
|
8
|
+
export * from './otp/index.js'
|
|
9
|
+
export * from './passwordReset/index.js'
|
|
10
|
+
export * from './profile/index.js'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './useInviteMutation'
|
|
1
|
+
export * from './useInviteMutation.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
const inviteMutationResult = TenantApi.inviteResult$$
|
|
6
6
|
.person(TenantApi.person$.id.email.name.identity(TenantApi.identity$$))
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './useRemoveProjectMemberMutation'
|
|
2
|
-
export * from './useAddProjectMemberMutation'
|
|
3
|
-
export * from './useUpdateProjectMemberMutation'
|
|
1
|
+
export * from './useRemoveProjectMemberMutation.js'
|
|
2
|
+
export * from './useAddProjectMemberMutation.js'
|
|
3
|
+
export * from './useUpdateProjectMemberMutation.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
3
3
|
|
|
4
4
|
export const addProjectMemberMutation = TenantApi.mutation$
|
|
5
5
|
.addProjectMember(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
3
3
|
|
|
4
4
|
export const removeProjectMemberMutation = TenantApi.mutation$
|
|
5
5
|
.removeProjectMember(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
3
3
|
|
|
4
4
|
export const updateProjectMemberMutation = TenantApi.mutation$
|
|
5
5
|
.updateProjectMember(
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './useConfirmOtpMutation'
|
|
2
|
-
export * from './useDisableOtpMutation'
|
|
3
|
-
export * from './usePrepareOtpMutation'
|
|
1
|
+
export * from './useConfirmOtpMutation.js'
|
|
2
|
+
export * from './useDisableOtpMutation.js'
|
|
3
|
+
export * from './usePrepareOtpMutation.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
3
3
|
|
|
4
4
|
export const disableOtpMutation = TenantApi.mutation$.disableOtp(
|
|
5
5
|
TenantApi.disableOtpResponse$$.error(TenantApi.disableOtpError$$),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
const prepareOtmMutationResult = TenantApi.prepareOtpResponse$$.result(TenantApi.prepareOtpResult$$)
|
|
6
6
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './useCreateResetPasswordRequestMutation'
|
|
2
|
-
export * from './useResetPasswordMutation'
|
|
1
|
+
export * from './useCreateResetPasswordRequestMutation.js'
|
|
2
|
+
export * from './useResetPasswordMutation.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
export const createResetPasswordRequestMutation = TenantApi
|
|
6
6
|
.mutation$
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
export const resetPasswordMutation = TenantApi
|
|
6
6
|
.mutation$
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './useActivatePasswordlessOtpMutation'
|
|
2
|
-
export * from './useDisableMyPasswordlessMutation'
|
|
3
|
-
export * from './useEnableMyPasswordlessMutation'
|
|
4
|
-
export * from './useSignInPasswordlessMutation'
|
|
5
|
-
export * from './useInitSignInPasswordlessMutation'
|
|
1
|
+
export * from './useActivatePasswordlessOtpMutation.js'
|
|
2
|
+
export * from './useDisableMyPasswordlessMutation.js'
|
|
3
|
+
export * from './useEnableMyPasswordlessMutation.js'
|
|
4
|
+
export * from './useSignInPasswordlessMutation.js'
|
|
5
|
+
export * from './useInitSignInPasswordlessMutation.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
|
|
5
5
|
const ActivatePasswordlessOtpMutation = TenantApi
|
|
6
6
|
.mutation$
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
import { ModelType } from 'graphql-ts-client-api'
|
|
5
5
|
|
|
6
6
|
const InitSignInPasswordlessMutationResult = TenantApi.initSignInPasswordlessResult$$
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
|
-
import { LoginToken } from '../../useTenantApi'
|
|
3
|
-
import { createTenantMutation } from '../../useTenantMutation'
|
|
2
|
+
import { LoginToken } from '../../useTenantApi.js'
|
|
3
|
+
import { createTenantMutation } from '../../useTenantMutation.js'
|
|
4
4
|
import { ModelType } from 'graphql-ts-client-api'
|
|
5
5
|
|
|
6
6
|
const signInResultFragment = TenantApi.signInPasswordlessResult$$.person(TenantApi.person$.id.email.name)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './useChangeProfile'
|
|
2
|
-
export * from './useChangeMyProfile'
|
|
1
|
+
export * from './useChangeProfile.js'
|
|
2
|
+
export * from './useChangeMyProfile.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './useMeQuery'
|
|
2
|
-
export * from './useProjectMembersQuery'
|
|
3
|
-
export * from './useProjectMembershipsQuery'
|
|
4
|
-
export * from './useProjectRolesDefinitionQuery'
|
|
1
|
+
export * from './useMeQuery.js'
|
|
2
|
+
export * from './useProjectMembersQuery.js'
|
|
3
|
+
export * from './useProjectMembershipsQuery.js'
|
|
4
|
+
export * from './useProjectRolesDefinitionQuery.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { TenantApiOptions, useTenantApi } from '../useTenantApi'
|
|
3
|
+
import { TenantApiOptions, useTenantApi } from '../useTenantApi.js'
|
|
4
4
|
import { useCallback } from 'react'
|
|
5
5
|
|
|
6
6
|
const identityFragment = TenantApi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType, ParameterRef } from 'graphql-ts-client-api'
|
|
3
|
-
import { TenantApiOptions, useTenantApi } from '../useTenantApi'
|
|
3
|
+
import { TenantApiOptions, useTenantApi } from '../useTenantApi.js'
|
|
4
4
|
import { useCallback } from 'react'
|
|
5
5
|
|
|
6
6
|
const projectIdentityRelationFragment = TenantApi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType, ParameterRef } from 'graphql-ts-client-api'
|
|
3
|
-
import { TenantApiOptions, useTenantApi } from '../useTenantApi'
|
|
3
|
+
import { TenantApiOptions, useTenantApi } from '../useTenantApi.js'
|
|
4
4
|
import { useCallback } from 'react'
|
|
5
5
|
|
|
6
6
|
const projectMembershipsFragment = TenantApi.membership$$.variables(TenantApi.variableEntry$$)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
2
2
|
import { ModelType } from 'graphql-ts-client-api'
|
|
3
|
-
import { TenantApiOptions, useTenantApi } from '../useTenantApi'
|
|
3
|
+
import { TenantApiOptions, useTenantApi } from '../useTenantApi.js'
|
|
4
4
|
import { useCallback } from 'react'
|
|
5
5
|
|
|
6
6
|
const projectRolesDefinitionFragment = TenantApi.roleDefinition$$
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react'
|
|
2
|
-
import { Identity, IdentityMethods, IdentityStateValue } from '../types'
|
|
2
|
+
import { Identity, IdentityMethods, IdentityStateValue } from '../types/index.js'
|
|
3
3
|
import { GraphQlClientError, useSessionToken } from '@contember/react-client'
|
|
4
|
-
import { useLogoutInternal } from '../internal/hooks/useLogoutInternal'
|
|
5
|
-
import { useMeQuery } from './queries'
|
|
4
|
+
import { useLogoutInternal } from '../internal/hooks/useLogoutInternal.js'
|
|
5
|
+
import { useMeQuery } from './queries/index.js'
|
|
6
6
|
|
|
7
7
|
export const useFetchIdentity = (): [{ state: IdentityStateValue; identity: Identity | undefined }, IdentityMethods] => {
|
|
8
8
|
const sessionToken = useSessionToken()
|
package/src/hooks/useLogout.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useIdentityMethods } from '../contexts'
|
|
2
|
-
import { useLogoutInternal } from '../internal/hooks/useLogoutInternal'
|
|
1
|
+
import { useIdentityMethods } from '../contexts.js'
|
|
2
|
+
import { useLogoutInternal } from '../internal/hooks/useLogoutInternal.js'
|
|
3
3
|
|
|
4
4
|
export const useLogout = () => {
|
|
5
5
|
const { clearIdentity } = useIdentityMethods()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
|
-
import { PASSWORDLESS_REQUEST_STORAGE_KEY } from '../consts'
|
|
3
|
-
import { useActivatePasswordlessOtpMutation } from './mutations'
|
|
4
|
-
import { randomString } from '../internal/utils/randomInt'
|
|
5
|
-
import { calculateHash } from '../internal/utils/hashing'
|
|
2
|
+
import { PASSWORDLESS_REQUEST_STORAGE_KEY } from '../consts.js'
|
|
3
|
+
import { useActivatePasswordlessOtpMutation } from './mutations/index.js'
|
|
4
|
+
import { randomString } from '../internal/utils/randomInt.js'
|
|
5
|
+
import { calculateHash } from '../internal/utils/hashing.js'
|
|
6
6
|
import { ActivatePasswordlessOtpErrorCode } from '@contember/graphql-client-tenant'
|
|
7
7
|
|
|
8
8
|
const usePasswordlessParams = (): { localStorageRequestId: string | null; urlRequestId: string | null; urlToken: string | null } => {
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './components'
|
|
2
|
-
export * from './contexts'
|
|
3
|
-
export * from './hooks'
|
|
4
|
-
export * from './types'
|
|
1
|
+
export * from './components/index.js'
|
|
2
|
+
export * from './contexts.js'
|
|
3
|
+
export * from './hooks/index.js'
|
|
4
|
+
export * from './types/index.js'
|
|
5
5
|
|
|
6
6
|
export type { ModelType } from 'graphql-ts-client-api'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SetStateAction, useEffect, useRef } from 'react'
|
|
2
2
|
import { useSetSessionToken } from '@contember/react-client'
|
|
3
|
-
import { useIDPStateStore } from './useIDPStateStore'
|
|
4
|
-
import { getBaseHref } from '../utils/getBaseHref'
|
|
5
|
-
import { IDPStateValue } from '../../types/idp'
|
|
6
|
-
import { useSignInIDPMutation } from '../../hooks'
|
|
7
|
-
import { useRedirectToBacklinkCallback } from './useRedirectToBacklink'
|
|
3
|
+
import { useIDPStateStore } from './useIDPStateStore.js'
|
|
4
|
+
import { getBaseHref } from '../utils/getBaseHref.js'
|
|
5
|
+
import { IDPStateValue } from '../../types/idp.js'
|
|
6
|
+
import { useSignInIDPMutation } from '../../hooks/index.js'
|
|
7
|
+
import { useRedirectToBacklinkCallback } from './useRedirectToBacklink.js'
|
|
8
8
|
|
|
9
9
|
export interface UseHandleIDPResponseProps {
|
|
10
10
|
onLogin?: () => void
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SetStateAction, useCallback } from 'react'
|
|
2
|
-
import { useIDPStateStore } from './useIDPStateStore'
|
|
3
|
-
import { getBaseHref } from '../utils/getBaseHref'
|
|
4
|
-
import { IDPInitError, IDPStateValue } from '../../types/idp'
|
|
5
|
-
import { useInitSignInIDPMutation } from '../../hooks'
|
|
6
|
-
import { useSaveBacklink } from './useRedirectToBacklink'
|
|
2
|
+
import { useIDPStateStore } from './useIDPStateStore.js'
|
|
3
|
+
import { getBaseHref } from '../utils/getBaseHref.js'
|
|
4
|
+
import { IDPInitError, IDPStateValue } from '../../types/idp.js'
|
|
5
|
+
import { useInitSignInIDPMutation } from '../../hooks/index.js'
|
|
6
|
+
import { useSaveBacklink } from './useRedirectToBacklink.js'
|
|
7
7
|
|
|
8
8
|
export interface UseInitIDPRedirectProps {
|
|
9
9
|
onRedirect?: (url: string) => void
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useSetSessionToken } from '@contember/react-client'
|
|
2
2
|
import { useCallback } from 'react'
|
|
3
|
-
import {
|
|
3
|
+
import { signOutMutation, useTenantApi } from '../../hooks/index.js'
|
|
4
4
|
|
|
5
5
|
export const useLogoutInternal = (clearIdentity?: () => void) => {
|
|
6
|
-
const
|
|
6
|
+
const tenantApi = useTenantApi()
|
|
7
7
|
const setSessionToken = useSetSessionToken()
|
|
8
8
|
|
|
9
9
|
return useCallback(
|
|
10
|
-
async ({ noRedirect = false }: { noRedirect?: boolean } = {}) => {
|
|
10
|
+
async ({ noRedirect = false, idpLogout = false }: { noRedirect?: boolean; idpLogout?: boolean } = {}) => {
|
|
11
11
|
if (navigator.credentials?.preventSilentAccess) {
|
|
12
12
|
try {
|
|
13
13
|
await navigator.credentials.preventSilentAccess()
|
|
@@ -18,18 +18,28 @@ export const useLogoutInternal = (clearIdentity?: () => void) => {
|
|
|
18
18
|
}
|
|
19
19
|
clearIdentity?.()
|
|
20
20
|
setSessionToken(undefined)
|
|
21
|
+
// RP-initiated (front-channel) Single Logout: when the session was federated via an OIDC
|
|
22
|
+
// IdP that advertises an end_session_endpoint, `signOut` returns the URL to send the
|
|
23
|
+
// browser to so the user is also signed out at the IdP. Opt-in via `idpLogout` — by
|
|
24
|
+
// default we keep the existing local-only redirect to `/`. We call the tenant API
|
|
25
|
+
// directly (not useSignOutMutation) because the generic mutation wrapper only surfaces a
|
|
26
|
+
// `result` payload, whereas `logoutUrl` is a top-level field on SignOutResponse.
|
|
27
|
+
let idpLogoutUrl: string | undefined
|
|
21
28
|
try {
|
|
22
|
-
const
|
|
23
|
-
if (!
|
|
24
|
-
console.warn(
|
|
29
|
+
const { mutation } = await tenantApi(signOutMutation)
|
|
30
|
+
if (!mutation?.ok) {
|
|
31
|
+
console.warn(mutation?.error)
|
|
32
|
+
}
|
|
33
|
+
if (idpLogout) {
|
|
34
|
+
idpLogoutUrl = mutation?.logoutUrl ?? undefined
|
|
25
35
|
}
|
|
26
36
|
} catch (e) {
|
|
27
37
|
console.warn(e)
|
|
28
38
|
}
|
|
29
39
|
if (!noRedirect) {
|
|
30
|
-
window.location.href = '/' // todo better redirect?
|
|
40
|
+
window.location.href = idpLogoutUrl ?? '/' // todo better redirect?
|
|
31
41
|
}
|
|
32
42
|
},
|
|
33
|
-
[clearIdentity, setSessionToken,
|
|
43
|
+
[clearIdentity, setSessionToken, tenantApi],
|
|
34
44
|
)
|
|
35
45
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './forms'
|
|
2
|
-
export * from './IdentityMethods'
|
|
3
|
-
export * from './IdentityStateValue'
|
|
4
|
-
export * from './Identity'
|
|
5
|
-
export * from './idp'
|
|
1
|
+
export * from './forms.js'
|
|
2
|
+
export * from './IdentityMethods.js'
|
|
3
|
+
export * from './IdentityStateValue.js'
|
|
4
|
+
export * from './Identity.js'
|
|
5
|
+
export * from './idp.js'
|