@adyen/kyc-components 3.24.4 → 3.24.5

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.
@@ -5,9 +5,9 @@ import cx from "classnames";
5
5
  import { lazy, Suspense, useId, forwardRef, memo, useMemo as useMemo$1, useEffect as useEffect$1, useState as useState$1, useCallback as useCallback$1 } from "preact/compat";
6
6
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
7
7
  import debounce from "lodash-es/debounce";
8
+ import isEmpty$1 from "lodash-es/isEmpty";
8
9
  import isISIN from "validator/es/lib/isISIN.js";
9
10
  import OpenBankingSDK from "@adyen/openbankingsdk";
10
- import isEmpty$1 from "lodash-es/isEmpty";
11
11
  import noop$1 from "lodash-es/noop";
12
12
  import range from "lodash-es/range";
13
13
  import { jsxs as jsxs$1, jsx as jsx$1 } from "preact/compat/jsx-runtime";
@@ -9214,7 +9214,7 @@ function CompanyRegistrationDetailsComponent(props) {
9214
9214
  } = useGlobalDataSlice(COMPANY_REGISTRATION_DETAILS);
9215
9215
  const country = (companyNameAndCountry == null ? void 0 : companyNameAndCountry.country) ?? mergedProps.country;
9216
9216
  const hideOptionalRegistrationNumberField = FLOWS_THAT_HIDE_REGISTRATION_NUMBER.some((f) => f.country === country && mergedProps.companyType && f.companyType.includes(mergedProps.companyType));
9217
- const requiredFields = mergedProps.requiredFields || companyRegistrationDetailsFields;
9217
+ const requiredFields = isEmpty$1(mergedProps.requiredFields) ? companyRegistrationDetailsFields : mergedProps.requiredFields;
9218
9218
  const legalCompanyName = companyNameAndCountry == null ? void 0 : companyNameAndCountry.legalCompanyName;
9219
9219
  const defaultVatNumberType = ((_a = mergedProps.data) == null ? void 0 : _a.vatNumber) ? inferTaxIdNumberType((_b = mergedProps.data) == null ? void 0 : _b.vatNumber, country) : (_c = taxIdNumberOptions[country]) == null ? void 0 : _c[0].id;
9220
9220
  const [vatNumberType, setVatNumberType] = useState(defaultVatNumberType);
@@ -39736,7 +39736,7 @@ const ConfigurationApiProvider = ({
39736
39736
  isEmbeddedDropin,
39737
39737
  loadingContext
39738
39738
  } = authContext;
39739
- const sdkVersion = "3.24.4";
39739
+ const sdkVersion = "3.24.5";
39740
39740
  useAnalytics({
39741
39741
  onUserEvent,
39742
39742
  legalEntityId: rootLegalEntityId,
@@ -40368,7 +40368,7 @@ const DebugModal = ({
40368
40368
  };
40369
40369
  const copyToClipboard = async () => {
40370
40370
  const toCopy = {
40371
- sdkVersion: "3.24.4",
40371
+ sdkVersion: "3.24.5",
40372
40372
  experiments: Object.fromEntries(allExperimentsWithValues),
40373
40373
  settings: Object.fromEntries(allSettingsWithValues)
40374
40374
  };
@@ -40398,7 +40398,7 @@ const DebugModal = ({
40398
40398
  children: [jsxs("div", {
40399
40399
  className: "adyen-kyc-debug-modal__meta",
40400
40400
  children: [jsxs("span", {
40401
- children: ["SDK version: ", "3.24.4"]
40401
+ children: ["SDK version: ", "3.24.5"]
40402
40402
  }), jsxs("span", {
40403
40403
  children: ["rootLegalEntityId: ", rootLegalEntityId]
40404
40404
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.24.4",
3
+ "version": "3.24.5",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",