BREAKING CHANGES
- Re-org to packages (c5e67e23)
intl-tel-input/react→@intl-tel-input/reactintl-tel-input/reactWithUtils→@intl-tel-input/react/with-utilsintl-tel-input/vue→@intl-tel-input/vueintl-tel-input/vueWithUtils→@intl-tel-input/vue/with-utilsintl-tel-input/angular→@intl-tel-input/angularintl-tel-input/angularWithUtils→@intl-tel-input/angular/with-utilsintl-tel-input/svelte→@intl-tel-input/svelteintl-tel-input/svelteWithUtils→@intl-tel-input/svelte/with-utils- Vanilla
intl-tel-inputimport unchanged.
- Replace integer enums with string names in public API (08b41377)
getNumber(format),getNumberType(), andgetValidationError()now use libphonenumber-style names (e.g."E164","MOBILE","TOO_SHORT") instead of integers;-99sentinels are nownull.
- getSelectedCountryData now returns the full Country object instead of just a partial (36be0e28)
- Returns the full
Countryobject (incl.priority,areaCodes, etc.) rather than a curated subset.
- Returns the full
- New option: countryNameOverrides (d3f0b9b4)
- Customise specific country display names without forking the locale data.
- Update geoIpLookup to work with promise instead (d72514b7)
geoIpLookupnow expects a function returning aPromise<iso2>instead of a(success, failure) => ...callback.
- Move from data-country-code on list items to data-iso2 (49b435ec)
- Country list
<li>items now usedata-iso2instead ofdata-country-code— update any custom selectors.
- Country list
- Enable separateDialCode, strictMode and strictRejectAnimation by default (4ecba221)
- New defaults:
separateDialCode: true,strictMode: true,strictRejectAnimation: true. Passfalseto opt out.
- New defaults: