@adyen/kyc-components 3.11.2 → 3.11.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.
@@ -302,6 +302,7 @@ const pciDssQuestionnaire = "PCI DSS questionnaire";
302
302
  const serviceAgreementSignedSuccessfully = "Service agreement signed successfully";
303
303
  const serviceAgreementSignFailed = "Service agreement signing failed";
304
304
  const failedToGetServiceAgreementStatus = "Failed to get the service agreement status";
305
+ const failedToFetchAcceptedByName = "Failed to get the legal entity that accepted service agreement";
305
306
  const failedToGetServiceAgreement = "Failed to get the service agreement";
306
307
  const failedToGetServiceAgreementInSelectedLanguageFallbackToEn = "Failed to get the service agreement in the selected language. Falling back to English.";
307
308
  const iHaveReadAndIAcceptTheseTerms = "I have read and I accept these terms and confirm that I am a legal representative authorized to accept these terms on behalf of the company. I have taken notice of the privacy statement (www.adyen.com/policies-and-disclaimer/privacy-policy) and I consent to my (personal) data being used for the purposes described therein.";
@@ -1568,6 +1569,7 @@ const defaultTrans = {
1568
1569
  serviceAgreementSignedSuccessfully,
1569
1570
  serviceAgreementSignFailed,
1570
1571
  failedToGetServiceAgreementStatus,
1572
+ failedToFetchAcceptedByName,
1571
1573
  failedToGetServiceAgreement,
1572
1574
  failedToGetServiceAgreementInSelectedLanguageFallbackToEn,
1573
1575
  iHaveReadAndIAcceptTheseTerms,
@@ -32806,11 +32808,19 @@ function DropinComposerComponent({
32806
32808
  getPciTemplate2().catch(logger$b.error);
32807
32809
  }, [getPciTemplate2, tasks]);
32808
32810
  const addFetchedAcceptedByName = async (acceptanceInfo) => {
32809
- const acceptedByEntity = await (args == null ? void 0 : args.handleGetLegalEntity(acceptanceInfo.acceptedBy));
32810
- return {
32811
- ...acceptanceInfo,
32812
- acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
32813
- };
32811
+ try {
32812
+ const acceptedByEntity = await (args == null ? void 0 : args.handleGetLegalEntity(acceptanceInfo.acceptedBy));
32813
+ return {
32814
+ ...acceptanceInfo,
32815
+ acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
32816
+ };
32817
+ } catch (e) {
32818
+ logger$b.warn(i18n.get("failedToFetchAcceptedByName"));
32819
+ return {
32820
+ ...acceptanceInfo,
32821
+ acceptedByName: null
32822
+ };
32823
+ }
32814
32824
  };
32815
32825
  const getServiceAgreementAcceptanceInfos = async () => {
32816
32826
  if (rootLegalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
@@ -35474,7 +35484,7 @@ const ConfigurationApiProvider = ({
35474
35484
  isEmbeddedDropin,
35475
35485
  loadingContext
35476
35486
  } = authContext;
35477
- const sdkVersion = "3.11.2";
35487
+ const sdkVersion = "3.11.3";
35478
35488
  useAnalytics({
35479
35489
  onUserEvent,
35480
35490
  legalEntityId: rootLegalEntityId,
@@ -11,7 +11,7 @@ export interface ServiceAgreementAcceptanceInfo {
11
11
  type: ServiceAgreementType;
12
12
  }
13
13
  export interface ServiceAgreementAcceptanceInfoWithName extends ServiceAgreementAcceptanceInfo {
14
- acceptedByName: string;
14
+ acceptedByName?: string;
15
15
  }
16
16
  export interface ServiceAgreementSchema {
17
17
  signer?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.11.2",
3
+ "version": "3.11.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [