svelte-tel-input 3.3.0 → 3.3.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 +3 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -26,16 +26,17 @@ npm install --save svelte-tel-input
|
|
|
26
26
|
- Prevent non-digits typing into the input, except the leading `+` sign (and `space` optionally).
|
|
27
27
|
- Handle copy-pasted phone numbers, it's sanitize non-digit characters except the leading `+` sign (and `space` optionally).
|
|
28
28
|
- Automatic placeholder generation for the selected country.
|
|
29
|
+
- International or National formatted phone numbers.
|
|
29
30
|
|
|
30
31
|
## Usage
|
|
31
32
|
|
|
32
33
|
### Advanced
|
|
33
34
|
|
|
34
|
-
_Snippet would be too long_ - [REPL](https://stackblitz.com/edit/svelte-tel-input-repl-1jfaar?file=README.md) (StackBlitz)
|
|
35
|
+
_Snippet would be too long_ - [Example](https://github.com/gyurielf/svelte-tel-input/blob/main/apps/site/src/lib/components/examples/AdvancedPhoneInput.svelte) - [REPL](https://stackblitz.com/edit/svelte-tel-input-repl-1jfaar?file=README.md) (StackBlitz)
|
|
35
36
|
|
|
36
37
|
### Basic
|
|
37
38
|
|
|
38
|
-
[REPL](https://stackblitz.com/edit/svelte-tel-input-repl?file=README.md) (StackBlitz)
|
|
39
|
+
[Example](https://github.com/gyurielf/svelte-tel-input/blob/main/apps/site/src/lib/components/examples/BasicPhoneInput.svelte) - [REPL](https://stackblitz.com/edit/svelte-tel-input-repl?file=README.md) (StackBlitz)
|
|
39
40
|
|
|
40
41
|
```html
|
|
41
42
|
<script lang="ts">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-tel-input",
|
|
3
3
|
"description": "svelte-tel-input",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/gyurielf/svelte-tel-input.git"
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"svelte": "^3.58.0 || ^4.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"libphonenumber-js": "^1.10.
|
|
33
|
+
"libphonenumber-js": "^1.10.39"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@sveltejs/adapter-auto": "2.1.0",
|
|
37
|
-
"@sveltejs/kit": "^1.22.
|
|
37
|
+
"@sveltejs/kit": "^1.22.4",
|
|
38
38
|
"@sveltejs/package": "^2.2.0",
|
|
39
39
|
"@testing-library/svelte": "^4.0.3",
|
|
40
40
|
"@testing-library/user-event": "^14.4.3",
|
|
41
41
|
"@types/micromatch": "^4.0.2",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^6.2.
|
|
43
|
-
"@typescript-eslint/parser": "^6.2.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
43
|
+
"@typescript-eslint/parser": "^6.2.1",
|
|
44
44
|
"autoprefixer": "^10.4.14",
|
|
45
45
|
"cssnano": "^6.0.1",
|
|
46
46
|
"dotenv": "^16.3.1",
|
|
47
47
|
"eslint": "^8.45.0",
|
|
48
48
|
"eslint-config-prettier": "^8.8.0",
|
|
49
|
-
"eslint-plugin-import": "^2.
|
|
49
|
+
"eslint-plugin-import": "^2.28.0",
|
|
50
50
|
"eslint-plugin-svelte": "^2.32.4",
|
|
51
51
|
"jsdom": "^22.1.0",
|
|
52
52
|
"micromatch": "^4.0.5",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"tailwindcss": "^3.3.3",
|
|
61
61
|
"tslib": "^2.6.1",
|
|
62
62
|
"typescript": "^5.1.6",
|
|
63
|
-
"vite": "^4.4.
|
|
64
|
-
"vitest": "^0.
|
|
63
|
+
"vite": "^4.4.8",
|
|
64
|
+
"vitest": "^0.34.1"
|
|
65
65
|
},
|
|
66
66
|
"type": "module",
|
|
67
67
|
"license": "MIT",
|