@adyen/kyc-components 2.70.3 → 2.71.0

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.
@@ -2,7 +2,7 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "94dd1630-f132-4b67-8f86-25ddbc46f42d", e._sentryDebugIdIdentifier = "sentry-dbid-94dd1630-f132-4b67-8f86-25ddbc46f42d");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e7b143de-f4b2-4929-889e-7a5cc637e476", e._sentryDebugIdIdentifier = "sentry-dbid-e7b143de-f4b2-4929-889e-7a5cc637e476");
6
6
  } catch (e) {
7
7
  }
8
8
  }
@@ -2990,14 +2990,10 @@ function getFieldProps(props, innerFormFields) {
2990
2990
  return null;
2991
2991
  }
2992
2992
  var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
2993
- ExperimentNames2["EnableNewBusinessDetailsFlow"] = "EnableNewBusinessDetailsFlow";
2994
- ExperimentNames2["EnableKompanySearchByRegistrationNumber"] = "EnableKompanySearchByRegistrationNumber";
2995
2993
  ExperimentNames2["EnableNewAddressComponent"] = "EnableNewAddressComponent";
2996
2994
  ExperimentNames2["AllowOrganizationSettlorWithExemptionReason"] = "AllowOrganizationSettlorWithExemptionReason";
2997
2995
  ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
2998
2996
  ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
2999
- ExperimentNames2["ShowSingPassButtonForCompanies"] = "ShowSingPassButtonForCompanies";
3000
- ExperimentNames2["ShowSingPassButtonForIndividuals"] = "ShowSingPassButtonForIndividuals";
3001
2997
  ExperimentNames2["ShowExtraTaxExemptionReasons"] = "ShowExtraTaxExemptionReasons";
3002
2998
  ExperimentNames2["EnableCountryOfGoverningLawForUKCompanies"] = "EnableCountryOfGoverningLawForUKCompanies";
3003
2999
  ExperimentNames2["HidePayoutAccountTask"] = "HidePayoutAccountTask";
@@ -7315,18 +7311,16 @@ const defaultFieldConfig$9 = {
7315
7311
  };
7316
7312
  }
7317
7313
  },
