intl-tel-input 24.0.2 → 24.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "24.0.2",
3
+ "version": "24.1.1",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
@@ -30,6 +30,7 @@
30
30
  "@types/react-dom": "^18.2.24",
31
31
  "@typescript-eslint/eslint-plugin": "^8.1.0",
32
32
  "@typescript-eslint/parser": "^8.1.0",
33
+ "@vitejs/plugin-vue": "^5.1.2",
33
34
  "cspell": "^8.6.1",
34
35
  "esbuild": "^0.23.0",
35
36
  "eslint": "^8.57.0",
@@ -62,7 +63,9 @@
62
63
  "sass": "^1.74.1",
63
64
  "sharp": "^0.33.5",
64
65
  "time-grunt": "^2.0.0",
65
- "typescript": "^5.5.3"
66
+ "typescript": "^5.5.3",
67
+ "vite": "^5.4.2",
68
+ "vue": "^3.4.38"
66
69
  },
67
70
  "files": [
68
71
  "build/*",
@@ -92,7 +95,9 @@
92
95
  "build:utils": "grunt build:utils",
93
96
  "build:css": "grunt css",
94
97
  "build:img": "grunt img",
95
- "build:react": "grunt react"
98
+ "build:react": "grunt react",
99
+ "build:vue": "vite build --config vue/vite.config.js",
100
+ "vue:demo": "vite --config vue/demo/validation/vite.config.js"
96
101
  },
97
102
  "style": "build/css/intlTelInput.css",
98
103
  "main": "./build/js/intlTelInput.js",
@@ -118,6 +123,12 @@
118
123
  "require": "./react/build/IntlTelInputWithUtils.cjs",
119
124
  "default": "./react/build/IntlTelInputWithUtils.js"
120
125
  },
126
+ "./vue": {
127
+ "import": "./vue/build/IntlTelInput.mjs"
128
+ },
129
+ "./vueWithUtils": {
130
+ "import": "./vue/build/IntlTelInputWithUtils.mjs"
131
+ },
121
132
  "./i18n": {
122
133
  "types": "./build/js/intlTelInput.d.ts",
123
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.0.2/build/js/utils.js"`.
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.1/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.
@@ -2835,7 +2835,7 @@ var intlTelInput = Object.assign(
2835
2835
  //* A map from instance ID to instance object.
2836
2836
  instances: {},
2837
2837
  loadUtils,
2838
- version: "24.0.2"
2838
+ version: "24.1.1"
2839
2839
  }
2840
2840
  );
2841
2841
  var intl_tel_input_default = intlTelInput;
@@ -2799,7 +2799,7 @@ var intlTelInput = Object.assign(
2799
2799
  //* A map from instance ID to instance object.
2800
2800
  instances: {},
2801
2801
  loadUtils,
2802
- version: "24.0.2"
2802
+ version: "24.1.1"
2803
2803
  }
2804
2804
  );
2805
2805
  var intl_tel_input_default = intlTelInput;
@@ -2835,7 +2835,7 @@ var intlTelInput = Object.assign(
2835
2835
  //* A map from instance ID to instance object.
2836
2836
  instances: {},
2837
2837
  loadUtils,
2838
- version: "24.0.2"
2838
+ version: "24.1.1"
2839
2839
  }
2840
2840
  );
2841
2841
  var intl_tel_input_default = intlTelInput;
@@ -2799,7 +2799,7 @@ var intlTelInput = Object.assign(
2799
2799
  //* A map from instance ID to instance object.
2800
2800
  instances: {},
2801
2801
  loadUtils,
2802
- version: "24.0.2"
2802
+ version: "24.1.1"
2803
2803
  }
2804
2804
  );
2805
2805
  var intl_tel_input_default = intlTelInput;