@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/lib/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export { TelemetryReporter } from './telemetry/TelemetryReporter';
|
|
|
5
5
|
export { TelemetryContext } from './telemetry/TelemetryContext';
|
|
6
6
|
export { OfflineQueue } from './storage/offlineQueue';
|
|
7
7
|
export type { BundleManifest, ModelArtifact, FeatureVector, Detection as MLDetection, PolicyAST, PolicyResult, RuleResult, } from './ml/types';
|
|
8
|
-
export type { VerifyAIConfig, VerificationRequest, MultipartVerificationRequest, VerificationResult, VerificationListResponse, VerificationListParams, QueueItem, VerifyAIError, ScannerStatus, ScannerOverlayConfig, ScannerTheme, PolicyConfigResponse, } from './types';
|
|
8
|
+
export type { VerifyAIConfig, VerificationRequest, MultipartVerificationRequest, VerificationResult, VerificationListResponse, VerificationListParams, QueueItem, VerifyAIError, ScannerStatus, ScannerOverlayConfig, ScannerTheme, ScannerTelemetryContext, PolicyConfigResponse, } from './types';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { TextStyle } from 'react-native';
|
|
2
3
|
export interface VerifyAIConfig {
|
|
3
4
|
apiKey: string;
|
|
4
5
|
baseUrl?: string;
|
|
@@ -76,6 +77,13 @@ export interface VerifyAIError {
|
|
|
76
77
|
method?: string;
|
|
77
78
|
}
|
|
78
79
|
export type ScannerStatus = 'idle' | 'capturing' | 'processing' | 'success' | 'error';
|
|
80
|
+
/** Optional host-app context attached to scanner telemetry. */
|
|
81
|
+
export interface ScannerTelemetryContext {
|
|
82
|
+
/** Route or screen name from the host app. */
|
|
83
|
+
routeName?: string;
|
|
84
|
+
/** Whether the host app keeps this screen portrait-locked. */
|
|
85
|
+
isPortraitLocked?: boolean;
|
|
86
|
+
}
|
|
79
87
|
/**
|
|
80
88
|
* Theme customization for the scanner overlay.
|
|
81
89
|
*
|
|
@@ -92,6 +100,10 @@ export interface ScannerTheme {
|
|
|
92
100
|
captureButtonColor?: string;
|
|
93
101
|
/** Color for the guide frame corner brackets. Default: 'rgba(255, 255, 255, 0.7)'. */
|
|
94
102
|
cornerColor?: string;
|
|
103
|
+
/** Text style override for the scanner title. */
|
|
104
|
+
titleStyle?: TextStyle;
|
|
105
|
+
/** Text style override for feedback/instruction text. */
|
|
106
|
+
feedbackStyle?: TextStyle;
|
|
95
107
|
}
|
|
96
108
|
export interface ScannerOverlayConfig {
|
|
97
109
|
title?: string;
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.4.
|
|
1
|
+
export declare const SDK_VERSION = "2.4.16";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.4.
|
|
1
|
+
export const SDK_VERSION = '2.4.16';
|
package/package.json
CHANGED