@adyen/kyc-components 2.68.1 → 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",
|
|
@@ -39316,7 +39331,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
39316
39331
|
};
|
|
39317
39332
|
};
|
|
39318
39333
|
const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
|
|
39319
|
-
const sdkVersion = "2.
|
|
39334
|
+
const sdkVersion = "2.69.0";
|
|
39320
39335
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39321
39336
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39322
39337
|
useEffect(() => {
|
|
@@ -39658,7 +39673,7 @@ const ConfigurationApiProvider = ({
|
|
|
39658
39673
|
[authContext, rootLegalEntityId]
|
|
39659
39674
|
);
|
|
39660
39675
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
39661
|
-
/* @__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" }),
|
|
39662
39677
|
children
|
|
39663
39678
|
] });
|
|
39664
39679
|
};
|
|
@@ -40274,7 +40289,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40274
40289
|
};
|
|
40275
40290
|
const copyToClipboard = async () => {
|
|
40276
40291
|
const toCopy = {
|
|
40277
|
-
sdkVersion: "2.
|
|
40292
|
+
sdkVersion: "2.69.0",
|
|
40278
40293
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40279
40294
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40280
40295
|
};
|
|
@@ -40339,7 +40354,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40339
40354
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40340
40355
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40341
40356
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
40342
|
-
/* @__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" })
|
|
40343
40358
|
] }) }),
|
|
40344
40359
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40345
40360
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40484,7 +40499,7 @@ class UIElement extends BaseElement {
|
|
|
40484
40499
|
userEvents.updateBaseTrackingPayload({
|
|
40485
40500
|
...baseTracking,
|
|
40486
40501
|
componentName: this.props.componentName,
|
|
40487
|
-
sdkVersion: "2.
|
|
40502
|
+
sdkVersion: "2.69.0",
|
|
40488
40503
|
userAgent: navigator.userAgent
|
|
40489
40504
|
});
|
|
40490
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";
|