intl-tel-input 25.14.0 → 25.15.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.
Files changed (47) hide show
  1. package/README.md +5 -5
  2. package/angular/README.md +1 -1
  3. package/angular/build/IntlTelInput.js +1 -1
  4. package/angular/build/IntlTelInputWithUtils.js +1 -1
  5. package/build/css/intlTelInput-no-assets.css +1259 -0
  6. package/build/css/intlTelInput-no-assets.min.css +1 -0
  7. package/build/css/intlTelInput.css +6 -4
  8. package/build/css/intlTelInput.min.css +1 -1
  9. package/build/js/data.js +1 -1
  10. package/build/js/data.min.js +1 -1
  11. package/build/js/intlTelInput.js +2 -2
  12. package/build/js/intlTelInput.min.js +2 -2
  13. package/build/js/intlTelInputWithUtils.js +2 -2
  14. package/build/js/intlTelInputWithUtils.min.js +2 -2
  15. package/package.json +1 -1
  16. package/react/README.md +1 -1
  17. package/react/build/IntlTelInput.cjs +1 -1
  18. package/react/build/IntlTelInput.js +1 -1
  19. package/react/build/IntlTelInputWithUtils.cjs +1 -1
  20. package/react/build/IntlTelInputWithUtils.js +1 -1
  21. package/svelte/README.md +1 -1
  22. package/svelte/build/IntlTelInput.mjs +1 -1
  23. package/svelte/build/IntlTelInputWithUtils.mjs +1 -1
  24. package/vue/README.md +1 -1
  25. package/vue/build/IntlTelInput.mjs +1 -1
  26. package/vue/build/IntlTelInput.vue.d.ts +34 -0
  27. package/vue/build/IntlTelInputWithUtils.mjs +1 -1
  28. package/vue/build/IntlTelInputWithUtils.vue.d.ts +34 -0
  29. package/vue/build/exports/IntlTelInput.d.ts +3 -0
  30. package/vue/build/exports/IntlTelInput.mjs +66 -0
  31. package/vue/build/exports/IntlTelInputWithUtils.d.ts +3 -0
  32. package/vue/build/exports/IntlTelInputWithUtils.mjs +6207 -0
  33. package/vue/build/intl-tel-input-Db39yQmC.mjs +3083 -0
  34. package/vue/build/intl-tel-input.d.ts +97 -0
  35. package/vue/build/modules/constants.d.ts +85 -0
  36. package/vue/build/modules/core/countrySearch.d.ts +17 -0
  37. package/vue/build/modules/core/icons.d.ts +9 -0
  38. package/vue/build/modules/core/options.d.ts +3 -0
  39. package/vue/build/modules/core/ui.d.ts +46 -0
  40. package/vue/build/modules/data/country-data.d.ts +12 -0
  41. package/vue/build/modules/data/nanp-regionless.d.ts +2 -0
  42. package/vue/build/modules/format/caret.d.ts +1 -0
  43. package/vue/build/modules/format/formatting.d.ts +3 -0
  44. package/vue/build/modules/types/events.d.ts +9 -0
  45. package/vue/build/modules/types/public-api.d.ts +78 -0
  46. package/vue/build/modules/utils/dom.d.ts +6 -0
  47. package/vue/build/modules/utils/string.d.ts +2 -0
package/README.md CHANGED
@@ -81,16 +81,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
81
81
  ## Getting Started (Using a CDN)
82
82
  1. Add the CSS
83
83
  ```html
84
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.14.0/build/css/intlTelInput.css">
84
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.0/build/css/intlTelInput.css">
85
85
  ```
86
86
 
87
87
  2. Add the plugin script and initialise it on your input element
88
88
  ```html
89
- <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.14.0/build/js/intlTelInput.min.js"></script>
89
+ <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.0/build/js/intlTelInput.min.js"></script>
90
90
  <script>
91
91
  const input = document.querySelector("#phone");
92
92
  window.intlTelInput(input, {
93
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.14.0/build/js/utils.js"),
93
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.0/build/js/utils.js"),
94
94
  });
95
95
  </script>
96
96
  ```
@@ -328,12 +328,12 @@ Set the initial country selection by specifying its country code, e.g. `"us"` fo
328
328
  Type: `() => Promise<module>` Default: `null`
329
329
  This is one way to lazy load the included utils.js (to enable formatting/validation, etc) - see [Loading The Utilities Script](#loading-the-utilities-script) for more options.
330
330
 
331
- The `loadUtils` option takes a function that returns a Promise resolving to the utils module (see example code below). You can `import` the utils module in different ways: (A) from a CDN, (B) from your own hosted version of [utils.js](https://cdn.jsdelivr.net/npm/intl-tel-input@25.14.0/build/js/utils.js), or (C) if you use a bundler like Webpack, Vite or Parcel, you can import it directly from the package.
331
+ The `loadUtils` option takes a function that returns a Promise resolving to the utils module (see example code below). You can `import` the utils module in different ways: (A) from a CDN, (B) from your own hosted version of [utils.js](https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.0/build/js/utils.js), or (C) if you use a bundler like Webpack, Vite or Parcel, you can import it directly from the package.
332
332
 
333
333
  ```js
334
334
  // (A) import utils module from a CDN
335
335
  intlTelInput(htmlInputElement, {
336
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.14.0/build/js/utils.js"),
336
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.0/build/js/utils.js"),
337
337
  });
338
338
 
339
339
  // (B) import utils module from your own hosted version of utils.js
package/angular/README.md CHANGED
@@ -54,7 +54,7 @@ import "intl-tel-input/styles";
54
54
 
55
55
  See the [validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation, or check out the [form demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/form/form.component.ts) for an alternative approach using `ReactiveFormsModule`.
56
56
 
57
- 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 { IntlTelInputComponent } from "intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.14.0/build/js/utils.js"`.
57
+ 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 { IntlTelInputComponent } from "intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.15.0/build/js/utils.js"`.
58
58
 
59
59
  ## Props
60
60
 
@@ -3875,7 +3875,7 @@ var intlTelInput = Object.assign((input, options) => {
3875
3875
  attachUtils,
3876
3876
  startedLoadingUtilsScript: false,
3877
3877
  startedLoadingAutoCountry: false,
3878
- version: "25.14.0"
3878
+ version: "25.15.0"
3879
3879
  });
3880
3880
  var intl_tel_input_default = intlTelInput;
3881
3881
 
@@ -3875,7 +3875,7 @@ var intlTelInput = Object.assign((input, options) => {
3875
3875
  attachUtils,
3876
3876
  startedLoadingUtilsScript: false,
3877
3877
  startedLoadingAutoCountry: false,
3878
- version: "25.14.0"
3878
+ version: "25.15.0"
3879
3879
  });
3880
3880
  var intl_tel_input_default = intlTelInput;
3881
3881