@contember/react-client-tenant 2.1.0-alpha.36 → 2.1.0-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/index.cjs +159 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +159 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/components/IdentityProvider.cjs +38 -0
- package/dist/development/src/components/IdentityProvider.cjs.map +1 -0
- package/dist/development/src/components/IdentityProvider.js +38 -0
- package/dist/development/src/components/IdentityProvider.js.map +1 -0
- package/dist/development/src/components/IdentityState.cjs +14 -0
- package/dist/development/src/components/IdentityState.cjs.map +1 -0
- package/dist/development/src/components/IdentityState.js +14 -0
- package/dist/development/src/components/IdentityState.js.map +1 -0
- package/dist/development/src/components/forms/ChangeMyPasswordForm.cjs +59 -0
- package/dist/development/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -0
- package/dist/development/src/components/forms/ChangeMyPasswordForm.js +59 -0
- package/dist/development/src/components/forms/ChangeMyPasswordForm.js.map +1 -0
- package/dist/development/src/components/forms/CreateApiKeyForm.cjs +57 -0
- package/dist/development/src/components/forms/CreateApiKeyForm.cjs.map +1 -0
- package/dist/development/src/components/forms/CreateApiKeyForm.js +57 -0
- package/dist/development/src/components/forms/CreateApiKeyForm.js.map +1 -0
- package/dist/development/src/components/forms/CreateSessionTokenForm.cjs +50 -0
- package/dist/development/src/components/forms/CreateSessionTokenForm.cjs.map +1 -0
- package/dist/development/src/components/forms/CreateSessionTokenForm.js +50 -0
- package/dist/development/src/components/forms/CreateSessionTokenForm.js.map +1 -0
- package/dist/development/src/components/forms/InviteForm.cjs +62 -0
- package/dist/development/src/components/forms/InviteForm.cjs.map +1 -0
- package/dist/development/src/components/forms/InviteForm.js +62 -0
- package/dist/development/src/components/forms/InviteForm.js.map +1 -0
- package/dist/development/src/components/forms/LoginForm.cjs +87 -0
- package/dist/development/src/components/forms/LoginForm.cjs.map +1 -0
- package/dist/development/src/components/forms/LoginForm.js +87 -0
- package/dist/development/src/components/forms/LoginForm.js.map +1 -0
- package/dist/development/src/components/forms/OtpConfirmForm.cjs +49 -0
- package/dist/development/src/components/forms/OtpConfirmForm.cjs.map +1 -0
- package/dist/development/src/components/forms/OtpConfirmForm.js +49 -0
- package/dist/development/src/components/forms/OtpConfirmForm.js.map +1 -0
- package/dist/development/src/components/forms/OtpPrepareForm.cjs +36 -0
- package/dist/development/src/components/forms/OtpPrepareForm.cjs.map +1 -0
- package/dist/development/src/components/forms/OtpPrepareForm.js +36 -0
- package/dist/development/src/components/forms/OtpPrepareForm.js.map +1 -0
- package/dist/development/src/components/forms/PasswordResetForm.cjs +63 -0
- package/dist/development/src/components/forms/PasswordResetForm.cjs.map +1 -0
- package/dist/development/src/components/forms/PasswordResetForm.js +63 -0
- package/dist/development/src/components/forms/PasswordResetForm.js.map +1 -0
- package/dist/development/src/components/forms/PasswordResetRequestForm.cjs +49 -0
- package/dist/development/src/components/forms/PasswordResetRequestForm.cjs.map +1 -0
- package/dist/development/src/components/forms/PasswordResetRequestForm.js +49 -0
- package/dist/development/src/components/forms/PasswordResetRequestForm.js.map +1 -0
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +79 -0
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -0
- package/dist/development/src/components/forms/PasswordlessSignInForm.js +79 -0
- package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -0
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs +59 -0
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -0
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js +59 -0
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js.map +1 -0
- package/dist/development/src/components/forms/TenantForm.cjs +101 -0
- package/dist/development/src/components/forms/TenantForm.cjs.map +1 -0
- package/dist/development/src/components/forms/TenantForm.js +101 -0
- package/dist/development/src/components/forms/TenantForm.js.map +1 -0
- package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs +64 -0
- package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -0
- package/dist/development/src/components/forms/UpdateProjectMemberForm.js +64 -0
- package/dist/development/src/components/forms/UpdateProjectMemberForm.js.map +1 -0
- package/dist/development/src/components/idp/IDP.cjs +56 -0
- package/dist/development/src/components/idp/IDP.cjs.map +1 -0
- package/dist/development/src/components/idp/IDP.js +56 -0
- package/dist/development/src/components/idp/IDP.js.map +1 -0
- package/dist/development/src/components/idp/IDPInitTrigger.cjs +16 -0
- package/dist/development/src/components/idp/IDPInitTrigger.cjs.map +1 -0
- package/dist/development/src/components/idp/IDPInitTrigger.js +16 -0
- package/dist/development/src/components/idp/IDPInitTrigger.js.map +1 -0
- package/dist/development/src/components/idp/IDPState.cjs +14 -0
- package/dist/development/src/components/idp/IDPState.cjs.map +1 -0
- package/dist/development/src/components/idp/IDPState.js +14 -0
- package/dist/development/src/components/idp/IDPState.js.map +1 -0
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs +32 -0
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/DisableOtpTrigger.js +32 -0
- package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/LogoutTrigger.cjs +16 -0
- package/dist/development/src/components/triggers/LogoutTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/LogoutTrigger.js +16 -0
- package/dist/development/src/components/triggers/LogoutTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs +17 -0
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js +17 -0
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/TenantActionTrigger.cjs +37 -0
- package/dist/development/src/components/triggers/TenantActionTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/TenantActionTrigger.js +37 -0
- package/dist/development/src/components/triggers/TenantActionTrigger.js.map +1 -0
- package/dist/development/src/consts.cjs +5 -0
- package/dist/development/src/consts.cjs.map +1 -0
- package/dist/development/src/consts.js +5 -0
- package/dist/development/src/consts.js.map +1 -0
- package/dist/development/src/contexts.cjs +34 -0
- package/dist/development/src/contexts.cjs.map +1 -0
- package/dist/development/src/contexts.js +34 -0
- package/dist/development/src/contexts.js.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js +13 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js +13 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js +13 -0
- package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js +12 -0
- package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js +12 -0
- package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs +33 -0
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.js +16 -0
- package/dist/development/src/hooks/mutations/auth/useSignInMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js +12 -0
- package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs +31 -0
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js +14 -0
- package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs +36 -0
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js +19 -0
- package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.js +13 -0
- package/dist/development/src/hooks/mutations/invite/useInviteMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js +12 -0
- package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js +12 -0
- package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js +12 -0
- package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js +12 -0
- package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js +12 -0
- package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js +13 -0
- package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js +15 -0
- package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js +15 -0
- package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs +31 -0
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js +14 -0
- package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs +28 -0
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js +11 -0
- package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs +28 -0
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js +11 -0
- package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js +15 -0
- package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs +32 -0
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js +15 -0
- package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs +29 -0
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js +12 -0
- package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -0
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs +29 -0
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.js +12 -0
- package/dist/development/src/hooks/mutations/profile/useChangeProfile.js.map +1 -0
- package/dist/development/src/hooks/queries/useMeQuery.cjs +33 -0
- package/dist/development/src/hooks/queries/useMeQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useMeQuery.js +16 -0
- package/dist/development/src/hooks/queries/useMeQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs +53 -0
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js +36 -0
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs +34 -0
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js +17 -0
- package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs +36 -0
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js +19 -0
- package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -0
- package/dist/development/src/hooks/useFetchIdentity.cjs +55 -0
- package/dist/development/src/hooks/useFetchIdentity.cjs.map +1 -0
- package/dist/development/src/hooks/useFetchIdentity.js +55 -0
- package/dist/development/src/hooks/useFetchIdentity.js.map +1 -0
- package/dist/development/src/hooks/useLogout.cjs +10 -0
- package/dist/development/src/hooks/useLogout.cjs.map +1 -0
- package/dist/development/src/hooks/useLogout.js +10 -0
- package/dist/development/src/hooks/useLogout.js.map +1 -0
- package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs +53 -0
- package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -0
- package/dist/development/src/hooks/usePasswordlessOtpActivator.js +53 -0
- package/dist/development/src/hooks/usePasswordlessOtpActivator.js.map +1 -0
- package/dist/development/src/hooks/useTenantApi.cjs +36 -0
- package/dist/development/src/hooks/useTenantApi.cjs.map +1 -0
- package/dist/development/src/hooks/useTenantApi.js +36 -0
- package/dist/development/src/hooks/useTenantApi.js.map +1 -0
- package/dist/development/src/hooks/useTenantMutation.cjs +33 -0
- package/dist/development/src/hooks/useTenantMutation.cjs.map +1 -0
- package/dist/development/src/hooks/useTenantMutation.js +33 -0
- package/dist/development/src/hooks/useTenantMutation.js.map +1 -0
- package/dist/development/src/hooks/useTenantQueryLoader.cjs +36 -0
- package/dist/development/src/hooks/useTenantQueryLoader.cjs.map +1 -0
- package/dist/development/src/hooks/useTenantQueryLoader.js +36 -0
- package/dist/development/src/hooks/useTenantQueryLoader.js.map +1 -0
- package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs +51 -0
- package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useHandleIDPResponse.js +51 -0
- package/dist/development/src/internal/hooks/useHandleIDPResponse.js.map +1 -0
- package/dist/development/src/internal/hooks/useIDPAutoInit.cjs +19 -0
- package/dist/development/src/internal/hooks/useIDPAutoInit.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useIDPAutoInit.js +19 -0
- package/dist/development/src/internal/hooks/useIDPAutoInit.js.map +1 -0
- package/dist/development/src/internal/hooks/useIDPStateStore.cjs +19 -0
- package/dist/development/src/internal/hooks/useIDPStateStore.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useIDPStateStore.js +19 -0
- package/dist/development/src/internal/hooks/useIDPStateStore.js.map +1 -0
- package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs +44 -0
- package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useInitIDPRedirect.js +44 -0
- package/dist/development/src/internal/hooks/useInitIDPRedirect.js.map +1 -0
- package/dist/development/src/internal/hooks/useLogoutInternal.cjs +35 -0
- package/dist/development/src/internal/hooks/useLogoutInternal.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useLogoutInternal.js +35 -0
- package/dist/development/src/internal/hooks/useLogoutInternal.js.map +1 -0
- package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs +36 -0
- package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useRedirectToBacklink.js +36 -0
- package/dist/development/src/internal/hooks/useRedirectToBacklink.js.map +1 -0
- package/dist/development/src/internal/utils/getBaseHref.cjs +8 -0
- package/dist/development/src/internal/utils/getBaseHref.cjs.map +1 -0
- package/dist/development/src/internal/utils/getBaseHref.js +8 -0
- package/dist/development/src/internal/utils/getBaseHref.js.map +1 -0
- package/dist/development/src/internal/utils/hashing.cjs +8 -0
- package/dist/development/src/internal/utils/hashing.cjs.map +1 -0
- package/dist/development/src/internal/utils/hashing.js +8 -0
- package/dist/development/src/internal/utils/hashing.js.map +1 -0
- package/dist/development/src/internal/utils/randomInt.cjs +29 -0
- package/dist/development/src/internal/utils/randomInt.cjs.map +1 -0
- package/dist/development/src/internal/utils/randomInt.js +29 -0
- package/dist/development/src/internal/utils/randomInt.js.map +1 -0
- package/dist/production/index.cjs +159 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +159 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/components/IdentityProvider.cjs +26 -0
- package/dist/production/src/components/IdentityProvider.cjs.map +1 -0
- package/dist/production/src/components/IdentityProvider.js +26 -0
- package/dist/production/src/components/IdentityProvider.js.map +1 -0
- package/dist/production/src/components/IdentityState.cjs +10 -0
- package/dist/production/src/components/IdentityState.cjs.map +1 -0
- package/dist/production/src/components/IdentityState.js +10 -0
- package/dist/production/src/components/IdentityState.js.map +1 -0
- package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs +51 -0
- package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -0
- package/dist/production/src/components/forms/ChangeMyPasswordForm.js +51 -0
- package/dist/production/src/components/forms/ChangeMyPasswordForm.js.map +1 -0
- package/dist/production/src/components/forms/CreateApiKeyForm.cjs +49 -0
- package/dist/production/src/components/forms/CreateApiKeyForm.cjs.map +1 -0
- package/dist/production/src/components/forms/CreateApiKeyForm.js +49 -0
- package/dist/production/src/components/forms/CreateApiKeyForm.js.map +1 -0
- package/dist/production/src/components/forms/CreateSessionTokenForm.cjs +42 -0
- package/dist/production/src/components/forms/CreateSessionTokenForm.cjs.map +1 -0
- package/dist/production/src/components/forms/CreateSessionTokenForm.js +42 -0
- package/dist/production/src/components/forms/CreateSessionTokenForm.js.map +1 -0
- package/dist/production/src/components/forms/InviteForm.cjs +54 -0
- package/dist/production/src/components/forms/InviteForm.cjs.map +1 -0
- package/dist/production/src/components/forms/InviteForm.js +54 -0
- package/dist/production/src/components/forms/InviteForm.js.map +1 -0
- package/dist/production/src/components/forms/LoginForm.cjs +79 -0
- package/dist/production/src/components/forms/LoginForm.cjs.map +1 -0
- package/dist/production/src/components/forms/LoginForm.js +79 -0
- package/dist/production/src/components/forms/LoginForm.js.map +1 -0
- package/dist/production/src/components/forms/OtpConfirmForm.cjs +41 -0
- package/dist/production/src/components/forms/OtpConfirmForm.cjs.map +1 -0
- package/dist/production/src/components/forms/OtpConfirmForm.js +41 -0
- package/dist/production/src/components/forms/OtpConfirmForm.js.map +1 -0
- package/dist/production/src/components/forms/OtpPrepareForm.cjs +28 -0
- package/dist/production/src/components/forms/OtpPrepareForm.cjs.map +1 -0
- package/dist/production/src/components/forms/OtpPrepareForm.js +28 -0
- package/dist/production/src/components/forms/OtpPrepareForm.js.map +1 -0
- package/dist/production/src/components/forms/PasswordResetForm.cjs +55 -0
- package/dist/production/src/components/forms/PasswordResetForm.cjs.map +1 -0
- package/dist/production/src/components/forms/PasswordResetForm.js +55 -0
- package/dist/production/src/components/forms/PasswordResetForm.js.map +1 -0
- package/dist/production/src/components/forms/PasswordResetRequestForm.cjs +41 -0
- package/dist/production/src/components/forms/PasswordResetRequestForm.cjs.map +1 -0
- package/dist/production/src/components/forms/PasswordResetRequestForm.js +41 -0
- package/dist/production/src/components/forms/PasswordResetRequestForm.js.map +1 -0
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +71 -0
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -0
- package/dist/production/src/components/forms/PasswordlessSignInForm.js +71 -0
- package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -0
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs +51 -0
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -0
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js +51 -0
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js.map +1 -0
- package/dist/production/src/components/forms/TenantForm.cjs +89 -0
- package/dist/production/src/components/forms/TenantForm.cjs.map +1 -0
- package/dist/production/src/components/forms/TenantForm.js +89 -0
- package/dist/production/src/components/forms/TenantForm.js.map +1 -0
- package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs +56 -0
- package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -0
- package/dist/production/src/components/forms/UpdateProjectMemberForm.js +56 -0
- package/dist/production/src/components/forms/UpdateProjectMemberForm.js.map +1 -0
- package/dist/production/src/components/idp/IDP.cjs +48 -0
- package/dist/production/src/components/idp/IDP.cjs.map +1 -0
- package/dist/production/src/components/idp/IDP.js +48 -0
- package/dist/production/src/components/idp/IDP.js.map +1 -0
- package/dist/production/src/components/idp/IDPInitTrigger.cjs +12 -0
- package/dist/production/src/components/idp/IDPInitTrigger.cjs.map +1 -0
- package/dist/production/src/components/idp/IDPInitTrigger.js +12 -0
- package/dist/production/src/components/idp/IDPInitTrigger.js.map +1 -0
- package/dist/production/src/components/idp/IDPState.cjs +10 -0
- package/dist/production/src/components/idp/IDPState.cjs.map +1 -0
- package/dist/production/src/components/idp/IDPState.js +10 -0
- package/dist/production/src/components/idp/IDPState.js.map +1 -0
- package/dist/production/src/components/triggers/DisableOtpTrigger.cjs +24 -0
- package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/DisableOtpTrigger.js +24 -0
- package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/LogoutTrigger.cjs +12 -0
- package/dist/production/src/components/triggers/LogoutTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/LogoutTrigger.js +12 -0
- package/dist/production/src/components/triggers/LogoutTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs +13 -0
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js +13 -0
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/TenantActionTrigger.cjs +33 -0
- package/dist/production/src/components/triggers/TenantActionTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/TenantActionTrigger.js +33 -0
- package/dist/production/src/components/triggers/TenantActionTrigger.js.map +1 -0
- package/dist/production/src/consts.cjs +5 -0
- package/dist/production/src/consts.cjs.map +1 -0
- package/dist/production/src/consts.js +5 -0
- package/dist/production/src/consts.js.map +1 -0
- package/dist/production/src/contexts.cjs +34 -0
- package/dist/production/src/contexts.cjs.map +1 -0
- package/dist/production/src/contexts.js +34 -0
- package/dist/production/src/contexts.js.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js +13 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js +13 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js +13 -0
- package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js +12 -0
- package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js +12 -0
- package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs +33 -0
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.js +16 -0
- package/dist/production/src/hooks/mutations/auth/useSignInMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js +12 -0
- package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs +31 -0
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js +14 -0
- package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs +36 -0
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js +19 -0
- package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.js +13 -0
- package/dist/production/src/hooks/mutations/invite/useInviteMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js +12 -0
- package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js +12 -0
- package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js +12 -0
- package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js +12 -0
- package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js +12 -0
- package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js +13 -0
- package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js +15 -0
- package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js +15 -0
- package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs +31 -0
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js +14 -0
- package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs +28 -0
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js +11 -0
- package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs +28 -0
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js +11 -0
- package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js +15 -0
- package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs +32 -0
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js +15 -0
- package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs +29 -0
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js +12 -0
- package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -0
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs +29 -0
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.js +12 -0
- package/dist/production/src/hooks/mutations/profile/useChangeProfile.js.map +1 -0
- package/dist/production/src/hooks/queries/useMeQuery.cjs +33 -0
- package/dist/production/src/hooks/queries/useMeQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useMeQuery.js +16 -0
- package/dist/production/src/hooks/queries/useMeQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs +53 -0
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js +36 -0
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.cjs +34 -0
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.js +17 -0
- package/dist/production/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.cjs +36 -0
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.js +19 -0
- package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -0
- package/dist/production/src/hooks/useFetchIdentity.cjs +55 -0
- package/dist/production/src/hooks/useFetchIdentity.cjs.map +1 -0
- package/dist/production/src/hooks/useFetchIdentity.js +55 -0
- package/dist/production/src/hooks/useFetchIdentity.js.map +1 -0
- package/dist/production/src/hooks/useLogout.cjs +10 -0
- package/dist/production/src/hooks/useLogout.cjs.map +1 -0
- package/dist/production/src/hooks/useLogout.js +10 -0
- package/dist/production/src/hooks/useLogout.js.map +1 -0
- package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs +53 -0
- package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -0
- package/dist/production/src/hooks/usePasswordlessOtpActivator.js +53 -0
- package/dist/production/src/hooks/usePasswordlessOtpActivator.js.map +1 -0
- package/dist/production/src/hooks/useTenantApi.cjs +36 -0
- package/dist/production/src/hooks/useTenantApi.cjs.map +1 -0
- package/dist/production/src/hooks/useTenantApi.js +36 -0
- package/dist/production/src/hooks/useTenantApi.js.map +1 -0
- package/dist/production/src/hooks/useTenantMutation.cjs +33 -0
- package/dist/production/src/hooks/useTenantMutation.cjs.map +1 -0
- package/dist/production/src/hooks/useTenantMutation.js +33 -0
- package/dist/production/src/hooks/useTenantMutation.js.map +1 -0
- package/dist/production/src/hooks/useTenantQueryLoader.cjs +36 -0
- package/dist/production/src/hooks/useTenantQueryLoader.cjs.map +1 -0
- package/dist/production/src/hooks/useTenantQueryLoader.js +36 -0
- package/dist/production/src/hooks/useTenantQueryLoader.js.map +1 -0
- package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs +51 -0
- package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useHandleIDPResponse.js +51 -0
- package/dist/production/src/internal/hooks/useHandleIDPResponse.js.map +1 -0
- package/dist/production/src/internal/hooks/useIDPAutoInit.cjs +19 -0
- package/dist/production/src/internal/hooks/useIDPAutoInit.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useIDPAutoInit.js +19 -0
- package/dist/production/src/internal/hooks/useIDPAutoInit.js.map +1 -0
- package/dist/production/src/internal/hooks/useIDPStateStore.cjs +19 -0
- package/dist/production/src/internal/hooks/useIDPStateStore.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useIDPStateStore.js +19 -0
- package/dist/production/src/internal/hooks/useIDPStateStore.js.map +1 -0
- package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs +44 -0
- package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useInitIDPRedirect.js +44 -0
- package/dist/production/src/internal/hooks/useInitIDPRedirect.js.map +1 -0
- package/dist/production/src/internal/hooks/useLogoutInternal.cjs +35 -0
- package/dist/production/src/internal/hooks/useLogoutInternal.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useLogoutInternal.js +35 -0
- package/dist/production/src/internal/hooks/useLogoutInternal.js.map +1 -0
- package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs +36 -0
- package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useRedirectToBacklink.js +36 -0
- package/dist/production/src/internal/hooks/useRedirectToBacklink.js.map +1 -0
- package/dist/production/src/internal/utils/getBaseHref.cjs +8 -0
- package/dist/production/src/internal/utils/getBaseHref.cjs.map +1 -0
- package/dist/production/src/internal/utils/getBaseHref.js +8 -0
- package/dist/production/src/internal/utils/getBaseHref.js.map +1 -0
- package/dist/production/src/internal/utils/hashing.cjs +8 -0
- package/dist/production/src/internal/utils/hashing.cjs.map +1 -0
- package/dist/production/src/internal/utils/hashing.js +8 -0
- package/dist/production/src/internal/utils/hashing.js.map +1 -0
- package/dist/production/src/internal/utils/randomInt.cjs +29 -0
- package/dist/production/src/internal/utils/randomInt.cjs.map +1 -0
- package/dist/production/src/internal/utils/randomInt.js +29 -0
- package/dist/production/src/internal/utils/randomInt.js.map +1 -0
- package/dist/types/components/IdentityProvider.d.ts +6 -0
- package/dist/types/components/IdentityProvider.d.ts.map +1 -0
- package/dist/types/components/IdentityState.d.ts +8 -0
- package/dist/types/components/IdentityState.d.ts.map +1 -0
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts +19 -0
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -0
- package/dist/types/components/forms/CreateApiKeyForm.d.ts +23 -0
- package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +1 -0
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts +22 -0
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +1 -0
- package/dist/types/components/forms/InviteForm.d.ts +25 -0
- package/dist/types/components/forms/InviteForm.d.ts.map +1 -0
- package/dist/types/components/forms/LoginForm.d.ts +20 -0
- package/dist/types/components/forms/LoginForm.d.ts.map +1 -0
- package/dist/types/components/forms/OtpConfirmForm.d.ts +17 -0
- package/dist/types/components/forms/OtpConfirmForm.d.ts.map +1 -0
- package/dist/types/components/forms/OtpPrepareForm.d.ts +19 -0
- package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -0
- package/dist/types/components/forms/PasswordResetForm.d.ts +20 -0
- package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -0
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts +17 -0
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -0
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts +22 -0
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +1 -0
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts +20 -0
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +1 -0
- package/dist/types/components/forms/TenantForm.d.ts +37 -0
- package/dist/types/components/forms/TenantForm.d.ts.map +1 -0
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts +19 -0
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -0
- package/dist/types/components/forms/index.d.ts +13 -0
- package/dist/types/components/forms/index.d.ts.map +1 -0
- package/dist/types/components/idp/IDP.d.ts +12 -0
- package/dist/types/components/idp/IDP.d.ts.map +1 -0
- package/dist/types/components/idp/IDPInitTrigger.d.ts +7 -0
- package/dist/types/components/idp/IDPInitTrigger.d.ts.map +1 -0
- package/dist/types/components/idp/IDPState.d.ts +8 -0
- package/dist/types/components/idp/IDPState.d.ts.map +1 -0
- package/dist/types/components/idp/index.d.ts +4 -0
- package/dist/types/components/idp/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts +8 -0
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/LogoutTrigger.d.ts +5 -0
- package/dist/types/components/triggers/LogoutTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +9 -0
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/TenantActionTrigger.d.ts +22 -0
- package/dist/types/components/triggers/TenantActionTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/index.d.ts +4 -0
- package/dist/types/components/triggers/index.d.ts.map +1 -0
- package/dist/types/consts.d.ts +2 -0
- package/dist/types/consts.d.ts.map +1 -0
- package/dist/types/contexts.d.ts +20 -0
- package/dist/types/contexts.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +9 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/index.d.ts +5 -0
- package/dist/types/hooks/mutations/apiKey/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts +83 -0
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts +73 -0
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts +59 -0
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/index.d.ts +4 -0
- package/dist/types/hooks/mutations/auth/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts +65 -0
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/index.d.ts +3 -0
- package/dist/types/hooks/mutations/idp/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts +76 -0
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/index.d.ts +10 -0
- package/dist/types/hooks/mutations/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/invite/index.d.ts +2 -0
- package/dist/types/hooks/mutations/invite/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts +97 -0
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/index.d.ts +4 -0
- package/dist/types/hooks/mutations/memberships/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts +33 -0
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts +33 -0
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/index.d.ts +4 -0
- package/dist/types/hooks/mutations/otp/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts +17 -0
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts +25 -0
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordReset/index.d.ts +3 -0
- package/dist/types/hooks/mutations/passwordReset/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts +25 -0
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordless/index.d.ts +6 -0
- package/dist/types/hooks/mutations/passwordless/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts +8 -0
- package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts +3 -0
- package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts +3 -0
- package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts +34 -0
- package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/profile/index.d.ts +3 -0
- package/dist/types/hooks/mutations/profile/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts +21 -0
- package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts.map +1 -0
- package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts +23 -0
- package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts.map +1 -0
- package/dist/types/hooks/queries/index.d.ts +5 -0
- package/dist/types/hooks/queries/index.d.ts.map +1 -0
- package/dist/types/hooks/queries/useMeQuery.d.ts +52 -0
- package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +43 -0
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts +20 -0
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +66 -0
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -0
- package/dist/types/hooks/useFetchIdentity.d.ts +6 -0
- package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -0
- package/dist/types/hooks/useLogout.d.ts +4 -0
- package/dist/types/hooks/useLogout.d.ts.map +1 -0
- package/dist/types/hooks/usePasswordlessOtpActivator.d.ts +19 -0
- package/dist/types/hooks/usePasswordlessOtpActivator.d.ts.map +1 -0
- package/dist/types/hooks/useTenantApi.d.ts +12 -0
- package/dist/types/hooks/useTenantApi.d.ts.map +1 -0
- package/dist/types/hooks/useTenantMutation.d.ts +25 -0
- package/dist/types/hooks/useTenantMutation.d.ts.map +1 -0
- package/dist/types/hooks/useTenantQueryLoader.d.ts +17 -0
- package/dist/types/hooks/useTenantQueryLoader.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts +11 -0
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -0
- package/dist/types/internal/hooks/useIDPAutoInit.d.ts +2 -0
- package/dist/types/internal/hooks/useIDPAutoInit.d.ts.map +1 -0
- package/dist/types/internal/hooks/useIDPStateStore.d.ts +9 -0
- package/dist/types/internal/hooks/useIDPStateStore.d.ts.map +1 -0
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts +16 -0
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -0
- package/dist/types/internal/hooks/useLogoutInternal.d.ts +4 -0
- package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +1 -0
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts +6 -0
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts.map +1 -0
- package/dist/types/internal/utils/getBaseHref.d.ts +2 -0
- package/dist/types/internal/utils/getBaseHref.d.ts.map +1 -0
- package/dist/types/internal/utils/hashing.d.ts +2 -0
- package/dist/types/internal/utils/hashing.d.ts.map +1 -0
- package/dist/types/internal/utils/randomInt.d.ts +3 -0
- package/dist/types/internal/utils/randomInt.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/types/Identity.d.ts +20 -0
- package/dist/types/types/Identity.d.ts.map +1 -0
- package/dist/types/types/IdentityMethods.d.ts +5 -0
- package/dist/types/types/IdentityMethods.d.ts.map +1 -0
- package/dist/types/types/IdentityStateValue.d.ts +2 -0
- package/dist/types/types/IdentityStateValue.d.ts.map +1 -0
- package/dist/types/types/forms.d.ts +18 -0
- package/dist/types/types/forms.d.ts.map +1 -0
- package/dist/types/types/idp.d.ts +30 -0
- package/dist/types/types/idp.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +11 -11
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const contexts = require("./src/contexts.cjs");
|
|
4
|
+
const ChangeMyPasswordForm = require("./src/components/forms/ChangeMyPasswordForm.cjs");
|
|
5
|
+
const CreateApiKeyForm = require("./src/components/forms/CreateApiKeyForm.cjs");
|
|
6
|
+
const CreateSessionTokenForm = require("./src/components/forms/CreateSessionTokenForm.cjs");
|
|
7
|
+
const DisableOtpTrigger = require("./src/components/triggers/DisableOtpTrigger.cjs");
|
|
8
|
+
const IDP = require("./src/components/idp/IDP.cjs");
|
|
9
|
+
const IDPInitTrigger = require("./src/components/idp/IDPInitTrigger.cjs");
|
|
10
|
+
const IDPState = require("./src/components/idp/IDPState.cjs");
|
|
11
|
+
const IdentityProvider = require("./src/components/IdentityProvider.cjs");
|
|
12
|
+
const IdentityState = require("./src/components/IdentityState.cjs");
|
|
13
|
+
const InviteForm = require("./src/components/forms/InviteForm.cjs");
|
|
14
|
+
const LoginForm = require("./src/components/forms/LoginForm.cjs");
|
|
15
|
+
const useTenantApi = require("./src/hooks/useTenantApi.cjs");
|
|
16
|
+
const LogoutTrigger = require("./src/components/triggers/LogoutTrigger.cjs");
|
|
17
|
+
const OtpConfirmForm = require("./src/components/forms/OtpConfirmForm.cjs");
|
|
18
|
+
const OtpPrepareForm = require("./src/components/forms/OtpPrepareForm.cjs");
|
|
19
|
+
const PasswordResetForm = require("./src/components/forms/PasswordResetForm.cjs");
|
|
20
|
+
const PasswordResetRequestForm = require("./src/components/forms/PasswordResetRequestForm.cjs");
|
|
21
|
+
const PasswordlessSignInForm = require("./src/components/forms/PasswordlessSignInForm.cjs");
|
|
22
|
+
const PasswordlessSignInInitForm = require("./src/components/forms/PasswordlessSignInInitForm.cjs");
|
|
23
|
+
const RemoveProjectMemberTrigger = require("./src/components/triggers/RemoveProjectMemberTrigger.cjs");
|
|
24
|
+
const UpdateProjectMemberForm = require("./src/components/forms/UpdateProjectMemberForm.cjs");
|
|
25
|
+
const useAddProjectMemberMutation = require("./src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs");
|
|
26
|
+
const useChangeMyPasswordMutation = require("./src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs");
|
|
27
|
+
const useChangeMyProfile = require("./src/hooks/mutations/profile/useChangeMyProfile.cjs");
|
|
28
|
+
const useChangeProfile = require("./src/hooks/mutations/profile/useChangeProfile.cjs");
|
|
29
|
+
const useConfirmOtpMutation = require("./src/hooks/mutations/otp/useConfirmOtpMutation.cjs");
|
|
30
|
+
const useCreateApiKeyMutation = require("./src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs");
|
|
31
|
+
const useCreateGlobalApiKeyMutation = require("./src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs");
|
|
32
|
+
const useCreateResetPasswordRequestMutation = require("./src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs");
|
|
33
|
+
const useCreateSessionTokenMutation = require("./src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs");
|
|
34
|
+
const useTenantMutation = require("./src/hooks/useTenantMutation.cjs");
|
|
35
|
+
const useDisableApiKeyMutation = require("./src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs");
|
|
36
|
+
const useDisableOtpMutation = require("./src/hooks/mutations/otp/useDisableOtpMutation.cjs");
|
|
37
|
+
const useInviteMutation = require("./src/hooks/mutations/invite/useInviteMutation.cjs");
|
|
38
|
+
const usePrepareOtpMutation = require("./src/hooks/mutations/otp/usePrepareOtpMutation.cjs");
|
|
39
|
+
const useRemoveProjectMemberMutation = require("./src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs");
|
|
40
|
+
const useResetPasswordMutation = require("./src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs");
|
|
41
|
+
const useSignInIdpMutation = require("./src/hooks/mutations/idp/useSignInIdpMutation.cjs");
|
|
42
|
+
const useSignInMutation = require("./src/hooks/mutations/auth/useSignInMutation.cjs");
|
|
43
|
+
const useSignOutMutation = require("./src/hooks/mutations/auth/useSignOutMutation.cjs");
|
|
44
|
+
const useUpdateProjectMemberMutation = require("./src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs");
|
|
45
|
+
const useActivatePasswordlessOtpMutation = require("./src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs");
|
|
46
|
+
const useDisableMyPasswordlessMutation = require("./src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs");
|
|
47
|
+
const useEnableMyPasswordlessMutation = require("./src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs");
|
|
48
|
+
const useFetchIdentity = require("./src/hooks/useFetchIdentity.cjs");
|
|
49
|
+
const useInitSignInIDPMutation = require("./src/hooks/mutations/idp/useInitSignInIDPMutation.cjs");
|
|
50
|
+
const useInitSignInPasswordlessMutation = require("./src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs");
|
|
51
|
+
const useLogout = require("./src/hooks/useLogout.cjs");
|
|
52
|
+
const useMeQuery = require("./src/hooks/queries/useMeQuery.cjs");
|
|
53
|
+
const usePasswordlessOtpActivator = require("./src/hooks/usePasswordlessOtpActivator.cjs");
|
|
54
|
+
const useProjectMembersQuery = require("./src/hooks/queries/useProjectMembersQuery.cjs");
|
|
55
|
+
const useProjectMembershipsQuery = require("./src/hooks/queries/useProjectMembershipsQuery.cjs");
|
|
56
|
+
const useProjectRolesDefinitionQuery = require("./src/hooks/queries/useProjectRolesDefinitionQuery.cjs");
|
|
57
|
+
const useSignInPasswordlessMutation = require("./src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs");
|
|
58
|
+
const useTenantQueryLoader = require("./src/hooks/useTenantQueryLoader.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.ChangeMyPasswordForm = ChangeMyPasswordForm.ChangeMyPasswordForm;
|
|
72
|
+
exports.useChangeMyPasswordForm = ChangeMyPasswordForm.useChangeMyPasswordForm;
|
|
73
|
+
exports.CreateApiKeyForm = CreateApiKeyForm.CreateApiKeyForm;
|
|
74
|
+
exports.useCreateApiKeyForm = CreateApiKeyForm.useCreateApiKeyForm;
|
|
75
|
+
exports.CreateSessionTokenForm = CreateSessionTokenForm.CreateSessionTokenForm;
|
|
76
|
+
exports.useCreateSessionTokenForm = CreateSessionTokenForm.useCreateSessionTokenForm;
|
|
77
|
+
exports.DisableOtpTrigger = DisableOtpTrigger.DisableOtpTrigger;
|
|
78
|
+
exports.IDP = IDP.IDP;
|
|
79
|
+
exports.IDPInitTrigger = IDPInitTrigger.IDPInitTrigger;
|
|
80
|
+
exports.IDPState = IDPState.IDPState;
|
|
81
|
+
exports.IdentityProvider = IdentityProvider.IdentityProvider;
|
|
82
|
+
exports.IdentityState = IdentityState.IdentityState;
|
|
83
|
+
exports.InviteForm = InviteForm.InviteForm;
|
|
84
|
+
exports.useInviteForm = InviteForm.useInviteForm;
|
|
85
|
+
exports.LoginForm = LoginForm.LoginForm;
|
|
86
|
+
exports.useLoginForm = LoginForm.useLoginForm;
|
|
87
|
+
exports.LoginToken = useTenantApi.LoginToken;
|
|
88
|
+
exports.useTenantApi = useTenantApi.useTenantApi;
|
|
89
|
+
exports.LogoutTrigger = LogoutTrigger.LogoutTrigger;
|
|
90
|
+
exports.OtpConfirmForm = OtpConfirmForm.OtpConfirmForm;
|
|
91
|
+
exports.useOtpConfirmForm = OtpConfirmForm.useOtpConfirmForm;
|
|
92
|
+
exports.OtpPrepareForm = OtpPrepareForm.OtpPrepareForm;
|
|
93
|
+
exports.useOtpPrepareForm = OtpPrepareForm.useOtpPrepareForm;
|
|
94
|
+
exports.PasswordResetForm = PasswordResetForm.PasswordResetForm;
|
|
95
|
+
exports.usePasswordResetForm = PasswordResetForm.usePasswordResetForm;
|
|
96
|
+
exports.PasswordResetRequestForm = PasswordResetRequestForm.PasswordResetRequestForm;
|
|
97
|
+
exports.usePasswordResetRequestForm = PasswordResetRequestForm.usePasswordResetRequestForm;
|
|
98
|
+
exports.PasswordlessSignInForm = PasswordlessSignInForm.PasswordlessSignInForm;
|
|
99
|
+
exports.usePasswordlessSignInForm = PasswordlessSignInForm.usePasswordlessSignInForm;
|
|
100
|
+
exports.PasswordlessSignInInitForm = PasswordlessSignInInitForm.PasswordlessSignInInitForm;
|
|
101
|
+
exports.usePasswordlessSignInInitForm = PasswordlessSignInInitForm.usePasswordlessSignInInitForm;
|
|
102
|
+
exports.RemoveProjectMemberTrigger = RemoveProjectMemberTrigger.RemoveProjectMemberTrigger;
|
|
103
|
+
exports.UpdateProjectMemberForm = UpdateProjectMemberForm.UpdateProjectMemberForm;
|
|
104
|
+
exports.useUpdateProjectMemberForm = UpdateProjectMemberForm.useUpdateProjectMemberForm;
|
|
105
|
+
exports.addProjectMemberMutation = useAddProjectMemberMutation.addProjectMemberMutation;
|
|
106
|
+
exports.useAddProjectMemberMutation = useAddProjectMemberMutation.useAddProjectMemberMutation;
|
|
107
|
+
exports.changeMyPasswordMutation = useChangeMyPasswordMutation.changeMyPasswordMutation;
|
|
108
|
+
exports.useChangeMyPasswordMutation = useChangeMyPasswordMutation.useChangeMyPasswordMutation;
|
|
109
|
+
exports.changeMyProfile = useChangeMyProfile.changeMyProfile;
|
|
110
|
+
exports.useChangeMyProfileMutation = useChangeMyProfile.useChangeMyProfileMutation;
|
|
111
|
+
exports.changeProfile = useChangeProfile.changeProfile;
|
|
112
|
+
exports.useChangeProfileMutation = useChangeProfile.useChangeProfileMutation;
|
|
113
|
+
exports.confirmOtpMutation = useConfirmOtpMutation.confirmOtpMutation;
|
|
114
|
+
exports.useConfirmOtpMutation = useConfirmOtpMutation.useConfirmOtpMutation;
|
|
115
|
+
exports.createApiKeyMutation = useCreateApiKeyMutation.createApiKeyMutation;
|
|
116
|
+
exports.useCreateApiKeyMutation = useCreateApiKeyMutation.useCreateApiKeyMutation;
|
|
117
|
+
exports.createGlobalApiKeyMutation = useCreateGlobalApiKeyMutation.createGlobalApiKeyMutation;
|
|
118
|
+
exports.useCreateGlobalApiKeyMutation = useCreateGlobalApiKeyMutation.useCreateGlobalApiKeyMutation;
|
|
119
|
+
exports.createResetPasswordRequestMutation = useCreateResetPasswordRequestMutation.createResetPasswordRequestMutation;
|
|
120
|
+
exports.useCreateResetPasswordRequestMutation = useCreateResetPasswordRequestMutation.useCreateResetPasswordRequestMutation;
|
|
121
|
+
exports.createSessionTokenMutation = useCreateSessionTokenMutation.createSessionTokenMutation;
|
|
122
|
+
exports.useCreateSessionTokenMutation = useCreateSessionTokenMutation.useCreateSessionTokenMutation;
|
|
123
|
+
exports.createTenantMutation = useTenantMutation.createTenantMutation;
|
|
124
|
+
exports.useTenantMutation = useTenantMutation.useTenantMutation;
|
|
125
|
+
exports.disableApiKeyMutation = useDisableApiKeyMutation.disableApiKeyMutation;
|
|
126
|
+
exports.useDisableApiKeyMutation = useDisableApiKeyMutation.useDisableApiKeyMutation;
|
|
127
|
+
exports.disableOtpMutation = useDisableOtpMutation.disableOtpMutation;
|
|
128
|
+
exports.useDisableOtpMutation = useDisableOtpMutation.useDisableOtpMutation;
|
|
129
|
+
exports.inviteMutation = useInviteMutation.inviteMutation;
|
|
130
|
+
exports.useInviteMutation = useInviteMutation.useInviteMutation;
|
|
131
|
+
exports.prepareOtpMutation = usePrepareOtpMutation.prepareOtpMutation;
|
|
132
|
+
exports.usePrepareOtpMutation = usePrepareOtpMutation.usePrepareOtpMutation;
|
|
133
|
+
exports.removeProjectMemberMutation = useRemoveProjectMemberMutation.removeProjectMemberMutation;
|
|
134
|
+
exports.useRemoveProjectMemberMutation = useRemoveProjectMemberMutation.useRemoveProjectMemberMutation;
|
|
135
|
+
exports.resetPasswordMutation = useResetPasswordMutation.resetPasswordMutation;
|
|
136
|
+
exports.useResetPasswordMutation = useResetPasswordMutation.useResetPasswordMutation;
|
|
137
|
+
exports.signInIDPMutation = useSignInIdpMutation.signInIDPMutation;
|
|
138
|
+
exports.useSignInIDPMutation = useSignInIdpMutation.useSignInIDPMutation;
|
|
139
|
+
exports.signInMutation = useSignInMutation.signInMutation;
|
|
140
|
+
exports.useSignInMutation = useSignInMutation.useSignInMutation;
|
|
141
|
+
exports.signOutMutation = useSignOutMutation.signOutMutation;
|
|
142
|
+
exports.useSignOutMutation = useSignOutMutation.useSignOutMutation;
|
|
143
|
+
exports.updateProjectMemberMutation = useUpdateProjectMemberMutation.updateProjectMemberMutation;
|
|
144
|
+
exports.useUpdateProjectMemberMutation = useUpdateProjectMemberMutation.useUpdateProjectMemberMutation;
|
|
145
|
+
exports.useActivatePasswordlessOtpMutation = useActivatePasswordlessOtpMutation.useActivatePasswordlessOtpMutation;
|
|
146
|
+
exports.useDisableMyPasswordlessMutation = useDisableMyPasswordlessMutation.useDisableMyPasswordlessMutation;
|
|
147
|
+
exports.useEnableMyPasswordlessMutation = useEnableMyPasswordlessMutation.useEnableMyPasswordlessMutation;
|
|
148
|
+
exports.useFetchIdentity = useFetchIdentity.useFetchIdentity;
|
|
149
|
+
exports.useInitSignInIDPMutation = useInitSignInIDPMutation.useInitSignInIDPMutation;
|
|
150
|
+
exports.useInitSignInPasswordlessMutation = useInitSignInPasswordlessMutation.useInitSignInPasswordlessMutation;
|
|
151
|
+
exports.useLogout = useLogout.useLogout;
|
|
152
|
+
exports.useMeQuery = useMeQuery.useMeQuery;
|
|
153
|
+
exports.usePasswordlessOtpActivator = usePasswordlessOtpActivator.usePasswordlessOtpActivator;
|
|
154
|
+
exports.useProjectMembersQuery = useProjectMembersQuery.useProjectMembersQuery;
|
|
155
|
+
exports.useProjectMembershipsQuery = useProjectMembershipsQuery.useProjectMembershipsQuery;
|
|
156
|
+
exports.useProjectRolesDefinitionQuery = useProjectRolesDefinitionQuery.useProjectRolesDefinitionQuery;
|
|
157
|
+
exports.useSignInPasswordlessMutation = useSignInPasswordlessMutation.useSignInPasswordlessMutation;
|
|
158
|
+
exports.useTenantQueryLoader = useTenantQueryLoader.useTenantQueryLoader;
|
|
159
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { FormContext, IDPMethodsContextProvider, IDPStateContextProvider, IdentityContext, IdentityMethodsContext, IdentityStateContext, useForm, useIDPMethods, useIDPState, useIdentity, useIdentityMethods, useIdentityState } from "./src/contexts.js";
|
|
2
|
+
import { ChangeMyPasswordForm, useChangeMyPasswordForm } from "./src/components/forms/ChangeMyPasswordForm.js";
|
|
3
|
+
import { CreateApiKeyForm, useCreateApiKeyForm } from "./src/components/forms/CreateApiKeyForm.js";
|
|
4
|
+
import { CreateSessionTokenForm, useCreateSessionTokenForm } from "./src/components/forms/CreateSessionTokenForm.js";
|
|
5
|
+
import { DisableOtpTrigger } from "./src/components/triggers/DisableOtpTrigger.js";
|
|
6
|
+
import { IDP } from "./src/components/idp/IDP.js";
|
|
7
|
+
import { IDPInitTrigger } from "./src/components/idp/IDPInitTrigger.js";
|
|
8
|
+
import { IDPState } from "./src/components/idp/IDPState.js";
|
|
9
|
+
import { IdentityProvider } from "./src/components/IdentityProvider.js";
|
|
10
|
+
import { IdentityState } from "./src/components/IdentityState.js";
|
|
11
|
+
import { InviteForm, useInviteForm } from "./src/components/forms/InviteForm.js";
|
|
12
|
+
import { LoginForm, useLoginForm } from "./src/components/forms/LoginForm.js";
|
|
13
|
+
import { LoginToken, useTenantApi } from "./src/hooks/useTenantApi.js";
|
|
14
|
+
import { LogoutTrigger } from "./src/components/triggers/LogoutTrigger.js";
|
|
15
|
+
import { OtpConfirmForm, useOtpConfirmForm } from "./src/components/forms/OtpConfirmForm.js";
|
|
16
|
+
import { OtpPrepareForm, useOtpPrepareForm } from "./src/components/forms/OtpPrepareForm.js";
|
|
17
|
+
import { PasswordResetForm, usePasswordResetForm } from "./src/components/forms/PasswordResetForm.js";
|
|
18
|
+
import { PasswordResetRequestForm, usePasswordResetRequestForm } from "./src/components/forms/PasswordResetRequestForm.js";
|
|
19
|
+
import { PasswordlessSignInForm, usePasswordlessSignInForm } from "./src/components/forms/PasswordlessSignInForm.js";
|
|
20
|
+
import { PasswordlessSignInInitForm, usePasswordlessSignInInitForm } from "./src/components/forms/PasswordlessSignInInitForm.js";
|
|
21
|
+
import { RemoveProjectMemberTrigger } from "./src/components/triggers/RemoveProjectMemberTrigger.js";
|
|
22
|
+
import { UpdateProjectMemberForm, useUpdateProjectMemberForm } from "./src/components/forms/UpdateProjectMemberForm.js";
|
|
23
|
+
import { addProjectMemberMutation, useAddProjectMemberMutation } from "./src/hooks/mutations/memberships/useAddProjectMemberMutation.js";
|
|
24
|
+
import { changeMyPasswordMutation, useChangeMyPasswordMutation } from "./src/hooks/mutations/auth/useChangeMyPasswordMutation.js";
|
|
25
|
+
import { changeMyProfile, useChangeMyProfileMutation } from "./src/hooks/mutations/profile/useChangeMyProfile.js";
|
|
26
|
+
import { changeProfile, useChangeProfileMutation } from "./src/hooks/mutations/profile/useChangeProfile.js";
|
|
27
|
+
import { confirmOtpMutation, useConfirmOtpMutation } from "./src/hooks/mutations/otp/useConfirmOtpMutation.js";
|
|
28
|
+
import { createApiKeyMutation, useCreateApiKeyMutation } from "./src/hooks/mutations/apiKey/useCreateApiKeyMutation.js";
|
|
29
|
+
import { createGlobalApiKeyMutation, useCreateGlobalApiKeyMutation } from "./src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js";
|
|
30
|
+
import { createResetPasswordRequestMutation, useCreateResetPasswordRequestMutation } from "./src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js";
|
|
31
|
+
import { createSessionTokenMutation, useCreateSessionTokenMutation } from "./src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js";
|
|
32
|
+
import { createTenantMutation, useTenantMutation } from "./src/hooks/useTenantMutation.js";
|
|
33
|
+
import { disableApiKeyMutation, useDisableApiKeyMutation } from "./src/hooks/mutations/apiKey/useDisableApiKeyMutation.js";
|
|
34
|
+
import { disableOtpMutation, useDisableOtpMutation } from "./src/hooks/mutations/otp/useDisableOtpMutation.js";
|
|
35
|
+
import { inviteMutation, useInviteMutation } from "./src/hooks/mutations/invite/useInviteMutation.js";
|
|
36
|
+
import { prepareOtpMutation, usePrepareOtpMutation } from "./src/hooks/mutations/otp/usePrepareOtpMutation.js";
|
|
37
|
+
import { removeProjectMemberMutation, useRemoveProjectMemberMutation } from "./src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js";
|
|
38
|
+
import { resetPasswordMutation, useResetPasswordMutation } from "./src/hooks/mutations/passwordReset/useResetPasswordMutation.js";
|
|
39
|
+
import { signInIDPMutation, useSignInIDPMutation } from "./src/hooks/mutations/idp/useSignInIdpMutation.js";
|
|
40
|
+
import { signInMutation, useSignInMutation } from "./src/hooks/mutations/auth/useSignInMutation.js";
|
|
41
|
+
import { signOutMutation, useSignOutMutation } from "./src/hooks/mutations/auth/useSignOutMutation.js";
|
|
42
|
+
import { updateProjectMemberMutation, useUpdateProjectMemberMutation } from "./src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js";
|
|
43
|
+
import { useActivatePasswordlessOtpMutation } from "./src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js";
|
|
44
|
+
import { useDisableMyPasswordlessMutation } from "./src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js";
|
|
45
|
+
import { useEnableMyPasswordlessMutation } from "./src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js";
|
|
46
|
+
import { useFetchIdentity } from "./src/hooks/useFetchIdentity.js";
|
|
47
|
+
import { useInitSignInIDPMutation } from "./src/hooks/mutations/idp/useInitSignInIDPMutation.js";
|
|
48
|
+
import { useInitSignInPasswordlessMutation } from "./src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js";
|
|
49
|
+
import { useLogout } from "./src/hooks/useLogout.js";
|
|
50
|
+
import { useMeQuery } from "./src/hooks/queries/useMeQuery.js";
|
|
51
|
+
import { usePasswordlessOtpActivator } from "./src/hooks/usePasswordlessOtpActivator.js";
|
|
52
|
+
import { useProjectMembersQuery } from "./src/hooks/queries/useProjectMembersQuery.js";
|
|
53
|
+
import { useProjectMembershipsQuery } from "./src/hooks/queries/useProjectMembershipsQuery.js";
|
|
54
|
+
import { useProjectRolesDefinitionQuery } from "./src/hooks/queries/useProjectRolesDefinitionQuery.js";
|
|
55
|
+
import { useSignInPasswordlessMutation } from "./src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js";
|
|
56
|
+
import { useTenantQueryLoader } from "./src/hooks/useTenantQueryLoader.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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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: 31,
|
|
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: 30,
|
|
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: 29,
|
|
34
|
+
columnNumber: 3
|
|
35
|
+
}, void 0);
|
|
36
|
+
};
|
|
37
|
+
exports.IdentityProvider = IdentityProvider;
|
|
38
|
+
//# sourceMappingURL=IdentityProvider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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\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\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":";;;;;;;AASO,MAAM,mBAAoD,CAAC,EAAE,eAAe;AAClF,QAAM,eAAeA,YAAAA,gBAAA;AACrB,QAAM,CAAC,EAAE,UAAU,SAAS,OAAO,IAAIC,iBAAAA,iBAAA;AAEvC,QAAM,EAAE,iBAAiB,cAAA,IAAkB;AAC3CC,QAAAA,UAAU,MAAM;AACf,QAAI,iBAAiB,QAAW;AAC/B,sBAAA;AAAA,IACD;AAAA,EACD,GAAG,CAAC,cAAc,eAAe,CAAC;AAElC,QAAM,cAAc,aAAa;AACjCA,QAAAA,UAAU,MAAM;AACf,QAAI,iBAAiB,UAAa,aAAa;AAC9C,oBAAA;AAAA,IACD;AAAA,EACD,GAAG,CAAC,cAAc,eAAe,WAAW,CAAC;AAE7C,8CACEC,SAAAA,qBAAqB,UAArB,EAA8B,OAAO,OACrC,+CAACC,yBAAgB,UAAhB,EAAyB,OAAO,UAChC,UAAAC,8BAAAA,OAACC,SAAAA,uBAAuB,UAAvB,EAAgC,OAAO,SACtC,SAAA,GADF,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAEA,EAAA,GAHD,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAIA,EAAA,GALD,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAMA;AAEF;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { useSessionToken } from "@contember/react-client";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import { IdentityStateContext, IdentityContext, IdentityMethodsContext } from "../contexts.js";
|
|
5
|
+
import { useFetchIdentity } from "../hooks/useFetchIdentity.js";
|
|
6
|
+
const IdentityProvider = ({ children }) => {
|
|
7
|
+
const sessionToken = useSessionToken();
|
|
8
|
+
const [{ identity, state }, methods] = useFetchIdentity();
|
|
9
|
+
const { refreshIdentity, clearIdentity } = methods;
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (sessionToken !== void 0) {
|
|
12
|
+
refreshIdentity();
|
|
13
|
+
}
|
|
14
|
+
}, [sessionToken, refreshIdentity]);
|
|
15
|
+
const hasIdentity = identity !== void 0;
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (sessionToken === void 0 && hasIdentity) {
|
|
18
|
+
clearIdentity();
|
|
19
|
+
}
|
|
20
|
+
}, [sessionToken, clearIdentity, hasIdentity]);
|
|
21
|
+
return /* @__PURE__ */ jsxDEV(IdentityStateContext.Provider, { value: state, children: /* @__PURE__ */ jsxDEV(IdentityContext.Provider, { value: identity, children: /* @__PURE__ */ jsxDEV(IdentityMethodsContext.Provider, { value: methods, children }, void 0, false, {
|
|
22
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityProvider.tsx",
|
|
23
|
+
lineNumber: 31,
|
|
24
|
+
columnNumber: 5
|
|
25
|
+
}, void 0) }, void 0, false, {
|
|
26
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityProvider.tsx",
|
|
27
|
+
lineNumber: 30,
|
|
28
|
+
columnNumber: 4
|
|
29
|
+
}, void 0) }, void 0, false, {
|
|
30
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityProvider.tsx",
|
|
31
|
+
lineNumber: 29,
|
|
32
|
+
columnNumber: 3
|
|
33
|
+
}, void 0);
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
IdentityProvider
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=IdentityProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityProvider.js","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\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\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":["this"],"mappings":";;;;;AASO,MAAM,mBAAoD,CAAC,EAAE,eAAe;AAClF,QAAM,eAAe,gBAAA;AACrB,QAAM,CAAC,EAAE,UAAU,SAAS,OAAO,IAAI,iBAAA;AAEvC,QAAM,EAAE,iBAAiB,cAAA,IAAkB;AAC3C,YAAU,MAAM;AACf,QAAI,iBAAiB,QAAW;AAC/B,sBAAA;AAAA,IACD;AAAA,EACD,GAAG,CAAC,cAAc,eAAe,CAAC;AAElC,QAAM,cAAc,aAAa;AACjC,YAAU,MAAM;AACf,QAAI,iBAAiB,UAAa,aAAa;AAC9C,oBAAA;AAAA,IACD;AAAA,EACD,GAAG,CAAC,cAAc,eAAe,WAAW,CAAC;AAE7C,gCACE,qBAAqB,UAArB,EAA8B,OAAO,OACrC,iCAAC,gBAAgB,UAAhB,EAAyB,OAAO,UAChC,UAAA,uBAAC,uBAAuB,UAAvB,EAAgC,OAAO,SACtC,SAAA,GADF,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAEA,EAAA,GAHD,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAIA,EAAA,GALD,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAMA;AAEF;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const contexts = require("../contexts.cjs");
|
|
5
|
+
const IdentityState = ({ state, children }) => {
|
|
6
|
+
const currentState = contexts.useIdentityState();
|
|
7
|
+
return state === currentState || Array.isArray(state) && state.includes(currentState) ? /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children }, void 0, false, {
|
|
8
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityState.tsx",
|
|
9
|
+
lineNumber: 13,
|
|
10
|
+
columnNumber: 92
|
|
11
|
+
}, void 0) : null;
|
|
12
|
+
};
|
|
13
|
+
exports.IdentityState = IdentityState;
|
|
14
|
+
//# sourceMappingURL=IdentityState.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityState.cjs","sources":["../../../../../packages/react-client-tenant/src/components/IdentityState.tsx"],"sourcesContent":["import React, { ReactNode } from 'react'\nimport { IdentityStateValue } from '../types'\nimport { useIdentityState } from '../contexts'\n\nexport interface IdentityStateProps {\n\tstate: IdentityStateValue | IdentityStateValue[]\n\tchildren: ReactNode\n}\n\nexport const IdentityState = ({ state, children }: IdentityStateProps) => {\n\tconst currentState = useIdentityState()\n\n\treturn state === currentState || (Array.isArray(state) && state.includes(currentState)) ? <>{children}</> : null\n}\n"],"names":["useIdentityState","jsxDEV","Fragment","this"],"mappings":";;;;AASO,MAAM,gBAAgB,CAAC,EAAE,OAAO,eAAmC;AACzE,QAAM,eAAeA,SAAAA,iBAAA;AAErB,SAAO,UAAU,gBAAiB,MAAM,QAAQ,KAAK,KAAK,MAAM,SAAS,YAAY,IAAKC,8BAAAA,OAAAC,cAAAA,UAAA,EAAG,SAAA,GAAH,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAAY,IAAM;AAC7G;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
|
|
2
|
+
import { useIdentityState } from "../contexts.js";
|
|
3
|
+
const IdentityState = ({ state, children }) => {
|
|
4
|
+
const currentState = useIdentityState();
|
|
5
|
+
return state === currentState || Array.isArray(state) && state.includes(currentState) ? /* @__PURE__ */ jsxDEV(Fragment, { children }, void 0, false, {
|
|
6
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/IdentityState.tsx",
|
|
7
|
+
lineNumber: 13,
|
|
8
|
+
columnNumber: 92
|
|
9
|
+
}, void 0) : null;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
IdentityState
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=IdentityState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityState.js","sources":["../../../../../packages/react-client-tenant/src/components/IdentityState.tsx"],"sourcesContent":["import React, { ReactNode } from 'react'\nimport { IdentityStateValue } from '../types'\nimport { useIdentityState } from '../contexts'\n\nexport interface IdentityStateProps {\n\tstate: IdentityStateValue | IdentityStateValue[]\n\tchildren: ReactNode\n}\n\nexport const IdentityState = ({ state, children }: IdentityStateProps) => {\n\tconst currentState = useIdentityState()\n\n\treturn state === currentState || (Array.isArray(state) && state.includes(currentState)) ? <>{children}</> : null\n}\n"],"names":["this"],"mappings":";;AASO,MAAM,gBAAgB,CAAC,EAAE,OAAO,eAAmC;AACzE,QAAM,eAAe,iBAAA;AAErB,SAAO,UAAU,gBAAiB,MAAM,QAAQ,KAAK,KAAK,MAAM,SAAS,YAAY,IAAK,uBAAA,UAAA,EAAG,SAAA,GAAH,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAAY,IAAM;AAC7G;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const TenantForm = require("./TenantForm.cjs");
|
|
5
|
+
const contexts = require("../../contexts.cjs");
|
|
6
|
+
const useChangeMyPasswordMutation = require("../../hooks/mutations/auth/useChangeMyPasswordMutation.cjs");
|
|
7
|
+
const useChangeMyPasswordForm = contexts.useForm;
|
|
8
|
+
const ChangeMyPasswordForm = ({ children, onSuccess }) => {
|
|
9
|
+
const changePassword = useChangeMyPasswordMutation.useChangeMyPasswordMutation();
|
|
10
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(
|
|
11
|
+
TenantForm.TenantForm,
|
|
12
|
+
{
|
|
13
|
+
onSuccess,
|
|
14
|
+
errorMapping: errorToField,
|
|
15
|
+
initialValues: {
|
|
16
|
+
currentPassword: "",
|
|
17
|
+
newPassword: "",
|
|
18
|
+
passwordConfirmation: ""
|
|
19
|
+
},
|
|
20
|
+
validate: ({ values }) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
if (!values.currentPassword) {
|
|
23
|
+
errors.push({ code: "FIELD_REQUIRED", field: "currentPassword" });
|
|
24
|
+
}
|
|
25
|
+
if (!values.newPassword) {
|
|
26
|
+
errors.push({ code: "FIELD_REQUIRED", field: "newPassword" });
|
|
27
|
+
} else if (values.newPassword.length < 6) {
|
|
28
|
+
errors.push({ code: "INVALID_VALUE", field: "newPassword" });
|
|
29
|
+
} else if (!values.passwordConfirmation) {
|
|
30
|
+
errors.push({ code: "FIELD_REQUIRED", field: "passwordConfirmation" });
|
|
31
|
+
} else if (values.newPassword !== values.passwordConfirmation) {
|
|
32
|
+
errors.push({ code: "PASSWORD_MISMATCH", field: "passwordConfirmation" });
|
|
33
|
+
}
|
|
34
|
+
return errors;
|
|
35
|
+
},
|
|
36
|
+
execute: async ({ values }) => {
|
|
37
|
+
return await changePassword(values);
|
|
38
|
+
},
|
|
39
|
+
children
|
|
40
|
+
},
|
|
41
|
+
void 0,
|
|
42
|
+
false,
|
|
43
|
+
{
|
|
44
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/forms/ChangeMyPasswordForm.tsx",
|
|
45
|
+
lineNumber: 37,
|
|
46
|
+
columnNumber: 3
|
|
47
|
+
},
|
|
48
|
+
void 0
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
const errorToField = {
|
|
52
|
+
PASSWORD_MISMATCH: "passwordConfirmation",
|
|
53
|
+
TOO_WEAK: "newPassword",
|
|
54
|
+
NO_PASSWORD_SET: "currentPassword",
|
|
55
|
+
INVALID_PASSWORD: "currentPassword"
|
|
56
|
+
};
|
|
57
|
+
exports.ChangeMyPasswordForm = ChangeMyPasswordForm;
|
|
58
|
+
exports.useChangeMyPasswordForm = useChangeMyPasswordForm;
|
|
59
|
+
//# sourceMappingURL=ChangeMyPasswordForm.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeMyPasswordForm.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/forms/ChangeMyPasswordForm.tsx"],"sourcesContent":["import { ReactElement } from 'react'\nimport { ChangeMyPasswordErrorCode } from '@contember/graphql-client-tenant'\nimport { TenantForm } from './TenantForm'\nimport { FormContextValue, FormError, FormState } from '../../types'\nimport { useForm } from '../../contexts'\nimport { useChangeMyPasswordMutation } from '../../hooks'\n\nexport type ChangeMyPasswordFormValues = {\n\tcurrentPassword: string\n\tnewPassword: string\n\tpasswordConfirmation: string\n}\n\nexport type ChangeMyPasswordFormErrorCode =\n\t| ChangeMyPasswordErrorCode\n\t| 'FIELD_REQUIRED'\n\t| 'INVALID_VALUE'\n\t| 'PASSWORD_MISMATCH'\n\t| 'UNKNOWN_ERROR'\n\nexport type ChangeMyPasswordFormState = FormState\n\nexport type ChangeMyPasswordFormError = FormError<ChangeMyPasswordFormValues, ChangeMyPasswordFormErrorCode>\n\nexport type ChangeMyPasswordFormContextValue = FormContextValue<ChangeMyPasswordFormValues, ChangeMyPasswordFormErrorCode>\n\nexport interface ChangeMyPasswordFormProps {\n\tchildren: ReactElement\n\tonSuccess?: () => void\n}\n\nexport const useChangeMyPasswordForm = useForm as () => ChangeMyPasswordFormContextValue\n\nexport const ChangeMyPasswordForm = ({ children, onSuccess }: ChangeMyPasswordFormProps) => {\n\tconst changePassword = useChangeMyPasswordMutation()\n\treturn (\n\t\t<TenantForm<ChangeMyPasswordFormContextValue>\n\t\t\tonSuccess={onSuccess}\n\t\t\terrorMapping={errorToField}\n\t\t\tinitialValues={{\n\t\t\t\tcurrentPassword: '',\n\t\t\t\tnewPassword: '',\n\t\t\t\tpasswordConfirmation: '',\n\t\t\t}}\n\t\t\tvalidate={({ values }) => {\n\t\t\t\tconst errors: ChangeMyPasswordFormError[] = []\n\t\t\t\tif (!values.currentPassword) {\n\t\t\t\t\terrors.push({ code: 'FIELD_REQUIRED', field: 'currentPassword' })\n\t\t\t\t}\n\t\t\t\tif (!values.newPassword) {\n\t\t\t\t\terrors.push({ code: 'FIELD_REQUIRED', field: 'newPassword' })\n\t\t\t\t} else if (values.newPassword.length < 6) {\n\t\t\t\t\terrors.push({ code: 'INVALID_VALUE', field: 'newPassword' })\n\t\t\t\t} else if (!values.passwordConfirmation) {\n\t\t\t\t\terrors.push({ code: 'FIELD_REQUIRED', field: 'passwordConfirmation' })\n\t\t\t\t} else if (values.newPassword !== values.passwordConfirmation) {\n\t\t\t\t\terrors.push({ code: 'PASSWORD_MISMATCH', field: 'passwordConfirmation' })\n\t\t\t\t}\n\t\t\t\treturn errors\n\t\t\t}}\n\t\t\texecute={async ({ values }) => {\n\t\t\t\treturn await changePassword(values)\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</TenantForm>\n\t)\n}\nconst errorToField: Partial<Record<ChangeMyPasswordFormErrorCode, keyof ChangeMyPasswordFormValues | undefined>> = {\n\tPASSWORD_MISMATCH: 'passwordConfirmation',\n\tTOO_WEAK: 'newPassword',\n\tNO_PASSWORD_SET: 'currentPassword',\n\tINVALID_PASSWORD: 'currentPassword',\n}\n"],"names":["useForm","useChangeMyPasswordMutation","jsxDEV","TenantForm","this"],"mappings":";;;;;;AA+BO,MAAM,0BAA0BA,SAAAA;AAEhC,MAAM,uBAAuB,CAAC,EAAE,UAAU,gBAA2C;AAC3F,QAAM,iBAAiBC,4BAAAA,4BAAA;AACvB,SACCC,8BAAAA;AAAAA,IAACC,WAAAA;AAAAA,IAAA;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,eAAe;AAAA,QACd,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,sBAAsB;AAAA,MAAA;AAAA,MAEvB,UAAU,CAAC,EAAE,aAAa;AACzB,cAAM,SAAsC,CAAA;AAC5C,YAAI,CAAC,OAAO,iBAAiB;AAC5B,iBAAO,KAAK,EAAE,MAAM,kBAAkB,OAAO,mBAAmB;AAAA,QACjE;AACA,YAAI,CAAC,OAAO,aAAa;AACxB,iBAAO,KAAK,EAAE,MAAM,kBAAkB,OAAO,eAAe;AAAA,QAC7D,WAAW,OAAO,YAAY,SAAS,GAAG;AACzC,iBAAO,KAAK,EAAE,MAAM,iBAAiB,OAAO,eAAe;AAAA,QAC5D,WAAW,CAAC,OAAO,sBAAsB;AACxC,iBAAO,KAAK,EAAE,MAAM,kBAAkB,OAAO,wBAAwB;AAAA,QACtE,WAAW,OAAO,gBAAgB,OAAO,sBAAsB;AAC9D,iBAAO,KAAK,EAAE,MAAM,qBAAqB,OAAO,wBAAwB;AAAA,QACzE;AACA,eAAO;AAAA,MACR;AAAA,MACA,SAAS,OAAO,EAAE,aAAa;AAC9B,eAAO,MAAM,eAAe,MAAM;AAAA,MACnC;AAAA,MAEC;AAAA,IAAA;AAAA,IA5BF;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAAC;AAAAA,EAAA;AA+BF;AACA,MAAM,eAA6G;AAAA,EAClH,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { TenantForm } from "./TenantForm.js";
|
|
3
|
+
import { useForm } from "../../contexts.js";
|
|
4
|
+
import { useChangeMyPasswordMutation } from "../../hooks/mutations/auth/useChangeMyPasswordMutation.js";
|
|
5
|
+
const useChangeMyPasswordForm = useForm;
|
|
6
|
+
const ChangeMyPasswordForm = ({ children, onSuccess }) => {
|
|
7
|
+
const changePassword = useChangeMyPasswordMutation();
|
|
8
|
+
return /* @__PURE__ */ jsxDEV(
|
|
9
|
+
TenantForm,
|
|
10
|
+
{
|
|
11
|
+
onSuccess,
|
|
12
|
+
errorMapping: errorToField,
|
|
13
|
+
initialValues: {
|
|
14
|
+
currentPassword: "",
|
|
15
|
+
newPassword: "",
|
|
16
|
+
passwordConfirmation: ""
|
|
17
|
+
},
|
|
18
|
+
validate: ({ values }) => {
|
|
19
|
+
const errors = [];
|
|
20
|
+
if (!values.currentPassword) {
|
|
21
|
+
errors.push({ code: "FIELD_REQUIRED", field: "currentPassword" });
|
|
22
|
+
}
|
|
23
|
+
if (!values.newPassword) {
|
|
24
|
+
errors.push({ code: "FIELD_REQUIRED", field: "newPassword" });
|
|
25
|
+
} else if (values.newPassword.length < 6) {
|
|
26
|
+
errors.push({ code: "INVALID_VALUE", field: "newPassword" });
|
|
27
|
+
} else if (!values.passwordConfirmation) {
|
|
28
|
+
errors.push({ code: "FIELD_REQUIRED", field: "passwordConfirmation" });
|
|
29
|
+
} else if (values.newPassword !== values.passwordConfirmation) {
|
|
30
|
+
errors.push({ code: "PASSWORD_MISMATCH", field: "passwordConfirmation" });
|
|
31
|
+
}
|
|
32
|
+
return errors;
|
|
33
|
+
},
|
|
34
|
+
execute: async ({ values }) => {
|
|
35
|
+
return await changePassword(values);
|
|
36
|
+
},
|
|
37
|
+
children
|
|
38
|
+
},
|
|
39
|
+
void 0,
|
|
40
|
+
false,
|
|
41
|
+
{
|
|
42
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/forms/ChangeMyPasswordForm.tsx",
|
|
43
|
+
lineNumber: 37,
|
|
44
|
+
columnNumber: 3
|
|
45
|
+
},
|
|
46
|
+
void 0
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
const errorToField = {
|
|
50
|
+
PASSWORD_MISMATCH: "passwordConfirmation",
|
|
51
|
+
TOO_WEAK: "newPassword",
|
|
52
|
+
NO_PASSWORD_SET: "currentPassword",
|
|
53
|
+
INVALID_PASSWORD: "currentPassword"
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
ChangeMyPasswordForm,
|
|
57
|
+
useChangeMyPasswordForm
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=ChangeMyPasswordForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeMyPasswordForm.js","sources":["../../../../../../packages/react-client-tenant/src/components/forms/ChangeMyPasswordForm.tsx"],"sourcesContent":["import { ReactElement } from 'react'\nimport { ChangeMyPasswordErrorCode } from '@contember/graphql-client-tenant'\nimport { TenantForm } from './TenantForm'\nimport { FormContextValue, FormError, FormState } from '../../types'\nimport { useForm } from '../../contexts'\nimport { useChangeMyPasswordMutation } from '../../hooks'\n\nexport type ChangeMyPasswordFormValues = {\n\tcurrentPassword: string\n\tnewPassword: string\n\tpasswordConfirmation: string\n}\n\nexport type ChangeMyPasswordFormErrorCode =\n\t| ChangeMyPasswordErrorCode\n\t| 'FIELD_REQUIRED'\n\t| 'INVALID_VALUE'\n\t| 'PASSWORD_MISMATCH'\n\t| 'UNKNOWN_ERROR'\n\nexport type ChangeMyPasswordFormState = FormState\n\nexport type ChangeMyPasswordFormError = FormError<ChangeMyPasswordFormValues, ChangeMyPasswordFormErrorCode>\n\nexport type ChangeMyPasswordFormContextValue = FormContextValue<ChangeMyPasswordFormValues, ChangeMyPasswordFormErrorCode>\n\nexport interface ChangeMyPasswordFormProps {\n\tchildren: ReactElement\n\tonSuccess?: () => void\n}\n\nexport const useChangeMyPasswordForm = useForm as () => ChangeMyPasswordFormContextValue\n\nexport const ChangeMyPasswordForm = ({ children, onSuccess }: ChangeMyPasswordFormProps) => {\n\tconst changePassword = useChangeMyPasswordMutation()\n\treturn (\n\t\t<TenantForm<ChangeMyPasswordFormContextValue>\n\t\t\tonSuccess={onSuccess}\n\t\t\terrorMapping={errorToField}\n\t\t\tinitialValues={{\n\t\t\t\tcurrentPassword: '',\n\t\t\t\tnewPassword: '',\n\t\t\t\tpasswordConfirmation: '',\n\t\t\t}}\n\t\t\tvalidate={({ values }) => {\n\t\t\t\tconst errors: ChangeMyPasswordFormError[] = []\n\t\t\t\tif (!values.currentPassword) {\n\t\t\t\t\terrors.push({ code: 'FIELD_REQUIRED', field: 'currentPassword' })\n\t\t\t\t}\n\t\t\t\tif (!values.newPassword) {\n\t\t\t\t\terrors.push({ code: 'FIELD_REQUIRED', field: 'newPassword' })\n\t\t\t\t} else if (values.newPassword.length < 6) {\n\t\t\t\t\terrors.push({ code: 'INVALID_VALUE', field: 'newPassword' })\n\t\t\t\t} else if (!values.passwordConfirmation) {\n\t\t\t\t\terrors.push({ code: 'FIELD_REQUIRED', field: 'passwordConfirmation' })\n\t\t\t\t} else if (values.newPassword !== values.passwordConfirmation) {\n\t\t\t\t\terrors.push({ code: 'PASSWORD_MISMATCH', field: 'passwordConfirmation' })\n\t\t\t\t}\n\t\t\t\treturn errors\n\t\t\t}}\n\t\t\texecute={async ({ values }) => {\n\t\t\t\treturn await changePassword(values)\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</TenantForm>\n\t)\n}\nconst errorToField: Partial<Record<ChangeMyPasswordFormErrorCode, keyof ChangeMyPasswordFormValues | undefined>> = {\n\tPASSWORD_MISMATCH: 'passwordConfirmation',\n\tTOO_WEAK: 'newPassword',\n\tNO_PASSWORD_SET: 'currentPassword',\n\tINVALID_PASSWORD: 'currentPassword',\n}\n"],"names":["this"],"mappings":";;;;AA+BO,MAAM,0BAA0B;AAEhC,MAAM,uBAAuB,CAAC,EAAE,UAAU,gBAA2C;AAC3F,QAAM,iBAAiB,4BAAA;AACvB,SACC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,eAAe;AAAA,QACd,iBAAiB;AAAA,QACjB,aAAa;AAAA,QACb,sBAAsB;AAAA,MAAA;AAAA,MAEvB,UAAU,CAAC,EAAE,aAAa;AACzB,cAAM,SAAsC,CAAA;AAC5C,YAAI,CAAC,OAAO,iBAAiB;AAC5B,iBAAO,KAAK,EAAE,MAAM,kBAAkB,OAAO,mBAAmB;AAAA,QACjE;AACA,YAAI,CAAC,OAAO,aAAa;AACxB,iBAAO,KAAK,EAAE,MAAM,kBAAkB,OAAO,eAAe;AAAA,QAC7D,WAAW,OAAO,YAAY,SAAS,GAAG;AACzC,iBAAO,KAAK,EAAE,MAAM,iBAAiB,OAAO,eAAe;AAAA,QAC5D,WAAW,CAAC,OAAO,sBAAsB;AACxC,iBAAO,KAAK,EAAE,MAAM,kBAAkB,OAAO,wBAAwB;AAAA,QACtE,WAAW,OAAO,gBAAgB,OAAO,sBAAsB;AAC9D,iBAAO,KAAK,EAAE,MAAM,qBAAqB,OAAO,wBAAwB;AAAA,QACzE;AACA,eAAO;AAAA,MACR;AAAA,MACA,SAAS,OAAO,EAAE,aAAa;AAC9B,eAAO,MAAM,eAAe,MAAM;AAAA,MACnC;AAAA,MAEC;AAAA,IAAA;AAAA,IA5BF;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAAA;AAAAA,EAAA;AA+BF;AACA,MAAM,eAA6G;AAAA,EAClH,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;"}
|