@sudobility/auth-components-rn 1.0.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.
Files changed (42) hide show
  1. package/dist/AuthAction.d.ts +7 -0
  2. package/dist/AuthAction.d.ts.map +1 -0
  3. package/dist/AuthInline.d.ts +7 -0
  4. package/dist/AuthInline.d.ts.map +1 -0
  5. package/dist/AuthProvider.d.ts +15 -0
  6. package/dist/AuthProvider.d.ts.map +1 -0
  7. package/dist/AuthScreen.d.ts +7 -0
  8. package/dist/AuthScreen.d.ts.map +1 -0
  9. package/dist/Avatar.d.ts +8 -0
  10. package/dist/Avatar.d.ts.map +1 -0
  11. package/dist/EmailSignInForm.d.ts +7 -0
  12. package/dist/EmailSignInForm.d.ts.map +1 -0
  13. package/dist/EmailSignUpForm.d.ts +7 -0
  14. package/dist/EmailSignUpForm.d.ts.map +1 -0
  15. package/dist/ForgotPasswordForm.d.ts +7 -0
  16. package/dist/ForgotPasswordForm.d.ts.map +1 -0
  17. package/dist/ProviderButtons.d.ts +7 -0
  18. package/dist/ProviderButtons.d.ts.map +1 -0
  19. package/dist/index.cjs.js +1850 -0
  20. package/dist/index.cjs.js.map +1 -0
  21. package/dist/index.d.ts +15 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.esm.js +1850 -0
  24. package/dist/index.esm.js.map +1 -0
  25. package/dist/types.d.ts +313 -0
  26. package/dist/types.d.ts.map +1 -0
  27. package/package.json +64 -0
  28. package/src/AuthAction.tsx +107 -0
  29. package/src/AuthInline.tsx +124 -0
  30. package/src/AuthProvider.tsx +276 -0
  31. package/src/AuthScreen.tsx +117 -0
  32. package/src/Avatar.tsx +86 -0
  33. package/src/EmailSignInForm.tsx +130 -0
  34. package/src/EmailSignUpForm.tsx +161 -0
  35. package/src/ForgotPasswordForm.tsx +129 -0
  36. package/src/ProviderButtons.tsx +106 -0
  37. package/src/__tests__/AuthAction.test.tsx +261 -0
  38. package/src/__tests__/AuthProvider.test.tsx +459 -0
  39. package/src/__tests__/Avatar.test.tsx +165 -0
  40. package/src/index.ts +52 -0
  41. package/src/nativewind.d.ts +30 -0
  42. package/src/types.ts +383 -0
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { AuthActionProps } from './types';
3
+ /**
4
+ * Authentication action component for app headers
5
+ */
6
+ export declare const AuthAction: React.FC<AuthActionProps>;
7
+ //# sourceMappingURL=AuthAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthAction.d.ts","sourceRoot":"","sources":["../src/AuthAction.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4FhD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { AuthInlineProps } from './types';
3
+ /**
4
+ * Inline authentication component
5
+ */
6
+ export declare const AuthInline: React.FC<AuthInlineProps>;
7
+ //# sourceMappingURL=AuthInline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthInline.d.ts","sourceRoot":"","sources":["../src/AuthInline.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,SAAS,CAAC;AAOzD;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0GhD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { AuthErrorTexts, AuthContextValue, AuthProviderProps } from './types';
3
+ /**
4
+ * Default English error texts
5
+ */
6
+ export declare function createDefaultErrorTexts(): AuthErrorTexts;
7
+ /**
8
+ * Hook to access auth context
9
+ */
10
+ export declare function useAuthStatus(): AuthContextValue;
11
+ /**
12
+ * Auth provider component for React Native
13
+ */
14
+ export declare function AuthProvider({ children, providerConfig, texts, errorTexts, callbacks, resolveErrorMessage, }: AuthProviderProps): React.ReactElement;
15
+ //# sourceMappingURL=AuthProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../src/AuthProvider.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAEV,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAIjB;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,cAAc,CAkBxD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,gBAAgB,CAMhD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,cAAc,EACd,KAAK,EACL,UAAU,EACV,SAAS,EACT,mBAAmB,GACpB,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CAkNxC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { AuthScreenProps } from './types';
3
+ /**
4
+ * Full-screen authentication component
5
+ */
6
+ export declare const AuthScreen: React.FC<AuthScreenProps>;
7
+ //# sourceMappingURL=AuthScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthScreen.d.ts","sourceRoot":"","sources":["../src/AuthScreen.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,SAAS,CAAC;AAOzD;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmGhD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { AvatarProps } from './types';
4
+ /**
5
+ * Avatar component with photo URL and initials fallback
6
+ */
7
+ export declare const Avatar: React.FC<AvatarProps & ViewProps>;
8
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../src/Avatar.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmB3C;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG,SAAS,CAwDpD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { EmailSignInFormProps } from './types';
3
+ /**
4
+ * Email sign-in form component
5
+ */
6
+ export declare const EmailSignInForm: React.FC<EmailSignInFormProps>;
7
+ //# sourceMappingURL=EmailSignInForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailSignInForm.d.ts","sourceRoot":"","sources":["../src/EmailSignInForm.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoH1D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { EmailSignUpFormProps } from './types';
3
+ /**
4
+ * Email sign-up form component
5
+ */
6
+ export declare const EmailSignUpForm: React.FC<EmailSignUpFormProps>;
7
+ //# sourceMappingURL=EmailSignUpForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailSignUpForm.d.ts","sourceRoot":"","sources":["../src/EmailSignUpForm.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmJ1D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { ForgotPasswordFormProps } from './types';
3
+ /**
4
+ * Forgot password form component
5
+ */
6
+ export declare const ForgotPasswordForm: React.FC<ForgotPasswordFormProps>;
7
+ //# sourceMappingURL=ForgotPasswordForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForgotPasswordForm.d.ts","sourceRoot":"","sources":["../src/ForgotPasswordForm.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGvD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmHhE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { ProviderButtonsProps } from './types';
3
+ /**
4
+ * Provider buttons component for OAuth and email sign-in
5
+ */
6
+ export declare const ProviderButtons: React.FC<ProviderButtonsProps>;
7
+ //# sourceMappingURL=ProviderButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProviderButtons.d.ts","sourceRoot":"","sources":["../src/ProviderButtons.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,SAAS,CAAC;AA+CtE;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgD1D,CAAC"}