@unissey-web/sdk-react 3.10.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/index.js +17 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -741,7 +741,7 @@ var EN = {
|
|
|
741
741
|
};
|
|
742
742
|
|
|
743
743
|
var name = "@unissey-web/web-components";
|
|
744
|
-
var version = "3.10.
|
|
744
|
+
var version = "3.10.2-rc.2";
|
|
745
745
|
var description = "";
|
|
746
746
|
var module = "./dist/index.js";
|
|
747
747
|
var typings = "./dist/index.d.ts";
|
|
@@ -1179,44 +1179,45 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
|
|
|
1179
1179
|
"2": _this.getString(["cameraErrorMessages", "openFailed"])
|
|
1180
1180
|
};
|
|
1181
1181
|
_context.t0 = type;
|
|
1182
|
-
_context.next = _context.t0 === buildPacked.exports.IssueType.NO_FACE ? 5 : _context.t0 === buildPacked.exports.IssueType.FORBIDDEN_ACTION ?
|
|
1182
|
+
_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;
|
|
1183
1183
|
break;
|
|
1184
1184
|
case 5:
|
|
1185
|
+
console.log(value);
|
|
1185
1186
|
_this.displayError(_this.getString(["errors", "noFace"]));
|
|
1186
1187
|
_this.faceDetectionFails = true;
|
|
1187
|
-
return _context.abrupt("break",
|
|
1188
|
-
case
|
|
1188
|
+
return _context.abrupt("break", 15);
|
|
1189
|
+
case 9:
|
|
1189
1190
|
if (Object.keys(forbiddenActionMessages).includes("".concat(value))) {
|
|
1190
1191
|
_this.displayError(forbiddenActionMessages["".concat(value)]);
|
|
1191
1192
|
} else {
|
|
1192
1193
|
_this.displayError(_this.getString(["forbiddenActionMessages", "default"]));
|
|
1193
1194
|
}
|
|
1194
|
-
return _context.abrupt("break",
|
|
1195
|
-
case
|
|
1195
|
+
return _context.abrupt("break", 15);
|
|
1196
|
+
case 11:
|
|
1196
1197
|
if (Object.keys(cameraErrorMessages).includes("".concat(value))) {
|
|
1197
1198
|
_this.displayError(cameraErrorMessages["".concat(value)]);
|
|
1198
1199
|
} else {
|
|
1199
1200
|
_this.displayError(_this.getString(["cameraErrorMessages", "default"]));
|
|
1200
1201
|
}
|
|
1201
|
-
return _context.abrupt("break",
|
|
1202
|
-
case
|
|
1202
|
+
return _context.abrupt("break", 15);
|
|
1203
|
+
case 13:
|
|
1203
1204
|
if (value === 7) {
|
|
1204
1205
|
_this.displayError(_this.getString(["rotationWhileCapturingErrorMessage"]));
|
|
1205
1206
|
}
|
|
1206
|
-
return _context.abrupt("break",
|
|
1207
|
-
case
|
|
1207
|
+
return _context.abrupt("break", 15);
|
|
1208
|
+
case 15:
|
|
1208
1209
|
_this.willRetryCapture = true;
|
|
1209
1210
|
captureButton = (_this$shadowRoot3 = _this.shadowRoot) === null || _this$shadowRoot3 === void 0 ? void 0 : _this$shadowRoot3.getElementById("capture");
|
|
1210
1211
|
if (captureButton) captureButton.disabled = false;
|
|
1211
1212
|
recorderInterruptedEvent = new CustomEvent("recordInterrupted");
|
|
1212
1213
|
_this.dispatchEvent(recorderInterruptedEvent);
|
|
1213
|
-
_context.next =
|
|
1214
|
+
_context.next = 22;
|
|
1214
1215
|
return (_this$session = _this.session) === null || _this$session === void 0 ? void 0 : _this$session.release();
|
|
1215
|
-
case
|
|
1216
|
+
case 22:
|
|
1216
1217
|
// 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.
|
|
1217
1218
|
_this.session = null;
|
|
1218
1219
|
_this.resetHints();
|
|
1219
|
-
case
|
|
1220
|
+
case 24:
|
|
1220
1221
|
case "end":
|
|
1221
1222
|
return _context.stop();
|
|
1222
1223
|
}
|
|
@@ -1280,6 +1281,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
|
|
|
1280
1281
|
key: "capture",
|
|
1281
1282
|
value: function () {
|
|
1282
1283
|
var _capture = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
1284
|
+
var _this$config$recordin;
|
|
1283
1285
|
var faceCheckerOptions, captureConfig, _yield$this$session$c, media, metadata, error, detail, recordCompletedEvent, recordEvent;
|
|
1284
1286
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1285
1287
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -1307,7 +1309,8 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
|
|
|
1307
1309
|
faceCheckerOptions = this.faceChecker === "disabled" ? undefined : this.faceChecker === "disabled-on-retry" && this.faceDetectionFails ? {
|
|
1308
1310
|
check: "disabled"
|
|
1309
1311
|
} : {
|
|
1310
|
-
check: "beforeRecording"
|
|
1312
|
+
check: "beforeRecording",
|
|
1313
|
+
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
|
|
1311
1314
|
};
|
|
1312
1315
|
captureConfig = faceCheckerOptions ? {
|
|
1313
1316
|
faceCheckerOptions: faceCheckerOptions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unissey-web/sdk-react",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2-rc.2",
|
|
4
4
|
"description": "Unissey React Sdk",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@lit-labs/react": "^1.0.2",
|
|
25
|
-
"@unissey-web/web-components": "3.10.
|
|
25
|
+
"@unissey-web/web-components": "3.10.2-rc.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^17.0.0 || ^18.0.0",
|