@asgardeo/react 0.11.2 → 0.12.0

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.
Files changed (108) hide show
  1. package/dist/AsgardeoReactClient.d.ts +10 -10
  2. package/dist/__temp__/api.d.ts +6 -6
  3. package/dist/__temp__/models.d.ts +30 -30
  4. package/dist/cjs/index.js +6272 -5796
  5. package/dist/cjs/index.js.map +4 -4
  6. package/dist/components/adapters/FacebookButton.d.ts +1 -1
  7. package/dist/components/adapters/GitHubButton.d.ts +1 -1
  8. package/dist/components/adapters/GoogleButton.d.ts +1 -1
  9. package/dist/components/adapters/LinkedInButton.d.ts +1 -1
  10. package/dist/components/adapters/MicrosoftButton.d.ts +1 -1
  11. package/dist/components/adapters/SignInWithEthereumButton.d.ts +1 -1
  12. package/dist/components/adapters/SmsOtpButton.d.ts +1 -1
  13. package/dist/components/auth/Callback/Callback.d.ts +51 -0
  14. package/dist/components/factories/FieldFactory.d.ts +25 -25
  15. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +1 -18
  16. package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +1 -1
  17. package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +26 -26
  18. package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +1 -31
  19. package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +1 -6
  20. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +3 -3
  21. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +1 -27
  22. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts +6 -6
  23. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +1 -25
  24. package/dist/components/presentation/User/BaseUser.d.ts +4 -4
  25. package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +1 -15
  26. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -3
  27. package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +1 -26
  28. package/dist/components/presentation/auth/AcceptInvite/index.d.ts +1 -1
  29. package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts +13 -13
  30. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +52 -51
  31. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts +6 -10
  32. package/dist/components/presentation/auth/AuthOptionFactory.d.ts +1 -1
  33. package/dist/components/presentation/auth/InviteUser/index.d.ts +1 -1
  34. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +57 -57
  35. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts +6 -10
  36. package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts +15 -15
  37. package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts +1 -27
  38. package/dist/components/presentation/auth/SignIn/SignIn.d.ts +1 -1
  39. package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts +12 -12
  40. package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts +15 -15
  41. package/dist/components/presentation/auth/SignIn/v1/types.d.ts +30 -30
  42. package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +47 -47
  43. package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +20 -20
  44. package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts +1 -26
  45. package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts +40 -40
  46. package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts +1 -1
  47. package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts +46 -46
  48. package/dist/components/primitives/Alert/Alert.d.ts +8 -8
  49. package/dist/components/primitives/Alert/Alert.styles.d.ts +1 -8
  50. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -4
  51. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -7
  52. package/dist/components/primitives/Button/Button.d.ts +14 -14
  53. package/dist/components/primitives/Button/Button.styles.d.ts +1 -13
  54. package/dist/components/primitives/Card/Card.d.ts +4 -4
  55. package/dist/components/primitives/Card/Card.styles.d.ts +1 -11
  56. package/dist/components/primitives/Checkbox/Checkbox.d.ts +8 -8
  57. package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +1 -8
  58. package/dist/components/primitives/DatePicker/DatePicker.d.ts +12 -12
  59. package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +1 -6
  60. package/dist/components/primitives/Dialog/Dialog.d.ts +17 -17
  61. package/dist/components/primitives/Dialog/Dialog.styles.d.ts +1 -9
  62. package/dist/components/primitives/Divider/Divider.d.ts +2 -2
  63. package/dist/components/primitives/Divider/Divider.styles.d.ts +1 -7
  64. package/dist/components/primitives/FormControl/FormControl.d.ts +4 -4
  65. package/dist/components/primitives/FormControl/FormControl.styles.d.ts +1 -5
  66. package/dist/components/primitives/InputLabel/InputLabel.d.ts +10 -10
  67. package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +1 -7
  68. package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts +4 -4
  69. package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +1 -17
  70. package/dist/components/primitives/Logo/Logo.d.ts +8 -8
  71. package/dist/components/primitives/Logo/Logo.styles.d.ts +1 -7
  72. package/dist/components/primitives/MultiInput/MultiInput.d.ts +28 -28
  73. package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +1 -11
  74. package/dist/components/primitives/OtpField/OtpField.d.ts +20 -20
  75. package/dist/components/primitives/OtpField/OtpField.styles.d.ts +1 -6
  76. package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +1 -5
  77. package/dist/components/primitives/Select/Select.d.ts +18 -18
  78. package/dist/components/primitives/Select/Select.styles.d.ts +1 -6
  79. package/dist/components/primitives/Spinner/Spinner.d.ts +4 -4
  80. package/dist/components/primitives/Spinner/Spinner.styles.d.ts +1 -6
  81. package/dist/components/primitives/TextField/TextField.d.ts +18 -18
  82. package/dist/components/primitives/TextField/TextField.styles.d.ts +1 -9
  83. package/dist/components/primitives/Typography/Typography.d.ts +24 -24
  84. package/dist/components/primitives/Typography/Typography.styles.d.ts +1 -19
  85. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +62 -62
  86. package/dist/contexts/Branding/BrandingContext.d.ts +12 -11
  87. package/dist/contexts/Branding/BrandingProvider.d.ts +10 -10
  88. package/dist/contexts/Flow/FlowContext.d.ts +25 -24
  89. package/dist/contexts/Flow/FlowProvider.d.ts +4 -4
  90. package/dist/contexts/I18n/I18nContext.d.ts +6 -5
  91. package/dist/contexts/I18n/I18nProvider.d.ts +1 -1
  92. package/dist/contexts/Theme/ThemeContext.d.ts +12 -11
  93. package/dist/contexts/Theme/ThemeProvider.d.ts +10 -10
  94. package/dist/contexts/Theme/types.d.ts +30 -30
  95. package/dist/contexts/User/UserContext.d.ts +2 -2
  96. package/dist/contexts/User/UserProvider.d.ts +2 -2
  97. package/dist/hooks/useBranding.d.ts +17 -17
  98. package/dist/hooks/useBrowserUrl.d.ts +8 -0
  99. package/dist/hooks/useForm.d.ts +10 -9
  100. package/dist/hooks/useTranslation.d.ts +4 -4
  101. package/dist/hooks/v2/useOAuthCallback.d.ts +82 -0
  102. package/dist/index.d.ts +7 -26
  103. package/dist/index.js +6330 -5824
  104. package/dist/index.js.map +4 -4
  105. package/dist/utils/oauth.d.ts +24 -0
  106. package/dist/utils/v2/flowTransformer.d.ts +7 -7
  107. package/dist/utils/v2/getAuthComponentHeadings.d.ts +2 -2
  108. package/package.json +2 -2
