intl-tel-input 24.1.0 → 24.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 +5 -5
- package/build/css/intlTelInput.css +1 -0
- package/build/css/intlTelInput.min.css +1 -1
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +2 -2
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +8 -6
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +1 -1
- package/react/build/IntlTelInput.js +1 -1
- package/react/build/IntlTelInputWithUtils.cjs +1 -1
- package/react/build/IntlTelInputWithUtils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-tel-input",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.2",
|
|
4
4
|
"description": "A JavaScript plugin for entering and validating international telephone numbers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"international",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"build:img": "grunt img",
|
|
98
98
|
"build:react": "grunt react",
|
|
99
99
|
"build:vue": "vite build --config vue/vite.config.js",
|
|
100
|
-
"vue:demo": "vite --config vue/demo/vite.config.js"
|
|
100
|
+
"vue:demo": "vite --config vue/demo/validation/vite.config.js"
|
|
101
101
|
},
|
|
102
102
|
"style": "build/css/intlTelInput.css",
|
|
103
103
|
"main": "./build/js/intlTelInput.js",
|
|
@@ -118,15 +118,17 @@
|
|
|
118
118
|
"require": "./react/build/IntlTelInput.cjs",
|
|
119
119
|
"default": "./react/build/IntlTelInput.js"
|
|
120
120
|
},
|
|
121
|
-
"./vue": {
|
|
122
|
-
"import": "./vue/build/IntlTelInputWithUtils.mjs",
|
|
123
|
-
"default": "./vue/build/IntlTelInputWithUtils.umd.js"
|
|
124
|
-
},
|
|
125
121
|
"./reactWithUtils": {
|
|
126
122
|
"types": "./react/build/IntlTelInput.d.ts",
|
|
127
123
|
"require": "./react/build/IntlTelInputWithUtils.cjs",
|
|
128
124
|
"default": "./react/build/IntlTelInputWithUtils.js"
|
|
129
125
|
},
|
|
126
|
+
"./vue": {
|
|
127
|
+
"import": "./vue/build/IntlTelInput.mjs"
|
|
128
|
+
},
|
|
129
|
+
"./vueWithUtils": {
|
|
130
|
+
"import": "./vue/build/IntlTelInputWithUtils.mjs"
|
|
131
|
+
},
|
|
130
132
|
"./i18n": {
|
|
131
133
|
"types": "./build/js/intlTelInput.d.ts",
|
|
132
134
|
"default": "./build/js/i18n/index.js"
|
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@24.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@24.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.
|