intl-tel-input 23.1.1 → 23.1.2
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.
- package/README.md +7 -7
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +2 -49
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +3 -50
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +3 -3
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +1 -48
- package/react/build/IntlTelInput.d.ts +0 -1
- package/react/build/IntlTelInput.js +1 -48
- package/react/build/IntlTelInputWithUtils.cjs +2 -49
- package/react/build/IntlTelInputWithUtils.js +2 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-tel-input",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.2",
|
|
4
4
|
"description": "A JavaScript plugin for entering and validating international telephone numbers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"international",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
31
31
|
"@typescript-eslint/parser": "^7.6.0",
|
|
32
32
|
"cspell": "^8.6.1",
|
|
33
|
-
"esbuild": "^0.
|
|
33
|
+
"esbuild": "^0.23.0",
|
|
34
34
|
"eslint": "^8.57.0",
|
|
35
35
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
36
36
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"region-flags": "https://github.com/fonttools/region-flags/archive/refs/tags/1.2.1.tar.gz",
|
|
67
67
|
"sass": "^1.74.1",
|
|
68
68
|
"time-grunt": "^2.0.0",
|
|
69
|
-
"typescript": "^5.
|
|
69
|
+
"typescript": "^5.5.3"
|
|
70
70
|
},
|
|
71
71
|
"files": [
|
|
72
72
|
"build/*",
|
package/react/README.md
CHANGED
|
@@ -29,7 +29,7 @@ import "intl-tel-input/styles";
|
|
|
29
29
|
|
|
30
30
|
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/ValidationApp.tsx) for a more fleshed out example of how to handle validation.
|
|
31
31
|
|
|
32
|
-
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"` instead, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@23.1.
|
|
32
|
+
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"` instead, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@23.1.2/build/js/utils.js"`.
|
|
33
33
|
|
|
34
34
|
## Props
|
|
35
35
|
Here's a list of all of the current props you can pass to the IntlTelInput react component.
|
|
@@ -1504,53 +1504,6 @@ var forEachInstance = (method) => {
|
|
|
1504
1504
|
Object.values(instances).forEach((instance) => instance[method]());
|
|
1505
1505
|
};
|
|
1506
1506
|
var Iti = class {
|
|
1507
|
-
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1508
|
-
id;
|
|
1509
|
-
//* NOT Private
|
|
1510
|
-
promise;
|
|
1511
|
-
//* Private
|
|
1512
|
-
telInput;
|
|
1513
|
-
highlightedItem;
|
|
1514
|
-
options;
|
|
1515
|
-
hadInitialPlaceholder;
|
|
1516
|
-
isRTL;
|
|
1517
|
-
isAndroid;
|
|
1518
|
-
selectedCountryData;
|
|
1519
|
-
countries;
|
|
1520
|
-
dialCodeMaxLen;
|
|
1521
|
-
dialCodeToIso2Map;
|
|
1522
|
-
dialCodes;
|
|
1523
|
-
countryContainer;
|
|
1524
|
-
selectedCountry;
|
|
1525
|
-
selectedCountryInner;
|
|
1526
|
-
selectedCountryA11yText;
|
|
1527
|
-
selectedDialCode;
|
|
1528
|
-
dropdownArrow;
|
|
1529
|
-
dropdownContent;
|
|
1530
|
-
searchInput;
|
|
1531
|
-
searchResultsA11yText;
|
|
1532
|
-
countryList;
|
|
1533
|
-
dropdown;
|
|
1534
|
-
hiddenInput;
|
|
1535
|
-
hiddenInputCountry;
|
|
1536
|
-
maxCoreNumberLength;
|
|
1537
|
-
defaultCountry;
|
|
1538
|
-
_handleHiddenInputSubmit;
|
|
1539
|
-
_handleLabelClick;
|
|
1540
|
-
_handleClickSelectedCountry;
|
|
1541
|
-
_handleCountryContainerKeydown;
|
|
1542
|
-
_handleInputEvent;
|
|
1543
|
-
_handleKeydownEvent;
|
|
1544
|
-
_handleWindowScroll;
|
|
1545
|
-
_handleMouseoverCountryList;
|
|
1546
|
-
_handleClickCountryList;
|
|
1547
|
-
_handleClickOffToClose;
|
|
1548
|
-
_handleKeydownOnDropdown;
|
|
1549
|
-
_handleSearchChange;
|
|
1550
|
-
resolveAutoCountryPromise;
|
|
1551
|
-
rejectAutoCountryPromise;
|
|
1552
|
-
resolveUtilsScriptPromise;
|
|
1553
|
-
rejectUtilsScriptPromise;
|
|
1554
1507
|
constructor(input, customOptions = {}) {
|
|
1555
1508
|
this.id = id++;
|
|
1556
1509
|
this.telInput = input;
|
|
@@ -2799,7 +2752,7 @@ var intlTelInput = Object.assign(
|
|
|
2799
2752
|
//* A map from instance ID to instance object.
|
|
2800
2753
|
instances: {},
|
|
2801
2754
|
loadUtils,
|
|
2802
|
-
version: "23.1.
|
|
2755
|
+
version: "23.1.2"
|
|
2803
2756
|
}
|
|
2804
2757
|
);
|
|
2805
2758
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1468,53 +1468,6 @@ var forEachInstance = (method) => {
|
|
|
1468
1468
|
Object.values(instances).forEach((instance) => instance[method]());
|
|
1469
1469
|
};
|
|
1470
1470
|
var Iti = class {
|
|
1471
|
-
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1472
|
-
id;
|
|
1473
|
-
//* NOT Private
|
|
1474
|
-
promise;
|
|
1475
|
-
//* Private
|
|
1476
|
-
telInput;
|
|
1477
|
-
highlightedItem;
|
|
1478
|
-
options;
|
|
1479
|
-
hadInitialPlaceholder;
|
|
1480
|
-
isRTL;
|
|
1481
|
-
isAndroid;
|
|
1482
|
-
selectedCountryData;
|
|
1483
|
-
countries;
|
|
1484
|
-
dialCodeMaxLen;
|
|
1485
|
-
dialCodeToIso2Map;
|
|
1486
|
-
dialCodes;
|
|
1487
|
-
countryContainer;
|
|
1488
|
-
selectedCountry;
|
|
1489
|
-
selectedCountryInner;
|
|
1490
|
-
selectedCountryA11yText;
|
|
1491
|
-
selectedDialCode;
|
|
1492
|
-
dropdownArrow;
|
|
1493
|
-
dropdownContent;
|
|
1494
|
-
searchInput;
|
|
1495
|
-
searchResultsA11yText;
|
|
1496
|
-
countryList;
|
|
1497
|
-
dropdown;
|
|
1498
|
-
hiddenInput;
|
|
1499
|
-
hiddenInputCountry;
|
|
1500
|
-
maxCoreNumberLength;
|
|
1501
|
-
defaultCountry;
|
|
1502
|
-
_handleHiddenInputSubmit;
|
|
1503
|
-
_handleLabelClick;
|
|
1504
|
-
_handleClickSelectedCountry;
|
|
1505
|
-
_handleCountryContainerKeydown;
|
|
1506
|
-
_handleInputEvent;
|
|
1507
|
-
_handleKeydownEvent;
|
|
1508
|
-
_handleWindowScroll;
|
|
1509
|
-
_handleMouseoverCountryList;
|
|
1510
|
-
_handleClickCountryList;
|
|
1511
|
-
_handleClickOffToClose;
|
|
1512
|
-
_handleKeydownOnDropdown;
|
|
1513
|
-
_handleSearchChange;
|
|
1514
|
-
resolveAutoCountryPromise;
|
|
1515
|
-
rejectAutoCountryPromise;
|
|
1516
|
-
resolveUtilsScriptPromise;
|
|
1517
|
-
rejectUtilsScriptPromise;
|
|
1518
1471
|
constructor(input, customOptions = {}) {
|
|
1519
1472
|
this.id = id++;
|
|
1520
1473
|
this.telInput = input;
|
|
@@ -2763,7 +2716,7 @@ var intlTelInput = Object.assign(
|
|
|
2763
2716
|
//* A map from instance ID to instance object.
|
|
2764
2717
|
instances: {},
|
|
2765
2718
|
loadUtils,
|
|
2766
|
-
version: "23.1.
|
|
2719
|
+
version: "23.1.2"
|
|
2767
2720
|
}
|
|
2768
2721
|
);
|
|
2769
2722
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1504,53 +1504,6 @@ var forEachInstance = (method) => {
|
|
|
1504
1504
|
Object.values(instances).forEach((instance) => instance[method]());
|
|
1505
1505
|
};
|
|
1506
1506
|
var Iti = class {
|
|
1507
|
-
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1508
|
-
id;
|
|
1509
|
-
//* NOT Private
|
|
1510
|
-
promise;
|
|
1511
|
-
//* Private
|
|
1512
|
-
telInput;
|
|
1513
|
-
highlightedItem;
|
|
1514
|
-
options;
|
|
1515
|
-
hadInitialPlaceholder;
|
|
1516
|
-
isRTL;
|
|
1517
|
-
isAndroid;
|
|
1518
|
-
selectedCountryData;
|
|
1519
|
-
countries;
|
|
1520
|
-
dialCodeMaxLen;
|
|
1521
|
-
dialCodeToIso2Map;
|
|
1522
|
-
dialCodes;
|
|
1523
|
-
countryContainer;
|
|
1524
|
-
selectedCountry;
|
|
1525
|
-
selectedCountryInner;
|
|
1526
|
-
selectedCountryA11yText;
|
|
1527
|
-
selectedDialCode;
|
|
1528
|
-
dropdownArrow;
|
|
1529
|
-
dropdownContent;
|
|
1530
|
-
searchInput;
|
|
1531
|
-
searchResultsA11yText;
|
|
1532
|
-
countryList;
|
|
1533
|
-
dropdown;
|
|
1534
|
-
hiddenInput;
|
|
1535
|
-
hiddenInputCountry;
|
|
1536
|
-
maxCoreNumberLength;
|
|
1537
|
-
defaultCountry;
|
|
1538
|
-
_handleHiddenInputSubmit;
|
|
1539
|
-
_handleLabelClick;
|
|
1540
|
-
_handleClickSelectedCountry;
|
|
1541
|
-
_handleCountryContainerKeydown;
|
|
1542
|
-
_handleInputEvent;
|
|
1543
|
-
_handleKeydownEvent;
|
|
1544
|
-
_handleWindowScroll;
|
|
1545
|
-
_handleMouseoverCountryList;
|
|
1546
|
-
_handleClickCountryList;
|
|
1547
|
-
_handleClickOffToClose;
|
|
1548
|
-
_handleKeydownOnDropdown;
|
|
1549
|
-
_handleSearchChange;
|
|
1550
|
-
resolveAutoCountryPromise;
|
|
1551
|
-
rejectAutoCountryPromise;
|
|
1552
|
-
resolveUtilsScriptPromise;
|
|
1553
|
-
rejectUtilsScriptPromise;
|
|
1554
1507
|
constructor(input, customOptions = {}) {
|
|
1555
1508
|
this.id = id++;
|
|
1556
1509
|
this.telInput = input;
|
|
@@ -2762,7 +2715,7 @@ var loadUtils = (path) => {
|
|
|
2762
2715
|
if (!intlTelInput.utils && !intlTelInput.startedLoadingUtilsScript) {
|
|
2763
2716
|
intlTelInput.startedLoadingUtilsScript = true;
|
|
2764
2717
|
return new Promise((resolve, reject) => {
|
|
2765
|
-
|
|
2718
|
+
import_INTENTIONALLY_BROKEN(
|
|
2766
2719
|
/* webpackIgnore: true */
|
|
2767
2720
|
path
|
|
2768
2721
|
).then(({ default: utils2 }) => {
|
|
@@ -2799,7 +2752,7 @@ var intlTelInput = Object.assign(
|
|
|
2799
2752
|
//* A map from instance ID to instance object.
|
|
2800
2753
|
instances: {},
|
|
2801
2754
|
loadUtils,
|
|
2802
|
-
version: "23.1.
|
|
2755
|
+
version: "23.1.2"
|
|
2803
2756
|
}
|
|
2804
2757
|
);
|
|
2805
2758
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1468,53 +1468,6 @@ var forEachInstance = (method) => {
|
|
|
1468
1468
|
Object.values(instances).forEach((instance) => instance[method]());
|
|
1469
1469
|
};
|
|
1470
1470
|
var Iti = class {
|
|
1471
|
-
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1472
|
-
id;
|
|
1473
|
-
//* NOT Private
|
|
1474
|
-
promise;
|
|
1475
|
-
//* Private
|
|
1476
|
-
telInput;
|
|
1477
|
-
highlightedItem;
|
|
1478
|
-
options;
|
|
1479
|
-
hadInitialPlaceholder;
|
|
1480
|
-
isRTL;
|
|
1481
|
-
isAndroid;
|
|
1482
|
-
selectedCountryData;
|
|
1483
|
-
countries;
|
|
1484
|
-
dialCodeMaxLen;
|
|
1485
|
-
dialCodeToIso2Map;
|
|
1486
|
-
dialCodes;
|
|
1487
|
-
countryContainer;
|
|
1488
|
-
selectedCountry;
|
|
1489
|
-
selectedCountryInner;
|
|
1490
|
-
selectedCountryA11yText;
|
|
1491
|
-
selectedDialCode;
|
|
1492
|
-
dropdownArrow;
|
|
1493
|
-
dropdownContent;
|
|
1494
|
-
searchInput;
|
|
1495
|
-
searchResultsA11yText;
|
|
1496
|
-
countryList;
|
|
1497
|
-
dropdown;
|
|
1498
|
-
hiddenInput;
|
|
1499
|
-
hiddenInputCountry;
|
|
1500
|
-
maxCoreNumberLength;
|
|
1501
|
-
defaultCountry;
|
|
1502
|
-
_handleHiddenInputSubmit;
|
|
1503
|
-
_handleLabelClick;
|
|
1504
|
-
_handleClickSelectedCountry;
|
|
1505
|
-
_handleCountryContainerKeydown;
|
|
1506
|
-
_handleInputEvent;
|
|
1507
|
-
_handleKeydownEvent;
|
|
1508
|
-
_handleWindowScroll;
|
|
1509
|
-
_handleMouseoverCountryList;
|
|
1510
|
-
_handleClickCountryList;
|
|
1511
|
-
_handleClickOffToClose;
|
|
1512
|
-
_handleKeydownOnDropdown;
|
|
1513
|
-
_handleSearchChange;
|
|
1514
|
-
resolveAutoCountryPromise;
|
|
1515
|
-
rejectAutoCountryPromise;
|
|
1516
|
-
resolveUtilsScriptPromise;
|
|
1517
|
-
rejectUtilsScriptPromise;
|
|
1518
1471
|
constructor(input, customOptions = {}) {
|
|
1519
1472
|
this.id = id++;
|
|
1520
1473
|
this.telInput = input;
|
|
@@ -2726,7 +2679,7 @@ var loadUtils = (path) => {
|
|
|
2726
2679
|
if (!intlTelInput.utils && !intlTelInput.startedLoadingUtilsScript) {
|
|
2727
2680
|
intlTelInput.startedLoadingUtilsScript = true;
|
|
2728
2681
|
return new Promise((resolve, reject) => {
|
|
2729
|
-
|
|
2682
|
+
import_INTENTIONALLY_BROKEN(
|
|
2730
2683
|
/* webpackIgnore: true */
|
|
2731
2684
|
path
|
|
2732
2685
|
).then(({ default: utils2 }) => {
|
|
@@ -2763,7 +2716,7 @@ var intlTelInput = Object.assign(
|
|
|
2763
2716
|
//* A map from instance ID to instance object.
|
|
2764
2717
|
instances: {},
|
|
2765
2718
|
loadUtils,
|
|
2766
|
-
version: "23.1.
|
|
2719
|
+
version: "23.1.2"
|
|
2767
2720
|
}
|
|
2768
2721
|
);
|
|
2769
2722
|
var intl_tel_input_default = intlTelInput;
|