gbc-kyc-kit 1.8.6 → 1.8.8

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.
@@ -22228,7 +22228,6 @@ const BlackListController = (clientId, authorize, eventId, inProduction, country
22228
22228
  country: select,
22229
22229
  date_birth: Date.parse(birth_date)
22230
22230
  };
22231
- console.log(payload, "/////", match2);
22232
22231
  await saveDataToDB({
22233
22232
  data: dataToRegisterBlackList,
22234
22233
  component: "blacklist",
@@ -26689,8 +26688,8 @@ const caseAllCaps = {
26689
26688
  const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
26690
26689
  function createTypography(palette, typography) {
26691
26690
  const _ref = typeof typography === "function" ? typography(palette) : typography, {
26692
- fontFamily = defaultFontFamily,
26693
- fontSize = 14,
26691
+ fontFamily: fontFamily2 = defaultFontFamily,
26692
+ fontSize: fontSize2 = 14,
26694
26693
  fontWeightLight = 300,
26695
26694
  fontWeightRegular = 400,
26696
26695
  fontWeightMedium = 500,
@@ -26699,14 +26698,14 @@ function createTypography(palette, typography) {
26699
26698
  allVariants,
26700
26699
  pxToRem: pxToRem2
26701
26700
  } = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$3);
26702
- const coef = fontSize / 14;
26701
+ const coef = fontSize2 / 14;
26703
26702
  const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
26704
26703
  const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$1({
26705
- fontFamily,
26704
+ fontFamily: fontFamily2,
26706
26705
  fontWeight,
26707
26706
  fontSize: pxToRem(size),
26708
26707
  lineHeight
26709
- }, fontFamily === defaultFontFamily ? {
26708
+ }, fontFamily2 === defaultFontFamily ? {
26710
26709
  letterSpacing: `${round(letterSpacing / size)}em`
26711
26710
  } : {}, casing, allVariants);
26712
26711
  const variants = {
@@ -26734,8 +26733,8 @@ function createTypography(palette, typography) {
26734
26733
  return deepmerge(_extends$1({
26735
26734
  htmlFontSize,
26736
26735
  pxToRem,
26737
- fontFamily,
26738
- fontSize,
26736
+ fontFamily: fontFamily2,
26737
+ fontSize: fontSize2,
26739
26738
  fontWeightLight,
26740
26739
  fontWeightRegular,
26741
26740
  fontWeightMedium,
@@ -26869,11 +26868,11 @@ const _excluded = ["children", "className", "color", "component", "fontSize", "h
26869
26868
  const useUtilityClasses = (ownerState) => {
26870
26869
  const {
26871
26870
  color: color2,
26872
- fontSize,
26871
+ fontSize: fontSize2,
26873
26872
  classes
26874
26873
  } = ownerState;
26875
26874
  const slots = {
26876
- root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
26875
+ root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize2)}`]
26877
26876
  };
26878
26877
  return composeClasses(slots, getSvgIconUtilityClass, classes);
26879
26878
  };
@@ -26924,7 +26923,7 @@ const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, re
26924
26923
  className,
26925
26924
  color: color2 = "inherit",
26926
26925
  component = "svg",
26927
- fontSize = "medium",
26926
+ fontSize: fontSize2 = "medium",
26928
26927
  htmlColor,
26929
26928
  inheritViewBox = false,
26930
26929
  titleAccess,
@@ -26934,7 +26933,7 @@ const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, re
26934
26933
  const ownerState = _extends$1({}, props, {
26935
26934
  color: color2,
26936
26935
  component,
26937
- fontSize,
26936
+ fontSize: fontSize2,
26938
26937
  instanceFontSize: inProps.fontSize,
26939
26938
  inheritViewBox,
26940
26939
  viewBox,
@@ -28204,7 +28203,7 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
28204
28203
  const [similarity, setSimilarity] = useState(0);
28205
28204
  const listener = (event) => {
28206
28205
  if (event.detail) {
28207
- if (event.detail.action === "PROCESS_FINISHED" && event.detail.data.response.code != -1) {
28206
+ if (event.detail.action === "PROCESS_FINISHED" && event.detail.data.response.code == 0) {
28208
28207
  setData(event.detail.data.response);
28209
28208
  }
28210
28209
  }
@@ -29453,6 +29452,10 @@ lib.useDeviceData = useDeviceData;
29453
29452
  lib.useDeviceSelectors = useDeviceSelectors;
29454
29453
  lib.useMobileOrientation = useMobileOrientation;
29455
29454
  lib.withOrientationChange = withOrientationChange;
29455
+ const primaryColor = getComputedStyle(document.documentElement).getPropertyValue("--primary");
29456
+ const primaryColorHover = getComputedStyle(document.documentElement).getPropertyValue("--primary-hov");
29457
+ const fontSize = getComputedStyle(document.documentElement).getPropertyValue("--font-size");
29458
+ const fontFamily = getComputedStyle(document.documentElement).getPropertyValue("--font-family");
29456
29459
  function LivenessCheck({
29457
29460
  mode,
29458
29461
  clientId,
@@ -29485,7 +29488,16 @@ function LivenessCheck({
29485
29488
  videoRecording: false,
29486
29489
  url: "https://regula-sandbox.globalbridgeconnections.com.py/face-sdk",
29487
29490
  customization: {
29488
- fontFamily: "Noto Sans, sans-serif"
29491
+ fontFamily,
29492
+ fontSize,
29493
+ onboardingScreenStartButtonBackground: primaryColor,
29494
+ onboardingScreenStartButtonBackgroundHover: primaryColorHover,
29495
+ retryScreenRetryButtonBackground: primaryColor,
29496
+ retryScreenRetryButtonBackgroundHover: primaryColor,
29497
+ cameraScreenSectorActive: primaryColor,
29498
+ cameraScreenStrokeNormal: primaryColor,
29499
+ processingScreenProgress: primaryColor,
29500
+ cameraScreenSectorTarget: primaryColorHover
29489
29501
  }
29490
29502
  };
29491
29503
  component.addEventListener("face-liveness", listener);