mui-tel-input 1.0.1 → 1.1.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.
|
@@ -7,6 +7,7 @@ declare type UsePhoneDigitsParams = {
|
|
|
7
7
|
onChange?: (value: string, info: MuiTelInputInfo) => void;
|
|
8
8
|
defaultCountry?: MuiTelInputCountry;
|
|
9
9
|
forceCallingCode?: boolean;
|
|
10
|
+
disableFormatting?: boolean;
|
|
10
11
|
excludedCountries?: MuiTelInputCountry[];
|
|
11
12
|
onlyCountries?: MuiTelInputCountry[];
|
|
12
13
|
continents?: MuiTelInputContinent[];
|
|
@@ -21,7 +22,7 @@ declare type GetInitialStateParams = {
|
|
|
21
22
|
disableFormatting?: boolean;
|
|
22
23
|
};
|
|
23
24
|
export declare function getInitialState(params: GetInitialStateParams): State;
|
|
24
|
-
export default function usePhoneDigits({ value, onChange, defaultCountry, forceCallingCode, onlyCountries, excludedCountries, continents }: UsePhoneDigitsParams): {
|
|
25
|
+
export default function usePhoneDigits({ value, onChange, defaultCountry, forceCallingCode, onlyCountries, excludedCountries, continents, disableFormatting }: UsePhoneDigitsParams): {
|
|
25
26
|
inputValue: string;
|
|
26
27
|
isoCode: import("libphonenumber-js").CountryCode | null;
|
|
27
28
|
onInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/viclafouch/mui-tel-input/issues"
|
|
7
7
|
},
|
|
8
|
-
"homepage": "https://
|
|
9
|
-
"version": "1.0
|
|
8
|
+
"homepage": "https://www.npmjs.com/package/mui-tel-input",
|
|
9
|
+
"version": "1.1.0",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
@@ -44,9 +44,13 @@
|
|
|
44
44
|
"build-storybook": "build-storybook",
|
|
45
45
|
"test": "vitest",
|
|
46
46
|
"release": "standard-version",
|
|
47
|
-
"coverage": "vitest run --coverage"
|
|
47
|
+
"coverage": "vitest run --coverage",
|
|
48
|
+
"prepare": "husky install"
|
|
48
49
|
},
|
|
49
50
|
"standard-version": {
|
|
51
|
+
"scripts": {
|
|
52
|
+
"prerelease": "npm run build"
|
|
53
|
+
},
|
|
50
54
|
"skip": {
|
|
51
55
|
"changelog": true
|
|
52
56
|
}
|
|
@@ -74,12 +78,12 @@
|
|
|
74
78
|
"@storybook/addon-links": "^6.4.19",
|
|
75
79
|
"@storybook/react": "^6.4.19",
|
|
76
80
|
"@storybook/testing-library": "^0.0.9",
|
|
77
|
-
"@testing-library/jest-dom": "^5.16.
|
|
81
|
+
"@testing-library/jest-dom": "^5.16.3",
|
|
78
82
|
"@testing-library/react": "^12.1.4",
|
|
79
83
|
"@testing-library/react-hooks": "^7.0.2",
|
|
80
84
|
"@testing-library/user-event": "^14.0.0-beta.13",
|
|
81
85
|
"@types/ramda": "^0.28.2",
|
|
82
|
-
"@types/react": "^17.0.
|
|
86
|
+
"@types/react": "^17.0.43",
|
|
83
87
|
"@types/react-dom": "^17.0.14",
|
|
84
88
|
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
85
89
|
"@typescript-eslint/parser": "^5.16.0",
|
|
@@ -97,13 +101,15 @@
|
|
|
97
101
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
98
102
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
99
103
|
"eslint-plugin-testing-library": "^5.1.0",
|
|
100
|
-
"
|
|
104
|
+
"husky": "^7.0.4",
|
|
105
|
+
"jsdom": "^19.0.0",
|
|
106
|
+
"prettier": "^2.6.1",
|
|
101
107
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
102
108
|
"standard-version": "^9.3.2",
|
|
103
|
-
"typescript": "^4.6.
|
|
109
|
+
"typescript": "^4.6.3",
|
|
104
110
|
"vite": "^2.8.6",
|
|
105
111
|
"vite-aliases": "^0.9.1",
|
|
106
|
-
"vite-plugin-dts": "^1.0.
|
|
107
|
-
"vitest": "^0.7.
|
|
112
|
+
"vite-plugin-dts": "^1.0.3",
|
|
113
|
+
"vitest": "^0.7.11"
|
|
108
114
|
}
|
|
109
115
|
}
|