@onairos/react-native 3.0.1 → 3.0.4
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/README.md +23 -3
- package/lib/commonjs/api/index.js +109 -86
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/components/OnairosButton.js +20 -13
- package/lib/commonjs/components/OnairosButton.js.map +1 -1
- package/lib/commonjs/components/Overlay.js +260 -108
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +30 -0
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js +28 -9
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js +6 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js.map +1 -1
- package/lib/commonjs/components/screens/ConnectorScreen.js +3 -2
- package/lib/commonjs/components/screens/ConnectorScreen.js.map +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/hooks/useConnections.js +77 -15
- package/lib/commonjs/hooks/useConnections.js.map +1 -1
- package/lib/commonjs/hooks/useCredentials.js +2 -0
- package/lib/commonjs/hooks/useCredentials.js.map +1 -1
- package/lib/commonjs/index.js +38 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/oauthService.js +26 -51
- package/lib/commonjs/services/oauthService.js.map +1 -1
- package/lib/commonjs/types/ambient.d.js +2 -0
- package/lib/commonjs/types/ambient.d.js.map +1 -0
- package/lib/commonjs/types/node-fix.d.js +2 -0
- package/lib/commonjs/types/node-fix.d.js.map +1 -0
- package/lib/commonjs/types/node-override.d.js +2 -0
- package/lib/commonjs/types/node-override.d.js.map +1 -0
- package/lib/commonjs/types/types.d.js +2 -0
- package/lib/commonjs/types/types.d.js.map +1 -0
- package/lib/commonjs/utils/encryption.js +8 -2
- package/lib/commonjs/utils/encryption.js.map +1 -1
- package/lib/commonjs/utils/secureStorage.js +148 -42
- package/lib/commonjs/utils/secureStorage.js.map +1 -1
- package/lib/module/api/index.js +109 -86
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/components/OnairosButton.js +21 -14
- package/lib/module/components/OnairosButton.js.map +1 -1
- package/lib/module/components/Overlay.js +260 -110
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +31 -1
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js +28 -9
- package/lib/module/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js +6 -1
- package/lib/module/components/onboarding/PlatformConnector.js.map +1 -1
- package/lib/module/components/screens/ConnectorScreen.js +3 -2
- package/lib/module/components/screens/ConnectorScreen.js.map +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/hooks/useConnections.js +77 -14
- package/lib/module/hooks/useConnections.js.map +1 -1
- package/lib/module/hooks/useCredentials.js +2 -0
- package/lib/module/hooks/useCredentials.js.map +1 -1
- package/lib/module/index.js +27 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/oauthService.js +26 -33
- package/lib/module/services/oauthService.js.map +1 -1
- package/lib/module/types/ambient.d.js +2 -0
- package/lib/module/types/ambient.d.js.map +1 -0
- package/lib/module/types/node-fix.d.js +2 -0
- package/lib/module/types/node-fix.d.js.map +1 -0
- package/lib/module/types/node-override.d.js +2 -0
- package/lib/module/types/node-override.d.js.map +1 -0
- package/lib/module/types/types.d.js +2 -0
- package/lib/module/types/types.d.js.map +1 -0
- package/lib/module/utils/encryption.js +8 -2
- package/lib/module/utils/encryption.js.map +1 -1
- package/lib/module/utils/secureStorage.js +149 -42
- package/lib/module/utils/secureStorage.js.map +1 -1
- package/lib/typescript/api/index.d.ts +8 -0
- package/lib/typescript/api/index.d.ts.map +1 -0
- package/lib/typescript/components/DataRequestModal.d.ts +11 -0
- package/lib/typescript/components/DataRequestModal.d.ts.map +1 -0
- package/lib/typescript/components/Onairos.d.ts +29 -0
- package/lib/typescript/components/Onairos.d.ts.map +1 -0
- package/lib/typescript/components/OnairosButton.d.ts +7 -0
- package/lib/typescript/components/OnairosButton.d.ts.map +1 -0
- package/lib/typescript/components/Overlay.d.ts +18 -0
- package/lib/typescript/components/Overlay.d.ts.map +1 -0
- package/lib/typescript/components/PinInput.d.ts +4 -0
- package/lib/typescript/components/PinInput.d.ts.map +1 -0
- package/lib/typescript/components/PlatformList.d.ts +4 -0
- package/lib/typescript/components/PlatformList.d.ts.map +1 -0
- package/lib/typescript/components/TrainingModal.d.ts +4 -0
- package/lib/typescript/components/TrainingModal.d.ts.map +1 -0
- package/lib/typescript/components/UniversalOnboarding.d.ts +4 -0
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +1 -0
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts +4 -0
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +1 -0
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +11 -0
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +1 -0
- package/lib/typescript/components/onboarding/PinInput.d.ts +4 -0
- package/lib/typescript/components/onboarding/PinInput.d.ts.map +1 -0
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts +13 -0
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +1 -0
- package/lib/typescript/components/screens/ConnectorScreen.d.ts +9 -0
- package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +1 -0
- package/lib/typescript/components/screens/LoadingScreen.d.ts +9 -0
- package/lib/typescript/components/screens/LoadingScreen.d.ts.map +1 -0
- package/lib/typescript/components/screens/PinCreationScreen.d.ts +10 -0
- package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +1 -0
- package/lib/typescript/constants/index.d.ts +52 -0
- package/lib/typescript/constants/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useConnections.d.ts +9 -0
- package/lib/typescript/hooks/useConnections.d.ts.map +1 -0
- package/lib/typescript/hooks/useCredentials.d.ts +9 -0
- package/lib/typescript/hooks/useCredentials.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +45 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/services/oauthService.d.ts +50 -0
- package/lib/typescript/services/oauthService.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +145 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +135 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils/api.d.ts +6 -0
- package/lib/typescript/utils/api.d.ts.map +1 -0
- package/lib/typescript/utils/auth.d.ts +6 -0
- package/lib/typescript/utils/auth.d.ts.map +1 -0
- package/lib/typescript/utils/crypto.d.ts +4 -0
- package/lib/typescript/utils/crypto.d.ts.map +1 -0
- package/lib/typescript/utils/debugHelper.d.ts +29 -0
- package/lib/typescript/utils/debugHelper.d.ts.map +1 -0
- package/lib/typescript/utils/encryption.d.ts +19 -0
- package/lib/typescript/utils/encryption.d.ts.map +1 -0
- package/lib/typescript/utils/onairosApi.d.ts +72 -0
- package/lib/typescript/utils/onairosApi.d.ts.map +1 -0
- package/lib/typescript/utils/secureStorage.d.ts +63 -0
- package/lib/typescript/utils/secureStorage.d.ts.map +1 -0
- package/package.json +16 -4
- package/src/api/index.ts +86 -101
- package/src/components/OnairosButton.tsx +22 -14
- package/src/components/Overlay.tsx +303 -138
- package/src/components/UniversalOnboarding.tsx +25 -0
- package/src/components/onboarding/OAuthWebView.tsx +27 -7
- package/src/components/onboarding/PlatformConnector.tsx +5 -0
- package/src/components/screens/ConnectorScreen.tsx +3 -2
- package/src/constants/index.ts +81 -81
- package/src/hooks/useConnections.ts +76 -16
- package/src/hooks/useCredentials.ts +5 -1
- package/src/index.ts +30 -3
- package/src/services/oauthService.ts +412 -419
- package/src/types/ambient.d.ts +29 -0
- package/src/types/index.d.ts +48 -8
- package/src/types/index.ts +21 -15
- package/src/types/node-fix.d.ts +19 -0
- package/src/types/node-override.d.ts +24 -0
- package/src/types/types.d.ts +18 -0
- package/src/types.ts +121 -1
- package/src/utils/encryption.ts +7 -2
- package/src/utils/secureStorage.ts +155 -56
- package/types/index.d.ts +210 -0
- package/types/node-env.d.ts +15 -0
package/README.md
CHANGED
|
@@ -21,6 +21,24 @@ npm install onairos-react-native
|
|
|
21
21
|
yarn add onairos-react-native
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
### TypeScript Support
|
|
25
|
+
|
|
26
|
+
The package includes full TypeScript declarations. Import types directly:
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { OnairosButton, OnairosCredentials, PlatformConfig } from 'onairos-react-native';
|
|
30
|
+
|
|
31
|
+
// Type your component props
|
|
32
|
+
const MyComponent: React.FC<{ credentials: OnairosCredentials }> = ({ credentials }) => {
|
|
33
|
+
// Your component code
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Type your handlers
|
|
37
|
+
const handleResolved = (apiUrl: string, accessToken: string, loginDetails: any) => {
|
|
38
|
+
console.log('Authentication successful:', { apiUrl, accessToken, loginDetails });
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
24
42
|
### Required Dependencies
|
|
25
43
|
|
|
26
44
|
The package requires the following dependencies:
|
|
@@ -53,7 +71,8 @@ cd ios && pod install
|
|
|
53
71
|
<dict>
|
|
54
72
|
<key>CFBundleURLSchemes</key>
|
|
55
73
|
<array>
|
|
56
|
-
<string>onairosreact</string>
|
|
74
|
+
<!-- <string>onairosreact</string> -->
|
|
75
|
+
<string>onairosanime</string>
|
|
57
76
|
</array>
|
|
58
77
|
</dict>
|
|
59
78
|
</array>
|
|
@@ -75,7 +94,8 @@ cd ios && pod install
|
|
|
75
94
|
<action android:name="android.intent.action.VIEW" />
|
|
76
95
|
<category android:name="android.intent.category.DEFAULT" />
|
|
77
96
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
78
|
-
<data android:scheme="onairosreact" />
|
|
97
|
+
<!-- <data android:scheme="onairosreact" /> -->
|
|
98
|
+
<data android:scheme="onairosanime" />
|
|
79
99
|
</intent-filter>
|
|
80
100
|
</activity>
|
|
81
101
|
```
|
|
@@ -279,7 +299,7 @@ yarn typecheck
|
|
|
279
299
|
### Building the Package
|
|
280
300
|
|
|
281
301
|
```bash
|
|
282
|
-
|
|
302
|
+
npm run build:all
|
|
283
303
|
```
|
|
284
304
|
|
|
285
305
|
### Testing with a Local App
|
|
@@ -5,116 +5,139 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.onairosApi = void 0;
|
|
7
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _constants = require("../constants");
|
|
8
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
// Check if running in development mode
|
|
12
|
+
const isDevelopmentMode = () => {
|
|
13
|
+
return __DEV__ || process.env.NODE_ENV === 'development';
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// Create mock response helper
|
|
17
|
+
const createMockResponse = data => {
|
|
18
|
+
return Promise.resolve({
|
|
19
|
+
data,
|
|
20
|
+
status: 200,
|
|
21
|
+
statusText: 'OK',
|
|
22
|
+
headers: {},
|
|
23
|
+
config: {}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// Create API instance
|
|
28
|
+
const apiInstance = _axios.default.create({
|
|
29
|
+
baseURL: _constants.API_ENDPOINTS.base,
|
|
30
|
+
timeout: 10000,
|
|
31
|
+
headers: {
|
|
32
|
+
'Content-Type': 'application/json',
|
|
33
|
+
'Accept': 'application/json'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// Add error handling interceptor
|
|
38
|
+
apiInstance.interceptors.response.use(response => response, error => {
|
|
39
|
+
if (isDevelopmentMode()) {
|
|
40
|
+
console.warn('API error in development mode, using fallback:', error);
|
|
41
|
+
return createMockResponse({
|
|
42
|
+
success: true,
|
|
43
|
+
data: {
|
|
44
|
+
mockData: true
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return Promise.reject(error);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// API service with Expo compatibility
|
|
12
52
|
const onairosApi = exports.onairosApi = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* Make a GET request to the API
|
|
16
|
-
* @param endpoint The endpoint to request
|
|
17
|
-
* @returns The response data
|
|
18
|
-
*/
|
|
19
|
-
get: async endpoint => {
|
|
53
|
+
// Core API methods with fallbacks
|
|
54
|
+
async get(url) {
|
|
20
55
|
try {
|
|
21
|
-
|
|
22
|
-
|
|
56
|
+
if (_reactNative.Platform.OS === 'web' && isDevelopmentMode()) {
|
|
57
|
+
return createMockResponse({
|
|
58
|
+
success: true,
|
|
59
|
+
data: {
|
|
60
|
+
mockData: true
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return await apiInstance.get(url);
|
|
23
65
|
} catch (error) {
|
|
24
|
-
console.error(`GET ${
|
|
66
|
+
console.error(`GET ${url} error:`, error);
|
|
67
|
+
if (isDevelopmentMode()) {
|
|
68
|
+
return createMockResponse({
|
|
69
|
+
success: true,
|
|
70
|
+
data: {
|
|
71
|
+
mockData: true
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
25
75
|
throw error;
|
|
26
76
|
}
|
|
27
77
|
},
|
|
28
|
-
|
|
29
|
-
* Make a POST request to the API
|
|
30
|
-
* @param endpoint The endpoint to request
|
|
31
|
-
* @param data The data to send
|
|
32
|
-
* @returns The response data
|
|
33
|
-
*/
|
|
34
|
-
post: async (endpoint, data) => {
|
|
78
|
+
async post(url, data) {
|
|
35
79
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
80
|
+
if (_reactNative.Platform.OS === 'web' && isDevelopmentMode()) {
|
|
81
|
+
return createMockResponse({
|
|
82
|
+
success: true,
|
|
83
|
+
data: {
|
|
84
|
+
mockData: true
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return await apiInstance.post(url, data);
|
|
38
89
|
} catch (error) {
|
|
39
|
-
console.error(`POST ${
|
|
90
|
+
console.error(`POST ${url} error:`, error);
|
|
91
|
+
if (isDevelopmentMode()) {
|
|
92
|
+
return createMockResponse({
|
|
93
|
+
success: true,
|
|
94
|
+
data: {
|
|
95
|
+
mockData: true
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
40
99
|
throw error;
|
|
41
100
|
}
|
|
42
101
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* @returns The server's public key
|
|
46
|
-
*/
|
|
47
|
-
getServerPublicKey: async () => {
|
|
102
|
+
// Helper methods for specific API endpoints
|
|
103
|
+
async validateCredentials(username) {
|
|
48
104
|
try {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
/**
|
|
57
|
-
* Validate credentials with the server
|
|
58
|
-
* @param username The username to validate
|
|
59
|
-
* @returns Whether the credentials are valid
|
|
60
|
-
*/
|
|
61
|
-
validateCredentials: async username => {
|
|
62
|
-
try {
|
|
63
|
-
const response = await onairosApi.post('validate', {
|
|
105
|
+
var _response$data;
|
|
106
|
+
if (isDevelopmentMode()) {
|
|
107
|
+
console.log('Using mock validation for:', username);
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
const response = await this.post('validate', {
|
|
64
111
|
username
|
|
65
112
|
});
|
|
66
|
-
return response.
|
|
113
|
+
return ((_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.success) || false;
|
|
67
114
|
} catch (error) {
|
|
68
115
|
console.error('Error validating credentials:', error);
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Get account information for a user
|
|
74
|
-
* @param username The username to get account info for
|
|
75
|
-
* @returns The account information
|
|
76
|
-
*/
|
|
77
|
-
getAccountInfo: async username => {
|
|
78
|
-
try {
|
|
79
|
-
const response = await onairosApi.post('getAccountInfo', {
|
|
80
|
-
Info: {
|
|
81
|
-
username
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
return response.AccountInfo;
|
|
85
|
-
} catch (error) {
|
|
86
|
-
console.error('Error getting account info:', error);
|
|
87
|
-
return null;
|
|
116
|
+
return isDevelopmentMode(); // Return true in dev mode to allow flow to continue
|
|
88
117
|
}
|
|
89
118
|
},
|
|
90
|
-
|
|
91
|
-
* Get API URL and token for a user
|
|
92
|
-
* @param params The parameters for the request
|
|
93
|
-
* @returns The API URL and token
|
|
94
|
-
*/
|
|
95
|
-
getApiUrl: async params => {
|
|
119
|
+
async getUserProfile(token) {
|
|
96
120
|
try {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
storage: 'local',
|
|
100
|
-
appId: params.appId,
|
|
101
|
-
confirmations: params.confirmations,
|
|
102
|
-
developerURL: 'devURL',
|
|
103
|
-
EncryptedUserPin: params.encryptedModelKey,
|
|
104
|
-
account: params.username,
|
|
105
|
-
proofMode: false
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
if (response && response.apiUrl && response.token) {
|
|
121
|
+
var _response$data2;
|
|
122
|
+
if (isDevelopmentMode()) {
|
|
109
123
|
return {
|
|
110
|
-
|
|
111
|
-
|
|
124
|
+
username: 'demo_user',
|
|
125
|
+
platforms: ['instagram', 'youtube'],
|
|
126
|
+
createdAt: Date.now()
|
|
112
127
|
};
|
|
113
|
-
} else {
|
|
114
|
-
throw new Error('Invalid response from getAPIUrlMobile');
|
|
115
128
|
}
|
|
129
|
+
apiInstance.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
|
130
|
+
const response = await this.get('user/profile');
|
|
131
|
+
return (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.data;
|
|
116
132
|
} catch (error) {
|
|
117
|
-
console.error('Error
|
|
133
|
+
console.error('Error fetching user profile:', error);
|
|
134
|
+
if (isDevelopmentMode()) {
|
|
135
|
+
return {
|
|
136
|
+
username: 'demo_user',
|
|
137
|
+
platforms: ['instagram', 'youtube'],
|
|
138
|
+
createdAt: Date.now()
|
|
139
|
+
};
|
|
140
|
+
}
|
|
118
141
|
throw error;
|
|
119
142
|
}
|
|
120
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_axios","_interopRequireDefault","require","e","__esModule","default","
|
|
1
|
+
{"version":3,"names":["_axios","_interopRequireDefault","require","_reactNative","_constants","e","__esModule","default","isDevelopmentMode","__DEV__","process","env","NODE_ENV","createMockResponse","data","Promise","resolve","status","statusText","headers","config","apiInstance","axios","create","baseURL","API_ENDPOINTS","base","timeout","interceptors","response","use","error","console","warn","success","mockData","reject","onairosApi","exports","get","url","Platform","OS","post","validateCredentials","username","_response$data","log","getUserProfile","token","_response$data2","platforms","createdAt","Date","now","defaults","common"],"sourceRoot":"..\\..\\..\\src","sources":["api/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAA6C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C;AACA,MAAMG,iBAAiB,GAAGA,CAAA,KAAM;EAC9B,OAAOC,OAAO,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,aAAa;AAC1D,CAAC;;AAED;AACA,MAAMC,kBAAkB,GAAOC,IAAO,IAAgC;EACpE,OAAOC,OAAO,CAACC,OAAO,CAAC;IAAEF,IAAI;IAAEG,MAAM,EAAE,GAAG;IAAEC,UAAU,EAAE,IAAI;IAAEC,OAAO,EAAE,CAAC,CAAC;IAAEC,MAA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AK,CAAC,+BAA+B,EAAEA,KAAK,CAAC;MACrD,OAAOvB,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC9B;EACF,CAAC;EAED,MAAMwC,cAAcA,CAACC,KAAa,EAAE;IAClC,IAAI;MAAA,IAAAC,eAAA;MACF,IAAI1C,iBAAiB,CAAC,CAAC,EAAE;QACvB,OAAO;UACLqC,QAAQ,EAAE,WAAW;UACrBM,SAAS,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;UACnCC,SAAS,EAAEC,IAAI,CAACC,GAAG,CAAC;QACtB,CAAC;MACH;MAEAjC,WAAW,CAACkC,QAAQ,CAACpC,OAAO,CAACqC,MAAM,CAAC,eAAe,CAAC,GAAG,UAAUP,KAAK,EAAE;MACxE,MAAMpB,QAAQ,GAAG,MAAM,IAAI,CAACU,GAAG,CAAC,cAAc,CAAC;MAC/C,QAAAW,eAAA,GAAOrB,QAAQ,CAACf,IAAI,cAAAoC,eAAA,uBAAbA,eAAA,CAAepC,IAAI;IAC5B,CAAC,CAAC,OAAOiB,KAAK,EAAE;MACdC,OAAO,CAACD,KAAK,CAAC,8BAA8B,EAAEA,KAAK,CAAC;MACpD,IAAIvB,iBAAiB,CAAC,CAAC,EAAE;QACvB,OAAO;UACLqC,QAAQ,EAAE,WAAW;UACrBM,SAAS,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;UACnCC,SAAS,EAAEC,IAAI,CAACC,GAAG,CAAC;QACtB,CAAC;MACH;MACA,MAAMvB,KAAK;IACb;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -47,6 +47,7 @@ const OnairosButton = ({
|
|
|
47
47
|
const shouldProceed = await preCheck();
|
|
48
48
|
if (!shouldProceed) {
|
|
49
49
|
onRejection === null || onRejection === void 0 || onRejection('Precheck validation failed');
|
|
50
|
+
setIsLoading(false);
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -56,32 +57,39 @@ const OnairosButton = ({
|
|
|
56
57
|
if (hasStoredCreds) {
|
|
57
58
|
// If credentials exist, fetch them and verify
|
|
58
59
|
const credentials = await (0, _secureStorage.getCredentials)();
|
|
59
|
-
if (!credentials || !credentials.username
|
|
60
|
+
if (!credentials || !credentials.username) {
|
|
60
61
|
// Invalid credentials, clear and start fresh
|
|
61
62
|
await (0, _secureStorage.deleteCredentials)();
|
|
62
63
|
setShowOnboarding(true);
|
|
64
|
+
setIsLoading(false);
|
|
63
65
|
return;
|
|
64
66
|
}
|
|
67
|
+
try {
|
|
68
|
+
// Validate credentials with server - catch errors here to prevent crashing
|
|
69
|
+
const isValid = await _api.onairosApi.validateCredentials(credentials.username);
|
|
70
|
+
if (!isValid) {
|
|
71
|
+
// Clear invalid credentials
|
|
72
|
+
await (0, _secureStorage.deleteCredentials)();
|
|
73
|
+
setShowOnboarding(true);
|
|
74
|
+
setIsLoading(false);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
65
77
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
// Store and display overlay with valid credentials
|
|
79
|
+
setStoredCredentials(credentials);
|
|
80
|
+
setShowOverlay(true);
|
|
81
|
+
} catch (validationError) {
|
|
82
|
+
console.warn('Validation error, proceeding to onboarding:', validationError);
|
|
71
83
|
setShowOnboarding(true);
|
|
72
|
-
return;
|
|
73
84
|
}
|
|
74
|
-
|
|
75
|
-
// Store and display overlay with valid credentials
|
|
76
|
-
setStoredCredentials(credentials);
|
|
77
|
-
setShowOverlay(true);
|
|
78
85
|
} else {
|
|
79
86
|
// If no credentials, show onboarding
|
|
80
87
|
setShowOnboarding(true);
|
|
81
88
|
}
|
|
82
89
|
} catch (error) {
|
|
83
90
|
console.error('Error during button press flow:', error);
|
|
84
|
-
|
|
91
|
+
// Fall back to onboarding on error
|
|
92
|
+
setShowOnboarding(true);
|
|
85
93
|
onRejection === null || onRejection === void 0 || onRejection(error instanceof Error ? error.message : 'Unknown error');
|
|
86
94
|
} finally {
|
|
87
95
|
setIsLoading(false);
|
|
@@ -130,7 +138,6 @@ const OnairosButton = ({
|
|
|
130
138
|
requestData: requestData,
|
|
131
139
|
returnLink: returnLink,
|
|
132
140
|
onComplete: handleOnboardingComplete,
|
|
133
|
-
preferredPlatform: preferredPlatform,
|
|
134
141
|
debug: debug,
|
|
135
142
|
test: testMode
|
|
136
143
|
}), showOverlay && storedCredentials && /*#__PURE__*/_react.default.createElement(_Overlay.Overlay, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_UniversalOnboarding","_Overlay","_secureStorage","_api","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OnairosButton","returnLink","prefillUrl","AppName","buttonType","requestData","buttonWidth","buttonHeight","hasStroke","enabled","buttonForm","onRejection","onResolved","preCheck","color","swerv","debug","preferredPlatform","testMode","showOnboarding","setShowOnboarding","useState","showOverlay","setShowOverlay","storedCredentials","setStoredCredentials","isLoading","setIsLoading","isDarkMode","handlePress","shouldProceed","hasStoredCreds","hasCredentials","credentials","getCredentials","username","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_UniversalOnboarding","_Overlay","_secureStorage","_api","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OnairosButton","returnLink","prefillUrl","AppName","buttonType","requestData","buttonWidth","buttonHeight","hasStroke","enabled","buttonForm","onRejection","onResolved","preCheck","color","swerv","debug","preferredPlatform","testMode","showOnboarding","setShowOnboarding","useState","showOverlay","setShowOverlay","storedCredentials","setStoredCredentials","isLoading","setIsLoading","isDarkMode","handlePress","shouldProceed","hasStoredCreds","hasCredentials","credentials","getCredentials","username","clearCredentials","isValid","onairosApi","validateCredentials","validationError","console","warn","error","Error","message","handleOnboardingComplete","useCallback","apiUrl","token","data","handleOverlayResolved","buttonStyle","styles","button","pillButton","strokedButton","width","height","backgroundColor","darkButton","lightButton","swervButton","disabledButton","filter","Boolean","textStyle","buttonText","lightText","darkText","disabledText","createElement","View","TouchableOpacity","style","onPress","disabled","accessibilityLabel","ActivityIndicator","size","Fragment","Text","UniversalOnboarding","visible","onClose","onComplete","test","Overlay","modelKey","userPin","exports","StyleSheet","create","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","borderRadius","borderWidth","borderColor","transform","rotate","opacity","fontSize","fontWeight","textAlign"],"sourceRoot":"..\\..\\..\\src","sources":["components/OnairosButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAGA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAAoC,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAA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