@adyen/kyc-components 2.71.4 → 2.71.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.
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  {
6
6
  try {
7
7
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
8
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ccb4fc6a-560a-4201-9825-eb8168a3d144", e._sentryDebugIdIdentifier = "sentry-dbid-ccb4fc6a-560a-4201-9825-eb8168a3d144");
8
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3506abe9-805d-4d00-909e-74efcc76cd29", e._sentryDebugIdIdentifier = "sentry-dbid-3506abe9-805d-4d00-909e-74efcc76cd29");
9
9
  } catch (e) {
10
10
  }
11
11
  }
@@ -1810,8 +1810,10 @@ var SettingNames = /* @__PURE__ */ ((SettingNames2) => {
1810
1810
  SettingNames2["HideOnboardingIntroductionOrganization"] = "hideOnboardingIntroductionOrganization";
1811
1811
  SettingNames2["HideOnboardingIntroductionTrust"] = "hideOnboardingIntroductionTrust";
1812
1812
  SettingNames2["HideOnboardingIntroductionSoleProprietor"] = "hideOnboardingIntroductionSoleProprietor";
1813
+ SettingNames2["HidePayoutAccountTask"] = "hidePayoutAccountTask";
1813
1814
  SettingNames2["TransferInstrumentLimit"] = "transferInstrumentLimit";
1814
1815
  SettingNames2["ViewOnboardingGuidance"] = "viewOnboardingGuidance";
1816
+ SettingNames2["ShowExtraTaxExemptionReasons"] = "showExtraTaxExemptionReasons";
1815
1817
  SettingNames2["ShowServiceAgreementsFirst"] = "showServiceAgreementsFirst";
1816
1818
  SettingNames2["EnforceLegalAge"] = "enforceLegalAge";
1817
1819
  return SettingNames2;
@@ -3025,9 +3027,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
3025
3027
  ExperimentNames2["AllowOrganizationSettlorWithExemptionReason"] = "AllowOrganizationSettlorWithExemptionReason";
3026
3028
  ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
3027
3029
  ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
3028
- ExperimentNames2["ShowExtraTaxExemptionReasons"] = "ShowExtraTaxExemptionReasons";
3029
3030
  ExperimentNames2["EnableCountryOfGoverningLawForUKCompanies"] = "EnableCountryOfGoverningLawForUKCompanies";
3030
- ExperimentNames2["HidePayoutAccountTask"] = "HidePayoutAccountTask";
3031
3031
  ExperimentNames2["HidePciTask"] = "HidePciTask";
3032
3032
  ExperimentNames2["EnableAgeVerification"] = "EnableAgeVerification";
3033
3033
  ExperimentNames2["PreserveMismatchedInitialValues"] = "PreserveMismatchedInitialValues";
@@ -10035,10 +10035,8 @@ function VatNumberField({
10035
10035
  setVatNumberType
10036
10036
  }) {
10037
10037
  var _a;
10038
- const { isExperimentEnabled } = useExperimentsContext();
10039
- const showExtraTaxExemptionReasons = isExperimentEnabled(
10040
- ExperimentNames.ShowExtraTaxExemptionReasons
10041
- );
10038
+ const { isSettingEnabled } = useSettingsContext();
10039
+ const showExtraTaxExemptionReasons = isSettingEnabled("showExtraTaxExemptionReasons");
10042
10040
  const extraVatAbsenceReasons = vatAbsenceReasons.map((reason) => ({
10043
10041
  id: reason,
10044
10042
  name: reason
@@ -27794,10 +27792,8 @@ const FormWrapper = ({
27794
27792
  const showLegalCaption = ["solePropDetails", "companyDetails", "businessDetails"].includes(
27795
27793
  taskName
27796
27794
  );
27797
- const { isExperimentEnabled } = useExperimentsContext();
27798
- const showExtraTaxExemptionReasons = isExperimentEnabled(
27799
- ExperimentNames.ShowExtraTaxExemptionReasons
27800
- );
27795
+ const { isSettingEnabled } = useSettingsContext();
27796
+ const showExtraTaxExemptionReasons = isSettingEnabled("showExtraTaxExemptionReasons");
27801
27797
  const showTaxExemptedLegalCaption = showExtraTaxExemptionReasons && ((_a = summaryData.companyRegistrationDetails) == null ? void 0 : _a.vatAbsenceReason) && ["companyDetails", "businessDetails"].includes(taskName);
27802
27798
  const handleTrackNavigation = useCallback(
27803
27799
  (props) => {
@@ -31830,9 +31826,7 @@ function TaskListComponent({
31830
31826
  }
31831
31827
  }, [isCompany, isExperimentEnabled]);
31832
31828
  const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
31833
- const hidePayoutAccountTaskExperiment = isExperimentEnabled(
31834
- ExperimentNames.HidePayoutAccountTask
31835
- );
31829
+ const hidePayoutAccountTaskSetting = isSettingEnabled("hidePayoutAccountTask");
31836
31830
  const hidePciTaskExperiment = isExperimentEnabled(ExperimentNames.HidePciTask);
31837
31831
  const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
31838
31832
  const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
@@ -32028,7 +32022,7 @@ function TaskListComponent({
32028
32022
  }
32029
32023
  )
32030
32024
  ] }),
32031
- (tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
32025
+ (tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskSetting && /* @__PURE__ */ jsx(
32032
32026
  TaskListGroup,
32033
32027
  {
32034
32028
  title: canChangeEntityType ? i18n.get("letUsKnowTheBankAccountToSendReceiveFunds") : i18n.get(
@@ -39320,7 +39314,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
39320
39314
  };
39321
39315
  };
39322
39316
  const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
39323
- const sdkVersion = "2.71.4";
39317
+ const sdkVersion = "2.71.5";
39324
39318
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
39325
39319
  const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
39326
39320
  useEffect(() => {
@@ -39662,7 +39656,7 @@ const ConfigurationApiProvider = ({
39662
39656
  [authContext, rootLegalEntityId]
39663
39657
  );
39664
39658
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
39665
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.71.4" }),
39659
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.71.5" }),
39666
39660
  children
39667
39661
  ] });
39668
39662
  };
@@ -39842,9 +39836,11 @@ const settingsDefaults = {
39842
39836
  hideOnboardingIntroductionOrganization: true,
39843
39837
  hideOnboardingIntroductionTrust: true,
39844
39838
  hideOnboardingIntroductionSoleProprietor: true,
39839
+ hidePayoutAccountTask: false,
39845
39840
  viewOnboardingGuidance: false,
39846
39841
  transferInstrumentLimit: 0,
39847
39842
  showServiceAgreementsFirst: false,
39843
+ showExtraTaxExemptionReasons: false,
39848
39844
  enforceLegalAge: false
39849
39845
  };
39850
39846
  function SettingsProvider({ children, settings }) {
@@ -40282,7 +40278,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
40282
40278
  };
40283
40279
  const copyToClipboard = async () => {
40284
40280
  const toCopy = {
40285
- sdkVersion: "2.71.4",
40281
+ sdkVersion: "2.71.5",
40286
40282
  experiments: Object.fromEntries(allExperimentsWithValues),
40287
40283
  settings: Object.fromEntries(allSettingsWithValues)
40288
40284
  };
@@ -40347,7 +40343,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
40347
40343
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
40348
40344
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
40349
40345
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
40350
- /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.71.4" })
40346
+ /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.71.5" })
40351
40347
  ] }) }),
40352
40348
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
40353
40349
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
@@ -40492,7 +40488,7 @@ class UIElement extends BaseElement {
40492
40488
  userEvents.updateBaseTrackingPayload({
40493
40489
  ...baseTracking,
40494
40490
  componentName: this.props.componentName,
40495
- sdkVersion: "2.71.4",
40491
+ sdkVersion: "2.71.5",
40496
40492
  userAgent: navigator.userAgent
40497
40493
  });
40498
40494
  return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
@@ -8,9 +8,7 @@ export declare enum ExperimentNames {
8
8
  AllowOrganizationSettlorWithExemptionReason = "AllowOrganizationSettlorWithExemptionReason",
9
9
  AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee",
10
10
  ShowUnsupportedEntityType = "ShowUnsupportedEntityType",
11
- ShowExtraTaxExemptionReasons = "ShowExtraTaxExemptionReasons",
12
11
  EnableCountryOfGoverningLawForUKCompanies = "EnableCountryOfGoverningLawForUKCompanies",
13
- HidePayoutAccountTask = "HidePayoutAccountTask",
14
12
  HidePciTask = "HidePciTask",
15
13
  EnableAgeVerification = "EnableAgeVerification",
16
14
  PreserveMismatchedInitialValues = "PreserveMismatchedInitialValues",
@@ -19,8 +19,10 @@ export declare enum SettingNames {
19
19
  HideOnboardingIntroductionOrganization = "hideOnboardingIntroductionOrganization",
20
20
  HideOnboardingIntroductionTrust = "hideOnboardingIntroductionTrust",
21
21
  HideOnboardingIntroductionSoleProprietor = "hideOnboardingIntroductionSoleProprietor",
22
+ HidePayoutAccountTask = "hidePayoutAccountTask",
22
23
  TransferInstrumentLimit = "transferInstrumentLimit",
23
24
  ViewOnboardingGuidance = "viewOnboardingGuidance",
25
+ ShowExtraTaxExemptionReasons = "showExtraTaxExemptionReasons",
24
26
  ShowServiceAgreementsFirst = "showServiceAgreementsFirst",
25
27
  EnforceLegalAge = "enforceLegalAge"
26
28
  }
@@ -40,8 +42,10 @@ export interface Settings {
40
42
  hideOnboardingIntroductionOrganization: boolean;
41
43
  hideOnboardingIntroductionTrust: boolean;
42
44
  hideOnboardingIntroductionSoleProprietor: boolean;
45
+ hidePayoutAccountTask: boolean;
43
46
  viewOnboardingGuidance: boolean;
44
47
  transferInstrumentLimit: number;
48
+ showExtraTaxExemptionReasons: boolean;
45
49
  showServiceAgreementsFirst: boolean;
46
50
  enforceLegalAge: boolean;
47
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.71.4",
3
+ "version": "2.71.5",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",