@mindly/ui-components 6.6.0 → 6.6.1

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 (52) hide show
  1. package/dist/cjs/index.js +8 -8
  2. package/dist/cjs/lib2/features/AcceptAgreementFeature/AcceptAgreemnetFeature.d.ts +0 -1
  3. package/dist/cjs/lib2/features/GoogleCalendarModalFeature/GoogleCalendarModalFeature.d.ts +0 -1
  4. package/dist/cjs/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +0 -1
  5. package/dist/cjs/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +0 -1
  6. package/dist/cjs/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +0 -1
  7. package/dist/cjs/lib2/shared/assets/icons/IconMinus.d.ts +0 -1
  8. package/dist/cjs/lib2/shared/providers/AuthProvider/AuthProvider.d.ts +12 -0
  9. package/dist/cjs/lib2/shared/providers/AuthProvider/index.d.ts +1 -0
  10. package/dist/cjs/lib2/shared/providers/AuthProvider/types.d.ts +19 -0
  11. package/dist/cjs/lib2/shared/providers/index.d.ts +1 -0
  12. package/dist/cjs/lib2/shared/ui/Calendar/Calendar.d.ts +0 -1
  13. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +0 -1
  14. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +0 -1
  15. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +0 -1
  16. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +0 -1
  17. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  18. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
  19. package/dist/cjs/lib2/shared/ui/RatingCircle/RatingCircleIcons.d.ts +0 -1
  20. package/dist/cjs/lib2/shared/ui/Tabs/Tab.d.ts +0 -1
  21. package/dist/cjs/lib2/shared/ui/Tabs/TabPanel.d.ts +0 -1
  22. package/dist/cjs/lib2/shared/ui/Tabs/Tabs.d.ts +0 -1
  23. package/dist/cjs/lib2/shared/utils/globalAuthState.d.ts +131 -0
  24. package/dist/cjs/lib2/shared/utils/index.d.ts +1 -0
  25. package/dist/cjs/lib2/widgets/UpdateContractWidget/UpdateContractWidget.d.ts +0 -1
  26. package/dist/esm/index.js +8 -8
  27. package/dist/esm/lib2/features/AcceptAgreementFeature/AcceptAgreemnetFeature.d.ts +0 -1
  28. package/dist/esm/lib2/features/GoogleCalendarModalFeature/GoogleCalendarModalFeature.d.ts +0 -1
  29. package/dist/esm/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +0 -1
  30. package/dist/esm/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +0 -1
  31. package/dist/esm/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +0 -1
  32. package/dist/esm/lib2/shared/assets/icons/IconMinus.d.ts +0 -1
  33. package/dist/esm/lib2/shared/providers/AuthProvider/AuthProvider.d.ts +12 -0
  34. package/dist/esm/lib2/shared/providers/AuthProvider/index.d.ts +1 -0
  35. package/dist/esm/lib2/shared/providers/AuthProvider/types.d.ts +19 -0
  36. package/dist/esm/lib2/shared/providers/index.d.ts +1 -0
  37. package/dist/esm/lib2/shared/ui/Calendar/Calendar.d.ts +0 -1
  38. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +0 -1
  39. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +0 -1
  40. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +0 -1
  41. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +0 -1
  42. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  43. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
  44. package/dist/esm/lib2/shared/ui/RatingCircle/RatingCircleIcons.d.ts +0 -1
  45. package/dist/esm/lib2/shared/ui/Tabs/Tab.d.ts +0 -1
  46. package/dist/esm/lib2/shared/ui/Tabs/TabPanel.d.ts +0 -1
  47. package/dist/esm/lib2/shared/ui/Tabs/Tabs.d.ts +0 -1
  48. package/dist/esm/lib2/shared/utils/globalAuthState.d.ts +131 -0
  49. package/dist/esm/lib2/shared/utils/index.d.ts +1 -0
  50. package/dist/esm/lib2/widgets/UpdateContractWidget/UpdateContractWidget.d.ts +0 -1
  51. package/dist/index.d.ts +161 -1
  52. package/package.json +3 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type AcceptAgreementFeatureProps = {
3
2
  isAccepted: boolean;
4
3
  setIsAccepted: (isAccepted: boolean) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithTranslation } from 'react-i18next';
3
2
  type GoogleCalendarModalFeatureProps = {
4
3
  isOpen: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { OutdatedPersonalDataFeatureProps } from './types';
3
2
  export declare function OutdatedPersonalDataFeature({ isOpen, presentingElement, onApply, onDismiss, subtitle, title, applyText, }: OutdatedPersonalDataFeatureProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { PushNotificationsIsDisabledBannerProps } from './types';
3
2
  export declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { PushNotificationsModalProps } from './types';
3
2
  export declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { IconProps } from '../../types';
3
2
  export declare function IconMinus({ color, size, ...other }: IconProps): JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React, { FC } from 'react';
2
+ import { User } from '@capacitor-firebase/authentication';
3
+ import { AuthContextType } from './types';
4
+ export declare const AuthContext: React.Context<AuthContextType | null>;
5
+ type AuthProviderProps = {
6
+ /**
7
+ * REMOVE WHEN WE MOVE AUTH TO NATIVE CAPACITOR PLUGIN
8
+ */
9
+ webAuthListener?: (callback: (user: User | null) => void) => () => void;
10
+ };
11
+ export declare const AuthProvider: FC<AuthProviderProps>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export * from './AuthProvider';
@@ -0,0 +1,19 @@
1
+ import { CreateUserWithEmailAndPasswordOptions, LinkWithEmailAndPasswordOptions, SendPasswordResetEmailOptions, SignInResult, SignInWithEmailAndPasswordOptions, User } from '@capacitor-firebase/authentication';
2
+ export type AuthContextType = {
3
+ isAuthLoading: boolean;
4
+ isAuthReady: boolean;
5
+ authUser: User | null;
6
+ signInAnonymously: () => Promise<SignInResult>;
7
+ signInWithApple: () => Promise<SignInResult>;
8
+ signInWithGoogle: () => Promise<SignInResult>;
9
+ signInWithCustomToken: (token: string) => Promise<SignInResult>;
10
+ signInWithEmailAndPassword: (options: SignInWithEmailAndPasswordOptions) => Promise<SignInResult>;
11
+ linkWithApple: () => Promise<SignInResult>;
12
+ linkWithGoogle: () => Promise<SignInResult>;
13
+ linkWithEmailAndPassword: (options: LinkWithEmailAndPasswordOptions) => Promise<SignInResult>;
14
+ signOut: () => Promise<void>;
15
+ createUserWithEmailAndPassword: (options: CreateUserWithEmailAndPasswordOptions) => Promise<SignInResult>;
16
+ sendPasswordResetEmail: (options: SendPasswordResetEmailOptions) => Promise<void>;
17
+ changePassword: (newPassword: string) => Promise<void>;
18
+ sendEmailVerification: () => Promise<void>;
19
+ };
@@ -3,3 +3,4 @@ export * from './ToastProvider';
3
3
  export * from './CircleRatingProvider';
4
4
  export * from './VideoProvider';
5
5
  export * from './SpecialistScheduleProvider';
6
+ export * from './AuthProvider';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { CalendarProps } from './types';
3
2
  export declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarProps } from './types';
3
2
  type VerticalCalendarProps = CalendarProps & {
4
3
  visibleDuration?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type VerticalCalendarMonthSkeletonProps = {
3
2
  days: number;
4
3
  };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function VerticalCalendarSkeleton(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ListBoxProps } from './types';
3
2
  export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): JSX.Element;
@@ -14,6 +14,6 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, selection
14
14
  selectionPosition: "end" | "start";
15
15
  enableSelection: boolean;
16
16
  selectedIconProps: IconProps;
17
- type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
17
+ type: "image" | "checkbox" | "radio" | "icon" | "emoji" | "roundImage";
18
18
  }) => import("react/jsx-runtime").JSX.Element>;
