@authowl/react-native 0.3.16 → 0.4.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.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { PublicConfig, NativeAuthClient, NativePasskeyCapableClient, PasskeyCeremonyClientFactory, NativeSocialSignInOptions, AuthActionResult, SocialAuthData, AuthUser, AuthSession, HasParams, SessionState, Organization, PasskeyRegistrationResponse, PasskeyAuthenticationResponse } from '@authowl/core/native';
2
- export { AuthSession, AuthUser, HasParams, NativeAuthClient, NativeSocialSignInOptions, OrganizationMembership, SessionState, NativeSocialSignInOptions as SocialIdTokenSignInOptions, sessionCookieName } from '@authowl/core/native';
1
+ import { PublicConfig, NativeAuthClient, NativePasskeyCapableClient, PasskeyCeremonyClientFactory, NativeSocialSignInOptions, AuthActionResult, SocialAuthData, AuthUser, AuthSession, HasParams, PrivacyClient, SessionState, Organization, PasskeyRegistrationResponse, PasskeyAuthenticationResponse } from '@authowl/core/native';
2
+ export { AuthSession, AuthUser, HasParams, NativeAuthClient, NativeSocialSignInOptions, OrganizationMembership, PrivacyClient, PrivacyConsentPreference, PrivacyConsentState, PrivacyLocale, PrivacyRightState, PrivacyRightType, PrivacyRightsRequest, SessionState, NativeSocialSignInOptions as SocialIdTokenSignInOptions, sessionCookieName } from '@authowl/core/native';
3
3
  import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { Locale, ServerErrorInput, MessageKey, MessageParams } from '@authowl/core/i18n';
@@ -167,6 +167,8 @@ declare function usePublicConfig(): {
167
167
  state: PublicConfigState;
168
168
  isLoading: boolean;
169
169
  };
170
+ /** Typed consent preferences and data-rights actions for the signed-in user. */
171
+ declare function usePrivacy(): PrivacyClient;
170
172
  /** The live session state, re-rendering whenever the session changes. */
171
173
  declare function useSession(): SessionState;
