@adyen/kyc-components 3.10.1 → 3.10.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.
@@ -26521,7 +26521,7 @@ function CompanySearchDropinComponent({
26521
26521
  handleRefreshCompanyDataset,
26522
26522
  handleVerifyTin
26523
26523
  }) {
26524
- var _a, _b, _c;
26524
+ var _a, _b, _c, _d;
26525
26525
  const {
26526
26526
  state: {
26527
26527
  currentState
@@ -26607,10 +26607,11 @@ function CompanySearchDropinComponent({
26607
26607
  }, props);
26608
26608
  }
26609
26609
  }, [fieldConfigurations, problems == null ? void 0 : problems.remediationActions, problems == null ? void 0 : problems.missingData, legalEntityResponse, isExperimentEnabled, customRules, country2]);
26610
+ const isSkippingCompanyStructure = useEnableNewEntryFlow() && organizationTypesToSkipCompanyStructureForm.includes((_d = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _d.type);
26610
26611
  const forms$1 = useMemo(() => {
26611
26612
  const requiredForms = getRequiredForms(forms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
26612
- return addValidityToForms(requiredForms, currentState.validityByForm, problems);
26613
- }, [derivedProps, problems, currentState.validityByForm]);
26613
+ return addValidityToForms(requiredForms, currentState.validityByForm, problems).filter((form) => isSkippingCompanyStructure ? form.formId !== "companyStructure" : true);
26614
+ }, [derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields, currentState.validityByForm, problems, isSkippingCompanyStructure]);
26614
26615
  const summaryData = useMemo(() => ({
26615
26616
  data: formatDataForSummary(currentState.data, forms$1, derivedProps == null ? void 0 : derivedProps.labels, i18n),
26616
26617
  omittedKeys: ["operationalAddressIsSame"]
@@ -35024,7 +35025,7 @@ const ConfigurationApiProvider = ({
35024
35025
  isEmbeddedDropin,
35025
35026
  loadingContext
35026
35027
  } = authContext;
35027
- const sdkVersion = "3.10.1";
35028
+ const sdkVersion = "3.10.3";
35028
35029
  useAnalytics({
35029
35030
  onUserEvent,
35030
35031
  legalEntityId: rootLegalEntityId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.10.1",
3
+ "version": "3.10.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [