@contember/react-client-tenant 2.1.0-alpha.3 → 2.1.0-alpha.35
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/package.json +12 -12
- package/src/components/IdentityProvider.tsx +0 -2
- package/src/components/forms/ChangeMyPasswordForm.tsx +0 -1
- package/src/components/forms/LoginForm.tsx +2 -2
- package/src/components/forms/OtpConfirmForm.tsx +1 -2
- package/src/components/forms/OtpPrepareForm.tsx +1 -3
- package/src/components/forms/PasswordResetForm.tsx +0 -1
- package/src/components/forms/PasswordResetRequestForm.tsx +0 -3
- package/src/components/forms/PasswordlessSignInForm.tsx +12 -9
- package/src/components/forms/PasswordlessSignInInitForm.tsx +6 -3
- package/src/components/forms/TenantForm.tsx +14 -10
- package/src/components/forms/UpdateProjectMemberForm.tsx +2 -2
- package/src/components/idp/IDP.tsx +5 -5
- package/src/components/idp/IDPInitTrigger.tsx +1 -3
- package/src/components/triggers/DisableOtpTrigger.tsx +2 -1
- package/src/components/triggers/RemoveProjectMemberTrigger.tsx +0 -1
- package/src/components/triggers/TenantActionTrigger.tsx +4 -2
- package/src/contexts.ts +0 -2
- package/src/hooks/mutations/apiKey/useDisableApiKeyMutation.tsx +0 -1
- package/src/hooks/mutations/auth/useSignInMutation.ts +0 -1
- package/src/hooks/mutations/idp/useInitSignInIDPMutation.ts +5 -2
- package/src/hooks/mutations/idp/useSignInIdpMutation.ts +6 -4
- package/src/hooks/mutations/otp/useConfirmOtpMutation.ts +5 -5
- package/src/hooks/mutations/otp/usePrepareOtpMutation.ts +0 -1
- package/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.ts +0 -1
- package/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.ts +0 -1
- package/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.ts +0 -1
- package/src/hooks/mutations/profile/useChangeMyProfile.ts +2 -2
- package/src/hooks/mutations/profile/useChangeProfile.ts +2 -2
- package/src/hooks/queries/useMeQuery.ts +5 -4
- package/src/hooks/queries/useProjectMembersQuery.ts +19 -14
- package/src/hooks/queries/useProjectMembershipsQuery.ts +0 -1
- package/src/hooks/queries/useProjectRolesDefinitionQuery.ts +1 -2
- package/src/hooks/useFetchIdentity.ts +4 -1
- package/src/hooks/usePasswordlessOtpActivator.ts +4 -3
- package/src/hooks/useTenantApi.ts +0 -1
- package/src/hooks/useTenantMutation.ts +8 -6
- package/src/hooks/useTenantQueryLoader.ts +4 -3
- package/src/internal/hooks/useHandleIDPResponse.ts +6 -3
- package/src/internal/hooks/useIDPAutoInit.ts +0 -1
- package/src/internal/hooks/useIDPStateStore.ts +1 -1
- package/src/internal/hooks/useInitIDPRedirect.ts +4 -3
- package/src/internal/hooks/useLogoutInternal.ts +1 -1
- package/src/internal/hooks/useRedirectToBacklink.ts +11 -5
- package/src/internal/utils/randomInt.ts +0 -1
- package/src/types/idp.ts +0 -1
- package/dist/development/index.cjs +0 -159
- package/dist/development/index.cjs.map +0 -1
- package/dist/development/index.js +0 -159
- package/dist/development/index.js.map +0 -1
- package/dist/development/src/components/IdentityProvider.cjs +0 -38
- package/dist/development/src/components/IdentityProvider.cjs.map +0 -1
- package/dist/development/src/components/IdentityProvider.js +0 -38
- package/dist/development/src/components/IdentityProvider.js.map +0 -1
- package/dist/development/src/components/IdentityState.cjs +0 -14
- package/dist/development/src/components/IdentityState.cjs.map +0 -1
- package/dist/development/src/components/IdentityState.js +0 -14
- package/dist/development/src/components/IdentityState.js.map +0 -1
- package/dist/development/src/components/forms/ChangeMyPasswordForm.cjs +0 -59
- package/dist/development/src/components/forms/ChangeMyPasswordForm.cjs.map +0 -1
- package/dist/development/src/components/forms/ChangeMyPasswordForm.js +0 -59
- package/dist/development/src/components/forms/ChangeMyPasswordForm.js.map +0 -1
- package/dist/development/src/components/forms/CreateApiKeyForm.cjs +0 -57
- package/dist/development/src/components/forms/CreateApiKeyForm.cjs.map +0 -1
- package/dist/development/src/components/forms/CreateApiKeyForm.js +0 -57
- package/dist/development/src/components/forms/CreateApiKeyForm.js.map +0 -1
- package/dist/development/src/components/forms/CreateSessionTokenForm.cjs +0 -50
- package/dist/development/src/components/forms/CreateSessionTokenForm.cjs.map +0 -1
- package/dist/development/src/components/forms/CreateSessionTokenForm.js +0 -50
- package/dist/development/src/components/forms/CreateSessionTokenForm.js.map +0 -1
- package/dist/development/src/components/forms/InviteForm.cjs +0 -62
- package/dist/development/src/components/forms/InviteForm.cjs.map +0 -1
- package/dist/development/src/components/forms/InviteForm.js +0 -62
- package/dist/development/src/components/forms/InviteForm.js.map +0 -1
- package/dist/development/src/components/forms/LoginForm.cjs +0 -85
- package/dist/development/src/components/forms/LoginForm.cjs.map +0 -1
- package/dist/development/src/components/forms/LoginForm.js +0 -85
- package/dist/development/src/components/forms/LoginForm.js.map +0 -1
- package/dist/development/src/components/forms/OtpConfirmForm.cjs +0 -49
- package/dist/development/src/components/forms/OtpConfirmForm.cjs.map +0 -1
- package/dist/development/src/components/forms/OtpConfirmForm.js +0 -49
- package/dist/development/src/components/forms/OtpConfirmForm.js.map +0 -1
- package/dist/development/src/components/forms/OtpPrepareForm.cjs +0 -36
- package/dist/development/src/components/forms/OtpPrepareForm.cjs.map +0 -1
- package/dist/development/src/components/forms/OtpPrepareForm.js +0 -36
- package/dist/development/src/components/forms/OtpPrepareForm.js.map +0 -1
- package/dist/development/src/components/forms/PasswordResetForm.cjs +0 -63
- package/dist/development/src/components/forms/PasswordResetForm.cjs.map +0 -1
- package/dist/development/src/components/forms/PasswordResetForm.js +0 -63
- package/dist/development/src/components/forms/PasswordResetForm.js.map +0 -1
- package/dist/development/src/components/forms/PasswordResetRequestForm.cjs +0 -49
- package/dist/development/src/components/forms/PasswordResetRequestForm.cjs.map +0 -1
- package/dist/development/src/components/forms/PasswordResetRequestForm.js +0 -49
- package/dist/development/src/components/forms/PasswordResetRequestForm.js.map +0 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +0 -79
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +0 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.js +0 -79
- package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +0 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs +0 -54
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs.map +0 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js +0 -54
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js.map +0 -1
- package/dist/development/src/components/forms/TenantForm.cjs +0 -91
- package/dist/development/src/components/forms/TenantForm.cjs.map +0 -1
- package/dist/development/src/components/forms/TenantForm.js +0 -91
- package/dist/development/src/components/forms/TenantForm.js.map +0 -1
- package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs +0 -64
- package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs.map +0 -1
- package/dist/development/src/components/forms/UpdateProjectMemberForm.js +0 -64
- package/dist/development/src/components/forms/UpdateProjectMemberForm.js.map +0 -1
- package/dist/development/src/components/idp/IDP.cjs +0 -56
- package/dist/development/src/components/idp/IDP.cjs.map +0 -1
- package/dist/development/src/components/idp/IDP.js +0 -56
- package/dist/development/src/components/idp/IDP.js.map +0 -1
- package/dist/development/src/components/idp/IDPInitTrigger.cjs +0 -16
- package/dist/development/src/components/idp/IDPInitTrigger.cjs.map +0 -1
- package/dist/development/src/components/idp/IDPInitTrigger.js +0 -16
- package/dist/development/src/components/idp/IDPInitTrigger.js.map +0 -1
- package/dist/development/src/components/idp/IDPState.cjs +0 -14
- package/dist/development/src/components/idp/IDPState.cjs.map +0 -1
- package/dist/development/src/components/idp/IDPState.js +0 -14
- package/dist/development/src/components/idp/IDPState.js.map +0 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs +0 -32
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +0 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.js +0 -32
- package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +0 -1
- package/dist/development/src/components/triggers/LogoutTrigger.cjs +0 -16
- package/dist/development/src/components/triggers/LogoutTrigger.cjs.map +0 -1
- package/dist/development/src/components/triggers/LogoutTrigger.js +0 -16
- package/dist/development/src/components/triggers/LogoutTrigger.js.map +0 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs +0 -17
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +0 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js +0 -17
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +0 -1
- package/dist/development/src/components/triggers/TenantActionTrigger.cjs +0 -37
- package/dist/development/src/components/triggers/TenantActionTrigger.cjs.map +0 -1
- package/dist/development/src/components/triggers/TenantActionTrigger.js +0 -37
- package/dist/development/src/components/triggers/TenantActionTrigger.js.map +0 -1
- package/dist/development/src/consts.cjs +0 -5
- package/dist/development/src/consts.cjs.map +0 -1
- package/dist/development/src/consts.js +0 -5
- package/dist/development/src/consts.js.map +0 -1
- package/dist/development/src/contexts.cjs +0 -34
- package/dist/development/src/contexts.cjs.map +0 -1
- package/dist/development/src/contexts.js +0 -34
- package/dist/development/src/contexts.js.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs +0 -30
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js +0 -13
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs +0 -30
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js +0 -13
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs +0 -30
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js +0 -13
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js +0 -12
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js +0 -12
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs +0 -33
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.js +0 -16
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js +0 -12
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs +0 -31
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js +0 -14
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs +0 -33
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js +0 -16
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs +0 -30
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.js +0 -13
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js +0 -12
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js +0 -12
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js +0 -12
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js +0 -12
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs +0 -29
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js +0 -12
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs +0 -30
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js +0 -13
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs +0 -32
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js +0 -15
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs +0 -32
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js +0 -15
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs +0 -31
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js +0 -14
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs +0 -28
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js +0 -11
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs +0 -28
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js +0 -11
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs +0 -32
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js +0 -15
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs +0 -32
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js +0 -15
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +0 -1
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs +0 -29
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js +0 -12
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js.map +0 -1
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs +0 -29
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs.map +0 -1
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.js +0 -12
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.js.map +0 -1
- package/dist/development/src/hooks/queries/useMeQuery.cjs +0 -33
- package/dist/development/src/hooks/queries/useMeQuery.cjs.map +0 -1
- package/dist/development/src/hooks/queries/useMeQuery.js +0 -16
- package/dist/development/src/hooks/queries/useMeQuery.js.map +0 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs +0 -47
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +0 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js +0 -30
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +0 -1
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs +0 -34
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs.map +0 -1
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js +0 -17
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js.map +0 -1
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs +0 -36
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +0 -1
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js +0 -19
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +0 -1
- package/dist/development/src/hooks/useFetchIdentity.cjs +0 -52
- package/dist/development/src/hooks/useFetchIdentity.cjs.map +0 -1
- package/dist/development/src/hooks/useFetchIdentity.js +0 -52
- package/dist/development/src/hooks/useFetchIdentity.js.map +0 -1
- package/dist/development/src/hooks/useLogout.cjs +0 -10
- package/dist/development/src/hooks/useLogout.cjs.map +0 -1
- package/dist/development/src/hooks/useLogout.js +0 -10
- package/dist/development/src/hooks/useLogout.js.map +0 -1
- package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs +0 -53
- package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs.map +0 -1
- package/dist/development/src/hooks/usePasswordlessOtpActivator.js +0 -53
- package/dist/development/src/hooks/usePasswordlessOtpActivator.js.map +0 -1
- package/dist/development/src/hooks/useTenantApi.cjs +0 -36
- package/dist/development/src/hooks/useTenantApi.cjs.map +0 -1
- package/dist/development/src/hooks/useTenantApi.js +0 -36
- package/dist/development/src/hooks/useTenantApi.js.map +0 -1
- package/dist/development/src/hooks/useTenantMutation.cjs +0 -33
- package/dist/development/src/hooks/useTenantMutation.cjs.map +0 -1
- package/dist/development/src/hooks/useTenantMutation.js +0 -33
- package/dist/development/src/hooks/useTenantMutation.js.map +0 -1
- package/dist/development/src/hooks/useTenantQueryLoader.cjs +0 -36
- package/dist/development/src/hooks/useTenantQueryLoader.cjs.map +0 -1
- package/dist/development/src/hooks/useTenantQueryLoader.js +0 -36
- package/dist/development/src/hooks/useTenantQueryLoader.js.map +0 -1
- package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs +0 -51
- package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs.map +0 -1
- package/dist/development/src/internal/hooks/useHandleIDPResponse.js +0 -51
- package/dist/development/src/internal/hooks/useHandleIDPResponse.js.map +0 -1
- package/dist/development/src/internal/hooks/useIDPAutoInit.cjs +0 -19
- package/dist/development/src/internal/hooks/useIDPAutoInit.cjs.map +0 -1
- package/dist/development/src/internal/hooks/useIDPAutoInit.js +0 -19
- package/dist/development/src/internal/hooks/useIDPAutoInit.js.map +0 -1
- package/dist/development/src/internal/hooks/useIDPStateStore.cjs +0 -19
- package/dist/development/src/internal/hooks/useIDPStateStore.cjs.map +0 -1
- package/dist/development/src/internal/hooks/useIDPStateStore.js +0 -19
- package/dist/development/src/internal/hooks/useIDPStateStore.js.map +0 -1
- package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs +0 -44
- package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs.map +0 -1
- package/dist/development/src/internal/hooks/useInitIDPRedirect.js +0 -44
- package/dist/development/src/internal/hooks/useInitIDPRedirect.js.map +0 -1
- package/dist/development/src/internal/hooks/useLogoutInternal.cjs +0 -35
- package/dist/development/src/internal/hooks/useLogoutInternal.cjs.map +0 -1
- package/dist/development/src/internal/hooks/useLogoutInternal.js +0 -35
- package/dist/development/src/internal/hooks/useLogoutInternal.js.map +0 -1
- package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs +0 -31
- package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs.map +0 -1
- package/dist/development/src/internal/hooks/useRedirectToBacklink.js +0 -31
- package/dist/development/src/internal/hooks/useRedirectToBacklink.js.map +0 -1
- package/dist/development/src/internal/utils/getBaseHref.cjs +0 -8
- package/dist/development/src/internal/utils/getBaseHref.cjs.map +0 -1
- package/dist/development/src/internal/utils/getBaseHref.js +0 -8
- package/dist/development/src/internal/utils/getBaseHref.js.map +0 -1
- package/dist/development/src/internal/utils/hashing.cjs +0 -8
- package/dist/development/src/internal/utils/hashing.cjs.map +0 -1
- package/dist/development/src/internal/utils/hashing.js +0 -8
- package/dist/development/src/internal/utils/hashing.js.map +0 -1
- package/dist/development/src/internal/utils/randomInt.cjs +0 -29
- package/dist/development/src/internal/utils/randomInt.cjs.map +0 -1
- package/dist/development/src/internal/utils/randomInt.js +0 -29
- package/dist/development/src/internal/utils/randomInt.js.map +0 -1
- package/dist/production/index.cjs +0 -159
- package/dist/production/index.cjs.map +0 -1
- package/dist/production/index.js +0 -159
- package/dist/production/index.js.map +0 -1
- package/dist/production/src/components/IdentityProvider.cjs +0 -26
- package/dist/production/src/components/IdentityProvider.cjs.map +0 -1
- package/dist/production/src/components/IdentityProvider.js +0 -26
- package/dist/production/src/components/IdentityProvider.js.map +0 -1
- package/dist/production/src/components/IdentityState.cjs +0 -10
- package/dist/production/src/components/IdentityState.cjs.map +0 -1
- package/dist/production/src/components/IdentityState.js +0 -10
- package/dist/production/src/components/IdentityState.js.map +0 -1
- package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs +0 -51
- package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs.map +0 -1
- package/dist/production/src/components/forms/ChangeMyPasswordForm.js +0 -51
- package/dist/production/src/components/forms/ChangeMyPasswordForm.js.map +0 -1
- package/dist/production/src/components/forms/CreateApiKeyForm.cjs +0 -49
- package/dist/production/src/components/forms/CreateApiKeyForm.cjs.map +0 -1
- package/dist/production/src/components/forms/CreateApiKeyForm.js +0 -49
- package/dist/production/src/components/forms/CreateApiKeyForm.js.map +0 -1
- package/dist/production/src/components/forms/CreateSessionTokenForm.cjs +0 -42
- package/dist/production/src/components/forms/CreateSessionTokenForm.cjs.map +0 -1
- package/dist/production/src/components/forms/CreateSessionTokenForm.js +0 -42
- package/dist/production/src/components/forms/CreateSessionTokenForm.js.map +0 -1
- package/dist/production/src/components/forms/InviteForm.cjs +0 -54
- package/dist/production/src/components/forms/InviteForm.cjs.map +0 -1
- package/dist/production/src/components/forms/InviteForm.js +0 -54
- package/dist/production/src/components/forms/InviteForm.js.map +0 -1
- package/dist/production/src/components/forms/LoginForm.cjs +0 -77
- package/dist/production/src/components/forms/LoginForm.cjs.map +0 -1
- package/dist/production/src/components/forms/LoginForm.js +0 -77
- package/dist/production/src/components/forms/LoginForm.js.map +0 -1
- package/dist/production/src/components/forms/OtpConfirmForm.cjs +0 -41
- package/dist/production/src/components/forms/OtpConfirmForm.cjs.map +0 -1
- package/dist/production/src/components/forms/OtpConfirmForm.js +0 -41
- package/dist/production/src/components/forms/OtpConfirmForm.js.map +0 -1
- package/dist/production/src/components/forms/OtpPrepareForm.cjs +0 -28
- package/dist/production/src/components/forms/OtpPrepareForm.cjs.map +0 -1
- package/dist/production/src/components/forms/OtpPrepareForm.js +0 -28
- package/dist/production/src/components/forms/OtpPrepareForm.js.map +0 -1
- package/dist/production/src/components/forms/PasswordResetForm.cjs +0 -55
- package/dist/production/src/components/forms/PasswordResetForm.cjs.map +0 -1
- package/dist/production/src/components/forms/PasswordResetForm.js +0 -55
- package/dist/production/src/components/forms/PasswordResetForm.js.map +0 -1
- package/dist/production/src/components/forms/PasswordResetRequestForm.cjs +0 -41
- package/dist/production/src/components/forms/PasswordResetRequestForm.cjs.map +0 -1
- package/dist/production/src/components/forms/PasswordResetRequestForm.js +0 -41
- package/dist/production/src/components/forms/PasswordResetRequestForm.js.map +0 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +0 -71
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +0 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.js +0 -71
- package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +0 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs +0 -46
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs.map +0 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js +0 -46
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js.map +0 -1
- package/dist/production/src/components/forms/TenantForm.cjs +0 -83
- package/dist/production/src/components/forms/TenantForm.cjs.map +0 -1
- package/dist/production/src/components/forms/TenantForm.js +0 -83
- package/dist/production/src/components/forms/TenantForm.js.map +0 -1
- package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs +0 -56
- package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs.map +0 -1
- package/dist/production/src/components/forms/UpdateProjectMemberForm.js +0 -56
- package/dist/production/src/components/forms/UpdateProjectMemberForm.js.map +0 -1
- package/dist/production/src/components/idp/IDP.cjs +0 -48
- package/dist/production/src/components/idp/IDP.cjs.map +0 -1
- package/dist/production/src/components/idp/IDP.js +0 -48
- package/dist/production/src/components/idp/IDP.js.map +0 -1
- package/dist/production/src/components/idp/IDPInitTrigger.cjs +0 -12
- package/dist/production/src/components/idp/IDPInitTrigger.cjs.map +0 -1
- package/dist/production/src/components/idp/IDPInitTrigger.js +0 -12
- package/dist/production/src/components/idp/IDPInitTrigger.js.map +0 -1
- package/dist/production/src/components/idp/IDPState.cjs +0 -10
- package/dist/production/src/components/idp/IDPState.cjs.map +0 -1
- package/dist/production/src/components/idp/IDPState.js +0 -10
- package/dist/production/src/components/idp/IDPState.js.map +0 -1
- package/dist/production/src/components/triggers/DisableOtpTrigger.cjs +0 -24
- package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +0 -1
- package/dist/production/src/components/triggers/DisableOtpTrigger.js +0 -24
- package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +0 -1
- package/dist/production/src/components/triggers/LogoutTrigger.cjs +0 -12
- package/dist/production/src/components/triggers/LogoutTrigger.cjs.map +0 -1
- package/dist/production/src/components/triggers/LogoutTrigger.js +0 -12
- package/dist/production/src/components/triggers/LogoutTrigger.js.map +0 -1
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs +0 -13
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +0 -1
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js +0 -13
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +0 -1
- package/dist/production/src/components/triggers/TenantActionTrigger.cjs +0 -33
- package/dist/production/src/components/triggers/TenantActionTrigger.cjs.map +0 -1
- package/dist/production/src/components/triggers/TenantActionTrigger.js +0 -33
- package/dist/production/src/components/triggers/TenantActionTrigger.js.map +0 -1
- package/dist/production/src/consts.cjs +0 -5
- package/dist/production/src/consts.cjs.map +0 -1
- package/dist/production/src/consts.js +0 -5
- package/dist/production/src/consts.js.map +0 -1
- package/dist/production/src/contexts.cjs +0 -34
- package/dist/production/src/contexts.cjs.map +0 -1
- package/dist/production/src/contexts.js +0 -34
- package/dist/production/src/contexts.js.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs +0 -30
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js +0 -13
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs +0 -30
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js +0 -13
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs +0 -30
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js +0 -13
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js +0 -12
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js +0 -12
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs +0 -33
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.js +0 -16
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js +0 -12
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs +0 -31
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js +0 -14
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs +0 -33
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js +0 -16
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs +0 -30
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.js +0 -13
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js +0 -12
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js +0 -12
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js +0 -12
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js +0 -12
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs +0 -29
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js +0 -12
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs +0 -30
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js +0 -13
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs +0 -32
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js +0 -15
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs +0 -32
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js +0 -15
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs +0 -31
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js +0 -14
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs +0 -28
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js +0 -11
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs +0 -28
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js +0 -11
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs +0 -32
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js +0 -15
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs +0 -32
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js +0 -15
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +0 -1
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs +0 -29
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js +0 -12
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js.map +0 -1
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs +0 -29
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs.map +0 -1
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.js +0 -12
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.js.map +0 -1
- package/dist/production/src/hooks/queries/useMeQuery.cjs +0 -33
- package/dist/production/src/hooks/queries/useMeQuery.cjs.map +0 -1
- package/dist/production/src/hooks/queries/useMeQuery.js +0 -16
- package/dist/production/src/hooks/queries/useMeQuery.js.map +0 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs +0 -47
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +0 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js +0 -30
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js.map +0 -1
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.cjs +0 -34
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.cjs.map +0 -1
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.js +0 -17
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.js.map +0 -1
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.cjs +0 -36
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +0 -1
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.js +0 -19
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +0 -1
- package/dist/production/src/hooks/useFetchIdentity.cjs +0 -52
- package/dist/production/src/hooks/useFetchIdentity.cjs.map +0 -1
- package/dist/production/src/hooks/useFetchIdentity.js +0 -52
- package/dist/production/src/hooks/useFetchIdentity.js.map +0 -1
- package/dist/production/src/hooks/useLogout.cjs +0 -10
- package/dist/production/src/hooks/useLogout.cjs.map +0 -1
- package/dist/production/src/hooks/useLogout.js +0 -10
- package/dist/production/src/hooks/useLogout.js.map +0 -1
- package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs +0 -53
- package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs.map +0 -1
- package/dist/production/src/hooks/usePasswordlessOtpActivator.js +0 -53
- package/dist/production/src/hooks/usePasswordlessOtpActivator.js.map +0 -1
- package/dist/production/src/hooks/useTenantApi.cjs +0 -36
- package/dist/production/src/hooks/useTenantApi.cjs.map +0 -1
- package/dist/production/src/hooks/useTenantApi.js +0 -36
- package/dist/production/src/hooks/useTenantApi.js.map +0 -1
- package/dist/production/src/hooks/useTenantMutation.cjs +0 -33
- package/dist/production/src/hooks/useTenantMutation.cjs.map +0 -1
- package/dist/production/src/hooks/useTenantMutation.js +0 -33
- package/dist/production/src/hooks/useTenantMutation.js.map +0 -1
- package/dist/production/src/hooks/useTenantQueryLoader.cjs +0 -36
- package/dist/production/src/hooks/useTenantQueryLoader.cjs.map +0 -1
- package/dist/production/src/hooks/useTenantQueryLoader.js +0 -36
- package/dist/production/src/hooks/useTenantQueryLoader.js.map +0 -1
- package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs +0 -51
- package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs.map +0 -1
- package/dist/production/src/internal/hooks/useHandleIDPResponse.js +0 -51
- package/dist/production/src/internal/hooks/useHandleIDPResponse.js.map +0 -1
- package/dist/production/src/internal/hooks/useIDPAutoInit.cjs +0 -19
- package/dist/production/src/internal/hooks/useIDPAutoInit.cjs.map +0 -1
- package/dist/production/src/internal/hooks/useIDPAutoInit.js +0 -19
- package/dist/production/src/internal/hooks/useIDPAutoInit.js.map +0 -1
- package/dist/production/src/internal/hooks/useIDPStateStore.cjs +0 -19
- package/dist/production/src/internal/hooks/useIDPStateStore.cjs.map +0 -1
- package/dist/production/src/internal/hooks/useIDPStateStore.js +0 -19
- package/dist/production/src/internal/hooks/useIDPStateStore.js.map +0 -1
- package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs +0 -44
- package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs.map +0 -1
- package/dist/production/src/internal/hooks/useInitIDPRedirect.js +0 -44
- package/dist/production/src/internal/hooks/useInitIDPRedirect.js.map +0 -1
- package/dist/production/src/internal/hooks/useLogoutInternal.cjs +0 -35
- package/dist/production/src/internal/hooks/useLogoutInternal.cjs.map +0 -1
- package/dist/production/src/internal/hooks/useLogoutInternal.js +0 -35
- package/dist/production/src/internal/hooks/useLogoutInternal.js.map +0 -1
- package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs +0 -31
- package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs.map +0 -1
- package/dist/production/src/internal/hooks/useRedirectToBacklink.js +0 -31
- package/dist/production/src/internal/hooks/useRedirectToBacklink.js.map +0 -1
- package/dist/production/src/internal/utils/getBaseHref.cjs +0 -8
- package/dist/production/src/internal/utils/getBaseHref.cjs.map +0 -1
- package/dist/production/src/internal/utils/getBaseHref.js +0 -8
- package/dist/production/src/internal/utils/getBaseHref.js.map +0 -1
- package/dist/production/src/internal/utils/hashing.cjs +0 -8
- package/dist/production/src/internal/utils/hashing.cjs.map +0 -1
- package/dist/production/src/internal/utils/hashing.js +0 -8
- package/dist/production/src/internal/utils/hashing.js.map +0 -1
- package/dist/production/src/internal/utils/randomInt.cjs +0 -29
- package/dist/production/src/internal/utils/randomInt.cjs.map +0 -1
- package/dist/production/src/internal/utils/randomInt.js +0 -29
- package/dist/production/src/internal/utils/randomInt.js.map +0 -1
- package/dist/types/components/IdentityProvider.d.ts +0 -6
- package/dist/types/components/IdentityProvider.d.ts.map +0 -1
- package/dist/types/components/IdentityState.d.ts +0 -8
- package/dist/types/components/IdentityState.d.ts.map +0 -1
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts +0 -19
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +0 -1
- package/dist/types/components/forms/CreateApiKeyForm.d.ts +0 -23
- package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +0 -1
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts +0 -22
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +0 -1
- package/dist/types/components/forms/InviteForm.d.ts +0 -25
- package/dist/types/components/forms/InviteForm.d.ts.map +0 -1
- package/dist/types/components/forms/LoginForm.d.ts +0 -20
- package/dist/types/components/forms/LoginForm.d.ts.map +0 -1
- package/dist/types/components/forms/OtpConfirmForm.d.ts +0 -17
- package/dist/types/components/forms/OtpConfirmForm.d.ts.map +0 -1
- package/dist/types/components/forms/OtpPrepareForm.d.ts +0 -19
- package/dist/types/components/forms/OtpPrepareForm.d.ts.map +0 -1
- package/dist/types/components/forms/PasswordResetForm.d.ts +0 -20
- package/dist/types/components/forms/PasswordResetForm.d.ts.map +0 -1
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts +0 -17
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +0 -1
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts +0 -22
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +0 -1
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts +0 -20
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +0 -1
- package/dist/types/components/forms/TenantForm.d.ts +0 -37
- package/dist/types/components/forms/TenantForm.d.ts.map +0 -1
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts +0 -19
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +0 -1
- package/dist/types/components/forms/index.d.ts +0 -13
- package/dist/types/components/forms/index.d.ts.map +0 -1
- package/dist/types/components/idp/IDP.d.ts +0 -10
- package/dist/types/components/idp/IDP.d.ts.map +0 -1
- package/dist/types/components/idp/IDPInitTrigger.d.ts +0 -7
- package/dist/types/components/idp/IDPInitTrigger.d.ts.map +0 -1
- package/dist/types/components/idp/IDPState.d.ts +0 -8
- package/dist/types/components/idp/IDPState.d.ts.map +0 -1
- package/dist/types/components/idp/index.d.ts +0 -4
- package/dist/types/components/idp/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -6
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts +0 -8
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts.map +0 -1
- package/dist/types/components/triggers/LogoutTrigger.d.ts +0 -5
- package/dist/types/components/triggers/LogoutTrigger.d.ts.map +0 -1
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +0 -9
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +0 -1
- package/dist/types/components/triggers/TenantActionTrigger.d.ts +0 -22
- package/dist/types/components/triggers/TenantActionTrigger.d.ts.map +0 -1
- package/dist/types/components/triggers/index.d.ts +0 -4
- package/dist/types/components/triggers/index.d.ts.map +0 -1
- package/dist/types/consts.d.ts +0 -2
- package/dist/types/consts.d.ts.map +0 -1
- package/dist/types/contexts.d.ts +0 -20
- package/dist/types/contexts.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts +0 -9
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/apiKey/index.d.ts +0 -5
- package/dist/types/hooks/mutations/apiKey/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts +0 -83
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts +0 -73
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts +0 -59
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts +0 -21
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/auth/index.d.ts +0 -4
- package/dist/types/hooks/mutations/auth/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts +0 -21
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts +0 -63
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts +0 -21
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/idp/index.d.ts +0 -3
- package/dist/types/hooks/mutations/idp/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts +0 -19
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts +0 -76
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/index.d.ts +0 -10
- package/dist/types/hooks/mutations/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/invite/index.d.ts +0 -2
- package/dist/types/hooks/mutations/invite/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts +0 -97
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/memberships/index.d.ts +0 -4
- package/dist/types/hooks/mutations/memberships/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts +0 -33
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts +0 -23
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts +0 -33
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/otp/index.d.ts +0 -4
- package/dist/types/hooks/mutations/otp/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts +0 -21
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts +0 -17
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts +0 -25
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordReset/index.d.ts +0 -3
- package/dist/types/hooks/mutations/passwordReset/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts +0 -23
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts +0 -23
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordless/index.d.ts +0 -6
- package/dist/types/hooks/mutations/passwordless/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts +0 -8
- package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts +0 -3
- package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts +0 -3
- package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts +0 -19
- package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts +0 -34
- package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts.map +0 -1
- package/dist/types/hooks/mutations/profile/index.d.ts +0 -3
- package/dist/types/hooks/mutations/profile/index.d.ts.map +0 -1
- package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts +0 -21
- package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts.map +0 -1
- package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts +0 -23
- package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts.map +0 -1
- package/dist/types/hooks/queries/index.d.ts +0 -5
- package/dist/types/hooks/queries/index.d.ts.map +0 -1
- package/dist/types/hooks/queries/useMeQuery.d.ts +0 -52
- package/dist/types/hooks/queries/useMeQuery.d.ts.map +0 -1
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +0 -43
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +0 -1
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts +0 -20
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +0 -1
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +0 -66
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +0 -1
- package/dist/types/hooks/useFetchIdentity.d.ts +0 -6
- package/dist/types/hooks/useFetchIdentity.d.ts.map +0 -1
- package/dist/types/hooks/useLogout.d.ts +0 -4
- package/dist/types/hooks/useLogout.d.ts.map +0 -1
- package/dist/types/hooks/usePasswordlessOtpActivator.d.ts +0 -19
- package/dist/types/hooks/usePasswordlessOtpActivator.d.ts.map +0 -1
- package/dist/types/hooks/useTenantApi.d.ts +0 -12
- package/dist/types/hooks/useTenantApi.d.ts.map +0 -1
- package/dist/types/hooks/useTenantMutation.d.ts +0 -25
- package/dist/types/hooks/useTenantMutation.d.ts.map +0 -1
- package/dist/types/hooks/useTenantQueryLoader.d.ts +0 -17
- package/dist/types/hooks/useTenantQueryLoader.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts +0 -10
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +0 -1
- package/dist/types/internal/hooks/useIDPAutoInit.d.ts +0 -2
- package/dist/types/internal/hooks/useIDPAutoInit.d.ts.map +0 -1
- package/dist/types/internal/hooks/useIDPStateStore.d.ts +0 -9
- package/dist/types/internal/hooks/useIDPStateStore.d.ts.map +0 -1
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts +0 -15
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +0 -1
- package/dist/types/internal/hooks/useLogoutInternal.d.ts +0 -4
- package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +0 -1
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts +0 -4
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts.map +0 -1
- package/dist/types/internal/utils/getBaseHref.d.ts +0 -2
- package/dist/types/internal/utils/getBaseHref.d.ts.map +0 -1
- package/dist/types/internal/utils/hashing.d.ts +0 -2
- package/dist/types/internal/utils/hashing.d.ts.map +0 -1
- package/dist/types/internal/utils/randomInt.d.ts +0 -3
- package/dist/types/internal/utils/randomInt.d.ts.map +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1
- package/dist/types/types/Identity.d.ts +0 -20
- package/dist/types/types/Identity.d.ts.map +0 -1
- package/dist/types/types/IdentityMethods.d.ts +0 -5
- package/dist/types/types/IdentityMethods.d.ts.map +0 -1
- package/dist/types/types/IdentityStateValue.d.ts +0 -2
- package/dist/types/types/IdentityStateValue.d.ts.map +0 -1
- package/dist/types/types/forms.d.ts +0 -18
- package/dist/types/types/forms.d.ts.map +0 -1
- package/dist/types/types/idp.d.ts +0 -30
- package/dist/types/types/idp.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -6
- package/dist/types/types/index.d.ts.map +0 -1
|
@@ -8,7 +8,10 @@ export const useFetchIdentity = (): [{ state: IdentityStateValue; identity: Iden
|
|
|
8
8
|
const sessionToken = useSessionToken()
|
|
9
9
|
const fetchMe = useMeQuery()
|
|
10
10
|
|
|
11
|
-
const [identityState, setIdentityState] = useState<ReturnType<typeof useFetchIdentity>[0]>({
|
|
11
|
+
const [identityState, setIdentityState] = useState<ReturnType<typeof useFetchIdentity>[0]>({
|
|
12
|
+
state: sessionToken ? 'loading' : 'none',
|
|
13
|
+
identity: undefined,
|
|
14
|
+
})
|
|
12
15
|
|
|
13
16
|
const clearIdentity = useCallback(() => setIdentityState({ state: 'cleared', identity: undefined }), [])
|
|
14
17
|
const logout = useLogoutInternal(clearIdentity)
|
|
@@ -5,7 +5,7 @@ import { randomString } from '../internal/utils/randomInt'
|
|
|
5
5
|
import { calculateHash } from '../internal/utils/hashing'
|
|
6
6
|
import { ActivatePasswordlessOtpErrorCode } from '@contember/graphql-client-tenant'
|
|
7
7
|
|
|
8
|
-
const usePasswordlessParams = (): {localStorageRequestId: string | null; urlRequestId: string | null; urlToken: string | null} => {
|
|
8
|
+
const usePasswordlessParams = (): { localStorageRequestId: string | null; urlRequestId: string | null; urlToken: string | null } => {
|
|
9
9
|
const localStorageValue = localStorage.getItem(PASSWORDLESS_REQUEST_STORAGE_KEY) ?? null
|
|
10
10
|
const urlParams = new URLSearchParams(window.location.search)
|
|
11
11
|
const requestId = urlParams.get('request_id')
|
|
@@ -18,7 +18,7 @@ export type PasswordlessResponseHandlerState =
|
|
|
18
18
|
| { type: 'empty' }
|
|
19
19
|
| { type: 'otp_activating' }
|
|
20
20
|
| { type: 'otp_activated'; otp: string }
|
|
21
|
-
| { type: 'otp_activation_failed'; error: ActivatePasswordlessOtpErrorCode | 'UNKNOWN_ERROR'}
|
|
21
|
+
| { type: 'otp_activation_failed'; error: ActivatePasswordlessOtpErrorCode | 'UNKNOWN_ERROR' }
|
|
22
22
|
| { type: 'can_proceed_to_login' }
|
|
23
23
|
|
|
24
24
|
export const usePasswordlessOtpActivator = ({ otpLength = 6, otpChars = '0123456789ABCDEF' }: {
|
|
@@ -39,8 +39,9 @@ export const usePasswordlessOtpActivator = ({ otpLength = 6, otpChars = '0123456
|
|
|
39
39
|
return { type: 'empty' }
|
|
40
40
|
})
|
|
41
41
|
|
|
42
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: intentional
|
|
42
43
|
useEffect(() => {
|
|
43
|
-
(async () => {
|
|
44
|
+
;(async () => {
|
|
44
45
|
if (state.type === 'otp_activating') {
|
|
45
46
|
const otpCode = randomString(otpLength, otpChars)
|
|
46
47
|
try {
|
|
@@ -21,7 +21,6 @@ export const useTenantApi = ({ headers, apiToken }: TenantApiOptions = {}) => {
|
|
|
21
21
|
readonly apiToken?: string | typeof LoginToken
|
|
22
22
|
},
|
|
23
23
|
): Promise<TData> => {
|
|
24
|
-
|
|
25
24
|
const writer = new TextWriter()
|
|
26
25
|
writer.text(`${fetcher.fetchableType.name.toLowerCase()}`)
|
|
27
26
|
if (fetcher.variableTypeMap.size !== 0) {
|
|
@@ -6,7 +6,9 @@ export type TenantMutationOkResponse<Result> = { ok: true; result: Result }
|
|
|
6
6
|
export type TenantMutationErrorResponse<Error> = { ok: false; error: Error; developerMessage?: string }
|
|
7
7
|
export type TenantMutationResponse<Result, Error> = TenantMutationOkResponse<Result> | TenantMutationErrorResponse<Error>
|
|
8
8
|
|
|
9
|
-
export type TenantMutation<Result, Error> = {
|
|
9
|
+
export type TenantMutation<Result, Error> = {
|
|
10
|
+
readonly mutation?: { readonly ok: boolean; readonly error?: { readonly code: Error; readonly developerMessage: string }; readonly result?: Result }
|
|
11
|
+
}
|
|
10
12
|
|
|
11
13
|
export const useTenantMutation = <TResult, TError extends string = never, TVariables extends object = {}>(
|
|
12
14
|
fetcher: MutationFetcher<TenantMutation<TResult, TError>, TVariables>,
|
|
@@ -33,13 +35,13 @@ export const useTenantMutation = <TResult, TError extends string = never, TVaria
|
|
|
33
35
|
}, [fetcher, tenantApi])
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
|
|
37
38
|
export const createTenantMutation = <TResult, TError extends string = never, TVariables extends object = {}>(
|
|
38
39
|
fetcher: MutationFetcher<TenantMutation<TResult, TError>, TVariables>,
|
|
39
40
|
defaultOptions?: TenantApiOptions,
|
|
40
41
|
) => {
|
|
41
|
-
return ({ headers, apiToken }: TenantApiOptions = {}) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
return ({ headers, apiToken }: TenantApiOptions = {}) =>
|
|
43
|
+
useTenantMutation(fetcher, {
|
|
44
|
+
headers: useMemo(() => ({ ...defaultOptions?.headers, ...headers }), [headers]),
|
|
45
|
+
apiToken: apiToken ?? defaultOptions?.apiToken,
|
|
46
|
+
})
|
|
45
47
|
}
|
|
@@ -11,7 +11,10 @@ export type TenantQueryLoaderMethods = {
|
|
|
11
11
|
refresh: () => void
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const useTenantQueryLoader = <TVariables extends object, Result>(
|
|
14
|
+
export const useTenantQueryLoader = <TVariables extends object, Result>(
|
|
15
|
+
fetcher: (variables: TVariables) => Promise<Result>,
|
|
16
|
+
variables: TVariables,
|
|
17
|
+
): [TenantQueryLoaderState<Result>, TenantQueryLoaderMethods] => {
|
|
15
18
|
const [state, setState] = useState<TenantQueryLoaderState<Result>>({ state: 'loading' })
|
|
16
19
|
const stateRef = useRef(state)
|
|
17
20
|
stateRef.current = state
|
|
@@ -37,10 +40,8 @@ export const useTenantQueryLoader = <TVariables extends object, Result>(fetcher:
|
|
|
37
40
|
}
|
|
38
41
|
setState({ state: 'error', error: e })
|
|
39
42
|
}
|
|
40
|
-
|
|
41
43
|
}, [fetcher, variablesMemo])
|
|
42
44
|
|
|
43
|
-
|
|
44
45
|
useEffect(() => {
|
|
45
46
|
triggerLoad()
|
|
46
47
|
}, [triggerLoad])
|
|
@@ -12,6 +12,7 @@ export interface UseHandleIDPResponseProps {
|
|
|
12
12
|
|
|
13
13
|
setState: (state: SetStateAction<IDPStateValue>) => void
|
|
14
14
|
hasOauthResponse: boolean
|
|
15
|
+
redirectUrl?: string
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
const headers = {
|
|
@@ -20,7 +21,9 @@ const headers = {
|
|
|
20
21
|
|
|
21
22
|
const DEFAULT_LOGIN_EXPIRATION = 14 * 24 * 60 // 14 days
|
|
22
23
|
|
|
23
|
-
export const useHandleIDPResponse = (
|
|
24
|
+
export const useHandleIDPResponse = (
|
|
25
|
+
{ onLogin, expiration = DEFAULT_LOGIN_EXPIRATION, setState, hasOauthResponse, redirectUrl }: UseHandleIDPResponseProps,
|
|
26
|
+
): void => {
|
|
24
27
|
const idpSignIn = useSignInIDPMutation({ headers })
|
|
25
28
|
const setSessionToken = useSetSessionToken()
|
|
26
29
|
|
|
@@ -44,7 +47,7 @@ export const useHandleIDPResponse = ({ onLogin, expiration = DEFAULT_LOGIN_EXPIR
|
|
|
44
47
|
const response = await idpSignIn({
|
|
45
48
|
data: {
|
|
46
49
|
url: window.location.href,
|
|
47
|
-
redirectUrl: getBaseHref(),
|
|
50
|
+
redirectUrl: redirectUrl || getBaseHref(),
|
|
48
51
|
sessionData: idpState.sessionData,
|
|
49
52
|
},
|
|
50
53
|
identityProvider: idpState.provider,
|
|
@@ -60,5 +63,5 @@ export const useHandleIDPResponse = ({ onLogin, expiration = DEFAULT_LOGIN_EXPIR
|
|
|
60
63
|
redirectToBackLink()
|
|
61
64
|
}
|
|
62
65
|
})()
|
|
63
|
-
}, [idpSignIn, onLogin, setSessionToken, hasOauthResponse, loadIdpState, expiration, setState, redirectToBackLink])
|
|
66
|
+
}, [idpSignIn, onLogin, setSessionToken, hasOauthResponse, loadIdpState, expiration, setState, redirectToBackLink, redirectUrl])
|
|
64
67
|
}
|
|
@@ -2,7 +2,7 @@ import { useCallback } from 'react'
|
|
|
2
2
|
|
|
3
3
|
export type IDPState = { provider: string; sessionData: any }
|
|
4
4
|
|
|
5
|
-
export const useIDPStateStore = (): {get: () => IDPState | null; set: (state: IDPState) => void} => {
|
|
5
|
+
export const useIDPStateStore = (): { get: () => IDPState | null; set: (state: IDPState) => void } => {
|
|
6
6
|
return {
|
|
7
7
|
get: useCallback(() => {
|
|
8
8
|
const item = sessionStorage.getItem('idp')
|
|
@@ -8,9 +8,10 @@ import { useSaveBacklink } from './useRedirectToBacklink'
|
|
|
8
8
|
export interface UseInitIDPRedirectProps {
|
|
9
9
|
onRedirect?: (url: string) => void
|
|
10
10
|
setState: (state: SetStateAction<IDPStateValue>) => void
|
|
11
|
+
redirectUrl?: string
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export const useInitIDPRedirect = ({ onRedirect, setState }: UseInitIDPRedirectProps) => {
|
|
14
|
+
export const useInitIDPRedirect = ({ onRedirect, setState, redirectUrl }: UseInitIDPRedirectProps) => {
|
|
14
15
|
const initRequest = useInitSignInIDPMutation()
|
|
15
16
|
const saveBacklink = useSaveBacklink()
|
|
16
17
|
const { set: saveIdpState } = useIDPStateStore()
|
|
@@ -24,7 +25,7 @@ export const useInitIDPRedirect = ({ onRedirect, setState }: UseInitIDPRedirectP
|
|
|
24
25
|
setState({ type: 'processing_init' })
|
|
25
26
|
const response = await initRequest({
|
|
26
27
|
data: {
|
|
27
|
-
redirectUrl: getBaseHref(),
|
|
28
|
+
redirectUrl: redirectUrl || getBaseHref(),
|
|
28
29
|
},
|
|
29
30
|
identityProvider: provider,
|
|
30
31
|
})
|
|
@@ -44,5 +45,5 @@ export const useInitIDPRedirect = ({ onRedirect, setState }: UseInitIDPRedirectP
|
|
|
44
45
|
console.error(e)
|
|
45
46
|
return fail('UNKNOWN_ERROR')
|
|
46
47
|
}
|
|
47
|
-
}, [initRequest, onRedirect, saveBacklink, saveIdpState, setState])
|
|
48
|
+
}, [initRequest, onRedirect, saveBacklink, saveIdpState, setState, redirectUrl])
|
|
48
49
|
}
|
|
@@ -8,7 +8,7 @@ export const useLogoutInternal = (clearIdentity?: () => void) => {
|
|
|
8
8
|
|
|
9
9
|
return useCallback(
|
|
10
10
|
async ({ noRedirect = false }: { noRedirect?: boolean } = {}) => {
|
|
11
|
-
if (navigator.credentials
|
|
11
|
+
if (navigator.credentials?.preventSilentAccess) {
|
|
12
12
|
try {
|
|
13
13
|
await navigator.credentials.preventSilentAccess()
|
|
14
14
|
} catch {
|
|
@@ -5,23 +5,30 @@ const getBacklinkFromUrl = () => {
|
|
|
5
5
|
return new URLSearchParams(window.location.search).get('backlink')
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export const useSaveBacklink = (
|
|
8
|
+
export const useSaveBacklink = ({ storage = 'session' }: {
|
|
9
|
+
storage?: 'session' | 'local'
|
|
10
|
+
} = {}) => {
|
|
9
11
|
return useCallback(() => {
|
|
10
12
|
const backlink = getBacklinkFromUrl()
|
|
11
13
|
if (!backlink) {
|
|
12
14
|
return
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
if (storage === 'local') {
|
|
17
|
+
localStorage.setItem('backlink', backlink)
|
|
18
|
+
} else {
|
|
19
|
+
sessionStorage.setItem('backlink', backlink)
|
|
20
|
+
}
|
|
21
|
+
}, [storage])
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
export const useRedirectToBacklinkCallback = () => {
|
|
19
25
|
return useCallback(() => {
|
|
20
|
-
const backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink')
|
|
26
|
+
const backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')
|
|
21
27
|
if (!backlink) {
|
|
22
28
|
return
|
|
23
29
|
}
|
|
24
30
|
sessionStorage.removeItem('backlink')
|
|
31
|
+
localStorage.removeItem('backlink')
|
|
25
32
|
const resolvedBacklink = new URL(backlink, window.location.href)
|
|
26
33
|
if (resolvedBacklink.origin === window.location.origin) {
|
|
27
34
|
window.location.href = resolvedBacklink.toString()
|
|
@@ -38,5 +45,4 @@ export const useRedirectToBacklink = () => {
|
|
|
38
45
|
}
|
|
39
46
|
redirect()
|
|
40
47
|
}, [identity, redirect])
|
|
41
|
-
|
|
42
48
|
}
|
package/src/types/idp.ts
CHANGED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const contexts = require("./src/contexts.cjs");
|
|
4
|
-
const IdentityProvider = require("./src/components/IdentityProvider.cjs");
|
|
5
|
-
const IdentityState = require("./src/components/IdentityState.cjs");
|
|
6
|
-
const CreateApiKeyForm = require("./src/components/forms/CreateApiKeyForm.cjs");
|
|
7
|
-
const CreateSessionTokenForm = require("./src/components/forms/CreateSessionTokenForm.cjs");
|
|
8
|
-
const ChangeMyPasswordForm = require("./src/components/forms/ChangeMyPasswordForm.cjs");
|
|
9
|
-
const InviteForm = require("./src/components/forms/InviteForm.cjs");
|
|
10
|
-
const LoginForm = require("./src/components/forms/LoginForm.cjs");
|
|
11
|
-
const PasswordResetForm = require("./src/components/forms/PasswordResetForm.cjs");
|
|
12
|
-
const PasswordResetRequestForm = require("./src/components/forms/PasswordResetRequestForm.cjs");
|
|
13
|
-
const PasswordlessSignInForm = require("./src/components/forms/PasswordlessSignInForm.cjs");
|
|
14
|
-
const PasswordlessSignInInitForm = require("./src/components/forms/PasswordlessSignInInitForm.cjs");
|
|
15
|
-
const OtpPrepareForm = require("./src/components/forms/OtpPrepareForm.cjs");
|
|
16
|
-
const OtpConfirmForm = require("./src/components/forms/OtpConfirmForm.cjs");
|
|
17
|
-
const UpdateProjectMemberForm = require("./src/components/forms/UpdateProjectMemberForm.cjs");
|
|
18
|
-
const IDPState = require("./src/components/idp/IDPState.cjs");
|
|
19
|
-
const IDP = require("./src/components/idp/IDP.cjs");
|
|
20
|
-
const IDPInitTrigger = require("./src/components/idp/IDPInitTrigger.cjs");
|
|
21
|
-
const DisableOtpTrigger = require("./src/components/triggers/DisableOtpTrigger.cjs");
|
|
22
|
-
const LogoutTrigger = require("./src/components/triggers/LogoutTrigger.cjs");
|
|
23
|
-
const RemoveProjectMemberTrigger = require("./src/components/triggers/RemoveProjectMemberTrigger.cjs");
|
|
24
|
-
const useCreateApiKeyMutation = require("./src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs");
|
|
25
|
-
const useCreateSessionTokenMutation = require("./src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs");
|
|
26
|
-
const useCreateGlobalApiKeyMutation = require("./src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs");
|
|
27
|
-
const useDisableApiKeyMutation = require("./src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs");
|
|
28
|
-
const useChangeMyPasswordMutation = require("./src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs");
|
|
29
|
-
const useSignInMutation = require("./src/hooks/mutations/auth/useSignInMutation.cjs");
|
|
30
|
-
const useSignOutMutation = require("./src/hooks/mutations/auth/useSignOutMutation.cjs");
|
|
31
|
-
const useInviteMutation = require("./src/hooks/mutations/invite/useInviteMutation.cjs");
|
|
32
|
-
const useInitSignInIDPMutation = require("./src/hooks/mutations/idp/useInitSignInIDPMutation.cjs");
|
|
33
|
-
const useSignInIdpMutation = require("./src/hooks/mutations/idp/useSignInIdpMutation.cjs");
|
|
34
|
-
const useRemoveProjectMemberMutation = require("./src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs");
|
|
35
|
-
const useAddProjectMemberMutation = require("./src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs");
|
|
36
|
-
const useUpdateProjectMemberMutation = require("./src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs");
|
|
37
|
-
const useActivatePasswordlessOtpMutation = require("./src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs");
|
|
38
|
-
const useDisableMyPasswordlessMutation = require("./src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs");
|
|
39
|
-
const useEnableMyPasswordlessMutation = require("./src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs");
|
|
40
|
-
const useSignInPasswordlessMutation = require("./src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs");
|
|
41
|
-
const useInitSignInPasswordlessMutation = require("./src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs");
|
|
42
|
-
const useConfirmOtpMutation = require("./src/hooks/mutations/otp/useConfirmOtpMutation.cjs");
|
|
43
|
-
const useDisableOtpMutation = require("./src/hooks/mutations/otp/useDisableOtpMutation.cjs");
|
|
44
|
-
const usePrepareOtpMutation = require("./src/hooks/mutations/otp/usePrepareOtpMutation.cjs");
|
|
45
|
-
const useCreateResetPasswordRequestMutation = require("./src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs");
|
|
46
|
-
const useResetPasswordMutation = require("./src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs");
|
|
47
|
-
const useChangeProfile = require("./src/hooks/mutations/profile/useChangeProfile.cjs");
|
|
48
|
-
const useChangeMyProfile = require("./src/hooks/mutations/profile/useChangeMyProfile.cjs");
|
|
49
|
-
const useMeQuery = require("./src/hooks/queries/useMeQuery.cjs");
|
|
50
|
-
const useProjectMembersQuery = require("./src/hooks/queries/useProjectMembersQuery.cjs");
|
|
51
|
-
const useProjectMembershipsQuery = require("./src/hooks/queries/useProjectMembershipsQuery.cjs");
|
|
52
|
-
const useProjectRolesDefinitionQuery = require("./src/hooks/queries/useProjectRolesDefinitionQuery.cjs");
|
|
53
|
-
const useFetchIdentity = require("./src/hooks/useFetchIdentity.cjs");
|
|
54
|
-
const useLogout = require("./src/hooks/useLogout.cjs");
|
|
55
|
-
const useTenantApi = require("./src/hooks/useTenantApi.cjs");
|
|
56
|
-
const useTenantQueryLoader = require("./src/hooks/useTenantQueryLoader.cjs");
|
|
57
|
-
const useTenantMutation = require("./src/hooks/useTenantMutation.cjs");
|
|
58
|
-
const usePasswordlessOtpActivator = require("./src/hooks/usePasswordlessOtpActivator.cjs");
|
|
59
|
-
exports.FormContext = contexts.FormContext;
|
|
60
|
-
exports.IDPMethodsContextProvider = contexts.IDPMethodsContextProvider;
|
|
61
|
-
exports.IDPStateContextProvider = contexts.IDPStateContextProvider;
|
|
62
|
-
exports.IdentityContext = contexts.IdentityContext;
|
|
63
|
-
exports.IdentityMethodsContext = contexts.IdentityMethodsContext;
|
|
64
|
-
exports.IdentityStateContext = contexts.IdentityStateContext;
|
|
65
|
-
exports.useForm = contexts.useForm;
|
|
66
|
-
exports.useIDPMethods = contexts.useIDPMethods;
|
|
67
|
-
exports.useIDPState = contexts.useIDPState;
|
|
68
|
-
exports.useIdentity = contexts.useIdentity;
|
|
69
|
-
exports.useIdentityMethods = contexts.useIdentityMethods;
|
|
70
|
-
exports.useIdentityState = contexts.useIdentityState;
|
|
71
|
-
exports.IdentityProvider = IdentityProvider.IdentityProvider;
|
|
72
|
-
exports.IdentityState = IdentityState.IdentityState;
|
|
73
|
-
exports.CreateApiKeyForm = CreateApiKeyForm.CreateApiKeyForm;
|
|
74
|
-
exports.useCreateApiKeyForm = CreateApiKeyForm.useCreateApiKeyForm;
|
|
75
|
-
exports.CreateSessionTokenForm = CreateSessionTokenForm.CreateSessionTokenForm;
|
|
76
|
-
exports.useCreateSessionTokenForm = CreateSessionTokenForm.useCreateSessionTokenForm;
|
|
77
|
-
exports.ChangeMyPasswordForm = ChangeMyPasswordForm.ChangeMyPasswordForm;
|
|
78
|
-
exports.useChangeMyPasswordForm = ChangeMyPasswordForm.useChangeMyPasswordForm;
|
|
79
|
-
exports.InviteForm = InviteForm.InviteForm;
|
|
80
|
-
exports.useInviteForm = InviteForm.useInviteForm;
|
|
81
|
-
exports.LoginForm = LoginForm.LoginForm;
|
|
82
|
-
exports.useLoginForm = LoginForm.useLoginForm;
|
|
83
|
-
exports.PasswordResetForm = PasswordResetForm.PasswordResetForm;
|
|
84
|
-
exports.usePasswordResetForm = PasswordResetForm.usePasswordResetForm;
|
|
85
|
-
exports.PasswordResetRequestForm = PasswordResetRequestForm.PasswordResetRequestForm;
|
|
86
|
-
exports.usePasswordResetRequestForm = PasswordResetRequestForm.usePasswordResetRequestForm;
|
|
87
|
-
exports.PasswordlessSignInForm = PasswordlessSignInForm.PasswordlessSignInForm;
|
|
88
|
-
exports.usePasswordlessSignInForm = PasswordlessSignInForm.usePasswordlessSignInForm;
|
|
89
|
-
exports.PasswordlessSignInInitForm = PasswordlessSignInInitForm.PasswordlessSignInInitForm;
|
|
90
|
-
exports.usePasswordlessSignInInitForm = PasswordlessSignInInitForm.usePasswordlessSignInInitForm;
|
|
91
|
-
exports.OtpPrepareForm = OtpPrepareForm.OtpPrepareForm;
|
|
92
|
-
exports.useOtpPrepareForm = OtpPrepareForm.useOtpPrepareForm;
|
|
93
|
-
exports.OtpConfirmForm = OtpConfirmForm.OtpConfirmForm;
|
|
94
|
-
exports.useOtpConfirmForm = OtpConfirmForm.useOtpConfirmForm;
|
|
95
|
-
exports.UpdateProjectMemberForm = UpdateProjectMemberForm.UpdateProjectMemberForm;
|
|
96
|
-
exports.useUpdateProjectMemberForm = UpdateProjectMemberForm.useUpdateProjectMemberForm;
|
|
97
|
-
exports.IDPState = IDPState.IDPState;
|
|
98
|
-
exports.IDP = IDP.IDP;
|
|
99
|
-
exports.IDPInitTrigger = IDPInitTrigger.IDPInitTrigger;
|
|
100
|
-
exports.DisableOtpTrigger = DisableOtpTrigger.DisableOtpTrigger;
|
|
101
|
-
exports.LogoutTrigger = LogoutTrigger.LogoutTrigger;
|
|
102
|
-
exports.RemoveProjectMemberTrigger = RemoveProjectMemberTrigger.RemoveProjectMemberTrigger;
|
|
103
|
-
exports.createApiKeyMutation = useCreateApiKeyMutation.createApiKeyMutation;
|
|
104
|
-
exports.useCreateApiKeyMutation = useCreateApiKeyMutation.useCreateApiKeyMutation;
|
|
105
|
-
exports.createSessionTokenMutation = useCreateSessionTokenMutation.createSessionTokenMutation;
|
|
106
|
-
exports.useCreateSessionTokenMutation = useCreateSessionTokenMutation.useCreateSessionTokenMutation;
|
|
107
|
-
exports.createGlobalApiKeyMutation = useCreateGlobalApiKeyMutation.createGlobalApiKeyMutation;
|
|
108
|
-
exports.useCreateGlobalApiKeyMutation = useCreateGlobalApiKeyMutation.useCreateGlobalApiKeyMutation;
|
|
109
|
-
exports.disableApiKeyMutation = useDisableApiKeyMutation.disableApiKeyMutation;
|
|
110
|
-
exports.useDisableApiKeyMutation = useDisableApiKeyMutation.useDisableApiKeyMutation;
|
|
111
|
-
exports.changeMyPasswordMutation = useChangeMyPasswordMutation.changeMyPasswordMutation;
|
|
112
|
-
exports.useChangeMyPasswordMutation = useChangeMyPasswordMutation.useChangeMyPasswordMutation;
|
|
113
|
-
exports.signInMutation = useSignInMutation.signInMutation;
|
|
114
|
-
exports.useSignInMutation = useSignInMutation.useSignInMutation;
|
|
115
|
-
exports.signOutMutation = useSignOutMutation.signOutMutation;
|
|
116
|
-
exports.useSignOutMutation = useSignOutMutation.useSignOutMutation;
|
|
117
|
-
exports.inviteMutation = useInviteMutation.inviteMutation;
|
|
118
|
-
exports.useInviteMutation = useInviteMutation.useInviteMutation;
|
|
119
|
-
exports.useInitSignInIDPMutation = useInitSignInIDPMutation.useInitSignInIDPMutation;
|
|
120
|
-
exports.signInIDPMutation = useSignInIdpMutation.signInIDPMutation;
|
|
121
|
-
exports.useSignInIDPMutation = useSignInIdpMutation.useSignInIDPMutation;
|
|
122
|
-
exports.removeProjectMemberMutation = useRemoveProjectMemberMutation.removeProjectMemberMutation;
|
|
123
|
-
exports.useRemoveProjectMemberMutation = useRemoveProjectMemberMutation.useRemoveProjectMemberMutation;
|
|
124
|
-
exports.addProjectMemberMutation = useAddProjectMemberMutation.addProjectMemberMutation;
|
|
125
|
-
exports.useAddProjectMemberMutation = useAddProjectMemberMutation.useAddProjectMemberMutation;
|
|
126
|
-
exports.updateProjectMemberMutation = useUpdateProjectMemberMutation.updateProjectMemberMutation;
|
|
127
|
-
exports.useUpdateProjectMemberMutation = useUpdateProjectMemberMutation.useUpdateProjectMemberMutation;
|
|
128
|
-
exports.useActivatePasswordlessOtpMutation = useActivatePasswordlessOtpMutation.useActivatePasswordlessOtpMutation;
|
|
129
|
-
exports.useDisableMyPasswordlessMutation = useDisableMyPasswordlessMutation.useDisableMyPasswordlessMutation;
|
|
130
|
-
exports.useEnableMyPasswordlessMutation = useEnableMyPasswordlessMutation.useEnableMyPasswordlessMutation;
|
|
131
|
-
exports.useSignInPasswordlessMutation = useSignInPasswordlessMutation.useSignInPasswordlessMutation;
|
|
132
|
-
exports.useInitSignInPasswordlessMutation = useInitSignInPasswordlessMutation.useInitSignInPasswordlessMutation;
|
|
133
|
-
exports.confirmOtpMutation = useConfirmOtpMutation.confirmOtpMutation;
|
|
134
|
-
exports.useConfirmOtpMutation = useConfirmOtpMutation.useConfirmOtpMutation;
|
|
135
|
-
exports.disableOtpMutation = useDisableOtpMutation.disableOtpMutation;
|
|
136
|
-
exports.useDisableOtpMutation = useDisableOtpMutation.useDisableOtpMutation;
|
|
137
|
-
exports.prepareOtpMutation = usePrepareOtpMutation.prepareOtpMutation;
|
|
138
|
-
exports.usePrepareOtpMutation = usePrepareOtpMutation.usePrepareOtpMutation;
|
|
139
|
-
exports.createResetPasswordRequestMutation = useCreateResetPasswordRequestMutation.createResetPasswordRequestMutation;
|
|
140
|
-
exports.useCreateResetPasswordRequestMutation = useCreateResetPasswordRequestMutation.useCreateResetPasswordRequestMutation;
|
|
141
|
-
exports.resetPasswordMutation = useResetPasswordMutation.resetPasswordMutation;
|
|
142
|
-
exports.useResetPasswordMutation = useResetPasswordMutation.useResetPasswordMutation;
|
|
143
|
-
exports.changeProfile = useChangeProfile.changeProfile;
|
|
144
|
-
exports.useChangeProfileMutation = useChangeProfile.useChangeProfileMutation;
|
|
145
|
-
exports.changeMyProfile = useChangeMyProfile.changeMyProfile;
|
|
146
|
-
exports.useChangeMyProfileMutation = useChangeMyProfile.useChangeMyProfileMutation;
|
|
147
|
-
exports.useMeQuery = useMeQuery.useMeQuery;
|
|
148
|
-
exports.useProjectMembersQuery = useProjectMembersQuery.useProjectMembersQuery;
|
|
149
|
-
exports.useProjectMembershipsQuery = useProjectMembershipsQuery.useProjectMembershipsQuery;
|
|
150
|
-
exports.useProjectRolesDefinitionQuery = useProjectRolesDefinitionQuery.useProjectRolesDefinitionQuery;
|
|
151
|
-
exports.useFetchIdentity = useFetchIdentity.useFetchIdentity;
|
|
152
|
-
exports.useLogout = useLogout.useLogout;
|
|
153
|
-
exports.LoginToken = useTenantApi.LoginToken;
|
|
154
|
-
exports.useTenantApi = useTenantApi.useTenantApi;
|
|
155
|
-
exports.useTenantQueryLoader = useTenantQueryLoader.useTenantQueryLoader;
|
|
156
|
-
exports.createTenantMutation = useTenantMutation.createTenantMutation;
|
|
157
|
-
exports.useTenantMutation = useTenantMutation.useTenantMutation;
|
|
158
|
-
exports.usePasswordlessOtpActivator = usePasswordlessOtpActivator.usePasswordlessOtpActivator;
|
|
159
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { FormContext, IDPMethodsContextProvider, IDPStateContextProvider, IdentityContext, IdentityMethodsContext, IdentityStateContext, useForm, useIDPMethods, useIDPState, useIdentity, useIdentityMethods, useIdentityState } from "./src/contexts.js";
|
|
2
|
-
import { IdentityProvider } from "./src/components/IdentityProvider.js";
|
|
3
|
-
import { IdentityState } from "./src/components/IdentityState.js";
|
|
4
|
-
import { CreateApiKeyForm, useCreateApiKeyForm } from "./src/components/forms/CreateApiKeyForm.js";
|
|
5
|
-
import { CreateSessionTokenForm, useCreateSessionTokenForm } from "./src/components/forms/CreateSessionTokenForm.js";
|
|
6
|
-
import { ChangeMyPasswordForm, useChangeMyPasswordForm } from "./src/components/forms/ChangeMyPasswordForm.js";
|
|
7
|
-
import { InviteForm, useInviteForm } from "./src/components/forms/InviteForm.js";
|
|
8
|
-
import { LoginForm, useLoginForm } from "./src/components/forms/LoginForm.js";
|
|
9
|
-
import { PasswordResetForm, usePasswordResetForm } from "./src/components/forms/PasswordResetForm.js";
|
|
10
|
-
import { PasswordResetRequestForm, usePasswordResetRequestForm } from "./src/components/forms/PasswordResetRequestForm.js";
|
|
11
|
-
import { PasswordlessSignInForm, usePasswordlessSignInForm } from "./src/components/forms/PasswordlessSignInForm.js";
|
|
12
|
-
import { PasswordlessSignInInitForm, usePasswordlessSignInInitForm } from "./src/components/forms/PasswordlessSignInInitForm.js";
|
|
13
|
-
import { OtpPrepareForm, useOtpPrepareForm } from "./src/components/forms/OtpPrepareForm.js";
|
|
14
|
-
import { OtpConfirmForm, useOtpConfirmForm } from "./src/components/forms/OtpConfirmForm.js";
|
|
15
|
-
import { UpdateProjectMemberForm, useUpdateProjectMemberForm } from "./src/components/forms/UpdateProjectMemberForm.js";
|
|
16
|
-
import { IDPState } from "./src/components/idp/IDPState.js";
|
|
17
|
-
import { IDP } from "./src/components/idp/IDP.js";
|
|
18
|
-
import { IDPInitTrigger } from "./src/components/idp/IDPInitTrigger.js";
|
|
19
|
-
import { DisableOtpTrigger } from "./src/components/triggers/DisableOtpTrigger.js";
|
|
20
|
-
import { LogoutTrigger } from "./src/components/triggers/LogoutTrigger.js";
|
|
21
|
-
import { RemoveProjectMemberTrigger } from "./src/components/triggers/RemoveProjectMemberTrigger.js";
|
|
22
|
-
import { createApiKeyMutation, useCreateApiKeyMutation } from "./src/hooks/mutations/apiKey/useCreateApiKeyMutation.js";
|
|
23
|
-
import { createSessionTokenMutation, useCreateSessionTokenMutation } from "./src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js";
|
|
24
|
-
import { createGlobalApiKeyMutation, useCreateGlobalApiKeyMutation } from "./src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js";
|
|
25
|
-
import { disableApiKeyMutation, useDisableApiKeyMutation } from "./src/hooks/mutations/apiKey/useDisableApiKeyMutation.js";
|
|
26
|
-
import { changeMyPasswordMutation, useChangeMyPasswordMutation } from "./src/hooks/mutations/auth/useChangeMyPasswordMutation.js";
|
|
27
|
-
import { signInMutation, useSignInMutation } from "./src/hooks/mutations/auth/useSignInMutation.js";
|
|
28
|
-
import { signOutMutation, useSignOutMutation } from "./src/hooks/mutations/auth/useSignOutMutation.js";
|
|
29
|
-
import { inviteMutation, useInviteMutation } from "./src/hooks/mutations/invite/useInviteMutation.js";
|
|
30
|
-
import { useInitSignInIDPMutation } from "./src/hooks/mutations/idp/useInitSignInIDPMutation.js";
|
|
31
|
-
import { signInIDPMutation, useSignInIDPMutation } from "./src/hooks/mutations/idp/useSignInIdpMutation.js";
|
|
32
|
-
import { removeProjectMemberMutation, useRemoveProjectMemberMutation } from "./src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js";
|
|
33
|
-
import { addProjectMemberMutation, useAddProjectMemberMutation } from "./src/hooks/mutations/memberships/useAddProjectMemberMutation.js";
|
|
34
|
-
import { updateProjectMemberMutation, useUpdateProjectMemberMutation } from "./src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js";
|
|
35
|
-
import { useActivatePasswordlessOtpMutation } from "./src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js";
|
|
36
|
-
import { useDisableMyPasswordlessMutation } from "./src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js";
|
|
37
|
-
import { useEnableMyPasswordlessMutation } from "./src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js";
|
|
38
|
-
import { useSignInPasswordlessMutation } from "./src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js";
|
|
39
|
-
import { useInitSignInPasswordlessMutation } from "./src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js";
|
|
40
|
-
import { confirmOtpMutation, useConfirmOtpMutation } from "./src/hooks/mutations/otp/useConfirmOtpMutation.js";
|
|
41
|
-
import { disableOtpMutation, useDisableOtpMutation } from "./src/hooks/mutations/otp/useDisableOtpMutation.js";
|
|
42
|
-
import { prepareOtpMutation, usePrepareOtpMutation } from "./src/hooks/mutations/otp/usePrepareOtpMutation.js";
|
|
43
|
-
import { createResetPasswordRequestMutation, useCreateResetPasswordRequestMutation } from "./src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js";
|
|
44
|
-
import { resetPasswordMutation, useResetPasswordMutation } from "./src/hooks/mutations/passwordReset/useResetPasswordMutation.js";
|
|
45
|
-
import { changeProfile, useChangeProfileMutation } from "./src/hooks/mutations/profile/useChangeProfile.js";
|
|
46
|
-
import { changeMyProfile, useChangeMyProfileMutation } from "./src/hooks/mutations/profile/useChangeMyProfile.js";
|
|
47
|
-
import { useMeQuery } from "./src/hooks/queries/useMeQuery.js";
|
|
48
|
-
import { useProjectMembersQuery } from "./src/hooks/queries/useProjectMembersQuery.js";
|
|
49
|
-
import { useProjectMembershipsQuery } from "./src/hooks/queries/useProjectMembershipsQuery.js";
|
|
50
|
-
import { useProjectRolesDefinitionQuery } from "./src/hooks/queries/useProjectRolesDefinitionQuery.js";
|
|
51
|
-
import { useFetchIdentity } from "./src/hooks/useFetchIdentity.js";
|
|
52
|
-
import { useLogout } from "./src/hooks/useLogout.js";
|
|
53
|
-
import { LoginToken, useTenantApi } from "./src/hooks/useTenantApi.js";
|
|
54
|
-
import { useTenantQueryLoader } from "./src/hooks/useTenantQueryLoader.js";
|
|
55
|
-
import { createTenantMutation, useTenantMutation } from "./src/hooks/useTenantMutation.js";
|
|
56
|
-
import { usePasswordlessOtpActivator } from "./src/hooks/usePasswordlessOtpActivator.js";
|
|
57
|
-
export {
|
|
58
|
-
ChangeMyPasswordForm,
|
|
59
|
-
CreateApiKeyForm,
|
|
60
|
-
CreateSessionTokenForm,
|
|
61
|
-
DisableOtpTrigger,
|
|
62
|
-
FormContext,
|
|
63
|
-
IDP,
|
|
64
|
-
IDPInitTrigger,
|
|
65
|
-
IDPMethodsContextProvider,
|
|
66
|
-
IDPState,
|
|
67
|
-
IDPStateContextProvider,
|
|
68
|
-
IdentityContext,
|
|
69
|
-
IdentityMethodsContext,
|
|
70
|
-
IdentityProvider,
|
|
71
|
-
IdentityState,
|
|
72
|
-
IdentityStateContext,
|
|
73
|
-
InviteForm,
|
|
74
|
-
LoginForm,
|
|
75
|
-
LoginToken,
|
|
76
|
-
LogoutTrigger,
|
|
77
|
-
OtpConfirmForm,
|
|
78
|
-
OtpPrepareForm,
|
|
79
|
-
PasswordResetForm,
|
|
80
|
-
PasswordResetRequestForm,
|
|
81
|
-
PasswordlessSignInForm,
|
|
82
|
-
PasswordlessSignInInitForm,
|
|
83
|
-
RemoveProjectMemberTrigger,
|
|
84
|
-
UpdateProjectMemberForm,
|
|
85
|
-
addProjectMemberMutation,
|
|
86
|
-
changeMyPasswordMutation,
|
|
87
|
-
changeMyProfile,
|
|
88
|
-
changeProfile,
|
|
89
|
-
confirmOtpMutation,
|
|
90
|
-
createApiKeyMutation,
|
|
91
|
-
createGlobalApiKeyMutation,
|
|
92
|
-
createResetPasswordRequestMutation,
|
|
93
|
-
createSessionTokenMutation,
|
|
94
|
-
createTenantMutation,
|
|
95
|
-
disableApiKeyMutation,
|
|
96
|
-
disableOtpMutation,
|
|
97
|
-
inviteMutation,
|
|
98
|
-
prepareOtpMutation,
|
|
99
|
-
removeProjectMemberMutation,
|
|
100
|
-
resetPasswordMutation,
|
|
101
|
-
signInIDPMutation,
|
|
102
|
-
signInMutation,
|
|
103
|
-
signOutMutation,
|
|
104
|
-
updateProjectMemberMutation,
|
|
105
|
-
useActivatePasswordlessOtpMutation,
|
|
106
|
-
useAddProjectMemberMutation,
|
|
107
|
-
useChangeMyPasswordForm,
|
|
108
|
-
useChangeMyPasswordMutation,
|
|
109
|
-
useChangeMyProfileMutation,
|
|
110
|
-
useChangeProfileMutation,
|
|
111
|
-
useConfirmOtpMutation,
|
|
112
|
-
useCreateApiKeyForm,
|
|
113
|
-
useCreateApiKeyMutation,
|
|
114
|
-
useCreateGlobalApiKeyMutation,
|
|
115
|
-
useCreateResetPasswordRequestMutation,
|
|
116
|
-
useCreateSessionTokenForm,
|
|
117
|
-
useCreateSessionTokenMutation,
|
|
118
|
-
useDisableApiKeyMutation,
|
|
119
|
-
useDisableMyPasswordlessMutation,
|
|
120
|
-
useDisableOtpMutation,
|
|
121
|
-
useEnableMyPasswordlessMutation,
|
|
122
|
-
useFetchIdentity,
|
|
123
|
-
useForm,
|
|
124
|
-
useIDPMethods,
|
|
125
|
-
useIDPState,
|
|
126
|
-
useIdentity,
|
|
127
|
-
useIdentityMethods,
|
|
128
|
-
useIdentityState,
|
|
129
|
-
useInitSignInIDPMutation,
|
|
130
|
-
useInitSignInPasswordlessMutation,
|
|
131
|
-
useInviteForm,
|
|
132
|
-
useInviteMutation,
|
|
133
|
-
useLoginForm,
|
|
134
|
-
useLogout,
|
|
135
|
-
useMeQuery,
|
|
136
|
-
useOtpConfirmForm,
|
|
137
|
-
useOtpPrepareForm,
|
|
138
|
-
usePasswordResetForm,
|
|
139
|
-
usePasswordResetRequestForm,
|
|
140
|
-
usePasswordlessOtpActivator,
|
|
141
|
-
usePasswordlessSignInForm,
|
|
142
|
-
usePasswordlessSignInInitForm,
|
|
143
|
-
usePrepareOtpMutation,
|
|
144
|
-
useProjectMembersQuery,
|
|
145
|
-
useProjectMembershipsQuery,
|
|
146
|
-
useProjectRolesDefinitionQuery,
|
|
147
|
-
useRemoveProjectMemberMutation,
|
|
148
|
-
useResetPasswordMutation,
|
|
149
|
-
useSignInIDPMutation,
|
|
150
|
-
useSignInMutation,
|
|
151
|
-
useSignInPasswordlessMutation,
|
|
152
|
-
useSignOutMutation,
|
|
153
|
-
useTenantApi,
|
|
154
|
-
useTenantMutation,
|
|
155
|
-
useTenantQueryLoader,
|
|
156
|
-
useUpdateProjectMemberForm,
|
|
157
|
-
useUpdateProjectMemberMutation
|
|
158
|
-
};
|
|
159
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
-
const reactClient = require("@contember/react-client");
|
|
5
|
-
const React = require("react");
|
|
6
|
-
const contexts = require("../contexts.cjs");
|
|
7
|
-
const useFetchIdentity = require("../hooks/useFetchIdentity.cjs");
|
|
8
|
-
const IdentityProvider = ({ children }) => {
|
|
9
|
-
const sessionToken = reactClient.useSessionToken();
|
|
10
|
-
const [{ identity, state }, methods] = useFetchIdentity.useFetchIdentity();
|
|
11
|
-
const { refreshIdentity, clearIdentity } = methods;
|
|
12
|
-
React.useEffect(() => {
|
|
13
|
-
if (sessionToken !== void 0) {
|
|
14
|
-
refreshIdentity();
|
|
15
|
-
}
|
|
16
|
-
}, [sessionToken, refreshIdentity]);
|
|
17
|
-
const hasIdentity = identity !== void 0;
|
|
18
|
-
React.useEffect(() => {
|
|
19
|
-
if (sessionToken === void 0 && hasIdentity) {
|
|
20
|
-
clearIdentity();
|
|
21
|
-
}
|
|
22
|
-
}, [sessionToken, clearIdentity, hasIdentity]);
|
|
23
|
-
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(contexts.IdentityStateContext.Provider, { value: state, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(contexts.IdentityContext.Provider, { value: identity, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(contexts.IdentityMethodsContext.Provider, { value: methods, children }, void 0, false, {
|
|
24
|
-
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityProvider.tsx",
|
|
25
|
-
lineNumber: 33,
|
|
26
|
-
columnNumber: 5
|
|
27
|
-
}, void 0) }, void 0, false, {
|
|
28
|
-
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityProvider.tsx",
|
|
29
|
-
lineNumber: 32,
|
|
30
|
-
columnNumber: 4
|
|
31
|
-
}, void 0) }, void 0, false, {
|
|
32
|
-
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityProvider.tsx",
|
|
33
|
-
lineNumber: 31,
|
|
34
|
-
columnNumber: 3
|
|
35
|
-
}, void 0);
|
|
36
|
-
};
|
|
37
|
-
exports.IdentityProvider = IdentityProvider;
|
|
38
|
-
//# sourceMappingURL=IdentityProvider.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProvider.cjs","sources":["../../../../../packages/react-client-tenant/src/components/IdentityProvider.tsx"],"sourcesContent":["import { useSessionToken } from '@contember/react-client'\nimport { ReactNode, useEffect } from 'react'\nimport { useFetchIdentity } from '../hooks'\nimport { IdentityContext, IdentityMethodsContext, IdentityStateContext } from '../contexts'\n\n\nexport interface IdentityProviderProps {\n\tchildren: ReactNode\n}\n\nexport const IdentityProvider: React.FC<IdentityProviderProps> = ({ children }) => {\n\tconst sessionToken = useSessionToken()\n\tconst [{ identity, state }, methods] = useFetchIdentity()\n\n\tconst { refreshIdentity, clearIdentity } = methods\n\tuseEffect(() => {\n\t\tif (sessionToken !== undefined) {\n\t\t\trefreshIdentity()\n\t\t}\n\t}, [sessionToken, refreshIdentity])\n\n\n\tconst hasIdentity = identity !== undefined\n\tuseEffect(() => {\n\t\tif (sessionToken === undefined && hasIdentity) {\n\t\t\tclearIdentity()\n\t\t}\n\t}, [sessionToken, clearIdentity, hasIdentity])\n\n\treturn (\n\t\t<IdentityStateContext.Provider value={state}>\n\t\t\t<IdentityContext.Provider value={identity}>\n\t\t\t\t<IdentityMethodsContext.Provider value={methods}>\n\t\t\t\t\t{children}\n\t\t\t\t</IdentityMethodsContext.Provider>\n\t\t\t</IdentityContext.Provider>\n\t\t</IdentityStateContext.Provider>\n\t)\n}\n"],"names":["useSessionToken","useFetchIdentity","useEffect","IdentityStateContext","IdentityContext","jsxDEV","IdentityMethodsContext","this"],"mappings":";;;;;;;AAUO,MAAM,mBAAoD,CAAC,EAAE,eAAe;AAClF,QAAM,eAAeA,YAAAA,gBAAgB;AACrC,QAAM,CAAC,EAAE,UAAU,MAAS,GAAA,OAAO,IAAIC,iBAAAA,iBAAiB;AAElD,QAAA,EAAE,iBAAiB,cAAA,IAAkB;AAC3CC,QAAAA,UAAU,MAAM;AACf,QAAI,iBAAiB,QAAW;AACf,sBAAA;AAAA,IAAA;AAAA,EACjB,GACE,CAAC,cAAc,eAAe,CAAC;AAGlC,QAAM,cAAc,aAAa;AACjCA,QAAAA,UAAU,MAAM;AACX,QAAA,iBAAiB,UAAa,aAAa;AAChC,oBAAA;AAAA,IAAA;AAAA,EAEb,GAAA,CAAC,cAAc,eAAe,WAAW,CAAC;AAE7C,8CACEC,SAAAA,qBAAqB,UAArB,EAA8B,OAAO,OACrC,+CAACC,yBAAgB,UAAhB,EAAyB,OAAO,UAChC,UAACC,8BAAAA,OAAAC,SAAA,uBAAuB,UAAvB,EAAgC,OAAO,SACtC,SADF,GAAA,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAEA,EAHD,GAAA,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAIA,EALD,GAAA,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAMA,GAAAA,MAAA;AAEF;;"}
|