@unissey-web/web-components 3.8.3-alpha.3 → 3.8.3-beta.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.
@@ -3,7 +3,7 @@ import { selfieCaptureStrings } from './selfie-capture.js';
3
3
  import { referenceCaptureStrings } from './reference-capture.js';
4
4
  import './button.js';
5
5
  import './en-e76ed5a0.js';
6
- import './video-recorder-d3e657fd.js';
6
+ import './video-recorder-22ded8cf.js';
7
7
  import './variables-09a3e162.js';
8
8
  import './video-record-directions.js';
9
9
  import './direction-card-f55e1936.js';
@@ -23,6 +23,7 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
23
23
  _this.recorderOptions = {};
24
24
  _this.hideSelfieCaptureBtn = false;
25
25
  _this.hideReferenceCaptureBtn = false;
26
+ _this.disableDebugMode = false;
26
27
  return _this;
27
28
  }
28
29
  _inherits(FullCapture, _LitElement);
@@ -64,13 +65,13 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
64
65
  key: "renderReferenceStep",
65
66
  value: function renderReferenceStep() {
66
67
  var _this$strings$referen, _this$strings$referen2, _this$strings$referen3;
67
- return x(_templateObject || (_templateObject = _taggedTemplateLiteral([" <uni-reference-capture\n @reference=\"", "\"\n @recorderReady=\"", "\"\n recorder-options=\"", "\"\n strings=\"", "\"\n ?hide-capture-btn=", "\n >\n <slot name=\"reference-directions\" slot=\"directions\">\n <uni-image-capture-directions\n strings=\"", "\"\n ></uni-image-capture-directions>\n </slot>\n\n <slot name=\"action-btn\" slot=\"action-btn\"></slot>\n </uni-reference-capture>"])), this.handleReference, this.handleRecoderReady, JSON.stringify(this.recorderOptions), JSON.stringify((_this$strings$referen = this.strings.reference) !== null && _this$strings$referen !== void 0 ? _this$strings$referen : referenceCaptureStrings), this.hideReferenceCaptureBtn, JSON.stringify((_this$strings$referen2 = (_this$strings$referen3 = this.strings.reference) === null || _this$strings$referen3 === void 0 ? void 0 : _this$strings$referen3.directions) !== null && _this$strings$referen2 !== void 0 ? _this$strings$referen2 : referenceCaptureStrings.directions));
68
+ return x(_templateObject || (_templateObject = _taggedTemplateLiteral([" <uni-reference-capture\n @reference=\"", "\"\n @recorderReady=\"", "\"\n recorder-options=\"", "\"\n strings=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <slot name=\"reference-directions\" slot=\"directions\">\n <uni-image-capture-directions\n strings=\"", "\"\n ></uni-image-capture-directions>\n </slot>\n\n <slot name=\"action-btn\" slot=\"action-btn\"></slot>\n </uni-reference-capture>"])), this.handleReference, this.handleRecoderReady, JSON.stringify(this.recorderOptions), JSON.stringify((_this$strings$referen = this.strings.reference) !== null && _this$strings$referen !== void 0 ? _this$strings$referen : referenceCaptureStrings), this.hideReferenceCaptureBtn, this.disableDebugMode, JSON.stringify((_this$strings$referen2 = (_this$strings$referen3 = this.strings.reference) === null || _this$strings$referen3 === void 0 ? void 0 : _this$strings$referen3.directions) !== null && _this$strings$referen2 !== void 0 ? _this$strings$referen2 : referenceCaptureStrings.directions));
68
69
  }
