@authowl/react 0.14.0 → 0.15.0

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.cts CHANGED
@@ -331,8 +331,23 @@ type SignInProps = {
331
331
  * (paid/comped projects). Free projects always show it regardless.
332
332
  */
333
333
  showBadge?: boolean;
334
+ /** Hide the project header when the host surface renders the same branding itself. */
335
+ showBranding?: boolean;
334
336
  };
335
- declare function SignIn({ redirectTo, onSignedIn, resetPasswordUrl, showBadge }?: SignInProps): React.JSX.Element;
337
+ declare function SignIn({ redirectTo, onSignedIn, resetPasswordUrl, showBadge, showBranding, }?: SignInProps): React.JSX.Element;
338
+
339
+ type AuthOwlBrandingProps = {
340
+ /** Optional destination when the brand identity is clicked. */
341
+ href?: string;
342
+ /** Hide the environment label when a host app presents it elsewhere. */
343
+ showEnvironment?: boolean;
344
+ };
345
+ /**
346
+ * Project identity shown above AuthOwl's managed authentication components.
347
+ * It reads the same public branding contract as the rest of the SDK, including
348
+ * logo-only brands and the exact development or production environment.
349
+ */
350
+ declare function AuthOwlBranding({ href, showEnvironment }?: AuthOwlBrandingProps): React.JSX.Element | null;
336
351
 