@@ -24,48 +24,40 @@ export interface UseBrandingConfig {
24
24
  /**
25
25
  * @deprecated This configuration is now handled by BrandingProvider
26
26
  */
27
- locale?: string;
27
+ autoFetch?: boolean;
28
28
  /**
29
29
  * @deprecated This configuration is now handled by BrandingProvider
30
30
  */
31
- name?: string;
31
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
32
32
  /**
33
33
  * @deprecated This configuration is now handled by BrandingProvider
34
34
  */
35
- type?: string;
35
+ forceTheme?: 'light' | 'dark';
36
36
  /**
37
37
  * @deprecated This configuration is now handled by BrandingProvider
38
38
  */
39
- forceTheme?: 'light' | 'dark';
39
+ locale?: string;
40
40
  /**
41
41
  * @deprecated This configuration is now handled by BrandingProvider
42
42
  */
43
- autoFetch?: boolean;
43
+ name?: string;
44
44
  /**
45
45
  * @deprecated This configuration is now handled by BrandingProvider
46
46
  */
47
- fetcher?: (url: string, config: RequestInit) => Promise<Response>;
47
+ type?: string;
48
48
  }
49
49
  /**
50
50
  * Return type of the useBranding hook
51
51
  */
52
52
  export interface UseBrandingReturn {
53
- /**
54
- * The raw branding preference data
55
- */
56
- brandingPreference: BrandingPreference | null;
57
- /**
58
- * The transformed theme object
59
- */
60
- theme: Theme | null;
61
53
  /**
62
54
  * The active theme mode from branding preference ('light' | 'dark')
63
55
  */
64
56
  activeTheme: 'light' | 'dark' | null;
65
57
  /**
66
- * Loading state
58
+ * The raw branding preference data
67
59
  */
68
- isLoading: boolean;
60
+ brandingPreference: BrandingPreference | null;
69
61
  /**
70
62
  * Error state
71
63
  */
@@ -74,11 +66,19 @@ export interface UseBrandingReturn {
74
66
  * Function to manually fetch branding preference
75
67
  */
76
68
  fetchBranding: () => Promise<void>;
69
+ /**
70
+ * Loading state
71
+ */
72
+ isLoading: boolean;
77
73
  /**
78
74
  * Function to refetch branding preference
79
75
  * This bypasses the single-call restriction and forces a new API call
80
76
  */
81
77
  refetch: () => Promise<void>;
78
+ /**
79
+ * The transformed theme object
80
+ */
81
+ theme: Theme | null;
82
82
  }
83
83
  /**
84
84
  * React hook for accessing branding preferences from the BrandingProvider context.
@@ -123,5 +123,5 @@ export interface UseBrandingReturn {
123
123
  * }
124
124
  * ```
125
125
  */
126
- export declare const useBranding: (config?: UseBrandingConfig) => UseBrandingReturn;
126
+ export declare const useBranding: () => UseBrandingReturn;
127
127
  export default useBranding;
@@ -27,6 +27,14 @@ export interface UseBrowserUrl {
27
27
  * @returns True if the URL contains authentication parameters and matches the afterSignInUrl, or if it contains an error parameter
28
28
  */
29
29
  hasAuthParams: (url: URL, afterSignInUrl: string) => boolean;
30
+ /**
31
+ * Checks if the URL indicates that the authentication flow has been called for this instance.
32
+ *
33
+ * @param url - The URL object to check
34
+ * @param instanceId - The instance ID to check against
35
+ * @returns True if the URL indicates the flow has been called for this instance
36
+ */
37
+ hasCalledForThisInstance: (url: URL, instanceId: number) => boolean;
30
38
  }
31
39
  /**
32
40
  * Hook that provides utilities for handling browser URLs in authentication flows.
@@ -15,6 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
+ import { FormEvent } from 'react';
18
19
  /**
19
20
  * Generic form field configuration
20
21
  */
@@ -87,7 +88,7 @@ export interface UseFormReturn<T extends Record<string, string>> {
87
88
  /**
88
89
  * Handle form submission
89
90
  */
90
- handleSubmit: (onSubmit: (values: T) => void | Promise<void>) => (e?: React.FormEvent) => Promise<void>;
91
+ handleSubmit: (onSubmit: (values: T) => void | Promise<void>) => (e?: FormEvent) => Promise<void>;
91
92
  /**
92
93
  * Whether the form has been submitted
93
94
  */
@@ -129,21 +130,21 @@ export interface UseFormReturn<T extends Record<string, string>> {
129
130
  */
130
131
  touchAllFields: () => void;
131
132
  /**
132
- * Validate all fields
133
- */
134
- validateForm: () => ValidationResult;
135
- /**
136
- * Current form values
133
+ * Fields that have been touched by the user
137
134
  */
138
- values: T;
135
+ touched: Record<keyof T, boolean>;
139
136
  /**
140
137
  * Validate a single field
141
138
  */
142
139
  validateField: (name: keyof T) => string | null;
143
140
  /**
144
- * Fields that have been touched by the user
141
+ * Validate all fields
145
142
  */
146
- touched: Record<keyof T, boolean>;
143
+ validateForm: () => ValidationResult;
144
+ /**
145
+ * Current form values
146
+ */
147
+ values: T;
147
148
  }
148
149
  /**
149
150
  * Generic form hook that provides comprehensive form state management and validation.
@@ -18,9 +18,9 @@
18
18
  import { I18nPreferences } from '@asgardeo/browser';
19
19
  export interface UseTranslation {
20
20
  /**
21
- * Translation function that returns a translated string for the given key
21
+ * All available language codes
22
22
  */
23
- t: (key: string, params?: Record<string, string | number>) => string;
23
+ availableLanguages: string[];
24
24
  /**
25
25
  * The current language code
26
26
  */
@@ -30,9 +30,9 @@ export interface UseTranslation {
30
30
  */
31
31
  setLanguage: (language: string) => void;
32
32
  /**
33
- * All available language codes
33
+ * Translation function that returns a translated string for the given key
34
34
  */
35
- availableLanguages: string[];
35
+ t: (key: string, params?: Record<string, string | number>) => string;
36
36
  }
37
37
  export interface UseTranslationWithPreferences extends UseTranslation {
38
38
  /**
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { type RefObject } from 'react';
19
+ export interface UseOAuthCallbackOptions {
20
+ /**
21
+ * Current flowId from component state
22
+ */
23
+ currentFlowId: string | null;
24
+ /**
25
+ * SessionStorage key for flowId (defaults to 'asgardeo_flow_id')
26
+ */
27
+ flowIdStorageKey?: string;
28
+ /**
29
+ * Whether the component is initialized and ready to process OAuth callback
30
+ */
31
+ isInitialized: boolean;
32
+ /**
33
+ * Whether a submission is currently in progress
34
+ */
35
+ isSubmitting?: boolean;
36
+ /**
37
+ * Callback when OAuth flow completes successfully
38
+ */
39
+ onComplete?: () => void;
40
+ /**
41
+ * Callback when OAuth flow encounters an error
42
+ */
43
+ onError?: (error: any) => void;
44
+ /**
45
+ * Function to handle flow response after submission
46
+ */
47
+ onFlowChange?: (response: any) => void;
48
+ /**
49
+ * Callback to set loading state at the start of OAuth processing
50
+ */
51
+ onProcessingStart?: () => void;
52
+ /**
53
+ * Function to submit OAuth code to the server
54
+ */
55
+ onSubmit: (payload: OAuthCallbackPayload) => Promise<any>;
56
+ /**
57
+ * Optional external ref to track processed state. If provided, the component
58
+ * manages the ref (allowing resets on flow clear/retry). Otherwise hook manages internally.
59
+ */
60
+ processedRef?: RefObject<boolean>;
61
+ /**
62
+ * Additional handler for setting state (e.g., setFlowId)
63
+ */
64
+ setFlowId?: (flowId: string) => void;
65
+ /**
66
+ * Ref to mark that token validation was attempted (prevents duplicate validation)
67
+ * Used in AcceptInvite to coordinate between OAuth callback and token validation
68
+ */
69
+ tokenValidationAttemptedRef?: RefObject<boolean>;
70
+ }
71
+ export interface OAuthCallbackPayload {
72
+ flowId: string;
73
+ inputs: {
74
+ code: string;
75
+ nonce?: string;
76
+ };
77
+ }
78
+ /**
79
+ * Processes OAuth callbacks by detecting auth code in URL, resolving flowId, and submitting to server.
80
+ * Used by SignIn, SignUp, and AcceptInvite components.
81
+ */
82
+ export declare function useOAuthCallback({ currentFlowId, flowIdStorageKey, isInitialized, isSubmitting, onComplete, onError, onFlowChange, onProcessingStart, onSubmit, processedRef, setFlowId, tokenValidationAttemptedRef, }: UseOAuthCallbackOptions): void;
package/dist/index.d.ts CHANGED
@@ -20,51 +20,42 @@ export * from './contexts/Asgardeo/AsgardeoProvider';
20
20
  export { default as AsgardeoContext } from './contexts/Asgardeo/AsgardeoContext';
21
21
  export * from './contexts/Asgardeo/AsgardeoContext';
22
22
  export { default as useAsgardeo } from './contexts/Asgardeo/useAsgardeo';
23
- export * from './contexts/Asgardeo/useAsgardeo';
24
23
  export { default as UserContext } from './contexts/User/UserContext';
25
24
  export * from './contexts/User/UserContext';
26
25
  export { default as UserProvider } from './contexts/User/UserProvider';
27
26
  export * from './contexts/User/UserProvider';
28
27
  export { default as useUser } from './contexts/User/useUser';
29
- export * from './contexts/User/useUser';
30
28
  export { default as OrganizationContext } from './contexts/Organization/OrganizationContext';
31
29
  export * from './contexts/Organization/OrganizationContext';
32
30
  export { default as OrganizationProvider } from './contexts/Organization/OrganizationProvider';
33
31
  export * from './contexts/Organization/OrganizationProvider';
34
32
  export { default as useOrganization } from './contexts/Organization/useOrganization';
35
- export * from './contexts/Organization/useOrganization';
36
33
  export { default as FlowContext } from './contexts/Flow/FlowContext';
37
- export * from './contexts/Flow/FlowContext';
34
+ export type { FlowStep, FlowMessage, FlowContextValue } from './contexts/Flow/FlowContext';
38
35
  export { default as FlowProvider } from './contexts/Flow/FlowProvider';
39
- export * from './contexts/Flow/FlowProvider';
36
+ export type { FlowProviderProps } from './contexts/Flow/FlowProvider';
40
37
  export { default as useFlow } from './contexts/Flow/useFlow';
41
- export * from './contexts/Flow/useFlow';
42
38
  export { default as I18nContext } from './contexts/I18n/I18nContext';
43
39
  export * from './contexts/I18n/I18nContext';
44
40
  export { default as I18nProvider } from './contexts/I18n/I18nProvider';
45
41
  export * from './contexts/I18n/I18nProvider';
46
42
  export { default as useI18n } from './contexts/I18n/useI18n';
47
- export * from './contexts/I18n/useI18n';
48
43
  export { default as ThemeContext } from './contexts/Theme/ThemeContext';
49
44
  export * from './contexts/Theme/ThemeContext';
50
45
  export { default as ThemeProvider } from './contexts/Theme/ThemeProvider';
51
46
  export * from './contexts/Theme/ThemeProvider';
52
47
  export { default as useTheme } from './contexts/Theme/useTheme';
53
- export * from './contexts/Theme/useTheme';
54
48
  export { default as BrandingContext } from './contexts/Branding/BrandingContext';
55
49
  export * from './contexts/Branding/BrandingContext';
56
50
  export { default as BrandingProvider } from './contexts/Branding/BrandingProvider';
57
51
  export * from './contexts/Branding/BrandingProvider';
58
52
  export { default as useBrandingContext } from './contexts/Branding/useBrandingContext';
59
- export * from './contexts/Branding/useBrandingContext';
60
53
  export { default as useBrowserUrl } from './hooks/useBrowserUrl';
61
54
  export * from './hooks/useBrowserUrl';
62
55
  export { default as useTranslation } from './hooks/useTranslation';
63
56
  export * from './hooks/useTranslation';
64
57
  export { default as useForm } from './hooks/useForm';
65
- export * from './hooks/useForm';
66
58
  export { default as useBranding } from './hooks/useBranding';
67
- export * from './hooks/useBranding';
68
59
  export { default as BaseSignInButton } from './components/actions/SignInButton/BaseSignInButton';
69
60
  export * from './components/actions/SignInButton/BaseSignInButton';
70
61
  export { default as SignInButton } from './components/actions/SignInButton/SignInButton';
@@ -91,10 +82,9 @@ export { default as BaseSignUp } from './components/presentation/auth/SignUp/Bas
91
82
  export * from './components/presentation/auth/SignUp/BaseSignUp';
92
83
  export { default as SignUp } from './components/presentation/auth/SignUp/SignUp';
93
84
  export * from './components/presentation/auth/SignUp/SignUp';
94
- export { BaseInviteUser, InviteUser } from './components/presentation/auth/InviteUser';
95
85
  export * from './components/presentation/auth/InviteUser';
96
86
  export { BaseAcceptInvite, AcceptInvite } from './components/presentation/auth/AcceptInvite';
97
- export * from './components/presentation/auth/AcceptInvite';
87
+ export * from './components/auth/Callback/Callback';
98
88
  export { default as IdentifierFirst } from './components/presentation/auth/SignIn/v1/options/IdentifierFirst';
99
89
  export { default as UsernamePassword } from './components/presentation/auth/SignIn/v1/options/UsernamePassword';
100
90
  export { default as GoogleButton } from './components/adapters/GoogleButton';
@@ -116,37 +106,31 @@ export * from './components/presentation/User/User';
116
106
  export { default as BaseOrganization } from './components/presentation/Organization/BaseOrganization';
117
107
  export * from './components/presentation/Organization/BaseOrganization';
118
108
  export { default as Organization } from './components/presentation/Organization/Organization';
119
- export * from './components/presentation/Organization/Organization';
120
109
  export { default as BaseUserProfile } from './components/presentation/UserProfile/BaseUserProfile';
121
110
  export * from './components/presentation/UserProfile/BaseUserProfile';
122
111
  export { default as UserProfile } from './components/presentation/UserProfile/UserProfile';
123
112
  export * from './components/presentation/UserProfile/UserProfile';
124
113
  export { default as BaseUserDropdown } from './components/presentation/UserDropdown/BaseUserDropdown';
125
- export * from './components/presentation/UserDropdown/BaseUserDropdown';
114
+ export type { BaseUserDropdownProps } from './components/presentation/UserDropdown/BaseUserDropdown';
126
115
  export { default as UserDropdown } from './components/presentation/UserDropdown/UserDropdown';
127
116
  export * from './components/presentation/UserDropdown/UserDropdown';
128
117
  export { default as BaseOrganizationSwitcher } from './components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher';
129
- export * from './components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher';
118
+ export type { BaseOrganizationSwitcherProps } from './components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher';
130
119
  export { default as OrganizationSwitcher } from './components/presentation/OrganizationSwitcher/OrganizationSwitcher';
131
- export * from './components/presentation/OrganizationSwitcher/OrganizationSwitcher';
132
120
  export { default as BaseOrganizationList } from './components/presentation/OrganizationList/BaseOrganizationList';
133
- export * from './components/presentation/OrganizationList/BaseOrganizationList';
121
+ export type { BaseOrganizationListProps, OrganizationWithSwitchAccess, } from './components/presentation/OrganizationList/BaseOrganizationList';
134
122
  export { default as OrganizationList } from './components/presentation/OrganizationList/OrganizationList';
135
- export * from './components/presentation/OrganizationList/OrganizationList';
136
123
  export { default as BaseOrganizationProfile } from './components/presentation/OrganizationProfile/BaseOrganizationProfile';
137
124
  export * from './components/presentation/OrganizationProfile/BaseOrganizationProfile';
138
125
  export { default as OrganizationProfile } from './components/presentation/OrganizationProfile/OrganizationProfile';
139
126
  export * from './components/presentation/OrganizationProfile/OrganizationProfile';
140
127
  export { BaseCreateOrganization } from './components/presentation/CreateOrganization/BaseCreateOrganization';
141
- export * from './components/presentation/CreateOrganization/BaseCreateOrganization';
128
+ export type { BaseCreateOrganizationProps, OrganizationFormData, } from './components/presentation/CreateOrganization/BaseCreateOrganization';
142
129
  export { CreateOrganization } from './components/presentation/CreateOrganization/CreateOrganization';
143
- export * from './components/presentation/CreateOrganization/CreateOrganization';
144
130
  export { default as Button } from './components/primitives/Button/Button';
145
131
  export * from './components/primitives/Button/Button';
146
132
  export { default as Card } from './components/primitives/Card/Card';
147
- export * from './components/primitives/Card/Card';
148
133
  export { default as Alert } from './components/primitives/Alert/Alert';
149
- export * from './components/primitives/Alert/Alert';
150
134
  export { default as OtpField } from './components/primitives/OtpField/OtpField';
151
135
  export * from './components/primitives/OtpField/OtpField';
152
136
  export { default as TextField } from './components/primitives/TextField/TextField';
@@ -184,10 +168,7 @@ export { default as Info } from './components/primitives/Icons/Info';
184
168
  export { default as UserIcon } from './components/primitives/Icons/User';
185
169
  export { default as LogOut } from './components/primitives/Icons/LogOut';
186
170
  export { createField, FieldFactory, validateFieldValue } from './components/factories/FieldFactory';
187
- export * from './components/factories/FieldFactory';
188
171
  export { default as BuildingAlt } from './components/primitives/Icons/BuildingAlt';
189
- export type { FlowStep, FlowMessage, FlowContextValue } from './contexts/Flow/FlowContext';
190
- export type { FlowProviderProps } from './contexts/Flow/FlowProvider';
191
172
  export { default as getAllOrganizations, GetAllOrganizationsConfig } from './api/getAllOrganizations';
192
173
  export { default as createOrganization, CreateOrganizationConfig } from './api/createOrganization';
193
174
  export { default as getMeOrganizations, GetMeOrganizationsConfig } from './api/getMeOrganizations';