ngx-scandoc 17.0.1 → 18.0.1

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 (47) hide show
  1. package/core/components/scan/scan.component.d.ts +2 -3
  2. package/core/components/webcam/webcam/webcam.component.d.ts +3 -1
  3. package/core/interfaces/config.d.ts +0 -1
  4. package/esm2022/core/components/camera-switch/camera-switch.component.mjs +4 -4
  5. package/esm2022/core/components/components.module.mjs +5 -5
  6. package/esm2022/core/components/manual-scan/manual-scan.component.mjs +4 -4
  7. package/esm2022/core/components/scan/scan.component.mjs +59 -48
  8. package/esm2022/core/components/scan-results/scan-results.component.mjs +4 -4
  9. package/esm2022/core/components/webcam/webcam/webcam.component.mjs +25 -12
  10. package/esm2022/core/components/webcam/webcam.module.mjs +5 -5
  11. package/esm2022/core/interfaces/config.mjs +1 -1
  12. package/esm2022/core/pipes/pipes.module.mjs +5 -5
  13. package/esm2022/core/pipes/safeResourceUrl.pipe.mjs +4 -4
  14. package/esm2022/core/shared/material.module.mjs +5 -5
  15. package/esm2022/dialogs/components/blank/blank.component.mjs +4 -4
  16. package/esm2022/dialogs/components/confirm/confirm.component.mjs +4 -4
  17. package/esm2022/dialogs/components/loading/loading.component.mjs +4 -4
  18. package/esm2022/dialogs/components/prompt-manual/prompt-manual.component.mjs +4 -4
  19. package/esm2022/dialogs/components/scan-profile/scan-profile.component.mjs +4 -4
  20. package/esm2022/dialogs/components/scan-selfie/scan-selfie.component.mjs +4 -4
  21. package/esm2022/dialogs/components/turn-document/turn-document.component.mjs +4 -4
  22. package/esm2022/dialogs/dialogs.core.provider.mjs +4 -4
  23. package/esm2022/dialogs/dialogs.module.mjs +5 -5
  24. package/esm2022/forms/form.module.mjs +5 -5
  25. package/esm2022/forms/types/avatar.type.mjs +4 -4
  26. package/esm2022/forms/types/profile.image.type.mjs +4 -4
  27. package/esm2022/forms/types/title.type.mjs +4 -4
  28. package/esm2022/lib/ngx-scandoc.module.mjs +5 -5
  29. package/esm2022/providers/auth.provider.mjs +8 -8
  30. package/esm2022/providers/camera.provider.mjs +4 -4
  31. package/esm2022/providers/interceptor.provider.mjs +6 -6
  32. package/esm2022/providers/layout.provider.mjs +4 -4
  33. package/esm2022/providers/scan.form.mjs +4 -4
  34. package/esm2022/providers/scan.provider.mjs +6 -17
  35. package/esm2022/providers/translate-loader.provider.mjs +4 -4
  36. package/esm2022/providers/translation.provider.mjs +4 -4
  37. package/esm2022/providers/webrtc.provider.mjs +4 -4
  38. package/esm2022/public-api.mjs +2 -1
  39. package/fesm2022/ngx-scandoc.mjs +187 -174
  40. package/fesm2022/ngx-scandoc.mjs.map +1 -1
  41. package/package.json +18 -14
  42. package/providers/scan.provider.d.ts +2 -9
  43. package/public-api.d.ts +2 -0
  44. package/src/assets/i18n/de.json +1 -2
  45. package/src/assets/i18n/en.json +1 -2
  46. package/src/assets/i18n/hr.json +3 -4
  47. package/src/assets/i18n/it.json +1 -2
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "ngx-scandoc",
3
- "version": "17.0.1",
3
+ "version": "18.0.1",
4
4
  "peerDependencies": {
5
- "@angular/common": "17.x",
6
- "@angular/core": "17.x",
7
- "@angular/forms": "17.x",
8
- "@angular/cdk": "17.x",
9
- "@angular/material": "17.x",
10
- "moment": "2.30.x",
11
- "jwt-decode": "4.x",
12
- "ngx-avatars": "^1.7.0",
13
- "ngx-device-detector": "7.x"
14
- },
15
- "dependencies": {
16
- "tslib": "^2.3.1"
5
+ "@angular/cdk": "^18.2.14",
6
+ "@angular/common": "^18.2.13",
7
+ "@angular/core": "^18.2.13",
8
+ "@angular/forms": "^18.2.13",
9
+ "@angular/material": "^18.2.14",
10
+ "jwt-decode": "^4.0.0",
11
+ "moment": "^2.30.1",
12
+ "ndarray": "^1.0.19",
13
+ "ndarray-ops": "^1.2.2",
14
+ "ngx-avatars": "^1.8.0",
15
+ "ngx-device-detector": "^8.0.0",
16
+ "onnxruntime-web": "^1.18.0",
17
+ "rxjs": "^7.8.2"
17
18
  },
18
19
  "module": "fesm2022/ngx-scandoc.mjs",
19
20
  "typings": "index.d.ts",
