Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [4.0.0](v3.1.2...v4.0.0) (2023-10-22) ### Bug Fixes * allow type prefix if input is empty ([08e5811](08e5811)) * **CountrySelector:** add library prefix to country selector list-item id ([b45af25](b45af25)) * **CountrySelector:** fix country name overflow ([09e7097](09e7097)) * fix dynamic format mask with disableDialCodeAndPrefix ([5cb1e11](5cb1e11)) * **forceDialCode:** fix e164Phone value update when input is cleared ([0c353e0](0c353e0)) * **getCursorPosition:** reuse isNumeric utility function ([65d8618](65d8618)) * **getCursorPosition:** update cursor position logic, fix cursor jump on disabled dial code values ([5256439](5256439)) * guess initial country when dial code is disabled ([c79adc3](c79adc3)) * **handlePhoneChange:** return current country on partial dial code match ([dbbf20d](dbbf20d)) * **history:** ignore history events on empty input ([9c781c1](9c781c1)) * ignore input handling if user typed non digit character ([b175b4e](b175b4e)) * **PhoneInput:** make ref inherit inner input-ref ([819b48d](819b48d)) * **PhoneInput:** rename formattedValue to displayValue in onChange metadata arg ([3479ae5](3479ae5)) * **PhoneInput:** support ref forwarding ([f2d3de8](f2d3de8)) * rename displayValue to inputValue in onChange callback ([e78a13e](e78a13e)) * rename getCountryCurrentFormat to getCountryMaskFormat, add it to export ([fca84d4](fca84d4)) * rename getCountryMaskFormat helper function to getActiveFormattingMask ([aec5e9e](aec5e9e)) * return country object instead of iso2 code from usePhoneInput and onChange ([17c1365](17c1365)) * **usePhoneInput:** fix e164Phone value on setCountry ([cec0700](cec0700)) * **usePhoneInput:** log error if an invalid country code is passed to setNewCountry ([6098a99](6098a99)) * fix!: rename flag image component to FlagImage ([c4b0abd](c4b0abd)) * fix(usePhoneInput)!: rename return property names ([42e4ef2](42e4ef2)) * fix!: return E164 phone in onChange callback ([939275a](939275a)) * feat!: add support for multiple masks per country ([f758bb3](f758bb3)) ### Features * add disableFormatting prop ([e6ada39](e6ada39)) * add inputRef prop ([386f396](386f396)) * add state property to the forwarded ref ([e008c90](e008c90)) * **disableFormatting:** move disableFormatting prop to getCountryMaskFormat util function ([935d6ff](935d6ff)) * **PhoneInput:** add most used input props as top level props for easy integration ([7a29744](7a29744)) ### BREAKING CHANGES * FlagEmoji component is no longer exported, use FlagImage instead * "phone" is renamed to "inputValue", "e164Phone" is renamed to "phone" * phone value is unified to E164 format * the value of the country format can be of type object
- Loading branch information
923d792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-international-phone-storybook – ./
react-international-phone-storybook-goveo.vercel.app
react-international-phone-storybook-git-master-goveo.vercel.app
react-international-phone-storybook.vercel.app
923d792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-international-phone-docs – ./
react-international-phone-docs.vercel.app
react-international-phone-docs-goveo.vercel.app
react-international-phone.vercel.app
react-international-phone-docs-git-master-goveo.vercel.app