@adyen/kyc-components 3.32.3 → 3.32.5

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.
@@ -21200,7 +21200,7 @@ const PayoutVerificationMethodOptionFooter = ({
21200
21200
  variant: "caption",
21201
21201
  className: "adyen-kyc-field-verification-methods__footer",
21202
21202
  children: [i18n.get("poweredBy"), jsx(Svg, {
21203
- type: "image",
21203
+ type: "icon",
21204
21204
  name: provider.svgName,
21205
21205
  alt: provider.name
21206
21206
  })]
@@ -21317,10 +21317,16 @@ function PayoutVerificationMethod(props) {
21317
21317
  }
21318
21318
  }, [forms, hasSelectedMethod, data.payoutVerificationMethod, handleNextClick, enablePreferInstantVerificationMethodFlow]);
21319
21319
  useEffect(() => {
21320
- if (!enablePreferInstantVerificationMethodFlow) return;
21321
- if (!(bankVerificationVendors == null ? void 0 : bankVerificationVendors[data.bankCountry])) {
21322
- selectVerificationMethod("manualVerification");
21320
+ if (!enablePreferInstantVerificationMethodFlow || !bankVerificationVendors) return;
21321
+ let timeout;
21322
+ if (!bankVerificationVendors[data.bankCountry]) {
21323
+ timeout = setTimeout(() => {
21324
+ selectVerificationMethod("manualVerification");
21325
+ }, 50);
21323
21326
  }
21327
+ return () => {
21328
+ clearTimeout(timeout);
21329
+ };
21324
21330
  }, [bankVerificationVendors, enablePreferInstantVerificationMethodFlow]);
21325
21331
  const getProviderDisplayName = (providerName2) => providerName2.charAt(0).toUpperCase() + providerName2.slice(1);
21326
21332
  const {
@@ -32094,6 +32100,7 @@ const useBankConfigurationHandlers = ({
32094
32100
  }
32095
32101
  setLoadingStatus("loading");
32096
32102
  (async () => {
32103
+ setBankVerificationVendorsResponse(void 0);
32097
32104
  const bankVerificationVendorsResponse2 = callBankVerificationVendorsUpfront ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
32098
32105
  setBankVerificationVendorsResponse(bankVerificationVendorsResponse2);
32099
32106
  setUseFreshProviderRedirectUrl(false);
@@ -32111,8 +32118,12 @@ const useBankConfigurationHandlers = ({
32111
32118
  capabilities,
32112
32119
  country: bankAccountCountry
32113
32120
  });
32114
- if (!callBankVerificationVendorsUpfront || !((_a = bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]) == null ? void 0 : _a.name)) {
32115
- return configuration;
32121
+ if (!callBankVerificationVendorsUpfront) return configuration;
32122
+ if (!((_a = bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]) == null ? void 0 : _a.name)) {
32123
+ return {
32124
+ ...configuration,
32125
+ bankVerificationProviders: {}
32126
+ };
32116
32127
  }
32117
32128
  return {
32118
32129
  ...configuration,
@@ -34152,7 +34163,7 @@ function SolePropDropinComponent({
34152
34163
  requiredFields,
34153
34164
  isSettingEnabled
34154
34165
  }), [country, data, taskType, requiredFields, isSettingEnabled]);
34155
- 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]);
34166
+ 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]);
34156
34167
  const forms = useMemo(() => {
34157
34168
  const requiredForms = getRequiredForms(solePropForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
34158
34169
  return addValidityToForms(requiredForms, formValidity, problems);
@@ -40233,7 +40244,7 @@ const ConfigurationApiProvider = ({
40233
40244
  isEmbeddedDropin,
40234
40245
  loadingContext
40235
40246
  } = authContext;
40236
- const sdkVersion = "3.32.3";
40247
+ const sdkVersion = "3.32.5";
40237
40248
  useAnalytics({
40238
40249
  onUserEvent,
40239
40250
  legalEntityId: rootLegalEntityId,
@@ -40920,7 +40931,7 @@ const DebugModal = ({
40920
40931
  };
40921
40932
  const copyToClipboard = async () => {
40922
40933
  const toCopy = {
40923
- sdkVersion: "3.32.3",
40934
+ sdkVersion: "3.32.5",
40924
40935
  experiments: Object.fromEntries(allExperimentsWithValues),
40925
40936
  settings: Object.fromEntries(allSettingsWithValues)
40926
40937
  };
@@ -40959,7 +40970,7 @@ const DebugModal = ({
40959
40970
  children: [jsxs("div", {
40960
40971
  className: "adyen-kyc-debug-modal__meta",
40961
40972
  children: [jsxs("span", {
40962
- children: ["SDK version: ", "3.32.3"]
40973
+ children: ["SDK version: ", "3.32.5"]
40963
40974
  }), jsxs("span", {
40964
40975
  children: ["rootLegalEntityId: ", rootLegalEntityId]
40965
40976
  })]
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": "3.32.3",
3
+ "version": "3.32.5",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",