@adyen/kyc-components 2.57.2 → 2.57.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.
@@ -20996,7 +20996,7 @@ const PayoutVerificationMethodOptionFooter = ({
20996
20996
  variant: "caption",
20997
20997
  className: "adyen-kyc-field-verification-methods__footer",
20998
20998
  children: [i18n.get("poweredBy"), jsx(Svg, {
20999
- type: "image",
20999
+ type: "icon",
21000
21000
  name: provider.svgName,
21001
21001
  alt: provider.name
21002
21002
  })]
@@ -21113,10 +21113,16 @@ function PayoutVerificationMethod(props) {
21113
21113
  }
21114
21114
  }, [forms, hasSelectedMethod, data.payoutVerificationMethod, handleNextClick, enablePreferInstantVerificationMethodFlow]);
21115
21115
  useEffect(() => {
21116
- if (!enablePreferInstantVerificationMethodFlow) return;
21117
- if (!(bankVerificationVendors == null ? void 0 : bankVerificationVendors[data.bankCountry])) {
21118
- selectVerificationMethod("manualVerification");
21116
+ if (!enablePreferInstantVerificationMethodFlow || !bankVerificationVendors) return;
21117
+ let timeout;
21118
+ if (!bankVerificationVendors[data.bankCountry]) {
21119
+ timeout = setTimeout(() => {
21120
+ selectVerificationMethod("manualVerification");
21121
+ }, 50);
21119
21122
  }
21123
+ return () => {
21124
+ clearTimeout(timeout);
21125
+ };
21120
21126
  }, [bankVerificationVendors, enablePreferInstantVerificationMethodFlow]);
21121
21127
  const getProviderDisplayName = (providerName2) => providerName2.charAt(0).toUpperCase() + providerName2.slice(1);
21122
21128
  const {
@@ -31788,6 +31794,7 @@ const useBankConfigurationHandlers = ({
31788
31794
  }
31789
31795
  setLoadingStatus("loading");
31790
31796
  (async () => {
31797
+ setBankVerificationVendorsResponse(void 0);
31791
31798
  const bankVerificationVendorsResponse2 = callBankVerificationVendorsUpfront ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
31792
31799
  setBankVerificationVendorsResponse(bankVerificationVendorsResponse2);
31793
31800
  setUseFreshProviderRedirectUrl(false);
@@ -31805,8 +31812,12 @@ const useBankConfigurationHandlers = ({
31805
31812
  capabilities,
31806
31813
  country: bankAccountCountry
31807
31814
  });
31808
- if (!callBankVerificationVendorsUpfront || !((_a = bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]) == null ? void 0 : _a.name)) {
31809
- return configuration;
31815
+ if (!callBankVerificationVendorsUpfront) return configuration;
31816
+ if (!((_a = bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]) == null ? void 0 : _a.name)) {
31817
+ return {
31818
+ ...configuration,
31819
+ bankVerificationProviders: {}
31820
+ };
31810
31821
  }
31811
31822
  return {
31812
31823
  ...configuration,
@@ -33755,7 +33766,7 @@ function SolePropDropinComponent({
33755
33766
  requiredFields,
33756
33767
  isSettingEnabled
33757
33768
  }), [country, data, taskType, requiredFields, isSettingEnabled]);
33758
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, solePropForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules, {}, {}, legalEntityResponse.type), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions, legalEntityResponse]);
33769
+ const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, solePropForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules, {}, {}, legalEntityResponse == null ? void 0 : legalEntityResponse.type), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions, legalEntityResponse]);
33759
33770
  const forms = useMemo(() => {
33760
33771
  const requiredForms = getRequiredForms(solePropForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
33761
33772
  return addValidityToForms(requiredForms, formValidity, problems);
@@ -38242,7 +38253,7 @@ const ConfigurationApiProvider = ({
38242
38253
  isEmbeddedDropin,
38243
38254
  loadingContext
38244
38255
  } = authContext;
38245
- const sdkVersion = "2.57.2";
38256
+ const sdkVersion = "2.57.4";
38246
38257
  useAnalytics({
38247
38258
  onUserEvent,
38248
38259
  legalEntityId: rootLegalEntityId,
@@ -38925,7 +38936,7 @@ const DebugModal = ({
38925
38936
  };
38926
38937
  const copyToClipboard = async () => {
38927
38938
  const toCopy = {
38928
- sdkVersion: "2.57.2",
38939
+ sdkVersion: "2.57.4",
38929
38940
  experiments: Object.fromEntries(allExperimentsWithValues),
38930
38941
  settings: Object.fromEntries(allSettingsWithValues)
38931
38942
  };
@@ -38964,7 +38975,7 @@ const DebugModal = ({
38964
38975
  children: [jsxs("div", {
38965
38976
  className: "adyen-kyc-debug-modal__meta",
38966
38977
  children: [jsxs("span", {
38967
- children: ["SDK version: ", "2.57.2"]
38978
+ children: ["SDK version: ", "2.57.4"]
38968
38979
  }), jsxs("span", {
38969
38980
  children: ["rootLegalEntityId: ", rootLegalEntityId]
38970
38981
  })]
package/dist/style.css CHANGED
@@ -2213,10 +2213,10 @@ fieldset {
2213
2213
  gap: var(--adyen-sdk-spacer-020, 4px);
2214
2214
  justify-content: end;
2215
2215
  }
2216
- .adyen-kyc-field-verification-methods__footer .adyen-kyc-image {
2216
+ .adyen-kyc-field-verification-methods__footer .adyen-kyc-icon {
2217
2217
  height: 12px;
2218
2218
  }
2219
- .adyen-kyc-field-verification-methods__footer .adyen-kyc-image svg {
2219
+ .adyen-kyc-field-verification-methods__footer .adyen-kyc-icon svg {
2220
2220
  height: 100%;
2221
2221
  width: auto;
2222
2222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.57.2",
3
+ "version": "2.57.4",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",