@unissey-web/sdk-react 3.10.1 → 3.10.2-debug.1

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -15
  2. 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.1";
744
+ var version = "3.10.2-debug.1";
745
745
  var description = "";
746
746
  var module = "./dist/index.js";
747
747
  var typings = "./dist/index.d.ts";
@@ -1280,6 +1280,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1280
1280
  key: "capture",
1281
1281
  value: function () {
1282
1282
  var _capture = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
1283
+ var _this$config$recordin;
1283
1284
  var faceCheckerOptions, captureConfig, _yield$this$session$c, media, metadata, error, detail, recordCompletedEvent, recordEvent;
1284
1285
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1285
1286
  while (1) switch (_context3.prev = _context3.next) {
@@ -1307,14 +1308,16 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1307
1308
  faceCheckerOptions = this.faceChecker === "disabled" ? undefined : this.faceChecker === "disabled-on-retry" && this.faceDetectionFails ? {
1308
1309
  check: "disabled"
1309
1310
  } : {
1310
- check: "beforeRecording"
1311
+ check: "beforeRecording",
1312
+ 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
1313
  };
1312
1314
  captureConfig = faceCheckerOptions ? {
1313
1315
  faceCheckerOptions: faceCheckerOptions
1314
1316
  } : undefined;
1315
- _context3.next = 12;
1317
+ console.log("The face checker options for the capture:", captureConfig);
1318
+ _context3.next = 13;
1316
1319
  return this.session.capture(captureConfig);
1317
- case 12:
1320
+ case 13:
1318
1321
  _yield$this$session$c = _context3.sent;
1319
1322
  media = _yield$this$session$c.media;
1320
1323
  metadata = _yield$this$session$c.metadata;
@@ -1335,7 +1338,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1335
1338
  detail: detail
1336
1339
  });
1337
1340
  this.dispatchEvent(recordEvent);
1338
- case 26:
1341
+ case 27:
1339
1342
  case "end":
1340
1343
  return _context3.stop();
1341
1344
  }
@@ -1396,6 +1399,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1396
1399
  var configChanged = _changedProperties.has("config");
1397
1400
  var faceCheckerChanged = _changedProperties.has("faceChecker");
1398
1401
  var instructionsChanged = _changedProperties.has("instructionMessages");
1402
+ if (configChanged) console.log("The configuration has been updated:", this.config);
1399
1403
 
1400
1404
  // The sdk is initialized only if it is the first rendering or if one of the following attributes changes: preset or config
1401
1405
  var shouldInitSdk = presetChanged || configChanged || instructionsChanged || faceCheckerChanged;
@@ -1590,7 +1594,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1590
1594
  return _context6.abrupt("return");
1591
1595
  case 5:
1592
1596
  if (!(video && cvs)) {
1593
- _context6.next = 26;
1597
+ _context6.next = 27;
1594
1598
  break;
1595
1599
  }
1596
1600
  this.displaySpinner();
@@ -1607,31 +1611,32 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1607
1611
  this.session = null; // Note: Should be already set to null by sdkJsListener_status()
1608
1612
  case 12:
1609
1613
  sessionConfig = this.buildSessionConfig();
1610
- _context6.next = 15;
1614
+ console.log("The configuration used to create the session:", sessionConfig);
1615
+ _context6.next = 16;
1611
1616
  return buildPacked.exports.UnisseySdk.createSession(video, this.preset, cvs, sessionConfig)["catch"](function (e) {
1612
1617
  _this3.resetHints();
1613
1618
  return null;
1614
1619
  })["finally"](function () {
1615
1620
  _this3.hideSpinner();
1616
1621
  });
1617
- case 15:
1622
+ case 16:
1618
1623
  this.session = _context6.sent;
1619
1624
  this.initSessionInprogress = false;
1620
1625
  if (!this.disconnected) {
1621
- _context6.next = 21;
1626
+ _context6.next = 22;
1622
1627
  break;
1623
1628
  }
1624
- _context6.next = 20;
1629
+ _context6.next = 21;
1625
1630
  return (_this$session4 = this.session) === null || _this$session4 === void 0 ? void 0 : _this$session4.release();
1626
- case 20:
1627
- this.session = null; // Note: Should be already set to null by sdkJsListener_status()
1628
1631
  case 21:
1632
+ this.session = null; // Note: Should be already set to null by sdkJsListener_status()
1633
+ case 22:
1629
1634
  if (this.session) {
1630
- _context6.next = 23;
1635
+ _context6.next = 24;
1631
1636
  break;
1632
1637
  }
1633
1638
  return _context6.abrupt("return");
1634
- case 23:
1639
+ case 24:
1635
1640
  acquisitionTime = this.session.getInfo().acquisition_length;
1636
1641
  recorderReadyEvent = new CustomEvent("recorderReady", {
1637
1642
  detail: {
@@ -1641,7 +1646,7 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
1641
1646
  }
1642
1647
  });
1643
1648
  this.dispatchEvent(recorderReadyEvent);
1644
- case 26:
1649
+ case 27:
1645
1650
  case "end":
1646
1651
  return _context6.stop();
1647
1652
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unissey-web/sdk-react",
3
- "version": "3.10.1",
3
+ "version": "3.10.2-debug.1",
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.1"
25
+ "@unissey-web/web-components": "3.10.2-debug.1"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^17.0.0 || ^18.0.0",