idmission-web-sdk 2.2.121 → 2.2.123

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.121';
206
+ var webSdkVersion = '2.2.123';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -4750,6 +4750,11 @@ var useIdCaptureStore = create()(devtools(function (set) {
4750
4750
  }));
4751
4751
  function IdCaptureStateProvider(_a) {
4752
4752
  var children = _a.children;
4753
+ useEffect(function resetWhenProviderMounts() {
4754
+ useIdCaptureStore.getState().dispatch({
4755
+ type: 'resetWizard'
4756
+ });
4757
+ }, []);
4753
4758
  var overrideWrongDocumentTypeGuidance = useIdCaptureStore(useShallow(function (state) {
4754
4759
  return state.overrideWrongDocumentTypeGuidance;
4755
4760
  }));