@unissey-web/sdk-angular 5.0.0-beta.3 → 5.0.0-beta.5

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.
@@ -83,6 +83,7 @@ class ReferenceCaptureComponent {
83
83
  this.recordCapturing = new EventEmitter();
84
84
  this.recordInterrupted = new EventEmitter();
85
85
  this.recordCompleted = new EventEmitter();
86
+ this.activeChallenge = new EventEmitter();
86
87
  }
87
88
  /**
88
89
  * @internal
@@ -136,6 +137,12 @@ class ReferenceCaptureComponent {
136
137
  onRecordCompleted(event) {
137
138
  this.recordCompleted.emit(event.detail);
138
139
  }
140
+ /**
141
+ * @internal
142
+ */
143
+ onActiveChallenge(event) {
144
+ this.activeChallenge.emit(event.detail);
145
+ }
139
146
  /**
140
147
  * @internal
141
148
  */
@@ -146,6 +153,7 @@ class ReferenceCaptureComponent {
146
153
  this.recordCapturingUnlistenFct = this.renderer.listen(this.referenceRef.nativeElement, "recordCapturing", this.onRecordCapturing.bind(this));
147
154
  this.recordInterruptedUnlistenFct = this.renderer.listen(this.referenceRef.nativeElement, "recordInterrupted", this.onRecordInterrupted.bind(this));
148
155
  this.recordCompletedUnlistenFct = this.renderer.listen(this.referenceRef.nativeElement, "recordCompleted", this.onRecordCompleted.bind(this));
156
+ this.activeChallengeUnlistenFct = this.renderer.listen(this.referenceRef.nativeElement, "activeChallenge", this.onActiveChallenge.bind(this));
149
157
  }
150
158
  /**
151
159
  * @internal
@@ -169,10 +177,13 @@ class ReferenceCaptureComponent {
169
177
  if (this.recordCompletedUnlistenFct) {
170
178
  this.recordCompletedUnlistenFct();
171
179
  }
180
+ if (this.activeChallengeUnlistenFct) {
181
+ this.activeChallengeUnlistenFct();
182
+ }
172
183
  }
173
184
  }
174
185
  ReferenceCaptureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ReferenceCaptureComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
175
- ReferenceCaptureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ReferenceCaptureComponent, selector: "unissey-reference-capture", inputs: { recorderOptions: "recorderOptions", strings: "strings", hideCaptureBtn: "hideCaptureBtn", disableDebugMode: "disableDebugMode" }, outputs: { reference: "reference", recorderReady: "recorderReady", recordStarting: "recordStarting", recordCapturing: "recordCapturing", recordInterrupted: "recordInterrupted", recordCompleted: "recordCompleted" }, viewQueries: [{ propertyName: "referenceRef", first: true, predicate: ["reference"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-reference-capture\n #reference\n [attr.strings]=\"stringifiedStrings\"\n [attr.recorder-options]=\"stringifiedRecorderOptions\"\n [attr.hide-capture-btn]=\"hideCaptureBtn === true ? true : null\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n>\n <ng-content></ng-content>\n</uni-reference-capture>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
186
+ ReferenceCaptureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ReferenceCaptureComponent, selector: "unissey-reference-capture", inputs: { recorderOptions: "recorderOptions", strings: "strings", hideCaptureBtn: "hideCaptureBtn", disableDebugMode: "disableDebugMode" }, outputs: { reference: "reference", recorderReady: "recorderReady", recordStarting: "recordStarting", recordCapturing: "recordCapturing", recordInterrupted: "recordInterrupted", recordCompleted: "recordCompleted", activeChallenge: "activeChallenge" }, viewQueries: [{ propertyName: "referenceRef", first: true, predicate: ["reference"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-reference-capture\n #reference\n [attr.strings]=\"stringifiedStrings\"\n [attr.recorder-options]=\"stringifiedRecorderOptions\"\n [attr.hide-capture-btn]=\"hideCaptureBtn === true ? true : null\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n>\n <ng-content></ng-content>\n</uni-reference-capture>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
176
187
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ReferenceCaptureComponent, decorators: [{
177
188
  type: Component,
178
189
  args: [{
@@ -200,6 +211,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
200
211
  type: Output
201
212
  }], recordCompleted: [{
202
213
  type: Output
214
+ }], activeChallenge: [{
215
+ type: Output
203
216
  }], referenceRef: [{
204
217
  type: ViewChild,
205
218
  args: ["reference"]
@@ -215,6 +228,8 @@ class FullCaptureComponent {
215
228
  this.disableDebugMode = false;
216
229
  this.data = new EventEmitter();
217
230
  this.recorderReady = new EventEmitter();
231
+ this.referenceActiveChallenge = new EventEmitter();
232
+ this.selfieActiveChallenge = new EventEmitter();
218
233
  }
219
234
  /**
220
235
  * @internal
@@ -243,12 +258,26 @@ class FullCaptureComponent {
243
258
  onRecorderReady(event) {
244
259
  this.recorderReady.emit(event.detail);
245
260
  }
261
+ /**
262
+ * @internal
263
+ */
264
+ onReferenceActiveChallenge(event) {
265
+ this.referenceActiveChallenge.emit(event.detail);
266
+ }
267
+ /**
268
+ * @internal
269
+ */
270
+ onSelfieActiveChallenge(event) {
271
+ this.selfieActiveChallenge.emit(event.detail);
272
+ }
246
273
  /**
247
274
  * @internal
248
275
  */
249
276
  ngAfterViewInit() {
250
277
  this.fullCaptureUnlistenFct = this.renderer.listen(this.fullCaptureRef.nativeElement, "data", this.onData.bind(this));
251
278
  this.recorderReadyUnlistenFct = this.renderer.listen(this.fullCaptureRef.nativeElement, "recorderReady", this.onRecorderReady.bind(this));
279
+ this.referenceActiveChallengeUnlistenFct = this.renderer.listen(this.fullCaptureRef.nativeElement, "referenceActiveChallenge", this.onReferenceActiveChallenge.bind(this));
280
+ this.selfieActiveChallengeUnlistenFct = this.renderer.listen(this.fullCaptureRef.nativeElement, "selfieActiveChallenge", this.onSelfieActiveChallenge.bind(this));
252
281
  }
253
282
  /**
254
283
  * @internal
@@ -260,10 +289,16 @@ class FullCaptureComponent {
260
289
  if (this.recorderReadyUnlistenFct) {
261
290
  this.recorderReadyUnlistenFct();
262
291
  }
292
+ if (this.referenceActiveChallengeUnlistenFct) {
293
+ this.referenceActiveChallengeUnlistenFct();
294
+ }
295
+ if (this.selfieActiveChallengeUnlistenFct) {
296
+ this.selfieActiveChallengeUnlistenFct();
297
+ }
263
298
  }
264
299
  }
265
300
  FullCaptureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FullCaptureComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
266
- FullCaptureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FullCaptureComponent, selector: "unissey-full-capture", inputs: { strings: "strings", recorderOptions: "recorderOptions", hideReferenceCaptureBtn: "hideReferenceCaptureBtn", hideSelfieCaptureBtn: "hideSelfieCaptureBtn", disableDebugMode: "disableDebugMode" }, outputs: { data: "data", recorderReady: "recorderReady" }, viewQueries: [{ propertyName: "fullCaptureRef", first: true, predicate: ["fullCapture"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-full-capture\n #fullCapture\n [attr.strings]=\"stringifiedStrings\"\n [attr.recorder-options]=\"stringifiedRecorderOptions\"\n [attr.hide-selfie-capture-btn]=\"hideSelfieCaptureBtn === true ? true : null\"\n [attr.hide-reference-capture-btn]=\"hideReferenceCaptureBtn === true ? true : null\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n>\n <ng-content></ng-content>\n</uni-full-capture>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
301
+ FullCaptureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FullCaptureComponent, selector: "unissey-full-capture", inputs: { strings: "strings", recorderOptions: "recorderOptions", hideReferenceCaptureBtn: "hideReferenceCaptureBtn", hideSelfieCaptureBtn: "hideSelfieCaptureBtn", disableDebugMode: "disableDebugMode" }, outputs: { data: "data", recorderReady: "recorderReady", referenceActiveChallenge: "referenceActiveChallenge", selfieActiveChallenge: "selfieActiveChallenge" }, viewQueries: [{ propertyName: "fullCaptureRef", first: true, predicate: ["fullCapture"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-full-capture\n #fullCapture\n [attr.strings]=\"stringifiedStrings\"\n [attr.recorder-options]=\"stringifiedRecorderOptions\"\n [attr.hide-selfie-capture-btn]=\"hideSelfieCaptureBtn === true ? true : null\"\n [attr.hide-reference-capture-btn]=\"hideReferenceCaptureBtn === true ? true : null\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n>\n <ng-content></ng-content>\n</uni-full-capture>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
267
302
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FullCaptureComponent, decorators: [{
268
303
  type: Component,
269
304
  args: [{
@@ -285,6 +320,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
285
320
  type: Output
286
321
  }], recorderReady: [{
287
322
  type: Output
323
+ }], referenceActiveChallenge: [{
324
+ type: Output
325
+ }], selfieActiveChallenge: [{
326
+ type: Output
288
327
  }], fullCaptureRef: [{
289
328
  type: ViewChild,
290
329
  args: ["fullCapture"]
@@ -304,6 +343,7 @@ class SelfieCaptureComponent {
304
343
  this.recordCapturing = new EventEmitter();
305
344
  this.recordInterrupted = new EventEmitter();
306
345
  this.recordCompleted = new EventEmitter();
346
+ this.activeChallenge = new EventEmitter();
307
347
  }
308
348
  /**
309
349
  * @internal
@@ -357,6 +397,12 @@ class SelfieCaptureComponent {
357
397
  onRecordCompleted(event) {
358
398
  this.recordCompleted.emit(event.detail);
359
399
  }
400
+ /**
401
+ * @internal
402
+ */
403
+ onActiveChallenge(event) {
404
+ this.activeChallenge.emit(event.detail);
405
+ }
360
406
  /**
361
407
  * @internal
362
408
  */
