mailsentry-auth 0.2.5 → 0.2.7

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
@@ -368,7 +368,7 @@ declare class CrossTabBehaviorHandler {
368
368
  } | {
369
369
  readonly action: NavigationAction.RELOAD;
370
370
  } | {
371
- readonly action: NavigationAction.RELOAD;
371
+ readonly action: NavigationAction.RELOAD_CLEAN_URL;
372
372
  } | {
373
373
  readonly action: NavigationAction.NONE;
374
374
  } | {
@@ -424,6 +424,24 @@ declare class EmailProviderUtils {
424
424
  static getProviderName(email: string): string | null;
425
425
  }
426
426
 
427
+ /**
428
+ * URL Cleanup Handler
429
+ * Facade Pattern: Simple interface for complex strategy execution
430
+ * Static methods: No state, pure functional approach
431
+ */
432
+ declare class UrlCleanupHandler {
433
+ /**
434
+ * Execute cleanup for given event type and current URL
435
+ * @returns Cleaned URL string if changes made, null otherwise
436
+ */
437
+ static cleanup(eventType: AuthEventType, currentUrl?: string): string | null;
438
+ /**
439
+ * Find applicable strategy for event type and pathname
440
+ * DRY Principle: Centralized strategy lookup logic
441
+ */
442
+ private static findStrategy;
443
+ }
444
+
427
445
  /**
428
446
  * Token Manager Implementation
429
447
  * Handles token storage and validation using CookieUtils
@@ -1263,7 +1281,8 @@ declare enum PageType {
1263
1281
  }
1264
1282
  declare enum NavigationAction {
1265
1283
  NONE = "none",
1266
- RELOAD = "reload"
1284
+ RELOAD = "reload",
1285
+ RELOAD_CLEAN_URL = "reload_clean_url"
1267
1286
  }
1268
1287
  declare const PageTypePatterns: {
1269
1288
  readonly "/login": PageType.LOGIN;
@@ -1290,7 +1309,7 @@ declare const CrossTabBehaviorConfig: {
1290
1309
  readonly action: NavigationAction.RELOAD;
1291
1310
  };
1292
1311
  readonly "auth.logged_out": {
1293
- readonly action: NavigationAction.RELOAD;
1312
+ readonly action: NavigationAction.RELOAD_CLEAN_URL;
1294
1313
  };
1295
1314
  readonly "auth.email_verified": {
1296
1315
  readonly action: NavigationAction.NONE;
@@ -1344,6 +1363,15 @@ interface EmailProviderConfig {
1344
1363
  getUrl: (email: string, subject?: string) => string;
1345
1364
  }
1346
1365
 
1366
+ /**
1367
+ * Strategy Pattern: Interface for URL cleanup behaviors
1368
+ * Single Responsibility: Each strategy handles one cleanup concern
1369
+ */
1370
+ interface ICleanupStrategy {
1371
+ matches(pathname: string): boolean;
1372
+ clean(url: URL): URL;
1373
+ }
1374
+
1347
1375
  declare const createAuthSteps: (options?: {
1348
1376
  authIntent?: NextAction;
1349
1377
  nextAction?: NextAction;
@@ -1377,22 +1405,38 @@ declare const getForgotPasswordField: (options?: ButtonProps) => BaseFormField;
1377
1405
  /**
1378
1406
  * Middleware configuration constants for routing and protection
1379
1407
  */
1408
+ interface ProtectionRule {
1409
+ hostPattern: string | null;
1410
+ pathPattern: string;
1411
+ }
1380
1412
  declare class MiddlewareConfig {
1381
1413
  static readonly CONSTANTS: {
1382
1414
  readonly LOGIN_PATH: "/login";
1383
1415
  readonly DASHBOARD_SUBDOMAIN: "dashboard";
1384
- readonly PUBLIC_PATH: "/public";
1385
- readonly PUBLIC_API_PATH: "/api/public";
1386
1416
  };
1387
1417
  /**
1388
- * Get public routes whitelist from environment variable
1389
- * Expected format: comma-separated paths like "/public,/links/new,/about"
1418
+ * Get dynamic protection rules from environment variable
1419
+ * Format: "host:path" or "path"
1390
1420
  */
1391
- static getPublicRoutesWhitelist(): string[];
1392
- static readonly PROTECTED_ROUTES: {
1393
- INCLUDE: string[];
1394
- EXCLUDE: string[];
1395
- };
1421
+ static getProtectedRules(): ProtectionRule[];
1422
+ /**
1423
+ * Get public routes whitelist (Exclusions)
1424
+ * Format: "host:path" or "path"
1425
+ */
1426
+ static getWhitelistRules(): ProtectionRule[];
1427
+ /**
1428
+ * Get guest-only routes (redirects authenticated users away)
1429
+ * Format: "host:path" or "path"
1430
+ */
1431
+ static getGuestOnlyRules(): ProtectionRule[];
1432
+ /**
1433
+ * Generic parser for environment variables containing rule lists
1434
+ */
1435
+ private static parseRules;
1436
+ /**
1437
+ * Parse a single rule string into a ProtectionRule object
1438
+ */
1439
+ private static parseSingleRule;
1396
1440
  static readonly ALLOWED_METHODS: readonly ["GET", "HEAD"];
1397
1441
  static readonly QUERY_PARAMS: {
1398
1442
  readonly LOGIN_REQUIRED: "sign_in_required";
@@ -1414,12 +1458,9 @@ declare class MiddlewareConfig {
1414
1458
  }
1415
1459
  /**
1416
1460
  * Middleware matcher patterns
1417
- * Matches all routes except API routes, Next.js internals, and static assets
1461
+ * Already excludes /api routes and static files automatically
1418
1462
  */
1419
1463
  declare const middlewareMatcher: readonly ["/((?!api|_next/static|_next/image|_next/webpack-hmr|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico|css|js)$).*)"];
1420
- /**
1421
- * Middleware configuration
1422
- */
1423
1464
  declare const config: {
1424
1465
  matcher: readonly ["/((?!api|_next/static|_next/image|_next/webpack-hmr|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico|css|js)$).*)"];
1425
1466
  };
@@ -1740,4 +1781,4 @@ declare const useAuthFlowModal: () => {
1740
1781
  openModal: () => void;
1741
1782
  };
1742
1783
 
1743
- 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 };
1784
+ 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 ICleanupStrategy, 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 ProtectionRule, 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, UrlCleanupHandler, 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
@@ -368,7 +368,7 @@ declare class CrossTabBehaviorHandler {
368
368
  } | {
369
369
  readonly action: NavigationAction.RELOAD;
370
370
  } | {
371
- readonly action: NavigationAction.RELOAD;
371
+ readonly action: NavigationAction.RELOAD_CLEAN_URL;
372
372
  } | {
373
373
  readonly action: NavigationAction.NONE;
374
374
  } | {
@@ -424,6 +424,24 @@ declare class EmailProviderUtils {
424
424
  static getProviderName(email: string): string | null;
425
425
  }
426
426
 
427
+ /**
428
+ * URL Cleanup Handler
429
+ * Facade Pattern: Simple interface for complex strategy execution
430
+ * Static methods: No state, pure functional approach
431
+ */
432
+ declare class UrlCleanupHandler {
433
+ /**
434
+ * Execute cleanup for given event type and current URL
435
+ * @returns Cleaned URL string if changes made, null otherwise
436
+ */
437
+ static cleanup(eventType: AuthEventType, currentUrl?: string): string | null;
438
+ /**
439
+ * Find applicable strategy for event type and pathname
440
+ * DRY Principle: Centralized strategy lookup logic
441
+ */
442
+ private static findStrategy;
443
+ }
444
+
427
445
  /**
428
446
  * Token Manager Implementation
429
447
  * Handles token storage and validation using CookieUtils
@@ -1263,7 +1281,8 @@ declare enum PageType {
1263
1281
  }
1264
1282
  declare enum NavigationAction {
1265
1283
  NONE = "none",
1266
- RELOAD = "reload"
1284
+ RELOAD = "reload",
1285
+ RELOAD_CLEAN_URL = "reload_clean_url"
1267
1286
  }
1268
1287
  declare const PageTypePatterns: {
1269
1288
  readonly "/login": PageType.LOGIN;
@@ -1290,7 +1309,7 @@ declare const CrossTabBehaviorConfig: {
1290
1309
  readonly action: NavigationAction.RELOAD;
1291
1310
  };
1292
1311
  readonly "auth.logged_out": {
1293
- readonly action: NavigationAction.RELOAD;
1312
+ readonly action: NavigationAction.RELOAD_CLEAN_URL;
1294
1313
  };
1295
1314
  readonly "auth.email_verified": {
1296
1315
  readonly action: NavigationAction.NONE;
@@ -1344,6 +1363,15 @@ interface EmailProviderConfig {
1344
1363
  getUrl: (email: string, subject?: string) => string;
1345
1364
  }
1346
1365
 
1366
+ /**
1367
+ * Strategy Pattern: Interface for URL cleanup behaviors
1368
+ * Single Responsibility: Each strategy handles one cleanup concern
1369
+ */
1370
+ interface ICleanupStrategy {
1371
+ matches(pathname: string): boolean;
1372
+ clean(url: URL): URL;
1373
+ }
1374
+
1347
1375
  declare const createAuthSteps: (options?: {
1348
1376
  authIntent?: NextAction;
1349
1377
  nextAction?: NextAction;
@@ -1377,22 +1405,38 @@ declare const getForgotPasswordField: (options?: ButtonProps) => BaseFormField;
1377
1405
  /**
1378
1406
  * Middleware configuration constants for routing and protection
1379
1407
  */
1408
+ interface ProtectionRule {
1409
+ hostPattern: string | null;
1410
+ pathPattern: string;
1411
+ }
1380
1412
  declare class MiddlewareConfig {
1381
1413
  static readonly CONSTANTS: {
1382
1414
  readonly LOGIN_PATH: "/login";
1383
1415
  readonly DASHBOARD_SUBDOMAIN: "dashboard";
1384
- readonly PUBLIC_PATH: "/public";
1385
- readonly PUBLIC_API_PATH: "/api/public";
1386
1416
  };
1387
1417
  /**
1388
- * Get public routes whitelist from environment variable
1389
- * Expected format: comma-separated paths like "/public,/links/new,/about"
1418
+ * Get dynamic protection rules from environment variable
1419
+ * Format: "host:path" or "path"
1390
1420
  */
1391
- static getPublicRoutesWhitelist(): string[];
1392
- static readonly PROTECTED_ROUTES: {
1393
- INCLUDE: string[];
1394
- EXCLUDE: string[];
1395
- };
1421
+ static getProtectedRules(): ProtectionRule[];
1422
+ /**
1423
+ * Get public routes whitelist (Exclusions)
1424
+ * Format: "host:path" or "path"
1425
+ */
1426
+ static getWhitelistRules(): ProtectionRule[];
1427
+ /**
1428
+ * Get guest-only routes (redirects authenticated users away)
1429
+ * Format: "host:path" or "path"
1430
+ */
1431
+ static getGuestOnlyRules(): ProtectionRule[];
1432
+ /**
1433
+ * Generic parser for environment variables containing rule lists
1434
+ */
1435
+ private static parseRules;
1436
+ /**
1437
+ * Parse a single rule string into a ProtectionRule object
1438
+ */
1439
+ private static parseSingleRule;
1396
1440
  static readonly ALLOWED_METHODS: readonly ["GET", "HEAD"];
1397
1441
  static readonly QUERY_PARAMS: {
1398
1442
  readonly LOGIN_REQUIRED: "sign_in_required";
@@ -1414,12 +1458,9 @@ declare class MiddlewareConfig {
1414
1458
  }
1415
1459
  /**
1416
1460
  * Middleware matcher patterns
1417
- * Matches all routes except API routes, Next.js internals, and static assets
1461
+ * Already excludes /api routes and static files automatically
1418
1462
  */
1419
1463
  declare const middlewareMatcher: readonly ["/((?!api|_next/static|_next/image|_next/webpack-hmr|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico|css|js)$).*)"];
1420
- /**
1421
- * Middleware configuration
1422
- */
1423
1464
  declare const config: {
1424
1465
  matcher: readonly ["/((?!api|_next/static|_next/image|_next/webpack-hmr|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico|css|js)$).*)"];
1425
1466
  };
@@ -1740,4 +1781,4 @@ declare const useAuthFlowModal: () => {
1740
1781
  openModal: () => void;
1741
1782
  };
1742
1783
 
1743
- 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 };
1784
+ 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 ICleanupStrategy, 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 ProtectionRule, 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, UrlCleanupHandler, 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 };