@unissey-web/web-components 3.10.0-rc.1 → 3.10.0-test
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/_commonjsHelpers-cef27602.js +7 -0
- package/dist/file-upload.js +340 -19
- package/dist/full-capture.js +5 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +3 -2
- package/dist/picture-recorder.js +2 -1
- package/dist/reference-capture.js +4 -3
- package/dist/selfie-capture.js +3 -2
- package/dist/video-recorder-b9f78b8e.js +1128 -0
- package/dist/video-recorder.js +2 -1
- package/package.json +3 -2
- package/dist/video-recorder-024f6f4c.js +0 -1136
package/dist/full-capture.js
CHANGED
|
@@ -3,7 +3,8 @@ 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-
|
|
6
|
+
import './video-recorder-b9f78b8e.js';
|
|
7
|
+
import './_commonjsHelpers-cef27602.js';
|
|
7
8
|
import './variables-09a3e162.js';
|
|
8
9
|
import './video-record-directions.js';
|
|
9
10
|
import './direction-card-f55e1936.js';
|
|
@@ -40,7 +41,8 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
40
41
|
detail: {
|
|
41
42
|
selfie: e.detail.media,
|
|
42
43
|
reference: this.reference,
|
|
43
|
-
metadata: e.detail.metadata
|
|
44
|
+
metadata: e.detail.metadata,
|
|
45
|
+
error: e.detail.error
|
|
44
46
|
}
|
|
45
47
|
}));
|
|
46
48
|
}
|
|
@@ -65,7 +67,7 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
65
67
|
key: "renderReferenceStep",
|
|
66
68
|
value: function renderReferenceStep() {
|
|
67
69
|
var _this$strings$referen, _this$strings$referen2, _this$strings$referen3;
|
|
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-
|
|
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));
|
|
69
71
|
}
|
|
70
72
|
}, {
|
|
71
73
|
key: "renderSelfieStep",
|
package/dist/index.d.ts
CHANGED
|
@@ -518,7 +518,7 @@ declare class FileUpload extends LitElement {
|
|
|
518
518
|
valid: boolean;
|
|
519
519
|
error: string;
|
|
520
520
|
};
|
|
521
|
-
handleFileSelection(files: FileList): void
|
|
521
|
+
handleFileSelection(files: FileList): Promise<void>;
|
|
522
522
|
handleClick(): void;
|
|
523
523
|
init(): void;
|
|
524
524
|
updated(): void;
|
|
@@ -697,6 +697,7 @@ declare class SelfieCapture extends LitElement {
|
|
|
697
697
|
handleRecordCompleted(e: CustomEvent<{
|
|
698
698
|
media: Blob;
|
|
699
699
|
metadata: unknown;
|
|
700
|
+
error?: string;
|
|
700
701
|
}>): void;
|
|
701
702
|
handleRecordStarting(e: CustomEvent): void;
|
|
702
703
|
handleRecordCapturing(e: CustomEvent): void;
|
|
@@ -836,7 +837,7 @@ declare class ReferenceCapture extends LitElement {
|
|
|
836
837
|
};
|
|
837
838
|
static styles: lit.CSSResult;
|
|
838
839
|
handleFileSelection(e: CustomEvent<{
|
|
839
|
-
file: File;
|
|
840
|
+
file: File | Blob;
|
|
840
841
|
}>): void;
|
|
841
842
|
handlePictureCapture(e: CustomEvent<{
|
|
842
843
|
picture: Blob;
|
|
@@ -866,6 +867,7 @@ declare class ReferenceCapture extends LitElement {
|
|
|
866
867
|
handleRecordCompleted(e: CustomEvent<{
|
|
867
868
|
media: Blob;
|
|
868
869
|
metadata: unknown;
|
|
870
|
+
error?: string;
|
|
869
871
|
}>): void;
|
|
870
872
|
handleRecordStarting(e: CustomEvent): void;
|
|
871
873
|
handleRecordCapturing(e: CustomEvent): void;
|
|
@@ -1041,6 +1043,7 @@ declare class FullCapture extends LitElement {
|
|
|
1041
1043
|
handleSelfie(e: CustomEvent<{
|
|
1042
1044
|
media: Blob;
|
|
1043
1045
|
metadata: unknown;
|
|
1046
|
+
error?: string;
|
|
1044
1047
|
}>): void;
|
|
1045
1048
|
handleRecoderReady(e: CustomEvent<{
|
|
1046
1049
|
recorderElmt: HTMLElement;
|
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 { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-
|
|
2
|
+
import { R as Recorder } from './video-recorder-b9f78b8e.js';
|
|
3
|
+
export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-b9f78b8e.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';
|
|
@@ -14,6 +14,7 @@ export { FullCapture } from './full-capture.js';
|
|
|
14
14
|
export { D as DirectionCard } from './direction-card-f55e1936.js';
|
|
15
15
|
export { E as EN } from './en-e76ed5a0.js';
|
|
16
16
|
import './variables-09a3e162.js';
|
|
17
|
+
import './_commonjsHelpers-cef27602.js';
|
|
17
18
|
|
|
18
19
|
// @ts-ignore
|
|
19
20
|
|
package/dist/picture-recorder.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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-
|
|
3
|
+
import { R as Recorder, b as buildPacked } from './video-recorder-b9f78b8e.js';
|
|
4
|
+
import './_commonjsHelpers-cef27602.js';
|
|
4
5
|
import './variables-09a3e162.js';
|
|
5
6
|
import './button.js';
|
|
6
7
|
|
|
@@ -3,10 +3,11 @@ 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-b9f78b8e.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';
|
|
10
|
+
import './_commonjsHelpers-cef27602.js';
|
|
10
11
|
|
|
11
12
|
var _templateObject$1;
|
|
12
13
|
var UploadIcon = /*#__PURE__*/function (_LitElement) {
|
|
@@ -227,7 +228,7 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
227
228
|
key: "renderDirections",
|
|
228
229
|
value: function renderDirections() {
|
|
229
230
|
var _this$strings$title, _this$strings$directi, _this$strings$directi2, _this$strings$uploadB, _this$strings$picture, _this$strings$recordV;
|
|
230
|
-
return x(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\"
|
|
231
|
+
return x(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">", "</span>\n\n <div class=\"directions v-space\">\n <slot name=\"directions\">\n <uni-image-capture-directions\n strings=\"", "\"\n ></uni-image-capture-directions>\n </slot>\n </div>\n\n <div class=\"h-box v-space\">\n <div class=\"btn-items\">\n <slot name=\"action-button\"></slot>\n </div>\n\n <div class=\"btn-items\">\n <uni-button @click=\"", "\">\n <div slot=\"icon\"><uni-upload-icon></uni-upload-icon></div>\n ", "\n </uni-button>\n </div>\n\n <div class=\"btn-items\">\n <uni-button @click=\"", "\">\n <div slot=\"icon\">\n <uni-photo-camera-icon></uni-photo-camera-icon>\n </div>\n ", "\n </uni-button>\n </div>\n\n <div class=\"btn-items\">\n <uni-button @click=\"", "\">\n <div slot=\"icon\">\n <uni-camera-video-outlined-icon></uni-camera-video-outlined-icon>\n </div>\n ", "\n </uni-button>\n </div>\n </div>\n </div>\n "])), (_this$strings$title = this.strings.title) !== null && _this$strings$title !== void 0 ? _this$strings$title : referenceCaptureStrings.title, (_this$strings$directi = this.strings.directionSubtitle) !== null && _this$strings$directi !== void 0 ? _this$strings$directi : referenceCaptureStrings.directionSubtitle, JSON.stringify((_this$strings$directi2 = this.strings.directions) !== null && _this$strings$directi2 !== void 0 ? _this$strings$directi2 : referenceCaptureStrings.directions), this.displayUploadStep, (_this$strings$uploadB = this.strings.uploadBtn) !== null && _this$strings$uploadB !== void 0 ? _this$strings$uploadB : referenceCaptureStrings.uploadBtn, this.displayPictureRecordStep, (_this$strings$picture = this.strings.pictureBtn) !== null && _this$strings$picture !== void 0 ? _this$strings$picture : referenceCaptureStrings.pictureBtn, this.displayVideoRecordStep, (_this$strings$recordV = this.strings.recordVidBtn) !== null && _this$strings$recordV !== void 0 ? _this$strings$recordV : referenceCaptureStrings.recordVidBtn);
|
|
231
232
|
}
|
|
232
233
|
}, {
|
|
233
234
|
key: "renderFileUpload",
|
|
@@ -251,7 +252,7 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
251
252
|
key: "renderVideoRecord",
|
|
252
253
|
value: function renderVideoRecord() {
|
|
253
254
|
var _this$strings$title3, _this$strings$videoRe, _this$strings$videoRe2, _this$recorderOptions2, _this$strings$back3;
|
|
254
|
-
return x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\"
|
|
255
|
+
return x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">", "</span>\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$recorderOptions2 = this.recorderOptions) === null || _this$recorderOptions2 === void 0 ? void 0 : _this$recorderOptions2.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);
|
|
255
256
|
}
|
|
256
257
|
}, {
|
|
257
258
|
key: "renderVideoReplay",
|
package/dist/selfie-capture.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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-
|
|
3
|
+
import { b as buildPacked } from './video-recorder-b9f78b8e.js';
|
|
4
4
|
import './video-record-directions.js';
|
|
5
5
|
import './button.js';
|
|
6
6
|
import { s as selfieCaptureVars } from './variables-09a3e162.js';
|
|
7
|
+
import './_commonjsHelpers-cef27602.js';
|
|
7
8
|
import './direction-card-f55e1936.js';
|
|
8
9
|
|
|
9
10
|
var _templateObject$1;
|
|
@@ -97,7 +98,7 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
97
98
|
key: "renderDirections",
|
|
98
99
|
value: function renderDirections() {
|
|
99
100
|
var _this$strings$title, _this$strings$directi, _this$strings$directi2, _this$strings$recordB;
|
|
100
|
-
return x(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\"
|
|
101
|
+
return x(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">", "</span>\n\n <div class=\"v-space\"></div>\n\n <div class=\"directions\">\n <slot name=\"directions\">\n <uni-video-record-directions\n strings=\"", "\"\n >\n </uni-video-record-directions>\n </slot>\n </div>\n\n <div class=\"v-space\"></div>\n\n <div class=\"h-box\">\n <div class=\"btn-items\">\n <slot name=\"action-button\"></slot>\n </div>\n <div class=\"btn-items\">\n <uni-button @click=\"", "\">\n <uni-camera-video-outlined-icon slot=\"icon\"></uni-camera-video-outlined-icon>\n ", "\n </uni-button>\n </div>\n </div>\n </div>\n "])), (_this$strings$title = this.strings.title) !== null && _this$strings$title !== void 0 ? _this$strings$title : selfieCaptureStrings.title, (_this$strings$directi = this.strings.directionSubtitle) !== null && _this$strings$directi !== void 0 ? _this$strings$directi : selfieCaptureStrings.directionSubtitle, JSON.stringify((_this$strings$directi2 = this.strings.directions) !== null && _this$strings$directi2 !== void 0 ? _this$strings$directi2 : selfieCaptureStrings.directions), this.handleRecordStart, (_this$strings$recordB = this.strings.recordBtnLabel) !== null && _this$strings$recordB !== void 0 ? _this$strings$recordB : selfieCaptureStrings.recordBtnLabel);
|
|
101
102
|
}
|
|
102
103
|
}, {
|
|
103
104
|
key: "renderRecorder",
|