@insforge/nextjs 0.7.10 → 0.8.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.
package/dist/index.d.mts CHANGED
@@ -1,280 +1,19 @@
1
+ export * from '@insforge/react/types';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ReactNode, InputHTMLAttributes } from 'react';
4
- import { UserSchema, OAuthProvidersSchema, GetPublicEmailAuthConfigResponse } from '@insforge/shared-schemas';
3
+ import { ReactNode } from 'react';
4
+ import { useInsforge as useInsforge$1 } from '@insforge/react';
5
5
  import { ClassValue } from 'clsx';
6
+ export * from '@insforge/react/hooks';
7
+ export * from '@insforge/react/components';
6
8
 
7
- type OAuthProvider = OAuthProvidersSchema;
8
- interface InsforgeUser {
9
- id: string;
10
- email: string;
11
- name?: string | null;
12
- avatarUrl?: string | null;
13
- }
14
- interface SignInProps {
15
- afterSignInUrl?: string;
16
- appearance?: {
17
- containerClassName?: string;
18
- formClassName?: string;
19
- buttonClassName?: string;
20
- };
21
- title?: string;
22
- subtitle?: string;
23
- emailLabel?: string;
24
- emailPlaceholder?: string;
25
- passwordLabel?: string;
26
- passwordPlaceholder?: string;
27
- forgotPasswordText?: string;
28
- submitButtonText?: string;
29
- loadingButtonText?: string;
30
- signUpText?: string;
31
- signUpLinkText?: string;
32
- signUpUrl?: string;
33
- dividerText?: string;
34
- onSuccess?: (user: UserSchema) => void;
35
- onError?: (error: Error) => void;
36
- }
37
- interface SignUpProps {
38
- afterSignUpUrl?: string;
39
- appearance?: {
40
- containerClassName?: string;
41
- formClassName?: string;
42
- buttonClassName?: string;
43
- };
44
- title?: string;
45
- subtitle?: string;
46
- emailLabel?: string;
47
- emailPlaceholder?: string;
48
- passwordLabel?: string;
49
- passwordPlaceholder?: string;
50
- submitButtonText?: string;
51
- loadingButtonText?: string;
52
- signInText?: string;
53
- signInLinkText?: string;
54
- signInUrl?: string;
55
- dividerText?: string;
56
- onSuccess?: (user: UserSchema) => void;
57
- onError?: (error: Error) => void;
58
- }
59
- interface UserButtonProps {
60
- afterSignOutUrl?: string;
61
- mode?: 'detailed' | 'simple';
62
- appearance?: {
63
- containerClassName?: string;
64
- buttonClassName?: string;
65
- dropdownClassName?: string;
66
- nameClassName?: string;
67
- emailClassName?: string;
68
- };
69
- }
70
- interface ProtectProps {
71
- children: ReactNode;
72
- fallback?: ReactNode;
73
- redirectTo?: string;
74
- condition?: (user: InsforgeUser) => boolean;
75
- }
76
- interface ConditionalProps {
77
- children: ReactNode;
78
- }
79
- interface OAuthProviderConfig {
80
- name: string;
81
- svg: React.ReactElement;
82
- className: string;
83
- }
84
-
85
- interface InsforgeContextValue {
86
- user: InsforgeUser | null;
87
- isLoaded: boolean;
88
- isSignedIn: boolean;
89
- setUser: (user: InsforgeUser | null) => void;
90
- signIn: (email: string, password: string) => Promise<void>;
91
- signUp: (email: string, password: string) => Promise<void>;
92
- signOut: () => Promise<void>;
93
- updateUser: (data: Partial<InsforgeUser>) => Promise<void>;
94
- reloadAuth: () => Promise<{
95
- success: boolean;
96
- error?: string;
97
- }>;
98
- baseUrl: string;
99
- }
100
9
  interface InsforgeProviderProps {
101
10
  children: ReactNode;
102
11
  baseUrl: string;
103
- onAuthChange?: (user: InsforgeUser | null) => void;
12
+ onAuthChange?: (user: any) => void;
104
13
  }
105
14
  declare function InsforgeProvider({ children, baseUrl, onAuthChange, }: InsforgeProviderProps): react_jsx_runtime.JSX.Element;
