@adyen/kyc-components 2.36.1 → 2.36.3
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.
|
@@ -26257,7 +26257,7 @@ function CompanySearchDropinComponent({
|
|
|
26257
26257
|
handleRefreshCompanyDataset,
|
|
26258
26258
|
handleVerifyTin
|
|
26259
26259
|
}) {
|
|
26260
|
-
var _a, _b, _c;
|
|
26260
|
+
var _a, _b, _c, _d;
|
|
26261
26261
|
const {
|
|
26262
26262
|
state: {
|
|
26263
26263
|
currentState
|
|
@@ -26343,10 +26343,11 @@ function CompanySearchDropinComponent({
|
|
|
26343
26343
|
}, props);
|
|
26344
26344
|
}
|
|
26345
26345
|
}, [fieldConfigurations, problems == null ? void 0 : problems.remediationActions, problems == null ? void 0 : problems.missingData, legalEntityResponse, isExperimentEnabled, customRules, country2]);
|
|
26346
|
+
const isSkippingCompanyStructure = useEnableNewEntryFlow() && organizationTypesToSkipCompanyStructureForm.includes((_d = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _d.type);
|
|
26346
26347
|
const forms$1 = useMemo(() => {
|
|
26347
26348
|
const requiredForms = getRequiredForms(forms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
|
|
26348
|
-
return addValidityToForms(requiredForms, currentState.validityByForm, problems);
|
|
26349
|
-
}, [derivedProps,
|
|
26349
|
+
return addValidityToForms(requiredForms, currentState.validityByForm, problems).filter((form) => isSkippingCompanyStructure ? form.formId !== "companyStructure" : true);
|
|
26350
|
+
}, [derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields, currentState.validityByForm, problems, isSkippingCompanyStructure]);
|
|
26350
26351
|
const summaryData = useMemo(() => ({
|
|
26351
26352
|
data: formatDataForSummary(currentState.data, forms$1, derivedProps == null ? void 0 : derivedProps.labels, i18n),
|
|
26352
26353
|
omittedKeys: ["operationalAddressIsSame"]
|
|
@@ -34091,7 +34092,7 @@ const ConfigurationApiProvider = ({
|
|
|
34091
34092
|
isEmbeddedDropin,
|
|
34092
34093
|
loadingContext
|
|
34093
34094
|
} = authContext;
|
|
34094
|
-
const sdkVersion = "2.36.
|
|
34095
|
+
const sdkVersion = "2.36.3";
|
|
34095
34096
|
useAnalytics({
|
|
34096
34097
|
onUserEvent,
|
|
34097
34098
|
legalEntityId: rootLegalEntityId,
|