@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/react-client-tenant",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.1.0-alpha.
|
|
4
|
+
"version": "2.1.0-alpha.35",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/production/index.js",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "https://github.com/contember/
|
|
33
|
+
"url": "git+https://github.com/contember/contember.git",
|
|
34
34
|
"directory": "packages/react-client-tenant"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@contember/graphql-client-tenant": "
|
|
38
|
-
"@contember/react-client": "
|
|
39
|
-
"@contember/react-utils": "
|
|
40
|
-
"@radix-ui/primitive": "
|
|
41
|
-
"@radix-ui/react-slot": "
|
|
42
|
-
"graphql-ts-client-api": "
|
|
37
|
+
"@contember/graphql-client-tenant": "workspace:*",
|
|
38
|
+
"@contember/react-client": "workspace:*",
|
|
39
|
+
"@contember/react-utils": "workspace:*",
|
|
40
|
+
"@radix-ui/primitive": "catalog:",
|
|
41
|
+
"@radix-ui/react-slot": "catalog:",
|
|
42
|
+
"graphql-ts-client-api": "catalog:"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"react": "
|
|
46
|
-
"react-dom": "
|
|
45
|
+
"react": "catalog:",
|
|
46
|
+
"react-dom": "catalog:"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
49
|
+
"react": "catalog:",
|
|
50
|
+
"react-dom": "catalog:"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -3,7 +3,6 @@ import { ReactNode, useEffect } from 'react'
|
|
|
3
3
|
import { useFetchIdentity } from '../hooks'
|
|
4
4
|
import { IdentityContext, IdentityMethodsContext, IdentityStateContext } from '../contexts'
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
export interface IdentityProviderProps {
|
|
8
7
|
children: ReactNode
|
|
9
8
|
}
|
|
@@ -19,7 +18,6 @@ export const IdentityProvider: React.FC<IdentityProviderProps> = ({ children })
|
|
|
19
18
|
}
|
|
20
19
|
}, [sessionToken, refreshIdentity])
|
|
21
20
|
|
|
22
|
-
|
|
23
21
|
const hasIdentity = identity !== undefined
|
|
24
22
|
useEffect(() => {
|
|
25
23
|
if (sessionToken === undefined && hasIdentity) {
|
|
@@ -65,7 +65,6 @@ export const ChangeMyPasswordForm = ({ children, onSuccess }: ChangeMyPasswordFo
|
|
|
65
65
|
{children}
|
|
66
66
|
</TenantForm>
|
|
67
67
|
)
|
|
68
|
-
|
|
69
68
|
}
|
|
70
69
|
const errorToField: Partial<Record<ChangeMyPasswordFormErrorCode, keyof ChangeMyPasswordFormValues | undefined>> = {
|
|
71
70
|
PASSWORD_MISMATCH: 'passwordConfirmation',
|
|
@@ -8,7 +8,6 @@ import { useSetSessionToken } from '@contember/react-client'
|
|
|
8
8
|
import { SignInMutationResult, useSignInMutation } from '../../hooks'
|
|
9
9
|
import { useRedirectToBacklinkCallback } from '../../internal/hooks/useRedirectToBacklink'
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
export type LoginFormValues = {
|
|
13
12
|
email: string
|
|
14
13
|
password: string
|
|
@@ -98,7 +97,6 @@ export const LoginForm = ({ children, expiration = DEFAULT_LOGIN_EXPIRATION, onS
|
|
|
98
97
|
{children}
|
|
99
98
|
</TenantForm>
|
|
100
99
|
)
|
|
101
|
-
|
|
102
100
|
}
|
|
103
101
|
const errorToField: Record<TenantApi.SignInErrorCode, keyof LoginFormValues | undefined> = {
|
|
104
102
|
'INVALID_PASSWORD': 'password',
|
|
@@ -106,5 +104,7 @@ const errorToField: Record<TenantApi.SignInErrorCode, keyof LoginFormValues | un
|
|
|
106
104
|
'UNKNOWN_EMAIL': 'email',
|
|
107
105
|
'PERSON_DISABLED': 'email',
|
|
108
106
|
'INVALID_OTP_TOKEN': 'otpToken',
|
|
107
|
+
'INVALID_CREDENTIALS': 'password',
|
|
108
|
+
'RATE_LIMIT_EXCEEDED': 'password',
|
|
109
109
|
'OTP_REQUIRED': undefined,
|
|
110
110
|
}
|
|
@@ -46,7 +46,7 @@ export const OtpConfirmForm = ({ children, onSuccess }: OtpConfirmFormProps) =>
|
|
|
46
46
|
}}
|
|
47
47
|
execute={async ({ values }) => {
|
|
48
48
|
return await confirmOtp({
|
|
49
|
-
|
|
49
|
+
otpToken: values.otpToken,
|
|
50
50
|
})
|
|
51
51
|
}}
|
|
52
52
|
errorMapping={{
|
|
@@ -58,4 +58,3 @@ export const OtpConfirmForm = ({ children, onSuccess }: OtpConfirmFormProps) =>
|
|
|
58
58
|
</TenantForm>
|
|
59
59
|
)
|
|
60
60
|
}
|
|
61
|
-
|
|
@@ -8,8 +8,7 @@ export type OtpPrepareFormValues = {
|
|
|
8
8
|
label: string
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export type OtpPrepareFormErrorCode =
|
|
12
|
-
| 'UNKNOWN_ERROR'
|
|
11
|
+
export type OtpPrepareFormErrorCode = 'UNKNOWN_ERROR'
|
|
13
12
|
|
|
14
13
|
export type OtpPrepareFormState = FormState
|
|
15
14
|
|
|
@@ -42,4 +41,3 @@ export const OtpPrepareForm = ({ children, onSuccess }: OtpPrepareFormProps) =>
|
|
|
42
41
|
</TenantForm>
|
|
43
42
|
)
|
|
44
43
|
}
|
|
45
|
-
|
|
@@ -70,7 +70,6 @@ export const PasswordResetForm = ({ children, onSuccess, token }: PasswordResetF
|
|
|
70
70
|
{children}
|
|
71
71
|
</TenantForm>
|
|
72
72
|
)
|
|
73
|
-
|
|
74
73
|
}
|
|
75
74
|
const errorToField: Record<TenantApi.ResetPasswordErrorCode, keyof PasswordResetFormValues | undefined> = {
|
|
76
75
|
PASSWORD_TOO_WEAK: 'password',
|
|
@@ -22,7 +22,6 @@ export type PasswordResetRequestFormError = FormError<PasswordResetRequestFormVa
|
|
|
22
22
|
|
|
23
23
|
export type PasswordResetRequestFormContextValue = FormContextValue<PasswordResetRequestFormValues, PasswordResetRequestFormErrorCode>
|
|
24
24
|
|
|
25
|
-
|
|
26
25
|
export interface PasswordResetRequestFormProps {
|
|
27
26
|
children: ReactElement
|
|
28
27
|
onSuccess?: () => void
|
|
@@ -31,7 +30,6 @@ export interface PasswordResetRequestFormProps {
|
|
|
31
30
|
export const usePasswordResetRequestForm = useForm as () => PasswordResetRequestFormContextValue
|
|
32
31
|
|
|
33
32
|
export const PasswordResetRequestForm = ({ children, onSuccess }: PasswordResetRequestFormProps) => {
|
|
34
|
-
|
|
35
33
|
const createResetRequest = useCreateResetPasswordRequestMutation()
|
|
36
34
|
return (
|
|
37
35
|
<TenantForm<PasswordResetRequestFormContextValue>
|
|
@@ -57,7 +55,6 @@ export const PasswordResetRequestForm = ({ children, onSuccess }: PasswordResetR
|
|
|
57
55
|
{children}
|
|
58
56
|
</TenantForm>
|
|
59
57
|
)
|
|
60
|
-
|
|
61
58
|
}
|
|
62
59
|
const errorToField: Record<TenantApi.CreatePasswordResetRequestErrorCode, keyof PasswordResetRequestFormValues | undefined> = {
|
|
63
60
|
PERSON_NOT_FOUND: 'email',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactElement, useCallback, useMemo } from 'react'
|
|
2
1
|
import * as TenantApi from '@contember/graphql-client-tenant'
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useSetSessionToken } from '@contember/react-client'
|
|
3
|
+
import { ReactElement, useCallback, useMemo } from 'react'
|
|
5
4
|
import { useForm } from '../../contexts'
|
|
6
5
|
import { SignInPasswordlessMutationResult, useSignInPasswordlessMutation } from '../../hooks'
|
|
7
6
|
import { useRedirectToBacklinkCallback } from '../../internal/hooks/useRedirectToBacklink'
|
|
8
|
-
import {
|
|
7
|
+
import { FormContextValue, FormError, FormState } from '../../types/forms'
|
|
8
|
+
import { TenantForm } from './TenantForm'
|
|
9
9
|
|
|
10
10
|
export type PasswordlessSignInFormValues = {
|
|
11
11
|
token: string
|
|
@@ -24,8 +24,11 @@ export type PasswordlessSignInFormState =
|
|
|
24
24
|
|
|
25
25
|
export type PasswordlessSignInFormError = FormError<PasswordlessSignInFormValues, PasswordlessSignInFormErrorCode>
|
|
26
26
|
|
|
27
|
-
export type PasswordlessSignInFormContextValue = FormContextValue<
|
|
28
|
-
|
|
27
|
+
export type PasswordlessSignInFormContextValue = FormContextValue<
|
|
28
|
+
PasswordlessSignInFormValues,
|
|
29
|
+
PasswordlessSignInFormErrorCode,
|
|
30
|
+
PasswordlessSignInFormState
|
|
31
|
+
>
|
|
29
32
|
|
|
30
33
|
export interface PasswordlessSignInFormProps {
|
|
31
34
|
requestId: string
|
|
@@ -43,8 +46,9 @@ const headers = {
|
|
|
43
46
|
}
|
|
44
47
|
const DEFAULT_LOGIN_EXPIRATION = 14 * 24 * 60 // 14 days
|
|
45
48
|
|
|
46
|
-
export const PasswordlessSignInForm = (
|
|
47
|
-
|
|
49
|
+
export const PasswordlessSignInForm = (
|
|
50
|
+
{ children, onSuccess, requestId, validationType, token, expiration = DEFAULT_LOGIN_EXPIRATION }: PasswordlessSignInFormProps,
|
|
51
|
+
) => {
|
|
48
52
|
const signIn = useSignInPasswordlessMutation({ headers })
|
|
49
53
|
const redirectToBacklink = useRedirectToBacklinkCallback()
|
|
50
54
|
const setSessionToken = useSetSessionToken()
|
|
@@ -89,7 +93,6 @@ export const PasswordlessSignInForm = ({ children, onSuccess, requestId, validat
|
|
|
89
93
|
{children}
|
|
90
94
|
</TenantForm>
|
|
91
95
|
)
|
|
92
|
-
|
|
93
96
|
}
|
|
94
97
|
const errorToField: Record<TenantApi.SignInPasswordlessErrorCode, keyof PasswordlessSignInFormValues | undefined> = {
|
|
95
98
|
PERSON_DISABLED: undefined,
|
|
@@ -5,6 +5,7 @@ import { FormContextValue, FormError, FormState } from '../../types/forms'
|
|
|
5
5
|
import { useForm } from '../../contexts'
|
|
6
6
|
import { InitSignInPasswordlessMutationResult, useInitSignInPasswordlessMutation } from '../../hooks'
|
|
7
7
|
import { PASSWORDLESS_REQUEST_STORAGE_KEY } from '../../consts'
|
|
8
|
+
import { useSaveBacklink } from '../../internal/hooks/useRedirectToBacklink'
|
|
8
9
|
|
|
9
10
|
export type PasswordlessSignInInitFormValues = {
|
|
10
11
|
email: string
|
|
@@ -22,7 +23,6 @@ export type PasswordlessSignInInitFormError = FormError<PasswordlessSignInInitFo
|
|
|
22
23
|
|
|
23
24
|
export type PasswordlessSignInInitFormContextValue = FormContextValue<PasswordlessSignInInitFormValues, PasswordlessSignInInitFormErrorCode>
|
|
24
25
|
|
|
25
|
-
|
|
26
26
|
export interface PasswordlessSignInInitFormProps {
|
|
27
27
|
children: ReactElement
|
|
28
28
|
onSuccess?: (args: { result: InitSignInPasswordlessMutationResult }) => void
|
|
@@ -31,12 +31,16 @@ export interface PasswordlessSignInInitFormProps {
|
|
|
31
31
|
export const usePasswordlessSignInInitForm = useForm as () => PasswordlessSignInInitFormContextValue
|
|
32
32
|
|
|
33
33
|
export const PasswordlessSignInInitForm = ({ children, onSuccess }: PasswordlessSignInInitFormProps) => {
|
|
34
|
-
|
|
35
34
|
const initSignIn = useInitSignInPasswordlessMutation()
|
|
35
|
+
const saveBacklink = useSaveBacklink({
|
|
36
|
+
storage: 'local',
|
|
37
|
+
})
|
|
38
|
+
|
|
36
39
|
return (
|
|
37
40
|
<TenantForm<PasswordlessSignInInitFormContextValue, InitSignInPasswordlessMutationResult>
|
|
38
41
|
onSuccess={res => {
|
|
39
42
|
localStorage.setItem(PASSWORDLESS_REQUEST_STORAGE_KEY, res.result.requestId)
|
|
43
|
+
saveBacklink()
|
|
40
44
|
onSuccess?.(res)
|
|
41
45
|
}}
|
|
42
46
|
errorMapping={errorToField}
|
|
@@ -60,7 +64,6 @@ export const PasswordlessSignInInitForm = ({ children, onSuccess }: Passwordless
|
|
|
60
64
|
{children}
|
|
61
65
|
</TenantForm>
|
|
62
66
|
)
|
|
63
|
-
|
|
64
67
|
}
|
|
65
68
|
const errorToField: Record<TenantApi.InitSignInPasswordlessErrorCode, keyof PasswordlessSignInInitFormValues | undefined> = {
|
|
66
69
|
PERSON_NOT_FOUND: 'email',
|
|
@@ -6,7 +6,6 @@ import { useReferentiallyStableCallback } from '@contember/react-utils'
|
|
|
6
6
|
|
|
7
7
|
const SlotForm = Slot as ComponentType<React.FormHTMLAttributes<HTMLFormElement>>
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
type ExecuteResult<T extends FormContextValue<any, any, any>, OkResult = undefined> =
|
|
11
10
|
| ({ ok: true } & (OkResult extends undefined ? {} : { result: OkResult }))
|
|
12
11
|
| { ok: false; error?: T['errors'][number]['code']; developerMessage?: string; state?: T['state'] }
|
|
@@ -87,12 +86,15 @@ export const TenantForm = <T extends FormContextValue<any, any, any>, OkResult =
|
|
|
87
86
|
setState('error')
|
|
88
87
|
setErrors([{
|
|
89
88
|
code: 'UNKNOWN_ERROR',
|
|
90
|
-
developerMessage: typeof e === 'string'
|
|
89
|
+
developerMessage: typeof e === 'string'
|
|
90
|
+
? e
|
|
91
|
+
: (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string')
|
|
92
|
+
? e.message
|
|
93
|
+
: undefined,
|
|
91
94
|
}])
|
|
92
95
|
}
|
|
93
96
|
})
|
|
94
97
|
|
|
95
|
-
|
|
96
98
|
const onChange = useReferentiallyStableCallback(onChangeIn || (() => undefined))
|
|
97
99
|
useEffect(() => {
|
|
98
100
|
onChange?.({ values, state, submit })
|
|
@@ -101,13 +103,15 @@ export const TenantForm = <T extends FormContextValue<any, any, any>, OkResult =
|
|
|
101
103
|
const setValue = useCallback((field: string, value: string) => setValues(values => ({ ...values, [field]: value })), [])
|
|
102
104
|
|
|
103
105
|
return (
|
|
104
|
-
<FormContext.Provider
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
<FormContext.Provider
|
|
107
|
+
value={{
|
|
108
|
+
values,
|
|
109
|
+
setValues,
|
|
110
|
+
state,
|
|
111
|
+
errors,
|
|
112
|
+
setValue: setValue,
|
|
113
|
+
} as unknown as T}
|
|
114
|
+
>
|
|
111
115
|
<SlotForm onSubmit={submit}>
|
|
112
116
|
{children}
|
|
113
117
|
</SlotForm>
|
|
@@ -2,7 +2,7 @@ import { ReactElement, useEffect, useState } from 'react'
|
|
|
2
2
|
import { TenantForm } from './TenantForm'
|
|
3
3
|
import { FormContextValue, FormError, FormState } from '../../types'
|
|
4
4
|
import { useForm } from '../../contexts'
|
|
5
|
-
import {
|
|
5
|
+
import { MembershipInput, UpdateProjectMemberErrorCode } from '@contember/graphql-client-tenant'
|
|
6
6
|
import { useProjectMembershipsQuery, useTenantQueryLoader, useUpdateProjectMemberMutation } from '../../hooks'
|
|
7
7
|
|
|
8
8
|
export type UpdateProjectMemberFormValues = {
|
|
@@ -24,7 +24,7 @@ export interface UpdateProjectMemberFormProps {
|
|
|
24
24
|
children: ReactElement
|
|
25
25
|
identityId: string
|
|
26
26
|
projectSlug: string
|
|
27
|
-
onSuccess?: (args: {
|
|
27
|
+
onSuccess?: (args: {}) => void
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export const useUpdateProjectMemberForm = useForm as () => UpdateProjectMemberFormContextValue
|
|
@@ -10,9 +10,11 @@ export interface IDPProps {
|
|
|
10
10
|
onLogin?: () => void
|
|
11
11
|
onInitError?: (error: IDPInitError) => void
|
|
12
12
|
onResponseError?: (error: IDPResponseError) => void
|
|
13
|
+
expiration?: number
|
|
14
|
+
redirectUrl?: string
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProps) => {
|
|
17
|
+
export const IDP = ({ children, onResponseError, onInitError, onLogin, expiration, redirectUrl }: IDPProps) => {
|
|
16
18
|
const hasOauthResponse = useMemo(() => {
|
|
17
19
|
const params = new URLSearchParams(window.location.search)
|
|
18
20
|
return params.has('state') && (params.has('code') || params.has('id_token'))
|
|
@@ -28,9 +30,9 @@ export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProp
|
|
|
28
30
|
}
|
|
29
31
|
return { type: 'nothing' }
|
|
30
32
|
})
|
|
31
|
-
useHandleIDPResponse({ hasOauthResponse, setState, onLogin })
|
|
33
|
+
useHandleIDPResponse({ hasOauthResponse, setState, onLogin, expiration: expiration, redirectUrl })
|
|
32
34
|
|
|
33
|
-
const initRedirect = useInitIDPRedirect({ setState })
|
|
35
|
+
const initRedirect = useInitIDPRedirect({ setState, redirectUrl })
|
|
34
36
|
|
|
35
37
|
const isFirstRender = useRef(true)
|
|
36
38
|
useEffect(() => {
|
|
@@ -53,7 +55,6 @@ export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProp
|
|
|
53
55
|
}
|
|
54
56
|
}, [onInitError, onResponseError, state])
|
|
55
57
|
|
|
56
|
-
|
|
57
58
|
return (
|
|
58
59
|
<IDPStateContextProvider.Provider value={state}>
|
|
59
60
|
<IDPMethodsContextProvider.Provider value={{ initRedirect }}>
|
|
@@ -61,5 +62,4 @@ export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProp
|
|
|
61
62
|
</IDPMethodsContextProvider.Provider>
|
|
62
63
|
</IDPStateContextProvider.Provider>
|
|
63
64
|
)
|
|
64
|
-
|
|
65
65
|
}
|
|
@@ -11,7 +11,5 @@ export interface IDPInitTriggerProps {
|
|
|
11
11
|
|
|
12
12
|
export const IDPInitTrigger = ({ identityProvider, ...props }: IDPInitTriggerProps) => {
|
|
13
13
|
const initIdp = useIDPMethods().initRedirect
|
|
14
|
-
return (
|
|
15
|
-
<SlotButton onClick={() => initIdp({ provider: identityProvider })} {...props} />
|
|
16
|
-
)
|
|
14
|
+
return <SlotButton onClick={() => initIdp({ provider: identityProvider })} {...props} />
|
|
17
15
|
}
|
|
@@ -10,7 +10,6 @@ export type RemoveProjectMemberTriggerProps =
|
|
|
10
10
|
onError?: (e: unknown) => void
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
export const RemoveProjectMemberTrigger = ({ identityId, projectSlug, ...props }: RemoveProjectMemberTriggerProps) => {
|
|
15
14
|
const removeProjectMember = useRemoveProjectMemberMutation()
|
|
16
15
|
const execute = useCallback(async () => await removeProjectMember({ projectSlug, identityId }), [identityId, projectSlug, removeProjectMember])
|
|
@@ -8,12 +8,14 @@ const SlotButton = Slot as ComponentType<React.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
8
8
|
export interface TenantActionTriggerProps<OkResult, Error extends string> {
|
|
9
9
|
children: ReactElement
|
|
10
10
|
onClick?: MouseEventHandler<HTMLButtonElement>
|
|
11
|
-
onSuccess?: (args: {result: OkResult}) => void
|
|
11
|
+
onSuccess?: (args: { result: OkResult }) => void
|
|
12
12
|
onError?: (args: { code: Error | 'UNKNOWN_ERROR'; error: unknown }) => void
|
|
13
13
|
execute: () => Promise<({ ok: true } & (OkResult extends undefined ? {} : { result: OkResult })) | { ok: false; error?: Error }>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export const TenantActionTrigger = <OkResult, Error extends string>(
|
|
16
|
+
export const TenantActionTrigger = <OkResult, Error extends string>(
|
|
17
|
+
{ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }: TenantActionTriggerProps<OkResult, Error>,
|
|
18
|
+
) => {
|
|
17
19
|
const [submitting, setSubmitting] = useState(false)
|
|
18
20
|
|
|
19
21
|
const onSuccess = useReferentiallyStableCallback(onSuccessIn || (() => undefined))
|
package/src/contexts.ts
CHANGED
|
@@ -16,13 +16,11 @@ const IdentityStateContext_ = createRequiredContext<IdentityStateValue>('Identit
|
|
|
16
16
|
export const IdentityStateContext = IdentityStateContext_[0]
|
|
17
17
|
export const useIdentityState = IdentityStateContext_[1]
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
const FormContext_ = createRequiredContext<FormContextValue<any, any, any>>('FormContext')
|
|
21
20
|
/** @internal */
|
|
22
21
|
export const FormContext = FormContext_[0]
|
|
23
22
|
export const useForm = FormContext_[1]
|
|
24
23
|
|
|
25
|
-
|
|
26
24
|
const IDPStateContext = createRequiredContext<IDPStateValue>('IDPStateContext')
|
|
27
25
|
/** @internal */
|
|
28
26
|
export const IDPStateContextProvider = IDPStateContext[0]
|
|
@@ -3,7 +3,6 @@ import { LoginToken } from '../../useTenantApi'
|
|
|
3
3
|
import { createTenantMutation } from '../../useTenantMutation'
|
|
4
4
|
import { ModelType } from 'graphql-ts-client-api'
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
export type InitSignInIDPMutationVariables = {
|
|
8
7
|
identityProvider: string
|
|
9
8
|
data: {
|
|
@@ -24,6 +23,10 @@ const InitSignInIDPMutation = TenantApi
|
|
|
24
23
|
options => options.alias('mutation'),
|
|
25
24
|
)
|
|
26
25
|
|
|
27
|
-
export const useInitSignInIDPMutation = createTenantMutation<
|
|
26
|
+
export const useInitSignInIDPMutation = createTenantMutation<
|
|
27
|
+
InitSignInIDPMutationResult,
|
|
28
|
+
TenantApi.InitSignInIDPErrorCode,
|
|
29
|
+
InitSignInIDPMutationVariables
|
|
30
|
+
>(InitSignInIDPMutation, {
|
|
28
31
|
apiToken: LoginToken,
|
|
29
32
|
})
|
|
@@ -29,7 +29,9 @@ export type SignInIDPMutationVariables = {
|
|
|
29
29
|
& { [key: string]: any }
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
export const useSignInIDPMutation = createTenantMutation<SignInIDPMutationResult, TenantApi.SignInIDPErrorCode, SignInIDPMutationVariables>(
|
|
33
|
+
signInIDPMutation,
|
|
34
|
+
{
|
|
35
|
+
apiToken: LoginToken,
|
|
36
|
+
},
|
|
37
|
+
)
|
|
@@ -2,12 +2,12 @@ import * as TenantApi from '@contember/graphql-client-tenant'
|
|
|
2
2
|
import { createTenantMutation } from '../../useTenantMutation'
|
|
3
3
|
|
|
4
4
|
export const confirmOtpMutation = TenantApi.mutation$
|
|
5
|
-
.confirmOtp(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
.confirmOtp(
|
|
6
|
+
TenantApi
|
|
7
|
+
.confirmOtpResponse$$
|
|
8
|
+
.error(TenantApi.confirmOtpError$$),
|
|
9
|
+
options => options.alias('mutation'),
|
|
9
10
|
)
|
|
10
11
|
|
|
11
|
-
|
|
12
12
|
export const useConfirmOtpMutation = createTenantMutation(confirmOtpMutation)
|
|
13
13
|
export type ConfirmOtpMutationVariables = Parameters<ReturnType<typeof useConfirmOtpMutation>>[0]
|
|
@@ -11,6 +11,5 @@ export const prepareOtpMutation = TenantApi.mutation$.prepareOtp(
|
|
|
11
11
|
options => options.alias('mutation'),
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
export const usePrepareOtpMutation = createTenantMutation(prepareOtpMutation)
|
|
16
15
|
export type PrepareOtpMutationVariables = Parameters<ReturnType<typeof usePrepareOtpMutation>>[0]
|
|
@@ -2,7 +2,6 @@ import * as TenantApi from '@contember/graphql-client-tenant'
|
|
|
2
2
|
import { LoginToken } from '../../useTenantApi'
|
|
3
3
|
import { createTenantMutation } from '../../useTenantMutation'
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
const ActivatePasswordlessOtpMutation = TenantApi
|
|
7
6
|
.mutation$
|
|
8
7
|
.activatePasswordlessOtp(
|
|
@@ -4,8 +4,8 @@ import { createTenantMutation } from '../../useTenantMutation'
|
|
|
4
4
|
export const changeMyProfile = TenantApi.mutation$
|
|
5
5
|
.changeMyProfile(
|
|
6
6
|
TenantApi
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
.changeMyProfileResponse$$
|
|
8
|
+
.error(TenantApi.changeMyProfileError$$),
|
|
9
9
|
options => options.alias('mutation'),
|
|
10
10
|
)
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ import { createTenantMutation } from '../../useTenantMutation'
|
|
|
4
4
|
export const changeProfile = TenantApi.mutation$
|
|
5
5
|
.changeProfile(
|
|
6
6
|
TenantApi
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
.changeProfileResponse$$
|
|
8
|
+
.error(TenantApi.changeProfileError$$),
|
|
9
9
|
options => options.alias('mutation'),
|
|
10
10
|
)
|
|
11
11
|
|
|
@@ -6,10 +6,11 @@ import { useCallback } from 'react'
|
|
|
6
6
|
const identityFragment = TenantApi
|
|
7
7
|
.identity$$
|
|
8
8
|
.person(TenantApi.person$.id.email.name.otpEnabled)
|
|
9
|
-
.projects(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
.projects(
|
|
10
|
+
TenantApi
|
|
11
|
+
.identityProjectRelation$
|
|
12
|
+
.project(TenantApi.project$$)
|
|
13
|
+
.memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$)),
|
|
13
14
|
)
|
|
14
15
|
.permissions(TenantApi.identityGlobalPermissions$$)
|
|
15
16
|
|
|
@@ -5,10 +5,10 @@ import { useCallback } from 'react'
|
|
|
5
5
|
|
|
6
6
|
const projectIdentityRelationFragment = TenantApi
|
|
7
7
|
.projectIdentityRelation$
|
|
8
|
-
.identity(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
.identity(
|
|
9
|
+
TenantApi.identity$$
|
|
10
|
+
.person(TenantApi.person$.id.email.name.otpEnabled)
|
|
11
|
+
.apiKey(TenantApi.apiKey$$),
|
|
12
12
|
)
|
|
13
13
|
.memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$))
|
|
14
14
|
|
|
@@ -20,23 +20,28 @@ export type ProjectMembersQueryVariables =
|
|
|
20
20
|
}
|
|
21
21
|
& TenantApi.ProjectMembersInput
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
export const useProjectMembersQuery = ({ headers, apiToken }: TenantApiOptions = {}) => {
|
|
25
24
|
const executor = useTenantApi({
|
|
26
25
|
headers,
|
|
27
26
|
apiToken,
|
|
28
27
|
})
|
|
29
28
|
return useCallback(async ({ projectSlug, ...membersInput }: ProjectMembersQueryVariables): Promise<ProjectMembersQueryResult> => {
|
|
30
|
-
const result = await executor(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
const result = await executor(
|
|
30
|
+
TenantApi.query$.projectBySlug(
|
|
31
|
+
{
|
|
32
|
+
slug: ParameterRef.of('projectSlug'),
|
|
33
|
+
},
|
|
34
|
+
TenantApi.project$.members({
|
|
35
|
+
input: ParameterRef.of('membersInput'),
|
|
36
|
+
}, projectIdentityRelationFragment),
|
|
37
|
+
),
|
|
38
|
+
{
|
|
39
|
+
variables: {
|
|
40
|
+
projectSlug,
|
|
41
|
+
membersInput,
|
|
42
|
+
},
|
|
38
43
|
},
|
|
39
|
-
|
|
44
|
+
)
|
|
40
45
|
|
|
41
46
|
return result.projectBySlug?.members ?? []
|
|
42
47
|
}, [executor])
|
|
@@ -12,7 +12,6 @@ export type ProjectMembershipsQueryVariables = {
|
|
|
12
12
|
identityId: string
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
export const useProjectMembershipsQuery = (options: TenantApiOptions = {}) => {
|
|
17
16
|
const executor = useTenantApi(options)
|
|
18
17
|
return useCallback(async (input: ProjectMembershipsQueryVariables): Promise<ProjectMembershipsQueryResult> => {
|
|
@@ -8,8 +8,7 @@ const projectRolesDefinitionFragment = TenantApi.roleDefinition$$
|
|
|
8
8
|
TenantApi.roleVariableDefinition$$
|
|
9
9
|
.on(TenantApi.roleConditionVariableDefinition$$)
|
|
10
10
|
.on(TenantApi.roleEntityVariableDefinition$$)
|
|
11
|
-
.on(TenantApi.rolePredefinedVariableDefinition$$)
|
|
12
|
-
,
|
|
11
|
+
.on(TenantApi.rolePredefinedVariableDefinition$$),
|
|
13
12
|
)
|
|
14
13
|
|
|
15
14
|
export type ProjectRoleDefinition = ModelType<typeof projectRolesDefinitionFragment>
|