@adyen/kyc-components 2.68.0 → 2.69.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.
|
@@ -502,6 +502,7 @@ const defaultTrans = {
|
|
|
502
502
|
enterNDigitsAndThen1LetterForExample: "Enter %{numDigits} digits and then 1 letter. For example, %{example}",
|
|
503
503
|
enterNDigitsForExample: "Enter %{numDigits} digits. For example, %{example}",
|
|
504
504
|
enterNLettersAndThenXToYDigitsForExample: "Enter %{numLetters} letters and then %{minDigits} to %{maxDigits} digits. For example, %{example}",
|
|
505
|
+
enterNLetterPrefixOptionallyAndThenXToYDigitsForExample: "Enter %{minDigits} or %{maxDigits} digits, with or without a %{numChars}-letter prefix. For example, %{example1} or %{example2}",
|
|
505
506
|
enterNameExactlyAsAppearInID: "Enter your first name(s) exactly as it appears on your identity document",
|
|
506
507
|
enterSettlorsFirstNameExactlyAsItAppearsInID: "Enter the settlor's first name(s) exactly as it appears on their identity document",
|
|
507
508
|
enterSettlorsLastNameExactlyAsItAppearsInID: "Enter the settlor's last name(s) exactly as it appears on their identity document",
|
|
@@ -5757,7 +5758,10 @@ const businessRegistrationNumberMasks = {
|
|
|
5757
5758
|
},
|
|
5758
5759
|
[CountryCodes.UnitedKingdom]: {
|
|
5759
5760
|
default: { mask: makeMask(...alphanumericInputs(8)), transformOnType: uppercase },
|
|
5760
|
-
nonProfit: {
|
|
5761
|
+
nonProfit: {
|
|
5762
|
+
mask: makeMask(...alphaInputs(2, true), ...numericInputs(6), ...numericInputs(1, true)),
|
|
5763
|
+
transformOnType: uppercase
|
|
5764
|
+
}
|
|
5761
5765
|
},
|
|
5762
5766
|
[CountryCodes.UnitedStates]: {
|
|
5763
5767
|
[StateCodesUS.Alabama]: {
|
|
@@ -6475,7 +6479,10 @@ const businessRegistrationNumberPatterns = {
|
|
|
6475
6479
|
[CountryCodes.Spain]: { default: /^[a-zA-Z][a-zA-Z0-9]{8}$/ },
|
|
6476
6480
|
[CountryCodes.Sweden]: { default: /^\d{10}$/ },
|
|
6477
6481
|
[CountryCodes.Switzerland]: { default: /^CHE\d{9}$|^CH\d{11}$/ },
|
|
6478
|
-
[CountryCodes.UnitedKingdom]: {
|
|
6482
|
+
[CountryCodes.UnitedKingdom]: {
|
|
6483
|
+
default: /^[a-zA-Z0-9]{8}$/,
|
|
6484
|
+
nonProfit: /^(?:[A-Z]{2})?\d{6,7}$/
|
|
6485
|
+
},
|
|
6479
6486
|
[CountryCodes.UnitedStates]: {
|
|
6480
6487
|
[StateCodesUS.Alabama]: /^\d{9}$/,
|
|
6481
6488
|
[StateCodesUS.Alaska]: /^\d{8}$/,
|
|
@@ -7268,11 +7275,13 @@ const defaultFieldConfig$9 = {
|
|
|
7268
7275
|
businessRegistrationNumberPatterns[CountryCodes.UnitedKingdom].nonProfit
|
|
7269
7276
|
),
|
|
7270
7277
|
guidanceText: {
|
|
7271
|
-
key: "
|
|
7278
|
+
key: "enterNLetterPrefixOptionallyAndThenXToYDigitsForExample",
|
|
7272
7279
|
values: {
|
|
7273
7280
|
minDigits: "6",
|
|
7274
7281
|
maxDigits: "7",
|
|
7275
|
-
|
|
7282
|
+
numChars: "2",
|
|
7283
|
+
example1: "123456",
|
|
7284
|
+
example2: "SC0123456"
|
|
7276
7285
|
}
|
|
7277
7286
|
}
|
|
7278
7287
|
};
|
|
@@ -7858,6 +7867,12 @@ const companyRegistrationNumberOptions = {
|
|
|
7858
7867
|
applicableOnlyFor: [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE]
|
|
7859
7868
|
}
|
|
7860
7869
|
],
|
|
7870
|
+
[CountryCodes.UnitedKingdom]: [
|
|
7871
|
+
{
|
|
7872
|
+
id: "charity",
|
|
7873
|
+
name: "charityNumber"
|
|
7874
|
+
}
|
|
7875
|
+
],
|
|
7861
7876
|
[CountryCodes.NewZealand]: [
|
|
7862
7877
|
{
|
|
7863
7878
|
id: "NZBN",
|
|
@@ -29634,9 +29649,7 @@ const splitAtFirstOccurrence = (str, separator) => {
|
|
|
29634
29649
|
};
|
|
29635
29650
|
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => {
|
|
29636
29651
|
var _a;
|
|
29637
|
-
return (_a = entityAssociations.find(
|
|
29638
|
-
(association) => association.associatorId === trustMemberId && association.type === TrustMemberTypes.TRUSTEE
|
|
29639
|
-
)) == null ? void 0 : _a.legalEntityId;
|
|
29652
|
+
return (_a = entityAssociations.find((association) => association.associatorId === trustMemberId)) == null ? void 0 : _a.legalEntityId;
|
|
29640
29653
|
};
|
|
29641
29654
|
const getFallbackName = (exemptSettlorAssociation) => {
|
|
29642
29655
|
const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
|
|
@@ -39318,7 +39331,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
39318
39331
|
};
|
|
39319
39332
|
};
|
|
39320
39333
|
const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
|
|
39321
|
-
const sdkVersion = "2.
|
|
39334
|
+
const sdkVersion = "2.69.0";
|
|
39322
39335
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39323
39336
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39324
39337
|
useEffect(() => {
|
|
@@ -39660,7 +39673,7 @@ const ConfigurationApiProvider = ({
|
|
|
39660
39673
|
[authContext, rootLegalEntityId]
|
|
39661
39674
|
);
|
|
39662
39675
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
39663
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.
|
|
39676
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.69.0" }),
|
|
39664
39677
|
children
|
|
39665
39678
|
] });
|
|
39666
39679
|
};
|
|
@@ -40276,7 +40289,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40276
40289
|
};
|
|
40277
40290
|
const copyToClipboard = async () => {
|
|
40278
40291
|
const toCopy = {
|
|
40279
|
-
sdkVersion: "2.
|
|
40292
|
+
sdkVersion: "2.69.0",
|
|
40280
40293
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40281
40294
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40282
40295
|
};
|
|
@@ -40341,7 +40354,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40341
40354
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40342
40355
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40343
40356
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
40344
|
-
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.
|
|
40357
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.69.0" })
|
|
40345
40358
|
] }) }),
|
|
40346
40359
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40347
40360
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40486,7 +40499,7 @@ class UIElement extends BaseElement {
|
|
|
40486
40499
|
userEvents.updateBaseTrackingPayload({
|
|
40487
40500
|
...baseTracking,
|
|
40488
40501
|
componentName: this.props.componentName,
|
|
40489
|
-
sdkVersion: "2.
|
|
40502
|
+
sdkVersion: "2.69.0",
|
|
40490
40503
|
userAgent: navigator.userAgent
|
|
40491
40504
|
});
|
|
40492
40505
|
return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
|
|
@@ -47,6 +47,10 @@ export declare const companyRegistrationNumberOptions: {
|
|
|
47
47
|
readonly name: "rnaNumber";
|
|
48
48
|
readonly applicableOnlyFor: readonly [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE];
|
|
49
49
|
}];
|
|
50
|
+
readonly GB: readonly [{
|
|
51
|
+
readonly id: "charity";
|
|
52
|
+
readonly name: "charityNumber";
|
|
53
|
+
}];
|
|
50
54
|
readonly NZ: readonly [{
|
|
51
55
|
readonly id: "NZBN";
|
|
52
56
|
readonly name: "NZBN";
|