@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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type ViewStyle } from 'react-native';
3
- import type { VerificationResult, ScannerOverlayConfig } from '../types';
3
+ import type { VerificationResult, ScannerOverlayConfig, ScannerTelemetryContext } from '../types';
4
4
  import type { TelemetryReporter } from '../telemetry/TelemetryReporter';
5
5
  export interface VerifyAIScannerProps {
6
6
  /** Called with base64 image data when the user captures a photo. */
@@ -27,6 +27,8 @@ export interface VerifyAIScannerProps {
27
27
  enableTorch?: boolean;
28
28
  /** Optional telemetry reporter (falls back to TelemetryContext). */
29
29
  telemetry?: TelemetryReporter | null;
30
+ /** Optional host-app context attached to scanner telemetry. */
31
+ telemetryContext?: ScannerTelemetryContext;
30
32
  }
31
33
  /**
32
34
  * Camera scanner component for capturing verification photos.
@@ -49,4 +51,4 @@ export interface VerifyAIScannerProps {
49
51
  * />
50
52
  * ```
51
53
  */
52
- export declare function VerifyAIScanner({ onCapture, policy, onResult, onError, onClose, overlay: overlayProp, style, showCaptureButton, showCloseButton, captureRef, enableTorch, telemetry: telemetryProp, }: VerifyAIScannerProps): import("react/jsx-runtime").JSX.Element;
54
+ export declare function VerifyAIScanner({ onCapture, policy, onResult, onError, onClose, overlay: overlayProp, style, showCaptureButton, showCloseButton, captureRef, enableTorch, telemetry: telemetryProp, telemetryContext, }: VerifyAIScannerProps): import("react/jsx-runtime").JSX.Element;