@unissey-web/sdk-react 5.0.0-rc.4 → 5.0.0-rc.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.
package/dist/index.d.ts CHANGED
@@ -12,6 +12,8 @@ declare const FileUpload: _lit_labs_react.ReactWebComponent<FileUpload$1, {
12
12
  declare const FullCapture: _lit_labs_react.ReactWebComponent<FullCapture$1, {
13
13
  onData: string;
14
14
  onRecorderReady: string;
15
+ onReferenceActiveChallenge: string;
16
+ onSelfieActiveChallenge: string;
15
17
  }>;
16
18
 
17
19
  declare const PictureEditor: _lit_labs_react.ReactWebComponent<PictureEditor$1, {
@@ -36,6 +38,7 @@ declare const ReferenceCapture: _lit_labs_react.ReactWebComponent<ReferenceCaptu
36
38
  onRecordCapturing: string;
37
39
  onRecordInterrupted: string;
38
40
  onRecordCompleted: string;
41
+ onActiveChallenge: string;
39
42
  }>;
40
43
 
41
44
  declare const RetryResult: _lit_labs_react.ReactWebComponent<RetryResult$1, {
@@ -50,6 +53,7 @@ declare const SelfieCapture: _lit_labs_react.ReactWebComponent<SelfieCapture$1,
50
53
  onRecordCapturing: string;
51
54
  onRecordInterrupted: string;
52
55
  onRecordCompleted: string;
56
+ onActiveChallenge: string;
53
57
  }>;
54
58
 
55
59
  declare const VideoRecordDirections: _lit_labs_react.ReactWebComponent<VideoRecordDirections$1, {}>;
@@ -61,6 +65,7 @@ declare const RecorderWithoutVersion: _lit_labs_react.ReactWebComponent<Recorder
61
65
  onRecordCapturing: string;
62
66
  onRecordInterrupted: string;
63
67
  onRecordCompleted: string;
68
+ onActiveChallenge: string;
64
69
  }>;
65
70
  type RecorderProps = React.ComponentProps<typeof RecorderWithoutVersion>;
66
71
  declare const VideoRecorder: React.ForwardRefExoticComponent<RecorderProps & React.RefAttributes<Recorder>>;
package/dist/index.js CHANGED
@@ -552,7 +552,7 @@ var EN = {
552
552
  };
553
553
 
554
554
  var name$1 = "@unissey-web/web-components";
555
- var version$1 = "5.0.0-rc.4";
555
+ var version$1 = "5.0.0-rc.5";
556
556
  var description$1 = "";
557
557
  var module$1 = "./dist/index.js";
558
558
  var typings$1 = "./dist/index.d.ts";
