@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/lib/components/VerifyAIScanner.d.ts +4 -2
- package/lib/components/VerifyAIScanner.js +371 -44
- package/lib/index.d.ts +1 -1
- package/lib/types/index.d.ts +12 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/components/VerifyAIScanner.tsx +432 -44
- package/src/index.ts +1 -0
- package/src/types/index.ts +13 -0
- package/src/version.ts +1 -1
package/src/index.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -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.
|
|
1
|
+
export const SDK_VERSION = '2.4.16';
|