@asgardeo/react
Version:
React implementation of Asgardeo JavaScript SDK.
197 lines (196 loc) • 15.5 kB
TypeScript
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
export { default as AsgardeoProvider } from './contexts/Asgardeo/AsgardeoProvider';
export * from './contexts/Asgardeo/AsgardeoProvider';
export { default as AsgardeoContext } from './contexts/Asgardeo/AsgardeoContext';
export * from './contexts/Asgardeo/AsgardeoContext';
export { default as useAsgardeo } from './contexts/Asgardeo/useAsgardeo';
export * from './contexts/Asgardeo/useAsgardeo';
export { default as UserContext } from './contexts/User/UserContext';
export * from './contexts/User/UserContext';
export { default as UserProvider } from './contexts/User/UserProvider';
export * from './contexts/User/UserProvider';
export { default as useUser } from './contexts/User/useUser';
export * from './contexts/User/useUser';
export { default as OrganizationContext } from './contexts/Organization/OrganizationContext';
export * from './contexts/Organization/OrganizationContext';
export { default as OrganizationProvider } from './contexts/Organization/OrganizationProvider';
export * from './contexts/Organization/OrganizationProvider';
export { default as useOrganization } from './contexts/Organization/useOrganization';
export * from './contexts/Organization/useOrganization';
export { default as FlowContext } from './contexts/Flow/FlowContext';
export * from './contexts/Flow/FlowContext';
export { default as FlowProvider } from './contexts/Flow/FlowProvider';
export * from './contexts/Flow/FlowProvider';
export { default as useFlow } from './contexts/Flow/useFlow';
export * from './contexts/Flow/useFlow';
export { default as I18nContext } from './contexts/I18n/I18nContext';
export * from './contexts/I18n/I18nContext';
export { default as I18nProvider } from './contexts/I18n/I18nProvider';
export * from './contexts/I18n/I18nProvider';
export { default as useI18n } from './contexts/I18n/useI18n';
export * from './contexts/I18n/useI18n';
export { default as ThemeContext } from './contexts/Theme/ThemeContext';
export * from './contexts/Theme/ThemeContext';
export { default as ThemeProvider } from './contexts/Theme/ThemeProvider';
export * from './contexts/Theme/ThemeProvider';
export { default as useTheme } from './contexts/Theme/useTheme';
export * from './contexts/Theme/useTheme';
export { default as BrandingContext } from './contexts/Branding/BrandingContext';
export * from './contexts/Branding/BrandingContext';
export { default as BrandingProvider } from './contexts/Branding/BrandingProvider';
export * from './contexts/Branding/BrandingProvider';
export { default as useBrandingContext } from './contexts/Branding/useBrandingContext';
export * from './contexts/Branding/useBrandingContext';
export { default as useBrowserUrl } from './hooks/useBrowserUrl';
export * from './hooks/useBrowserUrl';
export { default as useTranslation } from './hooks/useTranslation';
export * from './hooks/useTranslation';
export { default as useForm } from './hooks/useForm';
export * from './hooks/useForm';
export { default as useBranding } from './hooks/useBranding';
export * from './hooks/useBranding';
export { default as BaseSignInButton } from './components/actions/SignInButton/BaseSignInButton';
export * from './components/actions/SignInButton/BaseSignInButton';
export { default as SignInButton } from './components/actions/SignInButton/SignInButton';
export * from './components/actions/SignInButton/SignInButton';
export { default as BaseSignOutButton } from './components/actions/SignOutButton/BaseSignOutButton';
export * from './components/actions/SignOutButton/BaseSignOutButton';
export { default as SignOutButton } from './components/actions/SignOutButton/SignOutButton';
export * from './components/actions/SignOutButton/SignOutButton';
export { default as BaseSignUpButton } from './components/actions/SignUpButton/BaseSignUpButton';
export * from './components/actions/SignUpButton/BaseSignUpButton';
export { default as SignUpButton } from './components/actions/SignUpButton/SignUpButton';
export * from './components/actions/SignUpButton/SignUpButton';
export { default as SignedIn } from './components/control/SignedIn';
export * from './components/control/SignedIn';
export { default as SignedOut } from './components/control/SignedOut';
export * from './components/control/SignedOut';
export { default as Loading } from './components/control/Loading';
export * from './components/control/Loading';
export { default as BaseSignIn } from './components/presentation/auth/SignIn/BaseSignIn';
export * from './components/presentation/auth/SignIn/BaseSignIn';
export { default as SignIn } from './components/presentation/auth/SignIn/SignIn';
export * from './components/presentation/auth/SignIn/SignIn';
export { default as BaseSignUp } from './components/presentation/auth/SignUp/BaseSignUp';
export * from './components/presentation/auth/SignUp/BaseSignUp';
export { default as SignUp } from './components/presentation/auth/SignUp/SignUp';
export * from './components/presentation/auth/SignUp/SignUp';
export { default as IdentifierFirst } from './components/presentation/auth/SignIn/v1/options/IdentifierFirst';
export { default as UsernamePassword } from './components/presentation/auth/SignIn/v1/options/UsernamePassword';
export { default as GoogleButton } from './components/adapters/GoogleButton';
export { default as GitHubButton } from './components/adapters/GitHubButton';
export { default as MicrosoftButton } from './components/adapters/MicrosoftButton';
export { default as FacebookButton } from './components/adapters/FacebookButton';
export { default as LinkedInButton } from './components/adapters/LinkedInButton';
export { default as SignInWithEthereumButton } from './components/adapters/SignInWithEthereumButton';
export { default as EmailOtp } from './components/presentation/auth/SignIn/v1/options/EmailOtp';
export { default as Totp } from './components/presentation/auth/SignIn/v1/options/Totp';
export { default as SmsOtp } from './components/presentation/auth/SignIn/v1/options/SmsOtp';
export { default as SocialButton } from './components/presentation/auth/SignIn/v1/options/SocialButton';
export { default as MultiOptionButton } from './components/presentation/auth/SignIn/v1/options/MultiOptionButton';
export * from './components/presentation/auth/SignIn/v1/options/SignInOptionFactory';
export { default as BaseUser } from './components/presentation/User/BaseUser';
export * from './components/presentation/User/BaseUser';
export { default as User } from './components/presentation/User/User';
export * from './components/presentation/User/User';
export { default as BaseOrganization } from './components/presentation/Organization/BaseOrganization';
export * from './components/presentation/Organization/BaseOrganization';
export { default as Organization } from './components/presentation/Organization/Organization';
export * from './components/presentation/Organization/Organization';
export { default as BaseUserProfile } from './components/presentation/UserProfile/BaseUserProfile';
export * from './components/presentation/UserProfile/BaseUserProfile';
export { default as UserProfile } from './components/presentation/UserProfile/UserProfile';
export * from './components/presentation/UserProfile/UserProfile';
export { default as BaseUserDropdown } from './components/presentation/UserDropdown/BaseUserDropdown';
export * from './components/presentation/UserDropdown/BaseUserDropdown';
export { default as UserDropdown } from './components/presentation/UserDropdown/UserDropdown';
export * from './components/presentation/UserDropdown/UserDropdown';
export { default as BaseOrganizationSwitcher } from './components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher';
export * from './components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher';
export { default as OrganizationSwitcher } from './components/presentation/OrganizationSwitcher/OrganizationSwitcher';
export * from './components/presentation/OrganizationSwitcher/OrganizationSwitcher';
export { default as BaseOrganizationList } from './components/presentation/OrganizationList/BaseOrganizationList';
export * from './components/presentation/OrganizationList/BaseOrganizationList';
export { default as OrganizationList } from './components/presentation/OrganizationList/OrganizationList';
export * from './components/presentation/OrganizationList/OrganizationList';
export { default as BaseOrganizationProfile } from './components/presentation/OrganizationProfile/BaseOrganizationProfile';
export * from './components/presentation/OrganizationProfile/BaseOrganizationProfile';
export { default as OrganizationProfile } from './components/presentation/OrganizationProfile/OrganizationProfile';
export * from './components/presentation/OrganizationProfile/OrganizationProfile';
export { BaseCreateOrganization } from './components/presentation/CreateOrganization/BaseCreateOrganization';
export * from './components/presentation/CreateOrganization/BaseCreateOrganization';
export { CreateOrganization } from './components/presentation/CreateOrganization/CreateOrganization';
export * from './components/presentation/CreateOrganization/CreateOrganization';
export { default as Button } from './components/primitives/Button/Button';
export * from './components/primitives/Button/Button';
export { default as Card } from './components/primitives/Card/Card';
export * from './components/primitives/Card/Card';
export { default as Alert } from './components/primitives/Alert/Alert';
export * from './components/primitives/Alert/Alert';
export { default as OtpField } from './components/primitives/OtpField/OtpField';
export * from './components/primitives/OtpField/OtpField';
export { default as TextField } from './components/primitives/TextField/TextField';
export * from './components/primitives/TextField/TextField';
export { default as MultiInput } from './components/primitives/MultiInput/MultiInput';
export * from './components/primitives/MultiInput/MultiInput';
export { default as PasswordField } from './components/primitives/PasswordField/PasswordField';
export * from './components/primitives/PasswordField/PasswordField';
export { default as Select } from './components/primitives/Select/Select';
export * from './components/primitives/Select/Select';
export { default as DatePicker } from './components/primitives/DatePicker/DatePicker';
export * from './components/primitives/DatePicker/DatePicker';
export { default as Checkbox } from './components/primitives/Checkbox/Checkbox';
export * from './components/primitives/Checkbox/Checkbox';
export { default as FormControl } from './components/primitives/FormControl/FormControl';
export * from './components/primitives/FormControl/FormControl';
export { default as InputLabel } from './components/primitives/InputLabel/InputLabel';
export * from './components/primitives/InputLabel/InputLabel';
export { default as KeyValueInput } from './components/primitives/KeyValueInput/KeyValueInput';
export * from './components/primitives/KeyValueInput/KeyValueInput';
export { default as Typography } from './components/primitives/Typography/Typography';
export * from './components/primitives/Typography/Typography';
export { default as Divider } from './components/primitives/Divider/Divider';
export * from './components/primitives/Divider/Divider';
export { default as Logo } from './components/primitives/Logo/Logo';
export * from './components/primitives/Logo/Logo';
export { default as Spinner } from './components/primitives/Spinner/Spinner';
export * from './components/primitives/Spinner/Spinner';
export { default as Eye } from './components/primitives/Icons/Eye';
export { default as EyeOff } from './components/primitives/Icons/EyeOff';
export { default as CircleCheck } from './components/primitives/Icons/CircleCheck';
export { default as CircleAlert } from './components/primitives/Icons/CircleAlert';
export { default as TriangleAlert } from './components/primitives/Icons/TriangleAlert';
export { default as Info } from './components/primitives/Icons/Info';
export { default as UserIcon } from './components/primitives/Icons/User';
export { default as LogOut } from './components/primitives/Icons/LogOut';
export { createField, FieldFactory, validateFieldValue } from './components/factories/FieldFactory';
export * from './components/factories/FieldFactory';
export { default as BuildingAlt } from './components/primitives/Icons/BuildingAlt';
export type { FlowStep, FlowMessage, FlowContextValue } from './contexts/Flow/FlowContext';
export type { FlowProviderProps } from './contexts/Flow/FlowProvider';
export { default as getAllOrganizations, GetAllOrganizationsConfig } from './api/getAllOrganizations';
export { default as createOrganization, CreateOrganizationConfig } from './api/createOrganization';
export { default as getMeOrganizations, GetMeOrganizationsConfig } from './api/getMeOrganizations';
export { default as getOrganization, GetOrganizationConfig } from './api/getOrganization';
export { default as updateOrganization, createPatchOperations, UpdateOrganizationConfig } from './api/updateOrganization';
export { default as getSchemas, GetSchemasConfig } from './api/getSchemas';
export { default as updateMeProfile, UpdateMeProfileConfig } from './api/updateMeProfile';
export { default as getMeProfile } from './api/getScim2Me';
export * from './api/getScim2Me';
export { AsgardeoRuntimeError, http, getActiveTheme, navigate, EmbeddedFlowComponentTypeV2 as EmbeddedFlowComponentType, EmbeddedFlowActionVariantV2 as EmbeddedFlowActionVariant, EmbeddedFlowTextVariantV2 as EmbeddedFlowTextVariant, EmbeddedFlowEventTypeV2 as EmbeddedFlowEventType, type EmbeddedFlowComponentV2 as EmbeddedFlowComponent, type EmbeddedFlowResponseDataV2 as EmbeddedFlowResponseData, type EmbeddedFlowExecuteRequestConfigV2 as EmbeddedFlowExecuteRequestConfig, EmbeddedSignInFlowStatusV2 as EmbeddedSignInFlowStatus, EmbeddedSignInFlowTypeV2 as EmbeddedSignInFlowType, type ExtendedEmbeddedSignInFlowResponseV2 as ExtendedEmbeddedSignInFlowResponse, type EmbeddedSignInFlowResponseV2 as EmbeddedSignInFlowResponse, type EmbeddedSignInFlowCompleteResponseV2 as EmbeddedSignInFlowCompleteResponse, type EmbeddedSignInFlowInitiateRequestV2 as EmbeddedSignInFlowInitiateRequest, type EmbeddedSignInFlowRequestV2 as EmbeddedSignInFlowRequest, type EmbeddedSignUpFlowStatusV2 as EmbeddedSignUpFlowStatus, type EmbeddedSignUpFlowTypeV2 as EmbeddedSignUpFlowType, type ExtendedEmbeddedSignUpFlowResponseV2 as ExtendedEmbeddedSignUpFlowResponse, type EmbeddedSignUpFlowResponseV2 as EmbeddedSignUpFlowResponse, type EmbeddedSignUpFlowCompleteResponseV2 as EmbeddedSignUpFlowCompleteResponse, type EmbeddedSignUpFlowInitiateRequestV2 as EmbeddedSignUpFlowInitiateRequest, type EmbeddedSignUpFlowRequestV2 as EmbeddedSignUpFlowRequest, type EmbeddedSignUpFlowErrorResponseV2 as EmbeddedSignUpFlowErrorResponse, } from '@asgardeo/browser';