@@ -2901,6 +2901,13 @@ var SelfieCapture$1 = /*#__PURE__*/function (_LitElement) {
2901
2901
  value: function handleRecordInterrupted(e) {
2902
2902
  this.dispatchEvent(new CustomEvent("recordInterrupted"));
2903
2903
  }
2904
+ }, {
2905
+ key: "handleActiveChallenge",
2906
+ value: function handleActiveChallenge(e) {
2907
+ this.dispatchEvent(new CustomEvent("activeChallenge", {
2908
+ detail: e.detail
2909
+ }));
2910
+ }
2904
2911
  }, {
2905
2912
  key: "renderDirections",
2906
2913
  value: function renderDirections() {
@@ -2911,7 +2918,7 @@ var SelfieCapture$1 = /*#__PURE__*/function (_LitElement) {
2911
2918
  key: "renderRecorder",
2912
2919
  value: function renderRecorder() {
2913
2920
  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;
2914
- return x$2(_templateObject2$2 || (_templateObject2$2 = _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$2(_templateObject3$1 || (_templateObject3$1 = _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_MJPEG, 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$2(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral([""]))) : x$2(_templateObject5$1 || (_templateObject5$1 = _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));
2921
+ return x$2(_templateObject2$2 || (_templateObject2$2 = _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 @activeChallenge=\"", "\"\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$2(_templateObject3$1 || (_templateObject3$1 = _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, this.handleActiveChallenge, 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_MJPEG, 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$2(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral([""]))) : x$2(_templateObject5$1 || (_templateObject5$1 = _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));
2915
2922
  }
2916
2923
  }, {
2917
2924
  key: "render",
@@ -3171,6 +3178,13 @@ var ReferenceCapture$1 = /*#__PURE__*/function (_LitElement) {
3171
3178
  value: function handleRecordInterrupted(e) {
3172
3179
  this.dispatchEvent(new CustomEvent("recordInterrupted"));
3173
3180
  }
3181
+ }, {
3182
+ key: "handleActiveChallenge",
3183
+ value: function handleActiveChallenge(e) {
3184
+ this.dispatchEvent(new CustomEvent("activeChallenge", {
3185
+ detail: e.detail
3186
+ }));
3187
+ }
3174
3188
  }, {
3175
3189
  key: "renderDirections",
3176
3190
  value: function renderDirections() {
@@ -3193,7 +3207,7 @@ var ReferenceCapture$1 = /*#__PURE__*/function (_LitElement) {
3193
3207
  key: "renderPictureRecord",
3194
3208
  value: function renderPictureRecord() {
3195
3209
  var _this$strings$title2, _this$strings$picture2, _this$strings$picture3, _this$recorderOptions, _this$strings$back2;
3196
- return x$2(_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 = this.recorderOptions) === null || _this$recorderOptions === void 0 ? void 0 : _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);
3210
+ return x$2(_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 @activeChallenge=\"", "\"\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, this.handleActiveChallenge, JSON.stringify((_this$strings$picture3 = this.strings.pictureRecorder) !== null && _this$strings$picture3 !== void 0 ? _this$strings$picture3 : referenceCaptureStrings.pictureRecorder), (_this$recorderOptions = this.recorderOptions) === null || _this$recorderOptions === void 0 ? void 0 : _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);
3197
3211
  }
3198
3212
  }, {
3199
3213
  key: "renderVideoRecord",
@@ -3292,6 +3306,20 @@ var FullCapture$1 = /*#__PURE__*/function (_LitElement) {
3292
3306
  }
3293
3307
  }));
3294
3308
  }
3309
+ }, {
3310
+ key: "handleReferenceActiveChallenge",
3311
+ value: function handleReferenceActiveChallenge(e) {
3312
+ this.dispatchEvent(new CustomEvent("referenceActiveChallenge", {
3313
+ detail: e.detail
3314
+ }));
3315
+ }
3316
+ }, {
3317
+ key: "handleSelfieActiveChallenge",
3318
+ value: function handleSelfieActiveChallenge(e) {
3319
+ this.dispatchEvent(new CustomEvent("selfieActiveChallenge", {
3320
+ detail: e.detail
3321
+ }));
3322
+ }
3295
3323
  }, {
3296
3324
  key: "handleBack",
3297
3325
  value: function handleBack() {
@@ -3301,13 +3329,13 @@ var FullCapture$1 = /*#__PURE__*/function (_LitElement) {
3301
3329
  key: "renderReferenceStep",
3302
3330
  value: function renderReferenceStep() {
3303
3331
  var _this$strings$referen, _this$strings$referen2, _this$strings$referen3;
3304
- return x$2(_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=\"reference-action-button\" slot=\"action-button\"></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));
3332
+ return x$2(_templateObject || (_templateObject = _taggedTemplateLiteral([" <uni-reference-capture\n @reference=\"", "\"\n @recorderReady=\"", "\"\n @activeChallenge=\"", "\"\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=\"reference-action-button\" slot=\"action-button\"></slot>\n </uni-reference-capture>"])), this.handleReference, this.handleRecoderReady, this.handleReferenceActiveChallenge, 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));
3305
3333
  }
3306
3334
  }, {
3307
3335
  key: "renderSelfieStep",
3308
3336
  value: function renderSelfieStep() {
3309
3337
  var _this$strings$selfie, _this$strings$selfie$, _this$strings$selfie2, _this$strings$selfie$2, _this$strings$selfie3;
3310
- return x$2(_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);
3338
+ return x$2(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["<uni-selfie-capture\n @selfie=\"", "\"\n @recorderReady=\"", "\"\n @activeChallenge=\"", "\"\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, this.handleSelfieActiveChallenge, 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);
3311
3339
  }
3312
3340
  }, {
3313
3341
  key: "render",
@@ -3547,7 +3575,9 @@ var FullCapture = i$2({
3547
3575
  react: React,
3548
3576
  events: {
3549
3577
  onData: "data",
3550
- onRecorderReady: "recorderReady"
3578
+ onRecorderReady: "recorderReady",
3579
+ onReferenceActiveChallenge: "referenceActiveChallenge",
3580
+ onSelfieActiveChallenge: "selfieActiveChallenge"
3551
3581
  }
3552
3582
  });
3553
3583
 
@@ -3576,7 +3606,8 @@ var ReferenceCapture = i$2({
3576
3606
  onRecordStarting: "recordStarting",
3577
3607
  onRecordCapturing: "recordCapturing",
3578
3608
  onRecordInterrupted: "recordInterrupted",
3579
- onRecordCompleted: "recordCompleted"
3609
+ onRecordCompleted: "recordCompleted",
3610
+ onActiveChallenge: "activeChallenge"
3580
3611
  }
3581
3612
  });
3582
3613
 
@@ -3595,7 +3626,8 @@ var SelfieCapture = i$2({
3595
3626
  onRecordStarting: "recordStarting",
3596
3627
  onRecordCapturing: "recordCapturing",
3597
3628
  onRecordInterrupted: "recordInterrupted",
3598
- onRecordCompleted: "recordCompleted"
3629
+ onRecordCompleted: "recordCompleted",
3630
+ onActiveChallenge: "activeChallenge"
3599
3631
  }
3600
3632
  });
3601
3633
 
@@ -3612,7 +3644,7 @@ function _extends() {
3612
3644
  }
3613
3645
 
3614
3646
  var name = "@unissey-web/sdk-react";
3615
- var version = "5.0.0-rc.4";
3647
+ var version = "5.0.0-rc.5";
3616
3648
  var description = "Unissey React Sdk";
3617
3649
  var license = "ISC";
3618
3650
  var module = "./dist/index.js";
@@ -3681,7 +3713,8 @@ var RecorderWithoutVersion = i$2({
3681
3713
  onRecordStarting: "recordStarting",
3682
3714
  onRecordCapturing: "recordCapturing",
3683
3715
  onRecordInterrupted: "recordInterrupted",
3684
- onRecordCompleted: "recordCompleted"
3716
+ onRecordCompleted: "recordCompleted",
3717
+ onActiveChallenge: "activeChallenge"
3685
3718
  }
3686
3719
  });
3687
3720
  var VideoRecorder = /*#__PURE__*/React.forwardRef(function (props, ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unissey-web/sdk-react",
3
- "version": "5.0.0-rc.4",
3
+ "version": "5.0.0-rc.5",
4
4
  "description": "Unissey React Sdk",
5
5
  "license": "ISC",
6
6
  "module": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@lit-labs/react": "^1.0.2",
25
- "@unissey-web/web-components": "5.0.0-rc.4"
25
+ "@unissey-web/web-components": "5.0.0-rc.5"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",