@adyen/kyc-components 2.29.3 → 2.29.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.
@@ -6946,7 +6946,7 @@ const CountryIdNumberPatterns = {
6946
6946
  [CountryCodes.Italy]: /^[A-Z]{6}[0-9]{2}[ABCDEHLMPRST][0-9]{2}[A-Z][0-9]{3}[A-Z]$/,
6947
6947
  [CountryCodes.Poland]: /^\d{11}$/,
6948
6948
  [CountryCodes.Romania]: /^\d{13}$/,
6949
- [CountryCodes.Singapore]: /^[A-Z][0-9]{6}[A-Z]$/,
6949
+ [CountryCodes.Singapore]: /^[A-Z][0-9]{7}[A-Z]$/,
6950
6950
  [CountryCodes.Spain]: {
6951
6951
  dni: /(^[KL]?\d{8}[A-Z]$)/,
6952
6952
  nie: /(^[MXYZ]\d{7,8}[A-Z]$)/
@@ -15565,15 +15565,15 @@ const defaultFieldConfig$5 = {
15565
15565
  [CountryCodes.Singapore]: {
15566
15566
  label: "nric",
15567
15567
  mask: {
15568
- mask: makeMask(...alphaInputs(1), ...numericInputs(6), ...alphaInputs(1)),
15568
+ mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
15569
15569
  transformOnType: uppercase
15570
15570
  },
15571
15571
  validators: validatePatternOnBlur(CountryIdNumberPatterns[CountryCodes.Singapore]),
15572
15572
  guidanceText: {
15573
15573
  key: "enterNCharactersWithAMixForExample",
15574
15574
  values: {
15575
- numChars: "8",
15576
- example: "T123456J"
15575
+ numChars: "9",
15576
+ example: "T9123456J"
15577
15577
  }
15578
15578
  }
15579
15579
  },
@@ -15924,9 +15924,7 @@ function IdentityNumberComponent(props) {
15924
15924
  }
15925
15925
  }, [propErrors]);
15926
15926
  useEffect(() => {
15927
- if (data.idNumber || idNumberType) {
15928
- triggerValidation(["idNumber"]);
15929
- }
15927
+ triggerValidation(["idNumber"]);
15930
15928
  }, [country2, idNumberType]);
15931
15929
  useEffect(() => {
15932
15930
  const dataHasChanged = !objectsDeepEqual(data, formData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.29.3",
3
+ "version": "2.29.5",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [