@adyen/kyc-components 2.57.1 → 2.57.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.
@@ -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 {
@@ -27552,7 +27558,7 @@ function BusinessDetailsDropinComponent({
27552
27558
  }
27553
27559
  }, [currentCountry, handleNextClick, activeForm.formId, verifiedBusiness, (_k = currentState.validityByForm) == null ? void 0 : _k.basicInformation, (_l = currentState.data.basicInformation) == null ? void 0 : _l.businessName, (_m = currentState.data.basicInformation) == null ? void 0 : _m.country, (_n = currentState.data.basicInformation) == null ? void 0 : _n.stateOrProvince, isBusinessSelection, findBusiness]);
27554
27560
  const backClick = useCallback(() => {
27555
- if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) return handleNextClick();
27561
+ if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) return handleBackClick == null ? void 0 : handleBackClick();
27556
27562
  switch (activeForm.formId) {
27557
27563
  case "basicInformation": {
27558
27564
  return showBusinessSelection ? setShowBusinessSelection(false) : void 0;
@@ -27577,7 +27583,7 @@ function BusinessDetailsDropinComponent({
27577
27583
  default:
27578
27584
  return handleBackClick == null ? void 0 : handleBackClick();
27579
27585
  }
27580
- }, [activeForm.formId, country, handleBackClick, handleNextClick, searching, searchResults, showBusinessSelection, verifiedBusiness]);
27586
+ }, [activeForm.formId, country, handleBackClick, searching, searchResults, showBusinessSelection, verifiedBusiness]);
27581
27587
  const proceedToManualDataEntry = useCallback(async () => {
27582
27588
  await clearTrustedBusinessData().then(() => setShowCompanyStructure(true));
27583
27589
  }, [clearTrustedBusinessData]);
@@ -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,
@@ -38242,7 +38253,7 @@ const ConfigurationApiProvider = ({
38242
38253
  isEmbeddedDropin,
38243
38254
  loadingContext
38244
38255
  } = authContext;
38245
- const sdkVersion = "2.57.1";
38256
+ const sdkVersion = "2.57.3";
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.1",
38939
+ sdkVersion: "2.57.3",
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.1"]
38978
+ children: ["SDK version: ", "2.57.3"]
38968
38979
  }), jsxs("span", {
38969
38980
  children: ["rootLegalEntityId: ", rootLegalEntityId]
38970
38981
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.57.1",
3
+ "version": "2.57.3",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",