172
174
  interface UseAuthResult {
@@ -354,6 +356,12 @@ interface SignUpProps {
354
356
  /** Create an account with an email address and password. */
355
357
  declare function SignUp({ onSignedUp, structuredName, theme }: SignUpProps): react.JSX.Element | null;
356
358
 
359
+ interface PrivacyCenterProps {
360
+ theme?: AuthOwlTheme;
361
+ }
362
+ /** Manage optional consent and submit access, correction, export, or deletion requests. */
363
+ declare function PrivacyCenter({ theme }?: PrivacyCenterProps): react.JSX.Element;
364
+
357
365
  interface EmailOtpFormProps {
358
366
  onSignedIn?: () => void;
359
367
  theme?: AuthOwlTheme;
@@ -651,4 +659,4 @@ declare function useLocale(): {
651
659
  */
652
660
  declare function useServerError(): (error: ServerErrorInput | null | undefined, fallback: MessageKey) => string;
653
661
 
654
- export { type AuthOwlHeadlessNative, type AuthOwlNative, type AuthOwlNativeConfig, type AuthOwlNativeConfigWithPasskeys, type AuthOwlPasskeyNative, AuthOwlProvider, type AuthOwlProviderProps, type AuthOwlTheme, type CookieJarOptions, EmailOtpForm, type EmailOtpFormProps, Field, type FieldProps, FormError, MemoryStorage, type NativePasskeyAdapter, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyEnrollment, type PasskeyEnrollmentProps, PasskeySignInButton, type PasskeySignInButtonProps, type ProviderIdToken, type PublicConfigState, type SecureStorage, SignIn, type SignInProps, SignUp, type SignUpProps, SocialButtons, type SocialButtonsProps, type SocialProvider, SubmitButton, type SubmitButtonProps, type UseAuthResult, createAuthOwlNative, createCookieJarFetch, createNativePasskeys, createStyles, darkTheme, defaultTheme, readSetCookie, sessionStorageKey, signInWithSocialIdToken, useAuth, useAuthOwlClient, useAuthOwlLocale, useLocale, usePublicConfig, useServerError, useSession, useSocialSignIn, useStyles, useT, useUser };
662
+ export { type AuthOwlHeadlessNative, type AuthOwlNative, type AuthOwlNativeConfig, type AuthOwlNativeConfigWithPasskeys, type AuthOwlPasskeyNative, AuthOwlProvider, type AuthOwlProviderProps, type AuthOwlTheme, type CookieJarOptions, EmailOtpForm, type EmailOtpFormProps, Field, type FieldProps, FormError, MemoryStorage, type NativePasskeyAdapter, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyEnrollment, type PasskeyEnrollmentProps, PasskeySignInButton, type PasskeySignInButtonProps, PrivacyCenter, type PrivacyCenterProps, type ProviderIdToken, type PublicConfigState, type SecureStorage, SignIn, type SignInProps, SignUp, type SignUpProps, SocialButtons, type SocialButtonsProps, type SocialProvider, SubmitButton, type SubmitButtonProps, type UseAuthResult, createAuthOwlNative, createCookieJarFetch, createNativePasskeys, createStyles, darkTheme, defaultTheme, readSetCookie, sessionStorageKey, signInWithSocialIdToken, useAuth, useAuthOwlClient, useAuthOwlLocale, useLocale, usePrivacy, usePublicConfig, useServerError, useSession, useSocialSignIn, useStyles, useT, useUser };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { PublicConfig, NativeAuthClient, NativePasskeyCapableClient, PasskeyCeremonyClientFactory, NativeSocialSignInOptions, AuthActionResult, SocialAuthData, AuthUser, AuthSession, HasParams, SessionState, Organization, PasskeyRegistrationResponse, PasskeyAuthenticationResponse } from '@authowl/core/native';
2
- export { AuthSession, AuthUser, HasParams, NativeAuthClient, NativeSocialSignInOptions, OrganizationMembership, SessionState, NativeSocialSignInOptions as SocialIdTokenSignInOptions, sessionCookieName } from '@authowl/core/native';
1
+ import { PublicConfig, NativeAuthClient, NativePasskeyCapableClient, PasskeyCeremonyClientFactory, NativeSocialSignInOptions, AuthActionResult, SocialAuthData, AuthUser, AuthSession, HasParams, PrivacyClient, SessionState, Organization, PasskeyRegistrationResponse, PasskeyAuthenticationResponse } from '@authowl/core/native';
2
+ export { AuthSession, AuthUser, HasParams, NativeAuthClient, NativeSocialSignInOptions, OrganizationMembership, PrivacyClient, PrivacyConsentPreference, PrivacyConsentState, PrivacyLocale, PrivacyRightState, PrivacyRightType, PrivacyRightsRequest, SessionState, NativeSocialSignInOptions as SocialIdTokenSignInOptions, sessionCookieName } from '@authowl/core/native';
3
3
  import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { Locale, ServerErrorInput, MessageKey, MessageParams } from '@authowl/core/i18n';
@@ -167,6 +167,8 @@ declare function usePublicConfig(): {
167
167
  state: PublicConfigState;
168
168
  isLoading: boolean;
169
169
  };
170
+ /** Typed consent preferences and data-rights actions for the signed-in user. */
171
+ declare function usePrivacy(): PrivacyClient;
170
172
  /** The live session state, re-rendering whenever the session changes. */
171
173
  declare function useSession(): SessionState;
172
174
  interface UseAuthResult {
@@ -354,6 +356,12 @@ interface SignUpProps {
354
356
  /** Create an account with an email address and password. */
355
357
  declare function SignUp({ onSignedUp, structuredName, theme }: SignUpProps): react.JSX.Element | null;
356
358
 
359
+ interface PrivacyCenterProps {
360
+ theme?: AuthOwlTheme;
361
+ }
362
+ /** Manage optional consent and submit access, correction, export, or deletion requests. */
363
+ declare function PrivacyCenter({ theme }?: PrivacyCenterProps): react.JSX.Element;
364
+
357
365
  interface EmailOtpFormProps {
358
366
  onSignedIn?: () => void;
359
367
  theme?: AuthOwlTheme;
@@ -651,4 +659,4 @@ declare function useLocale(): {
651
659
  */
652
660
  declare function useServerError(): (error: ServerErrorInput | null | undefined, fallback: MessageKey) => string;
653
661
 
654
- export { type AuthOwlHeadlessNative, type AuthOwlNative, type AuthOwlNativeConfig, type AuthOwlNativeConfigWithPasskeys, type AuthOwlPasskeyNative, AuthOwlProvider, type AuthOwlProviderProps, type AuthOwlTheme, type CookieJarOptions, EmailOtpForm, type EmailOtpFormProps, Field, type FieldProps, FormError, MemoryStorage, type NativePasskeyAdapter, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyEnrollment, type PasskeyEnrollmentProps, PasskeySignInButton, type PasskeySignInButtonProps, type ProviderIdToken, type PublicConfigState, type SecureStorage, SignIn, type SignInProps, SignUp, type SignUpProps, SocialButtons, type SocialButtonsProps, type SocialProvider, SubmitButton, type SubmitButtonProps, type UseAuthResult, createAuthOwlNative, createCookieJarFetch, createNativePasskeys, createStyles, darkTheme, defaultTheme, readSetCookie, sessionStorageKey, signInWithSocialIdToken, useAuth, useAuthOwlClient, useAuthOwlLocale, useLocale, usePublicConfig, useServerError, useSession, useSocialSignIn, useStyles, useT, useUser };
662
+ export { type AuthOwlHeadlessNative, type AuthOwlNative, type AuthOwlNativeConfig, type AuthOwlNativeConfigWithPasskeys, type AuthOwlPasskeyNative, AuthOwlProvider, type AuthOwlProviderProps, type AuthOwlTheme, type CookieJarOptions, EmailOtpForm, type EmailOtpFormProps, Field, type FieldProps, FormError, MemoryStorage, type NativePasskeyAdapter, OrganizationSwitcher, type OrganizationSwitcherProps, PasskeyEnrollment, type PasskeyEnrollmentProps, PasskeySignInButton, type PasskeySignInButtonProps, PrivacyCenter, type PrivacyCenterProps, type ProviderIdToken, type PublicConfigState, type SecureStorage, SignIn, type SignInProps, SignUp, type SignUpProps, SocialButtons, type SocialButtonsProps, type SocialProvider, SubmitButton, type SubmitButtonProps, type UseAuthResult, createAuthOwlNative, createCookieJarFetch, createNativePasskeys, createStyles, darkTheme, defaultTheme, readSetCookie, sessionStorageKey, signInWithSocialIdToken, useAuth, useAuthOwlClient, useAuthOwlLocale, useLocale, usePrivacy, usePublicConfig, useServerError, useSession, useSocialSignIn, useStyles, useT, useUser };