@adyen/kyc-components 2.50.3 → 2.50.4
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
|
|
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);
|
|
@@ -38725,7 +38725,7 @@ const ConfigurationApiProvider = ({
|
|
|
38725
38725
|
isEmbeddedDropin,
|
|
38726
38726
|
loadingContext
|
|
38727
38727
|
} = authContext;
|
|
38728
|
-
const sdkVersion = "2.50.
|
|
38728
|
+
const sdkVersion = "2.50.4";
|
|
38729
38729
|
useAnalytics({
|
|
38730
38730
|
onUserEvent,
|
|
38731
38731
|
legalEntityId: rootLegalEntityId,
|
|
@@ -39353,7 +39353,7 @@ const DebugModal = ({
|
|
|
39353
39353
|
};
|
|
39354
39354
|
const copyToClipboard = async () => {
|
|
39355
39355
|
const toCopy = {
|
|
39356
|
-
sdkVersion: "2.50.
|
|
39356
|
+
sdkVersion: "2.50.4",
|
|
39357
39357
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
39358
39358
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
39359
39359
|
};
|
|
@@ -39383,7 +39383,7 @@ const DebugModal = ({
|
|
|
39383
39383
|
children: [jsxs("div", {
|
|
39384
39384
|
className: "adyen-kyc-debug-modal__meta",
|
|
39385
39385
|
children: [jsxs("span", {
|
|
39386
|
-
children: ["SDK version: ", "2.50.
|
|
39386
|
+
children: ["SDK version: ", "2.50.4"]
|
|
39387
39387
|
}), jsxs("span", {
|
|
39388
39388
|
children: ["rootLegalEntityId: ", rootLegalEntityId]
|
|
39389
39389
|
})]
|