@adyen/kyc-components 2.50.3 → 2.50.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";
@@ -9184,7 +9184,7 @@ function CompanyRegistrationDetailsComponent(props) {
9184
9184
  } = useGlobalDataSlice(COMPANY_REGISTRATION_DETAILS);
9185
9185
  const country = (companyNameAndCountry == null ? void 0 : companyNameAndCountry.country) ?? mergedProps.country;
9186
9186
  const hideOptionalRegistrationNumberField = FLOWS_THAT_HIDE_REGISTRATION_NUMBER.some((f) => f.country === country && mergedProps.companyType && f.companyType.includes(mergedProps.companyType));
9187
- const requiredFields = mergedProps.requiredFields || companyRegistrationDetailsFields;
9187
+ const requiredFields = isEmpty$1(mergedProps.requiredFields) ? companyRegistrationDetailsFields : mergedProps.requiredFields;
9188
9188
  const legalCompanyName = companyNameAndCountry == null ? void 0 : companyNameAndCountry.legalCompanyName;
9189
9189
  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;
9190
9190
  const [vatNumberType, setVatNumberType] = useState(defaultVatNumberType);
@@ -35469,13 +35469,14 @@ function DropinComposerComponent({
35469
35469
  handleSingpassMyInfoLoginFailure(e);
35470
35470
  }
35471
35471
  },
35472
- onMessage: ({
35472
+ onMessage: async ({
35473
35473
  data: {
35474
35474
  isSuccessful
35475
35475
  }
35476
35476
  }) => {
35477
35477
  if (isSuccessful) {
35478
35478
  handleSingpassMyInfoLoginSuccess();
35479
+ await refreshLegalEntity();
35479
35480
  } else {
35480
35481
  handleSingpassMyInfoLoginFailure(legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness");
35481
35482
  }
@@ -38725,7 +38726,7 @@ const ConfigurationApiProvider = ({
38725
38726
  isEmbeddedDropin,
38726
38727
  loadingContext
38727
38728
  } = authContext;
38728
- const sdkVersion = "2.50.3";
38729
+ const sdkVersion = "2.50.5";
38729
38730
  useAnalytics({
38730
38731
  onUserEvent,
38731
38732
  legalEntityId: rootLegalEntityId,
@@ -39353,7 +39354,7 @@ const DebugModal = ({
39353
39354
  };
39354
39355
  const copyToClipboard = async () => {
39355
39356
  const toCopy = {
39356
- sdkVersion: "2.50.3",
39357
+ sdkVersion: "2.50.5",
39357
39358
  experiments: Object.fromEntries(allExperimentsWithValues),
39358
39359
  settings: Object.fromEntries(allSettingsWithValues)
39359
39360
  };
@@ -39383,7 +39384,7 @@ const DebugModal = ({
39383
39384
  children: [jsxs("div", {
39384
39385
  className: "adyen-kyc-debug-modal__meta",
39385
39386
  children: [jsxs("span", {
39386
- children: ["SDK version: ", "2.50.3"]
39387
+ children: ["SDK version: ", "2.50.5"]
39387
39388
  }), jsxs("span", {
39388
39389
  children: ["rootLegalEntityId: ", rootLegalEntityId]
39389
39390
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.50.3",
3
+ "version": "2.50.5",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",