@idscan/idvc2 3.4.0 → 3.5.0

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/idvc.js.gzip CHANGED
Binary file
@@ -14,7 +14,7 @@
14
14
  ]
15
15
  },
16
16
  "--btn-border-radius-small": {
17
- "default": 4,
17
+ "default": 999,
18
18
  "type": "Number",
19
19
  "description": [
20
20
  "radius of the manual switch button",
@@ -73,15 +73,6 @@
73
73
  "transparent button active font color and border color"
74
74
  ]
75
75
  },
76
- "--color-background-subheader": {
77
- "default": "#F5F6F9",
78
- "type": "Color",
79
- "description": [
80
- "background of the bottom part of the active step in 'steps' section",
81
- "'type not defined' select background of the modal window",
82
- "scrollbar of 'result' modal window"
83
- ]
84
- },
85
76
  "--color-background-white": {
86
77
  "default": "#FFF",
87
78
  "type": "Color",
@@ -93,7 +84,7 @@
93
84
  ]
94
85
  },
95
86
  "--border-color-base": {
96
- "default": "#DCDFE6",
87
+ "default": "#d3d3d3",
97
88
  "type": "Color",
98
89
  "description": [
99
90
  "border of 'type not defined' modal window select",
@@ -25,6 +25,6 @@ declare const _default: {
25
25
  asyncExecute: (type: ModuleType, name: ModuleName, method: any, ...params: any[]) => Promise<any>;
26
26
  addCallback: (type: ModuleType, name: ModuleName, cb: any) => void;
27
27
  existPropertyInModule: (name: ModuleName, propertyName: any) => boolean;
28
- allocateAll: () => Promise<void>[];
28
+ allocateAll: () => Promise<Promise<void>[]>;
29
29
  };
30
30
  export default _default;
@@ -1,11 +1,6 @@
1
- /**
2
- *
3
- * @param {number} ms
4
- * @returns {Promise<>}
5
- */
6
- export declare const timeout: (ms: number) => Promise<unknown>;
1
+ export declare const timeout: (ms: number) => Promise<void>;
7
2
  export declare const nextFrame: (fn?: () => Promise<any> | void) => Promise<unknown>;
8
3
  declare const _default: {
9
- timeout: (ms: number) => Promise<unknown>;
4
+ timeout: (ms: number) => Promise<void>;
10
5
  };
11
6
  export default _default;
@@ -7,12 +7,14 @@ export declare class CanvasWrapper {
7
7
  videoCanvas: HTMLCanvasElement;
8
8
  resizedCanvas: HTMLCanvasElement;
9
9
  mrzCanvas: HTMLCanvasElement;
10
+ scaledCanvas: HTMLCanvasElement;
10
11
  borderCanvas: HTMLCanvasElement;
11
12
  faceCanvas: HTMLCanvasElement;
12
13
  generalTypeCanvas: HTMLCanvasElement;
13
14
  blazeFaceCanvas: HTMLCanvasElement;
14
15
  meshFaceCanvas: HTMLCanvasElement;
15
16
  mrzCtx: CanvasRenderingContext2D;
17
+ scaledCtx: CanvasRenderingContext2D;
16
18
  videoCtx: CanvasRenderingContext2D;
17
19
  resizedCtx: CanvasRenderingContext2D;
18
20
  borderCtx: CanvasRenderingContext2D;
@@ -40,7 +40,7 @@ export declare class VideoWrapper {
40
40
  setFakeContourStyles(width: number): void;
41
41
  hideVideoError(): void;
42
42
  showVideoError(errorCode: string): void;
43
- showDemandButton(): void;
43
+ setCaptureButtonHidden(newValue: boolean): void;
44
44
  private init;
45
45
  setCameraErrorText(header: string, text: string): void;
46
46
  showCameraError(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idscan/idvc2",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "component for the capturing documents",
5
5
  "main": "dist/idvc.js",
6
6
  "types": "dist/types/idvc.d.ts",