@mindly/ui-components 6.6.0-dev.9 → 6.6.1-dev.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.
@@ -14,8 +14,6 @@
14
14
  * use `waitForReady()` or `getIsReady()` to ensure auth is initialized before making requests
15
15
  *
16
16
  * ## Example:
17
- *
18
- * ```typescript
19
17
  * // In UI library (AuthProvider):
20
18
  * globalAuthState.setReady(); // Called after auth initialization
21
19
  *
@@ -26,7 +24,6 @@
26
24
  * if (globalAuthState.getIsReady()) {
27
25
  * // Proceed with auth-dependent operations
28
26
  * }
29
- * ```
30
27
  *
31
28
  * ## Thread Safety:
32
29
  * This class is designed to be safe for concurrent access. Multiple consumers can wait
@@ -49,10 +46,8 @@ declare class GlobalAuthState {
49
46
  * This method is idempotent - calling it multiple times has no additional effect.
50
47
  *
51
48
  * @example
52
- * ```typescript
53
49
  * // In AuthProvider after successful initialization
54
50
  * globalAuthState.setReady();
55
- * ```
56
51
  */
57
52
  setReady(): void;
58
53
  /**
@@ -67,7 +62,6 @@ declare class GlobalAuthState {
67
62
  * @returns Promise that resolves when authentication is ready
68
63
  *
69
64
  * @example
70
- * ```typescript
71
65
  * // In HTTP interceptor
72
66
  * async function makeAuthenticatedRequest(url: string) {
73
67
  * await globalAuthState.waitForReady();
@@ -79,7 +73,6 @@ declare class GlobalAuthState {
79
73
  * await globalAuthState.waitForReady();
80
74
  * // Now safe to make authenticated API calls
81
75
  * }
82
- * ```
83
76
  */
84
77
  waitForReady(): Promise<void>;
85
78
  /**
@@ -91,7 +84,6 @@ declare class GlobalAuthState {
91
84
  * @returns `true` if authentication is ready, `false` otherwise
92
85
  *
93
86
  * @example
94
- * ```typescript
95
87
  * // In a synchronous context
96
88
  * function canMakeAuthRequest(): boolean {
97
89
  * return globalAuthState.getIsReady();
@@ -105,7 +97,6 @@ declare class GlobalAuthState {
105
97
  * // Show loading state
106
98
  * showAuthLoadingSpinner();
107
99
  * }
108
- * ```
109
100
  */
110
101
  getIsReady(): boolean;
111
102
  /**
@@ -126,7 +117,6 @@ declare class GlobalAuthState {
126
117
  * Import and use this instance throughout your application to coordinate auth-dependent operations.
127
118
  *
128
119
  * @example
129
- * ```typescript
130
120
  * import { globalAuthState } from './globalAuthState';
131
121
  *
132
122
  * // Wait for auth in async contexts
@@ -136,7 +126,6 @@ declare class GlobalAuthState {
136
126
  * if (globalAuthState.getIsReady()) {
137
127
  * // Proceed with authenticated operations
138
128
  * }
139
- * ```
140
129
  */
141
130
  export declare const globalAuthState: GlobalAuthState;
142
131
  export {};