@idscan/idvc2 3.9.5 → 3.10.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.
Files changed (50) hide show
  1. package/README.md +4 -1
  2. package/dist/idvc.js +1 -1
  3. package/dist/idvc.js.gzip +0 -0
  4. package/dist/index.html +2 -71
  5. package/dist/js/defaultConfig.ts +1 -30
  6. package/dist/js/environment/documentTypes.ts +4 -20
  7. package/dist/js/environment/langs.js +1 -1
  8. package/dist/js/environment/networkNames.json +0 -1
  9. package/dist/js/environment/previewAnimation.ts +1 -1
  10. package/dist/js/environment/stepsDescription.ts +2 -12
  11. package/dist/langs.js.gzip +0 -0
  12. package/dist/networks/Face-chunk.js +1 -1
  13. package/dist/networks/GeneralTypeDetectionYolo-chunk.js +1 -1
  14. package/dist/networks/MRZ-chunk.js +1 -1
  15. package/dist/networks/blurWorker.js.gzip +0 -0
  16. package/dist/types/controllers/ModuleController.d.ts +0 -2
  17. package/dist/types/defaultConfig.d.ts +2 -4
  18. package/dist/types/environment/documentTypes.d.ts +4 -6
  19. package/dist/types/environment/langs.d.ts +1 -6
  20. package/dist/types/environment/stepsDescription.d.ts +1 -1
  21. package/dist/types/helpers/base64.d.ts +0 -1
  22. package/dist/types/helpers/manualUpload.d.ts +0 -1
  23. package/dist/types/initialize.d.ts +0 -1
  24. package/dist/types/integrations/prepareRequestDataForDiveApi.d.ts +0 -1
  25. package/dist/types/loader/loaderMeshFace.d.ts +1 -1
  26. package/dist/types/loop.d.ts +1 -1
  27. package/dist/types/modules/Config.d.ts +0 -20
  28. package/dist/types/modules/MetaData.d.ts +4 -3
  29. package/dist/types/modules/Step.d.ts +3 -6
  30. package/dist/types/modules/image.d.ts +0 -2
  31. package/dist/types/modules/manualUploadProcessing.d.ts +0 -6
  32. package/dist/types/modules/moduleInitializer.d.ts +0 -1
  33. package/dist/types/modules/stepFunctions.d.ts +1 -1
  34. package/dist/types/modules/stepResultProcessing.d.ts +0 -1
  35. package/dist/types/modules/ui/DesktopNotification/DesktopNotification.d.ts +1 -1
  36. package/dist/types/modules/ui/VideoWrapper/CanvasWrapper.d.ts +1 -1
  37. package/dist/types/modules/ui/VideoWrapper/VideoWrapper.d.ts +1 -1
  38. package/dist/types/types/context.d.ts +0 -1
  39. package/package.json +1 -1
  40. package/dist/js/environment/realFaceModes.ts +0 -24
  41. package/dist/networks/ZXing-chunk.js +0 -1
  42. package/dist/networks/angle03032023.onnx.gzip +0 -0
  43. package/dist/types/environment/realFaceModes.d.ts +0 -22
  44. package/dist/types/helpers/dataManipulation.d.ts +0 -27
  45. package/dist/types/loader/loadAnglesModel.d.ts +0 -3
  46. package/dist/types/loader/loadFrontModels.d.ts +0 -3
  47. package/dist/types/loader/loaderZXing.d.ts +0 -2
  48. package/dist/types/modules/BarcodeModule.d.ts +0 -28
  49. package/dist/types/modules/step-result-processing/barcode.d.ts +0 -2
  50. package/dist/types/neural models/anglesModel.d.ts +0 -15
