@exige/web-scanner-sdk 0.2.38 → 0.2.40

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/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export type { Pdf417DecodeResult, Pdf417DecodeSource } from './sdk/barcode';
22
22
  export { parseAamvaDate, parseAamvaPayload, } from './sdk/aamva';
23
23
  export type { AamvaParseResult, DriverLicenseFieldKey, DriverLicenseFieldSource, DriverLicenseFields, ScanUseCase, } from './sdk/aamva';
24
24
  export { driverLicenseFieldsFromOcr, driverLicenseHoldStillMs, driverLicensePrompt, mergeDriverLicenseFields, startDriverLicenseSession, } from './sdk/driver-license';
25
- export type { DriverLicenseResult, DriverLicenseSession, DriverLicenseSessionOptions, DriverLicenseStatus, DriverLicenseStep, } from './sdk/driver-license';
25
+ export type { DriverLicensePromptSide, DriverLicenseResult, DriverLicenseSession, DriverLicenseSessionOptions, DriverLicenseStatus, DriverLicenseStep, } from './sdk/driver-license';
26
26
  export { applyRedactions } from './sdk/redact';
27
27
  export type { RedactResult } from './sdk/redact';
28
28
  export { matchRedactionRules, redactProgrammatically } from './sdk/programmatic-redaction';
@@ -8,4 +8,5 @@ export declare function overlayGuidanceText(input: {
8
8
  guidanceHint?: string;
9
9
  guidanceReason?: FinderGuidanceReason;
10
10
  licenseHeadline?: string;
11
+ licenseFlipCue?: boolean;
11
12
  }): string | undefined;
@@ -94,8 +94,8 @@ export interface ScannerState {
94
94
  frozenPreviewUrl?: string;
95
95
  /** Present when `useCase` is `drivers-license`. */
96
96
  useCase: ScanUseCase;
97
- /** Current side of a driver’s license session. */
98
- licenseSide?: 'front' | 'back';
97
+ /** Current side of a driver’s license session. `flip` is the between-sides dialog. */
98
+ licenseSide?: 'front' | 'back' | 'flip';
99
99
  /** True while OCR or PDF417 decode is running. */
100
100
  licenseBusy?: boolean;
101
101
  }
@@ -103,6 +103,8 @@ export interface ScannerApi {
103
103
  capture: () => Promise<void>;
104
104
  cancel: () => void;
105
105
  retry: () => void;
106
+ /** Dismiss the flip-to-back dialog and start the barcode session. */
107
+ continueLicenseFlip: () => void;
106
108
  setTorch: (enabled: boolean) => Promise<void>;
107
109
  setAutoCapture: (enabled: boolean) => void;
108
110
  copyReport: () => Promise<void>;