idmission-web-sdk 2.1.80 → 2.1.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.
@@ -215,7 +215,7 @@
215
215
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
216
216
  };
217
217
 
218
- var webSdkVersion = '2.1.80';
218
+ var webSdkVersion = '2.1.82';
219
219
 
220
220
  function getPlatform() {
221
221
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -12982,6 +12982,7 @@
12982
12982
  Upload: 'Enviar',
12983
12983
  'Uploading...': 'Procesando...',
12984
12984
  'Upload succeeded!': 'Proceso completo!',
12985
+ 'Performing facial recognition, please hold still...': 'Realizando el reconocimiento facial, por favor no te muevas',
12985
12986
  'Display the front of your ID card...': 'Hay que mostrar el frente de la identificación...',
12986
12987
  'Display the back of your ID card...': 'Hay que mostrar el reverso de la identificación...',
12987
12988
  'Please move your face to the center...': 'Por favor, hay que mover la cabeza hacia el centro...',
@@ -17367,6 +17368,16 @@
17367
17368
  }
17368
17369
  };
17369
17370
 
17371
+ function useGuideImagesByUrl(images) {
17372
+ return React.useMemo(function () {
17373
+ return Object.fromEntries(Object.values(images).flatMap(function (v) {
17374
+ return Object.values(v);
17375
+ }).map(function (v) {
17376
+ return [v.url, v];
17377
+ }));
17378
+ }, [images]);
17379
+ }
17380
+
17370
17381
  function isObject(item) {
17371
17382
  return !!item && typeof item === 'object' && !Array.isArray(item);
17372
17383
  }
@@ -17389,16 +17400,6 @@
17389
17400
  return output;
17390
17401
  }
17391
17402
 
17392
- function useGuideImagesByUrl(images) {
17393
- return React.useMemo(function () {
17394
- return Object.fromEntries(Object.values(images).flatMap(function (v) {
17395
- return Object.values(v);
17396
- }).map(function (v) {
17397
- return [v.url, v];
17398
- }));
17399
- }, [images]);
17400
- }
17401
-
17402
17403
  function useGuideImages(userSuppliedImages) {
17403
17404
  return React.useMemo(function () {
17404
17405
  warnAboutImagesMissingDimensions(userSuppliedImages);
@@ -24770,12 +24771,21 @@
24770
24771
  if (input in themes) return themes[input];
24771
24772
  return themes.none;
24772
24773
  }
24774
+ if (input.base) {
24775
+ var baseTheme = themes[input.base];
24776
+ if (baseTheme) {
24777
+ return mergeDeep(baseTheme, input);
24778
+ }
24779
+ }
24773
24780
  return input;
24774
24781
  };
24775
24782
  var ThemeProvider = function ThemeProvider(_a) {
24776
24783
  var children = _a.children,
24777
24784
  themeInput = _a.theme;
24778
- var theme = resolveTheme(themeInput);
24785
+ var themeRef = React.useRef(themeInput);
24786
+ var theme = React.useMemo(function () {
24787
+ return resolveTheme(themeRef.current);
24788
+ }, []);
24779
24789
  var colors = theme.colors;
24780
24790
  React.useEffect(function () {
24781
24791
  for (var name_1 in colors) {
@@ -27777,6 +27787,7 @@
27777
27787
  exports.SignatureKYC = SignatureKYC;
27778
27788
  exports.VideoIdValidation = VideoIdValidation;
27779
27789
  exports.allowedAuthUrls = allowedAuthUrls;
27790
+ exports.isObject = isObject;
27780
27791
  exports.preloadModels = preloadModels;
27781
27792
  exports.renderCustomerBiometricsEnrollment = renderCustomerBiometricsEnrollment;
27782
27793
  exports.renderCustomerIdAndBiometricsEnrollment = renderCustomerIdAndBiometricsEnrollment;