106
- declare function useInsforge(): InsforgeContextValue;
107
-
108
- declare function useAuth(): {
109
- signIn: (email: string, password: string) => Promise<void>;
110
- signUp: (email: string, password: string) => Promise<void>;
111
- signOut: () => Promise<void>;
112
- isLoaded: boolean;
113
- isSignedIn: boolean;
114
- };
115
-
116
- declare function useUser(): {
117
- user: InsforgeUser | null;
118
- isLoaded: boolean;
119
- updateUser: (data: Partial<InsforgeUser>) => Promise<void>;
120
- setUser: (user: InsforgeUser | null) => void;
121
- };
122
-
123
- declare function SignIn({ afterSignInUrl, appearance, title, subtitle, emailLabel, emailPlaceholder, passwordLabel, passwordPlaceholder, submitButtonText, loadingButtonText, signUpText, signUpLinkText, signUpUrl, dividerText, onSuccess, onError, }: SignInProps): react_jsx_runtime.JSX.Element;
124
-
125
- declare function SignUp({ afterSignUpUrl, appearance, title, subtitle, emailLabel, emailPlaceholder, passwordLabel, passwordPlaceholder, submitButtonText, loadingButtonText, signInText, signInLinkText, signInUrl, dividerText, onSuccess, onError, }: SignUpProps): react_jsx_runtime.JSX.Element;
126
-
127
- declare function UserButton({ afterSignOutUrl, mode, appearance, }: UserButtonProps): react_jsx_runtime.JSX.Element | null;
128
-
129
- declare function SignedIn({ children }: ConditionalProps): react_jsx_runtime.JSX.Element | null;
130
-
131
- declare function SignedOut({ children }: ConditionalProps): react_jsx_runtime.JSX.Element | null;
132
-
133
- declare function Protect({ children, fallback, redirectTo, condition, }: ProtectProps): string | number | bigint | true | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
134
-
135
- interface InsforgeCallbackProps {
136
- redirectTo?: string;
137
- onSuccess?: () => void;
138
- onError?: (error: string) => void;
139
- loadingComponent?: ReactNode;
140
- }
141
- declare function InsforgeCallback({ loadingComponent, ...props }: InsforgeCallbackProps): react_jsx_runtime.JSX.Element;
142
-
143
- interface AuthContainerProps {
144
- children: ReactNode;
145
- appearance?: {
146
- containerClassName?: string;
147
- cardClassName?: string;
148
- };
149
- }
150
- declare function AuthContainer({ children, appearance }: AuthContainerProps): react_jsx_runtime.JSX.Element;
151
-
152
- interface AuthHeaderProps {
153
- title: string;
154
- subtitle?: string;
155
- appearance?: {
156
- containerClassName?: string;
157
- titleClassName?: string;
158
- subtitleClassName?: string;
159
- };
160
- }
161
- declare function AuthHeader({ title, subtitle, appearance }: AuthHeaderProps): react_jsx_runtime.JSX.Element;
162
-
163
- interface AuthErrorBannerProps {
164
- error: string;
165
- className?: string;
166
- }
167
- declare function AuthErrorBanner({ error, className }: AuthErrorBannerProps): react_jsx_runtime.JSX.Element | null;
168
-
169
- interface AuthFormFieldProps extends InputHTMLAttributes<HTMLInputElement> {
170
- label: string;
171
- id: string;
172
- appearance?: {
173
- containerClassName?: string;
174
- labelClassName?: string;
175
- inputClassName?: string;
176
- };
177
- }
178
- declare function AuthFormField({ label, id, appearance, ...props }: AuthFormFieldProps): react_jsx_runtime.JSX.Element;
179
-
180
- interface AuthPasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
181
- label: string;
182
- id: string;
183
- showStrengthIndicator?: boolean;
184
- emailAuthConfig: GetPublicEmailAuthConfigResponse;
185
- forgotPasswordLink?: {
186
- href: string;
187
- text?: string;
188
- };
189
- appearance?: {
190
- containerClassName?: string;
191
- labelClassName?: string;
192
- inputClassName?: string;
193
- };
194
- }
195
- declare function AuthPasswordField({ label, id, showStrengthIndicator, emailAuthConfig, forgotPasswordLink, value, appearance, onFocus, ...props }: AuthPasswordFieldProps): react_jsx_runtime.JSX.Element;
196
-
197
- interface AuthSubmitButtonProps {
198
- children: ReactNode;
199
- isLoading?: boolean;
200
- confirmed?: boolean;
201
- disabled?: boolean;
202
- className?: string;
203
- }
204
- declare function AuthSubmitButton({ children, isLoading, confirmed, disabled, className, }: AuthSubmitButtonProps): react_jsx_runtime.JSX.Element;
205
-
206
- interface AuthDividerProps {
207
- text?: string;
208
- className?: string;
209
- }
210
- declare function AuthDivider({ text, className }: AuthDividerProps): react_jsx_runtime.JSX.Element;
211
-
212
- interface AuthLinkProps {
213
- text: string;
214
- linkText: string;
215
- href: string;
216
- appearance?: {
217
- containerClassName?: string;
218
- linkClassName?: string;
219
- };
220
- }
221
- declare function AuthLink({ text, linkText, href, appearance }: AuthLinkProps): react_jsx_runtime.JSX.Element;
222
-
223
- interface AuthOAuthProvidersProps {
224
- providers: OAuthProvider[];
225
- onClick: (provider: OAuthProvider) => void;
226
- disabled?: boolean;
227
- loading: OAuthProvider | null;
228
- appearance?: {
229
- containerClassName?: string;
230
- buttonClassName?: string;
231
- };
232
- }
233
- declare function AuthOAuthProviders({ providers, onClick, disabled, loading, appearance, }: AuthOAuthProvidersProps): react_jsx_runtime.JSX.Element | null;
234
-
235
- declare function AuthBranding(): react_jsx_runtime.JSX.Element;
236
-
237
- type DisplayMode = 'full' | 'short' | 'icon';
238
- interface AuthOAuthButtonProps {
239
- provider: OAuthProvider;
240
- onClick: (provider: OAuthProvider) => void;
241
- disabled?: boolean;
242
- loading?: boolean;
243
- displayMode?: DisplayMode;
244
- style?: React.CSSProperties;
245
- className?: string;
246
- }
247
- declare function AuthOAuthButton({ provider, onClick, disabled, loading, displayMode, style, className }: AuthOAuthButtonProps): react_jsx_runtime.JSX.Element | null;
248
-
249
- interface AuthPasswordStrengthIndicatorProps {
250
- password: string;
251
- config: GetPublicEmailAuthConfigResponse;
252
- appearance?: {
253
- containerClassName?: string;
254
- requirementClassName?: string;
255
- };
256
- }
257
- declare function AuthPasswordStrengthIndicator({ password, config, appearance, }: AuthPasswordStrengthIndicatorProps): react_jsx_runtime.JSX.Element;
258
- declare function validatePasswordStrength(password: string, config: GetPublicEmailAuthConfigResponse): boolean;
259
-
260
- interface AuthVerificationCodeInputProps {
261
- length?: number;
262
- value: string;
263
- email: string;
264
- onChange: (value: string) => void;
265
- disabled?: boolean;
266
- appearance?: {
267
- containerClassName?: string;
268
- inputClassName?: string;
269
- };
270
- }
271
- declare function AuthVerificationCodeInput({ length, value, email, onChange, disabled, appearance, }: AuthVerificationCodeInputProps): react_jsx_runtime.JSX.Element;
272
-
273
- declare const OAUTH_PROVIDER_CONFIG: Record<OAuthProvider, OAuthProviderConfig>;
274
- declare function getProviderConfig(provider: OAuthProvider): OAuthProviderConfig | null;
275
- declare function getProviderName(provider: OAuthProvider): string;
276
- declare function isProviderSupported(provider: string): provider is OAuthProvider;
15
+ declare const useInsforge: typeof useInsforge$1;
277
16
 
278
17
  declare function cn(...inputs: ClassValue[]): string;
279
18
 
280
- export { AuthBranding, AuthContainer, AuthDivider, AuthErrorBanner, AuthFormField, AuthHeader, AuthLink, AuthOAuthButton, AuthOAuthProviders, AuthPasswordField, AuthPasswordStrengthIndicator, AuthSubmitButton, AuthVerificationCodeInput, type ConditionalProps, InsforgeCallback, InsforgeProvider, type InsforgeUser, OAUTH_PROVIDER_CONFIG, type OAuthProviderConfig, Protect, type ProtectProps, SignIn, type SignInProps, SignUp, type SignUpProps, SignedIn, SignedOut, UserButton, type UserButtonProps, cn, getProviderConfig, getProviderName, isProviderSupported, useAuth, useInsforge, useUser, validatePasswordStrength };
19
+ export { InsforgeProvider, cn, useInsforge };
package/dist/index.d.ts CHANGED
@@ -1,280 +1,19 @@
1
+ export * from '@insforge/react/types';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ReactNode, InputHTMLAttributes } from 'react';
4
- import { UserSchema, OAuthProvidersSchema, GetPublicEmailAuthConfigResponse } from '@insforge/shared-schemas';
3
+ import { ReactNode } from 'react';
4
+ import { useInsforge as useInsforge$1 } from '@insforge/react';
5
5
  import { ClassValue } from 'clsx';