337
352
  type PhoneOTPProps = {
338
353
  redirectTo?: string;
@@ -359,8 +374,10 @@ type SignUpProps = {
359
374
  showBadge?: boolean;
360
375
  /** Called after an enrollment request is accepted while waitlist mode is active. */
361
376
  onWaitlisted?: () => void;
377
+ /** Hide the project header when the host surface renders the same branding itself. */
378
+ showBranding?: boolean;
362
379
  };
363
- declare function SignUp({ redirectTo, onSignedUp, verifyEmailUrl, showBadge, onWaitlisted, }?: SignUpProps): React.JSX.Element;
380
+ declare function SignUp({ redirectTo, onSignedUp, verifyEmailUrl, showBadge, onWaitlisted, showBranding, }?: SignUpProps): React.JSX.Element;
364
381
 
365
382
  type WaitlistProps = {
366
383
  onJoined?: () => void;
@@ -369,8 +386,10 @@ type WaitlistProps = {
369
386
  * Free projects always show it regardless.
370
387
  */
371
388
  showBadge?: boolean;
389
+ /** Hide the project header when the host surface renders the same branding itself. */
390
+ showBranding?: boolean;
372
391
  };
373
- declare function Waitlist({ onJoined, showBadge }?: WaitlistProps): React.JSX.Element;
392
+ declare function Waitlist({ onJoined, showBadge, showBranding }?: WaitlistProps): React.JSX.Element;
374
393
 
375
394
  type ConsentGateProps = {
376
395
  /** The protected app content shown once consent is satisfied. */
@@ -744,6 +763,8 @@ type UserProfileSharedProps = {
744
763
  onSectionChange?: (section: UserProfileSection) => void;
745
764
  /** Called after the signed-in account is permanently deleted. */
746
765
  onDeleted?: () => void;
766
+ /** Hide the project header when the host surface renders the same branding itself. */
767
+ showBranding?: boolean;
747
768
  };
748
769
  type UserProfileProps = UserProfileSharedProps & ({
749
770
  /** Render the account settings inline. */
@@ -822,4 +843,4 @@ type GoogleOneTapProps = {
822
843
  /** Invisible, server-configured Google One Tap conversion helper. */
823
844
  declare function GoogleOneTap({ disabled, nonce, autoSelect, cancelOnTapOutside, context, itpSupport, loginHint, hostedDomain, stateCookieDomain, scriptNonce, onSignedIn, onSkipped, onDismissed, onError, }: GoogleOneTapProps): null;
824
845
 
825
- export { type Appearance, AuthLoaded, type AuthLoadedProps, AuthLoading, type AuthLoadingProps, AuthOwlBadge, type AuthOwlBadgeProps, AuthOwlProvider, type AuthOwlProviderProps, type AutofillHost, BackupCodesManager, type BackupCodesManagerProps, Bidi, type ConfigState, ConsentDocLinks, type ConsentDocLinksProps, ConsentGate, type ConsentGateProps, CreateOrganization, type CreateOrganizationProps, DEFAULT_BRAND_COLOR, EmailOtpForm, type EmailOtpFormProps, ForgotPassword, type ForgotPasswordProps, GoogleOneTap, type GoogleOneTapDismissReason, type GoogleOneTapError, type GoogleOneTapErrorCode, type GoogleOneTapProps, type GoogleOneTapSkipReason, KNOWN_METHODS, type KnownMethod, MFAChallenge, type MFAChallengeProps, MFAEnrollment, type MFAEnrollmentProps, MFARequiredGate, type MFARequiredGateProps, MagicLinkForm, type MagicLinkFormProps, OrganizationList, type OrganizationListProps, OrganizationProfile, type OrganizationProfileProps, type OrganizationProfileSection, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyButton, type PasskeyButtonProps, PasskeyManager, type PasskeyManagerProps, PhoneOTP, type PhoneOTPProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, type SignInPlan, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, SocialButtons, type SocialButtonsProps, Spinner, type UseAccountResult, type UseAuthResult, type UseConsentResult, type UseEmailVerificationResult, type UseMFAResult, type UseOrganizationResult, type UsePasskeysResult, type UsePasswordResetResult, type UsePublicConfigResult, type UseSignInResult, type UseSignOutResult, type UseSignUpResult, type UseUserResult, type UseWaitlistResult, UserButton, UserProfile, type UserProfileProps, type UserProfileSection, VerificationPending, type VerificationPendingProps, VerifyEmail, type VerifyEmailProps, Waitlist, type WaitlistProps, emailAutocomplete, resolveSignInMethods, useAccount, useAuth, useAuthClient, useAuthOwlContext, useConsent, useEmailVerification, useLocale, useMFA, useOrganization, usePasskeys, usePasswordReset, usePublicConfig, useSession, useSignIn, useSignOut, useSignUp, useUser, useWaitlist };
846
+ export { type Appearance, AuthLoaded, type AuthLoadedProps, AuthLoading, type AuthLoadingProps, AuthOwlBadge, type AuthOwlBadgeProps, AuthOwlBranding, type AuthOwlBrandingProps, AuthOwlProvider, type AuthOwlProviderProps, type AutofillHost, BackupCodesManager, type BackupCodesManagerProps, Bidi, type ConfigState, ConsentDocLinks, type ConsentDocLinksProps, ConsentGate, type ConsentGateProps, CreateOrganization, type CreateOrganizationProps, DEFAULT_BRAND_COLOR, EmailOtpForm, type EmailOtpFormProps, ForgotPassword, type ForgotPasswordProps, GoogleOneTap, type GoogleOneTapDismissReason, type GoogleOneTapError, type GoogleOneTapErrorCode, type GoogleOneTapProps, type GoogleOneTapSkipReason, KNOWN_METHODS, type KnownMethod, MFAChallenge, type MFAChallengeProps, MFAEnrollment, type MFAEnrollmentProps, MFARequiredGate, type MFARequiredGateProps, MagicLinkForm, type MagicLinkFormProps, OrganizationList, type OrganizationListProps, OrganizationProfile, type OrganizationProfileProps, type OrganizationProfileSection, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyButton, type PasskeyButtonProps, PasskeyManager, type PasskeyManagerProps, PhoneOTP, type PhoneOTPProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, type SignInPlan, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, SocialButtons, type SocialButtonsProps, Spinner, type UseAccountResult, type UseAuthResult, type UseConsentResult, type UseEmailVerificationResult, type UseMFAResult, type UseOrganizationResult, type UsePasskeysResult, type UsePasswordResetResult, type UsePublicConfigResult, type UseSignInResult, type UseSignOutResult, type UseSignUpResult, type UseUserResult, type UseWaitlistResult, UserButton, UserProfile, type UserProfileProps, type UserProfileSection, VerificationPending, type VerificationPendingProps, VerifyEmail, type VerifyEmailProps, Waitlist, type WaitlistProps, emailAutocomplete, resolveSignInMethods, useAccount, useAuth, useAuthClient, useAuthOwlContext, useConsent, useEmailVerification, useLocale, useMFA, useOrganization, usePasskeys, usePasswordReset, usePublicConfig, useSession, useSignIn, useSignOut, useSignUp, useUser, useWaitlist };
package/dist/index.d.ts CHANGED
@@ -331,8 +331,23 @@ type SignInProps = {
331
331
  * (paid/comped projects). Free projects always show it regardless.
332
332
  */
333
333
  showBadge?: boolean;
334
+ /** Hide the project header when the host surface renders the same branding itself. */
335
+ showBranding?: boolean;
334
336
  };
335
- declare function SignIn({ redirectTo, onSignedIn, resetPasswordUrl, showBadge }?: SignInProps): React.JSX.Element;
337
+ declare function SignIn({ redirectTo, onSignedIn, resetPasswordUrl, showBadge, showBranding, }?: SignInProps): React.JSX.Element;
338
+
339
+ type AuthOwlBrandingProps = {
340
+ /** Optional destination when the brand identity is clicked. */
341
+ href?: string;
342
+ /** Hide the environment label when a host app presents it elsewhere. */
343
+ showEnvironment?: boolean;
344
+ };
345
+ /**
346
+ * Project identity shown above AuthOwl's managed authentication components.
347
+ * It reads the same public branding contract as the rest of the SDK, including
348
+ * logo-only brands and the exact development or production environment.
349
+ */
350
+ declare function AuthOwlBranding({ href, showEnvironment }?: AuthOwlBrandingProps): React.JSX.Element | null;
336
351
 
337
352
  type PhoneOTPProps = {
338
353
  redirectTo?: string;
@@ -359,8 +374,10 @@ type SignUpProps = {
359
374
  showBadge?: boolean;
360
375
  /** Called after an enrollment request is accepted while waitlist mode is active. */
361
376
  onWaitlisted?: () => void;
377
+ /** Hide the project header when the host surface renders the same branding itself. */
378
+ showBranding?: boolean;
362
379
  };
363
- declare function SignUp({ redirectTo, onSignedUp, verifyEmailUrl, showBadge, onWaitlisted, }?: SignUpProps): React.JSX.Element;
380
+ declare function SignUp({ redirectTo, onSignedUp, verifyEmailUrl, showBadge, onWaitlisted, showBranding, }?: SignUpProps): React.JSX.Element;
364
381
 
365
382
  type WaitlistProps = {
366
383
  onJoined?: () => void;
@@ -369,8 +386,10 @@ type WaitlistProps = {
369
386
  * Free projects always show it regardless.
370
387
  */
371
388
  showBadge?: boolean;
389
+ /** Hide the project header when the host surface renders the same branding itself. */
390
+ showBranding?: boolean;
372
391
  };
373
- declare function Waitlist({ onJoined, showBadge }?: WaitlistProps): React.JSX.Element;
392
+ declare function Waitlist({ onJoined, showBadge, showBranding }?: WaitlistProps): React.JSX.Element;
374
393
 
375
394
  type ConsentGateProps = {
376
395
  /** The protected app content shown once consent is satisfied. */
@@ -744,6 +763,8 @@ type UserProfileSharedProps = {
744
763
  onSectionChange?: (section: UserProfileSection) => void;
745
764
  /** Called after the signed-in account is permanently deleted. */
746
765
  onDeleted?: () => void;
766
+ /** Hide the project header when the host surface renders the same branding itself. */
767
+ showBranding?: boolean;
747
768
  };
748
769
  type UserProfileProps = UserProfileSharedProps & ({
749
770
  /** Render the account settings inline. */
@@ -822,4 +843,4 @@ type GoogleOneTapProps = {
822
843
  /** Invisible, server-configured Google One Tap conversion helper. */
823
844
  declare function GoogleOneTap({ disabled, nonce, autoSelect, cancelOnTapOutside, context, itpSupport, loginHint, hostedDomain, stateCookieDomain, scriptNonce, onSignedIn, onSkipped, onDismissed, onError, }: GoogleOneTapProps): null;
824
845
 
825
- export { type Appearance, AuthLoaded, type AuthLoadedProps, AuthLoading, type AuthLoadingProps, AuthOwlBadge, type AuthOwlBadgeProps, AuthOwlProvider, type AuthOwlProviderProps, type AutofillHost, BackupCodesManager, type BackupCodesManagerProps, Bidi, type ConfigState, ConsentDocLinks, type ConsentDocLinksProps, ConsentGate, type ConsentGateProps, CreateOrganization, type CreateOrganizationProps, DEFAULT_BRAND_COLOR, EmailOtpForm, type EmailOtpFormProps, ForgotPassword, type ForgotPasswordProps, GoogleOneTap, type GoogleOneTapDismissReason, type GoogleOneTapError, type GoogleOneTapErrorCode, type GoogleOneTapProps, type GoogleOneTapSkipReason, KNOWN_METHODS, type KnownMethod, MFAChallenge, type MFAChallengeProps, MFAEnrollment, type MFAEnrollmentProps, MFARequiredGate, type MFARequiredGateProps, MagicLinkForm, type MagicLinkFormProps, OrganizationList, type OrganizationListProps, OrganizationProfile, type OrganizationProfileProps, type OrganizationProfileSection, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyButton, type PasskeyButtonProps, PasskeyManager, type PasskeyManagerProps, PhoneOTP, type PhoneOTPProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, type SignInPlan, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, SocialButtons, type SocialButtonsProps, Spinner, type UseAccountResult, type UseAuthResult, type UseConsentResult, type UseEmailVerificationResult, type UseMFAResult, type UseOrganizationResult, type UsePasskeysResult, type UsePasswordResetResult, type UsePublicConfigResult, type UseSignInResult, type UseSignOutResult, type UseSignUpResult, type UseUserResult, type UseWaitlistResult, UserButton, UserProfile, type UserProfileProps, type UserProfileSection, VerificationPending, type VerificationPendingProps, VerifyEmail, type VerifyEmailProps, Waitlist, type WaitlistProps, emailAutocomplete, resolveSignInMethods, useAccount, useAuth, useAuthClient, useAuthOwlContext, useConsent, useEmailVerification, useLocale, useMFA, useOrganization, usePasskeys, usePasswordReset, usePublicConfig, useSession, useSignIn, useSignOut, useSignUp, useUser, useWaitlist };
846
+ export { type Appearance, AuthLoaded, type AuthLoadedProps, AuthLoading, type AuthLoadingProps, AuthOwlBadge, type AuthOwlBadgeProps, AuthOwlBranding, type AuthOwlBrandingProps, AuthOwlProvider, type AuthOwlProviderProps, type AutofillHost, BackupCodesManager, type BackupCodesManagerProps, Bidi, type ConfigState, ConsentDocLinks, type ConsentDocLinksProps, ConsentGate, type ConsentGateProps, CreateOrganization, type CreateOrganizationProps, DEFAULT_BRAND_COLOR, EmailOtpForm, type EmailOtpFormProps, ForgotPassword, type ForgotPasswordProps, GoogleOneTap, type GoogleOneTapDismissReason, type GoogleOneTapError, type GoogleOneTapErrorCode, type GoogleOneTapProps, type GoogleOneTapSkipReason, KNOWN_METHODS, type KnownMethod, MFAChallenge, type MFAChallengeProps, MFAEnrollment, type MFAEnrollmentProps, MFARequiredGate, type MFARequiredGateProps, MagicLinkForm, type MagicLinkFormProps, OrganizationList, type OrganizationListProps, OrganizationProfile, type OrganizationProfileProps, type OrganizationProfileSection, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyButton, type PasskeyButtonProps, PasskeyManager, type PasskeyManagerProps, PhoneOTP, type PhoneOTPProps, Protect, type ProtectProps, ResetPassword, type ResetPasswordProps, SignIn, type SignInPlan, type SignInProps, SignOutButton, type SignOutButtonProps, SignUp, type SignUpProps, SignedIn, type SignedInProps, SignedOut, type SignedOutProps, SocialButtons, type SocialButtonsProps, Spinner, type UseAccountResult, type UseAuthResult, type UseConsentResult, type UseEmailVerificationResult, type UseMFAResult, type UseOrganizationResult, type UsePasskeysResult, type UsePasswordResetResult, type UsePublicConfigResult, type UseSignInResult, type UseSignOutResult, type UseSignUpResult, type UseUserResult, type UseWaitlistResult, UserButton, UserProfile, type UserProfileProps, type UserProfileSection, VerificationPending, type VerificationPendingProps, VerifyEmail, type VerifyEmailProps, Waitlist, type WaitlistProps, emailAutocomplete, resolveSignInMethods, useAccount, useAuth, useAuthClient, useAuthOwlContext, useConsent, useEmailVerification, useLocale, useMFA, useOrganization, usePasskeys, usePasswordReset, usePublicConfig, useSession, useSignIn, useSignOut, useSignUp, useUser, useWaitlist };