# Changelog

## 3.0.0 - 2024-09-27

- Now requires Craft 5.3.0.
- Added support for keyword search.
- Added support for previewing fields in card views.
- Added support for inline editing in element indexes.
- Added support for querying fields by region and number.
- Added support for element query conditions.
- Added support for field condition rules.
- Added support for GraphQL mutations.
- Added the ability to control the preview format in element and card previews.
- Added support for field merging
- Improved styling
- Changed to default region setting field to use selectize.
- Added `\rynpsc\phonenumber\services\PhoneNumber::convertNumbersToLinks`.
- Removed `\rynpsc\phonenumber\field\PhoneNumberField::getRegionOptions`,
- Changed `\rynpsc\phonenumber\services\PhoneNumber::getAllSupportedRegions` to return a `Collection`.

## 2.2.0 - 2023-09-20

- Added Feed Me integration.

## 2.1.0 - 2022-07-04

- Added `craft.phoneNumber.getAllSupportedRegions` to output a list of countries and their respective calling codes.

## 2.0.1 - 2022-05-24

- Fixed issued when creating a new field ([#18](https://github.com/rynpsc/craft-phone-number/issues/18))

## 2.0.0 - 2022-05-04

### Added

- Added `formatForCountry` method
- Added `formatForMobileDialing` method
- Added `getCarrierName` method
- Added `getExtension` method
- Added `getTimeZones` method
- Added `carrierName` to GraphQl type
- Added `extension` to GraphQL type
- Added `formatForCountry` to GraphQL type
- Added `formatForMobileDialing` to GraphQL type
- Added `format` to GraphQL type
- Added `timezones` to GraphQL type
- Added support for `locale` and `region` arguments to `description` GraphQL field 

### Changed

- Now requires Craft 4.

## 1.5.0 - 2021-05-01

### Added

- Added tel as an alias for rfc3966 in the `format` method.
- Added ability to set the content of the links generated by the `getLink` method and `tel` filter.

## 1.4.4 - 2021-04-15

### Changed

- Now requires Craft 3.6.12 or later
- Updated focus styles to match Craft's new styles added in 3.6.12.

## 1.4.3 - 2021-03-12

### Fixed

- Fixed issue with field value normalization [#12](https://github.com/rynpsc/craft-phone-number/issues/12)

## 1.4.2 - 2021-01-27

### Fixed

- Fixed region button padding. 

## 1.4.1 - 2020-12-13

### Fixed

- Fixed GraphQL error when `devMode` is set to `false`.

## 1.4.0 - 2020-12-05

### Added

- Added GraphQL content type ([#10](https://github.com/rynpsc/craft-phone-number/pull/10)).

## 1.3.0 - 2020-01-20

### Changed

- Updated styles for Craft 3.4.

## 1.2.5 - 2019-10-15

### Fixed

- Fixed issue where `tel` filter returned incorrect `href` value in when running Craft 3.3..

## 1.2.4 - 2019-09-20

### Fixed

- Fix issue where `getLink()` returned incorrect `href` value in when running Craft 3.3..

## 1.2.3 - 2019-05-05

### Fixed

- Fixed error when converting from a plain text field ([#1](https://github.com/rynpsc/craft-phone-number/issues/1)).

## 1.2.2 - 2019-02-10

### Fixed

- Fixed incorrect string replacement with `tel` filter when dealing with multi-byte strings.

## 1.2.1 - 2019-01-04

### Fixed

- Fixed issue with tel filter when string is null.

## 1.2.0 - 2018-10-19

### Added

- Added `getType()` to `PhoneNumberModel`.
- Added `getDescription()` to `PhoneNumberModel`.

## 1.1.1 - 2018-09-24

### Fixed

- Fixed issue where classes were being incorrectly applied in IE11.

## 1.1.0 - 2018-09-10

### Added

- Added ability to pass in a country code to the `tel` filter to parse national numbers.

## 1.0.0 - 2018-09-05

- Initial release
