idmission-web-sdk 2.3.53 → 2.3.55

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 (42) hide show
  1. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +3 -0
  2. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
  3. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +3 -0
  4. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
  5. package/dist/components/customer_flows/CustomerIdentification.d.ts +3 -0
  6. package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
  7. package/dist/components/customer_flows/CustomerVerification.d.ts +3 -0
  8. package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
  9. package/dist/components/customer_flows/DocumentCapture.d.ts +3 -0
  10. package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
  11. package/dist/components/customer_flows/FaceValidation.d.ts +3 -0
  12. package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
  13. package/dist/components/customer_flows/IdAndFaceValidation.d.ts +3 -0
  14. package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
  15. package/dist/components/customer_flows/IdValidation.d.ts +3 -0
  16. package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
  17. package/dist/components/customer_flows/SignatureKYC.d.ts +3 -0
  18. package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
  19. package/dist/components/customer_flows/VideoIdValidation.d.ts +3 -0
  20. package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
  21. package/dist/components/id_capture/DocumentDetectionModelProvider.d.ts +2 -2
  22. package/dist/components/id_capture/DocumentDetectionModelProvider.d.ts.map +1 -1
  23. package/dist/components/id_capture/IdCaptureStateProvider.d.ts +2 -11
  24. package/dist/components/id_capture/IdCaptureStateProvider.d.ts.map +1 -1
  25. package/dist/components/video_signature_capture/VideoSignatureContext.d.ts +2 -11
  26. package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
  27. package/dist/contexts/AuthStateContext.d.ts +2 -1
  28. package/dist/contexts/AuthStateContext.d.ts.map +1 -1
  29. package/dist/lib/camera/useVideoRecorder.d.ts +2 -11
  30. package/dist/lib/camera/useVideoRecorder.d.ts.map +1 -1
  31. package/dist/sdk2.cjs.development.js +44 -15
  32. package/dist/sdk2.cjs.development.js.map +1 -1
  33. package/dist/sdk2.cjs.production.js +1 -1
  34. package/dist/sdk2.cjs.production.js.map +1 -1
  35. package/dist/sdk2.esm.js +44 -15
  36. package/dist/sdk2.esm.js.map +1 -1
  37. package/dist/sdk2.umd.development.js +287 -81
  38. package/dist/sdk2.umd.development.js.map +1 -1
  39. package/dist/sdk2.umd.production.js +1 -1
  40. package/dist/sdk2.umd.production.js.map +1 -1
  41. package/dist/version.d.ts +1 -1
  42. package/package.json +1 -1
@@ -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.3.53';
214
+ var webSdkVersion = '2.3.55';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1357,10 +1357,19 @@
1357
1357
  var _c = _a.authUrl,
1358
1358
  authUrl = _c === void 0 ? exports.defaultAuthUrl : _c,
1359
1359
  sessionId = _a.sessionId,
1360
- children = _a.children;
1360
+ children = _a.children,
1361
+ onAuthError = _a.onAuthError;
1361
1362
  var _d = useAuthReducer(authUrl, sessionId),
1362
1363
  state = _d[0],
1363
1364
  dispatch = _d[1];
1365
+ var onAuthErrorRef = React.useRef(onAuthError);
1366
+ React.useEffect(function () {
1367
+ onAuthErrorRef.current = onAuthError;
1368
+ }, [onAuthError]);
1369
+ React.useEffect(function () {
1370
+ var _a;
1371
+ if (state.authError) (_a = onAuthErrorRef.current) === null || _a === void 0 ? void 0 : _a.call(onAuthErrorRef, state.authError);
1372
+ }, [state.authError, onAuthErrorRef]);
1364
1373
  if (state.sessionCheckState === 'MISSING') {
1365
1374
  return /*#__PURE__*/React.createElement(SessionIdMissingOverlay, null);
1366
1375
  }
@@ -9468,11 +9477,18 @@
9468
9477
  return listeners["delete"](listener);
9469
9478
  };
9470
9479
  };