@@ -367,6 +413,7 @@ class SelfieCaptureComponent {
367
413
  this.recordCapturingUnlistenFct = this.renderer.listen(this.selfieRef.nativeElement, "recordCapturing", this.onRecordCapturing.bind(this));
368
414
  this.recordInterruptedUnlistenFct = this.renderer.listen(this.selfieRef.nativeElement, "recordInterrupted", this.onRecordInterrupted.bind(this));
369
415
  this.recordCompletedUnlistenFct = this.renderer.listen(this.selfieRef.nativeElement, "recordCompleted", this.onRecordCompleted.bind(this));
416
+ this.activeChallengeUnlistenFct = this.renderer.listen(this.selfieRef.nativeElement, "activeChallenge", this.onActiveChallenge.bind(this));
370
417
  }
371
418
  /**
372
419
  * @internal
@@ -390,10 +437,13 @@ class SelfieCaptureComponent {
390
437
  if (this.recordCompletedUnlistenFct) {
391
438
  this.recordCompletedUnlistenFct();
392
439
  }
440
+ if (this.activeChallengeUnlistenFct) {
441
+ this.activeChallengeUnlistenFct();
442
+ }
393
443
  }
394
444
  }
395
445
  SelfieCaptureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SelfieCaptureComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
396
- SelfieCaptureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SelfieCaptureComponent, selector: "unissey-selfie-capture", inputs: { strings: "strings", recorderOptions: "recorderOptions", hideCapturePrevBtn: "hideCapturePrevBtn", hideCaptureBtn: "hideCaptureBtn", disableDebugMode: "disableDebugMode" }, outputs: { selfie: "selfie", recorderReady: "recorderReady", recordStarting: "recordStarting", recordCapturing: "recordCapturing", recordInterrupted: "recordInterrupted", recordCompleted: "recordCompleted" }, viewQueries: [{ propertyName: "selfieRef", first: true, predicate: ["selfie"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-selfie-capture\n #selfie\n [attr.strings]=\"stringifiedStrings\"\n [attr.recorder-options]=\"stringifiedRecorderOptions\"\n [attr.hide-capture-prev-btn]=\"hideCapturePrevBtn === true ? true : null\"\n [attr.hide-capture-btn]=\"hideCaptureBtn === true ? true : null\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n>\n <ng-content></ng-content>\n</uni-selfie-capture>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
446
+ SelfieCaptureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SelfieCaptureComponent, selector: "unissey-selfie-capture", inputs: { strings: "strings", recorderOptions: "recorderOptions", hideCapturePrevBtn: "hideCapturePrevBtn", hideCaptureBtn: "hideCaptureBtn", disableDebugMode: "disableDebugMode" }, outputs: { selfie: "selfie", recorderReady: "recorderReady", recordStarting: "recordStarting", recordCapturing: "recordCapturing", recordInterrupted: "recordInterrupted", recordCompleted: "recordCompleted", activeChallenge: "activeChallenge" }, viewQueries: [{ propertyName: "selfieRef", first: true, predicate: ["selfie"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-selfie-capture\n #selfie\n [attr.strings]=\"stringifiedStrings\"\n [attr.recorder-options]=\"stringifiedRecorderOptions\"\n [attr.hide-capture-prev-btn]=\"hideCapturePrevBtn === true ? true : null\"\n [attr.hide-capture-btn]=\"hideCaptureBtn === true ? true : null\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n>\n <ng-content></ng-content>\n</uni-selfie-capture>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
397
447
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SelfieCaptureComponent, decorators: [{
398
448
  type: Component,
399
449
  args: [{
@@ -423,6 +473,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
423
473
  type: Output
424
474
  }], recordCompleted: [{
425
475
  type: Output
476
+ }], activeChallenge: [{
477
+ type: Output
426
478
  }], selfieRef: [{
427
479
  type: ViewChild,
428
480
  args: ["selfie"]
@@ -803,13 +855,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
803
855
  }] } });
804
856
 
805
857
  // AUTO-GENERATED FILE - DO NOT EDIT
806
- const SDK_VERSION = '5.0.0-beta.3';
858
+ const SDK_VERSION = '5.0.0-beta.5';
807
859
 
808
860
  class VideoRecorderComponent {
809
861
  constructor(renderer) {
810
862
  this.renderer = renderer;
811
863
  this.strings = EN.videoRecorder;
812
- this.preset = AcquisitionPreset.SELFIE_FAST;
864
+ this.preset = AcquisitionPreset.SELFIE_MJPEG;
813
865
  this.config = {};
814
866
  this.faceChecker = "disabled-on-retry";
815
867
  this.displayFlipCameraBtn = false;
@@ -823,6 +875,7 @@ class VideoRecorderComponent {
823
875
  this.recordInterrupted = new EventEmitter();
824
876
  this.recordCompleted = new EventEmitter();
825
877
  this.issue = new EventEmitter();
878
+ this.activeChallenge = new EventEmitter();
826
879
  this.sdkVersion = SDK_VERSION;
827
880
  }
828
881
  /**
@@ -882,6 +935,12 @@ class VideoRecorderComponent {
882
935
  onRecordIssue(event) {
883
936
  this.issue.emit(event.detail.issueType);
884
937
  }
938
+ /**
939
+ * @internal
940
+ */
941
+ onActiveChallenge(event) {
942
+ this.activeChallenge.emit(event.detail);
943
+ }
885
944
  /**
886
945
  * @internal
887
946
  */