69
70
  }, {
70
71
  key: "renderSelfieStep",
71
72
  value: function renderSelfieStep() {
72
73
  var _this$strings$selfie, _this$strings$selfie$, _this$strings$selfie2, _this$strings$selfie$2, _this$strings$selfie3;
73
- return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["<uni-selfie-capture\n @selfie=\"", "\"\n @recorderReady=\"", "\"\n strings=\"", "\"\n recorder-options=\"", "\"\n ?hide-capture-btn=", "\n >\n <slot name=\"selfie-directions\" slot=\"directions\">\n <uni-video-record-directions\n strings=\"", "\"\n >\n </uni-video-record-directions>\n </slot>\n <uni-button slot=\"action-button\" variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </uni-selfie-capture>"])), this.handleSelfie, this.handleRecoderReady, JSON.stringify((_this$strings$selfie = this.strings.selfie) !== null && _this$strings$selfie !== void 0 ? _this$strings$selfie : selfieCaptureStrings), JSON.stringify(this.recorderOptions), this.hideSelfieCaptureBtn, JSON.stringify((_this$strings$selfie$ = (_this$strings$selfie2 = this.strings.selfie) === null || _this$strings$selfie2 === void 0 ? void 0 : _this$strings$selfie2.directions) !== null && _this$strings$selfie$ !== void 0 ? _this$strings$selfie$ : selfieCaptureStrings.directions), this.handleBack, (_this$strings$selfie$2 = (_this$strings$selfie3 = this.strings.selfie) === null || _this$strings$selfie3 === void 0 ? void 0 : _this$strings$selfie3.back) !== null && _this$strings$selfie$2 !== void 0 ? _this$strings$selfie$2 : selfieCaptureStrings.back);
74
+ return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["<uni-selfie-capture\n @selfie=\"", "\"\n @recorderReady=\"", "\"\n strings=\"", "\"\n recorder-options=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <slot name=\"selfie-directions\" slot=\"directions\">\n <uni-video-record-directions\n strings=\"", "\"\n >\n </uni-video-record-directions>\n </slot>\n <uni-button slot=\"action-button\" variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </uni-selfie-capture>"])), this.handleSelfie, this.handleRecoderReady, JSON.stringify((_this$strings$selfie = this.strings.selfie) !== null && _this$strings$selfie !== void 0 ? _this$strings$selfie : selfieCaptureStrings), JSON.stringify(this.recorderOptions), this.hideSelfieCaptureBtn, this.disableDebugMode, JSON.stringify((_this$strings$selfie$ = (_this$strings$selfie2 = this.strings.selfie) === null || _this$strings$selfie2 === void 0 ? void 0 : _this$strings$selfie2.directions) !== null && _this$strings$selfie$ !== void 0 ? _this$strings$selfie$ : selfieCaptureStrings.directions), this.handleBack, (_this$strings$selfie$2 = (_this$strings$selfie3 = this.strings.selfie) === null || _this$strings$selfie3 === void 0 ? void 0 : _this$strings$selfie3.back) !== null && _this$strings$selfie$2 !== void 0 ? _this$strings$selfie$2 : selfieCaptureStrings.back);
74
75
  }