9480
+ var destroy = function destroy() {
9481
+ if ((undefined ? undefined.MODE : void 0) !== "production") {
9482
+ console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");
9483
+ }
9484
+ listeners.clear();
9485
+ };
9471
9486
  var api = {
9472
9487
  setState: setState,
9473
9488
  getState: getState,
9474
9489
  getInitialState: getInitialState,
9475
- subscribe: subscribe
9490
+ subscribe: subscribe,
9491
+ destroy: destroy
9476
9492
  };
9477
9493
  var initialState = state = createState(setState, getState, api);
9478
9494
  return api;
@@ -9481,25 +9497,213 @@
9481
9497
  return createState ? createStoreImpl(createState) : createStoreImpl;
9482
9498
  };
9483
9499
 
9500
+ var withSelector = {exports: {}};
9501
+
9502
+ var shim = {exports: {}};
9503
+
9504
+ var useSyncExternalStoreShim_development = {};
9505
+
9506
+ /**
9507
+ * @license React
9508
+ * use-sync-external-store-shim.development.js
9509
+ *
9510
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9511
+ *
9512
+ * This source code is licensed under the MIT license found in the
9513
+ * LICENSE file in the root directory of this source tree.
9514
+ */
9515
+ var hasRequiredUseSyncExternalStoreShim_development;
9516
+ function requireUseSyncExternalStoreShim_development() {
9517
+ if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
9518
+ hasRequiredUseSyncExternalStoreShim_development = 1;
9519
+ (function () {
9520
+ function is(x, y) {
9521
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
9522
+ }
9523
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
9524
+ didWarnOld18Alpha || void 0 === React$1.startTransition || (didWarnOld18Alpha = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
9525
+ var value = getSnapshot();
9526
+ if (!didWarnUncachedGetSnapshot) {
9527
+ var cachedValue = getSnapshot();
9528
+ objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
9529
+ }
9530
+ cachedValue = useState({
9531
+ inst: {
9532
+ value: value,
9533
+ getSnapshot: getSnapshot
9534
+ }
9535
+ });
9536
+ var inst = cachedValue[0].inst,
9537
+ forceUpdate = cachedValue[1];
9538
+ useLayoutEffect(function () {
9539
+ inst.value = value;
9540
+ inst.getSnapshot = getSnapshot;
9541
+ checkIfSnapshotChanged(inst) && forceUpdate({
9542
+ inst: inst
9543
+ });
9544
+ }, [subscribe, value, getSnapshot]);
9545
+ useEffect(function () {
9546
+ checkIfSnapshotChanged(inst) && forceUpdate({
9547
+ inst: inst
9548
+ });
9549
+ return subscribe(function () {
9550
+ checkIfSnapshotChanged(inst) && forceUpdate({
9551
+ inst: inst
9552
+ });
9553
+ });
9554
+ }, [subscribe]);
9555
+ useDebugValue(value);
9556
+ return value;
9557
+ }
9558
+ function checkIfSnapshotChanged(inst) {
9559
+ var latestGetSnapshot = inst.getSnapshot;
9560
+ inst = inst.value;
9561
+ try {
9562
+ var nextValue = latestGetSnapshot();
9563
+ return !objectIs(inst, nextValue);
9564
+ } catch (error) {
9565
+ return !0;
9566
+ }
9567
+ }
9568
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
9569
+ return getSnapshot();
9570
+ }
9571
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9572
+ var React$1 = React,
9573
+ objectIs = "function" === typeof Object.is ? Object.is : is,
9574
+ useState = React$1.useState,
9575
+ useEffect = React$1.useEffect,
9576
+ useLayoutEffect = React$1.useLayoutEffect,
9577
+ useDebugValue = React$1.useDebugValue,
9578
+ didWarnOld18Alpha = !1,
9579
+ didWarnUncachedGetSnapshot = !1,
9580
+ shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
9581
+ useSyncExternalStoreShim_development.useSyncExternalStore = void 0 !== React$1.useSyncExternalStore ? React$1.useSyncExternalStore : shim;
9582
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9583
+ })();
9584
+ return useSyncExternalStoreShim_development;
9585
+ }
9586
+
9587
+ var hasRequiredShim;
9588
+ function requireShim() {
9589
+ if (hasRequiredShim) return shim.exports;
9590
+ hasRequiredShim = 1;
9591
+ {
9592
+ shim.exports = requireUseSyncExternalStoreShim_development();
9593
+ }
9594
+ return shim.exports;
9595
+ }
9596
+
9597
+ var withSelector_development = {};
9598
+
9599
+ /**
9600
+ * @license React
9601
+ * use-sync-external-store-shim/with-selector.development.js
9602
+ *
9603
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9604
+ *
9605
+ * This source code is licensed under the MIT license found in the
9606
+ * LICENSE file in the root directory of this source tree.
9607
+ */
9608
+ var hasRequiredWithSelector_development;
9609
+ function requireWithSelector_development() {
9610
+ if (hasRequiredWithSelector_development) return withSelector_development;
9611
+ hasRequiredWithSelector_development = 1;
9612
+ (function () {
9613
+ function is(x, y) {
9614
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
9615
+ }
9616
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9617
+ var React$1 = React,
9618
+ shim = requireShim(),
9619
+ objectIs = "function" === typeof Object.is ? Object.is : is,
9620
+ useSyncExternalStore = shim.useSyncExternalStore,
9621
+ useRef = React$1.useRef,
9622
+ useEffect = React$1.useEffect,
9623
+ useMemo = React$1.useMemo,
9624
+ useDebugValue = React$1.useDebugValue;
9625
+ withSelector_development.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
9626
+ var instRef = useRef(null);
9627
+ if (null === instRef.current) {
9628
+ var inst = {
9629
+ hasValue: !1,
9630
+ value: null
9631
+ };
9632
+ instRef.current = inst;
9633
+ } else inst = instRef.current;
9634
+ instRef = useMemo(function () {
9635
+ function memoizedSelector(nextSnapshot) {
9636
+ if (!hasMemo) {
9637
+ hasMemo = !0;
9638
+ memoizedSnapshot = nextSnapshot;
9639
+ nextSnapshot = selector(nextSnapshot);
9640
+ if (void 0 !== isEqual && inst.hasValue) {
9641
+ var currentSelection = inst.value;
9642
+ if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
9643
+ }
9644
+ return memoizedSelection = nextSnapshot;
9645
+ }
9646
+ currentSelection = memoizedSelection;
9647
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
9648
+ var nextSelection = selector(nextSnapshot);
9649
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
9650
+ memoizedSnapshot = nextSnapshot;
9651
+ return memoizedSelection = nextSelection;
9652
+ }
9653
+ var hasMemo = !1,
9654
+ memoizedSnapshot,
9655
+ memoizedSelection,
9656
+ maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
9657
+ return [function () {
9658
+ return memoizedSelector(getSnapshot());
9659
+ }, null === maybeGetServerSnapshot ? void 0 : function () {
9660
+ return memoizedSelector(maybeGetServerSnapshot());
9661
+ }];
9662
+ }, [getSnapshot, getServerSnapshot, selector, isEqual]);
9663
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
9664
+ useEffect(function () {
9665
+ inst.hasValue = !0;
9666
+ inst.value = value;
9667
+ }, [value]);
9668
+ useDebugValue(value);
9669
+ return value;
9670
+ };
9671
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9672
+ })();
9673
+ return withSelector_development;
9674
+ }
9675
+
9676
+ {
9677
+ withSelector.exports = requireWithSelector_development();
9678
+ }
9679
+ var withSelectorExports = withSelector.exports;
9680
+ var useSyncExternalStoreExports = /*@__PURE__*/getDefaultExportFromCjs(withSelectorExports);
9681
+
9682
+ var useDebugValue = React.useDebugValue;
9683
+ var useSyncExternalStoreWithSelector = useSyncExternalStoreExports.useSyncExternalStoreWithSelector;
9684
+ var didWarnAboutEqualityFn = false;
9484
9685
  var identity = function identity(arg) {
9485
9686
  return arg;
9486
9687
  };
