mailsentry-auth 0.2.2 → 0.2.4
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 +56 -7
- package/dist/index.d.ts +56 -7
- package/dist/index.js +328 -93
- package/dist/index.mjs +411 -176
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -66,6 +66,8 @@ interface LoginData {
|
|
|
66
66
|
tokenInfo: {
|
|
67
67
|
domain: string;
|
|
68
68
|
};
|
|
69
|
+
next_action?: NextAction;
|
|
70
|
+
loginRequest?: LoginRequest;
|
|
69
71
|
}
|
|
70
72
|
interface LoginResponse extends BaseResponse {
|
|
71
73
|
data: LoginData;
|
|
@@ -407,6 +409,21 @@ declare class UrlUtils {
|
|
|
407
409
|
static getDashboardUrl(location: Pick<Location, 'protocol' | 'hostname'>): string;
|
|
408
410
|
}
|
|
409
411
|
|
|
412
|
+
declare class EmailProviderUtils {
|
|
413
|
+
/**
|
|
414
|
+
* Detects email provider from email address
|
|
415
|
+
*/
|
|
416
|
+
static detectProvider(email: string): EmailProviderConfig | null;
|
|
417
|
+
/**
|
|
418
|
+
* Generates inbox URL for the given email
|
|
419
|
+
*/
|
|
420
|
+
static getInboxUrl(email: string, subject?: string): string | null;
|
|
421
|
+
/**
|
|
422
|
+
* Gets provider name from email
|
|
423
|
+
*/
|
|
424
|
+
static getProviderName(email: string): string | null;
|
|
425
|
+
}
|
|
426
|
+
|
|
410
427
|
/**
|
|
411
428
|
* Token Manager Implementation
|
|
412
429
|
* Handles token storage and validation using CookieUtils
|
|
@@ -538,6 +555,14 @@ declare class AuthService extends BaseService implements IAuthService {
|
|
|
538
555
|
* Logout user
|
|
539
556
|
*/
|
|
540
557
|
logout(): Promise<void>;
|
|
558
|
+
/**
|
|
559
|
+
* Send forgot password email
|
|
560
|
+
*/
|
|
561
|
+
forgotPassword(email: string): Promise<void>;
|
|
562
|
+
/**
|
|
563
|
+
* Resend verification code
|
|
564
|
+
*/
|
|
565
|
+
resendVerification(email: string): Promise<void>;
|
|
541
566
|
}
|
|
542
567
|
|
|
543
568
|
/**
|
|
@@ -551,6 +576,8 @@ declare const AUTH_ENDPOINTS: {
|
|
|
551
576
|
readonly GET_USER_PROFILE: "/auth/user/profile";
|
|
552
577
|
readonly GET_ME: "/auth/user/me";
|
|
553
578
|
readonly LOGOUT: "/auth/logout";
|
|
579
|
+
readonly FORGOT_PASSWORD: "/auth/user/forget-password";
|
|
580
|
+
readonly RESEND_VERIFICATION: "/auth/user/generate-verification";
|
|
554
581
|
};
|
|
555
582
|
/**
|
|
556
583
|
* Endpoint builder utility
|
|
@@ -564,6 +591,8 @@ declare class EndpointBuilder {
|
|
|
564
591
|
readonly GET_USER_PROFILE: "/auth/user/profile";
|
|
565
592
|
readonly GET_ME: "/auth/user/me";
|
|
566
593
|
readonly LOGOUT: "/auth/logout";
|
|
594
|
+
readonly FORGOT_PASSWORD: "/auth/user/forget-password";
|
|
595
|
+
readonly RESEND_VERIFICATION: "/auth/user/generate-verification";
|
|
567
596
|
};
|
|
568
597
|
}
|
|
569
598
|
|
|
@@ -770,6 +799,11 @@ declare class AuthOrchestrator implements IAuthOrchestrator {
|
|
|
770
799
|
* Handle email check to determine if user exists and what action to take
|
|
771
800
|
*/
|
|
772
801
|
handleEmailCheck(email: string): Promise<AuthActionResult<EmailExistResponse>>;
|
|
802
|
+
/**
|
|
803
|
+
* Handle login strategy based on the result of an email check.
|
|
804
|
+
* This method implements a strategy pattern to decide which login flow to execute.
|
|
805
|
+
*/
|
|
806
|
+
handleLoginStrategy(loginRequest: LoginRequest): Promise<AuthActionResult<LoginData>>;
|
|
773
807
|
/**
|
|
774
808
|
* Handle complete login flow with proper error handling and token management
|
|
775
809
|
* @param credentials - Login credentials (email and password)
|
|
@@ -808,6 +842,14 @@ declare class AuthOrchestrator implements IAuthOrchestrator {
|
|
|
808
842
|
* Get detailed token information
|
|
809
843
|
*/
|
|
810
844
|
getTokenInfo(): Promise<AuthActionResult>;
|
|
845
|
+
/**
|
|
846
|
+
* Handle forgot password flow
|
|
847
|
+
*/
|
|
848
|
+
handleForgotPassword(email: string): Promise<AuthActionResult>;
|
|
849
|
+
/**
|
|
850
|
+
* Handle resend verification code
|
|
851
|
+
*/
|
|
852
|
+
handleResendVerification(email: string): Promise<AuthActionResult>;
|
|
811
853
|
}
|
|
812
854
|
/**
|
|
813
855
|
* Authentication Orchestrator Factory
|
|
@@ -965,11 +1007,8 @@ interface PasswordStepProps extends BaseStepProps {
|
|
|
965
1007
|
interface VerificationStepProps extends BaseStepProps {
|
|
966
1008
|
email: string;
|
|
967
1009
|
onSubmit: (verificationCode: string) => void | Promise<void>;
|
|
968
|
-
|
|
969
|
-
onResendCode?: () => void;
|
|
1010
|
+
onResendCode?: () => void | Promise<void>;
|
|
970
1011
|
codeLength?: number;
|
|
971
|
-
showBackButton?: boolean;
|
|
972
|
-
showResendButton?: boolean;
|
|
973
1012
|
}
|
|
974
1013
|
|
|
975
1014
|
interface ForgotPasswordStepProps extends BaseStepProps {
|
|
@@ -1296,6 +1335,16 @@ interface MiddlewareHandler {
|
|
|
1296
1335
|
handle(context: MiddlewareContext): NextResponse | null | Promise<NextResponse | null>;
|
|
1297
1336
|
}
|
|
1298
1337
|
|
|
1338
|
+
/**
|
|
1339
|
+
* Email Provider Configuration Interface
|
|
1340
|
+
* Defines the structure for email provider configurations
|
|
1341
|
+
*/
|
|
1342
|
+
interface EmailProviderConfig {
|
|
1343
|
+
name: string;
|
|
1344
|
+
pattern: RegExp;
|
|
1345
|
+
getUrl: (email: string, subject?: string) => string;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1299
1348
|
declare const createAuthSteps: (options?: {
|
|
1300
1349
|
authIntent?: NextAction;
|
|
1301
1350
|
nextAction?: NextAction;
|
|
@@ -1304,7 +1353,7 @@ declare const getStepProgressMessage: (step: AuthFlowStep) => string;
|
|
|
1304
1353
|
declare const getAuthPageStepMessage: (step: AuthFlowStep) => string;
|
|
1305
1354
|
|
|
1306
1355
|
declare const EMAIL_SUBMISSION_NAVIGATION: {
|
|
1307
|
-
readonly "login-verification": AuthFlowStep.
|
|
1356
|
+
readonly "login-verification": AuthFlowStep.PASSWORD;
|
|
1308
1357
|
readonly login: AuthFlowStep.PASSWORD;
|
|
1309
1358
|
readonly signup: AuthFlowStep.PASSWORD;
|
|
1310
1359
|
};
|
|
@@ -1322,7 +1371,7 @@ declare const getStepForVerificationSubmission: (success: boolean) => AuthFlowSt
|
|
|
1322
1371
|
|
|
1323
1372
|
declare const getEmailField: (options?: InputProps) => BaseFormField;
|
|
1324
1373
|
declare const getPasswordField: (isLogin: boolean, disabled?: boolean, options?: PasswordProps) => BaseFormField;
|
|
1325
|
-
declare const getVerificationField: (codeLength?: number, options?: InputProps) => BaseFormField;
|
|
1374
|
+
declare const getVerificationField: (codeLength?: number, options?: InputProps, email?: string) => BaseFormField;
|
|
1326
1375
|
declare const getTermsCheckboxField: (options?: CheckboxProps) => BaseFormField;
|
|
1327
1376
|
declare const getForgotPasswordField: (options?: ButtonProps) => BaseFormField;
|
|
1328
1377
|
|
|
@@ -1692,4 +1741,4 @@ declare const useAuthFlowModal: () => {
|
|
|
1692
1741
|
openModal: () => void;
|
|
1693
1742
|
};
|
|
1694
1743
|
|
|
1695
|
-
export { AUTH_ENDPOINTS, AlertDisplay, type AlertDisplayProps, type AnyStepProps, type ApiErrorResponse, type ApiKeyConfig, type AuthActionCallbacks, type AuthActionOptions, type AuthActionResult, type AuthActionResultFailure, type AuthActionResultSuccess, type AuthActionState, type AuthEvent, AuthEventType, AuthFlowContainer, type AuthFlowContainerProps, AuthFlowModal, type AuthFlowModalProps, type AuthFlowProps, AuthFlowStep, AuthFlowVariant, AuthInitializer, AuthOrchestrator, AuthOrchestratorFactory, AuthResultFactory, AuthService, type AuthState, AuthenticatedState, type AuthenticatedStateProps, AuthenticationStatusContext, type BaseComponentProps, BaseErrorHandler, BaseEventBus, BaseForm, type BaseFormField, type BaseFormProps, type BaseResponse, BaseService, type BaseStepProps, BroadcastChannelEventBus, Channel, CookieUtils, CrossTabBehaviorConfig, CrossTabBehaviorHandler, CrossTabDemo, DevelopmentLogger, EMAIL_SUBMISSION_NAVIGATION, type EmailCheckResult, type EmailExistResponse, EmailStep, type EmailStepProps, EndpointBuilder, type EventBus, ExistingUserLoginStrategy, type ForgotPasswordStepProps, FormFields, type FormFieldsProps, FormHeader, type FormHeaderProps, GenericErrorHandler, HttpClient, type HttpClientConfig, type HttpError, HttpMethod, type HttpRequestOptions, type HttpResponse, type IAuthOrchestrator, type IAuthService, type IAuthStatusState, type IErrorHandler, type ILogger, type ILoginFlowStrategy, type ITokenManager, LocalStorageUtils, LoggerFactory, type LoginData, LoginFlowStrategyFactory, type LoginRequest, type LoginResponse, LoginStrategyResolver, LoginVerificationStrategy, MiddlewareConfig, type MiddlewareContext, type MiddlewareHandler, NavigationAction, NetworkErrorHandler, NextAction, PASSWORD_SUBMISSION_NAVIGATION, PageType, PageTypePatterns, PasswordInputWithStrength, type PasswordInputWithStrengthProps, PasswordStep, type PasswordStepProps, type PasswordStrengthRule, ProductionLogger, ProfileStateRenderer, ProfileUIState, type PropsFactory, type PublicUserProfile, type PublicUserProfileResponse, RoleType, SignupFlowStrategy, type Step, type StepComponent, type StepComponentRetriever, type StepConfig, type StepPropsFactoryRegistry, type StepRegistry, type StepRegistryBaseProps, type StepRegistryConfigs, type StepRegistryHandlers, type StepRegistryParams, type StepRegistryState, type StepperActions, type StepperState$1 as StepperState, StrategyResolutionMode, type StrengthResult, type Subscription, TokenManager, UnauthenticatedState, UrlUtils, type UseAuthActionHandler, type UseAuthEventBusProps, type UseFormSubmissionProps, type UseStepRegistryParams, type UseStepperReturn, type UserProfile, type UserProfileResponse, type UserSession, type UserState, UserStorageManager, type UserStoreState, VERIFICATION_SUBMISSION_NAVIGATION, ValidationErrorHandler, VerificationStep, type VerificationStepProps, type VerifyEmailRequest, type VerifyEmailResponse, config, createAuthSteps, createPropsFactoryRegistry, createStepRegistry, getAuthPageStepMessage, getEmailField, getForgotPasswordField, getPasswordField, getStepForEmailSubmission, getStepForPasswordSubmission, getStepForVerificationSubmission, getStepProgressMessage, getTermsCheckboxField, getVerificationField, isPublicUser, isPublicUserEmail, middlewareMatcher, useAuth, useAuthActionHandler, useAuthEventBus, useAuthFlowModal, useAuthInitializer, useIsAuthenticated, useLogout, usePublicUserSession, useRefreshUser, useSharedEventBus, useSignInRequiredParams, useStepRegistry, useStepRenderer, useStepper, useUser, useUserActions, useUserData, useUserError, useUserLoading, useUserProfile, useUserSelectors, useUserStore, userSelectors };
|
|
1744
|
+
export { AUTH_ENDPOINTS, AlertDisplay, type AlertDisplayProps, type AnyStepProps, type ApiErrorResponse, type ApiKeyConfig, type AuthActionCallbacks, type AuthActionOptions, type AuthActionResult, type AuthActionResultFailure, type AuthActionResultSuccess, type AuthActionState, type AuthEvent, AuthEventType, AuthFlowContainer, type AuthFlowContainerProps, AuthFlowModal, type AuthFlowModalProps, type AuthFlowProps, AuthFlowStep, AuthFlowVariant, AuthInitializer, AuthOrchestrator, AuthOrchestratorFactory, AuthResultFactory, AuthService, type AuthState, AuthenticatedState, type AuthenticatedStateProps, AuthenticationStatusContext, type BaseComponentProps, BaseErrorHandler, BaseEventBus, BaseForm, type BaseFormField, type BaseFormProps, type BaseResponse, BaseService, type BaseStepProps, BroadcastChannelEventBus, Channel, CookieUtils, CrossTabBehaviorConfig, CrossTabBehaviorHandler, CrossTabDemo, DevelopmentLogger, EMAIL_SUBMISSION_NAVIGATION, type EmailCheckResult, type EmailExistResponse, type EmailProviderConfig, EmailProviderUtils, EmailStep, type EmailStepProps, EndpointBuilder, type EventBus, ExistingUserLoginStrategy, type ForgotPasswordStepProps, FormFields, type FormFieldsProps, FormHeader, type FormHeaderProps, GenericErrorHandler, HttpClient, type HttpClientConfig, type HttpError, HttpMethod, type HttpRequestOptions, type HttpResponse, type IAuthOrchestrator, type IAuthService, type IAuthStatusState, type IErrorHandler, type ILogger, type ILoginFlowStrategy, type ITokenManager, LocalStorageUtils, LoggerFactory, type LoginData, LoginFlowStrategyFactory, type LoginRequest, type LoginResponse, LoginStrategyResolver, LoginVerificationStrategy, MiddlewareConfig, type MiddlewareContext, type MiddlewareHandler, NavigationAction, NetworkErrorHandler, NextAction, PASSWORD_SUBMISSION_NAVIGATION, PageType, PageTypePatterns, PasswordInputWithStrength, type PasswordInputWithStrengthProps, PasswordStep, type PasswordStepProps, type PasswordStrengthRule, ProductionLogger, ProfileStateRenderer, ProfileUIState, type PropsFactory, type PublicUserProfile, type PublicUserProfileResponse, RoleType, SignupFlowStrategy, type Step, type StepComponent, type StepComponentRetriever, type StepConfig, type StepPropsFactoryRegistry, type StepRegistry, type StepRegistryBaseProps, type StepRegistryConfigs, type StepRegistryHandlers, type StepRegistryParams, type StepRegistryState, type StepperActions, type StepperState$1 as StepperState, StrategyResolutionMode, type StrengthResult, type Subscription, TokenManager, UnauthenticatedState, UrlUtils, type UseAuthActionHandler, type UseAuthEventBusProps, type UseFormSubmissionProps, type UseStepRegistryParams, type UseStepperReturn, type UserProfile, type UserProfileResponse, type UserSession, type UserState, UserStorageManager, type UserStoreState, VERIFICATION_SUBMISSION_NAVIGATION, ValidationErrorHandler, VerificationStep, type VerificationStepProps, type VerifyEmailRequest, type VerifyEmailResponse, config, createAuthSteps, createPropsFactoryRegistry, createStepRegistry, getAuthPageStepMessage, getEmailField, getForgotPasswordField, getPasswordField, getStepForEmailSubmission, getStepForPasswordSubmission, getStepForVerificationSubmission, getStepProgressMessage, getTermsCheckboxField, getVerificationField, isPublicUser, isPublicUserEmail, middlewareMatcher, useAuth, useAuthActionHandler, useAuthEventBus, useAuthFlowModal, useAuthInitializer, useIsAuthenticated, useLogout, usePublicUserSession, useRefreshUser, useSharedEventBus, useSignInRequiredParams, useStepRegistry, useStepRenderer, useStepper, useUser, useUserActions, useUserData, useUserError, useUserLoading, useUserProfile, useUserSelectors, useUserStore, userSelectors };
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ interface LoginData {
|
|
|
66
66
|
tokenInfo: {
|
|
67
67
|
domain: string;
|
|
68
68
|
};
|
|
69
|
+
next_action?: NextAction;
|
|
70
|
+
loginRequest?: LoginRequest;
|
|
69
71
|
}
|
|
70
72
|
interface LoginResponse extends BaseResponse {
|
|
71
73
|
data: LoginData;
|
|
@@ -407,6 +409,21 @@ declare class UrlUtils {
|
|
|
407
409
|
static getDashboardUrl(location: Pick<Location, 'protocol' | 'hostname'>): string;
|
|
408
410
|
}
|
|
409
411
|
|
|
412
|
+
declare class EmailProviderUtils {
|
|
413
|
+
/**
|
|
414
|
+
* Detects email provider from email address
|
|
415
|
+
*/
|
|
416
|
+
static detectProvider(email: string): EmailProviderConfig | null;
|
|
417
|
+
/**
|
|
418
|
+
* Generates inbox URL for the given email
|
|
419
|
+
*/
|
|
420
|
+
static getInboxUrl(email: string, subject?: string): string | null;
|
|
421
|
+
/**
|
|
422
|
+
* Gets provider name from email
|
|
423
|
+
*/
|
|
424
|
+
static getProviderName(email: string): string | null;
|
|
425
|
+
}
|
|
426
|
+
|
|
410
427
|
/**
|
|
411
428
|
* Token Manager Implementation
|
|
412
429
|
* Handles token storage and validation using CookieUtils
|
|
@@ -538,6 +555,14 @@ declare class AuthService extends BaseService implements IAuthService {
|
|
|
538
555
|
* Logout user
|
|
539
556
|
*/
|
|
540
557
|
logout(): Promise<void>;
|
|
558
|
+
/**
|
|
559
|
+
* Send forgot password email
|
|
560
|
+
*/
|
|
561
|
+
forgotPassword(email: string): Promise<void>;
|
|
562
|
+
/**
|
|
563
|
+
* Resend verification code
|
|
564
|
+
*/
|
|
565
|
+
resendVerification(email: string): Promise<void>;
|
|
541
566
|
}
|
|
542
567
|
|
|
543
568
|
/**
|
|
@@ -551,6 +576,8 @@ declare const AUTH_ENDPOINTS: {
|
|
|
551
576
|
readonly GET_USER_PROFILE: "/auth/user/profile";
|
|
552
577
|
readonly GET_ME: "/auth/user/me";
|
|
553
578
|
readonly LOGOUT: "/auth/logout";
|
|
579
|
+
readonly FORGOT_PASSWORD: "/auth/user/forget-password";
|
|
580
|
+
readonly RESEND_VERIFICATION: "/auth/user/generate-verification";
|
|
554
581
|
};
|
|
555
582
|
/**
|
|
556
583
|
* Endpoint builder utility
|
|
@@ -564,6 +591,8 @@ declare class EndpointBuilder {
|
|
|
564
591
|
readonly GET_USER_PROFILE: "/auth/user/profile";
|
|
565
592
|
readonly GET_ME: "/auth/user/me";
|
|
566
593
|
readonly LOGOUT: "/auth/logout";
|
|
594
|
+
readonly FORGOT_PASSWORD: "/auth/user/forget-password";
|
|
595
|
+
readonly RESEND_VERIFICATION: "/auth/user/generate-verification";
|
|
567
596
|
};
|
|
568
597
|
}
|
|
569
598
|
|
|
@@ -770,6 +799,11 @@ declare class AuthOrchestrator implements IAuthOrchestrator {
|
|
|
770
799
|
* Handle email check to determine if user exists and what action to take
|
|
771
800
|
*/
|
|
772
801
|
handleEmailCheck(email: string): Promise<AuthActionResult<EmailExistResponse>>;
|
|
802
|
+
/**
|
|
803
|
+
* Handle login strategy based on the result of an email check.
|
|
804
|
+
* This method implements a strategy pattern to decide which login flow to execute.
|
|
805
|
+
*/
|
|
806
|
+
handleLoginStrategy(loginRequest: LoginRequest): Promise<AuthActionResult<LoginData>>;
|
|
773
807
|
/**
|
|
774
808
|
* Handle complete login flow with proper error handling and token management
|
|
775
809
|
* @param credentials - Login credentials (email and password)
|
|
@@ -808,6 +842,14 @@ declare class AuthOrchestrator implements IAuthOrchestrator {
|
|
|
808
842
|
* Get detailed token information
|
|
809
843
|
*/
|
|
810
844
|
getTokenInfo(): Promise<AuthActionResult>;
|
|
845
|
+
/**
|
|
846
|
+
* Handle forgot password flow
|
|
847
|
+
*/
|
|
848
|
+
handleForgotPassword(email: string): Promise<AuthActionResult>;
|
|
849
|
+
/**
|
|
850
|
+
* Handle resend verification code
|
|
851
|
+
*/
|
|
852
|
+
handleResendVerification(email: string): Promise<AuthActionResult>;
|
|
811
853
|
}
|
|
812
854
|
/**
|
|
813
855
|
* Authentication Orchestrator Factory
|
|
@@ -965,11 +1007,8 @@ interface PasswordStepProps extends BaseStepProps {
|
|
|
965
1007
|
interface VerificationStepProps extends BaseStepProps {
|
|
966
1008
|
email: string;
|
|
967
1009
|
onSubmit: (verificationCode: string) => void | Promise<void>;
|
|
968
|
-
|
|
969
|
-
onResendCode?: () => void;
|
|
1010
|
+
onResendCode?: () => void | Promise<void>;
|
|
970
1011
|
codeLength?: number;
|
|
971
|
-
showBackButton?: boolean;
|
|
972
|
-
showResendButton?: boolean;
|
|
973
1012
|
}
|
|
974
1013
|
|
|
975
1014
|
interface ForgotPasswordStepProps extends BaseStepProps {
|
|
@@ -1296,6 +1335,16 @@ interface MiddlewareHandler {
|
|
|
1296
1335
|
handle(context: MiddlewareContext): NextResponse | null | Promise<NextResponse | null>;
|
|
1297
1336
|
}
|
|
1298
1337
|
|
|
1338
|
+
/**
|
|
1339
|
+
* Email Provider Configuration Interface
|
|
1340
|
+
* Defines the structure for email provider configurations
|
|
1341
|
+
*/
|
|
1342
|
+
interface EmailProviderConfig {
|
|
1343
|
+
name: string;
|
|
1344
|
+
pattern: RegExp;
|
|
1345
|
+
getUrl: (email: string, subject?: string) => string;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1299
1348
|
declare const createAuthSteps: (options?: {
|
|
1300
1349
|
authIntent?: NextAction;
|
|
1301
1350
|
nextAction?: NextAction;
|
|
@@ -1304,7 +1353,7 @@ declare const getStepProgressMessage: (step: AuthFlowStep) => string;
|
|
|
1304
1353
|
declare const getAuthPageStepMessage: (step: AuthFlowStep) => string;
|
|
1305
1354
|
|
|
1306
1355
|
declare const EMAIL_SUBMISSION_NAVIGATION: {
|
|
1307
|
-
readonly "login-verification": AuthFlowStep.
|
|
1356
|
+
readonly "login-verification": AuthFlowStep.PASSWORD;
|
|
1308
1357
|
readonly login: AuthFlowStep.PASSWORD;
|
|
1309
1358
|
readonly signup: AuthFlowStep.PASSWORD;
|
|
1310
1359
|
};
|
|
@@ -1322,7 +1371,7 @@ declare const getStepForVerificationSubmission: (success: boolean) => AuthFlowSt
|
|
|
1322
1371
|
|
|
1323
1372
|
declare const getEmailField: (options?: InputProps) => BaseFormField;
|
|
1324
1373
|
declare const getPasswordField: (isLogin: boolean, disabled?: boolean, options?: PasswordProps) => BaseFormField;
|
|
1325
|
-
declare const getVerificationField: (codeLength?: number, options?: InputProps) => BaseFormField;
|
|
1374
|
+
declare const getVerificationField: (codeLength?: number, options?: InputProps, email?: string) => BaseFormField;
|
|
1326
1375
|
declare const getTermsCheckboxField: (options?: CheckboxProps) => BaseFormField;
|
|
1327
1376
|
declare const getForgotPasswordField: (options?: ButtonProps) => BaseFormField;
|
|
1328
1377
|
|
|
@@ -1692,4 +1741,4 @@ declare const useAuthFlowModal: () => {
|
|
|
1692
1741
|
openModal: () => void;
|
|
1693
1742
|
};
|
|
1694
1743
|
|
|
1695
|
-
export { AUTH_ENDPOINTS, AlertDisplay, type AlertDisplayProps, type AnyStepProps, type ApiErrorResponse, type ApiKeyConfig, type AuthActionCallbacks, type AuthActionOptions, type AuthActionResult, type AuthActionResultFailure, type AuthActionResultSuccess, type AuthActionState, type AuthEvent, AuthEventType, AuthFlowContainer, type AuthFlowContainerProps, AuthFlowModal, type AuthFlowModalProps, type AuthFlowProps, AuthFlowStep, AuthFlowVariant, AuthInitializer, AuthOrchestrator, AuthOrchestratorFactory, AuthResultFactory, AuthService, type AuthState, AuthenticatedState, type AuthenticatedStateProps, AuthenticationStatusContext, type BaseComponentProps, BaseErrorHandler, BaseEventBus, BaseForm, type BaseFormField, type BaseFormProps, type BaseResponse, BaseService, type BaseStepProps, BroadcastChannelEventBus, Channel, CookieUtils, CrossTabBehaviorConfig, CrossTabBehaviorHandler, CrossTabDemo, DevelopmentLogger, EMAIL_SUBMISSION_NAVIGATION, type EmailCheckResult, type EmailExistResponse, EmailStep, type EmailStepProps, EndpointBuilder, type EventBus, ExistingUserLoginStrategy, type ForgotPasswordStepProps, FormFields, type FormFieldsProps, FormHeader, type FormHeaderProps, GenericErrorHandler, HttpClient, type HttpClientConfig, type HttpError, HttpMethod, type HttpRequestOptions, type HttpResponse, type IAuthOrchestrator, type IAuthService, type IAuthStatusState, type IErrorHandler, type ILogger, type ILoginFlowStrategy, type ITokenManager, LocalStorageUtils, LoggerFactory, type LoginData, LoginFlowStrategyFactory, type LoginRequest, type LoginResponse, LoginStrategyResolver, LoginVerificationStrategy, MiddlewareConfig, type MiddlewareContext, type MiddlewareHandler, NavigationAction, NetworkErrorHandler, NextAction, PASSWORD_SUBMISSION_NAVIGATION, PageType, PageTypePatterns, PasswordInputWithStrength, type PasswordInputWithStrengthProps, PasswordStep, type PasswordStepProps, type PasswordStrengthRule, ProductionLogger, ProfileStateRenderer, ProfileUIState, type PropsFactory, type PublicUserProfile, type PublicUserProfileResponse, RoleType, SignupFlowStrategy, type Step, type StepComponent, type StepComponentRetriever, type StepConfig, type StepPropsFactoryRegistry, type StepRegistry, type StepRegistryBaseProps, type StepRegistryConfigs, type StepRegistryHandlers, type StepRegistryParams, type StepRegistryState, type StepperActions, type StepperState$1 as StepperState, StrategyResolutionMode, type StrengthResult, type Subscription, TokenManager, UnauthenticatedState, UrlUtils, type UseAuthActionHandler, type UseAuthEventBusProps, type UseFormSubmissionProps, type UseStepRegistryParams, type UseStepperReturn, type UserProfile, type UserProfileResponse, type UserSession, type UserState, UserStorageManager, type UserStoreState, VERIFICATION_SUBMISSION_NAVIGATION, ValidationErrorHandler, VerificationStep, type VerificationStepProps, type VerifyEmailRequest, type VerifyEmailResponse, config, createAuthSteps, createPropsFactoryRegistry, createStepRegistry, getAuthPageStepMessage, getEmailField, getForgotPasswordField, getPasswordField, getStepForEmailSubmission, getStepForPasswordSubmission, getStepForVerificationSubmission, getStepProgressMessage, getTermsCheckboxField, getVerificationField, isPublicUser, isPublicUserEmail, middlewareMatcher, useAuth, useAuthActionHandler, useAuthEventBus, useAuthFlowModal, useAuthInitializer, useIsAuthenticated, useLogout, usePublicUserSession, useRefreshUser, useSharedEventBus, useSignInRequiredParams, useStepRegistry, useStepRenderer, useStepper, useUser, useUserActions, useUserData, useUserError, useUserLoading, useUserProfile, useUserSelectors, useUserStore, userSelectors };
|
|
1744
|
+
export { AUTH_ENDPOINTS, AlertDisplay, type AlertDisplayProps, type AnyStepProps, type ApiErrorResponse, type ApiKeyConfig, type AuthActionCallbacks, type AuthActionOptions, type AuthActionResult, type AuthActionResultFailure, type AuthActionResultSuccess, type AuthActionState, type AuthEvent, AuthEventType, AuthFlowContainer, type AuthFlowContainerProps, AuthFlowModal, type AuthFlowModalProps, type AuthFlowProps, AuthFlowStep, AuthFlowVariant, AuthInitializer, AuthOrchestrator, AuthOrchestratorFactory, AuthResultFactory, AuthService, type AuthState, AuthenticatedState, type AuthenticatedStateProps, AuthenticationStatusContext, type BaseComponentProps, BaseErrorHandler, BaseEventBus, BaseForm, type BaseFormField, type BaseFormProps, type BaseResponse, BaseService, type BaseStepProps, BroadcastChannelEventBus, Channel, CookieUtils, CrossTabBehaviorConfig, CrossTabBehaviorHandler, CrossTabDemo, DevelopmentLogger, EMAIL_SUBMISSION_NAVIGATION, type EmailCheckResult, type EmailExistResponse, type EmailProviderConfig, EmailProviderUtils, EmailStep, type EmailStepProps, EndpointBuilder, type EventBus, ExistingUserLoginStrategy, type ForgotPasswordStepProps, FormFields, type FormFieldsProps, FormHeader, type FormHeaderProps, GenericErrorHandler, HttpClient, type HttpClientConfig, type HttpError, HttpMethod, type HttpRequestOptions, type HttpResponse, type IAuthOrchestrator, type IAuthService, type IAuthStatusState, type IErrorHandler, type ILogger, type ILoginFlowStrategy, type ITokenManager, LocalStorageUtils, LoggerFactory, type LoginData, LoginFlowStrategyFactory, type LoginRequest, type LoginResponse, LoginStrategyResolver, LoginVerificationStrategy, MiddlewareConfig, type MiddlewareContext, type MiddlewareHandler, NavigationAction, NetworkErrorHandler, NextAction, PASSWORD_SUBMISSION_NAVIGATION, PageType, PageTypePatterns, PasswordInputWithStrength, type PasswordInputWithStrengthProps, PasswordStep, type PasswordStepProps, type PasswordStrengthRule, ProductionLogger, ProfileStateRenderer, ProfileUIState, type PropsFactory, type PublicUserProfile, type PublicUserProfileResponse, RoleType, SignupFlowStrategy, type Step, type StepComponent, type StepComponentRetriever, type StepConfig, type StepPropsFactoryRegistry, type StepRegistry, type StepRegistryBaseProps, type StepRegistryConfigs, type StepRegistryHandlers, type StepRegistryParams, type StepRegistryState, type StepperActions, type StepperState$1 as StepperState, StrategyResolutionMode, type StrengthResult, type Subscription, TokenManager, UnauthenticatedState, UrlUtils, type UseAuthActionHandler, type UseAuthEventBusProps, type UseFormSubmissionProps, type UseStepRegistryParams, type UseStepperReturn, type UserProfile, type UserProfileResponse, type UserSession, type UserState, UserStorageManager, type UserStoreState, VERIFICATION_SUBMISSION_NAVIGATION, ValidationErrorHandler, VerificationStep, type VerificationStepProps, type VerifyEmailRequest, type VerifyEmailResponse, config, createAuthSteps, createPropsFactoryRegistry, createStepRegistry, getAuthPageStepMessage, getEmailField, getForgotPasswordField, getPasswordField, getStepForEmailSubmission, getStepForPasswordSubmission, getStepForVerificationSubmission, getStepProgressMessage, getTermsCheckboxField, getVerificationField, isPublicUser, isPublicUserEmail, middlewareMatcher, useAuth, useAuthActionHandler, useAuthEventBus, useAuthFlowModal, useAuthInitializer, useIsAuthenticated, useLogout, usePublicUserSession, useRefreshUser, useSharedEventBus, useSignInRequiredParams, useStepRegistry, useStepRenderer, useStepper, useUser, useUserActions, useUserData, useUserError, useUserLoading, useUserProfile, useUserSelectors, useUserStore, userSelectors };
|