@onairos/react-native 3.0.63 → 3.0.65

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.
@@ -33,6 +33,16 @@ export interface OnairosButtonProps {
33
33
  darkMode?: boolean;
34
34
  }
35
35
 
36
+ export interface TestModeOptions {
37
+ // Simple 2-flow system
38
+ existingUser?: boolean; // Flow 1: Email → Code → Data Request → Close (return API URL)
39
+ newUser?: boolean; // Flow 2: Email → Code → Platform Connect → PIN → Training → Complete
40
+
41
+ // Optional tweaks
42
+ fastTraining?: boolean; // Speed up training simulation
43
+ skipRealConnections?: boolean; // Allow mock platform connections
44
+ }
45
+
36
46
  export interface UniversalOnboardingProps {
37
47
  visible: boolean;
38
48
  onClose: () => void;
@@ -48,7 +58,7 @@ export interface UniversalOnboardingProps {
48
58
  onComplete: (apiUrl: string, token: string, userData: any) => void;
49
59
  preferredPlatform?: string;
50
60
  debug?: boolean;
51
- test?: boolean;
61
+ test?: boolean | TestModeOptions; // Enhanced test mode with options
52
62
  embedd?: boolean;
53
63
  }
54
64
 
@@ -83,6 +93,7 @@ export interface TrainingModalProps {
83
93
  onComplete?: () => void;
84
94
  modelKey?: string;
85
95
  username?: string;
96
+ test?: boolean; // Enable test mode for simulated training
86
97
  }
87
98
 
88
99
  export interface OAuthWebViewProps {
package/src/types.ts CHANGED
@@ -10,6 +10,16 @@ export interface DataRequest {
10
10
  reward: string;
11
11
  }
12
12
 
13
+ export interface TestModeOptions {
14
+ // Simple 2-flow system
15
+ existingUser?: boolean; // Flow 1: Email → Code → Data Request → Close (return API URL)
16
+ newUser?: boolean; // Flow 2: Email → Code → Platform Connect → PIN → Training → Complete
17
+
18
+ // Optional tweaks
19
+ fastTraining?: boolean; // Speed up training simulation
20
+ skipRealConnections?: boolean; // Allow mock platform connections
21
+ }
22
+
13
23
  export interface UniversalOnboardingProps {
14
24
  visible: boolean;
15
25
  onClose: () => void;
@@ -29,7 +39,7 @@ export interface UniversalOnboardingProps {
29
39
  onComplete: (apiUrl: string, token: string, data: any) => void;
30
40
  embedd?: boolean;
31
41
  debug?: boolean;
32
- test?: boolean;
42
+ test?: boolean | TestModeOptions; // Enhanced test mode with options
33
43
  buttonType?: 'default' | 'pill';
34
44
  buttonForm?: 'signup' | 'login';
35
45
  preferredPlatform?: string;
@@ -120,6 +130,7 @@ export interface TrainingModalProps {
120
130
  onComplete?: () => void;
121
131
  modelKey?: string;
122
132
  username?: string;
133
+ test?: boolean; // Enable test mode for simulated training
123
134
  }
124
135
 
125
136
  export interface OAuthWebViewProps {