idmission-web-sdk 0.0.80 → 0.0.82

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.
@@ -50,7 +50,7 @@ var tf__namespace = /*#__PURE__*/_interopNamespace(tf);
50
50
  var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
51
51
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
52
52
 
53
- var webSdkVersion = '0.0.80';
53
+ var webSdkVersion = '0.0.82';
54
54
 
55
55
  function getPlatform() {
56
56
  return window.platform;
@@ -1480,14 +1480,17 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1480
1480
  throw new Error('failed to open camera');
1481
1481
  }
1482
1482
  handleStreamEnded = function handleStreamEnded() {
1483
- var _a;
1484
1483
  if (iphoneContinuityCameraAvailable && iphoneContinuityCameraAllowed) {
1485
1484
  console.log('someone unplugged the continuity camera');
1485
+ releaseCameraAccess();
1486
+ cameraRef.current = null;
1486
1487
  setIphoneContinuityCameraAvailable(false);
1487
1488
  setIphoneContinuityCameraDenied(true);
1489
+ setCaptureDevice(null);
1490
+ setVideoDevice(null);
1488
1491
  } else {
1489
1492
  console.log('someone unplugged the webcam');
1490
- (_a = cameraRef.current) === null || _a === void 0 ? void 0 : _a.release();
1493
+ releaseCameraAccess();
1491
1494
  cameraRef.current = null;
1492
1495
  setVideoLoaded(false);
1493
1496
  setCameraAccessDenied(true);