6
+ export * from '@insforge/react/hooks';
7
+ export * from '@insforge/react/components';
6
8
 
7
- type OAuthProvider = OAuthProvidersSchema;
8
- interface InsforgeUser {
9
- id: string;
10
- email: string;
11
- name?: string | null;
12
- avatarUrl?: string | null;
13
- }
14
- interface SignInProps {
15
- afterSignInUrl?: string;
16
- appearance?: {
17
- containerClassName?: string;
18
- formClassName?: string;
19
- buttonClassName?: string;
20
- };
21
- title?: string;
22
- subtitle?: string;
23
- emailLabel?: string;
24
- emailPlaceholder?: string;
25
- passwordLabel?: string;
26
- passwordPlaceholder?: string;
27
- forgotPasswordText?: string;
28
- submitButtonText?: string;
29
- loadingButtonText?: string;
30
- signUpText?: string;
31
- signUpLinkText?: string;
32
- signUpUrl?: string;
33
- dividerText?: string;
34
- onSuccess?: (user: UserSchema) => void;
35
- onError?: (error: Error) => void;
36
- }
37
- interface SignUpProps {
38
- afterSignUpUrl?: string;
39
- appearance?: {
40
- containerClassName?: string;
41
- formClassName?: string;
42
- buttonClassName?: string;
43
- };
44
- title?: string;
45
- subtitle?: string;
46
- emailLabel?: string;
47
- emailPlaceholder?: string;
48
- passwordLabel?: string;
49
- passwordPlaceholder?: string;
50
- submitButtonText?: string;
51
- loadingButtonText?: string;
52
- signInText?: string;
53
- signInLinkText?: string;
54
- signInUrl?: string;
55
- dividerText?: string;
56
- onSuccess?: (user: UserSchema) => void;
57
- onError?: (error: Error) => void;
58
- }
59
- interface UserButtonProps {
60
- afterSignOutUrl?: string;
61
- mode?: 'detailed' | 'simple';
62
- appearance?: {
63
- containerClassName?: string;
64
- buttonClassName?: string;
65
- dropdownClassName?: string;
66
- nameClassName?: string;
67
- emailClassName?: string;
68
- };
69
- }
70
- interface ProtectProps {
71
- children: ReactNode;
72
- fallback?: ReactNode;
73
- redirectTo?: string;
74
- condition?: (user: InsforgeUser) => boolean;
75
- }
76
- interface ConditionalProps {
77
- children: ReactNode;
78
- }
79
- interface OAuthProviderConfig {
80
- name: string;
81
- svg: React.ReactElement;
82
- className: string;
83
- }
84
-
85
- interface InsforgeContextValue {
86
- user: InsforgeUser | null;
87
- isLoaded: boolean;
88
- isSignedIn: boolean;
89
- setUser: (user: InsforgeUser | null) => void;
90
- signIn: (email: string, password: string) => Promise<void>;
91
- signUp: (email: string, password: string) => Promise<void>;
92
- signOut: () => Promise<void>;
93
- updateUser: (data: Partial<InsforgeUser>) => Promise<void>;
94
- reloadAuth: () => Promise<{
95
- success: boolean;
96
- error?: string;
97
- }>;
98
- baseUrl: string;
99
- }
100
9
  interface InsforgeProviderProps {
101
10
  children: ReactNode;
102
11
  baseUrl: string;
103
- onAuthChange?: (user: InsforgeUser | null) => void;
12
+ onAuthChange?: (user: any) => void;
104
13
  }
105
14
  declare function InsforgeProvider({ children, baseUrl, onAuthChange, }: InsforgeProviderProps): react_jsx_runtime.JSX.Element;
