@onairos/react-native 3.0.53 → 3.0.54
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/lib/module/index.js +70 -8
- package/lib/module/index.js.map +1 -1
- package/package.json +1 -1
package/lib/module/index.js
CHANGED
|
@@ -1,11 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Onairos React Native SDK
|
|
3
|
+
* A React Native implementation for Onairos personalized data integration
|
|
4
|
+
*/
|
|
5
5
|
|
|
6
|
-
// Export
|
|
7
|
-
export default OnairosButton;
|
|
6
|
+
// Export types first to avoid circular dependencies
|
|
8
7
|
|
|
9
|
-
// Export
|
|
10
|
-
export {
|
|
8
|
+
// Export constants
|
|
9
|
+
export { COLORS, PLATFORMS, API_ENDPOINTS, STORAGE_KEYS, PIN_REQUIREMENTS, DEEP_LINK_CONFIG } from './constants';
|
|
10
|
+
|
|
11
|
+
// Export utilities
|
|
12
|
+
export { storeCredentials, getCredentials, hasCredentials, deleteCredentials, updateCredentials, generateDeviceUsername, verifyCredentials } from './utils/secureStorage';
|
|
13
|
+
export { validateCredentials, createAccount, authenticate, refreshToken, getPlatformData, getUserProfile, updatePlatformConnections } from './utils/onairosApi';
|
|
14
|
+
export { rsaEncrypt, sha256, base64ToBuffer } from './utils/crypto';
|
|
15
|
+
export { logDebug, logError, isDebugMode } from './utils/debugHelper';
|
|
16
|
+
|
|
17
|
+
// Export services
|
|
18
|
+
export { connectPlatform, initializeOAuthService, cleanupOAuthService, storePlatformConnection } from './services/oauthService';
|
|
19
|
+
export { updateGoogleClientIds, refreshYouTubeTokens, hasNativeSDK, testApiConnectivity, requestEmailVerification, verifyEmailCode, checkEmailVerificationStatus, disconnectPlatform } from './services/platformAuthService';
|
|
20
|
+
|
|
21
|
+
// Export API and Services
|
|
22
|
+
export { onairosApi } from './api';
|
|
23
|
+
export { OAuthService } from './services/oauthService';
|
|
24
|
+
export * from './utils/secureStorage';
|
|
25
|
+
export * from './utils/encryption';
|
|
26
|
+
|
|
27
|
+
// Export hooks
|
|
28
|
+
export { useCredentials } from './hooks/useCredentials';
|
|
29
|
+
export { useConnections } from './hooks/useConnections';
|
|
30
|
+
|
|
31
|
+
// Export Portal components
|
|
32
|
+
export { Portal, PortalHost } from './utils/Portal';
|
|
33
|
+
|
|
34
|
+
// Screen Components
|
|
35
|
+
export { ConnectorScreen } from './components/screens/ConnectorScreen';
|
|
36
|
+
export { PinCreationScreen } from './components/screens/PinCreationScreen';
|
|
37
|
+
export { LoadingScreen } from './components/screens/LoadingScreen';
|
|
38
|
+
|
|
39
|
+
// Onboarding Components
|
|
40
|
+
export { OAuthWebView } from './components/onboarding/OAuthWebView';
|
|
41
|
+
export { PlatformConnector } from './components/onboarding/PlatformConnector';
|
|
42
|
+
export { OnboardingHeader } from './components/onboarding/OnboardingHeader';
|
|
43
|
+
|
|
44
|
+
// Core Components - Export these last to avoid circular dependencies
|
|
45
|
+
export { PlatformList } from './components/PlatformList';
|
|
46
|
+
export { PinInput } from './components/PinInput';
|
|
47
|
+
export { TrainingModal } from './components/TrainingModal';
|
|
48
|
+
export { EmailVerificationModal } from './components/EmailVerificationModal';
|
|
49
|
+
export { Overlay } from './components/Overlay';
|
|
50
|
+
export { UniversalOnboarding } from './components/UniversalOnboarding';
|
|
51
|
+
export { OnairosButton } from './components/OnairosButton';
|
|
52
|
+
export { Onairos } from './components/Onairos';
|
|
53
|
+
|
|
54
|
+
// Define the public components for default export
|
|
55
|
+
|
|
56
|
+
import { Onairos } from './components/Onairos';
|
|
57
|
+
import { OnairosButton } from './components/OnairosButton';
|
|
58
|
+
import { Overlay } from './components/Overlay';
|
|
59
|
+
import { UniversalOnboarding } from './components/UniversalOnboarding';
|
|
60
|
+
import { PortalHost } from './utils/Portal';
|
|
61
|
+
|
|
62
|
+
// Simple default export object - main types are available through named exports
|
|
63
|
+
const components = {
|
|
64
|
+
Onairos: Onairos,
|
|
65
|
+
OnairosButton: OnairosButton,
|
|
66
|
+
OnairosOverlay: Overlay,
|
|
67
|
+
UniversalOnboarding: UniversalOnboarding,
|
|
68
|
+
PortalHost: PortalHost
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// Export the components as the default export
|
|
72
|
+
export default components;
|
|
11
73
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OnairosButton","
|
|
1
|
+
{"version":3,"names":["COLORS","PLATFORMS","API_ENDPOINTS","STORAGE_KEYS","PIN_REQUIREMENTS","DEEP_LINK_CONFIG","storeCredentials","getCredentials","hasCredentials","deleteCredentials","updateCredentials","generateDeviceUsername","verifyCredentials","validateCredentials","createAccount","authenticate","refreshToken","getPlatformData","getUserProfile","updatePlatformConnections","rsaEncrypt","sha256","base64ToBuffer","logDebug","logError","isDebugMode","connectPlatform","initializeOAuthService","cleanupOAuthService","storePlatformConnection","updateGoogleClientIds","refreshYouTubeTokens","hasNativeSDK","testApiConnectivity","requestEmailVerification","verifyEmailCode","checkEmailVerificationStatus","disconnectPlatform","onairosApi","OAuthService","useCredentials","useConnections","Portal","PortalHost","ConnectorScreen","PinCreationScreen","LoadingScreen","OAuthWebView","PlatformConnector","OnboardingHeader","PlatformList","PinInput","TrainingModal","EmailVerificationModal","Overlay","UniversalOnboarding","OnairosButton","Onairos","components","OnairosOverlay"],"sourceRoot":"..\\..\\src","sources":["index.ts"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;;AAwBA;AACA,SAASA,MAAM,EAAEC,SAAS,EAAEC,aAAa,EAAEC,YAAY,EAAEC,gBAAgB,EAAEC,gBAAgB,QAAQ,aAAa;;AAEhH;AACA,SACEC,gBAAgB,EAChBC,cAAc,EACdC,cAAc,EACdC,iBAAiB,EACjBC,iBAAiB,EACjBC,sBAAsB,EACtBC,iBAAiB,QACZ,uBAAuB;AAE9B,SACEC,mBAAmB,EACnBC,aAA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