use-mask-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/CHANGELOG.md +7 -0
- package/dist/index.d.ts +2 -1
- package/package.json +20 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.3.1](https://github.com/eduardoborges/use-mask-input/compare/3.3.0...3.3.1) (2023-08-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **package.json:** add type module ([34faa1e](https://github.com/eduardoborges/use-mask-input/commit/34faa1e41ab27a5a18530988c4df51da6bacc3f5))
|
|
7
|
+
|
|
1
8
|
# [3.3.0](https://github.com/eduardoborges/use-mask-input/compare/3.2.0...3.3.0) (2023-06-30)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
+
import { RefCallback } from 'react';
|
|
2
3
|
import * as react_hook_form from 'react-hook-form';
|
|
3
4
|
import { UseFormRegisterReturn, FieldValues, RegisterOptions, UseFormRegister, Path } from 'react-hook-form';
|
|
4
5
|
|
|
@@ -18,7 +19,7 @@ declare const withHookFormMask: (register: UseFormRegisterReturn, mask: Mask, op
|
|
|
18
19
|
declare const withMask: (mask: Mask, options?: Options) => (input: Input) => Input;
|
|
19
20
|
|
|
20
21
|
declare function useHookFormMask<T extends FieldValues, D extends RegisterOptions>(registerFn: UseFormRegister<T>): (fieldName: Path<T>, mask: Mask, options?: Options & D) => {
|
|
21
|
-
ref:
|
|
22
|
+
ref: RefCallback<HTMLElement>;
|
|
22
23
|
onChange: react_hook_form.ChangeHandler;
|
|
23
24
|
onBlur: react_hook_form.ChangeHandler;
|
|
24
25
|
name: Path<T>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-mask-input",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "A react Hook for build elegant input masks. Compatible with React Hook Form",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "Eduardo Borges<euduardoborges@gmail.com>",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"repository": "https://github.com/eduardoborges/use-mask-input",
|
|
7
8
|
"source": "./src/index.tsx",
|
|
8
9
|
"main": "./dist/index.js",
|
|
@@ -42,32 +43,32 @@
|
|
|
42
43
|
"@semantic-release/changelog": "6.0.3",
|
|
43
44
|
"@semantic-release/commit-analyzer": "10.0.1",
|
|
44
45
|
"@semantic-release/git": "10.0.1",
|
|
45
|
-
"@semantic-release/github": "9.0.
|
|
46
|
+
"@semantic-release/github": "9.0.4",
|
|
46
47
|
"@semantic-release/npm": "10.0.4",
|
|
47
|
-
"@semantic-release/release-notes-generator": "11.0.
|
|
48
|
+
"@semantic-release/release-notes-generator": "11.0.4",
|
|
48
49
|
"@types/inputmask": "^5.0.3",
|
|
49
50
|
"@types/node": "16",
|
|
50
51
|
"@types/react": ">=16.4 || 17 || 18",
|
|
51
52
|
"@types/react-dom": ">=16.4 || 17 || 18",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "
|
|
53
|
-
"@typescript-eslint/parser": "
|
|
54
|
-
"@vitest/coverage-v8": "^0.
|
|
55
|
-
"eslint": "8.
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "6.2.1",
|
|
54
|
+
"@typescript-eslint/parser": "6.2.1",
|
|
55
|
+
"@vitest/coverage-v8": "^0.34.1",
|
|
56
|
+
"eslint": "8.46.0",
|
|
56
57
|
"eslint-config-airbnb": "19.0.4",
|
|
57
|
-
"eslint-config-airbnb-typescript": "^17.
|
|
58
|
-
"eslint-plugin-import": "2.
|
|
58
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
59
|
+
"eslint-plugin-import": "2.28.0",
|
|
59
60
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
60
|
-
"eslint-plugin-react": "7.
|
|
61
|
+
"eslint-plugin-react": "7.33.1",
|
|
61
62
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
62
|
-
"react-hook-form": "7.45.
|
|
63
|
+
"react-hook-form": "7.45.2",
|
|
63
64
|
"read-pkg": "^8.0.0",
|
|
64
|
-
"rollup": "^3.
|
|
65
|
-
"rollup-plugin-dts": "^5.3.
|
|
66
|
-
"rollup-plugin-swc3": "^0.
|
|
67
|
-
"semantic-release": "21.0.
|
|
68
|
-
"simple-git-hooks": "^2.
|
|
69
|
-
"typescript": "
|
|
70
|
-
"vitest": "^0.
|
|
65
|
+
"rollup": "^3.27.1",
|
|
66
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
67
|
+
"rollup-plugin-swc3": "^0.9.1",
|
|
68
|
+
"semantic-release": "21.0.7",
|
|
69
|
+
"simple-git-hooks": "^2.9.0",
|
|
70
|
+
"typescript": "5.1",
|
|
71
|
+
"vitest": "^0.34.1"
|
|
71
72
|
},
|
|
72
73
|
"simple-git-hooks": {
|
|
73
74
|
"pre-commit": "npm run lint && npm run test && npm run build"
|