@switchlabs/verify-ai-react-native 2.4.14 → 2.4.16

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/index.ts CHANGED
@@ -39,5 +39,6 @@ export type {
39
39
  ScannerStatus,
40
40
  ScannerOverlayConfig,
41
41
  ScannerTheme,
42
+ ScannerTelemetryContext,
42
43
  PolicyConfigResponse,
43
44
  } from './types';
@@ -1,4 +1,5 @@
1
1
  import type React from 'react';
2
+ import type { TextStyle } from 'react-native';
2
3
 
3
4
  export interface VerifyAIConfig {
4
5
  apiKey: string;
@@ -87,6 +88,14 @@ export interface VerifyAIError {
87
88
 
88
89
  export type ScannerStatus = 'idle' | 'capturing' | 'processing' | 'success' | 'error';
89
90
 
91
+ /** Optional host-app context attached to scanner telemetry. */
92
+ export interface ScannerTelemetryContext {
93
+ /** Route or screen name from the host app. */
94
+ routeName?: string;
95
+ /** Whether the host app keeps this screen portrait-locked. */
96
+ isPortraitLocked?: boolean;
97
+ }
98
+
90
99
  /**
91
100
  * Theme customization for the scanner overlay.
92
101
  *
@@ -103,6 +112,10 @@ export interface ScannerTheme {
103
112
  captureButtonColor?: string;
104
113
  /** Color for the guide frame corner brackets. Default: 'rgba(255, 255, 255, 0.7)'. */
105
114
  cornerColor?: string;
115
+ /** Text style override for the scanner title. */
116
+ titleStyle?: TextStyle;
117
+ /** Text style override for feedback/instruction text. */
118
+ feedbackStyle?: TextStyle;
106
119
  }
107
120
 
108
121
  export interface ScannerOverlayConfig {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = '2.4.14';
1
+ export const SDK_VERSION = '2.4.16';