@unissey-web/web-components 3.10.2-rc.1 → 3.10.2-rc.2
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.js +2 -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-d9845abf.js → video-recorder-5c2cc324.js} +17 -14
- 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-e76ed5a0.js';
|
|
6
|
-
import './video-recorder-
|
|
6
|
+
import './video-recorder-5c2cc324.js';
|
|
7
7
|
import './_commonjsHelpers-cef27602.js';
|
|
8
8
|
import './variables-09a3e162.js';
|
|
9
9
|
import './video-record-directions.js';
|
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-5c2cc324.js';
|
|
3
|
+
export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-5c2cc324.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,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-5c2cc324.js';
|
|
4
4
|
import './_commonjsHelpers-cef27602.js';
|
|
5
5
|
import './variables-09a3e162.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-5c2cc324.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';
|
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-5c2cc324.js';
|
|
4
4
|
import './video-record-directions.js';
|
|
5
5
|
import './button.js';
|
|
6
6
|
import { s as selfieCaptureVars } from './variables-09a3e162.js';
|
|
@@ -5,7 +5,7 @@ import { E as EN } from './en-e76ed5a0.js';
|
|
|
5
5
|
import './button.js';
|
|
6
6
|
|
|
7
7
|
var name = "@unissey-web/web-components";
|
|
8
|
-
var version = "3.10.2-rc.
|
|
8
|
+
var version = "3.10.2-rc.2";
|
|
9
9
|
var description = "";
|
|
10
10
|
var module = "./dist/index.js";
|
|
11
11
|
var typings = "./dist/index.d.ts";
|
|
@@ -443,44 +443,45 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
|
|
|
443
443
|
"2": _this.getString(["cameraErrorMessages", "openFailed"])
|
|
444
444
|
};
|
|
445
445
|
_context.t0 = type;
|
|
446
|
-
_context.next = _context.t0 === buildPacked.exports.IssueType.NO_FACE ? 5 : _context.t0 === buildPacked.exports.IssueType.FORBIDDEN_ACTION ?
|
|
446
|
+
_context.next = _context.t0 === buildPacked.exports.IssueType.NO_FACE ? 5 : _context.t0 === buildPacked.exports.IssueType.FORBIDDEN_ACTION ? 9 : _context.t0 === buildPacked.exports.IssueType.CAMERA_ERROR ? 11 : _context.t0 === buildPacked.exports.IssueType.MOVE ? 13 : 15;
|
|
447
447
|
break;
|
|
448
448
|
case 5:
|
|
449
|
+
console.log(value);
|
|
449
450
|
_this.displayError(_this.getString(["errors", "noFace"]));
|
|
450
451
|
_this.faceDetectionFails = true;
|
|
451
|
-
return _context.abrupt("break",
|
|
452
|
-
case
|
|
452
|
+
return _context.abrupt("break", 15);
|
|
453
|
+
case 9:
|
|
453
454
|
if (Object.keys(forbiddenActionMessages).includes("".concat(value))) {
|
|
454
455
|
_this.displayError(forbiddenActionMessages["".concat(value)]);
|
|
455
456
|
} else {
|
|
456
457
|
_this.displayError(_this.getString(["forbiddenActionMessages", "default"]));
|
|
457
458
|
}
|
|
458
|
-
return _context.abrupt("break",
|
|
459
|
-
case
|
|
459
|
+
return _context.abrupt("break", 15);
|
|
460
|
+
case 11:
|
|
460
461
|
if (Object.keys(cameraErrorMessages).includes("".concat(value))) {
|
|
461
462
|
_this.displayError(cameraErrorMessages["".concat(value)]);
|
|
462
463
|
} else {
|
|
463
464
|
_this.displayError(_this.getString(["cameraErrorMessages", "default"]));
|
|
464
465
|
}
|
|
465
|
-
return _context.abrupt("break",
|
|
466
|
-
case
|
|
466
|
+
return _context.abrupt("break", 15);
|
|
467
|
+
case 13:
|
|
467
468
|
if (value === 7) {
|
|
468
469
|
_this.displayError(_this.getString(["rotationWhileCapturingErrorMessage"]));
|
|
469
470
|
}
|
|
470
|
-
return _context.abrupt("break",
|
|
471
|
-
case
|
|
471
|
+
return _context.abrupt("break", 15);
|
|
472
|
+
case 15:
|
|
472
473
|
_this.willRetryCapture = true;
|
|
473
474
|
captureButton = (_this$shadowRoot3 = _this.shadowRoot) === null || _this$shadowRoot3 === void 0 ? void 0 : _this$shadowRoot3.getElementById("capture");
|
|
474
475
|
if (captureButton) captureButton.disabled = false;
|
|
475
476
|
recorderInterruptedEvent = new CustomEvent("recordInterrupted");
|
|
476
477
|
_this.dispatchEvent(recorderInterruptedEvent);
|
|
477
|
-
_context.next =
|
|
478
|
+
_context.next = 22;
|
|
478
479
|
return (_this$session = _this.session) === null || _this$session === void 0 ? void 0 : _this$session.release();
|
|
479
|
-
case
|
|
480
|
+
case 22:
|
|
480
481
|
// Note: we release the current session, but we doesn't wait for the completion. This is not an issue because createSession now waits for release completion.
|
|
481
482
|
_this.session = null;
|
|
482
483
|
_this.resetHints();
|
|
483
|
-
case
|
|
484
|
+
case 24:
|
|
484
485
|
case "end":
|
|
485
486
|
return _context.stop();
|
|
486
487
|
}
|
|
@@ -544,6 +545,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
|
|
|
544
545
|
key: "capture",
|
|
545
546
|
value: function () {
|
|
546
547
|
var _capture = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
548
|
+
var _this$config$recordin;
|
|
547
549
|
var faceCheckerOptions, captureConfig, _yield$this$session$c, media, metadata, error, detail, recordCompletedEvent, recordEvent;
|
|
548
550
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
549
551
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -571,7 +573,8 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
|
|
|
571
573
|
faceCheckerOptions = this.faceChecker === "disabled" ? undefined : this.faceChecker === "disabled-on-retry" && this.faceDetectionFails ? {
|
|
572
574
|
check: "disabled"
|
|
573
575
|
} : {
|
|
574
|
-
check: "beforeRecording"
|
|
576
|
+
check: "beforeRecording",
|
|
577
|
+
noFaceIssueDelayMs: ((_this$config$recordin = this.config.recordingConfig) === null || _this$config$recordin === void 0 || (_this$config$recordin = _this$config$recordin.faceCheckerConfig) === null || _this$config$recordin === void 0 ? void 0 : _this$config$recordin.check) === "beforeRecording" ? this.config.recordingConfig.faceCheckerConfig.noFaceIssueDelayMs : undefined
|
|
575
578
|
};
|
|
576
579
|
captureConfig = faceCheckerOptions ? {
|
|
577
580
|
faceCheckerOptions: faceCheckerOptions
|
package/dist/video-recorder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './lit-element-ac3d3a27.js';
|
|
2
|
-
export { R as Recorder, V as VideoRecorder } from './video-recorder-
|
|
2
|
+
export { R as Recorder, V as VideoRecorder } from './video-recorder-5c2cc324.js';
|
|
3
3
|
import './button.js';
|
|
4
4
|
import './en-e76ed5a0.js';
|
|
5
5
|
import './_commonjsHelpers-cef27602.js';
|