106
- declare function useInsforge(): InsforgeContextValue;
107
-
108
- declare function useAuth(): {
109
- signIn: (email: string, password: string) => Promise<void>;
110
- signUp: (email: string, password: string) => Promise<void>;
111
- signOut: () => Promise<void>;
112
- isLoaded: boolean;
113
- isSignedIn: boolean;
114
- };
115
-
116
- declare function useUser(): {
117
- user: InsforgeUser | null;
118
- isLoaded: boolean;
119
- updateUser: (data: Partial<InsforgeUser>) => Promise<void>;
120
- setUser: (user: InsforgeUser | null) => void;
121
- };
122
-
123
- declare function SignIn({ afterSignInUrl, appearance, title, subtitle, emailLabel, emailPlaceholder, passwordLabel, passwordPlaceholder, submitButtonText, loadingButtonText, signUpText, signUpLinkText, signUpUrl, dividerText, onSuccess, onError, }: SignInProps): react_jsx_runtime.JSX.Element;
124
-
125
- declare function SignUp({ afterSignUpUrl, appearance, title, subtitle, emailLabel, emailPlaceholder, passwordLabel, passwordPlaceholder, submitButtonText, loadingButtonText, signInText, signInLinkText, signInUrl, dividerText, onSuccess, onError, }: SignUpProps): react_jsx_runtime.JSX.Element;
126
-
127
- declare function UserButton({ afterSignOutUrl, mode, appearance, }: UserButtonProps): react_jsx_runtime.JSX.Element | null;
128
-
129
- declare function SignedIn({ children }: ConditionalProps): react_jsx_runtime.JSX.Element | null;
130
-
131
- declare function SignedOut({ children }: ConditionalProps): react_jsx_runtime.JSX.Element | null;
132
-
133
- declare function Protect({ children, fallback, redirectTo, condition, }: ProtectProps): string | number | bigint | true | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
134
-
135
- interface InsforgeCallbackProps {
136
- redirectTo?: string;
137
- onSuccess?: () => void;
138
- onError?: (error: string) => void;
139
- loadingComponent?: ReactNode;
140
- }
141
- declare function InsforgeCallback({ loadingComponent, ...props }: InsforgeCallbackProps): react_jsx_runtime.JSX.Element;
142
-
143
- interface AuthContainerProps {
144
- children: ReactNode;
145
- appearance?: {
146
- containerClassName?: string;
147
- cardClassName?: string;
148
- };
149
- }
150
- declare function AuthContainer({ children, appearance }: AuthContainerProps): react_jsx_runtime.JSX.Element;
151
-
152
- interface AuthHeaderProps {
153
- title: string;
154
- subtitle?: string;
155
- appearance?: {
156
- containerClassName?: string;
157
- titleClassName?: string;
158
- subtitleClassName?: string;
159
- };
160
- }
161
- declare function AuthHeader({ title, subtitle, appearance }: AuthHeaderProps): react_jsx_runtime.JSX.Element;
162
-
163
- interface AuthErrorBannerProps {
164
- error: string;
165
- className?: string;
166
- }
167
- declare function AuthErrorBanner({ error, className }: AuthErrorBannerProps): react_jsx_runtime.JSX.Element | null;
168
-
169
- interface AuthFormFieldProps extends InputHTMLAttributes<HTMLInputElement> {
170
- label: string;
171
- id: string;
172
- appearance?: {
173
- containerClassName?: string;
174
- labelClassName?: string;
175
- inputClassName?: string;
176
- };
177
- }
178
- declare function AuthFormField({ label, id, appearance, ...props }: AuthFormFieldProps): react_jsx_runtime.JSX.Element;
179
-
180
- interface AuthPasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
181
- label: string;
182
- id: string;
183
- showStrengthIndicator?: boolean;
184
- emailAuthConfig: GetPublicEmailAuthConfigResponse;
185
- forgotPasswordLink?: {
186
- href: string;
187
- text?: string;
188
- };
189
- appearance?: {
190
- containerClassName?: string;
191
- labelClassName?: string;
192
- inputClassName?: string;
193
- };
194
- }
195
- declare function AuthPasswordField({ label, id, showStrengthIndicator, emailAuthConfig, forgotPasswordLink, value, appearance, onFocus, ...props }: AuthPasswordFieldProps): react_jsx_runtime.JSX.Element;
196
-
197
- interface AuthSubmitButtonProps {
198
- children: ReactNode;
199
- isLoading?: boolean;
200
- confirmed?: boolean;
201
- disabled?: boolean;
202
- className?: string;
203
- }
204
- declare function AuthSubmitButton({ children, isLoading, confirmed, disabled, className, }: AuthSubmitButtonProps): react_jsx_runtime.JSX.Element;
205
-
206
- interface AuthDividerProps {
207
- text?: string;
208
- className?: string;
209
- }
210
- declare function AuthDivider({ text, className }: AuthDividerProps): react_jsx_runtime.JSX.Element;
211
-
212
- interface AuthLinkProps {
213
- text: string;
214
- linkText: string;
215
- href: string;
216
- appearance?: {
217
- containerClassName?: string;
218
- linkClassName?: string;
219
- };
220
- }
221
- declare function AuthLink({ text, linkText, href, appearance }: AuthLinkProps): react_jsx_runtime.JSX.Element;
222
-
223
- interface AuthOAuthProvidersProps {
224
- providers: OAuthProvider[];
225
- onClick: (provider: OAuthProvider) => void;
226
- disabled?: boolean;
227
- loading: OAuthProvider | null;
228
- appearance?: {
229
- containerClassName?: string;
230
- buttonClassName?: string;
231
- };
232
- }
233
- declare function AuthOAuthProviders({ providers, onClick, disabled, loading, appearance, }: AuthOAuthProvidersProps): react_jsx_runtime.JSX.Element | null;
234
-
235
- declare function AuthBranding(): react_jsx_runtime.JSX.Element;
236
-
237
- type DisplayMode = 'full' | 'short' | 'icon';
238
- interface AuthOAuthButtonProps {
239
- provider: OAuthProvider;
240
- onClick: (provider: OAuthProvider) => void;
241
- disabled?: boolean;
242
- loading?: boolean;
243
- displayMode?: DisplayMode;
244
- style?: React.CSSProperties;
245
- className?: string;
246
- }
247
- declare function AuthOAuthButton({ provider, onClick, disabled, loading, displayMode, style, className }: AuthOAuthButtonProps): react_jsx_runtime.JSX.Element | null;
248
-
249
- interface AuthPasswordStrengthIndicatorProps {
250
- password: string;
251
- config: GetPublicEmailAuthConfigResponse;
252
- appearance?: {
253
- containerClassName?: string;
254
- requirementClassName?: string;
255
- };
256
- }
257
- declare function AuthPasswordStrengthIndicator({ password, config, appearance, }: AuthPasswordStrengthIndicatorProps): react_jsx_runtime.JSX.Element;
258
- declare function validatePasswordStrength(password: string, config: GetPublicEmailAuthConfigResponse): boolean;
259
-
260
- interface AuthVerificationCodeInputProps {
261
- length?: number;
262
- value: string;
263
- email: string;
264
- onChange: (value: string) => void;
265
- disabled?: boolean;
266
- appearance?: {
267
- containerClassName?: string;
268
- inputClassName?: string;
269
- };
270
- }
271
- declare function AuthVerificationCodeInput({ length, value, email, onChange, disabled, appearance, }: AuthVerificationCodeInputProps): react_jsx_runtime.JSX.Element;
272
-
273
- declare const OAUTH_PROVIDER_CONFIG: Record<OAuthProvider, OAuthProviderConfig>;
274
- declare function getProviderConfig(provider: OAuthProvider): OAuthProviderConfig | null;
275
- declare function getProviderName(provider: OAuthProvider): string;
276
- declare function isProviderSupported(provider: string): provider is OAuthProvider;
15
+ declare const useInsforge: typeof useInsforge$1;
277
16
 
278
17
  declare function cn(...inputs: ClassValue[]): string;
279
18
 
280
- export { AuthBranding, AuthContainer, AuthDivider, AuthErrorBanner, AuthFormField, AuthHeader, AuthLink, AuthOAuthButton, AuthOAuthProviders, AuthPasswordField, AuthPasswordStrengthIndicator, AuthSubmitButton, AuthVerificationCodeInput, type ConditionalProps, InsforgeCallback, InsforgeProvider, type InsforgeUser, OAUTH_PROVIDER_CONFIG, type OAuthProviderConfig, Protect, type ProtectProps, SignIn, type SignInProps, SignUp, type SignUpProps, SignedIn, SignedOut, UserButton, type UserButtonProps, cn, getProviderConfig, getProviderName, isProviderSupported, useAuth, useInsforge, useUser, validatePasswordStrength };
19
+ export { InsforgeProvider, cn, useInsforge };