@unissey-web/web-components 5.0.0-rc.4 → 5.0.0-rc.6
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/full-capture.js +19 -4
- package/dist/index.d.ts +19 -0
- package/dist/index.js +2 -2
- package/dist/picture-recorder.js +1 -1
- package/dist/reference-capture.js +11 -3
- package/dist/selfie-capture.js +11 -3
- package/dist/{video-recorder-74d5f262.js → video-recorder-9f0ba90e.js} +1 -1
- package/dist/video-recorder.js +1 -1
- package/package.json +1 -1
package/dist/full-capture.js
CHANGED
|
@@ -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-066d960b.js';
|
|
6
|
-
import './video-recorder-
|
|
6
|
+
import './video-recorder-9f0ba90e.js';
|
|
7
7
|
import './_commonjsHelpers-02146103.js';
|
|
8
8
|
import './variables-be2b795f.js';
|
|
9
9
|
import './video-record-directions.js';
|
|
@@ -54,10 +54,25 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
54
54
|
recorderElmt: e.detail.recorderElmt,
|
|
55
55
|
mediaType: e.detail.mediaType,
|
|
56
56
|
contentKind: e.detail.contentKind,
|
|
57
|
-
acquisitionTIme: e.detail.acquisitionTime
|
|
57
|
+
acquisitionTIme: e.detail.acquisitionTime,
|
|
58
|
+
activeChallengeNumActions: e.detail.activeChallengeNumActions
|
|
58
59
|
}
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "handleReferenceActiveChallenge",
|
|
64
|
+
value: function handleReferenceActiveChallenge(e) {
|
|
65
|
+
this.dispatchEvent(new CustomEvent("referenceActiveChallenge", {
|
|
66
|
+
detail: e.detail
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "handleSelfieActiveChallenge",
|
|
71
|
+
value: function handleSelfieActiveChallenge(e) {
|
|
72
|
+
this.dispatchEvent(new CustomEvent("selfieActiveChallenge", {
|
|
73
|
+
detail: e.detail
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
61
76
|
}, {
|
|
62
77
|
key: "handleBack",
|
|
63
78
|
value: function handleBack() {
|
|
@@ -67,13 +82,13 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
67
82
|
key: "renderReferenceStep",
|
|
68
83
|
value: function renderReferenceStep() {
|
|
69
84
|
var _this$strings$referen, _this$strings$referen2, _this$strings$referen3;
|
|
70
|
-
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=\"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));
|
|
85
|
+
return x(_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));
|
|
71
86
|
}
|
|
72
87
|
}, {
|
|
73
88
|
key: "renderSelfieStep",
|
|
74
89
|
value: function renderSelfieStep() {
|
|
75
90
|
var _this$strings$selfie, _this$strings$selfie$, _this$strings$selfie2, _this$strings$selfie$2, _this$strings$selfie3;
|
|
76
|
-
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);
|
|
91
|
+
return x(_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);
|
|
77
92
|
}
|
|
78
93
|
}, {
|
|
79
94
|
key: "render",
|
package/dist/index.d.ts
CHANGED
|
@@ -730,6 +730,7 @@ declare class SelfieCapture extends LitElement {
|
|
|
730
730
|
handleRecoderReady(e: CustomEvent<{
|
|
731
731
|
mediaType: string;
|
|
732
732
|
acquisitionTime: number;
|
|
733
|
+
activeChallengeNumActions?: number;
|
|
733
734
|
}>): void;
|
|
734
735
|
handleRecordCompleted(e: CustomEvent<{
|
|
735
736
|
media: Blob;
|
|
@@ -739,6 +740,10 @@ declare class SelfieCapture extends LitElement {
|
|
|
739
740
|
handleRecordStarting(e: CustomEvent): void;
|
|
740
741
|
handleRecordCapturing(e: CustomEvent): void;
|
|
741
742
|
handleRecordInterrupted(e: CustomEvent): void;
|
|
743
|
+
handleActiveChallenge(e: CustomEvent<{
|
|
744
|
+
action?: string;
|
|
745
|
+
status?: string;
|
|
746
|
+
}>): void;
|
|
742
747
|
renderDirections(): lit_html.TemplateResult<1>;
|
|
743
748
|
renderRecorder(): lit_html.TemplateResult<1>;
|
|
744
749
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -903,6 +908,7 @@ declare class ReferenceCapture extends LitElement {
|
|
|
903
908
|
handlePictureRecoderReady(e: CustomEvent<{
|
|
904
909
|
mediaType: string;
|
|
905
910
|
acquisitionTime: number;
|
|
911
|
+
activeChallengeNumActions?: number;
|
|
906
912
|
}>): void;
|
|
907
913
|
handleRecordCompleted(e: CustomEvent<{
|
|
908
914
|
media: Blob;
|
|
@@ -912,6 +918,10 @@ declare class ReferenceCapture extends LitElement {
|
|
|
912
918
|
handleRecordStarting(e: CustomEvent): void;
|
|
913
919
|
handleRecordCapturing(e: CustomEvent): void;
|
|
914
920
|
handleRecordInterrupted(e: CustomEvent): void;
|
|
921
|
+
handleActiveChallenge(e: CustomEvent<{
|
|
922
|
+
action?: string;
|
|
923
|
+
status?: string;
|
|
924
|
+
}>): void;
|
|
915
925
|
renderDirections(): lit_html.TemplateResult<1>;
|
|
916
926
|
renderFileUpload(): lit_html.TemplateResult<1>;
|
|
917
927
|
renderPictureEditor(): lit_html.TemplateResult<1>;
|
|
@@ -1096,6 +1106,15 @@ declare class FullCapture extends LitElement {
|
|
|
1096
1106
|
mediaType: string;
|
|
1097
1107
|
contentKind: string;
|
|
1098
1108
|
acquisitionTime?: number;
|
|
1109
|
+
activeChallengeNumActions?: number;
|
|
1110
|
+
}>): void;
|
|
1111
|
+
handleReferenceActiveChallenge(e: CustomEvent<{
|
|
1112
|
+
action?: string;
|
|
1113
|
+
status?: string;
|
|
1114
|
+
}>): void;
|
|
1115
|
+
handleSelfieActiveChallenge(e: CustomEvent<{
|
|
1116
|
+
action?: string;
|
|
1117
|
+
status?: string;
|
|
1099
1118
|
}>): void;
|
|
1100
1119
|
handleBack(): void;
|
|
1101
1120
|
renderReferenceStep(): lit_html.TemplateResult<1>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Button } from './button.js';
|
|
2
|
-
import { R as Recorder } from './video-recorder-
|
|
3
|
-
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-
|
|
2
|
+
import { R as Recorder } from './video-recorder-9f0ba90e.js';
|
|
3
|
+
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-9f0ba90e.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';
|
package/dist/picture-recorder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-83035a6f.js';
|
|
2
|
-
import { R as Recorder, b as buildPacked } from './video-recorder-
|
|
2
|
+
import { R as Recorder, b as buildPacked } from './video-recorder-9f0ba90e.js';
|
|
3
3
|
import { E as EN } from './en-066d960b.js';
|
|
4
4
|
import './_commonjsHelpers-02146103.js';
|
|
5
5
|
import './variables-be2b795f.js';
|
|
@@ -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-
|
|
6
|
+
import { b as buildPacked } from './video-recorder-9f0ba90e.js';
|
|
7
7
|
import { E as EN } from './en-066d960b.js';
|
|
8
8
|
import { a as referenceCaptureVars } from './variables-be2b795f.js';
|
|
9
9
|
import './direction-card-143ab05d.js';
|
|
@@ -198,7 +198,8 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
198
198
|
recorderElmt: pictureRecorderElmt,
|
|
199
199
|
mediaType: e.detail.mediaType,
|
|
200
200
|
contentKind: "reference",
|
|
201
|
-
acquisitionTime: e.detail.acquisitionTime
|
|
201
|
+
acquisitionTime: e.detail.acquisitionTime,
|
|
202
|
+
activeChallengeNumActions: e.detail.activeChallengeNumActions
|
|
202
203
|
}
|
|
203
204
|
}));
|
|
204
205
|
}
|
|
@@ -224,6 +225,13 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
224
225
|
value: function handleRecordInterrupted(e) {
|
|
225
226
|
this.dispatchEvent(new CustomEvent("recordInterrupted"));
|
|
226
227
|
}
|
|
228
|
+
}, {
|
|
229
|
+
key: "handleActiveChallenge",
|
|
230
|
+
value: function handleActiveChallenge(e) {
|
|
231
|
+
this.dispatchEvent(new CustomEvent("activeChallenge", {
|
|
232
|
+
detail: e.detail
|
|
233
|
+
}));
|
|
234
|
+
}
|
|
227
235
|
}, {
|
|
228
236
|
key: "renderDirections",
|
|
229
237
|
value: function renderDirections() {
|
|
@@ -246,7 +254,7 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
246
254
|
key: "renderPictureRecord",
|
|
247
255
|
value: function renderPictureRecord() {
|
|
248
256
|
var _this$strings$title2, _this$strings$picture2, _this$strings$picture3, _this$recorderOptions, _this$strings$back2;
|
|
249
|
-
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 = 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);
|
|
257
|
+
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 @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);
|
|
250
258
|
}
|
|
251
259
|
}, {
|
|
252
260
|
key: "renderVideoRecord",
|
package/dist/selfie-capture.js
CHANGED
|
@@ -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-83035a6f.js';
|
|
2
2
|
import { E as EN } from './en-066d960b.js';
|
|
3
|
-
import { b as buildPacked } from './video-recorder-
|
|
3
|
+
import { b as buildPacked } from './video-recorder-9f0ba90e.js';
|
|
4
4
|
import './video-record-directions.js';
|
|
5
5
|
import './button.js';
|
|
6
6
|
import { s as selfieCaptureVars } from './variables-be2b795f.js';
|
|
@@ -68,7 +68,8 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
68
68
|
recorderElmt: videoRecorderElmt,
|
|
69
69
|
mediaType: e.detail.mediaType,
|
|
70
70
|
contentKind: "selfie",
|
|
71
|
-
acquisitionTime: e.detail.acquisitionTime
|
|
71
|
+
acquisitionTime: e.detail.acquisitionTime,
|
|
72
|
+
activeChallengeNumActions: e.detail.activeChallengeNumActions
|
|
72
73
|
}
|
|
73
74
|
}));
|
|
74
75
|
}
|
|
@@ -94,6 +95,13 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
94
95
|
value: function handleRecordInterrupted(e) {
|
|
95
96
|
this.dispatchEvent(new CustomEvent("recordInterrupted"));
|
|
96
97
|
}
|
|
98
|
+
}, {
|
|
99
|
+
key: "handleActiveChallenge",
|
|
100
|
+
value: function handleActiveChallenge(e) {
|
|
101
|
+
this.dispatchEvent(new CustomEvent("activeChallenge", {
|
|
102
|
+
detail: e.detail
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
97
105
|
}, {
|
|
98
106
|
key: "renderDirections",
|
|
99
107
|
value: function renderDirections() {
|
|
@@ -104,7 +112,7 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
104
112
|
key: "renderRecorder",
|
|
105
113
|
value: function renderRecorder() {
|
|
106
114
|
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;
|
|
107
|
-
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_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(_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));
|
|
115
|
+
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 @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(_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, 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(_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));
|
|
108
116
|
}
|
|
109
117
|
}, {
|
|
110
118
|
key: "render",
|
|
@@ -5,7 +5,7 @@ import { E as EN } from './en-066d960b.js';
|
|
|
5
5
|
import './button.js';
|
|
6
6
|
|
|
7
7
|
var name = "@unissey-web/web-components";
|
|
8
|
-
var version = "5.0.0-rc.
|
|
8
|
+
var version = "5.0.0-rc.6";
|
|
9
9
|
var description = "";
|
|
10
10
|
var module = "./dist/index.js";
|
|
11
11
|
var typings = "./dist/index.d.ts";
|
package/dist/video-recorder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './lit-element-83035a6f.js';
|
|
2
|
-
export { R as Recorder, V as VideoRecorder } from './video-recorder-
|
|
2
|
+
export { R as Recorder, V as VideoRecorder } from './video-recorder-9f0ba90e.js';
|
|
3
3
|
import './button.js';
|
|
4
4
|
import './en-066d960b.js';
|
|
5
5
|
import './_commonjsHelpers-02146103.js';
|