@adyen/kyc-components 3.3.3 → 3.3.5
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.
|
@@ -6995,7 +6995,7 @@ const CountryIdNumberPatterns = {
|
|
|
6995
6995
|
[CountryCodes.Italy]: /^[A-Z]{6}[0-9]{2}[ABCDEHLMPRST][0-9]{2}[A-Z][0-9]{3}[A-Z]$/,
|
|
6996
6996
|
[CountryCodes.Poland]: /^\d{11}$/,
|
|
6997
6997
|
[CountryCodes.Romania]: /^\d{13}$/,
|
|
6998
|
-
[CountryCodes.Singapore]: /^[A-Z][0-9]{
|
|
6998
|
+
[CountryCodes.Singapore]: /^[A-Z][0-9]{7}[A-Z]$/,
|
|
6999
6999
|
[CountryCodes.Spain]: {
|
|
7000
7000
|
dni: /(^[KL]?\d{8}[A-Z]$)/,
|
|
7001
7001
|
nie: /(^[MXYZ]\d{7,8}[A-Z]$)/
|
|
@@ -15712,15 +15712,15 @@ const defaultFieldConfig$5 = {
|
|
|
15712
15712
|
[CountryCodes.Singapore]: {
|
|
15713
15713
|
label: "nric",
|
|
15714
15714
|
mask: {
|
|
15715
|
-
mask: makeMask(...alphaInputs(1), ...numericInputs(
|
|
15715
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
|
|
15716
15716
|
transformOnType: uppercase
|
|
15717
15717
|
},
|
|
15718
15718
|
validators: validatePatternOnBlur(CountryIdNumberPatterns[CountryCodes.Singapore]),
|
|
15719
15719
|
guidanceText: {
|
|
15720
15720
|
key: "enterNCharactersWithAMixForExample",
|
|
15721
15721
|
values: {
|
|
15722
|
-
numChars: "
|
|
15723
|
-
example: "
|
|
15722
|
+
numChars: "9",
|
|
15723
|
+
example: "T9123456J"
|
|
15724
15724
|
}
|
|
15725
15725
|
}
|
|
15726
15726
|
},
|
|
@@ -16071,9 +16071,7 @@ function IdentityNumberComponent(props) {
|
|
|
16071
16071
|
}
|
|
16072
16072
|
}, [propErrors]);
|
|
16073
16073
|
useEffect(() => {
|
|
16074
|
-
|
|
16075
|
-
triggerValidation(["idNumber"]);
|
|
16076
|
-
}
|
|
16074
|
+
triggerValidation(["idNumber"]);
|
|
16077
16075
|
}, [country2, idNumberType]);
|
|
16078
16076
|
useEffect(() => {
|
|
16079
16077
|
const dataHasChanged = !objectsDeepEqual(data, formData);
|