@contember/react-client-tenant 2.1.0-alpha.37 → 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,56 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { useMemo, useState, useRef, useEffect } from "react";
|
|
3
|
+
import { IDPStateContextProvider, IDPMethodsContextProvider } from "../../contexts.js";
|
|
4
|
+
import { useHandleIDPResponse } from "../../internal/hooks/useHandleIDPResponse.js";
|
|
5
|
+
import { useIDPAutoInitProvider } from "../../internal/hooks/useIDPAutoInit.js";
|
|
6
|
+
import { useInitIDPRedirect } from "../../internal/hooks/useInitIDPRedirect.js";
|
|
7
|
+
const IDP = ({ children, onResponseError, onInitError, onLogin, expiration, redirectUrl }) => {
|
|
8
|
+
const hasOauthResponse = useMemo(() => {
|
|
9
|
+
const params = new URLSearchParams(window.location.search);
|
|
10
|
+
return params.has("state") && (params.has("code") || params.has("id_token"));
|
|
11
|
+
}, []);
|
|
12
|
+
const autoInit = useIDPAutoInitProvider();
|
|
13
|
+
const [state, setState] = useState(() => {
|
|
14
|
+
if (hasOauthResponse) {
|
|
15
|
+
return { type: "processing_response" };
|
|
16
|
+
}
|
|
17
|
+
if (autoInit) {
|
|
18
|
+
return { type: "processing_init" };
|
|
19
|
+
}
|
|
20
|
+
return { type: "nothing" };
|
|
21
|
+
});
|
|
22
|
+
useHandleIDPResponse({ hasOauthResponse, setState, onLogin, expiration, redirectUrl });
|
|
23
|
+
const initRedirect = useInitIDPRedirect({ setState, redirectUrl });
|
|
24
|
+
const isFirstRender = useRef(true);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!autoInit) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (!isFirstRender.current) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
isFirstRender.current = false;
|
|
33
|
+
initRedirect({ provider: autoInit });
|
|
34
|
+
}, [autoInit, initRedirect]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (state.type === "init_failed" && onInitError) {
|
|
37
|
+
onInitError(state.error);
|
|
38
|
+
}
|
|
39
|
+
if (state.type === "response_failed" && onResponseError) {
|
|
40
|
+
onResponseError(state.error);
|
|
41
|
+
}
|
|
42
|
+
}, [onInitError, onResponseError, state]);
|
|
43
|
+
return /* @__PURE__ */ jsxDEV(IDPStateContextProvider.Provider, { value: state, children: /* @__PURE__ */ jsxDEV(IDPMethodsContextProvider.Provider, { value: { initRedirect }, children }, void 0, false, {
|
|
44
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/idp/IDP.tsx",
|
|
45
|
+
lineNumber: 60,
|
|
46
|
+
columnNumber: 4
|
|
47
|
+
}, void 0) }, void 0, false, {
|
|
48
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/idp/IDP.tsx",
|
|
49
|
+
lineNumber: 59,
|
|
50
|
+
columnNumber: 3
|
|
51
|
+
}, void 0);
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
IDP
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=IDP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDP.js","sources":["../../../../../../packages/react-client-tenant/src/components/idp/IDP.tsx"],"sourcesContent":["import { ReactNode, useEffect, useMemo, useRef, useState } from 'react'\nimport { IDPMethodsContextProvider, IDPStateContextProvider } from '../../contexts'\nimport { IDPInitError, IDPResponseError, IDPStateValue } from '../../types/idp'\nimport { useHandleIDPResponse } from '../../internal/hooks/useHandleIDPResponse'\nimport { useIDPAutoInitProvider } from '../../internal/hooks/useIDPAutoInit'\nimport { useInitIDPRedirect } from '../../internal/hooks/useInitIDPRedirect'\n\nexport interface IDPProps {\n\tchildren: ReactNode\n\tonLogin?: () => void\n\tonInitError?: (error: IDPInitError) => void\n\tonResponseError?: (error: IDPResponseError) => void\n\texpiration?: number\n\tredirectUrl?: string\n}\n\nexport const IDP = ({ children, onResponseError, onInitError, onLogin, expiration, redirectUrl }: IDPProps) => {\n\tconst hasOauthResponse = useMemo(() => {\n\t\tconst params = new URLSearchParams(window.location.search)\n\t\treturn params.has('state') && (params.has('code') || params.has('id_token'))\n\t}, [])\n\n\tconst autoInit = useIDPAutoInitProvider()\n\tconst [state, setState] = useState<IDPStateValue>(() => {\n\t\tif (hasOauthResponse) {\n\t\t\treturn { type: 'processing_response' }\n\t\t}\n\t\tif (autoInit) {\n\t\t\treturn { type: 'processing_init' }\n\t\t}\n\t\treturn { type: 'nothing' }\n\t})\n\tuseHandleIDPResponse({ hasOauthResponse, setState, onLogin, expiration: expiration, redirectUrl })\n\n\tconst initRedirect = useInitIDPRedirect({ setState, redirectUrl })\n\n\tconst isFirstRender = useRef(true)\n\tuseEffect(() => {\n\t\tif (!autoInit) {\n\t\t\treturn\n\t\t}\n\t\tif (!isFirstRender.current) {\n\t\t\treturn\n\t\t}\n\t\tisFirstRender.current = false\n\t\tinitRedirect({ provider: autoInit })\n\t}, [autoInit, initRedirect])\n\n\tuseEffect(() => {\n\t\tif (state.type === 'init_failed' && onInitError) {\n\t\t\tonInitError(state.error)\n\t\t}\n\t\tif (state.type === 'response_failed' && onResponseError) {\n\t\t\tonResponseError(state.error)\n\t\t}\n\t}, [onInitError, onResponseError, state])\n\n\treturn (\n\t\t<IDPStateContextProvider.Provider value={state}>\n\t\t\t<IDPMethodsContextProvider.Provider value={{ initRedirect }}>\n\t\t\t\t{children}\n\t\t\t</IDPMethodsContextProvider.Provider>\n\t\t</IDPStateContextProvider.Provider>\n\t)\n}\n"],"names":["this"],"mappings":";;;;;;AAgBO,MAAM,MAAM,CAAC,EAAE,UAAU,iBAAiB,aAAa,SAAS,YAAY,kBAA4B;AAC9G,QAAM,mBAAmB,QAAQ,MAAM;AACtC,UAAM,SAAS,IAAI,gBAAgB,OAAO,SAAS,MAAM;AACzD,WAAO,OAAO,IAAI,OAAO,MAAM,OAAO,IAAI,MAAM,KAAK,OAAO,IAAI,UAAU;AAAA,EAC3E,GAAG,CAAA,CAAE;AAEL,QAAM,WAAW,uBAAA;AACjB,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAwB,MAAM;AACvD,QAAI,kBAAkB;AACrB,aAAO,EAAE,MAAM,sBAAA;AAAA,IAChB;AACA,QAAI,UAAU;AACb,aAAO,EAAE,MAAM,kBAAA;AAAA,IAChB;AACA,WAAO,EAAE,MAAM,UAAA;AAAA,EAChB,CAAC;AACD,uBAAqB,EAAE,kBAAkB,UAAU,SAAS,YAAwB,aAAa;AAEjG,QAAM,eAAe,mBAAmB,EAAE,UAAU,aAAa;AAEjE,QAAM,gBAAgB,OAAO,IAAI;AACjC,YAAU,MAAM;AACf,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,CAAC,cAAc,SAAS;AAC3B;AAAA,IACD;AACA,kBAAc,UAAU;AACxB,iBAAa,EAAE,UAAU,UAAU;AAAA,EACpC,GAAG,CAAC,UAAU,YAAY,CAAC;AAE3B,YAAU,MAAM;AACf,QAAI,MAAM,SAAS,iBAAiB,aAAa;AAChD,kBAAY,MAAM,KAAK;AAAA,IACxB;AACA,QAAI,MAAM,SAAS,qBAAqB,iBAAiB;AACxD,sBAAgB,MAAM,KAAK;AAAA,IAC5B;AAAA,EACD,GAAG,CAAC,aAAa,iBAAiB,KAAK,CAAC;AAExC,SACC,uBAAC,wBAAwB,UAAxB,EAAiC,OAAO,OACxC,UAAA,uBAAC,0BAA0B,UAA1B,EAAmC,OAAO,EAAE,aAAA,GAC3C,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;AAEF;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
5
|
+
const contexts = require("../../contexts.cjs");
|
|
6
|
+
const SlotButton = reactSlot.Slot;
|
|
7
|
+
const IDPInitTrigger = ({ identityProvider, ...props }) => {
|
|
8
|
+
const initIdp = contexts.useIDPMethods().initRedirect;
|
|
9
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(SlotButton, { onClick: () => initIdp({ provider: identityProvider }), ...props }, void 0, false, {
|
|
10
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/idp/IDPInitTrigger.tsx",
|
|
11
|
+
lineNumber: 14,
|
|
12
|
+
columnNumber: 9
|
|
13
|
+
}, void 0);
|
|
14
|
+
};
|
|
15
|
+
exports.IDPInitTrigger = IDPInitTrigger;
|
|
16
|
+
//# sourceMappingURL=IDPInitTrigger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDPInitTrigger.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/idp/IDPInitTrigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { ComponentType, ReactElement } from 'react'\nimport { useIDPMethods } from '../../contexts'\n\nconst SlotButton = Slot as ComponentType<React.ButtonHTMLAttributes<HTMLButtonElement>>\n\nexport interface IDPInitTriggerProps {\n\tchildren: ReactElement\n\tidentityProvider: string\n}\n\nexport const IDPInitTrigger = ({ identityProvider, ...props }: IDPInitTriggerProps) => {\n\tconst initIdp = useIDPMethods().initRedirect\n\treturn <SlotButton onClick={() => initIdp({ provider: identityProvider })} {...props} />\n}\n"],"names":["Slot","useIDPMethods","jsxDEV","this"],"mappings":";;;;;AAIA,MAAM,aAAaA,UAAAA;AAOZ,MAAM,iBAAiB,CAAC,EAAE,kBAAkB,GAAG,YAAiC;AACtF,QAAM,UAAUC,SAAAA,gBAAgB;AAChC,SAAOC,8BAAAA,OAAC,YAAA,EAAW,SAAS,MAAM,QAAQ,EAAE,UAAU,iBAAA,CAAkB,GAAI,GAAG,MAAA,GAAxE,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAA+E;AACvF;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { useIDPMethods } from "../../contexts.js";
|
|
4
|
+
const SlotButton = Slot;
|
|
5
|
+
const IDPInitTrigger = ({ identityProvider, ...props }) => {
|
|
6
|
+
const initIdp = useIDPMethods().initRedirect;
|
|
7
|
+
return /* @__PURE__ */ jsxDEV(SlotButton, { onClick: () => initIdp({ provider: identityProvider }), ...props }, void 0, false, {
|
|
8
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/idp/IDPInitTrigger.tsx",
|
|
9
|
+
lineNumber: 14,
|
|
10
|
+
columnNumber: 9
|
|
11
|
+
}, void 0);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
IDPInitTrigger
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=IDPInitTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDPInitTrigger.js","sources":["../../../../../../packages/react-client-tenant/src/components/idp/IDPInitTrigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { ComponentType, ReactElement } from 'react'\nimport { useIDPMethods } from '../../contexts'\n\nconst SlotButton = Slot as ComponentType<React.ButtonHTMLAttributes<HTMLButtonElement>>\n\nexport interface IDPInitTriggerProps {\n\tchildren: ReactElement\n\tidentityProvider: string\n}\n\nexport const IDPInitTrigger = ({ identityProvider, ...props }: IDPInitTriggerProps) => {\n\tconst initIdp = useIDPMethods().initRedirect\n\treturn <SlotButton onClick={() => initIdp({ provider: identityProvider })} {...props} />\n}\n"],"names":["this"],"mappings":";;;AAIA,MAAM,aAAa;AAOZ,MAAM,iBAAiB,CAAC,EAAE,kBAAkB,GAAG,YAAiC;AACtF,QAAM,UAAU,gBAAgB;AAChC,SAAO,uBAAC,YAAA,EAAW,SAAS,MAAM,QAAQ,EAAE,UAAU,iBAAA,CAAkB,GAAI,GAAG,MAAA,GAAxE,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAA+E;AACvF;"}
|
|
@@ -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 IDPState = ({ state, children }) => {
|
|
6
|
+
const currentState = contexts.useIDPState().type;
|
|
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/idp/IDPState.tsx",
|
|
9
|
+
lineNumber: 13,
|
|
10
|
+
columnNumber: 92
|
|
11
|
+
}, void 0) : null;
|
|
12
|
+
};
|
|
13
|
+
exports.IDPState = IDPState;
|
|
14
|
+
//# sourceMappingURL=IDPState.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDPState.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/idp/IDPState.tsx"],"sourcesContent":["import React, { ReactNode } from 'react'\nimport { IDPStateType } from '../../types'\nimport { useIDPState } from '../../contexts'\n\nexport interface IDPStateProps {\n\tstate: IDPStateType | IDPStateType[]\n\tchildren: ReactNode\n}\n\nexport const IDPState = ({ state, children }: IDPStateProps) => {\n\tconst currentState = useIDPState().type\n\n\treturn state === currentState || (Array.isArray(state) && state.includes(currentState)) ? <>{children}</> : null\n}\n"],"names":["useIDPState","jsxDEV","Fragment","this"],"mappings":";;;;AASO,MAAM,WAAW,CAAC,EAAE,OAAO,eAA8B;AAC/D,QAAM,eAAeA,SAAAA,cAAc;AAEnC,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 { useIDPState } from "../../contexts.js";
|
|
3
|
+
const IDPState = ({ state, children }) => {
|
|
4
|
+
const currentState = useIDPState().type;
|
|
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/idp/IDPState.tsx",
|
|
7
|
+
lineNumber: 13,
|
|
8
|
+
columnNumber: 92
|
|
9
|
+
}, void 0) : null;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
IDPState
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=IDPState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDPState.js","sources":["../../../../../../packages/react-client-tenant/src/components/idp/IDPState.tsx"],"sourcesContent":["import React, { ReactNode } from 'react'\nimport { IDPStateType } from '../../types'\nimport { useIDPState } from '../../contexts'\n\nexport interface IDPStateProps {\n\tstate: IDPStateType | IDPStateType[]\n\tchildren: ReactNode\n}\n\nexport const IDPState = ({ state, children }: IDPStateProps) => {\n\tconst currentState = useIDPState().type\n\n\treturn state === currentState || (Array.isArray(state) && state.includes(currentState)) ? <>{children}</> : null\n}\n"],"names":["this"],"mappings":";;AASO,MAAM,WAAW,CAAC,EAAE,OAAO,eAA8B;AAC/D,QAAM,eAAe,cAAc;AAEnC,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,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const TenantActionTrigger = require("./TenantActionTrigger.cjs");
|
|
6
|
+
const contexts = require("../../contexts.cjs");
|
|
7
|
+
const useDisableOtpMutation = require("../../hooks/mutations/otp/useDisableOtpMutation.cjs");
|
|
8
|
+
const DisableOtpTrigger = ({ onSuccess, ...props }) => {
|
|
9
|
+
const disableOtp = useDisableOtpMutation.useDisableOtpMutation();
|
|
10
|
+
const { refreshIdentity } = contexts.useIdentityMethods();
|
|
11
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(
|
|
12
|
+
TenantActionTrigger.TenantActionTrigger,
|
|
13
|
+
{
|
|
14
|
+
execute: React.useCallback(() => disableOtp({}), [disableOtp]),
|
|
15
|
+
onSuccess: () => {
|
|
16
|
+
refreshIdentity();
|
|
17
|
+
onSuccess?.();
|
|
18
|
+
},
|
|
19
|
+
...props
|
|
20
|
+
},
|
|
21
|
+
void 0,
|
|
22
|
+
false,
|
|
23
|
+
{
|
|
24
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/DisableOtpTrigger.tsx",
|
|
25
|
+
lineNumber: 17,
|
|
26
|
+
columnNumber: 3
|
|
27
|
+
},
|
|
28
|
+
void 0
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
exports.DisableOtpTrigger = DisableOtpTrigger;
|
|
32
|
+
//# sourceMappingURL=DisableOtpTrigger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisableOtpTrigger.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/DisableOtpTrigger.tsx"],"sourcesContent":["import { ReactElement, useCallback } from 'react'\nimport { useDisableOtpMutation } from '../../hooks'\nimport { TenantActionTrigger } from './TenantActionTrigger'\nimport { useIdentityMethods } from '../../contexts'\n\nexport interface DisableOtpTriggerProps {\n\tchildren: ReactElement\n\tonSuccess?: () => void\n\tonError?: (e: unknown) => void\n}\n\nexport const DisableOtpTrigger = ({ onSuccess, ...props }: DisableOtpTriggerProps) => {\n\tconst disableOtp = useDisableOtpMutation()\n\tconst { refreshIdentity } = useIdentityMethods()\n\n\treturn (\n\t\t<TenantActionTrigger\n\t\t\texecute={useCallback(() => disableOtp({}), [disableOtp])}\n\t\t\tonSuccess={() => {\n\t\t\t\trefreshIdentity()\n\t\t\t\tonSuccess?.()\n\t\t\t}}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["useDisableOtpMutation","useIdentityMethods","jsxDEV","TenantActionTrigger","useCallback","this"],"mappings":";;;;;;;AAWO,MAAM,oBAAoB,CAAC,EAAE,WAAW,GAAG,YAAoC;AACrF,QAAM,aAAaA,sBAAAA,sBAAA;AACnB,QAAM,EAAE,gBAAA,IAAoBC,4BAAA;AAE5B,SACCC,8BAAAA;AAAAA,IAACC,oBAAAA;AAAAA,IAAA;AAAA,MACA,SAASC,MAAAA,YAAY,MAAM,WAAW,CAAA,CAAE,GAAG,CAAC,UAAU,CAAC;AAAA,MACvD,WAAW,MAAM;AAChB,wBAAA;AACA,oBAAA;AAAA,MACD;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,IANL;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAAC;AAAAA,EAAA;AASF;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { TenantActionTrigger } from "./TenantActionTrigger.js";
|
|
4
|
+
import { useIdentityMethods } from "../../contexts.js";
|
|
5
|
+
import { useDisableOtpMutation } from "../../hooks/mutations/otp/useDisableOtpMutation.js";
|
|
6
|
+
const DisableOtpTrigger = ({ onSuccess, ...props }) => {
|
|
7
|
+
const disableOtp = useDisableOtpMutation();
|
|
8
|
+
const { refreshIdentity } = useIdentityMethods();
|
|
9
|
+
return /* @__PURE__ */ jsxDEV(
|
|
10
|
+
TenantActionTrigger,
|
|
11
|
+
{
|
|
12
|
+
execute: useCallback(() => disableOtp({}), [disableOtp]),
|
|
13
|
+
onSuccess: () => {
|
|
14
|
+
refreshIdentity();
|
|
15
|
+
onSuccess?.();
|
|
16
|
+
},
|
|
17
|
+
...props
|
|
18
|
+
},
|
|
19
|
+
void 0,
|
|
20
|
+
false,
|
|
21
|
+
{
|
|
22
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/DisableOtpTrigger.tsx",
|
|
23
|
+
lineNumber: 17,
|
|
24
|
+
columnNumber: 3
|
|
25
|
+
},
|
|
26
|
+
void 0
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
DisableOtpTrigger
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=DisableOtpTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisableOtpTrigger.js","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/DisableOtpTrigger.tsx"],"sourcesContent":["import { ReactElement, useCallback } from 'react'\nimport { useDisableOtpMutation } from '../../hooks'\nimport { TenantActionTrigger } from './TenantActionTrigger'\nimport { useIdentityMethods } from '../../contexts'\n\nexport interface DisableOtpTriggerProps {\n\tchildren: ReactElement\n\tonSuccess?: () => void\n\tonError?: (e: unknown) => void\n}\n\nexport const DisableOtpTrigger = ({ onSuccess, ...props }: DisableOtpTriggerProps) => {\n\tconst disableOtp = useDisableOtpMutation()\n\tconst { refreshIdentity } = useIdentityMethods()\n\n\treturn (\n\t\t<TenantActionTrigger\n\t\t\texecute={useCallback(() => disableOtp({}), [disableOtp])}\n\t\t\tonSuccess={() => {\n\t\t\t\trefreshIdentity()\n\t\t\t\tonSuccess?.()\n\t\t\t}}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["this"],"mappings":";;;;;AAWO,MAAM,oBAAoB,CAAC,EAAE,WAAW,GAAG,YAAoC;AACrF,QAAM,aAAa,sBAAA;AACnB,QAAM,EAAE,gBAAA,IAAoB,mBAAA;AAE5B,SACC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,SAAS,YAAY,MAAM,WAAW,CAAA,CAAE,GAAG,CAAC,UAAU,CAAC;AAAA,MACvD,WAAW,MAAM;AAChB,wBAAA;AACA,oBAAA;AAAA,MACD;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,IANL;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAAA;AAAAA,EAAA;AASF;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
6
|
+
const useLogout = require("../../hooks/useLogout.cjs");
|
|
7
|
+
const LogoutTrigger = ({ children }) => {
|
|
8
|
+
const logout = useLogout.useLogout();
|
|
9
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactSlot.Slot, { onClick: React.useCallback(() => logout(), [logout]), children }, void 0, false, {
|
|
10
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/LogoutTrigger.tsx",
|
|
11
|
+
lineNumber: 9,
|
|
12
|
+
columnNumber: 9
|
|
13
|
+
}, void 0);
|
|
14
|
+
};
|
|
15
|
+
exports.LogoutTrigger = LogoutTrigger;
|
|
16
|
+
//# sourceMappingURL=LogoutTrigger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoutTrigger.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/LogoutTrigger.tsx"],"sourcesContent":["import { ReactNode, useCallback } from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { useLogout } from '../../hooks/useLogout'\n\nexport const LogoutTrigger = ({ children }: {\n\tchildren: ReactNode\n}) => {\n\tconst logout = useLogout()\n\treturn <Slot onClick={useCallback(() => logout(), [logout])}>{children}</Slot>\n}\n"],"names":["useLogout","jsxDEV","Slot","useCallback","this"],"mappings":";;;;;;AAIO,MAAM,gBAAgB,CAAC,EAAE,eAE1B;AACL,QAAM,SAASA,UAAAA,UAAA;AACf,SAAOC,8BAAAA,OAACC,UAAAA,MAAA,EAAK,SAASC,MAAAA,YAAY,MAAM,UAAU,CAAC,MAAM,CAAC,GAAI,SAAA,GAAvD,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAAgE;AACxE;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { useLogout } from "../../hooks/useLogout.js";
|
|
5
|
+
const LogoutTrigger = ({ children }) => {
|
|
6
|
+
const logout = useLogout();
|
|
7
|
+
return /* @__PURE__ */ jsxDEV(Slot, { onClick: useCallback(() => logout(), [logout]), children }, void 0, false, {
|
|
8
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/LogoutTrigger.tsx",
|
|
9
|
+
lineNumber: 9,
|
|
10
|
+
columnNumber: 9
|
|
11
|
+
}, void 0);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
LogoutTrigger
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=LogoutTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoutTrigger.js","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/LogoutTrigger.tsx"],"sourcesContent":["import { ReactNode, useCallback } from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { useLogout } from '../../hooks/useLogout'\n\nexport const LogoutTrigger = ({ children }: {\n\tchildren: ReactNode\n}) => {\n\tconst logout = useLogout()\n\treturn <Slot onClick={useCallback(() => logout(), [logout])}>{children}</Slot>\n}\n"],"names":["this"],"mappings":";;;;AAIO,MAAM,gBAAgB,CAAC,EAAE,eAE1B;AACL,QAAM,SAAS,UAAA;AACf,SAAO,uBAAC,MAAA,EAAK,SAAS,YAAY,MAAM,UAAU,CAAC,MAAM,CAAC,GAAI,SAAA,GAAvD,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAAgE;AACxE;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const TenantActionTrigger = require("./TenantActionTrigger.cjs");
|
|
6
|
+
const useRemoveProjectMemberMutation = require("../../hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs");
|
|
7
|
+
const RemoveProjectMemberTrigger = ({ identityId, projectSlug, ...props }) => {
|
|
8
|
+
const removeProjectMember = useRemoveProjectMemberMutation.useRemoveProjectMemberMutation();
|
|
9
|
+
const execute = React.useCallback(async () => await removeProjectMember({ projectSlug, identityId }), [identityId, projectSlug, removeProjectMember]);
|
|
10
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(TenantActionTrigger.TenantActionTrigger, { ...props, execute }, void 0, false, {
|
|
11
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/RemoveProjectMemberTrigger.tsx",
|
|
12
|
+
lineNumber: 16,
|
|
13
|
+
columnNumber: 9
|
|
14
|
+
}, void 0);
|
|
15
|
+
};
|
|
16
|
+
exports.RemoveProjectMemberTrigger = RemoveProjectMemberTrigger;
|
|
17
|
+
//# sourceMappingURL=RemoveProjectMemberTrigger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveProjectMemberTrigger.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/RemoveProjectMemberTrigger.tsx"],"sourcesContent":["import { ReactElement, useCallback } from 'react'\nimport { TenantActionTrigger } from './TenantActionTrigger'\nimport { RemoveProjectMemberMutationVariables, useRemoveProjectMemberMutation } from '../../hooks'\n\nexport type RemoveProjectMemberTriggerProps =\n\t& RemoveProjectMemberMutationVariables\n\t& {\n\t\tchildren: ReactElement\n\t\tonSuccess?: () => void\n\t\tonError?: (e: unknown) => void\n\t}\n\nexport const RemoveProjectMemberTrigger = ({ identityId, projectSlug, ...props }: RemoveProjectMemberTriggerProps) => {\n\tconst removeProjectMember = useRemoveProjectMemberMutation()\n\tconst execute = useCallback(async () => await removeProjectMember({ projectSlug, identityId }), [identityId, projectSlug, removeProjectMember])\n\treturn <TenantActionTrigger {...props} execute={execute} />\n}\n"],"names":["useRemoveProjectMemberMutation","useCallback","jsxDEV","TenantActionTrigger","this"],"mappings":";;;;;;AAYO,MAAM,6BAA6B,CAAC,EAAE,YAAY,aAAa,GAAG,YAA6C;AACrH,QAAM,sBAAsBA,+BAAAA,+BAAA;AAC5B,QAAM,UAAUC,MAAAA,YAAY,YAAY,MAAM,oBAAoB,EAAE,aAAa,WAAA,CAAY,GAAG,CAAC,YAAY,aAAa,mBAAmB,CAAC;AAC9I,SAAOC,8BAAAA,OAACC,oBAAAA,qBAAA,EAAqB,GAAG,OAAO,QAAA,GAAhC,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAAkD;AAC1D;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { TenantActionTrigger } from "./TenantActionTrigger.js";
|
|
4
|
+
import { useRemoveProjectMemberMutation } from "../../hooks/mutations/memberships/useRemoveProjectMemberMutation.js";
|
|
5
|
+
const RemoveProjectMemberTrigger = ({ identityId, projectSlug, ...props }) => {
|
|
6
|
+
const removeProjectMember = useRemoveProjectMemberMutation();
|
|
7
|
+
const execute = useCallback(async () => await removeProjectMember({ projectSlug, identityId }), [identityId, projectSlug, removeProjectMember]);
|
|
8
|
+
return /* @__PURE__ */ jsxDEV(TenantActionTrigger, { ...props, execute }, void 0, false, {
|
|
9
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/RemoveProjectMemberTrigger.tsx",
|
|
10
|
+
lineNumber: 16,
|
|
11
|
+
columnNumber: 9
|
|
12
|
+
}, void 0);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
RemoveProjectMemberTrigger
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=RemoveProjectMemberTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveProjectMemberTrigger.js","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/RemoveProjectMemberTrigger.tsx"],"sourcesContent":["import { ReactElement, useCallback } from 'react'\nimport { TenantActionTrigger } from './TenantActionTrigger'\nimport { RemoveProjectMemberMutationVariables, useRemoveProjectMemberMutation } from '../../hooks'\n\nexport type RemoveProjectMemberTriggerProps =\n\t& RemoveProjectMemberMutationVariables\n\t& {\n\t\tchildren: ReactElement\n\t\tonSuccess?: () => void\n\t\tonError?: (e: unknown) => void\n\t}\n\nexport const RemoveProjectMemberTrigger = ({ identityId, projectSlug, ...props }: RemoveProjectMemberTriggerProps) => {\n\tconst removeProjectMember = useRemoveProjectMemberMutation()\n\tconst execute = useCallback(async () => await removeProjectMember({ projectSlug, identityId }), [identityId, projectSlug, removeProjectMember])\n\treturn <TenantActionTrigger {...props} execute={execute} />\n}\n"],"names":["this"],"mappings":";;;;AAYO,MAAM,6BAA6B,CAAC,EAAE,YAAY,aAAa,GAAG,YAA6C;AACrH,QAAM,sBAAsB,+BAAA;AAC5B,QAAM,UAAU,YAAY,YAAY,MAAM,oBAAoB,EAAE,aAAa,WAAA,CAAY,GAAG,CAAC,YAAY,aAAa,mBAAmB,CAAC;AAC9I,SAAO,uBAAC,qBAAA,EAAqB,GAAG,OAAO,QAAA,GAAhC,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAAkD;AAC1D;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const primitive = require("@radix-ui/primitive");
|
|
7
|
+
const reactUtils = require("@contember/react-utils");
|
|
8
|
+
const SlotButton = reactSlot.Slot;
|
|
9
|
+
const TenantActionTrigger = ({ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }) => {
|
|
10
|
+
const [submitting, setSubmitting] = React.useState(false);
|
|
11
|
+
const onSuccess = reactUtils.useReferentiallyStableCallback(onSuccessIn || (() => void 0));
|
|
12
|
+
const onError = reactUtils.useReferentiallyStableCallback(onErrorIn || (() => void 0));
|
|
13
|
+
const execute = reactUtils.useReferentiallyStableCallback(executeIn);
|
|
14
|
+
const onClick = React.useMemo(() => async () => {
|
|
15
|
+
setSubmitting(true);
|
|
16
|
+
try {
|
|
17
|
+
const response = await execute();
|
|
18
|
+
setSubmitting(false);
|
|
19
|
+
if (response.ok) {
|
|
20
|
+
onSuccess?.({ result: "result" in response ? response.result : void 0 });
|
|
21
|
+
} else {
|
|
22
|
+
onError?.({ code: response.error ?? "UNKNOWN_ERROR", error: response });
|
|
23
|
+
}
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.error(e);
|
|
26
|
+
setSubmitting(false);
|
|
27
|
+
onError?.({ code: "UNKNOWN_ERROR", error: e });
|
|
28
|
+
}
|
|
29
|
+
}, [execute, onError, onSuccess]);
|
|
30
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(SlotButton, { onClick: primitive.composeEventHandlers(onClickProp, onClick), disabled: submitting, ...props }, void 0, false, {
|
|
31
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/TenantActionTrigger.tsx",
|
|
32
|
+
lineNumber: 42,
|
|
33
|
+
columnNumber: 9
|
|
34
|
+
}, void 0);
|
|
35
|
+
};
|
|
36
|
+
exports.TenantActionTrigger = TenantActionTrigger;
|
|
37
|
+
//# sourceMappingURL=TenantActionTrigger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantActionTrigger.cjs","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/TenantActionTrigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { ComponentType, MouseEventHandler, ReactElement, useMemo, useState } from 'react'\nimport { composeEventHandlers } from '@radix-ui/primitive'\nimport { useReferentiallyStableCallback } from '@contember/react-utils'\n\nconst SlotButton = Slot as ComponentType<React.ButtonHTMLAttributes<HTMLButtonElement>>\n\nexport interface TenantActionTriggerProps<OkResult, Error extends string> {\n\tchildren: ReactElement\n\tonClick?: MouseEventHandler<HTMLButtonElement>\n\tonSuccess?: (args: { result: OkResult }) => void\n\tonError?: (args: { code: Error | 'UNKNOWN_ERROR'; error: unknown }) => void\n\texecute: () => Promise<({ ok: true } & (OkResult extends undefined ? {} : { result: OkResult })) | { ok: false; error?: Error }>\n}\n\nexport const TenantActionTrigger = <OkResult, Error extends string>(\n\t{ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }: TenantActionTriggerProps<OkResult, Error>,\n) => {\n\tconst [submitting, setSubmitting] = useState(false)\n\n\tconst onSuccess = useReferentiallyStableCallback(onSuccessIn || (() => undefined))\n\tconst onError = useReferentiallyStableCallback(onErrorIn || (() => undefined))\n\tconst execute = useReferentiallyStableCallback(executeIn)\n\n\tconst onClick = useMemo(() => async () => {\n\t\tsetSubmitting(true)\n\t\ttry {\n\t\t\tconst response = await execute()\n\t\t\tsetSubmitting(false)\n\t\t\tif (response.ok) {\n\t\t\t\tonSuccess?.({ result: 'result' in response ? response.result : undefined as OkResult })\n\t\t\t} else {\n\t\t\t\tonError?.({ code: response.error ?? 'UNKNOWN_ERROR', error: response })\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tconsole.error(e)\n\t\t\tsetSubmitting(false)\n\t\t\tonError?.({ code: 'UNKNOWN_ERROR', error: e })\n\t\t}\n\t}, [execute, onError, onSuccess])\n\n\treturn <SlotButton onClick={composeEventHandlers(onClickProp, onClick)} disabled={submitting} {...props} />\n}\n"],"names":["Slot","useState","useReferentiallyStableCallback","useMemo","jsxDEV","composeEventHandlers","this"],"mappings":";;;;;;;AAKA,MAAM,aAAaA,UAAAA;AAUZ,MAAM,sBAAsB,CAClC,EAAE,SAAS,WAAW,WAAW,aAAa,SAAS,aAAa,SAAS,WAAW,GAAG,YACvF;AACJ,QAAM,CAAC,YAAY,aAAa,IAAIC,MAAAA,SAAS,KAAK;AAElD,QAAM,YAAYC,WAAAA,+BAA+B,gBAAgB,MAAM,OAAU;AACjF,QAAM,UAAUA,WAAAA,+BAA+B,cAAc,MAAM,OAAU;AAC7E,QAAM,UAAUA,WAAAA,+BAA+B,SAAS;AAExD,QAAM,UAAUC,MAAAA,QAAQ,MAAM,YAAY;AACzC,kBAAc,IAAI;AAClB,QAAI;AACH,YAAM,WAAW,MAAM,QAAA;AACvB,oBAAc,KAAK;AACnB,UAAI,SAAS,IAAI;AAChB,oBAAY,EAAE,QAAQ,YAAY,WAAW,SAAS,SAAS,QAAuB;AAAA,MACvF,OAAO;AACN,kBAAU,EAAE,MAAM,SAAS,SAAS,iBAAiB,OAAO,UAAU;AAAA,MACvE;AAAA,IACD,SAAS,GAAG;AACX,cAAQ,MAAM,CAAC;AACf,oBAAc,KAAK;AACnB,gBAAU,EAAE,MAAM,iBAAiB,OAAO,GAAG;AAAA,IAC9C;AAAA,EACD,GAAG,CAAC,SAAS,SAAS,SAAS,CAAC;AAEhC,SAAOC,8BAAAA,OAAC,YAAA,EAAW,SAASC,UAAAA,qBAAqB,aAAa,OAAO,GAAG,UAAU,YAAa,GAAG,MAAA,GAA3F,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAC,MAAkG;AAC1G;;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { useState, useMemo } from "react";
|
|
4
|
+
import { composeEventHandlers } from "@radix-ui/primitive";
|
|
5
|
+
import { useReferentiallyStableCallback } from "@contember/react-utils";
|
|
6
|
+
const SlotButton = Slot;
|
|
7
|
+
const TenantActionTrigger = ({ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }) => {
|
|
8
|
+
const [submitting, setSubmitting] = useState(false);
|
|
9
|
+
const onSuccess = useReferentiallyStableCallback(onSuccessIn || (() => void 0));
|
|
10
|
+
const onError = useReferentiallyStableCallback(onErrorIn || (() => void 0));
|
|
11
|
+
const execute = useReferentiallyStableCallback(executeIn);
|
|
12
|
+
const onClick = useMemo(() => async () => {
|
|
13
|
+
setSubmitting(true);
|
|
14
|
+
try {
|
|
15
|
+
const response = await execute();
|
|
16
|
+
setSubmitting(false);
|
|
17
|
+
if (response.ok) {
|
|
18
|
+
onSuccess?.({ result: "result" in response ? response.result : void 0 });
|
|
19
|
+
} else {
|
|
20
|
+
onError?.({ code: response.error ?? "UNKNOWN_ERROR", error: response });
|
|
21
|
+
}
|
|
22
|
+
} catch (e) {
|
|
23
|
+
console.error(e);
|
|
24
|
+
setSubmitting(false);
|
|
25
|
+
onError?.({ code: "UNKNOWN_ERROR", error: e });
|
|
26
|
+
}
|
|
27
|
+
}, [execute, onError, onSuccess]);
|
|
28
|
+
return /* @__PURE__ */ jsxDEV(SlotButton, { onClick: composeEventHandlers(onClickProp, onClick), disabled: submitting, ...props }, void 0, false, {
|
|
29
|
+
fileName: "/home/runner/work/contember/contember/packages/react-client-tenant/src/components/triggers/TenantActionTrigger.tsx",
|
|
30
|
+
lineNumber: 42,
|
|
31
|
+
columnNumber: 9
|
|
32
|
+
}, void 0);
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
TenantActionTrigger
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=TenantActionTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantActionTrigger.js","sources":["../../../../../../packages/react-client-tenant/src/components/triggers/TenantActionTrigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { ComponentType, MouseEventHandler, ReactElement, useMemo, useState } from 'react'\nimport { composeEventHandlers } from '@radix-ui/primitive'\nimport { useReferentiallyStableCallback } from '@contember/react-utils'\n\nconst SlotButton = Slot as ComponentType<React.ButtonHTMLAttributes<HTMLButtonElement>>\n\nexport interface TenantActionTriggerProps<OkResult, Error extends string> {\n\tchildren: ReactElement\n\tonClick?: MouseEventHandler<HTMLButtonElement>\n\tonSuccess?: (args: { result: OkResult }) => void\n\tonError?: (args: { code: Error | 'UNKNOWN_ERROR'; error: unknown }) => void\n\texecute: () => Promise<({ ok: true } & (OkResult extends undefined ? {} : { result: OkResult })) | { ok: false; error?: Error }>\n}\n\nexport const TenantActionTrigger = <OkResult, Error extends string>(\n\t{ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }: TenantActionTriggerProps<OkResult, Error>,\n) => {\n\tconst [submitting, setSubmitting] = useState(false)\n\n\tconst onSuccess = useReferentiallyStableCallback(onSuccessIn || (() => undefined))\n\tconst onError = useReferentiallyStableCallback(onErrorIn || (() => undefined))\n\tconst execute = useReferentiallyStableCallback(executeIn)\n\n\tconst onClick = useMemo(() => async () => {\n\t\tsetSubmitting(true)\n\t\ttry {\n\t\t\tconst response = await execute()\n\t\t\tsetSubmitting(false)\n\t\t\tif (response.ok) {\n\t\t\t\tonSuccess?.({ result: 'result' in response ? response.result : undefined as OkResult })\n\t\t\t} else {\n\t\t\t\tonError?.({ code: response.error ?? 'UNKNOWN_ERROR', error: response })\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tconsole.error(e)\n\t\t\tsetSubmitting(false)\n\t\t\tonError?.({ code: 'UNKNOWN_ERROR', error: e })\n\t\t}\n\t}, [execute, onError, onSuccess])\n\n\treturn <SlotButton onClick={composeEventHandlers(onClickProp, onClick)} disabled={submitting} {...props} />\n}\n"],"names":["this"],"mappings":";;;;;AAKA,MAAM,aAAa;AAUZ,MAAM,sBAAsB,CAClC,EAAE,SAAS,WAAW,WAAW,aAAa,SAAS,aAAa,SAAS,WAAW,GAAG,YACvF;AACJ,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAElD,QAAM,YAAY,+BAA+B,gBAAgB,MAAM,OAAU;AACjF,QAAM,UAAU,+BAA+B,cAAc,MAAM,OAAU;AAC7E,QAAM,UAAU,+BAA+B,SAAS;AAExD,QAAM,UAAU,QAAQ,MAAM,YAAY;AACzC,kBAAc,IAAI;AAClB,QAAI;AACH,YAAM,WAAW,MAAM,QAAA;AACvB,oBAAc,KAAK;AACnB,UAAI,SAAS,IAAI;AAChB,oBAAY,EAAE,QAAQ,YAAY,WAAW,SAAS,SAAS,QAAuB;AAAA,MACvF,OAAO;AACN,kBAAU,EAAE,MAAM,SAAS,SAAS,iBAAiB,OAAO,UAAU;AAAA,MACvE;AAAA,IACD,SAAS,GAAG;AACX,cAAQ,MAAM,CAAC;AACf,oBAAc,KAAK;AACnB,gBAAU,EAAE,MAAM,iBAAiB,OAAO,GAAG;AAAA,IAC9C;AAAA,EACD,GAAG,CAAC,SAAS,SAAS,SAAS,CAAC;AAEhC,SAAO,uBAAC,YAAA,EAAW,SAAS,qBAAqB,aAAa,OAAO,GAAG,UAAU,YAAa,GAAG,MAAA,GAA3F,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAAA,MAAkG;AAC1G;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const PASSWORDLESS_REQUEST_STORAGE_KEY = "passwordless_request";
|
|
4
|
+
exports.PASSWORDLESS_REQUEST_STORAGE_KEY = PASSWORDLESS_REQUEST_STORAGE_KEY;
|
|
5
|
+
//# sourceMappingURL=consts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.cjs","sources":["../../../../packages/react-client-tenant/src/consts.ts"],"sourcesContent":["export const PASSWORDLESS_REQUEST_STORAGE_KEY = 'passwordless_request'\n"],"names":[],"mappings":";;AAAO,MAAM,mCAAmC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sources":["../../../../packages/react-client-tenant/src/consts.ts"],"sourcesContent":["export const PASSWORDLESS_REQUEST_STORAGE_KEY = 'passwordless_request'\n"],"names":[],"mappings":"AAAO,MAAM,mCAAmC;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const reactUtils = require("@contember/react-utils");
|
|
4
|
+
const IdentityContext_ = reactUtils.createContext("IdentityContext", void 0);
|
|
5
|
+
const IdentityContext = IdentityContext_[0];
|
|
6
|
+
const useIdentity = IdentityContext_[1];
|
|
7
|
+
const IdentityMethodsContext_ = reactUtils.createRequiredContext("IdentityMethodsContext");
|
|
8
|
+
const IdentityMethodsContext = IdentityMethodsContext_[0];
|
|
9
|
+
const useIdentityMethods = IdentityMethodsContext_[1];
|
|
10
|
+
const IdentityStateContext_ = reactUtils.createRequiredContext("IdentityStateContext");
|
|
11
|
+
const IdentityStateContext = IdentityStateContext_[0];
|
|
12
|
+
const useIdentityState = IdentityStateContext_[1];
|
|
13
|
+
const FormContext_ = reactUtils.createRequiredContext("FormContext");
|
|
14
|
+
const FormContext = FormContext_[0];
|
|
15
|
+
const useForm = FormContext_[1];
|
|
16
|
+
const IDPStateContext = reactUtils.createRequiredContext("IDPStateContext");
|
|
17
|
+
const IDPStateContextProvider = IDPStateContext[0];
|
|
18
|
+
const useIDPState = IDPStateContext[1];
|
|
19
|
+
const IDPMethodsContext = reactUtils.createRequiredContext("IDPMethodsContext");
|
|
20
|
+
const IDPMethodsContextProvider = IDPMethodsContext[0];
|
|
21
|
+
const useIDPMethods = IDPMethodsContext[1];
|
|
22
|
+
exports.FormContext = FormContext;
|
|
23
|
+
exports.IDPMethodsContextProvider = IDPMethodsContextProvider;
|
|
24
|
+
exports.IDPStateContextProvider = IDPStateContextProvider;
|
|
25
|
+
exports.IdentityContext = IdentityContext;
|
|
26
|
+
exports.IdentityMethodsContext = IdentityMethodsContext;
|
|
27
|
+
exports.IdentityStateContext = IdentityStateContext;
|
|
28
|
+
exports.useForm = useForm;
|
|
29
|
+
exports.useIDPMethods = useIDPMethods;
|
|
30
|
+
exports.useIDPState = useIDPState;
|
|
31
|
+
exports.useIdentity = useIdentity;
|
|
32
|
+
exports.useIdentityMethods = useIdentityMethods;
|
|
33
|
+
exports.useIdentityState = useIdentityState;
|
|
34
|
+
//# sourceMappingURL=contexts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.cjs","sources":["../../../../packages/react-client-tenant/src/contexts.ts"],"sourcesContent":["import { createContext, createRequiredContext } from '@contember/react-utils'\nimport { FormContextValue, Identity, IdentityMethods, IdentityStateValue, IDPMethods, IDPStateValue } from './types'\n\nconst IdentityContext_ = createContext<Identity | undefined>('IdentityContext', undefined)\n/** @internal */\nexport const IdentityContext = IdentityContext_[0]\nexport const useIdentity = IdentityContext_[1]\n\nconst IdentityMethodsContext_ = createRequiredContext<IdentityMethods>('IdentityMethodsContext')\n/** @internal */\nexport const IdentityMethodsContext = IdentityMethodsContext_[0]\nexport const useIdentityMethods = IdentityMethodsContext_[1]\n\nconst IdentityStateContext_ = createRequiredContext<IdentityStateValue>('IdentityStateContext')\n/** @internal */\nexport const IdentityStateContext = IdentityStateContext_[0]\nexport const useIdentityState = IdentityStateContext_[1]\n\nconst FormContext_ = createRequiredContext<FormContextValue<any, any, any>>('FormContext')\n/** @internal */\nexport const FormContext = FormContext_[0]\nexport const useForm = FormContext_[1]\n\nconst IDPStateContext = createRequiredContext<IDPStateValue>('IDPStateContext')\n/** @internal */\nexport const IDPStateContextProvider = IDPStateContext[0]\nexport const useIDPState = IDPStateContext[1]\n\nconst IDPMethodsContext = createRequiredContext<IDPMethods>('IDPMethodsContext')\n/** @internal */\nexport const IDPMethodsContextProvider = IDPMethodsContext[0]\nexport const useIDPMethods = IDPMethodsContext[1]\n"],"names":["createContext","createRequiredContext"],"mappings":";;;AAGA,MAAM,mBAAmBA,WAAAA,cAAoC,mBAAmB,MAAS;AAElF,MAAM,kBAAkB,iBAAiB,CAAC;AAC1C,MAAM,cAAc,iBAAiB,CAAC;AAE7C,MAAM,0BAA0BC,WAAAA,sBAAuC,wBAAwB;AAExF,MAAM,yBAAyB,wBAAwB,CAAC;AACxD,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,MAAM,wBAAwBA,WAAAA,sBAA0C,sBAAsB;AAEvF,MAAM,uBAAuB,sBAAsB,CAAC;AACpD,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD,MAAM,eAAeA,WAAAA,sBAAuD,aAAa;AAElF,MAAM,cAAc,aAAa,CAAC;AAClC,MAAM,UAAU,aAAa,CAAC;AAErC,MAAM,kBAAkBA,WAAAA,sBAAqC,iBAAiB;AAEvE,MAAM,0BAA0B,gBAAgB,CAAC;AACjD,MAAM,cAAc,gBAAgB,CAAC;AAE5C,MAAM,oBAAoBA,WAAAA,sBAAkC,mBAAmB;AAExE,MAAM,4BAA4B,kBAAkB,CAAC;AACrD,MAAM,gBAAgB,kBAAkB,CAAC;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequiredContext, createContext } from "@contember/react-utils";
|
|
2
|
+
const IdentityContext_ = createContext("IdentityContext", void 0);
|
|
3
|
+
const IdentityContext = IdentityContext_[0];
|
|
4
|
+
const useIdentity = IdentityContext_[1];
|
|
5
|
+
const IdentityMethodsContext_ = createRequiredContext("IdentityMethodsContext");
|
|
6
|
+
const IdentityMethodsContext = IdentityMethodsContext_[0];
|
|
7
|
+
const useIdentityMethods = IdentityMethodsContext_[1];
|
|
8
|
+
const IdentityStateContext_ = createRequiredContext("IdentityStateContext");
|
|
9
|
+
const IdentityStateContext = IdentityStateContext_[0];
|
|
10
|
+
const useIdentityState = IdentityStateContext_[1];
|
|
11
|
+
const FormContext_ = createRequiredContext("FormContext");
|
|
12
|
+
const FormContext = FormContext_[0];
|
|
13
|
+
const useForm = FormContext_[1];
|
|
14
|
+
const IDPStateContext = createRequiredContext("IDPStateContext");
|
|
15
|
+
const IDPStateContextProvider = IDPStateContext[0];
|
|
16
|
+
const useIDPState = IDPStateContext[1];
|
|
17
|
+
const IDPMethodsContext = createRequiredContext("IDPMethodsContext");
|
|
18
|
+
const IDPMethodsContextProvider = IDPMethodsContext[0];
|
|
19
|
+
const useIDPMethods = IDPMethodsContext[1];
|
|
20
|
+
export {
|
|
21
|
+
FormContext,
|
|
22
|
+
IDPMethodsContextProvider,
|
|
23
|
+
IDPStateContextProvider,
|
|
24
|
+
IdentityContext,
|
|
25
|
+
IdentityMethodsContext,
|
|
26
|
+
IdentityStateContext,
|
|
27
|
+
useForm,
|
|
28
|
+
useIDPMethods,
|
|
29
|
+
useIDPState,
|
|
30
|
+
useIdentity,
|
|
31
|
+
useIdentityMethods,
|
|
32
|
+
useIdentityState
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=contexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.js","sources":["../../../../packages/react-client-tenant/src/contexts.ts"],"sourcesContent":["import { createContext, createRequiredContext } from '@contember/react-utils'\nimport { FormContextValue, Identity, IdentityMethods, IdentityStateValue, IDPMethods, IDPStateValue } from './types'\n\nconst IdentityContext_ = createContext<Identity | undefined>('IdentityContext', undefined)\n/** @internal */\nexport const IdentityContext = IdentityContext_[0]\nexport const useIdentity = IdentityContext_[1]\n\nconst IdentityMethodsContext_ = createRequiredContext<IdentityMethods>('IdentityMethodsContext')\n/** @internal */\nexport const IdentityMethodsContext = IdentityMethodsContext_[0]\nexport const useIdentityMethods = IdentityMethodsContext_[1]\n\nconst IdentityStateContext_ = createRequiredContext<IdentityStateValue>('IdentityStateContext')\n/** @internal */\nexport const IdentityStateContext = IdentityStateContext_[0]\nexport const useIdentityState = IdentityStateContext_[1]\n\nconst FormContext_ = createRequiredContext<FormContextValue<any, any, any>>('FormContext')\n/** @internal */\nexport const FormContext = FormContext_[0]\nexport const useForm = FormContext_[1]\n\nconst IDPStateContext = createRequiredContext<IDPStateValue>('IDPStateContext')\n/** @internal */\nexport const IDPStateContextProvider = IDPStateContext[0]\nexport const useIDPState = IDPStateContext[1]\n\nconst IDPMethodsContext = createRequiredContext<IDPMethods>('IDPMethodsContext')\n/** @internal */\nexport const IDPMethodsContextProvider = IDPMethodsContext[0]\nexport const useIDPMethods = IDPMethodsContext[1]\n"],"names":[],"mappings":";AAGA,MAAM,mBAAmB,cAAoC,mBAAmB,MAAS;AAElF,MAAM,kBAAkB,iBAAiB,CAAC;AAC1C,MAAM,cAAc,iBAAiB,CAAC;AAE7C,MAAM,0BAA0B,sBAAuC,wBAAwB;AAExF,MAAM,yBAAyB,wBAAwB,CAAC;AACxD,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,MAAM,wBAAwB,sBAA0C,sBAAsB;AAEvF,MAAM,uBAAuB,sBAAsB,CAAC;AACpD,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD,MAAM,eAAe,sBAAuD,aAAa;AAElF,MAAM,cAAc,aAAa,CAAC;AAClC,MAAM,UAAU,aAAa,CAAC;AAErC,MAAM,kBAAkB,sBAAqC,iBAAiB;AAEvE,MAAM,0BAA0B,gBAAgB,CAAC;AACjD,MAAM,cAAc,gBAAgB,CAAC;AAE5C,MAAM,oBAAoB,sBAAkC,mBAAmB;AAExE,MAAM,4BAA4B,kBAAkB,CAAC;AACrD,MAAM,gBAAgB,kBAAkB,CAAC;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantMutation = require("../../useTenantMutation.cjs");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
22
|
+
const createApiKeyMutationResult = TenantApi__namespace.createApiKeyResult$.apiKey(TenantApi__namespace.apiKeyWithToken$$.identity(TenantApi__namespace.identity$$));
|
|
23
|
+
const createApiKeyMutation = TenantApi__namespace.mutation$.createApiKey(
|
|
24
|
+
TenantApi__namespace.createApiKeyResponse$$.error(TenantApi__namespace.createApiKeyError$$.membershipValidation(TenantApi__namespace.membershipValidationError$$)).result(createApiKeyMutationResult),
|
|
25
|
+
(options) => options.alias("mutation")
|
|
26
|
+
);
|
|
27
|
+
const useCreateApiKeyMutation = useTenantMutation.createTenantMutation(createApiKeyMutation);
|
|
28
|
+
exports.createApiKeyMutation = createApiKeyMutation;
|
|
29
|
+
exports.useCreateApiKeyMutation = useCreateApiKeyMutation;
|
|
30
|
+
//# sourceMappingURL=useCreateApiKeyMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateApiKeyMutation.cjs","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/apiKey/useCreateApiKeyMutation.tsx"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { createTenantMutation } from '../../useTenantMutation'\n\nconst createApiKeyMutationResult = TenantApi.createApiKeyResult$.apiKey(TenantApi.apiKeyWithToken$$.identity(TenantApi.identity$$))\n\nexport type CreateApiKeyMutationResult = ModelType<typeof createApiKeyMutationResult>\n\nexport const createApiKeyMutation = TenantApi.mutation$\n\t.createApiKey(\n\t\tTenantApi\n\t\t\t.createApiKeyResponse$$\n\t\t\t.error(TenantApi.createApiKeyError$$.membershipValidation(TenantApi.membershipValidationError$$))\n\t\t\t.result(createApiKeyMutationResult),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useCreateApiKeyMutation = createTenantMutation(createApiKeyMutation)\nexport type CreateApiKeyMutationVariables = Parameters<ReturnType<typeof useCreateApiKeyMutation>>[0]\n"],"names":["TenantApi","createTenantMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,6BAA6BA,qBAAU,oBAAoB,OAAOA,qBAAU,kBAAkB,SAASA,qBAAU,UAAU,CAAC;AAI3H,MAAM,uBAAuBA,qBAAU,UAC5C;AAAA,EACAA,qBACE,uBACA,MAAMA,qBAAU,oBAAoB,qBAAqBA,qBAAU,2BAA2B,CAAC,EAC/F,OAAO,0BAA0B;AAAA,EACnC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,0BAA0BC,kBAAAA,qBAAqB,oBAAoB;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const createApiKeyMutationResult = TenantApi.createApiKeyResult$.apiKey(TenantApi.apiKeyWithToken$$.identity(TenantApi.identity$$));
|
|
4
|
+
const createApiKeyMutation = TenantApi.mutation$.createApiKey(
|
|
5
|
+
TenantApi.createApiKeyResponse$$.error(TenantApi.createApiKeyError$$.membershipValidation(TenantApi.membershipValidationError$$)).result(createApiKeyMutationResult),
|
|
6
|
+
(options) => options.alias("mutation")
|
|
7
|
+
);
|
|
8
|
+
const useCreateApiKeyMutation = createTenantMutation(createApiKeyMutation);
|
|
9
|
+
export {
|
|
10
|
+
createApiKeyMutation,
|
|
11
|
+
useCreateApiKeyMutation
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useCreateApiKeyMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateApiKeyMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/apiKey/useCreateApiKeyMutation.tsx"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { createTenantMutation } from '../../useTenantMutation'\n\nconst createApiKeyMutationResult = TenantApi.createApiKeyResult$.apiKey(TenantApi.apiKeyWithToken$$.identity(TenantApi.identity$$))\n\nexport type CreateApiKeyMutationResult = ModelType<typeof createApiKeyMutationResult>\n\nexport const createApiKeyMutation = TenantApi.mutation$\n\t.createApiKey(\n\t\tTenantApi\n\t\t\t.createApiKeyResponse$$\n\t\t\t.error(TenantApi.createApiKeyError$$.membershipValidation(TenantApi.membershipValidationError$$))\n\t\t\t.result(createApiKeyMutationResult),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useCreateApiKeyMutation = createTenantMutation(createApiKeyMutation)\nexport type CreateApiKeyMutationVariables = Parameters<ReturnType<typeof useCreateApiKeyMutation>>[0]\n"],"names":[],"mappings":";;AAIA,MAAM,6BAA6B,UAAU,oBAAoB,OAAO,UAAU,kBAAkB,SAAS,UAAU,UAAU,CAAC;AAI3H,MAAM,uBAAuB,UAAU,UAC5C;AAAA,EACA,UACE,uBACA,MAAM,UAAU,oBAAoB,qBAAqB,UAAU,2BAA2B,CAAC,EAC/F,OAAO,0BAA0B;AAAA,EACnC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,0BAA0B,qBAAqB,oBAAoB;"}
|