75
76
  }, {
76
77
  key: "render",
@@ -101,6 +102,10 @@ FullCapture.properties = {
101
102
  attribute: "hide-reference-capture-btn",
102
103
  type: Boolean
103
104
  },
105
+ disableDebugMode: {
106
+ attribute: "disable-debug-mode",
107
+ type: Boolean
108
+ },
104
109
  captureStep: {
105
110
  state: true
106
111
  }
package/dist/index.d.ts CHANGED
@@ -329,6 +329,7 @@ declare class Recorder extends LitElement {
329
329
  retryCount: number;
330
330
  isCameraFlipped: boolean;
331
331
  faceDetectionFails: boolean;
332
+ disableDebugMode: boolean;
332
333
  static properties: {
333
334
  preset: {
334
335
  attribute: string;
@@ -362,6 +363,10 @@ declare class Recorder extends LitElement {
362
363
  attribute: string;
363
364
  type: ArrayConstructor;
364
365
  };
366
+ disableDebugMode: {
367
+ attribute: string;
368
+ type: BooleanConstructor;
369
+ };
365
370
  hints: {
366
371
  state: boolean;
367
372
  };
@@ -647,6 +652,7 @@ declare class SelfieCapture extends LitElement {
647
652
  recorderOptions: RecorderOptions$1;
648
653
  hideCapturePrevBtn: boolean;
649
654
  hideCaptureBtn: boolean;
655
+ disableDebugMode: boolean;
650
656
  acquisitionTime: number;
651
657
  static properties: {
652
658
  recorderOptions: {
@@ -665,6 +671,10 @@ declare class SelfieCapture extends LitElement {
665
671
  attribute: string;
666
672
  type: BooleanConstructor;
667
673
  };
674
+ disableDebugMode: {
675
+ attribute: string;
676
+ type: BooleanConstructor;
677
+ };
668
678
  captureStep: {
669
679
  state: boolean;
670
680
  };
@@ -802,6 +812,7 @@ declare class ReferenceCapture extends LitElement {
802
812
  strings: Partial<typeof referenceCaptureStrings>;
803
813
  recorderOptions: RecorderOptions;
804
814
  hideCaptureBtn: boolean;
815
+ disableDebugMode: boolean;
805
816
  static properties: {
806
817
  recorderOptions: {
807
818
  attribute: string;
@@ -815,6 +826,10 @@ declare class ReferenceCapture extends LitElement {
815
826
  attribute: string;
816
827
  type: BooleanConstructor;
817
828
  };
829
+ disableDebugMode: {
830
+ attribute: string;
831
+ type: BooleanConstructor;
832
+ };
818
833
  state: {
819
834
  state: boolean;
820
835
  };
@@ -994,6 +1009,7 @@ declare class FullCapture extends LitElement {
994
1009
  recorderOptions: RecorderOptions$1;
995
1010
  hideSelfieCaptureBtn: boolean;
996
1011
  hideReferenceCaptureBtn: boolean;
1012
+ disableDebugMode: boolean;
997
1013
  static properties: {
998
1014
  recorderOptions: {
999
1015
  attribute: string;
@@ -1011,6 +1027,10 @@ declare class FullCapture extends LitElement {
1011
1027
  attribute: string;
1012
1028
  type: BooleanConstructor;
1013
1029
  };
1030
+ disableDebugMode: {
1031
+ attribute: string;
1032
+ type: BooleanConstructor;
1033
+ };
1014
1034
  captureStep: {
1015
1035
  state: boolean;
1016
1036
  };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Button } from './button.js';
2
- import { R as Recorder } from './video-recorder-d3e657fd.js';
3
- export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-d3e657fd.js';
2
+ import { R as Recorder } from './video-recorder-22ded8cf.js';
3
+ export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-22ded8cf.js';
4
4
  export { VideoRecordDirections } from './video-record-directions.js';
5
5
  export { PictureRecorder } from './picture-recorder.js';
6
6
  export { PictureEditor } from './picture-editor.js';
@@ -1,6 +1,6 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2 } from './lit-element-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { R as Recorder, b as buildPacked } from './video-recorder-d3e657fd.js';
3
+ import { R as Recorder, b as buildPacked } from './video-recorder-22ded8cf.js';
4
4
  import './variables-09a3e162.js';
5
5
  import './button.js';
6
6
 
@@ -3,7 +3,7 @@ import './button.js';
3
3
  import './image-capture-directions.js';
4
4
  import './file-upload.js';
5
5
  import './picture-recorder.js';
6
- import { b as buildPacked } from './video-recorder-d3e657fd.js';
6
+ import { b as buildPacked } from './video-recorder-22ded8cf.js';
7
7
  import { E as EN } from './en-e76ed5a0.js';
8
8
  import { c as referenceCaptureVars } from './variables-09a3e162.js';
9
9
  import './direction-card-f55e1936.js';
@@ -77,6 +77,7 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
77
77
  _this.strings = {};
78
78
  _this.recorderOptions = {};
79
79
  _this.hideCaptureBtn = false;
80
+ _this.disableDebugMode = false;
80
81
  return _this;
81
82
  }
82
83
  _inherits(ReferenceCapture, _LitElement);
@@ -244,13 +245,13 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
244
245
  key: "renderPictureRecord",
245
246
  value: function renderPictureRecord() {
246
247
  var _this$strings$title2, _this$strings$picture2, _this$strings$picture3, _this$strings$back2;
247
- return x(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">\n ", "\n </span>\n\n <div class=\"recorder v-space\">\n <uni-picture-recorder\n id=\"uni-picture-recorder\"\n @picture=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n strings=\"", "\"\n log-level=\"", "\"\n ?hide-capture-btn=", "\n >\n <div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>\n </uni-picture-recorder>\n </div>\n </div>\n "])), (_this$strings$title2 = this.strings.title) !== null && _this$strings$title2 !== void 0 ? _this$strings$title2 : referenceCaptureStrings.title, (_this$strings$picture2 = this.strings.pictureRecordSubtitle) !== null && _this$strings$picture2 !== void 0 ? _this$strings$picture2 : referenceCaptureStrings.pictureRecordSubtitle, this.handlePictureCapture, this.handlePictureRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, JSON.stringify((_this$strings$picture3 = this.strings.pictureRecorder) !== null && _this$strings$picture3 !== void 0 ? _this$strings$picture3 : referenceCaptureStrings.pictureRecorder), this.recorderOptions.logLevel, this.hideCaptureBtn, this.displayDirectionsStep, (_this$strings$back2 = this.strings.back) !== null && _this$strings$back2 !== void 0 ? _this$strings$back2 : referenceCaptureStrings.back);
248
+ return x(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">\n ", "\n </span>\n\n <div class=\"recorder v-space\">\n <uni-picture-recorder\n id=\"uni-picture-recorder\"\n @picture=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n strings=\"", "\"\n log-level=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>\n </uni-picture-recorder>\n </div>\n </div>\n "])), (_this$strings$title2 = this.strings.title) !== null && _this$strings$title2 !== void 0 ? _this$strings$title2 : referenceCaptureStrings.title, (_this$strings$picture2 = this.strings.pictureRecordSubtitle) !== null && _this$strings$picture2 !== void 0 ? _this$strings$picture2 : referenceCaptureStrings.pictureRecordSubtitle, this.handlePictureCapture, this.handlePictureRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, JSON.stringify((_this$strings$picture3 = this.strings.pictureRecorder) !== null && _this$strings$picture3 !== void 0 ? _this$strings$picture3 : referenceCaptureStrings.pictureRecorder), this.recorderOptions.logLevel, this.hideCaptureBtn, this.disableDebugMode, this.displayDirectionsStep, (_this$strings$back2 = this.strings.back) !== null && _this$strings$back2 !== void 0 ? _this$strings$back2 : referenceCaptureStrings.back);
248
249
  }
249
250
  }, {
250
251
  key: "renderVideoRecord",
251
252
  value: function renderVideoRecord() {
252
253
  var _this$strings$title3, _this$strings$videoRe, _this$strings$videoRe2, _this$strings$back3;
253
- return x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\"\n >", "</span\n >\n\n <div class=\"recorder v-space\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n face-checker=\"disabled\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n ?hide-capture-btn=", "\n >\n <div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>\n </uni-video-recorder>\n </div>\n </div>\n "])), (_this$strings$title3 = this.strings.title) !== null && _this$strings$title3 !== void 0 ? _this$strings$title3 : referenceCaptureStrings.title, (_this$strings$videoRe = this.strings.videoRecordSubtitle) !== null && _this$strings$videoRe !== void 0 ? _this$strings$videoRe : referenceCaptureStrings.videoRecordSubtitle, JSON.stringify((_this$strings$videoRe2 = this.strings.videoRecorder) !== null && _this$strings$videoRe2 !== void 0 ? _this$strings$videoRe2 : referenceCaptureStrings.videoRecorder), buildPacked.exports.AcquisitionPreset.DOC_VIDEO, this.recorderOptions.logLevel, this.handleVideoRecord, this.handleVideoRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, this.hideCaptureBtn, this.displayDirectionsStep, (_this$strings$back3 = this.strings.back) !== null && _this$strings$back3 !== void 0 ? _this$strings$back3 : referenceCaptureStrings.back);
254
+ return x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\"\n >", "</span\n >\n\n <div class=\"recorder v-space\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n face-checker=\"disabled\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>\n </uni-video-recorder>\n </div>\n </div>\n "])), (_this$strings$title3 = this.strings.title) !== null && _this$strings$title3 !== void 0 ? _this$strings$title3 : referenceCaptureStrings.title, (_this$strings$videoRe = this.strings.videoRecordSubtitle) !== null && _this$strings$videoRe !== void 0 ? _this$strings$videoRe : referenceCaptureStrings.videoRecordSubtitle, JSON.stringify((_this$strings$videoRe2 = this.strings.videoRecorder) !== null && _this$strings$videoRe2 !== void 0 ? _this$strings$videoRe2 : referenceCaptureStrings.videoRecorder), buildPacked.exports.AcquisitionPreset.DOC_VIDEO, this.recorderOptions.logLevel, this.handleVideoRecord, this.handleVideoRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, this.hideCaptureBtn, this.disableDebugMode, this.displayDirectionsStep, (_this$strings$back3 = this.strings.back) !== null && _this$strings$back3 !== void 0 ? _this$strings$back3 : referenceCaptureStrings.back);
254
255
  }
