@unissey-web/web-components 4.0.0-beta.2 → 4.0.0
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 +1 -1
- package/dist/index.d.ts +19 -7
- package/dist/index.js +4 -2
- package/dist/picture-recorder.js +1 -1
- package/dist/reference-capture.js +1 -1
- package/dist/selfie-capture.js +1 -1
- package/dist/video-recorder-7bdab25f.js +1131 -0
- package/dist/video-recorder.js +1 -1
- package/package.json +2 -2
- package/dist/video-recorder-2f00e0eb.js +0 -1129
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-e76ed5a0.js';
|
|
6
|
-
import './video-recorder-
|
|
6
|
+
import './video-recorder-7bdab25f.js';
|
|
7
7
|
import './_commonjsHelpers-cef27602.js';
|
|
8
8
|
import './variables-55f57e89.js';
|
|
9
9
|
import './video-record-directions.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1092,10 +1092,27 @@ type VideoLength = {
|
|
|
1092
1092
|
type: "frame-count";
|
|
1093
1093
|
frameCount: number;
|
|
1094
1094
|
};
|
|
1095
|
+
type FaceRect = FaceCenter & FaceSize;
|
|
1096
|
+
interface FaceCenter {
|
|
1097
|
+
x: number;
|
|
1098
|
+
y: number;
|
|
1099
|
+
}
|
|
1100
|
+
interface FaceSize {
|
|
1101
|
+
w: number;
|
|
1102
|
+
h: number;
|
|
1103
|
+
}
|
|
1104
|
+
type FaceCheckerConfig = {
|
|
1105
|
+
check: "disabled";
|
|
1106
|
+
} | {
|
|
1107
|
+
check: "beforeRecording" | "whileRecording";
|
|
1108
|
+
customFaceArea?: FaceRect;
|
|
1109
|
+
noFaceIssueDelayMs?: number;
|
|
1110
|
+
};
|
|
1095
1111
|
interface RecordingConfig {
|
|
1096
1112
|
audio: boolean;
|
|
1097
1113
|
bitRateKbps: number;
|
|
1098
1114
|
length: VideoLength;
|
|
1115
|
+
faceCheckerConfig: FaceCheckerConfig;
|
|
1099
1116
|
}
|
|
1100
1117
|
type ColorRGBA = [number, number, number, number];
|
|
1101
1118
|
type OverlayColors = Record<"background" | "innerBorder" | "progressColor", ColorRGBA>;
|
|
@@ -1126,6 +1143,8 @@ declare enum VideoResolutionPreset {
|
|
|
1126
1143
|
STD_480P = "720x480",
|
|
1127
1144
|
STD_720P = "1280x720",
|
|
1128
1145
|
STD_1080P = "1920x1080",
|
|
1146
|
+
STD_2160P = "3840x2160",
|
|
1147
|
+
STD_4320P = "7680x4320",
|
|
1129
1148
|
STD_VGA = "640x480",
|
|
1130
1149
|
STD_SVGA = "800x600",
|
|
1131
1150
|
STD_XVGA = "1024x768",
|
|
@@ -1141,13 +1160,6 @@ interface CameraConfig {
|
|
|
1141
1160
|
preferredOrientation: VideoOrientation;
|
|
1142
1161
|
facingMode: FacingMode;
|
|
1143
1162
|
}
|
|
1144
|
-
interface CameraConfig {
|
|
1145
|
-
preferredFps: number;
|
|
1146
|
-
preferredResolution: VideoResolutionPreset;
|
|
1147
|
-
preferredOrientation: VideoOrientation;
|
|
1148
|
-
facingMode: FacingMode;
|
|
1149
|
-
cameraSelection: FacingMode | string;
|
|
1150
|
-
}
|
|
1151
1163
|
interface SessionConfig {
|
|
1152
1164
|
overlayConfig?: Partial<OverlayConfig>;
|
|
1153
1165
|
cameraConfig?: Partial<CameraConfig>;
|
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-7bdab25f.js';
|
|
3
|
+
export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-7bdab25f.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';
|
|
@@ -188,6 +188,8 @@ var VideoResolutionPreset = /*#__PURE__*/function (VideoResolutionPreset) {
|
|
|
188
188
|
VideoResolutionPreset["STD_480P"] = "720x480";
|
|
189
189
|
VideoResolutionPreset["STD_720P"] = "1280x720";
|
|
190
190
|
VideoResolutionPreset["STD_1080P"] = "1920x1080";
|
|
191
|
+
VideoResolutionPreset["STD_2160P"] = "3840x2160";
|
|
192
|
+
VideoResolutionPreset["STD_4320P"] = "7680x4320";
|
|
191
193
|
VideoResolutionPreset["STD_VGA"] = "640x480";
|
|
192
194
|
VideoResolutionPreset["STD_SVGA"] = "800x600";
|
|
193
195
|
VideoResolutionPreset["STD_XVGA"] = "1024x768";
|
package/dist/picture-recorder.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, 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-7bdab25f.js';
|
|
4
4
|
import './_commonjsHelpers-cef27602.js';
|
|
5
5
|
import './variables-55f57e89.js';
|
|
6
6
|
import './button.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-7bdab25f.js';
|
|
7
7
|
import { E as EN } from './en-e76ed5a0.js';
|
|
8
8
|
import { c as referenceCaptureVars } from './variables-55f57e89.js';
|
|
9
9
|
import './direction-card-277681c3.js';
|
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-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-7bdab25f.js';
|
|
4
4
|
import './video-record-directions.js';
|
|
5
5
|
import './button.js';
|
|
6
6
|
import { s as selfieCaptureVars } from './variables-55f57e89.js';
|