intl-tel-input 24.8.0 → 24.8.1
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/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +3 -6
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +3 -6
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +2 -5
- package/react/build/IntlTelInput.js +2 -5
- package/react/build/IntlTelInputWithUtils.cjs +2 -5
- package/react/build/IntlTelInputWithUtils.js +2 -5
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +2 -3
- package/vue/build/IntlTelInputWithUtils.mjs +2 -3
package/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -28,7 +28,7 @@ import "intl-tel-input/styles";
|
|
|
28
28
|
|
|
29
29
|
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/validation/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
|
|
30
30
|
|
|
31
|
-
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"`, 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.8.
|
|
31
|
+
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"`, 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.8.1/build/js/utils.js"`.
|
|
32
32
|
|
|
33
33
|
## Props
|
|
34
34
|
Here's a list of all of the current props you can pass to the IntlTelInput React component.
|
|
@@ -3094,10 +3094,7 @@ var loadUtils = (source) => {
|
|
|
3094
3094
|
);
|
|
3095
3095
|
} else if (typeof source === "function") {
|
|
3096
3096
|
try {
|
|
3097
|
-
loadCall = source();
|
|
3098
|
-
if (!(loadCall instanceof Promise)) {
|
|
3099
|
-
throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof loadCall}`);
|
|
3100
|
-
}
|
|
3097
|
+
loadCall = Promise.resolve(source());
|
|
3101
3098
|
} catch (error) {
|
|
3102
3099
|
return Promise.reject(error);
|
|
3103
3100
|
}
|
|
@@ -3148,7 +3145,7 @@ var intlTelInput = Object.assign(
|
|
|
3148
3145
|
loadUtils,
|
|
3149
3146
|
startedLoadingUtilsScript: false,
|
|
3150
3147
|
startedLoadingAutoCountry: false,
|
|
3151
|
-
version: "24.8.
|
|
3148
|
+
version: "24.8.1"
|
|
3152
3149
|
}
|
|
3153
3150
|
);
|
|
3154
3151
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -3058,10 +3058,7 @@ var loadUtils = (source) => {
|
|
|
3058
3058
|
);
|
|
3059
3059
|
} else if (typeof source === "function") {
|
|
3060
3060
|
try {
|
|
3061
|
-
loadCall = source();
|
|
3062
|
-
if (!(loadCall instanceof Promise)) {
|
|
3063
|
-
throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof loadCall}`);
|
|
3064
|
-
}
|
|
3061
|
+
loadCall = Promise.resolve(source());
|
|
3065
3062
|
} catch (error) {
|
|
3066
3063
|
return Promise.reject(error);
|
|
3067
3064
|
}
|
|
@@ -3112,7 +3109,7 @@ var intlTelInput = Object.assign(
|
|
|
3112
3109
|
loadUtils,
|
|
3113
3110
|
startedLoadingUtilsScript: false,
|
|
3114
3111
|
startedLoadingAutoCountry: false,
|
|
3115
|
-
version: "24.8.
|
|
3112
|
+
version: "24.8.1"
|
|
3116
3113
|
}
|
|
3117
3114
|
);
|
|
3118
3115
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -3090,10 +3090,7 @@ var loadUtils = (source) => {
|
|
|
3090
3090
|
loadCall = Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"));
|
|
3091
3091
|
} else if (typeof source === "function") {
|
|
3092
3092
|
try {
|
|
3093
|
-
loadCall = source();
|
|
3094
|
-
if (!(loadCall instanceof Promise)) {
|
|
3095
|
-
throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof loadCall}`);
|
|
3096
|
-
}
|
|
3093
|
+
loadCall = Promise.resolve(source());
|
|
3097
3094
|
} catch (error) {
|
|
3098
3095
|
return Promise.reject(error);
|
|
3099
3096
|
}
|
|
@@ -3144,7 +3141,7 @@ var intlTelInput = Object.assign(
|
|
|
3144
3141
|
loadUtils,
|
|
3145
3142
|
startedLoadingUtilsScript: false,
|
|
3146
3143
|
startedLoadingAutoCountry: false,
|
|
3147
|
-
version: "24.8.
|
|
3144
|
+
version: "24.8.1"
|
|
3148
3145
|
}
|
|
3149
3146
|
);
|
|
3150
3147
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -3054,10 +3054,7 @@ var loadUtils = (source) => {
|
|
|
3054
3054
|
loadCall = Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"));
|
|
3055
3055
|
} else if (typeof source === "function") {
|
|
3056
3056
|
try {
|
|
3057
|
-
loadCall = source();
|
|
3058
|
-
if (!(loadCall instanceof Promise)) {
|
|
3059
|
-
throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof loadCall}`);
|
|
3060
|
-
}
|
|
3057
|
+
loadCall = Promise.resolve(source());
|
|
3061
3058
|
} catch (error) {
|
|
3062
3059
|
return Promise.reject(error);
|
|
3063
3060
|
}
|
|
@@ -3108,7 +3105,7 @@ var intlTelInput = Object.assign(
|
|
|
3108
3105
|
loadUtils,
|
|
3109
3106
|
startedLoadingUtilsScript: false,
|
|
3110
3107
|
startedLoadingAutoCountry: false,
|
|
3111
|
-
version: "24.8.
|
|
3108
|
+
version: "24.8.1"
|
|
3112
3109
|
}
|
|
3113
3110
|
);
|
|
3114
3111
|
var intl_tel_input_default = intlTelInput;
|
package/vue/README.md
CHANGED
|
@@ -34,7 +34,7 @@ See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master
|
|
|
34
34
|
"vue:demo": "vite --config vue/demo/[demo variant]/vite.config.js"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
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/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` 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.8.
|
|
37
|
+
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/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` 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.8.1/build/js/utils.js"`.
|
|
38
38
|
|
|
39
39
|
## Props
|
|
40
40
|
Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
|
|
@@ -2465,8 +2465,7 @@ const W = (u) => {
|
|
|
2465
2465
|
);
|
|
2466
2466
|
else if (typeof u == "function")
|
|
2467
2467
|
try {
|
|
2468
|
-
|
|
2469
|
-
throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof t}`);
|
|
2468
|
+
t = Promise.resolve(u());
|
|
2470
2469
|
} catch (e) {
|
|
2471
2470
|
return Promise.reject(e);
|
|
2472
2471
|
}
|
|
@@ -2503,7 +2502,7 @@ const W = (u) => {
|
|
|
2503
2502
|
loadUtils: W,
|
|
2504
2503
|
startedLoadingUtilsScript: !1,
|
|
2505
2504
|
startedLoadingAutoCountry: !1,
|
|
2506
|
-
version: "24.8.
|
|
2505
|
+
version: "24.8.1"
|
|
2507
2506
|
}
|
|
2508
2507
|
), J = {
|
|
2509
2508
|
__name: "IntlTelInput",
|
|
@@ -2461,8 +2461,7 @@ const V2 = (y) => {
|
|
|
2461
2461
|
e = Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"));
|
|
2462
2462
|
else if (typeof y == "function")
|
|
2463
2463
|
try {
|
|
2464
|
-
|
|
2465
|
-
throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof e}`);
|
|
2464
|
+
e = Promise.resolve(y());
|
|
2466
2465
|
} catch (i) {
|
|
2467
2466
|
return Promise.reject(i);
|
|
2468
2467
|
}
|
|
@@ -2499,7 +2498,7 @@ const V2 = (y) => {
|
|
|
2499
2498
|
loadUtils: V2,
|
|
2500
2499
|
startedLoadingUtilsScript: !1,
|
|
2501
2500
|
startedLoadingAutoCountry: !1,
|
|
2502
|
-
version: "24.8.
|
|
2501
|
+
version: "24.8.1"
|
|
2503
2502
|
}
|
|
2504
2503
|
);
|
|
2505
2504
|
(function() {
|