@scandit/web-datacapture-id 7.0.0 → 7.0.2

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2024 Scandit AG. All Rights Reserved.
1
+ Copyright © 2025 Scandit AG. All Rights Reserved.
2
2
 
3
3
  The use of this software is governed by the Scandit Terms and Conditions.
4
4
  https://ssl.scandit.com/terms/terms.pdf
@@ -3,6 +3,7 @@ import { AamvaBarcodeVerificationResult } from "./AamvaBarcodeVerifierResult";
3
3
  import type { CapturedId } from "./captured-id/CapturedId";
4
4
  export declare class AamvaBarcodeVerifier {
5
5
  private _context;
6
+ private _endpoint;
6
7
  private constructor();
7
8
  static create(context: DataCaptureContext): Promise<AamvaBarcodeVerifier>;
8
9
  verify(capturedId: CapturedId): Promise<AamvaBarcodeVerificationResult>;
@@ -18,12 +18,14 @@ export declare const STATE: {
18
18
  export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptureJSON> {
19
19
  private static _centaurusLoader?;
20
20
  private readonly type;
21
+ private readonly _synchronousFrameFlow;
21
22
  private state;
22
23
  private _isEnabled;
23
24
  private settings;
24
25
  private _context;
25
26
  private listeners;
26
27
  private overlayListeners;
28
+ private contextListener;
27
29
  private _centaurusConnector?;
28
30
  private _endOfCycleTasks;
29
31
  private _feedback;
@@ -45,6 +47,12 @@ export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptur
45
47
  applySettings(settings: IdCaptureSettings): Promise<void>;
46
48
  parse(code: string): Promise<CapturedId | null>;
47
49
  toJSONObject(): IdCaptureJSON;
50
+ /**
51
+ * Called when the context has changed source.
52
+ * It is possible that we are still processing a frame when a source change occurs, which could prevent the
53
+ * current frame from completing its processing and leave us in an unexpected state (processing a frame forever).
54
+ */
55
+ private didChangeFrameSource;
48
56
  private moveToState;
49
57
  private doReset;
50
58
  private doApplySettings;