19
19
  export default _default;
@@ -9,7 +9,7 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, enableSel
9
9
  onboardingTheme?: OnBoardingThemeV2Type | undefined;
10
10
  item: Node<unknown>;
11
11
  enableSelection: boolean;
12
- type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
12
+ type: "image" | "checkbox" | "radio" | "icon" | "emoji" | "roundImage";
13
13
  isOnboardingPreview?: boolean | undefined;
14
14
  image?: ResponseFileType | null | undefined;
15
15
  selectionMode?: "none" | "multiple" | "single" | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function CircleRatingIcon({ index, className, }: {
3
2
  index: number;
4
3
  className: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ItemProps, Node, TabListState } from 'react-stately';
3
2
  type TabProps<T> = {
4
3
  item: Node<T> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AriaTabPanelProps } from 'react-aria';
3
2
  import type { TabListState } from 'react-stately';
4
3
  type TabPanelProps<T> = AriaTabPanelProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AriaTabListProps } from 'react-aria';
3
2
  type TabsProps<T> = AriaTabListProps<T> & {
4
3
  className?: string;
@@ -0,0 +1,131 @@
1
+ /**
2
+ * Global Authentication State Manager
3
+ *
4
+ * This utility class manages the authentication readiness state across the entire application.
5
+ * It ensures that HTTP requests and other auth-dependent operations wait for authentication
6
+ * initialization to complete before proceeding.
7
+ *
8
+ * ## Usage Pattern:
9
+ *
10
+ * 1. **UI Library Internal**: The UI library calls `setReady()` when authentication initialization
11
+ * is complete (e.g., after token validation, user session restoration, etc.)
12
+ *
13
+ * 2. **External Consumers**: Global states, HTTP interceptors, and other parts of the application
14
+ * use `waitForReady()` or `getIsReady()` to ensure auth is initialized before making requests
15
+ *
16
+ * ## Example:
17
+ * // In UI library (AuthProvider):
18
+ * globalAuthState.setReady(); // Called after auth initialization
19
+ *
20
+ * // In global states or HTTP clients:
21
+ * await globalAuthState.waitForReady(); // Wait before making authenticated requests
22
+ *
23
+ * // In synchronous contexts:
24
+ * if (globalAuthState.getIsReady()) {
25
+ * // Proceed with auth-dependent operations
26
+ * }
27
+ *
28
+ * ## Thread Safety:
29
+ * This class is designed to be safe for concurrent access. Multiple consumers can wait
30
+ * for readiness simultaneously, and all will be notified when auth becomes ready.
31
+ */
32
+ declare class GlobalAuthState {
33
+ /** Internal flag tracking whether authentication is ready */
34
+ private isReady;
35
+ /** Promise that resolves when authentication becomes ready */
36
+ private readyPromise;
37
+ /** Function to resolve the readiness promise */
38
+ private resolveReady;
39
+ constructor();
40
+ /**
41
+ * Mark authentication as ready and notify all waiting consumers
42
+ *
43
+ * **INTERNAL USE ONLY**: This method should only be called by the UI library's
44
+ * authentication provider when auth initialization is complete.
45
+ *
46
+ * This method is idempotent - calling it multiple times has no additional effect.
47
+ *
48
+ * @example
49
+ * // In AuthProvider after successful initialization
50
+ * globalAuthState.setReady();
51
+ */
52
+ setReady(): void;
53
+ /**
54
+ * Wait for authentication to be ready before proceeding
55
+ *
56
+ * **PUBLIC API**: This method is intended for use by global states, HTTP interceptors,
57
+ * and other parts of the application that need to ensure auth is ready before proceeding.
58
+ *
59
+ * If auth is already ready, this method returns immediately. Otherwise, it waits
60
+ * until `setReady()` is called.
61
+ *
62
+ * @returns Promise that resolves when authentication is ready
63
+ *
64
+ * @example
65
+ * // In HTTP interceptor
66
+ * async function makeAuthenticatedRequest(url: string) {
67
+ * await globalAuthState.waitForReady();
68
+ * return fetch(url, { headers: { Authorization: getToken() } });
69
+ * }
70
+ *
71
+ * // In global state
72
+ * async function initializeUserData() {
73
+ * await globalAuthState.waitForReady();
74
+ * // Now safe to make authenticated API calls
75
+ * }
76
+ */
77
+ waitForReady(): Promise<void>;
78
+ /**
79
+ * Check if authentication is ready synchronously
80
+ *
81
+ * **PUBLIC API**: This method is intended for use in synchronous contexts where
82
+ * you need to check auth readiness without waiting.
83
+ *
84
+ * @returns `true` if authentication is ready, `false` otherwise
85
+ *
86
+ * @example
87
+ * // In a synchronous context
88
+ * function canMakeAuthRequest(): boolean {
89
+ * return globalAuthState.getIsReady();
90
+ * }
91
+ *
92
+ * // In conditional logic
93
+ * if (globalAuthState.getIsReady()) {
94
+ * // Safe to access auth-dependent features
95
+ * showUserDashboard();
96
+ * } else {
97
+ * // Show loading state
98
+ * showAuthLoadingSpinner();
99
+ * }
100
+ */
101
+ getIsReady(): boolean;
102
+ /**
103
+ * Reset the authentication ready state
104
+ *
105
+ * **PRIVATE METHOD**: This method is for internal use only (testing, re-initialization).
106
+ * It should not be called by external consumers as it can cause race conditions
107
+ * and unexpected behavior in production.
108
+ *
109
+ * Resets the state to unready and creates a new promise that consumers will wait on.
110
+ */
111
+ private reset;
112
+ }
113
+ /**
114
+ * Global singleton instance of the authentication state manager
115
+ *
116
+ * This is the main interface for interacting with authentication readiness state.
117
+ * Import and use this instance throughout your application to coordinate auth-dependent operations.
118
+ *
119
+ * @example
120
+ * import { globalAuthState } from './globalAuthState';
121
+ *
122
+ * // Wait for auth in async contexts
123
+ * await globalAuthState.waitForReady();
124
+ *
125
+ * // Check auth state synchronously
126
+ * if (globalAuthState.getIsReady()) {
127
+ * // Proceed with authenticated operations
128
+ * }
129
+ */
130
+ export declare const globalAuthState: GlobalAuthState;
131
+ export {};
@@ -10,3 +10,4 @@ export * from './filter';
10
10
  export * from './session';
11
11
  export * from './mock';
12
12
  export { ONBOARDING_THEME_DEFAULT_COLORS } from './onboarding';
13
+ export * from './globalAuthState';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type UpdateContractWidgetProps = {
3
2
  isAccepted: boolean;
4
3
  setIsAccepted: (isAccepted: boolean) => void;
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import { AriaListBoxProps, AriaCalendarProps, DateValue, AriaTabListProps } from
14
14
  import { ToastStateProps, ToastState } from '@react-stately/toast';
15
15
  import { AriaToastRegionProps } from '@react-aria/toast';
16
16
  import { IonSearchbarCustomEvent, SearchbarChangeEventDetail, TextFieldTypes, IonInputCustomEvent, InputChangeEventDetail } from '@ionic/core';
17
+ import { User, SignInResult, SignInWithEmailAndPasswordOptions, LinkWithEmailAndPasswordOptions, CreateUserWithEmailAndPasswordOptions, SendPasswordResetEmailOptions } from '@capacitor-firebase/authentication';
17
18
  import { MarkdownToJSX } from 'markdown-to-jsx';
18
19
 
19
20
  interface ButtonProps$2 {
@@ -2277,6 +2278,34 @@ type SpecialistScheduleProviderRef = {
2277
2278
  };
2278
2279
  declare const SpecialistScheduleProvider: React__default.FC<Props$5>;
2279
2280
 
2281
+ type AuthContextType = {
2282
+ isAuthLoading: boolean;
2283
+ isAuthReady: boolean;
2284
+ authUser: User | null;
2285
+ signInAnonymously: () => Promise<SignInResult>;
2286
+ signInWithApple: () => Promise<SignInResult>;
2287
+ signInWithGoogle: () => Promise<SignInResult>;
2288
+ signInWithCustomToken: (token: string) => Promise<SignInResult>;
2289
+ signInWithEmailAndPassword: (options: SignInWithEmailAndPasswordOptions) => Promise<SignInResult>;
2290
+ linkWithApple: () => Promise<SignInResult>;
2291
+ linkWithGoogle: () => Promise<SignInResult>;
2292
+ linkWithEmailAndPassword: (options: LinkWithEmailAndPasswordOptions) => Promise<SignInResult>;
2293
+ signOut: () => Promise<void>;
2294
+ createUserWithEmailAndPassword: (options: CreateUserWithEmailAndPasswordOptions) => Promise<SignInResult>;
2295
+ sendPasswordResetEmail: (options: SendPasswordResetEmailOptions) => Promise<void>;
2296
+ changePassword: (newPassword: string) => Promise<void>;
2297
+ sendEmailVerification: () => Promise<void>;
2298
+ };
2299
+
2300
+ declare const AuthContext: React__default.Context<AuthContextType | null>;
2301
+ type AuthProviderProps = {
2302
+ /**
2303
+ * REMOVE WHEN WE MOVE AUTH TO NATIVE CAPACITOR PLUGIN
2304
+ */
2305
+ webAuthListener?: (callback: (user: User | null) => void) => () => void;
2306
+ };
2307
+ declare const AuthProvider: FC<AuthProviderProps>;
2308
+
2280
2309
  declare function useDomRef<T extends HTMLElement = HTMLElement>(ref: React$1.RefObject<T | null> | React$1.ForwardedRef<T | null>): React$1.RefObject<T>;
2281
2310
 
2282
2311
  type AnyFunction = (...args: any[]) => any;
@@ -3880,6 +3909,137 @@ declare const ONBOARDING_THEME_DEFAULT_COLORS: Partial<Record<OnboardingVariant,
3880
3909
  defaultThemeColor: string;
3881
3910
  }>>;
3882
3911
 
3912
+ /**
3913
+ * Global Authentication State Manager
3914
+ *
3915
+ * This utility class manages the authentication readiness state across the entire application.
3916
+ * It ensures that HTTP requests and other auth-dependent operations wait for authentication
3917
+ * initialization to complete before proceeding.
3918
+ *
3919
+ * ## Usage Pattern:
3920
+ *
3921
+ * 1. **UI Library Internal**: The UI library calls `setReady()` when authentication initialization
3922
+ * is complete (e.g., after token validation, user session restoration, etc.)
3923
+ *
3924
+ * 2. **External Consumers**: Global states, HTTP interceptors, and other parts of the application
3925
+ * use `waitForReady()` or `getIsReady()` to ensure auth is initialized before making requests
3926
+ *
3927
+ * ## Example:
3928
+ * // In UI library (AuthProvider):
3929
+ * globalAuthState.setReady(); // Called after auth initialization
3930
+ *
3931
+ * // In global states or HTTP clients:
3932
+ * await globalAuthState.waitForReady(); // Wait before making authenticated requests
3933
+ *
3934
+ * // In synchronous contexts:
3935
+ * if (globalAuthState.getIsReady()) {
3936
+ * // Proceed with auth-dependent operations
3937
+ * }
3938
+ *
3939
+ * ## Thread Safety:
3940
+ * This class is designed to be safe for concurrent access. Multiple consumers can wait
3941
+ * for readiness simultaneously, and all will be notified when auth becomes ready.
3942
+ */
3943
+ declare class GlobalAuthState {
3944
+ /** Internal flag tracking whether authentication is ready */
3945
+ private isReady;
3946
+ /** Promise that resolves when authentication becomes ready */
3947
+ private readyPromise;
3948
+ /** Function to resolve the readiness promise */
3949
+ private resolveReady;
3950
+ constructor();
3951
+ /**
3952
+ * Mark authentication as ready and notify all waiting consumers
3953
+ *
3954
+ * **INTERNAL USE ONLY**: This method should only be called by the UI library's
3955
+ * authentication provider when auth initialization is complete.
3956
+ *
3957
+ * This method is idempotent - calling it multiple times has no additional effect.
3958
+ *
3959
+ * @example
3960
+ * // In AuthProvider after successful initialization
3961
+ * globalAuthState.setReady();
3962
+ */
3963
+ setReady(): void;
3964
+ /**
3965
+ * Wait for authentication to be ready before proceeding
3966
+ *
3967
+ * **PUBLIC API**: This method is intended for use by global states, HTTP interceptors,
3968
+ * and other parts of the application that need to ensure auth is ready before proceeding.
3969
+ *
3970
+ * If auth is already ready, this method returns immediately. Otherwise, it waits
3971
+ * until `setReady()` is called.
3972
+ *
3973
+ * @returns Promise that resolves when authentication is ready
3974
+ *
3975
+ * @example
3976
+ * // In HTTP interceptor
3977
+ * async function makeAuthenticatedRequest(url: string) {
3978
+ * await globalAuthState.waitForReady();
3979
+ * return fetch(url, { headers: { Authorization: getToken() } });
3980
+ * }
3981
+ *
3982
+ * // In global state
3983
+ * async function initializeUserData() {
3984
+ * await globalAuthState.waitForReady();
3985
+ * // Now safe to make authenticated API calls
3986
+ * }
3987
+ */
3988
+ waitForReady(): Promise<void>;
3989
+ /**
3990
+ * Check if authentication is ready synchronously
3991
+ *
3992
+ * **PUBLIC API**: This method is intended for use in synchronous contexts where
3993
+ * you need to check auth readiness without waiting.
3994
+ *
3995
+ * @returns `true` if authentication is ready, `false` otherwise
3996
+ *
3997
+ * @example
3998
+ * // In a synchronous context
3999
+ * function canMakeAuthRequest(): boolean {
4000
+ * return globalAuthState.getIsReady();
4001
+ * }
4002
+ *
4003
+ * // In conditional logic
4004
+ * if (globalAuthState.getIsReady()) {
4005
+ * // Safe to access auth-dependent features
4006
+ * showUserDashboard();
4007
+ * } else {
4008
+ * // Show loading state
4009
+ * showAuthLoadingSpinner();
4010
+ * }
4011
+ */
4012
+ getIsReady(): boolean;
4013
+ /**
4014
+ * Reset the authentication ready state
4015
+ *
4016
+ * **PRIVATE METHOD**: This method is for internal use only (testing, re-initialization).
4017
+ * It should not be called by external consumers as it can cause race conditions
4018
+ * and unexpected behavior in production.
4019
+ *
4020
+ * Resets the state to unready and creates a new promise that consumers will wait on.
4021
+ */
4022
+ private reset;
4023
+ }
4024
+ /**
4025
+ * Global singleton instance of the authentication state manager
4026
+ *
4027
+ * This is the main interface for interacting with authentication readiness state.
4028
+ * Import and use this instance throughout your application to coordinate auth-dependent operations.
4029
+ *
4030
+ * @example
4031
+ * import { globalAuthState } from './globalAuthState';
4032
+ *
4033
+ * // Wait for auth in async contexts
4034
+ * await globalAuthState.waitForReady();
4035
+ *
4036
+ * // Check auth state synchronously
4037
+ * if (globalAuthState.getIsReady()) {
4038
+ * // Proceed with authenticated operations
4039
+ * }
4040
+ */
4041
+ declare const globalAuthState: GlobalAuthState;
4042
+
3883
4043
  type SpecialistCardProps = {
3884
4044
  fullName?: string;
3885
4045
  specialization?: string;
@@ -4455,4 +4615,4 @@ declare const _default: React__default.NamedExoticComponent<SpecialistCardWithSc
4455
4615
 
4456
4616
  declare const SpecialistCardSkeleton: React__default.FC;
4457
4617
 
4458
- export { AcceptAgreementFeature, Action, _default$Y as AlertCard, AllowFilterValueType, AppFooter, _default$X as AppFooter_v2, AppHeader, AppHeaderPage as AppHeaderPageFeature, AppHeader_v2, AppNotSupportedFeature, AutoComplete, Avatar, AvatarProps$1 as AvatarProps, _default$W as Avatar_v2, AvatarProps as Avatar_v2Props, BREAKPOINT_ICON_SIZE, _default$S as Badge, _default$$ as BookingScheduleTime, _default$_ as BookingSpecialistInfo, BreakPointPositionProps, BreakPointPositionResult, Button, Button_v2, CAN_MANAGE_SESSION_TIME_HOURS, COUNTRIES_MAPPER, CSSVarStyles, Calendar, _default$z as CalendarPickerFeature, CancelSession, CardModal, ChangeLanguageModal, _default$1i as ChatListItem, _default$1g as ChatListSkeleton, _default$1h as ChatMessage, ChatMessageSkeleton, CheckBoxItem, CheckBoxListFeature, CheckBoxSectionListFeature, _default$d as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, CircleRatingComponentProps, CircleRatingContent, CircleRatingContext, CircleRatingContextData, CircleRatingContextProps, CircleRatingDataProps, CircleRatingDataResult, CircleRatingLegendProps, CircleRatingProvider, CircleRatingRange, CircleRatingSize, ClientCanAction, ClientCanParams, ClientSpecialistContractStatusEnum, CollapsableText, ConditionRulesType, Consultation, _default$1b as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$18 as ConsultationModal, _default$D as ConsultationPricingFeature, _default$16 as ConsultationSpecialistCard, ConsultationsListSkeleton, Container, Container_v2, ContentRendererProps, ContractDataFeature, ContractStatusEnum, ContentTree as ContractTreeFeature, CountdownTimerFeature, Counter, CounterProps, CountryOfOriginModal, CurrencyLocaleMapper, CurrencySignByLocale, CustomButton, _default$e as CustomCheckbox, CustomRadioButton, _default$f as CustomSelect, _default$g as CustomTextarea, DatePicker, _default$14 as DaySlider, Divider, DividerProps, DropdownFeature, DrumListPicker, DynamicCommissionValue, _default$10 as EducationCard, _default$1f as EmptyChatList, EmptyChatMessages, EmptyChatModalFeature, _default$19 as EmptyConsultations, EmptyList, EmptySpecialistListFeature, ErrorCardFeature, FilterFeatureProps, FilterItem, FilterItemBoolean, FilterItemChips, FilterItemRange, FilterItemSelect, FilterOption, FilterOptionValue, FilterValue, FiltersWidget, FiltersWidgetProps, FirstChatMessageModalFeature, _default$a as Flag, FlagTypes, _default$U as Flag_v2, FrequentlyAskedQuestions, GoogleCalendarModalFeature, HeaderWithRedirect, ISpecialistReview, IconAddModerator, IconAlignHorizontalTextCenter, IconAlignHorizontalTextLeft, IconAlignHorizontalTextRight, IconAmEx, IconAppStoreRating, IconApple, IconApplePay, IconArrowDown, IconArrowLeft, IconArrowRange, IconArrowRight, IconArrowTopRight, IconAttachMoney, IconBeachAccess, IconBookmark, IconBookmarkOutlined, _default$O as IconButton, IconCalendar, IconCalendarFilled, IconCalendarMonth, IconCalendarNew, IconCalendarWithDot, IconCancel, IconCancelBold, IconCancelRounded, IconCapFilled, IconChart, IconChat, IconChat3d, IconChat3dSmaller, IconChatFilled, IconChatOutline, IconCheck, IconCheckCircle, IconCheckSmall, IconCheckboxChecked, IconCheckboxCheckedBold, IconCheckboxThinUnchecked, IconCheckboxUnchecked, IconClient, IconClientFilled, IconClose, IconCompare, IconContract, IconCopy, IconCreditCard, IconDelete, IconDivider, IconDocument, IconDot, IconDoubleArrow, IconEcgHeart, IconEdit, IconEditCalendar, IconEmptyList, IconEventBusy, IconExperience, IconEye, IconEyeOff, IconFilters, IconGallery, IconGift, IconGiftNew, IconGlobe, IconGoogle, IconGooglePay, IconHeart, IconHome, IconIdCard, IconInfo, IconInvisible, IconInvoice, IconLanguage, IconLeaderboard, IconLeftArrow, IconLetter, IconLink, IconLock, IconLogout, IconMaestro, IconManageAccounts, IconMastercard, IconMatching, IconMindly, IconMindlyColored, IconMindlyMini, IconMinus, IconMooving, IconMoreVertical, IconMute, IconNotificationMuted, IconPaid, IconPaper, IconPaperPencil, IconPause, IconPaywall, IconPersonAlert, IconPlay, IconPlus, IconPoweredByStripe, IconProfile, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconPromocode, IconProps$H as IconProps, IconQueryStats, IconQuestion, IconRadioButtonChecked, IconRadioPartial, IconReceipt, IconReceiptLong, IconRenew, IconResume, IconReviewSessionSubscription, IconReviewSessionTrial, IconSchedule, IconSchema, IconSearch, IconSecure, IconSend, IconSettings, IconShare, IconSort, IconSpecialistsEnded, IconSpinner, IconStar, IconStarFilled, IconStudyHat, IconStylus, IconSuccess, IconSwitch, IconText, IconTime, IconTimeAdd, IconUnmute, IconUser, IconUserNotFound, IconVerifiedUser, IconVisa, IconVisible, IconWarning, ImageInput, ImageWithFallback, Input, InputSearch, _default$K as Item, _default$R as ItemCard, LabelArrowRedirect, _default$1k as LetterAvatar, _default$b as LineFileInput, ListBox, ListBoxItem, ListBoxItemProps, ListBoxProps, ListBoxSelectionType, ListItemType, _default$H as ListItemWithColumns, _default$L as ListItems, ListOption, ListOptionsProps, ListSelect, ListSelectProps, ListSimple, _default$M as Loading, LocaleCurrencyMapper, MapStatusContractToUIStatus, _default$s as MarkdownContainerFeature, _default$I as MatchProgress, _default$1j as MediaPlayer, MenuFeature, MindlyReview, MindlyReviewFeature, ModalSheet, NEAR_SESSION_TIME_SECONDS, NewSpecialist, NoInternetConnection, NotSupportModal, ONBOARDING_THEME_DEFAULT_COLORS, OnBoardingBaseScreenType, OnBoardingChartScreenPreviewFeature, OnBoardingChartScreenType, OnBoardingCompareScreenPreviewFeature, OnBoardingCompareScreenType, _default$k as OnBoardingConfirmScreenPreviewFeature, OnBoardingConfirmScreenType, _default$l as OnBoardingEmailScreenPreviewFeature, OnBoardingEmailScreenType, OnBoardingFlowType, OnBoardingGoalSelectScreenType, _default$j as OnBoardingGoalSelectionScreenPreviewFeature, OnBoardingGraphScreenPreviewFeature, OnBoardingGraphScreenType, _default$q as OnBoardingInfoScreenPreviewFeature, OnBoardingInfoScreenType, OnBoardingLoaderScreenPreviewFeature, OnBoardingLoaderScreenType, OnBoardingMultiSelectScreenType, _default$p as OnBoardingMultiSelectionScreenPreviewFeature, OnBoardingPaywallScreenPreviewFeature, OnBoardingPaywallScreenType, _default$n as OnBoardingProgressFeature, OnBoardingProgressSettingsScreenType, _default$m as OnBoardingReviewsScreenPreviewFeature, OnBoardingReviewsScreenType, OnBoardingScreenAlertType, OnBoardingScreenButtonType, OnBoardingScreenDescriptionType, OnBoardingScreenEmailType, OnBoardingScreenErrorsType, OnBoardingScreenOptionType, OnBoardingScreenOptionWithScaleType, OnBoardingScreenOptions, OnBoardingScreenPasswordType, OnBoardingScreenPrivacyType, OnBoardingScreenProgressType, OnBoardingScreenSkipButtonType, OnBoardingScreenStyleOptions, OnBoardingScreenSubgoalButtonType, OnBoardingScreenTranslationsType, OnBoardingScreensType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleRoundImageSelectScreenType, OnBoardingSingleScaleSelectScreenType, OnBoardingSingleSelectScreenType, _default$o as OnBoardingSingleSelectionScreenPreviewFeature, _default$r as OnBoardingStartScreenPreviewFeature, OnBoardingStartScreenType, OnBoardingThemeV2Type, OnboardingProgressTemplate, OnboardingVariant, OutdatedPersonalDataFeature, PasswordInput, PaymentBadgeType, _default$y as PaymentCalendarFeature, PaymentCalendarFeatureProps, _default$A as PaymentSessionsList, _default$T as Picture, PoweredByStripeFeature, _default$9 as ProfileInformation, _default$12 as ProfileView, _default$c as ProgressBar, ProgressBarDashed, _default$N as ProgressBar_v2, ProgressRangeProps, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$P as Rating, RatingCircleWrapper, _default$15 as ReSchedule, ReScheduleSuccess, Refresher, ResponseFileType, ReviewCard, _default$x as ReviewCardFeature, ReviewListFeature, ReviewStatistics, ReviewSubscriptionSessionFeature, ReviewSubscriptionSessionFeatureProps, ReviewSwiperSection, ReviewTrialSessionFeature, ReviewTrialSessionFeatureProps, ReviewsCardFeatureSkeleton, ReviewsSummary, RoundButton, RowItemType, RowSelect, RowSelectProps, Rule, SIZES, SOON_SESSION_TIME_SECONDS, Schedule, ScheduleDate, ScheduleSlot, _default$v as ScreenDrumPickerFormFeature, ScreenInput, _default$w as ScreenInputFormFeature, ScreenInputUpdateFeature, SectionHeading, Segment, SegmentColor, SegmentType, SelectItemType, _default$t as SelectWithSearchFormFeature, Session, SessionDetailWidget, SessionPaymentsWidget, SessionPreviewFeature, SessionReview$1 as SessionReview, SessionTime, SessionVariant, SessionsWidget as SessionsListWidget, SessionsWidgetProps, Sex, ShareModalFeature, ShortCurrencySignByLocale, ShortTranscriptionCurrencySignByLocale, _default$G as ShowMore, _default$1a as SignUpSessionButton, _default$17 as SignUpSessionModal, SizeValues, Skeleton, _default$V as Skeleton_v2, _default$F as SlotsGrid, _default$E as SlotsGridItem, SolidInput, Sort, SortDirection, SortKey, SortValue, Specialist, _default$11 as SpecialistAbout, SpecialistAreaList as SpecialistAreaListFeature, SpecialistCard, SpecialistCardListWidget, _default$6 as SpecialistCardWidget, SpecialistCardSkeleton as SpecialistCardWithScheduleSkeleton, _default as SpecialistCardWithScheduleWidget, SpecialistConsultation, SpecialistConsultationPayment, _default$3 as SpecialistDetailWidget, SpecialistDetailWidgetSkeleton, SpecialistDetailWithTabsSkeleton, _default$1 as SpecialistDetailWithTabsWidget, SpecialistEducation, SpecialistEducationsFeature, SpecialistInfoColumnFeature, SpecialistLangs, _default$8 as SpecialistMatch, SpecialistOrderType, SpecialistPaymentCardProps, _default$C as SpecialistPaymentCommonCardFeature, SpecialistPaymentCommonCardSkeleton, SpecialistPaymentConsultationDetailsType, _default$B as SpecialistPaymentConsultationsFeature, SpecialistPaymentConsultationsProps, SpecialistPaymentCurrencyProps, _default$4 as SpecialistPaymentResumeWidget, SpecialistPaymentResumeWidgetType, SpecialistPaymentTabs, _default$5 as SpecialistPaymentWidget, SpecialistPaymentWidgetType, SpecialistPreviewFeature, SpecialistPreviewListWidget, _default$2 as SpecialistPreviewWidget, SpecialistProfileNotFound, SpecialistReview$1 as SpecialistReview, SpecialistScheduleFeature, SpecialistScheduleProvider, SpecialistScheduleProviderRef, ScheduleSkeleton as SpecialistScheduleSkeletonFeature, SpecialistShortInfoItemFeature as SpecialistShortInfoItem, _default$7 as SpecialistStatistic, Spinner, Spinner_v2, StarRating, StatisticsScroll, StripeSupportedCurrency, Subscription, SubscriptionStatuses, SuccessScreen, SuperSpecialist, SupportedCurrency, SupportedLangs, SwitchDeviceCard, TabItem, Tabs$1 as Tabs, TabsFeature, TabsFeatureSkeleton, TabsToolbarFeature, Tag, Tariff, TariffFeature, _default$u as TextAreaFormFeature, _default$h as TextInput, _default$i as TextWithClampFeature, _default$1e as Textarea, _default$Q as Textarea_v2, ThemeProvider, ThemeProviderProps, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, TranslationMock, TranslationType, TreeNode, _default$Z as Typography, TypographyVariantsEnum, UpdateContractWidget, UpdatesCard, UserInfoModal, UserType, VariantType, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$J as Video, _default$1c as VideoCallInfo, _default$1d as VideoPlayer, VideoProvider, _default$13 as WorkDirections, appThemes, canManageSession, currentUser, decOfNum, formatByDigits, getCountryKeyByName, getDateLocale, getFilterCount, getFiltersQuery, getFiltersValues, getGMTOffset, getMappedFilterValue, getMockSchedule, getMonthNameInGenitive, getProgressForBreakPoint, getSessionTimeLabel, getSessionVariant, getSessionsByDay, getSessionsByMonth, getSessionsByYear, getSignAgreementsTabs, getSortFromKey, getSortKey, getStartSessionDate, getStartSessionTimestamp, isClientCan, isFilterSet, isNewSpecialist, isSpecialistActive, isSpecialistBlocked, isSpecialistPublic, isSuperSpecialist, listReviews, mergeRefs, mockSession, mockSessions, mockT, newShade, priceNormalize, replaceMarkdownWithReactElements, roundToPrecision, specialist, splitSessions, toast, useAutoFocus, useBreakPointsPosition, useCircleRatingRenderData, useDeepCompareEffect, useDeepUpdateEffect, useDelayMount, useDomRef, useElementWidth, useEvent, useIsKeyBoardShown, useRangeIndex, useRatingCircleBreakPoints, useRatingCircleContentValue, useRatingCircleLegend, useRatingContext, useSpecialistScheduleContext, useStopPropagationEvent, useToastContext, useUpdateEffect, useVideoContext, withSpecialistScheduleContext };
4618
+ export { AcceptAgreementFeature, Action, _default$Y as AlertCard, AllowFilterValueType, AppFooter, _default$X as AppFooter_v2, AppHeader, AppHeaderPage as AppHeaderPageFeature, AppHeader_v2, AppNotSupportedFeature, AuthContext, AuthProvider, AutoComplete, Avatar, AvatarProps$1 as AvatarProps, _default$W as Avatar_v2, AvatarProps as Avatar_v2Props, BREAKPOINT_ICON_SIZE, _default$S as Badge, _default$$ as BookingScheduleTime, _default$_ as BookingSpecialistInfo, BreakPointPositionProps, BreakPointPositionResult, Button, Button_v2, CAN_MANAGE_SESSION_TIME_HOURS, COUNTRIES_MAPPER, CSSVarStyles, Calendar, _default$z as CalendarPickerFeature, CancelSession, CardModal, ChangeLanguageModal, _default$1i as ChatListItem, _default$1g as ChatListSkeleton, _default$1h as ChatMessage, ChatMessageSkeleton, CheckBoxItem, CheckBoxListFeature, CheckBoxSectionListFeature, _default$d as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, CircleRatingComponentProps, CircleRatingContent, CircleRatingContext, CircleRatingContextData, CircleRatingContextProps, CircleRatingDataProps, CircleRatingDataResult, CircleRatingLegendProps, CircleRatingProvider, CircleRatingRange, CircleRatingSize, ClientCanAction, ClientCanParams, ClientSpecialistContractStatusEnum, CollapsableText, ConditionRulesType, Consultation, _default$1b as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$18 as ConsultationModal, _default$D as ConsultationPricingFeature, _default$16 as ConsultationSpecialistCard, ConsultationsListSkeleton, Container, Container_v2, ContentRendererProps, ContractDataFeature, ContractStatusEnum, ContentTree as ContractTreeFeature, CountdownTimerFeature, Counter, CounterProps, CountryOfOriginModal, CurrencyLocaleMapper, CurrencySignByLocale, CustomButton, _default$e as CustomCheckbox, CustomRadioButton, _default$f as CustomSelect, _default$g as CustomTextarea, DatePicker, _default$14 as DaySlider, Divider, DividerProps, DropdownFeature, DrumListPicker, DynamicCommissionValue, _default$10 as EducationCard, _default$1f as EmptyChatList, EmptyChatMessages, EmptyChatModalFeature, _default$19 as EmptyConsultations, EmptyList, EmptySpecialistListFeature, ErrorCardFeature, FilterFeatureProps, FilterItem, FilterItemBoolean, FilterItemChips, FilterItemRange, FilterItemSelect, FilterOption, FilterOptionValue, FilterValue, FiltersWidget, FiltersWidgetProps, FirstChatMessageModalFeature, _default$a as Flag, FlagTypes, _default$U as Flag_v2, FrequentlyAskedQuestions, GoogleCalendarModalFeature, HeaderWithRedirect, ISpecialistReview, IconAddModerator, IconAlignHorizontalTextCenter, IconAlignHorizontalTextLeft, IconAlignHorizontalTextRight, IconAmEx, IconAppStoreRating, IconApple, IconApplePay, IconArrowDown, IconArrowLeft, IconArrowRange, IconArrowRight, IconArrowTopRight, IconAttachMoney, IconBeachAccess, IconBookmark, IconBookmarkOutlined, _default$O as IconButton, IconCalendar, IconCalendarFilled, IconCalendarMonth, IconCalendarNew, IconCalendarWithDot, IconCancel, IconCancelBold, IconCancelRounded, IconCapFilled, IconChart, IconChat, IconChat3d, IconChat3dSmaller, IconChatFilled, IconChatOutline, IconCheck, IconCheckCircle, IconCheckSmall, IconCheckboxChecked, IconCheckboxCheckedBold, IconCheckboxThinUnchecked, IconCheckboxUnchecked, IconClient, IconClientFilled, IconClose, IconCompare, IconContract, IconCopy, IconCreditCard, IconDelete, IconDivider, IconDocument, IconDot, IconDoubleArrow, IconEcgHeart, IconEdit, IconEditCalendar, IconEmptyList, IconEventBusy, IconExperience, IconEye, IconEyeOff, IconFilters, IconGallery, IconGift, IconGiftNew, IconGlobe, IconGoogle, IconGooglePay, IconHeart, IconHome, IconIdCard, IconInfo, IconInvisible, IconInvoice, IconLanguage, IconLeaderboard, IconLeftArrow, IconLetter, IconLink, IconLock, IconLogout, IconMaestro, IconManageAccounts, IconMastercard, IconMatching, IconMindly, IconMindlyColored, IconMindlyMini, IconMinus, IconMooving, IconMoreVertical, IconMute, IconNotificationMuted, IconPaid, IconPaper, IconPaperPencil, IconPause, IconPaywall, IconPersonAlert, IconPlay, IconPlus, IconPoweredByStripe, IconProfile, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconPromocode, IconProps$H as IconProps, IconQueryStats, IconQuestion, IconRadioButtonChecked, IconRadioPartial, IconReceipt, IconReceiptLong, IconRenew, IconResume, IconReviewSessionSubscription, IconReviewSessionTrial, IconSchedule, IconSchema, IconSearch, IconSecure, IconSend, IconSettings, IconShare, IconSort, IconSpecialistsEnded, IconSpinner, IconStar, IconStarFilled, IconStudyHat, IconStylus, IconSuccess, IconSwitch, IconText, IconTime, IconTimeAdd, IconUnmute, IconUser, IconUserNotFound, IconVerifiedUser, IconVisa, IconVisible, IconWarning, ImageInput, ImageWithFallback, Input, InputSearch, _default$K as Item, _default$R as ItemCard, LabelArrowRedirect, _default$1k as LetterAvatar, _default$b as LineFileInput, ListBox, ListBoxItem, ListBoxItemProps, ListBoxProps, ListBoxSelectionType, ListItemType, _default$H as ListItemWithColumns, _default$L as ListItems, ListOption, ListOptionsProps, ListSelect, ListSelectProps, ListSimple, _default$M as Loading, LocaleCurrencyMapper, MapStatusContractToUIStatus, _default$s as MarkdownContainerFeature, _default$I as MatchProgress, _default$1j as MediaPlayer, MenuFeature, MindlyReview, MindlyReviewFeature, ModalSheet, NEAR_SESSION_TIME_SECONDS, NewSpecialist, NoInternetConnection, NotSupportModal, ONBOARDING_THEME_DEFAULT_COLORS, OnBoardingBaseScreenType, OnBoardingChartScreenPreviewFeature, OnBoardingChartScreenType, OnBoardingCompareScreenPreviewFeature, OnBoardingCompareScreenType, _default$k as OnBoardingConfirmScreenPreviewFeature, OnBoardingConfirmScreenType, _default$l as OnBoardingEmailScreenPreviewFeature, OnBoardingEmailScreenType, OnBoardingFlowType, OnBoardingGoalSelectScreenType, _default$j as OnBoardingGoalSelectionScreenPreviewFeature, OnBoardingGraphScreenPreviewFeature, OnBoardingGraphScreenType, _default$q as OnBoardingInfoScreenPreviewFeature, OnBoardingInfoScreenType, OnBoardingLoaderScreenPreviewFeature, OnBoardingLoaderScreenType, OnBoardingMultiSelectScreenType, _default$p as OnBoardingMultiSelectionScreenPreviewFeature, OnBoardingPaywallScreenPreviewFeature, OnBoardingPaywallScreenType, _default$n as OnBoardingProgressFeature, OnBoardingProgressSettingsScreenType, _default$m as OnBoardingReviewsScreenPreviewFeature, OnBoardingReviewsScreenType, OnBoardingScreenAlertType, OnBoardingScreenButtonType, OnBoardingScreenDescriptionType, OnBoardingScreenEmailType, OnBoardingScreenErrorsType, OnBoardingScreenOptionType, OnBoardingScreenOptionWithScaleType, OnBoardingScreenOptions, OnBoardingScreenPasswordType, OnBoardingScreenPrivacyType, OnBoardingScreenProgressType, OnBoardingScreenSkipButtonType, OnBoardingScreenStyleOptions, OnBoardingScreenSubgoalButtonType, OnBoardingScreenTranslationsType, OnBoardingScreensType, OnBoardingSingleImageSelectScreenType, OnBoardingSingleRoundImageSelectScreenType, OnBoardingSingleScaleSelectScreenType, OnBoardingSingleSelectScreenType, _default$o as OnBoardingSingleSelectionScreenPreviewFeature, _default$r as OnBoardingStartScreenPreviewFeature, OnBoardingStartScreenType, OnBoardingThemeV2Type, OnboardingProgressTemplate, OnboardingVariant, OutdatedPersonalDataFeature, PasswordInput, PaymentBadgeType, _default$y as PaymentCalendarFeature, PaymentCalendarFeatureProps, _default$A as PaymentSessionsList, _default$T as Picture, PoweredByStripeFeature, _default$9 as ProfileInformation, _default$12 as ProfileView, _default$c as ProgressBar, ProgressBarDashed, _default$N as ProgressBar_v2, ProgressRangeProps, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$P as Rating, RatingCircleWrapper, _default$15 as ReSchedule, ReScheduleSuccess, Refresher, ResponseFileType, ReviewCard, _default$x as ReviewCardFeature, ReviewListFeature, ReviewStatistics, ReviewSubscriptionSessionFeature, ReviewSubscriptionSessionFeatureProps, ReviewSwiperSection, ReviewTrialSessionFeature, ReviewTrialSessionFeatureProps, ReviewsCardFeatureSkeleton, ReviewsSummary, RoundButton, RowItemType, RowSelect, RowSelectProps, Rule, SIZES, SOON_SESSION_TIME_SECONDS, Schedule, ScheduleDate, ScheduleSlot, _default$v as ScreenDrumPickerFormFeature, ScreenInput, _default$w as ScreenInputFormFeature, ScreenInputUpdateFeature, SectionHeading, Segment, SegmentColor, SegmentType, SelectItemType, _default$t as SelectWithSearchFormFeature, Session, SessionDetailWidget, SessionPaymentsWidget, SessionPreviewFeature, SessionReview$1 as SessionReview, SessionTime, SessionVariant, SessionsWidget as SessionsListWidget, SessionsWidgetProps, Sex, ShareModalFeature, ShortCurrencySignByLocale, ShortTranscriptionCurrencySignByLocale, _default$G as ShowMore, _default$1a as SignUpSessionButton, _default$17 as SignUpSessionModal, SizeValues, Skeleton, _default$V as Skeleton_v2, _default$F as SlotsGrid, _default$E as SlotsGridItem, SolidInput, Sort, SortDirection, SortKey, SortValue, Specialist, _default$11 as SpecialistAbout, SpecialistAreaList as SpecialistAreaListFeature, SpecialistCard, SpecialistCardListWidget, _default$6 as SpecialistCardWidget, SpecialistCardSkeleton as SpecialistCardWithScheduleSkeleton, _default as SpecialistCardWithScheduleWidget, SpecialistConsultation, SpecialistConsultationPayment, _default$3 as SpecialistDetailWidget, SpecialistDetailWidgetSkeleton, SpecialistDetailWithTabsSkeleton, _default$1 as SpecialistDetailWithTabsWidget, SpecialistEducation, SpecialistEducationsFeature, SpecialistInfoColumnFeature, SpecialistLangs, _default$8 as SpecialistMatch, SpecialistOrderType, SpecialistPaymentCardProps, _default$C as SpecialistPaymentCommonCardFeature, SpecialistPaymentCommonCardSkeleton, SpecialistPaymentConsultationDetailsType, _default$B as SpecialistPaymentConsultationsFeature, SpecialistPaymentConsultationsProps, SpecialistPaymentCurrencyProps, _default$4 as SpecialistPaymentResumeWidget, SpecialistPaymentResumeWidgetType, SpecialistPaymentTabs, _default$5 as SpecialistPaymentWidget, SpecialistPaymentWidgetType, SpecialistPreviewFeature, SpecialistPreviewListWidget, _default$2 as SpecialistPreviewWidget, SpecialistProfileNotFound, SpecialistReview$1 as SpecialistReview, SpecialistScheduleFeature, SpecialistScheduleProvider, SpecialistScheduleProviderRef, ScheduleSkeleton as SpecialistScheduleSkeletonFeature, SpecialistShortInfoItemFeature as SpecialistShortInfoItem, _default$7 as SpecialistStatistic, Spinner, Spinner_v2, StarRating, StatisticsScroll, StripeSupportedCurrency, Subscription, SubscriptionStatuses, SuccessScreen, SuperSpecialist, SupportedCurrency, SupportedLangs, SwitchDeviceCard, TabItem, Tabs$1 as Tabs, TabsFeature, TabsFeatureSkeleton, TabsToolbarFeature, Tag, Tariff, TariffFeature, _default$u as TextAreaFormFeature, _default$h as TextInput, _default$i as TextWithClampFeature, _default$1e as Textarea, _default$Q as Textarea_v2, ThemeProvider, ThemeProviderProps, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, TranslationMock, TranslationType, TreeNode, _default$Z as Typography, TypographyVariantsEnum, UpdateContractWidget, UpdatesCard, UserInfoModal, UserType, VariantType, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$J as Video, _default$1c as VideoCallInfo, _default$1d as VideoPlayer, VideoProvider, _default$13 as WorkDirections, appThemes, canManageSession, currentUser, decOfNum, formatByDigits, getCountryKeyByName, getDateLocale, getFilterCount, getFiltersQuery, getFiltersValues, getGMTOffset, getMappedFilterValue, getMockSchedule, getMonthNameInGenitive, getProgressForBreakPoint, getSessionTimeLabel, getSessionVariant, getSessionsByDay, getSessionsByMonth, getSessionsByYear, getSignAgreementsTabs, getSortFromKey, getSortKey, getStartSessionDate, getStartSessionTimestamp, globalAuthState, isClientCan, isFilterSet, isNewSpecialist, isSpecialistActive, isSpecialistBlocked, isSpecialistPublic, isSuperSpecialist, listReviews, mergeRefs, mockSession, mockSessions, mockT, newShade, priceNormalize, replaceMarkdownWithReactElements, roundToPrecision, specialist, splitSessions, toast, useAutoFocus, useBreakPointsPosition, useCircleRatingRenderData, useDeepCompareEffect, useDeepUpdateEffect, useDelayMount, useDomRef, useElementWidth, useEvent, useIsKeyBoardShown, useRangeIndex, useRatingCircleBreakPoints, useRatingCircleContentValue, useRatingCircleLegend, useRatingContext, useSpecialistScheduleContext, useStopPropagationEvent, useToastContext, useUpdateEffect, useVideoContext, withSpecialistScheduleContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "6.6.0",
3
+ "version": "6.6.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -16,6 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@babel/polyfill": "7.12.1",
19
+ "@capacitor-firebase/authentication": "7.3.0",
20
+ "@capacitor/app": "7.0.1",
19
21
  "@capacitor/clipboard": "7.0.1",
20
22
  "@capacitor/haptics": "7.0.1",
21
23
  "@capacitor/keyboard": "7.0.1",