@adyen/kyc-components 3.24.4 → 3.24.6
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
|
|
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);
|
|
@@ -35717,13 +35717,14 @@ function DropinComposerComponent({
|
|
|
35717
35717
|
handleSingpassMyInfoLoginFailure(e);
|
|
35718
35718
|
}
|
|
35719
35719
|
},
|
|
35720
|
-
onMessage: ({
|
|
35720
|
+
onMessage: async ({
|
|
35721
35721
|
data: {
|
|
35722
35722
|
isSuccessful
|
|
35723
35723
|
}
|
|
35724
35724
|
}) => {
|
|
35725
35725
|
if (isSuccessful) {
|
|
35726
35726
|
handleSingpassMyInfoLoginSuccess();
|
|
35727
|
+
await refreshLegalEntity();
|
|
35727
35728
|
} else {
|
|
35728
35729
|
handleSingpassMyInfoLoginFailure(legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness");
|
|
35729
35730
|
}
|
|
@@ -39736,7 +39737,7 @@ const ConfigurationApiProvider = ({
|
|
|
39736
39737
|
isEmbeddedDropin,
|
|
39737
39738
|
loadingContext
|
|
39738
39739
|
} = authContext;
|
|
39739
|
-
const sdkVersion = "3.24.
|
|
39740
|
+
const sdkVersion = "3.24.6";
|
|
39740
39741
|
useAnalytics({
|
|
39741
39742
|
onUserEvent,
|
|
39742
39743
|
legalEntityId: rootLegalEntityId,
|
|
@@ -40368,7 +40369,7 @@ const DebugModal = ({
|
|
|
40368
40369
|
};
|
|
40369
40370
|
const copyToClipboard = async () => {
|
|
40370
40371
|
const toCopy = {
|
|
40371
|
-
sdkVersion: "3.24.
|
|
40372
|
+
sdkVersion: "3.24.6",
|
|
40372
40373
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40373
40374
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40374
40375
|
};
|
|
@@ -40398,7 +40399,7 @@ const DebugModal = ({
|
|
|
40398
40399
|
children: [jsxs("div", {
|
|
40399
40400
|
className: "adyen-kyc-debug-modal__meta",
|
|
40400
40401
|
children: [jsxs("span", {
|
|
40401
|
-
children: ["SDK version: ", "3.24.
|
|
40402
|
+
children: ["SDK version: ", "3.24.6"]
|
|
40402
40403
|
}), jsxs("span", {
|
|
40403
40404
|
children: ["rootLegalEntityId: ", rootLegalEntityId]
|
|
40404
40405
|
})]
|