@unissey-web/web-components 4.0.0-beta.1 → 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.
@@ -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-ccfeb00f.js';
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>;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Button } from './button.js';
2
- import { R as Recorder } from './video-recorder-ccfeb00f.js';
3
- export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-ccfeb00f.js';
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';
@@ -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-ccfeb00f.js';
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-ccfeb00f.js';
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';
@@ -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-ccfeb00f.js';
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';