idmission-web-sdk 2.2.123 → 2.2.124

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.123';
214
+ var webSdkVersion = '2.2.124';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11084,11 +11084,6 @@
11084
11084
  }));
11085
11085
  function IdCaptureStateProvider(_a) {
11086
11086
  var children = _a.children;
11087
- React.useEffect(function resetWhenProviderMounts() {
11088
- useIdCaptureStore.getState().dispatch({
11089
- type: 'resetWizard'
11090
- });
11091
- }, []);
11092
11087
  var overrideWrongDocumentTypeGuidance = useIdCaptureStore(useShallow(function (state) {
11093
11088
  return state.overrideWrongDocumentTypeGuidance;
11094
11089
  }));
@@ -11108,6 +11103,13 @@
11108
11103
  return window.removeEventListener('resize', onResize);
11109
11104
  };
11110
11105
  }, [onResize]);
11106
+ React.useEffect(function resetWhenProviderUnmounts() {
11107
+ return function () {
11108
+ return useIdCaptureStore.getState().dispatch({
11109
+ type: 'resetWizard'
11110
+ });
11111
+ };
11112
+ }, []);
11111
11113
  return /*#__PURE__*/React.createElement(React.Fragment, null, children);
11112
11114
  }
11113
11115
  var dispatchIdCaptureAction = function dispatchIdCaptureAction(action) {