9487
- function useStore(api, selector) {
9688
+ function useStore(api, selector, equalityFn) {
9488
9689
  if (selector === void 0) {
9489
9690
  selector = identity;
9490
9691
  }
9491
- var slice = React.useSyncExternalStore(api.subscribe, function () {
9492
- return selector(api.getState());
9493
- }, function () {
9494
- return selector(api.getInitialState());
9495
- });
9496
- React.useDebugValue(slice);
9692
+ if ((undefined ? undefined.MODE : void 0) !== "production" && equalityFn && !didWarnAboutEqualityFn) {
9693
+ console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937");
9694
+ didWarnAboutEqualityFn = true;
9695
+ }
9696
+ var slice = useSyncExternalStoreWithSelector(api.subscribe, api.getState, api.getServerState || api.getInitialState, selector, equalityFn);
9697
+ useDebugValue(slice);
9497
9698
  return slice;
9498
9699
  }
9499
9700
  var createImpl = function createImpl(createState) {
9500
- var api = createStore(createState);
9501
- var useBoundStore = function useBoundStore(selector) {
9502
- return useStore(api, selector);
9701
+ if ((undefined ? undefined.MODE : void 0) !== "production" && typeof createState !== "function") {
9702
+ console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");
9703
+ }
9704
+ var api = typeof createState === "function" ? createStore(createState) : createState;
9705
+ var useBoundStore = function useBoundStore(selector, equalityFn) {
9706
+ return useStore(api, selector, equalityFn);
9503
9707
  };
9504
9708
  Object.assign(useBoundStore, api);
9505
9709
  return useBoundStore;
@@ -14052,8 +14256,8 @@
14052
14256
  documentDetectionModelPath = _e === void 0 ? defaultDocumentDetectorModelPath : _e,
14053
14257
  _f = _a.documentDetectionModelScoreThreshold,
14054
14258
  documentDetectionModelScoreThreshold = _f === void 0 ? defaultDocumentDetectionScoreThreshold : _f,
14055
- _g = _a.documentDetectionModelLoadTimeoutMs,
14056
- documentDetectionModelLoadTimeoutMs = _g === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _g,
14259
+ _g = _a.modelLoadTimeoutMs,
14260
+ modelLoadTimeoutMs = _g === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _g,
14057
14261
  onDocumentDetectionModelError = _a.onDocumentDetectionModelError,
14058
14262
  _h = _a.shouldLoadModels,
14059
14263
  shouldLoadModelsProp = _h === void 0 ? true : _h;
@@ -14084,7 +14288,7 @@
14084
14288
  }, []);
14085
14289
  var _q = useLoadDocumentDetector({
14086
14290
  modelPath: documentDetectionModelPath,
14087
- modelLoadTimeoutMs: documentDetectionModelLoadTimeoutMs,
14291
+ modelLoadTimeoutMs: modelLoadTimeoutMs,
14088
14292
  scoreThreshold: documentDetectionModelScoreThreshold,
14089
14293
  onModelError: onDocumentDetectionModelError,
14090
14294
  videoRef: videoRef,
@@ -14699,8 +14903,11 @@
14699
14903
  var extensionConnector;
14700
14904
  try {
14701
14905
  extensionConnector = (enabled != null ? enabled : (undefined ? undefined.MODE : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
14702
- } catch (e) {}
14906
+ } catch (_e) {}
14703
14907
  if (!extensionConnector) {
14908
+ if ((undefined ? undefined.MODE : void 0) !== "production" && enabled) {
14909
+ console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension");
14910
+ }
14704
14911
  return fn(set, get, api);
14705
14912
  }
14706
14913
  var _extractConnectionInf = extractConnectionInformation(store, extensionConnector, options),
@@ -14771,7 +14978,7 @@
14771
14978
  return;
14772
14979
  }
14773
14980
  if (Object.keys(action.state).length !== 1) {
14774
- console.error("\n [zustand devtools middleware] Unsupported __setState action format.\n When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),\n and value of this only key should be a state object. Example: { \"type\": \"__setState\", \"state\": { \"abc123Store\": { \"foo\": \"bar\" } } }\n ");
14981
+ console.error("\n [zustand devtools middleware] Unsupported __setState action format. \n When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),\n and value of this only key should be a state object. Example: { \"type\": \"__setState\", \"state\": { \"abc123Store\": { \"foo\": \"bar\" } } }\n ");
14775
14982
  }
14776
14983
  var stateFromDevtools = action.state[store];
14777
14984
  if (stateFromDevtools === void 0 || stateFromDevtools === null) {
@@ -14859,71 +15066,50 @@
14859
15066
  function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14860
15067
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14861
15068
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14862
- var isIterable = function isIterable(obj) {
14863
- return Symbol.iterator in obj;
14864
- };
14865
- var hasIterableEntries = function hasIterableEntries(value) {
14866
- return (
14867
- // HACK: avoid checking entries type
14868
- "entries" in value
14869
- );
14870
- };
14871
- var compareEntries = function compareEntries(valueA, valueB) {
14872
- var mapA = valueA instanceof Map ? valueA : new Map(valueA.entries());
14873
- var mapB = valueB instanceof Map ? valueB : new Map(valueB.entries());
14874
- if (mapA.size !== mapB.size) {
15069
+ function shallow(objA, objB) {
15070
+ if (Object.is(objA, objB)) {
15071
+ return true;
15072
+ }
15073
+ if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
14875
15074
  return false;
14876
15075
  }
14877
- for (var _iterator = _createForOfIteratorHelperLoose(mapA), _step; !(_step = _iterator()).done;) {
14878
- var _step$value = _step.value,
14879
- key = _step$value[0],
14880
- value = _step$value[1];
14881
- if (!Object.is(value, mapB.get(key))) {
14882
- return false;
15076
+ if (objA instanceof Map && objB instanceof Map) {
15077
+ if (objA.size !== objB.size) return false;
15078
+ for (var _iterator = _createForOfIteratorHelperLoose(objA), _step; !(_step = _iterator()).done;) {
15079
+ var _step$value = _step.value,
15080
+ key = _step$value[0],
15081
+ value = _step$value[1];
15082
+ if (!Object.is(value, objB.get(key))) {
15083
+ return false;
15084
+ }
14883
15085
  }
15086
+ return true;
14884
15087
  }
14885
- return true;
14886
- };
14887
- var compareIterables = function compareIterables(valueA, valueB) {
14888
- var iteratorA = valueA[Symbol.iterator]();
14889
- var iteratorB = valueB[Symbol.iterator]();
14890
- var nextA = iteratorA.next();
14891
- var nextB = iteratorB.next();
14892
- while (!nextA.done && !nextB.done) {
14893
- if (!Object.is(nextA.value, nextB.value)) {
14894
- return false;
15088
+ if (objA instanceof Set && objB instanceof Set) {
15089
+ if (objA.size !== objB.size) return false;
15090
+ for (var _iterator2 = _createForOfIteratorHelperLoose(objA), _step2; !(_step2 = _iterator2()).done;) {
15091
+ var _value = _step2.value;
15092
+ if (!objB.has(_value)) {
15093
+ return false;
15094
+ }
14895
15095
  }
14896
- nextA = iteratorA.next();
14897
- nextB = iteratorB.next();
14898
- }
14899
- return !!nextA.done && !!nextB.done;
14900
- };
14901
- function shallow(valueA, valueB) {
14902
- if (Object.is(valueA, valueB)) {
14903
15096
  return true;
14904
15097
  }
14905
- if (typeof valueA !== "object" || valueA === null || typeof valueB !== "object" || valueB === null) {
15098
+ var keysA = Object.keys(objA);
15099
+ if (keysA.length !== Object.keys(objB).length) {
14906
15100
  return false;
14907
15101
  }
14908
- if (!isIterable(valueA) || !isIterable(valueB)) {
14909
- return compareEntries({
14910
- entries: function entries() {
14911
- return Object.entries(valueA);
14912
- }
14913
- }, {
14914
- entries: function entries() {
14915
- return Object.entries(valueB);
14916
- }
14917
- });
14918
- }
14919
- if (hasIterableEntries(valueA) && hasIterableEntries(valueB)) {
14920
- return compareEntries(valueA, valueB);
15102
+ for (var _i = 0, _keysA = keysA; _i < _keysA.length; _i++) {
15103
+ var keyA = _keysA[_i];
15104
+ if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
15105
+ return false;
15106
+ }
14921
15107
  }
14922
- return compareIterables(valueA, valueB);
15108
+ return true;
14923
15109
  }
14924
-
15110
+ var useRef = React.useRef;
14925
15111
  function useShallow(selector) {
14926
- var prev = React.useRef();
15112
+ var prev = useRef();
14927
15113
  return function (state) {
14928
15114
  var next = selector(state);
14929
15115
  return shallow(prev.current, next) ? prev.current : prev.current = next;
@@ -26116,6 +26302,7 @@
26116
26302
  onLoadingStarted = _a.onLoadingStarted,
26117
26303
  onLoadingProgress = _a.onLoadingProgress,
26118
26304
  onLoadingCompleted = _a.onLoadingCompleted,
26305
+ onAuthError = _a.onAuthError,
26119
26306
  onBeforeSubmit = _a.onBeforeSubmit,
26120
26307
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
26121
26308
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -26224,7 +26411,8 @@
26224
26411
  }, [onApproved, onComplete, onDenied]);
26225
26412
  return /*#__PURE__*/React.createElement(AuthProvider, {
26226
26413
  sessionId: sessionId,
26227
- authUrl: authUrl
26414
+ authUrl: authUrl,
26415
+ onAuthError: onAuthError
26228
26416
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
26229
26417
  theme: theme
26230
26418
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -26321,6 +26509,7 @@
26321
26509
  onLoadingStarted = _a.onLoadingStarted,
26322
26510
  onLoadingProgress = _a.onLoadingProgress,
26323
26511
  onLoadingCompleted = _a.onLoadingCompleted,
26512
+ onAuthError = _a.onAuthError,
26324
26513
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
26325
26514
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
26326
26515
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -26376,7 +26565,8 @@
26376
26565
  }, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
26377
26566
  return /*#__PURE__*/React.createElement(AuthProvider, {
26378
26567
  sessionId: sessionId,
26379
- authUrl: authUrl
26568
+ authUrl: authUrl,
26569
+ onAuthError: onAuthError
26380
26570
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
26381
26571
  theme: theme
26382
26572
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -26499,6 +26689,7 @@
26499
26689
  onLoadingStarted = _a.onLoadingStarted,
26500
26690
  onLoadingProgress = _a.onLoadingProgress,
26501
26691
  onLoadingCompleted = _a.onLoadingCompleted,
26692
+ onAuthError = _a.onAuthError,
26502
26693
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
26503
26694
  onDocumentUploaded = _a.onDocumentUploaded,
26504
26695
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -26634,7 +26825,8 @@
26634
26825
  }, [precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie]);
26635
26826
  return /*#__PURE__*/React.createElement(AuthProvider, {
26636
26827
  sessionId: sessionId,
26637
- authUrl: authUrl
26828
+ authUrl: authUrl,
26829
+ onAuthError: onAuthError
26638
26830
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
26639
26831
  theme: theme
26640
26832
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -26775,6 +26967,7 @@
26775
26967
  onLoadingStarted = _a.onLoadingStarted,
26776
26968
  onLoadingProgress = _a.onLoadingProgress,
26777
26969
  onLoadingCompleted = _a.onLoadingCompleted,
26970
+ onAuthError = _a.onAuthError,
26778
26971
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
26779
26972
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
26780
26973
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -26927,7 +27120,8 @@
26927
27120
  }, [captureVideoId]);
26928
27121
  return /*#__PURE__*/React.createElement(AuthProvider, {
26929
27122
  sessionId: sessionId,
26930
- authUrl: authUrl
27123
+ authUrl: authUrl,
27124
+ onAuthError: onAuthError
26931
27125
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
26932
27126
  theme: theme
26933
27127
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -27486,6 +27680,7 @@
27486
27680
  onLoadingStarted = _a.onLoadingStarted,
27487
27681
  onLoadingProgress = _a.onLoadingProgress,
27488
27682
  onLoadingCompleted = _a.onLoadingCompleted,
27683
+ onAuthError = _a.onAuthError,
27489
27684
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
27490
27685
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
27491
27686
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -27512,7 +27707,8 @@
27512
27707
  useDebugLogging(debugMode);
27513
27708
  return /*#__PURE__*/React.createElement(AuthProvider, {
27514
27709
  sessionId: sessionId,
27515
- authUrl: authUrl
27710
+ authUrl: authUrl,
27711
+ onAuthError: onAuthError
27516
27712
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
27517
27713
  theme: theme
27518
27714
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -28061,6 +28257,7 @@
28061
28257
  onLoadingStarted = _a.onLoadingStarted,
28062
28258
  onLoadingProgress = _a.onLoadingProgress,
28063
28259
  onLoadingCompleted = _a.onLoadingCompleted,
28260
+ onAuthError = _a.onAuthError,
28064
28261
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
28065
28262
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
28066
28263
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -28093,7 +28290,8 @@
28093
28290
  useDebugLogging(debugMode);
28094
28291
  return /*#__PURE__*/React.createElement(AuthProvider, {
28095
28292
  sessionId: sessionId,
28096
- authUrl: authUrl
28293
+ authUrl: authUrl,
28294
+ onAuthError: onAuthError
28097
28295
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
28098
28296
  theme: theme
28099
28297
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -28171,6 +28369,7 @@
28171
28369
  onLoadingStarted = _a.onLoadingStarted,
28172
28370
  onLoadingProgress = _a.onLoadingProgress,
28173
28371
  onLoadingCompleted = _a.onLoadingCompleted,
28372
+ onAuthError = _a.onAuthError,
28174
28373
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
28175
28374
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
28176
28375
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -28222,7 +28421,8 @@
28222
28421
  useDebugLogging(debugMode);
28223
28422
  return /*#__PURE__*/React.createElement(AuthProvider, {
28224
28423
  sessionId: sessionId,
28225
- authUrl: authUrl
28424
+ authUrl: authUrl,
28425
+ onAuthError: onAuthError
28226
28426
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
28227
28427
  theme: theme
28228
28428
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -28322,6 +28522,7 @@
28322
28522
  onLoadingStarted = _a.onLoadingStarted,
28323
28523
  onLoadingProgress = _a.onLoadingProgress,
28324
28524
  onLoadingCompleted = _a.onLoadingCompleted,
28525
+ onAuthError = _a.onAuthError,
28325
28526
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
28326
28527
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
28327
28528
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -28468,7 +28669,8 @@
28468
28669
  }, [classNames.videoSignatureCapture, colors.videoSignatureCapture, debugMode, onExitCapture, onUserCancel, skipSuccessScreen, verbiage.videoSignatureCapture]);
28469
28670
  return /*#__PURE__*/React.createElement(AuthProvider, {
28470
28671
  sessionId: sessionId,
28471
- authUrl: authUrl
28672
+ authUrl: authUrl,
28673
+ onAuthError: onAuthError
28472
28674
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
28473
28675
  theme: theme
28474
28676
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -28567,6 +28769,7 @@
28567
28769
  onLoadingStarted = _a.onLoadingStarted,
28568
28770
  onLoadingProgress = _a.onLoadingProgress,
28569
28771
  onLoadingCompleted = _a.onLoadingCompleted,
28772
+ onAuthError = _a.onAuthError,
28570
28773
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
28571
28774
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
28572
28775
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -28662,7 +28865,8 @@
28662
28865
  }, [onEnrolled, onComplete, onDenied]);
28663
28866
  return /*#__PURE__*/React.createElement(AuthProvider, {
28664
28867
  sessionId: sessionId,
28665
- authUrl: authUrl
28868
+ authUrl: authUrl,
28869
+ onAuthError: onAuthError
28666
28870
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
28667
28871
  theme: theme
28668
28872
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
@@ -28728,6 +28932,7 @@
28728
28932
  documentServiceUrl = _a.documentServiceUrl,
28729
28933
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
28730
28934
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
28935
+ onAuthError = _a.onAuthError,
28731
28936
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
28732
28937
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
28733
28938
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -28759,7 +28964,8 @@
28759
28964
  useDebugLogging(debugMode);
28760
28965
  return /*#__PURE__*/React.createElement(AuthProvider, {
28761
28966
  sessionId: sessionId,
28762
- authUrl: authUrl
28967
+ authUrl: authUrl,
28968
+ onAuthError: onAuthError
28763
28969
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
28764
28970
  theme: theme
28765
28971
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {