@onairos/react-native 3.2.0 → 3.3.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.
- package/lib/commonjs/components/UniversalOnboarding.js +24 -9
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/index.js +53 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +428 -0
- package/lib/commonjs/services/apiKeyService.js +4 -4
- package/lib/commonjs/services/apiKeyService.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +24 -9
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/services/SDK_API_KEY_VALIDATION.md +428 -0
- package/lib/module/services/apiKeyService.js +4 -4
- package/lib/module/services/apiKeyService.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +10 -5
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +6 -4
- package/lib/typescript/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/UniversalOnboarding.tsx +25 -6
- package/src/services/SDK_API_KEY_VALIDATION.md +428 -0
- package/src/services/apiKeyService.ts +5 -5
- package/src/types/index.d.ts +9 -9
- package/src/types/index.ts +10 -5
- package/src/types.ts +6 -4
- package/types/index.d.ts +11 -7
package/src/types.ts
CHANGED
|
@@ -88,8 +88,8 @@ export interface OnairosProps {
|
|
|
88
88
|
debug?: boolean;
|
|
89
89
|
/** Enable dark mode */
|
|
90
90
|
darkMode?: boolean;
|
|
91
|
-
/** Preferred platform for authentication */
|
|
92
|
-
preferredPlatform?: string;
|
|
91
|
+
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
92
|
+
preferredPlatform?: string | string[];
|
|
93
93
|
/** Enable test mode */
|
|
94
94
|
testMode?: boolean;
|
|
95
95
|
/** API Key Configuration (REQUIRED) */
|
|
@@ -127,7 +127,8 @@ export interface UniversalOnboardingProps {
|
|
|
127
127
|
testMode?: TestModeOptions | boolean;
|
|
128
128
|
buttonType?: 'default' | 'pill';
|
|
129
129
|
buttonForm?: 'signup' | 'login';
|
|
130
|
-
|
|
130
|
+
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
131
|
+
preferredPlatform?: string | string[];
|
|
131
132
|
inferenceData?: any; // Data used for AI inference API requests
|
|
132
133
|
auto?: boolean; // If true, use inferenceData for automatic API requests
|
|
133
134
|
partner?: string; // Partner identifier (e.g., "couplebible")
|
|
@@ -170,7 +171,8 @@ export interface OnairosButtonProps {
|
|
|
170
171
|
swerv?: boolean;
|
|
171
172
|
debug?: boolean;
|
|
172
173
|
darkMode?: boolean;
|
|
173
|
-
|
|
174
|
+
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
175
|
+
preferredPlatform?: string | string[];
|
|
174
176
|
testMode?: boolean;
|
|
175
177
|
autoFetch?: boolean;
|
|
176
178
|
inferenceData?: any; // Data used for AI inference API requests
|
package/types/index.d.ts
CHANGED
|
@@ -68,9 +68,13 @@ export interface OnairosButtonProps {
|
|
|
68
68
|
buttonType?: 'normal' | 'pill';
|
|
69
69
|
/** Data request tiers */
|
|
70
70
|
requestData?: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
[key: string]: {
|
|
72
|
+
name?: string;
|
|
73
|
+
type?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
descriptions?: string;
|
|
76
|
+
reward: string;
|
|
77
|
+
};
|
|
74
78
|
};
|
|
75
79
|
/** Button width in pixels */
|
|
76
80
|
buttonWidth?: number;
|
|
@@ -161,10 +165,10 @@ export interface PlatformConfig {
|
|
|
161
165
|
}
|
|
162
166
|
|
|
163
167
|
// Main components
|
|
164
|
-
export const Onairos: React.
|
|
165
|
-
export const OnairosButton: React.
|
|
166
|
-
export const OnairosOverlay: React.
|
|
167
|
-
export const UniversalOnboarding: React.
|
|
168
|
+
export const Onairos: React.ForwardRefExoticComponent<OnairosButtonProps & React.RefAttributes<any>>;
|
|
169
|
+
export const OnairosButton: React.ForwardRefExoticComponent<OnairosButtonProps & React.RefAttributes<any>>;
|
|
170
|
+
export const OnairosOverlay: React.FC<OverlayProps>;
|
|
171
|
+
export const UniversalOnboarding: React.FC<UniversalOnboardingProps>;
|
|
168
172
|
|
|
169
173
|
// Utility functions
|
|
170
174
|
export function initializeOAuthService(): void;
|