@adyen/kyc-components 2.68.1 → 2.69.1
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",
|
|
@@ -1927,6 +1928,7 @@ const KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS = [
|
|
|
1927
1928
|
];
|
|
1928
1929
|
const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
1929
1930
|
StateCodesUS.California,
|
|
1931
|
+
StateCodesUS.Florida,
|
|
1930
1932
|
StateCodesUS.Texas
|
|
1931
1933
|
];
|
|
1932
1934
|
const logger$E = createLogger("useBusinessData");
|
|
@@ -5757,7 +5759,10 @@ const businessRegistrationNumberMasks = {
|
|
|
5757
5759
|
},
|
|
5758
5760
|
[CountryCodes.UnitedKingdom]: {
|
|
5759
5761
|
default: { mask: makeMask(...alphanumericInputs(8)), transformOnType: uppercase },
|
|
5760
|
-
nonProfit: {
|
|
5762
|
+
nonProfit: {
|
|
5763
|
+
mask: makeMask(...alphaInputs(2, true), ...numericInputs(6), ...numericInputs(1, true)),
|
|
5764
|
+
transformOnType: uppercase
|
|
5765
|
+
}
|
|
5761
5766
|
},
|
|
5762
5767
|
[CountryCodes.UnitedStates]: {
|
|
5763
5768
|
[StateCodesUS.Alabama]: {
|
|
@@ -6475,7 +6480,10 @@ const businessRegistrationNumberPatterns = {
|
|
|
6475
6480
|
[CountryCodes.Spain]: { default: /^[a-zA-Z][a-zA-Z0-9]{8}$/ },
|
|
6476
6481
|
[CountryCodes.Sweden]: { default: /^\d{10}$/ },
|
|
6477
6482
|
[CountryCodes.Switzerland]: { default: /^CHE\d{9}$|^CH\d{11}$/ },
|
|
6478
|
-
[CountryCodes.UnitedKingdom]: {
|
|
6483
|
+
[CountryCodes.UnitedKingdom]: {
|
|
6484
|
+
default: /^[a-zA-Z0-9]{8}$/,
|
|
6485
|
+
nonProfit: /^(?:[A-Z]{2})?\d{6,7}$/
|
|
6486
|
+
},
|
|
6479
6487
|
[CountryCodes.UnitedStates]: {
|
|
6480
6488
|
[StateCodesUS.Alabama]: /^\d{9}$/,
|
|
6481
6489
|
[StateCodesUS.Alaska]: /^\d{8}$/,
|
|
@@ -7268,11 +7276,13 @@ const defaultFieldConfig$9 = {
|
|
|
7268
7276
|
businessRegistrationNumberPatterns[CountryCodes.UnitedKingdom].nonProfit
|
|
7269
7277
|
),
|
|
7270
7278
|
guidanceText: {
|
|
7271
|
-
key: "
|
|
7279
|
+
key: "enterNLetterPrefixOptionallyAndThenXToYDigitsForExample",
|
|
7272
7280
|
values: {
|
|
7273
7281
|
minDigits: "6",
|
|
7274
7282
|
maxDigits: "7",
|
|
7275
|
-
|
|
7283
|
+
numChars: "2",
|
|
7284
|
+
example1: "123456",
|
|
7285
|
+
example2: "SC0123456"
|
|
7276
7286
|
}
|
|
7277
7287
|
}
|
|
7278
7288
|
};
|
|
@@ -7858,6 +7868,12 @@ const companyRegistrationNumberOptions = {
|
|
|
7858
7868
|
applicableOnlyFor: [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE]
|
|
7859
7869
|
}
|
|
7860
7870
|
],
|
|
7871
|
+
[CountryCodes.UnitedKingdom]: [
|
|
7872
|
+
{
|
|
7873
|
+
id: "charity",
|
|
7874
|
+
name: "charityNumber"
|
|
7875
|
+
}
|
|
7876
|
+
],
|
|
7861
7877
|
[CountryCodes.NewZealand]: [
|
|
7862
7878
|
{
|
|
7863
7879
|
id: "NZBN",
|
|
@@ -39316,7 +39332,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
39316
39332
|
};
|
|
39317
39333
|
};
|
|
39318
39334
|
const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
|
|
39319
|
-
const sdkVersion = "2.
|
|
39335
|
+
const sdkVersion = "2.69.1";
|
|
39320
39336
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39321
39337
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39322
39338
|
useEffect(() => {
|
|
@@ -39658,7 +39674,7 @@ const ConfigurationApiProvider = ({
|
|
|
39658
39674
|
[authContext, rootLegalEntityId]
|
|
39659
39675
|
);
|
|
39660
39676
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
39661
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.
|
|
39677
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.69.1" }),
|
|
39662
39678
|
children
|
|
39663
39679
|
] });
|
|
39664
39680
|
};
|
|
@@ -40274,7 +40290,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40274
40290
|
};
|
|
40275
40291
|
const copyToClipboard = async () => {
|
|
40276
40292
|
const toCopy = {
|
|
40277
|
-
sdkVersion: "2.
|
|
40293
|
+
sdkVersion: "2.69.1",
|
|
40278
40294
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40279
40295
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40280
40296
|
};
|
|
@@ -40339,7 +40355,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40339
40355
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40340
40356
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40341
40357
|
/* @__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.
|
|
40358
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.69.1" })
|
|
40343
40359
|
] }) }),
|
|
40344
40360
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40345
40361
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40484,7 +40500,7 @@ class UIElement extends BaseElement {
|
|
|
40484
40500
|
userEvents.updateBaseTrackingPayload({
|
|
40485
40501
|
...baseTracking,
|
|
40486
40502
|
componentName: this.props.componentName,
|
|
40487
|
-
sdkVersion: "2.
|
|
40503
|
+
sdkVersion: "2.69.1",
|
|
40488
40504
|
userAgent: navigator.userAgent
|
|
40489
40505
|
});
|
|
40490
40506
|
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";
|