use-mask-input 3.3.7 → 3.4.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [3.4.0](https://github.com/eduardoborges/use-mask-input/compare/3.3.8...3.4.0) (2024-07-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * update mask type to match the avaliable types. ([#88](https://github.com/eduardoborges/use-mask-input/issues/88)) ([2e17b79](https://github.com/eduardoborges/use-mask-input/commit/2e17b794ec2290dde1a911e632ee0090663602a7))
7
+
8
+ ## [3.3.8](https://github.com/eduardoborges/use-mask-input/compare/3.3.7...3.3.8) (2024-06-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 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))
14
+
1
15
  ## [3.3.7](https://github.com/eduardoborges/use-mask-input/compare/3.3.6...3.3.7) (2023-11-09)
2
16
 
3
17
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <h1>🥸 use-mask-input</h1>
3
- <h4>A React Hook for build elegant and simple input masks.</h4>
3
+ <h4>A React Hook for building elegant and simple input masks.</h4>
4
4
 
5
5
  ![npm](https://img.shields.io/npm/v/use-mask-input) ![npm package minimized gzipped size (select exports)](https://img.shields.io/bundlejs/size/use-mask-input?color=green-light) ![npm](https://img.shields.io/npm/dw/use-mask-input)
6
6
 
@@ -103,7 +103,7 @@ function App() {
103
103
 
104
104
  ## Masking types
105
105
 
106
- The `mask` params cabe be
106
+ The `mask` params can be
107
107
 
108
108
  ### Static Masking Type
109
109
 
@@ -160,7 +160,7 @@ By example:
160
160
  ```
161
161
  ### Alias Masking Type
162
162
 
163
- A Lot of common default "alises" presets, you can use like that:
163
+ A Lot of common default "aliases" presets, you can use like that:
164
164
  ```tsx
165
165
  <input // the alias
166
166
  {...registerWithMask("date", "datetime", {
@@ -170,7 +170,7 @@ A Lot of common default "alises" presets, you can use like that:
170
170
  />
171
171
  ```
172
172
 
173
- You can use together with options like `inputFormat`, `prefix`, `sufix`, etc. Checkout [API docs](#api)
173
+ You can use together with options like `inputFormat`, `prefix`, `suffix`, etc. Checkout [API docs](#api)
174
174
 
175
175
  The avaliable ones is:
176
176
 
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 input;
3756
+ return;
3757
3757
  if (mask === null)
3758
- return input;
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) {