@@ -893,6 +952,7 @@ class VideoRecorderComponent {
893
952
  this.recordCapturingUnlistenFct = this.renderer.listen(this.recorderRef.nativeElement, "recordCapturing", this.onRecordCapturing.bind(this));
894
953
  this.recordInterruptedUnlistenFct = this.renderer.listen(this.recorderRef.nativeElement, "recordInterrupted", this.onRecordInterrupted.bind(this));
895
954
  this.recordCompletedUnlistenFct = this.renderer.listen(this.recorderRef.nativeElement, "recordCompleted", this.onRecordCompleted.bind(this));
955
+ this.activeChallengeUnlistenFct = this.renderer.listen(this.recorderRef.nativeElement, "activeChallenge", this.onActiveChallenge.bind(this));
896
956
  }
897
957
  /**
898
958
  * @internal
@@ -919,10 +979,13 @@ class VideoRecorderComponent {
919
979
  if (this.recordCompletedUnlistenFct) {
920
980
  this.recordCompletedUnlistenFct();
921
981
  }
982
+ if (this.activeChallengeUnlistenFct) {
983
+ this.activeChallengeUnlistenFct();
984
+ }
922
985
  }
923
986
  }
924
987
  VideoRecorderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: VideoRecorderComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
925
- VideoRecorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: VideoRecorderComponent, selector: "unissey-video-recorder", inputs: { strings: "strings", preset: "preset", config: "config", faceChecker: "faceChecker", displayFlipCameraBtn: "displayFlipCameraBtn", hideCaptureBtn: "hideCaptureBtn", logLevel: "logLevel", disableDebugMode: "disableDebugMode" }, outputs: { record: "record", recorderReady: "recorderReady", recordStarting: "recordStarting", recordCapturing: "recordCapturing", recordInterrupted: "recordInterrupted", recordCompleted: "recordCompleted", issue: "issue" }, viewQueries: [{ propertyName: "recorderRef", first: true, predicate: ["camera"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-video-recorder\n #camera\n [attr.preset]=\"preset\"\n [attr.strings]=\"stringifiedStrings\"\n [attr.face-checker]=\"faceChecker\"\n [attr.config]=\"stringifiedConfig\"\n [attr.display-flip-camera-btn]=\"displayFlipCameraBtn === true ? true : null\"\n [attr.hide-capture-btn]=\"hideCaptureBtn === true ? true : null\"\n [attr.log-level]=\"logLevel\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n [attr.sdk-angular-version]=\"sdkVersion\"\n>\n <div slot=\"left\">\n <ng-content select=\"[slot=actions]\"></ng-content>\n </div>\n</uni-video-recorder>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
988
+ VideoRecorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: VideoRecorderComponent, selector: "unissey-video-recorder", inputs: { strings: "strings", preset: "preset", config: "config", faceChecker: "faceChecker", displayFlipCameraBtn: "displayFlipCameraBtn", hideCaptureBtn: "hideCaptureBtn", logLevel: "logLevel", disableDebugMode: "disableDebugMode" }, outputs: { record: "record", recorderReady: "recorderReady", recordStarting: "recordStarting", recordCapturing: "recordCapturing", recordInterrupted: "recordInterrupted", recordCompleted: "recordCompleted", issue: "issue", activeChallenge: "activeChallenge" }, viewQueries: [{ propertyName: "recorderRef", first: true, predicate: ["camera"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<uni-video-recorder\n #camera\n [attr.preset]=\"preset\"\n [attr.strings]=\"stringifiedStrings\"\n [attr.face-checker]=\"faceChecker\"\n [attr.config]=\"stringifiedConfig\"\n [attr.display-flip-camera-btn]=\"displayFlipCameraBtn === true ? true : null\"\n [attr.hide-capture-btn]=\"hideCaptureBtn === true ? true : null\"\n [attr.log-level]=\"logLevel\"\n [attr.disable-debug-mode]=\"disableDebugMode === true ? true : null\"\n [attr.sdk-angular-version]=\"sdkVersion\"\n>\n <div slot=\"left\">\n <ng-content select=\"[slot=actions]\"></ng-content>\n </div>\n</uni-video-recorder>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
926
989
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: VideoRecorderComponent, decorators: [{
927
990
  type: Component,
928
991
  args: [{
@@ -960,6 +1023,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
960
1023
  type: Output
961
1024
  }], issue: [{
962
1025
  type: Output
1026
+ }], activeChallenge: [{
1027
+ type: Output
963
1028
  }], recorderRef: [{
964
1029
  type: ViewChild,
965
1030
  args: ["camera"]