@adyen/kyc-components 3.10.2 → 3.10.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.
@@ -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"]
@@ -33987,7 +33988,7 @@ function CreateTransferInstrumentComponent({
33987
33988
  hideNavigation: true,
33988
33989
  refreshLegalEntity: fetchLegalEntity,
33989
33990
  onSubmit: onSubmitSuccess,
33990
- createTrustedTransferInstrument: createTrustedTransferInstrument2,
33991
+ handleCreateTrustedTransferInstrument: createTrustedTransferInstrument2,
33991
33992
  handleBankVerificationError: handleBankVerificationError2,
33992
33993
  taskType: TaskTypes.PAYOUT
33993
33994
  });
@@ -34356,6 +34357,7 @@ function OnboardingDropinComponent({
34356
34357
  handleGetDocument: getDocument2,
34357
34358
  handleCreateDocument: createDocument2,
34358
34359
  handleUpdateDocument: updateDocument2,
34360
+ handleGetLegalEntity: getLegalEntity2,
34359
34361
  handleUpdateLegalEntity: updateLegalEntity2,
34360
34362
  handleCreateLegalEntity: createLegalEntity2,
34361
34363
  handleFindAddress: getAddress2,
@@ -35024,7 +35026,7 @@ const ConfigurationApiProvider = ({
35024
35026
  isEmbeddedDropin,
35025
35027
  loadingContext
35026
35028
  } = authContext;
35027
- const sdkVersion = "3.10.2";
35029
+ const sdkVersion = "3.10.4";
35028
35030
  useAnalytics({
35029
35031
  onUserEvent,
35030
35032
  legalEntityId: rootLegalEntityId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.10.2",
3
+ "version": "3.10.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [