idmission-web-sdk 2.2.98 → 2.2.100

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/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.98';
206
+ var webSdkVersion = '2.2.100';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -4606,6 +4606,11 @@ var _reducer = function reducer(state, action) {
4606
4606
  frameCaptureRate: frameCaptureRate
4607
4607
  });
4608
4608
  }
4609
+ case 'captureInitialized':
4610
+ return _assign(_assign({}, state), {
4611
+ captureState: 'capturing',
4612
+ isUploadingDocumentsFromStorage: false
4613
+ });
4609
4614
  case 'captureStarted':
4610
4615
  return _assign(_assign({}, state), {
4611
4616
  captureStartedAt: new Date(),
@@ -6069,6 +6074,11 @@ var IdCapture = function IdCapture(_a) {
6069
6074
  detectionTime = _u.detectionTime,
6070
6075
  focusPredictionTime = _u.focusPredictionTime,
6071
6076
  getBestFrame = _u.getBestFrame;
6077
+ useEffect(function () {
6078
+ return dispatch({
6079
+ type: 'captureInitialized'
6080
+ });
6081
+ }, [dispatch]);
6072
6082
  useEffect(function () {
6073
6083
  setThresholds(thresholds);
6074
6084
  }, [thresholds, setThresholds]);
@@ -6858,6 +6868,12 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
6858
6868
  var _q = useState(false),
6859
6869
  dismissed = _q[0],
6860
6870
  setDismissed = _q[1];
6871
+ var dispatch = useIdCaptureState()[1];
6872
+ useEffect(function () {
6873
+ return dispatch({
6874
+ type: 'captureInitialized'
6875
+ });
6876
+ }, [dispatch]);
6861
6877
  assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
6862
6878
  var verbiage = useTranslations(rawVerbiage, {
6863
6879
  headingText: 'Use your device camera to capture your ID',