@ollaid/native-sso 2.1.5 → 2.6.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.
Files changed (41) hide show
  1. package/README.md +398 -63
  2. package/dist/components/AvatarCropModal.d.ts +16 -0
  3. package/dist/components/DebugPanel.d.ts +7 -2
  4. package/dist/components/LoginModal.d.ts +2 -2
  5. package/dist/components/NativeSSOPage.d.ts +11 -3
  6. package/dist/components/OnboardingModal.d.ts +14 -7
  7. package/dist/components/PasswordRecoveryModal.d.ts +1 -1
  8. package/dist/components/PhoneInput.d.ts +2 -1
  9. package/dist/components/SignupModal.d.ts +1 -1
  10. package/dist/components/ui.d.ts +4 -2
  11. package/dist/hooks/useLogout.d.ts +1 -1
  12. package/dist/hooks/useMobilePassword.d.ts +1 -1
  13. package/dist/hooks/useMobileRegistration.d.ts +2 -2
  14. package/dist/hooks/useNativeAuth.d.ts +8 -5
  15. package/dist/hooks/useTokenHealthCheck.d.ts +11 -1
  16. package/dist/index-Bpixveaz.js +489 -0
  17. package/dist/index-Bpixveaz.js.map +1 -0
  18. package/dist/index-DDOXM37y.cjs +488 -0
  19. package/dist/index-DDOXM37y.cjs.map +1 -0
  20. package/dist/index.cjs +9231 -414
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.ts +8 -5
  23. package/dist/index.js +9232 -415
  24. package/dist/index.js.map +1 -1
  25. package/dist/provider.d.ts +4 -1
  26. package/dist/services/api.d.ts +76 -7
  27. package/dist/services/debugLogger.d.ts +1 -1
  28. package/dist/services/iamAccount.d.ts +1 -1
  29. package/dist/services/mobilePassword.d.ts +1 -1
  30. package/dist/services/mobileRegistration.d.ts +1 -1
  31. package/dist/services/nativeAuth.d.ts +3 -2
  32. package/dist/services/profile.d.ts +31 -0
  33. package/dist/services/profileChange.d.ts +30 -0
  34. package/dist/services/profileMedia.d.ts +16 -0
  35. package/dist/types/mobile.d.ts +1 -1
  36. package/dist/types/native.d.ts +23 -1
  37. package/dist/web-BQDVoI6q.cjs +146 -0
  38. package/dist/web-BQDVoI6q.cjs.map +1 -0
  39. package/dist/web-DPmAPlXS.js +146 -0
  40. package/dist/web-DPmAPlXS.js.map +1 -0
  41. package/package.json +11 -4
package/dist/index.d.ts CHANGED
@@ -4,12 +4,12 @@
4
4
  * Usage rapide :
5
5
  * ```tsx
6
6
  * import { NativeSSOPage } from '@ollaid/native-sso';
7
- * <Route path="/auth/sso" element={
7
+ * <Route path="/auth/native-sso" element={
8
8
  * <NativeSSOPage saasApiUrl="..." iamApiUrl="..." onLoginSuccess={(t, u) => {}} />
9
9
  * } />
10
10
  * ```
11
11
  *
12
- * @version 2.1.4
12
+ * @version 2.6.0
13
13
  */
14
14
  export { NativeSSOPage } from './components/NativeSSOPage';
15
15
  export type { NativeSSOPageProps } from './components/NativeSSOPage';
@@ -37,8 +37,11 @@ export { useMobilePassword } from './hooks/useMobilePassword';
37
37
  export { useMobileRegistration } from './hooks/useMobileRegistration';
38
38
  export { nativeAuthService } from './services/nativeAuth';
39
39
  export { mobilePasswordService } from './services/mobilePassword';
40
+ export { profileChangeService } from './services/profileChange';
41
+ export { profileMediaService } from './services/profileMedia';
40
42
  export { iamAccountService } from './services/iamAccount';
41
- export { setNativeAuthConfig, getNativeAuthConfig, ApiError, getAuthToken, getAuthUser, getAccountType, clearAuthToken, logout } from './services/api';
42
- export type { NativeAuthConfig, ApiErrorType } from './services/api';
43
- export type { NativeAuthType, NativeAuthStatus, AccountType, RegistrationType, NativeCredentials, NativeEncryptRequest, NativeEncryptResponse, NativeConfigResponse, NativeInitResponse, NativeValidateResponse, NativeGrantAccessResponse, NativeResendOtpResponse, NativeExchangeResponse, NativeUser, NativeAuthState, UserInfos, LinkPhoneRequest, LinkPhoneResponse, LinkEmailRequest, LinkEmailResponse, RefreshUserInfoSingleRequest, RefreshUserInfoSingleResponse, RefreshUserInfoBulkRequest, RefreshUserInfoBulkResponse, UpdateAvatarRequest, UpdateAvatarResponse, ResetAvatarRequest, ResetAvatarResponse, CheckTokenResponse, } from './types/native';
43
+ export { setNativeAuthConfig, getNativeAuthConfig, setNativeStorage, getNativeStorage, ApiError, getAuthToken, getAuthUser, getAccountType, clearAuthToken, logout, getSsoSessionSnapshot, hasSsoSession, getDeviceId, getSessionUuid, STORAGE_KEYS, PROFILE_PROMPT_KEYS, getProfilePromptState, setProfilePromptState, markProfilePromptComplete, snoozeProfilePrompt, } from './services/api';
44
+ export type { NativeAuthConfig, NativeStorageAdapter, ApiErrorType, ProfilePromptState } from './services/api';
45
+ export type { SsoSessionSnapshot } from './services/api';
46
+ export type { NativeAuthType, NativeAuthStatus, AccountType, RegistrationType, NativeCredentials, NativeEncryptRequest, NativeEncryptResponse, NativeConfigResponse, NativeInitResponse, NativeValidateResponse, NativeGrantAccessResponse, NativeResendOtpResponse, NativeExchangeResponse, NativeRefreshResponse, NativeUser, NativeAuthState, UserInfos, LinkPhoneRequest, LinkPhoneResponse, LinkEmailRequest, LinkEmailResponse, RefreshUserInfoSingleRequest, RefreshUserInfoSingleResponse, RefreshUserInfoBulkRequest, RefreshUserInfoBulkResponse, UpdateAvatarRequest, UpdateAvatarResponse, ResetAvatarRequest, ResetAvatarResponse, CheckTokenResponse, } from './types/native';
44
47
  export type { MobilePasswordState, MobilePasswordStatus, } from './types/mobile';