@intl-tel-input/react 29.0.5 → 29.1.0

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.
@@ -3490,7 +3490,8 @@ var processAllCountries = (options) => {
3490
3490
  return [...data_default];
3491
3491
  };
3492
3492
  var generateCountryNames = (countries, options) => {
3493
- const { countryNameLocale, countryNameOverrides } = options;
3493
+ const { countryNameLocale, countryNameOverrides, uiTranslations } = options;
3494
+ const bundledCountryNames = uiTranslations?.countryNames;
3494
3495
  let displayNames;
3495
3496
  try {
3496
3497
  const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
@@ -3506,7 +3507,7 @@ var generateCountryNames = (countries, options) => {
3506
3507
  displayNames = null;
3507
3508
  }
3508
3509
  for (const c of countries) {
3509
- c.name = countryNameOverrides[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
3510
+ c.name = countryNameOverrides[c.iso2] || bundledCountryNames?.[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
3510
3511
  }
3511
3512
  };
3512
3513
  var processDialCodes = (countries) => {
@@ -4828,7 +4829,7 @@ var intlTelInput = Object.assign(
4828
4829
  attachUtils,
4829
4830
  startedLoadingUtils: false,
4830
4831
  startedLoadingAutoCountry: false,
4831
- version: "29.0.5",
4832
+ version: "29.1.0",
4832
4833
  NUMBER_FORMAT,
4833
4834
  NUMBER_TYPE,
4834
4835
  VALIDATION_ERROR,
@@ -3490,7 +3490,8 @@ var processAllCountries = (options) => {
3490
3490
  return [...data_default];
3491
3491
  };
3492
3492
  var generateCountryNames = (countries, options) => {
3493
- const { countryNameLocale, countryNameOverrides } = options;
3493
+ const { countryNameLocale, countryNameOverrides, uiTranslations } = options;
3494
+ const bundledCountryNames = uiTranslations?.countryNames;
3494
3495
  let displayNames;
3495
3496
  try {
3496
3497
  const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
@@ -3506,7 +3507,7 @@ var generateCountryNames = (countries, options) => {
3506
3507
  displayNames = null;
3507
3508
  }
3508
3509
  for (const c of countries) {
3509
- c.name = countryNameOverrides[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
3510
+ c.name = countryNameOverrides[c.iso2] || bundledCountryNames?.[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
3510
3511
  }
3511
3512
  };
3512
3513
  var processDialCodes = (countries) => {
@@ -4828,7 +4829,7 @@ var intlTelInput = Object.assign(
4828
4829
  attachUtils,
4829
4830
  startedLoadingUtils: false,
4830
4831
  startedLoadingAutoCountry: false,
4831
- version: "29.0.5",
4832
+ version: "29.1.0",
4832
4833
  NUMBER_FORMAT,
4833
4834
  NUMBER_TYPE,
4834
4835
  VALIDATION_ERROR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intl-tel-input/react",
3
- "version": "29.0.5",
3
+ "version": "29.1.0",
4
4
  "description": "A React component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "intl-tel-input": "^29.0.5"
37
+ "intl-tel-input": "^29.1.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=18",