@adyen/kyc-components 2.57.0 → 2.57.2

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.
@@ -21048,9 +21048,6 @@ function PayoutVerificationMethod(props) {
21048
21048
  const {
21049
21049
  i18n
21050
21050
  } = useI18nContext();
21051
- const {
21052
- isEmbeddedDropin
21053
- } = useAuthContext();
21054
21051
  const instantVerificationError = useContext(InstantVerificationErrorContext);
21055
21052
  const {
21056
21053
  isSettingEnabled
@@ -21059,7 +21056,7 @@ function PayoutVerificationMethod(props) {
21059
21056
  isExperimentEnabled
21060
21057
  } = useExperimentsContext();
21061
21058
  const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
21062
- const enablePreferInstantVerificationMethodFlow = isEmbeddedDropin || isExperimentEnabled(ExperimentNames.EnablePreferInstantVerificationFlow);
21059
+ const enablePreferInstantVerificationMethodFlow = isExperimentEnabled(ExperimentNames.EnablePreferInstantVerificationFlow);
21063
21060
  const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout);
21064
21061
  const [hasSelectedMethod, setHasSelectedMethod] = useState(false);
21065
21062
  const {
@@ -27555,7 +27552,7 @@ function BusinessDetailsDropinComponent({
27555
27552
  }
27556
27553
  }, [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]);
27557
27554
  const backClick = useCallback(() => {
27558
- if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) return handleNextClick();
27555
+ if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) return handleBackClick == null ? void 0 : handleBackClick();
27559
27556
  switch (activeForm.formId) {
27560
27557
  case "basicInformation": {
27561
27558
  return showBusinessSelection ? setShowBusinessSelection(false) : void 0;
@@ -27580,7 +27577,7 @@ function BusinessDetailsDropinComponent({
27580
27577
  default:
27581
27578
  return handleBackClick == null ? void 0 : handleBackClick();
27582
27579
  }
27583
- }, [activeForm.formId, country, handleBackClick, handleNextClick, searching, searchResults, showBusinessSelection, verifiedBusiness]);
27580
+ }, [activeForm.formId, country, handleBackClick, searching, searchResults, showBusinessSelection, verifiedBusiness]);
27584
27581
  const proceedToManualDataEntry = useCallback(async () => {
27585
27582
  await clearTrustedBusinessData().then(() => setShowCompanyStructure(true));
27586
27583
  }, [clearTrustedBusinessData]);
@@ -32275,7 +32272,7 @@ function PayoutDetailsDropinComponent({
32275
32272
  navigateBackToTaskList == null ? void 0 : navigateBackToTaskList();
32276
32273
  }
32277
32274
  });
32278
- const hideFooter = (isExperimentEnabled("EnablePreferInstantVerificationFlow") || isEmbeddedDropin) && activeForm.formId === payoutSteps.payoutVerificationMethod.formId;
32275
+ const hideFooter = isExperimentEnabled("EnablePreferInstantVerificationFlow") && activeForm.formId === payoutSteps.payoutVerificationMethod.formId;
32279
32276
  const currentStep = useMemo(() => Object.values(forms).findIndex((step) => step.formId === activeForm.formId), [forms, activeForm.formId]);
32280
32277
  const totalSteps = useMemo(() => Object.keys(forms).length, [forms]);
32281
32278
  return jsx(FormWrapper, {
@@ -38245,7 +38242,7 @@ const ConfigurationApiProvider = ({
38245
38242
  isEmbeddedDropin,
38246
38243
  loadingContext
38247
38244
  } = authContext;
38248
- const sdkVersion = "2.57.0";
38245
+ const sdkVersion = "2.57.2";
38249
38246
  useAnalytics({
38250
38247
  onUserEvent,
38251
38248
  legalEntityId: rootLegalEntityId,
@@ -38928,7 +38925,7 @@ const DebugModal = ({
38928
38925
  };
38929
38926
  const copyToClipboard = async () => {
38930
38927
  const toCopy = {
38931
- sdkVersion: "2.57.0",
38928
+ sdkVersion: "2.57.2",
38932
38929
  experiments: Object.fromEntries(allExperimentsWithValues),
38933
38930
  settings: Object.fromEntries(allSettingsWithValues)
38934
38931
  };
@@ -38967,7 +38964,7 @@ const DebugModal = ({
38967
38964
  children: [jsxs("div", {
38968
38965
  className: "adyen-kyc-debug-modal__meta",
38969
38966
  children: [jsxs("span", {
38970
- children: ["SDK version: ", "2.57.0"]
38967
+ children: ["SDK version: ", "2.57.2"]
38971
38968
  }), jsxs("span", {
38972
38969
  children: ["rootLegalEntityId: ", rootLegalEntityId]
38973
38970
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.57.0",
3
+ "version": "2.57.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",