255
256
  }, {
256
257
  key: "renderVideoReplay",
@@ -286,6 +287,10 @@ ReferenceCapture.properties = {
286
287
  attribute: "hide-capture-btn",
287
288
  type: Boolean
288
289
  },
290
+ disableDebugMode: {
291
+ attribute: "disable-debug-mode",
292
+ type: Boolean
293
+ },
289
294
  state: {
290
295
  state: true
291
296
  }
@@ -1,6 +1,6 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { b as buildPacked } from './video-recorder-d3e657fd.js';
3
+ import { b as buildPacked } from './video-recorder-22ded8cf.js';
4
4
  import './video-record-directions.js';
5
5
  import './button.js';
6
6
  import { s as selfieCaptureVars } from './variables-09a3e162.js';
@@ -34,6 +34,7 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
34
34
  _this.recorderOptions = {};
35
35
  _this.hideCapturePrevBtn = false;
36
36
  _this.hideCaptureBtn = false;
37
+ _this.disableDebugMode = false;
37
38
  _this.acquisitionTime = 0;
38
39
  return _this;
39
40
  }
@@ -102,7 +103,7 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
102
103
  key: "renderRecorder",
103
104
  value: function renderRecorder() {
104
105
  var _this$strings$title2, _this$strings$acquisi, _this$strings$acquisi2, _this$strings$acquisi3, _this$strings$acquisi4, _this$strings$acquisi5, _this$strings$acquisi6, _this$strings$recorde, _this$recorderOptions, _this$recorderOptions2, _this$recorderOptions3, _this$recorderOptions4, _this$strings$back;
105
- return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n ", "\n\n <div class=\"v-space\"></div>\n\n <div class=\"recorder\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n config=\"", "\"\n face-checker=\"", "\"\n instruction-messages=\"", "\"\n ?hide-capture-btn=", "\n >\n ", "\n </uni-video-recorder>\n </div>\n </div>\n "])), (_this$strings$title2 = this.strings.title) !== null && _this$strings$title2 !== void 0 ? _this$strings$title2 : selfieCaptureStrings.title, this.acquisitionTime !== 0 ? x(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n <span class=\"text\">\n ", "\n ", "\n ", "\n </span>\n "])), (_this$strings$acquisi = (_this$strings$acquisi2 = this.strings.acquisitionDuration) === null || _this$strings$acquisi2 === void 0 ? void 0 : _this$strings$acquisi2.base) !== null && _this$strings$acquisi !== void 0 ? _this$strings$acquisi : selfieCaptureStrings.acquisitionDuration.base, Math.ceil(this.acquisitionTime), Math.ceil(this.acquisitionTime) === 1 ? (_this$strings$acquisi3 = (_this$strings$acquisi4 = this.strings.acquisitionDuration) === null || _this$strings$acquisi4 === void 0 ? void 0 : _this$strings$acquisi4.singular) !== null && _this$strings$acquisi3 !== void 0 ? _this$strings$acquisi3 : selfieCaptureStrings.acquisitionDuration.singular : (_this$strings$acquisi5 = (_this$strings$acquisi6 = this.strings.acquisitionDuration) === null || _this$strings$acquisi6 === void 0 ? void 0 : _this$strings$acquisi6.plural) !== null && _this$strings$acquisi5 !== void 0 ? _this$strings$acquisi5 : selfieCaptureStrings.acquisitionDuration.plural) : "", this.handleRecord, this.handleRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, JSON.stringify((_this$strings$recorde = this.strings.recorder) !== null && _this$strings$recorde !== void 0 ? _this$strings$recorde : selfieCaptureStrings.recorder), (_this$recorderOptions = this.recorderOptions.preset) !== null && _this$recorderOptions !== void 0 ? _this$recorderOptions : buildPacked.exports.AcquisitionPreset.SELFIE_FAST, this.recorderOptions.logLevel, JSON.stringify((_this$recorderOptions2 = this.recorderOptions.config) !== null && _this$recorderOptions2 !== void 0 ? _this$recorderOptions2 : {}), (_this$recorderOptions3 = this.recorderOptions.faceChecker) !== null && _this$recorderOptions3 !== void 0 ? _this$recorderOptions3 : "disabled-on-retry", JSON.stringify((_this$recorderOptions4 = this.recorderOptions.instructionMessages) !== null && _this$recorderOptions4 !== void 0 ? _this$recorderOptions4 : []), this.hideCaptureBtn, this.hideCapturePrevBtn ? x(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([""]))) : x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["<div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>"])), this.handleBack, (_this$strings$back = this.strings.back) !== null && _this$strings$back !== void 0 ? _this$strings$back : selfieCaptureStrings.back));
106
+ return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n ", "\n\n <div class=\"v-space\"></div>\n\n <div class=\"recorder\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n config=\"", "\"\n face-checker=\"", "\"\n instruction-messages=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n ", "\n </uni-video-recorder>\n </div>\n </div>\n "])), (_this$strings$title2 = this.strings.title) !== null && _this$strings$title2 !== void 0 ? _this$strings$title2 : selfieCaptureStrings.title, this.acquisitionTime !== 0 ? x(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n <span class=\"text\">\n ", "\n ", "\n ", "\n </span>\n "])), (_this$strings$acquisi = (_this$strings$acquisi2 = this.strings.acquisitionDuration) === null || _this$strings$acquisi2 === void 0 ? void 0 : _this$strings$acquisi2.base) !== null && _this$strings$acquisi !== void 0 ? _this$strings$acquisi : selfieCaptureStrings.acquisitionDuration.base, Math.ceil(this.acquisitionTime), Math.ceil(this.acquisitionTime) === 1 ? (_this$strings$acquisi3 = (_this$strings$acquisi4 = this.strings.acquisitionDuration) === null || _this$strings$acquisi4 === void 0 ? void 0 : _this$strings$acquisi4.singular) !== null && _this$strings$acquisi3 !== void 0 ? _this$strings$acquisi3 : selfieCaptureStrings.acquisitionDuration.singular : (_this$strings$acquisi5 = (_this$strings$acquisi6 = this.strings.acquisitionDuration) === null || _this$strings$acquisi6 === void 0 ? void 0 : _this$strings$acquisi6.plural) !== null && _this$strings$acquisi5 !== void 0 ? _this$strings$acquisi5 : selfieCaptureStrings.acquisitionDuration.plural) : "", this.handleRecord, this.handleRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, JSON.stringify((_this$strings$recorde = this.strings.recorder) !== null && _this$strings$recorde !== void 0 ? _this$strings$recorde : selfieCaptureStrings.recorder), (_this$recorderOptions = this.recorderOptions.preset) !== null && _this$recorderOptions !== void 0 ? _this$recorderOptions : buildPacked.exports.AcquisitionPreset.SELFIE_FAST, this.recorderOptions.logLevel, JSON.stringify((_this$recorderOptions2 = this.recorderOptions.config) !== null && _this$recorderOptions2 !== void 0 ? _this$recorderOptions2 : {}), (_this$recorderOptions3 = this.recorderOptions.faceChecker) !== null && _this$recorderOptions3 !== void 0 ? _this$recorderOptions3 : "disabled-on-retry", JSON.stringify((_this$recorderOptions4 = this.recorderOptions.instructionMessages) !== null && _this$recorderOptions4 !== void 0 ? _this$recorderOptions4 : []), this.hideCaptureBtn, this.disableDebugMode, this.hideCapturePrevBtn ? x(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([""]))) : x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["<div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>"])), this.handleBack, (_this$strings$back = this.strings.back) !== null && _this$strings$back !== void 0 ? _this$strings$back : selfieCaptureStrings.back));
106
107
  }