@@ -1,22 +0,0 @@
1
- export type RealFaceMode = keyof typeof realFaceModes;
2
- declare const realFaceModes: {
3
- /**
4
- * enable "realFaceMode" only for iphone.
5
- */
6
- readonly auto: {
7
- readonly description: "enable \"realFaceMode\" only for iphone.";
8
- };
9
- /**
10
- * disable this option.
11
- */
12
- readonly none: {
13
- readonly description: "disable this option.";
14
- };
15
- /**
16
- * enable "realFaceMode" for all devices.
17
- */
18
- readonly all: {
19
- readonly description: "enable \"realFaceMode\" for all devices.";
20
- };
21
- };
22
- export default realFaceModes;
@@ -1,27 +0,0 @@
1
- interface Entity {
2
- value: string;
3
- name: string;
4
- status: 'valid' | 'invalid';
5
- }
6
- /**
7
- * convert mrz parsed data to html represent
8
- * @param {Array} data - mrz parsed data
9
- */
10
- export declare const mrzToHtml: (data: Entity[]) => HTMLElement;
11
- /**
12
- * convert pdf parsed data to html represent
13
- * @param {Array} data - pdf parsed data
14
- */
15
- export declare const pdfToHtml: (data: Entity[]) => HTMLElement;
16
- /**
17
- * convert barcode parsed data to html represent
18
- * @param {String} data - barcode parsed data
19
- */
20
- export declare const barcodeToHtml: (data: string) => HTMLElement;
21
- /**
22
- *
23
- * @param {*} data - data to represent in HTML
24
- * @param {String} type - type of parsed data maybe mrz|pdf|barcode
25
- */
26
- declare const jsonToHtml: (data: string | Entity[], type: 'mrz' | 'pdf' | 'barcode') => false | HTMLElement;
27
- export default jsonToHtml;
@@ -1,3 +0,0 @@
1
- import { NeuralModelInitializer } from '../neural models/neuralModel';
2
- declare const _default: () => Promise<Array<NeuralModelInitializer>>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { NeuralModelInitializer } from '../neural models/neuralModel';
2
- declare const loadFrontModels: () => Promise<Array<NeuralModelInitializer> | undefined>;
3
- export default loadFrontModels;
@@ -1,2 +0,0 @@
1
- declare const load: () => Promise<void>;
2
- export default load;
@@ -1,28 +0,0 @@
1
- export declare class BarcodeModule {
2
- private module;
3
- private isAllocate;
4
- private buffer;
5
- private readonly res;
6
- private stringLib;
7
- constructor(core: any);
8
- init(stringLib: any): void;
9
- allocate(buffer: any): void;
10
- free(): void;
11
- result(status?: boolean, image?: any, touch?: boolean, text?: string): {
12
- status: boolean;
13
- image: any;
14
- touch: boolean;
15
- text: string;
16
- cancel: boolean;
17
- type: string;
18
- };
19
- process(data: any, origData: any): {
20
- status: boolean;
21
- image: any;
22
- touch: boolean;
23
- text: string;
24
- cancel: boolean;
25
- type: string;
26
- };
27
- }
28
- export default BarcodeModule;
@@ -1,2 +0,0 @@
1
- declare const barcode: (resultObject: any) => void;
2
- export default barcode;
@@ -1,15 +0,0 @@
1
- /// <reference types="onnxruntime-web" />
2
- import { Provider } from './Provider';
3
- import NeuralModel from './neuralModel';
4
- import { RGBColor32 } from '../helpers/image';
5
- interface Prediction {
6
- label: string;
7
- score: number;
8
- }
9
- export default class AnglesModel extends NeuralModel {
10
- constructor(url?: string, provider?: Provider, wasmPaths?: string);
11
- predict(rgb: RGBColor32): Promise<import("onnxruntime-web").InferenceSession.OnnxValueMapType>;
12
- predictFromImage(input: HTMLCanvasElement | HTMLImageElement, dstCanvas?: HTMLCanvasElement): Promise<Prediction[]>;
13
- interpret(data: Float32Array): Prediction[];
14
- }
15
- export {};