@adyen/kyc-components 2.52.1 → 2.52.2
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.
- package/dist/es/adyen-kyc-components.es.js +12 -5
- package/dist/style.css +4 -2
- package/package.json +1 -1
|
@@ -26622,7 +26622,7 @@ const mapBusinessDetailsSchemaToLegalEntity = (data) => {
|
|
|
26622
26622
|
requestObj.type = LegalEntityType.ORGANIZATION;
|
|
26623
26623
|
return requestObj;
|
|
26624
26624
|
};
|
|
26625
|
-
const MANDATORY_API_FIELDS = ["
|
|
26625
|
+
const MANDATORY_API_FIELDS = ["additionalInformation.legalCompanyName", "basicInformation.country"];
|
|
26626
26626
|
const parseConfiguration$7 = ({
|
|
26627
26627
|
country,
|
|
26628
26628
|
matchingScenario
|
|
@@ -26950,6 +26950,7 @@ function BusinessDetailsDropinComponent({
|
|
|
26950
26950
|
return ((_a2 = currentState.data.basicInformation) == null ? void 0 : _a2.country) ?? country;
|
|
26951
26951
|
}, [(_a = currentState.data.basicInformation) == null ? void 0 : _a.country, country]);
|
|
26952
26952
|
const [initialData, setInitialData] = useState(mapLegalEntityToBusinessDetailsSchema(legalEntityResponse, Boolean(isTargetLegalEntityType), isNewEntryFlowEnabled ? accountHolder : void 0));
|
|
26953
|
+
const [trustedFields2, setTrustedFields] = useState(legalEntityResponse.trustedFields);
|
|
26953
26954
|
const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
|
|
26954
26955
|
useEffect(() => {
|
|
26955
26956
|
var _a2;
|
|
@@ -26994,7 +26995,7 @@ function BusinessDetailsDropinComponent({
|
|
|
26994
26995
|
isExperimentEnabled
|
|
26995
26996
|
}), [currentCountry, currentState.data, isExperimentEnabled, taskType]);
|
|
26996
26997
|
const initialForms = useMemo(() => getForms(currentCountry), [currentCountry]);
|
|
26997
|
-
const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, initialForms, (currentProblems == null ? void 0 : currentProblems.remediationActions) ? Object.values(currentProblems == null ? void 0 : currentProblems.remediationActions) : [], (currentProblems == null ? void 0 : currentProblems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse, isExperimentEnabled) : [], customRules, {}, {},
|
|
26998
|
+
const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, initialForms, (currentProblems == null ? void 0 : currentProblems.remediationActions) ? Object.values(currentProblems == null ? void 0 : currentProblems.remediationActions) : [], (currentProblems == null ? void 0 : currentProblems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse, isExperimentEnabled) : [], customRules, {}, {}, trustedFields2), [fieldConfigurations, initialForms, currentProblems == null ? void 0 : currentProblems.remediationActions, currentProblems == null ? void 0 : currentProblems.missingData, legalEntityResponse, isExperimentEnabled, customRules, trustedFields2]);
|
|
26998
26999
|
const isSkippingCompanyStructure = useEnableNewEntryFlow() && organizationTypesToSkipCompanyStructureForm.includes((_d = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _d.type) && accountHolder !== "aTrust";
|
|
26999
27000
|
const isSkippingCompanyRegistrationDocument = currentCountry === "CA" && ((_e = currentState.data.additionalInformation) == null ? void 0 : _e.registrationNumber) && ((_f = currentState.valid.additionalInformation) == null ? void 0 : _f.registrationNumber) && !((_g = currentState.data.companyRegistrationDocument) == null ? void 0 : _g.registrationDocument);
|
|
27000
27001
|
const forms2 = useMemo(() => {
|
|
@@ -27191,6 +27192,12 @@ function BusinessDetailsDropinComponent({
|
|
|
27191
27192
|
const proceedToManualDataEntry = useCallback(async () => {
|
|
27192
27193
|
await clearTrustedBusinessData().then(() => setShowCompanyStructure(true));
|
|
27193
27194
|
}, [clearTrustedBusinessData]);
|
|
27195
|
+
useEffect(() => {
|
|
27196
|
+
var _a2;
|
|
27197
|
+
if ((trustedFields2 == null ? void 0 : trustedFields2.length) && ((_a2 = legalEntityResponse.organization) == null ? void 0 : _a2.registeredAddress.country) !== currentCountry) {
|
|
27198
|
+
setTrustedFields(void 0);
|
|
27199
|
+
}
|
|
27200
|
+
}, [currentCountry]);
|
|
27194
27201
|
return jsx(FormWrapper, {
|
|
27195
27202
|
taskName: taskName ?? "businessDetails",
|
|
27196
27203
|
gotoFormByFormIndex: goToForm,
|
|
@@ -39361,7 +39368,7 @@ const ConfigurationApiProvider = ({
|
|
|
39361
39368
|
isEmbeddedDropin,
|
|
39362
39369
|
loadingContext
|
|
39363
39370
|
} = authContext;
|
|
39364
|
-
const sdkVersion = "2.52.
|
|
39371
|
+
const sdkVersion = "2.52.2";
|
|
39365
39372
|
useAnalytics({
|
|
39366
39373
|
onUserEvent,
|
|
39367
39374
|
legalEntityId: rootLegalEntityId,
|
|
@@ -40039,7 +40046,7 @@ const DebugModal = ({
|
|
|
40039
40046
|
};
|
|
40040
40047
|
const copyToClipboard = async () => {
|
|
40041
40048
|
const toCopy = {
|
|
40042
|
-
sdkVersion: "2.52.
|
|
40049
|
+
sdkVersion: "2.52.2",
|
|
40043
40050
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40044
40051
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40045
40052
|
};
|
|
@@ -40069,7 +40076,7 @@ const DebugModal = ({
|
|
|
40069
40076
|
children: [jsxs("div", {
|
|
40070
40077
|
className: "adyen-kyc-debug-modal__meta",
|
|
40071
40078
|
children: [jsxs("span", {
|
|
40072
|
-
children: ["SDK version: ", "2.52.
|
|
40079
|
+
children: ["SDK version: ", "2.52.2"]
|
|
40073
40080
|
}), jsxs("span", {
|
|
40074
40081
|
children: ["rootLegalEntityId: ", rootLegalEntityId]
|
|
40075
40082
|
})]
|
package/dist/style.css
CHANGED
|
@@ -2270,7 +2270,7 @@ button[disabled]:hover {
|
|
|
2270
2270
|
border-radius: var(--adyen-sdk-border-radius-m, 8px);
|
|
2271
2271
|
}
|
|
2272
2272
|
.adyen-kyc-verified-business-card__data-title {
|
|
2273
|
-
width: 180px;
|
|
2273
|
+
min-width: 180px;
|
|
2274
2274
|
color: var(--adyen-sdk-color-label-secondary, #5c687c);
|
|
2275
2275
|
}
|
|
2276
2276
|
.adyen-kyc-verified-business-card ul {
|
|
@@ -2283,6 +2283,7 @@ button[disabled]:hover {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
.adyen-kyc-verified-business-card ul li {
|
|
2285
2285
|
display: flex;
|
|
2286
|
+
width: 100%;
|
|
2286
2287
|
}
|
|
2287
2288
|
.adyen-kyc-verified-business-card__address {
|
|
2288
2289
|
display: flex;
|
|
@@ -2497,9 +2498,10 @@ button[disabled]:hover {
|
|
|
2497
2498
|
}
|
|
2498
2499
|
.adyen-kyc-business-information__business-data li {
|
|
2499
2500
|
display: flex;
|
|
2501
|
+
width: 100%;
|
|
2500
2502
|
}
|
|
2501
2503
|
.adyen-kyc-business-information__business-data .adyen-kyc-business-data__key {
|
|
2502
|
-
width: 180px;
|
|
2504
|
+
min-width: 180px;
|
|
2503
2505
|
}.adyen-kyc-field--entityType {
|
|
2504
2506
|
margin-bottom: var(--adyen-sdk-spacer-090, 24px);
|
|
2505
2507
|
}
|