107
108
  }, {
108
109
  key: "render",
@@ -133,6 +134,10 @@ SelfieCapture.properties = {
133
134
  attribute: "hide-capture-btn",
134
135
  type: Boolean
135
136
  },
137
+ disableDebugMode: {
138
+ attribute: "disable-debug-mode",
139
+ type: Boolean
140
+ },
136
141
  captureStep: {
137
142
  state: true
138
143
  },
@@ -4,7 +4,7 @@ import { E as EN } from './en-e76ed5a0.js';
4
4
  import './button.js';
5
5
 
6
6
  var name = "@unissey-web/web-components";
7
- var version = "3.8.3-alpha.3";
7
+ var version = "3.8.3-beta.1";
8
8
  var description = "";
9
9
  var module = "./dist/index.js";
10
10
  var typings = "./dist/index.d.ts";
@@ -374,6 +374,8 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
374
374
  _this.isCameraFlipped = false;
375
375
  // Does the latest session fails to find a face ? Used to disable the face detection on retry (depending on 'faceChecker' property value')
376
376
  _this.faceDetectionFails = false;
377
+ // Enable / disable the debugger hook
378
+ _this.disableDebugMode = false;
377
379
  _this.sdkJsListener_status = function (status) {
378
380
  var _this$shadowRoot, _this$shadowRoot2;
379
381
  _this.sdkJsStatus = status;
@@ -647,6 +649,11 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
647
649
  var _this$shadowRoot4;
648
650
  var video = (_this$shadowRoot4 = this.shadowRoot) === null || _this$shadowRoot4 === void 0 ? void 0 : _this$shadowRoot4.getElementById("vid");
649
651
  video.addEventListener("resize", this.adjustContainerSize.bind(this));
652
+
653
+ // This property is used to disable the debugger. At false, the debugger is desactivated.
654
+ // By default, it's activated because the "disableDebugMode" property value is false by default.
655
+ // We need to set it to false and negate it's value because of Lit limitation concerning boolean values
656
+ buildPacked.exports.UnisseySdk.hkdb = !this.disableDebugMode;
650
657
  }
651
658
  }, {
652
659
  key: "updated",
@@ -698,8 +705,6 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
698
705
  key: "initSdkJs",
699
706
  value: function initSdkJs() {
700
707
  buildPacked.exports.UnisseySdk.setLogLevel(this.logLevel);
701
- // This property is used to disable the debugger
702
- buildPacked.exports.UnisseySdk.hkdb = true;
703
708
  var sdkEmitter = buildPacked.exports.UnisseySdk.getReferenceToEventEmitter();
704
709
  sdkEmitter.on(buildPacked.exports.AcquisitionEvent.ISSUE, this.sdkJsListener_issue);
705
710
  sdkEmitter.on(buildPacked.exports.AcquisitionEvent.FACE_INFO, this.sdkJsListener_faceInfo);
@@ -1092,6 +1097,10 @@ Recorder.properties = {
1092
1097
  attribute: "instruction-messages",
1093
1098
  type: Array
1094
1099
  },
1100
+ disableDebugMode: {
1101
+ attribute: "disable-debug-mode",
1102
+ type: Boolean
1103
+ },
1095
1104
  // Internal state
1096
1105
  hints: {
1097
1106
  state: true
@@ -1,5 +1,5 @@
1
1
  import './lit-element-ac3d3a27.js';
2
- export { R as Recorder, V as VideoRecorder } from './video-recorder-d3e657fd.js';
2
+ export { R as Recorder, V as VideoRecorder } from './video-recorder-22ded8cf.js';
3
3
  import './button.js';
4
4
  import './en-e76ed5a0.js';
5
5
  import './variables-09a3e162.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unissey-web/web-components",
3
- "version": "3.8.3-alpha.3",
3
+ "version": "3.8.3-beta.1",
4
4
  "description": "",
5
5
  "module": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",