@@ -28,5 +29,8 @@
28
29
  "default": "./fesm2022/ngx-scandoc.mjs"
29
30
  }
30
31
  },
31
- "sideEffects": false
32
+ "sideEffects": false,
33
+ "dependencies": {
34
+ "tslib": "^2.8.1"
35
+ }
32
36
  }
@@ -9,7 +9,7 @@ export declare class ScanProvider {
9
9
  private injector;
10
10
  countriesData: any;
11
11
  config: ScanConfig;
12
- canStoreImages: boolean | undefined;
12
+ canStoreImages: boolean;
13
13
  constructor(http: HttpClient, injector: Injector);
14
14
  genderList(): {
15
15
  M: string;
@@ -20,15 +20,8 @@ export declare class ScanProvider {
20
20
  get enableVerification(): boolean;
21
21
  addGuest(guestData: GuestData): Observable<Object>;
22
22
  stateless(DocumentFaceImage: any, LiveFaceImage: any): Observable<Object>;
23
- sendErrorLog(data: any): Observable<Object>;
24
- /**
25
- *
26
- * @param data
27
- * @returns
28
- * @deprecated
29
- */
30
23
  sendLog(data: any): Observable<Object>;
31
- burst(Images: string[], BlurValues: any[]): Observable<Object>;
24
+ burst(Images: string[]): Observable<Object>;
32
25
  countries(): Observable<any>;
33
26
  get countryNames(): {
34
27
  label: string;
package/public-api.d.ts CHANGED
@@ -25,3 +25,5 @@ export { CameraSwitchComponent } from './core/components/camera-switch/camera-sw
25
25
  export { PromptManualComponent } from './dialogs/components/prompt-manual/prompt-manual.component';
26
26
  export { ManualScanComponent } from './core/components/manual-scan/manual-scan.component';
27
27
  export { SCAN_CONFIG_TOKEN, AUTH_CONFIG_TOKEN } from './core/tokens/config.tokens';
28
+ export { WebcamImage } from './core/components/webcam/domain/webcam-image';
29
+ export { ScanConfig } from './core/interfaces/config';
@@ -52,8 +52,7 @@
52
52
  "c1006": "Dokument nicht unterstützt",
53
53
  "c1007": "Das Dokument hat eine Rückseite. Bitte drehen Sie das Dokument.",
54
54
  "c1008": "Der Kontrast zwischen Dokument und Hintergrund ist zu niedrig.",
55
- "c1009": "Warten auf die Fokussierung der Kamera.",
56
- "c1010": "Niedrige Bildqualität erkannt. Bitte halten Sie die Kamera stabil."
55
+ "c1009": "Warten auf Fokussierung der Kamera."
57
56
  },
58
57
  "extraction": {
59
58
  "c1001": "Dokument nicht unterstützt. Bitte wählen Sie eine andere Dokumentart.",
@@ -53,8 +53,7 @@
53
53
  "c1006": "Document not supported",
54
54
  "c1007": "The document has another side, turn the document over",
55
55
  "c1008": "The document is not sufficiently contrasted against the background",
56
- "c1009": "Waiting for camera to focus.",
57
- "c1010": "Low image quality detected. Please keep the camera stable."
56
+ "c1009": "Waiting for camera to focus."
58
57
  },
59
58
  "extraction": {
60
59
  "c1001": "Document not supported, please use another document type.",
@@ -4,8 +4,8 @@
4
4
  "camera": "Web kamera",
5
5
  "cancel": "Odustani",
6
6
  "ok": "Ok",
7
- "yes":"Da",
8
- "no":"Ne",
7
+ "yes": "Da",
8
+ "no": "Ne",
9
9
  "confirm": "Potvrdi",
10
10
  "manual": "Želite li ručno snimiti/uploadati sliku?",
11
11
  "reTake": "Ponovno skeniranje",
@@ -53,8 +53,7 @@
53
53
  "c1006": "Dokument nije podržan",
54
54
  "c1007": "Dokument ima drugu stranu, okrenite dokument",
55
55
  "c1008": "Dokument nije dovoljno kontrastiran u odnosu na pozadinu",
56
- "c1009": "Čeka se fokusiranje kamere.",
57
- "c1010": "Otkrivena niska kvaliteta slike. Držite kameru stabilnom."
56
+ "c1009": "Čeka se fokusiranje kamere."
58
57
  },
59
58
  "extraction": {
60
59
  "c1001": "Dokument nije podržan, koristite drugu vrstu dokumenta.",
@@ -53,8 +53,7 @@
53
53
  "c1006": "Document not supported",
54
54
  "c1007": "The document has another side, turn the document over",
55
55
  "c1008": "The document is not sufficiently contrasted against the background",
56
- "c1009": "In attesa che la fotocamera metta a fuoco.",
57
- "c1010": "Rilevata bassa qualità dell'immagine. Si prega di mantenere stabile la fotocamera."
56
+ "c1009": "In attesa che la fotocamera metta a fuoco."
58
57
  },
59
58
  "extraction": {
60
59
  "c1001": "Document not supported, please use another document type.",