@adyen/kyc-components 3.41.2 → 3.41.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.
@@ -32582,8 +32582,6 @@ const getRegularTaskStatus = ({
32582
32582
  status: TaskStatus.PROCESSING,
32583
32583
  reason: "pendingCapabilities"
32584
32584
  };
32585
- if (hasInvalidCapabilities(rootLegalEntity))
32586
- return { status: TaskStatus.ERROR, reason: "invalidCapabilities" };
32587
32585
  if (hasAllCapabilitiesValid(rootLegalEntity))
32588
32586
  return {
32589
32587
  status: TaskStatus.FINISHED,
@@ -32616,9 +32614,6 @@ const hasAllCapabilitiesResolved = (legalEntityResponse) => Object.values((legal
32616
32614
  const hasRejectedCapabilities = (legalEntityResponse) => Object.values((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}).some(
32617
32615
  (capability) => capability.verificationStatus === VerificationStatus.REJECTED
32618
32616
  );
32619
- const hasInvalidCapabilities = (legalEntityResponse) => Object.values((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}).some(
32620
- (capability) => capability.verificationStatus === VerificationStatus.INVALID
32621
- );
32622
32617
  const hasAllCapabilitiesValid = (legalEntityResponse) => Object.values((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}).every(
32623
32618
  (capability) => capability.verificationStatus === VerificationStatus.VALID
32624
32619
  );
@@ -32698,7 +32693,7 @@ const calculateTaskStatus = ({
32698
32693
  const matchingAccount = transferInstruments.find((ti) => ti.id === id);
32699
32694
  if (!matchingAccount) throw new Error(`Could not find transfer instrument with id ${id}`);
32700
32695
  ignorePendingCapabilities = isInstantVerifiedAccount(matchingAccount);
32701
- relevantEntityIds = [id, rootLegalEntity.id];
32696
+ relevantEntityIds = [id];
32702
32697
  }
32703
32698
  }
32704
32699
  return getRegularTaskStatus({
@@ -32726,6 +32721,9 @@ const determineTaskIdentifiers = ({
32726
32721
  if (!rootLegalEntity || !capabilityProblems) return [];
32727
32722
  const taskTypes = receivedTaskTypes.map(mapReceivedTaskType);
32728
32723
  const tasks = [...taskTypes];
32724
+ if (taskTypes.includes(TaskTypes.COMPANY)) {
32725
+ tasks.push("BUSINESS_DETAILS");
32726
+ }
32729
32727
  if (taskTypes.includes(TaskTypes.PAYIN)) {
32730
32728
  transferInstruments.forEach((account) => tasks.push(`PAYIN-${account.id}`));
32731
32729
  }
@@ -43611,7 +43609,7 @@ const ConfigurationApiProvider = ({
43611
43609
  }) => {
43612
43610
  const authContext = useAuthContext();
43613
43611
  const { isEmbeddedDropin, loadingContext } = authContext;
43614
- const sdkVersion = "3.41.2";
43612
+ const sdkVersion = "3.41.4";
43615
43613
  useAnalytics({
43616
43614
  onUserEvent,
43617
43615
  legalEntityId: rootLegalEntityId,
@@ -44292,7 +44290,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44292
44290
  (settingName) => [settingName, getSetting(settingName)]
44293
44291
  );
44294
44292
  const debugModalMetaData = [
44295
- { key: "SDK version", value: "3.41.2", variant: "green" },
44293
+ { key: "SDK version", value: "3.41.4", variant: "green" },
44296
44294
  { key: "rootLegalEntityId", value: rootLegalEntityId, variant: "blue" },
44297
44295
  { key: "Locale", value: i18n.locale, variant: "blue" },
44298
44296
  { key: "Language", value: i18n.languageCode, variant: "blue" },
@@ -44324,7 +44322,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44324
44322
  };
44325
44323
  const copyToClipboard = async () => {
44326
44324
  const toCopy = {
44327
- sdkVersion: "3.41.2",
44325
+ sdkVersion: "3.41.4",
44328
44326
  experiments: Object.fromEntries(allExperimentsWithValues),
44329
44327
  settings: Object.fromEntries(allSettingsWithValues)
44330
44328
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.41.2",
3
+ "version": "3.41.4",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",