7318
- [CountryCodes.UnitedStates]: ({ state, isExperimentEnabled }) => ({
7314
+ [CountryCodes.UnitedStates]: ({ state }) => ({
7319
7315
  label: "registrationNumber__US",
7320
7316
  // eslint-disable-next-line no-nested-ternary
7321
- mask: (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableKompanySearchByRegistrationNumber")) ? state ? businessRegistrationNumberMasks[CountryCodes.UnitedStates][state] : businessRegistrationNumberMasks[CountryCodes.UnitedStates].default : void 0,
7317
+ mask: state ? businessRegistrationNumberMasks[CountryCodes.UnitedStates][state] : businessRegistrationNumberMasks[CountryCodes.UnitedStates].default,
7322
7318
  // eslint-disable-next-line no-nested-ternary
7323
- validators: (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableKompanySearchByRegistrationNumber")) ? state ? validatePatternOnBlur(
7324
- businessRegistrationNumberPatterns[CountryCodes.UnitedStates][state]
7325
- ) : validatePatternOnBlur(
7319
+ validators: state ? validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.UnitedStates][state]) : validatePatternOnBlur(
7326
7320
  businessRegistrationNumberPatterns[CountryCodes.UnitedStates].default
7327
- ) : validateNotEmptyOnBlur,
7321
+ ),
7328
7322
  // eslint-disable-next-line no-nested-ternary
7329
- guidanceText: (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableKompanySearchByRegistrationNumber")) ? state ? stateFormatGuidanceText[state] : stateFormatGuidanceText.default : void 0
7323
+ guidanceText: state ? stateFormatGuidanceText[state] : stateFormatGuidanceText.default
7330
7324
  })
7331
7325
  };
7332
7326
  const cachedStripPatterns = /* @__PURE__ */ new Map();
@@ -14446,7 +14440,7 @@ const rules$3 = ({
14446
14440
  },
14447
14441
  countryRequiresRegistrationNumberForCompanies: () => {
14448
14442
  var _a, _b;
14449
- if (isExperimentEnabled("EnableNewBusinessDetailsFlow") && isExperimentEnabled("EnableKompanySearchByRegistrationNumber") && country === "US") {
14443
+ if (country === "US") {
14450
14444
  return "OPTIONAL";
14451
14445
  }
14452
14446
  if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) {
@@ -23655,7 +23649,7 @@ const UNRELATED_DATA_MISSING_ERROR_CODES = [
23655
23649
  "2_8193"
23656
23650
  ];
23657
23651
  const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
23658
- function getCapabilityProblems(response, country, isExperimentEnabled) {
23652
+ function getCapabilityProblems(response, country) {
23659
23653
  const capabilities = (response == null ? void 0 : response.capabilities) || {};
23660
23654
  const capabilityProblems = {};
23661
23655
  Object.values(capabilities).forEach(({ problems }) => {
@@ -23665,12 +23659,7 @@ function getCapabilityProblems(response, country, isExperimentEnabled) {
23665
23659
  const { type: entityType, id: entityId } = problem.entity;
23666
23660
  capabilityProblems[entityType] = capabilityProblems[entityType] || {};
23667
23661
  capabilityProblems[entityType][entityId] = capabilityProblems[entityType][entityId] ?? getInitialProblemState(entityType, entityId, response);
23668
- setProblem(
23669
- problem,
23670
- capabilityProblems[entityType][entityId],
23671
- country,
23672
- isExperimentEnabled
23673
- );
23662
+ setProblem(problem, capabilityProblems[entityType][entityId], country);
23674
23663
  }
23675
23664
  });
23676
23665
  }
@@ -23683,19 +23672,19 @@ const overrideVerificationErrors = (verificationErrors, country) => verification
23683
23672
  }
23684
23673
  return verificationError;
23685
23674
  });
23686
- function setProblem(problem, entityProblems, country, isExperimentEnabled) {
23675
+ function setProblem(problem, entityProblems, country) {
23687
23676
  var _a;
23688
23677
  if ((_a = problem.verificationErrors) == null ? void 0 : _a.length) {
23689
23678
  overrideVerificationErrors(problem.verificationErrors, country).forEach((error) => {
23690
- setVerificationError(error, entityProblems, isExperimentEnabled);
23679
+ setVerificationError(error, entityProblems);
23691
23680
  });
23692
23681
  }
23693
23682
  }
23694
- function setVerificationError(error, entityProblems, isExperimentEnabled) {
23683
+ function setVerificationError(error, entityProblems) {
23695
23684
  switch (error.type) {
23696
23685
  case VerificationErrorType.INVALID_INPUT: {
23697
23686
  if (!isUnRelatedErrorCode(error)) {
23698
- setInvalidInputError(error, entityProblems, isExperimentEnabled);
23687
+ setInvalidInputError(error, entityProblems);
23699
23688
  }
23700
23689
  break;
23701
23690
  }
@@ -23735,7 +23724,7 @@ const getLinkedRemedidationFormFields = (acc, field) => {
23735
23724
  break;
23736
23725
  }
23737
23726
  };
23738
- function setInvalidInputError(parentVerificationError, entityProblems, isExperimentEnabled) {
23727
+ function setInvalidInputError(parentVerificationError, entityProblems) {
23739
23728
  var _a, _b;
23740
23729
  const processedSubErrors = (_a = parentVerificationError == null ? void 0 : parentVerificationError.subErrors) == null ? void 0 : _a.reduce(
23741
23730
  (acc, { code, remediatingActions }) => {
@@ -23744,9 +23733,7 @@ function setInvalidInputError(parentVerificationError, entityProblems, isExperim
23744
23733
  const remMapping = invalidInputRemediationActionMappings[remediatingAction.code];
23745
23734
  if (remMapping) {
23746
23735
  const { entityType } = entityProblems;
23747
- const mappedCompFields = remMapping.flatMap(
23748
- (context) => getComponentMappingFromLEFieldPath(context, entityType, isExperimentEnabled)
23749
- ).filter(Boolean);
23736
+ const mappedCompFields = remMapping.flatMap((context) => getComponentMappingFromLEFieldPath(context, entityType)).filter(Boolean);
23750
23737
  const formsAndFields = mappedCompFields == null ? void 0 : mappedCompFields.reduce(
23751
23738
  (acc3, fullFieldPath) => {
23752
23739
  const [form, field] = fullFieldPath.split(/\.(.+)/, 2);
@@ -23797,7 +23784,7 @@ function setInvalidInputError(parentVerificationError, entityProblems, isExperim
23797
23784
  });
23798
23785
  setPriorityStatus(entityProblems, TaskStatus.ERROR);
23799
23786
  }
23800
- const getComponentMappingFromLEFieldPath = (context, entityType, isExperimentEnabled) => {
23787
+ const getComponentMappingFromLEFieldPath = (context, entityType) => {
23801
23788
  if (!(context == null ? void 0 : context.key)) {
23802
23789
  return null;
23803
23790
  }
@@ -23808,7 +23795,7 @@ const getComponentMappingFromLEFieldPath = (context, entityType, isExperimentEna
23808
23795
  case LegalEntityType.INDIVIDUAL:
23809
23796
  return remediationIndividualApiKeyMapping[context.key];
23810
23797
  case LegalEntityType.ORGANIZATION:
23811
- return (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableNewBusinessDetailsFlow")) ? remediationBusinessDetailsApiKeyMapping[context.key] : remediationCompanyApiKeyMapping[context.key];
23798
+ return remediationBusinessDetailsApiKeyMapping[context.key];
23812
23799
  case EntityType.BANK_ACCOUNT:
23813
23800
  return remediationPayoutApiKeyMapping[context.key];
23814
23801
  case LegalEntityType.SOLE_PROPRIETORSHIP:
@@ -24912,12 +24899,12 @@ function getNestedPropertyKeys(obj, includeUndefined = false, includeFalsy = tru
24912
24899
  });
24913
24900
  return fieldNames;
24914
24901
  }
24915
- const convertApiFieldNameToSchemaFieldName = (apiField, legalEntityType, isExperimentEnabled) => {
24902
+ const convertApiFieldNameToSchemaFieldName = (apiField, legalEntityType) => {
24916
24903
  switch (legalEntityType) {
24917
24904
  case LegalEntityType.INDIVIDUAL:
24918
24905
  return individualApiKeyMapping[apiField];
24919
24906
  case LegalEntityType.ORGANIZATION:
24920
- return (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableNewBusinessDetailsFlow")) ? businessDetailsApiKeyMapping[apiField] : companyApiKeyMapping[apiField];
24907
+ return businessDetailsApiKeyMapping[apiField];
24921
24908
  case LegalEntityType.SOLE_PROPRIETORSHIP:
24922
24909
  return solePropApiKeyMapping[apiField];
24923
24910
  case LegalEntityType.TRUST:
@@ -24930,14 +24917,12 @@ const knownProblematicFields = [
24930
24917
  "personalDetails.typeOfIdentity",
24931
24918
  "personalDetails.issuerState"
24932
24919
  ];
24933
- const getFieldsWithExistingData = (legalEntity, isExperimentEnabled) => {
24920
+ const getFieldsWithExistingData = (legalEntity) => {
24934
24921
  var _a;
24935
24922
  const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
24936
24923
  const legalEntityType = legalEntity.type;
24937
24924
  if (!legalEntityType) return [];
24938
- const nonDocumentFields = apiFieldsWithExistingData.map(
24939
- (field) => convertApiFieldNameToSchemaFieldName(field, legalEntityType, isExperimentEnabled)
24940
- ).filter((field) => field !== void 0).filter((field) => !knownProblematicFields.includes(field));
24925
+ const nonDocumentFields = apiFieldsWithExistingData.map((field) => convertApiFieldNameToSchemaFieldName(field, legalEntityType)).filter((field) => field !== void 0).filter((field) => !knownProblematicFields.includes(field));
24941
24926
  if ((_a = legalEntity.documentDetails) == null ? void 0 : _a.length) {
24942
24927
  const documentFields = legalEntity.documentDetails.map((document2) => legalEntityDocumentToFieldMapping[legalEntityType][document2.type]).filter((field) => field !== void 0);
24943
24928
  return [...nonDocumentFields, ...documentFields];
@@ -26458,7 +26443,6 @@ function CompanyStructureComponent({
26458
26443
  });
26459
26444
  const formUtils = formUtilities({ labels: labels2, requiredFields }, i18n);
26460
26445
  useEffect(() => {
26461
- if (!isExperimentEnabled("EnableNewBusinessDetailsFlow")) return;
26462
26446
  if (!showCompanyStructure && !verifiedBusiness) {
26463
26447
  setValid("entityType", false);
26464
26448
  return setData("entityType", data == null ? void 0 : data.entityType);
@@ -28376,7 +28360,7 @@ function BusinessDetailsDropinComponent({
28376
28360
  }, []);
28377
28361
  const [loadingStatus, setLoadingStatus] = useState("success");
28378
28362
  const [currentProblems, setCurrentProblems] = useState(
28379
- problems ?? ((_c = (_b = getCapabilityProblems(legalEntityResponse, currentCountry, isExperimentEnabled)) == null ? void 0 : _b.LegalEntity) == null ? void 0 : _c[legalEntityResponse.id])
28363
+ problems ?? ((_c = (_b = getCapabilityProblems(legalEntityResponse, currentCountry)) == null ? void 0 : _b.LegalEntity) == null ? void 0 : _c[legalEntityResponse.id])
28380
28364
  );
28381
28365
  const [showCompanyStructure, setShowCompanyStructure] = useState(currentCountry !== "US");
28382
28366
  const [showBusinessSelection, setShowBusinessSelection] = useState(false);
@@ -28412,7 +28396,7 @@ function BusinessDetailsDropinComponent({
28412
28396
  initialForms,
28413
28397
  (currentProblems == null ? void 0 : currentProblems.remediationActions) ? Object.values(currentProblems == null ? void 0 : currentProblems.remediationActions) : [],
28414
28398
  (currentProblems == null ? void 0 : currentProblems.missingData) ?? [],
28415
- legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse, isExperimentEnabled) : [],
28399
+ legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [],
28416
28400
  customRules,
28417
28401
  {},
28418
28402
  {},
@@ -29391,14 +29375,14 @@ const singpassReducer = (state, action) => {
29391
29375
  return state;
29392
29376
  }
29393
29377
  };
29394
- const getApiMapping = (enableBusinessDetailsFlow, legalEntity) => {
29378
+ const getApiMapping = (legalEntity) => {
29395
29379
  if (!legalEntity) return;
29396
29380
  const { type } = legalEntity;
29397
29381
  if (type === LegalEntityType.INDIVIDUAL) {
29398
29382
  return individualComponentsKeyMapping;
29399
29383
  }
29400
29384
  if (type === LegalEntityType.ORGANIZATION) {
29401
- return enableBusinessDetailsFlow ? businessDetailsComponentsKeyMapping : companyComponentsKeyMapping;
29385
+ return businessDetailsComponentsKeyMapping;
29402
29386
  }
29403
29387
  };
29404
29388
  const getTrustedEntityAssociations = (legalEntityTrustedFields) => {
@@ -29424,11 +29408,7 @@ const useSingpassMyInfoLogin = ({
29424
29408
  singpassReducer,
29425
29409
  defaultSingpassState
29426
29410
  );
29427
- const { isExperimentEnabled } = useExperimentsContext();
29428
- const isSingpassForCompaniesEnabled = isExperimentEnabled("ShowSingPassButtonForCompanies");
29429
- const isSingpassForIndividualsEnabled = isExperimentEnabled("ShowSingPassButtonForIndividuals");
29430
- const enableBusinessDetailsFlow = isExperimentEnabled("EnableNewBusinessDetailsFlow");
29431
- const apiMapping = getApiMapping(enableBusinessDetailsFlow, legalEntity);
29411
+ const apiMapping = getApiMapping(legalEntity);
29432
29412
  const legalEntityTrustedFields = legalEntity == null ? void 0 : legalEntity.trustedFields;
29433
29413
  const isEligibleForSingpass = useMemo(() => {
29434
29414
  if (!legalEntity) {
@@ -29437,18 +29417,17 @@ const useSingpassMyInfoLogin = ({
29437
29417
  if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
29438
29418
  return false;
29439
29419
  }
29440
- if (!isSingpassForCompaniesEnabled && !isSingpassForIndividualsEnabled) return false;
29441
29420
  const isSingpassEnabled = Boolean(handleOpenSingpassAuthorizationLink);
29442
29421
  if (!isSingpassEnabled) return false;
29443
29422
  if (accountHolder) {
29444
- return accountHolder === "theCompanyIWorkFor" && isSingpassForCompaniesEnabled || accountHolder === "myName" && isSingpassForIndividualsEnabled;
29423
+ return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
29445
29424
  }
29446
29425
  const legalEntityType = legalEntity.type;
29447
29426
  const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
29448
29427
  const isVanillaOrganization = legalEntityType === LegalEntityType.ORGANIZATION && !isPartOfTrust;
29449
29428
  const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
29450
29429
  const isVanillaIndividual = legalEntityType === LegalEntityType.INDIVIDUAL && !hasSoleProprietor;
29451
- return isVanillaOrganization && isSingpassForCompaniesEnabled || isVanillaIndividual && isSingpassForIndividualsEnabled;
29430
+ return isVanillaOrganization || isVanillaIndividual;
29452
29431
  }, [legalEntity, accountHolder, handleOpenSingpassAuthorizationLink]);
29453
29432
  const singpassTrustedFields = useMemo(() => {
29454
29433
  var _a;
@@ -31808,7 +31787,7 @@ function TaskListComponent({
31808
31787
  onTransferInstrumentDelete,
31809
31788
  singpassComponent
31810
31789
  }) {
31811
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
31790
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
31812
31791
  const { accountHolder } = useCoreContext();
31813
31792
  const { i18n } = useI18nContext();
31814
31793
  const { isExperimentEnabled } = useExperimentsContext();
@@ -31828,7 +31807,7 @@ function TaskListComponent({
31828
31807
  const isCompany = tasks.some((task) => task === TaskTypes.COMPANY);
31829
31808
  const companyTaskType = useMemo(() => {
31830
31809
  if (isCompany) {
31831
- return isExperimentEnabled("EnableNewBusinessDetailsFlow") ? TaskTypes.BUSINESS_DETAILS : TaskTypes.COMPANY;
31810
+ return TaskTypes.BUSINESS_DETAILS;
31832
31811
  }
31833
31812
  }, [isCompany, isExperimentEnabled]);
31834
31813
  const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
@@ -31856,7 +31835,6 @@ function TaskListComponent({
31856
31835
  );
31857
31836
  const handleOnNavigateToTaskReview = () => onNavigateToTask(TaskTypes.REVIEW);
31858
31837
  const handleOnNavigateToTaskIndividual = () => onNavigateToTask(TaskTypes.INDIVIDUAL);
31859
- const handleOnNavigateToTaskCompany = () => onNavigateToTask(TaskTypes.COMPANY);
31860
31838
  const handleOnNavigateToTaskBusinessDetails = () => onNavigateToTask(TaskTypes.BUSINESS_DETAILS);
31861
31839
  const handleOnNavigateToTaskDecisionMaker = () => onNavigateToTask(TaskTypes.DECISION_MAKER_OVERVIEW);
31862
31840
  const handleOnNavigateToTaskTrust = () => onNavigateToTask(TaskTypes.TRUST);
@@ -31966,22 +31944,6 @@ function TaskListComponent({
31966
31944
  problems: getOwnSolePropProblems(legalEntityResponse, capabilityProblems)
31967
31945
  }
31968
31946
  ),
31969
- companyTaskType === TaskTypes.COMPANY && /* @__PURE__ */ jsx(
31970
- TaskListItem,
31971
- {
31972
- testId: TaskTypes.COMPANY,
31973
- onNavigateToTask: handleOnNavigateToTaskCompany,
31974
- icon: "company",
31975
- titleKey: hasTrust ? "companyTrusteeDetails" : "companyDetails",
31976
- status: getTaskStatus(
31977
- EntityType.LEGAL_ENTITY,
31978
- capabilityProblems,
31979
- legalEntityResponse,
31980
- [legalEntityResponse.id]
31981
- ),
31982
- problems: (_f = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _f[legalEntityResponse.id]
31983
- }
31984
- ),
31985
31947
  companyTaskType === TaskTypes.BUSINESS_DETAILS && /* @__PURE__ */ jsx(
31986
31948
  TaskListItem,
31987
31949
  {
@@ -31995,7 +31957,7 @@ function TaskListComponent({
31995
31957
  legalEntityResponse,
31996
31958
  [legalEntityResponse.id]
31997
31959
  ),
31998
- problems: (_g = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _g[legalEntityResponse.id]
31960
+ problems: (_f = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _f[legalEntityResponse.id]
31999
31961
  }
32000
31962
  ),
32001
31963
  tasks.includes(TaskTypes.DECISION_MAKER) && /* @__PURE__ */ jsx(
@@ -32090,10 +32052,10 @@ function TaskListComponent({
32090
32052
  EntityType.BANK_ACCOUNT,
32091
32053
  capabilityProblems,
32092
32054
  legalEntityResponse,
32093
- [(_i = (_h = legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) == null ? void 0 : _h[0]) == null ? void 0 : _i.id]
32055
+ [(_h = (_g = legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) == null ? void 0 : _g[0]) == null ? void 0 : _h.id]
32094
32056
  ) : TaskStatus.DETAILS_REQUIRED,
32095
32057
  disabled: !canAddPayoutAccount,
32096
- problems: (_l = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _l[(_k = (_j = legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) == null ? void 0 : _j[0]) == null ? void 0 : _k.id]
32058
+ problems: (_k = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _k[(_j = (_i = legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) == null ? void 0 : _i[0]) == null ? void 0 : _j.id]
32097
32059
  }
32098
32060
  )
32099
32061
  }
@@ -32131,7 +32093,7 @@ function TaskListComponent({
32131
32093
  icon: "review",
32132
32094
  titleKey: "submitReviewOfYourData",
32133
32095
  status: TaskStatus.SUBMIT,
32134
- problems: (_m = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _m[legalEntityResponse.id],
32096
+ problems: (_l = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _l[legalEntityResponse.id],
32135
32097
  showErrorAlerts: "always"
32136
32098
  }
32137
32099
  ) })
@@ -35928,7 +35890,7 @@ function DropinComposerComponent({
35928
35890
  const [serviceAgreementAcceptanceInfosWithNames, setServiceAgreementAcceptanceInfosWithNames] = useState([]);
35929
35891
  const [transferInstrument, setTransferInstrument] = useState(null);
35930
35892
  const [capabilityProblems, setCapabilityProblems] = useState(
35931
- getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry, isExperimentEnabled)
35893
+ getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry)
35932
35894
  );
35933
35895
  const { currentTask, previousTask, navigateTo, navigateBack } = useNavigation({
35934
35896
  legalEntity: legalEntityResponse,
@@ -36063,9 +36025,7 @@ function DropinComposerComponent({
36063
36025
  (legalEntity) => {
36064
36026
  if (!legalEntity) return;
36065
36027
  setRootLegalEntity(legalEntity);
36066
- setCapabilityProblems(
36067
- getCapabilityProblems(legalEntity, getLegalEntityCountry(legalEntity), isExperimentEnabled)
36068
- );
36028
+ setCapabilityProblems(getCapabilityProblems(legalEntity, getLegalEntityCountry(legalEntity)));
36069
36029
  },
36070
36030
  [isExperimentEnabled]
36071
36031
  );
@@ -39355,7 +39315,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
39355
39315
  };
39356
39316
  };
39357
39317
  const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
39358
- const sdkVersion = "2.70.3";
39318
+ const sdkVersion = "2.71.0";
39359
39319
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
39360
39320
  const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
39361
39321
  useEffect(() => {
@@ -39697,7 +39657,7 @@ const ConfigurationApiProvider = ({
39697
39657
  [authContext, rootLegalEntityId]
39698
39658
  );
39699
39659
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
39700
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.70.3" }),
39660
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.71.0" }),
39701
39661
  children
39702
39662
  ] });
39703
39663
  };
@@ -40313,7 +40273,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
40313
40273
  };
40314
40274
  const copyToClipboard = async () => {
40315
40275
  const toCopy = {
40316
- sdkVersion: "2.70.3",
40276
+ sdkVersion: "2.71.0",
40317
40277
  experiments: Object.fromEntries(allExperimentsWithValues),
40318
40278
  settings: Object.fromEntries(allSettingsWithValues)
40319
40279
  };
@@ -40378,7 +40338,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
40378
40338
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
40379
40339
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
40380
40340
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
40381
- /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.70.3" })
40341
+ /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.71.0" })
40382
40342
  ] }) }),
40383
40343
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
40384
40344
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
@@ -40523,7 +40483,7 @@ class UIElement extends BaseElement {
40523
40483
  userEvents.updateBaseTrackingPayload({
40524
40484
  ...baseTracking,
40525
40485
  componentName: this.props.componentName,
40526
- sdkVersion: "2.70.3",
40486
+ sdkVersion: "2.71.0",
40527
40487
  userAgent: navigator.userAgent
40528
40488
  });
40529
40489
  return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
@@ -4,14 +4,10 @@ import type { ComponentChildren } from 'preact';
4
4
  * This list is defined in the BE.
5
5
  */
6
6
  export declare enum ExperimentNames {
7
- EnableNewBusinessDetailsFlow = "EnableNewBusinessDetailsFlow",
8
- EnableKompanySearchByRegistrationNumber = "EnableKompanySearchByRegistrationNumber",
9
7
  EnableNewAddressComponent = "EnableNewAddressComponent",
10
8
  AllowOrganizationSettlorWithExemptionReason = "AllowOrganizationSettlorWithExemptionReason",
11
9
  AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee",
12
10
  ShowUnsupportedEntityType = "ShowUnsupportedEntityType",
13
- ShowSingPassButtonForCompanies = "ShowSingPassButtonForCompanies",
14
- ShowSingPassButtonForIndividuals = "ShowSingPassButtonForIndividuals",
15
11
  ShowExtraTaxExemptionReasons = "ShowExtraTaxExemptionReasons",
16
12
  EnableCountryOfGoverningLawForUKCompanies = "EnableCountryOfGoverningLawForUKCompanies",
17
13
  HidePayoutAccountTask = "HidePayoutAccountTask",
@@ -1,4 +1,3 @@
1
- import type { ExperimentName } from '../../core/Context/ExperimentContext/types';
2
1
  import type { CapabilityName } from '../../core/models/api/capability';
3
2
  import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
4
3
  import type { CountryCode } from '../../core/models/country-code';
@@ -52,6 +51,6 @@ import type { Remediation } from '../../core/models/errors/remediation';
52
51
  * ```
53
52
  *
54
53
  * */
55
- export declare function getCapabilityProblems(response: LegalEntity, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
54
+ export declare function getCapabilityProblems(response: LegalEntity, country: CountryCode): CapabilityProblems;
56
55
  export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
57
56
  export declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
@@ -3,8 +3,7 @@ import type { CompanySchema } from '../components/Company/types';
3
3
  import type { IndividualSchema } from '../components/Individual/types';
4
4
  import type { SolePropSchema } from '../components/SoleProp/types';
5
5
  import type { TrustSchema } from '../components/Trust/types';
6
- import type { ExperimentName } from '../core/Context/ExperimentContext/types';
7
6
  import type { ExistingLegalEntity } from '../core/models/api/legal-entity';
8
7
  import type { RecursiveKeyOf } from './getNestedPropertyKeys';
9
8
  export type AnyTLDSFieldName = RecursiveKeyOf<IndividualSchema> | RecursiveKeyOf<CompanySchema> | RecursiveKeyOf<BusinessDetailsSchema> | RecursiveKeyOf<SolePropSchema> | RecursiveKeyOf<TrustSchema>;
10
- export declare const getFieldsWithExistingData: (legalEntity: ExistingLegalEntity, isExperimentEnabled?: (key: ExperimentName) => boolean) => AnyTLDSFieldName[];
9
+ export declare const getFieldsWithExistingData: (legalEntity: ExistingLegalEntity) => AnyTLDSFieldName[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.70.3",
3
+ "version": "2.71.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",