- ViraStack Mask
v2.2.0Minor
`fullName` preset for name fields
Name and card holder fields now accept only letters and single spaces.
What changed
fullNamepreset: Letters of any language and single spaces, starting with a letter, 70 characters at most. It setsautoComplete: "name".- Card holder name: Use
{ preset: "fullName", autoComplete: "cc-name" }. - Hyphen and apostrophe: They are not accepted by default. To allow them, spread
presets.fullName.optionsintodefinePresetwith your ownntoken. - Negative
maxfix: Withsigned: trueandmax: -5, typing-10gave-50. A negativemaxnow applies on blur, andparseMaskedreturnsnumber.maxfor-3instead of changing it to-5. Amaxof zero or above works as before. - Turkish phone fix: Pasting
0905551234567into{ preset: "phone", country: "TR" }showed(905) 551 23 45, and the value did not match the display. It now gives(555) 123 45 67.
Why
Mask 2.0 removed the alpha preset, so every name field needed its own pattern. The card form in the Start checkout-card module needed this first.