use-mask-input 3.3.7 → 3.3.8
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.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/withMask.ts +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.3.8](https://github.com/eduardoborges/use-mask-input/compare/3.3.7...3.3.8) (2024-06-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* prepare withMask function to React 19 ref breaking changes ([#83](https://github.com/eduardoborges/use-mask-input/issues/83)) ([4756fe8](https://github.com/eduardoborges/use-mask-input/commit/4756fe807e29e6b2dfb54b5dc75c1667769de13f))
|
|
7
|
+
|
|
1
8
|
## [3.3.7](https://github.com/eduardoborges/use-mask-input/compare/3.3.6...3.3.7) (2023-11-09)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.cjs
CHANGED
|
@@ -3753,14 +3753,13 @@ const withHookFormMask = (register, mask, options) => {
|
|
|
3753
3753
|
|
|
3754
3754
|
const withMask = (mask, options) => (input) => {
|
|
3755
3755
|
if (isServer)
|
|
3756
|
-
return
|
|
3756
|
+
return;
|
|
3757
3757
|
if (mask === null)
|
|
3758
|
-
return
|
|
3758
|
+
return;
|
|
3759
3759
|
const maskInput = inputmask(getMaskOptions(mask, options));
|
|
3760
3760
|
if (input) {
|
|
3761
3761
|
maskInput.mask(input);
|
|
3762
3762
|
}
|
|
3763
|
-
return input;
|
|
3764
3763
|
};
|
|
3765
3764
|
|
|
3766
3765
|
function useHookFormMask(registerFn) {
|