@adyen/kyc-components 3.32.3 → 3.32.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.
@@ -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,
@@ -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.4";
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.4",
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.4"]
40963
40974
  }), jsxs("span", {
40964
40975
  children: ["rootLegalEntityId: ", rootLegalEntityId]
40965
40976
  })]
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.4",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",