@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/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
- preferredPlatform?: string;
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
- preferredPlatform?: string;
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
- Small: DataTier;
72
- Medium: DataTier;
73
- Large: DataTier;
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.ComponentType<OnairosButtonProps>;
165
- export const OnairosButton: React.ComponentType<OnairosButtonProps>;
166
- export const OnairosOverlay: React.ComponentType<OverlayProps>;
167
- export const UniversalOnboarding: React.ComponentType<UniversalOnboardingProps>;
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;