use-mask-input 3.3.2 → 3.3.4

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.3.4](https://github.com/eduardoborges/use-mask-input/compare/3.3.3...3.3.4) (2023-08-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * types and options ([#50](https://github.com/eduardoborges/use-mask-input/issues/50)) ([3bc502e](https://github.com/eduardoborges/use-mask-input/commit/3bc502e770c3aa12c9b248904da57c016c35f6a2))
7
+
8
+ ## [3.3.3](https://github.com/eduardoborges/use-mask-input/compare/3.3.2...3.3.3) (2023-08-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **scripts:** remove unused postinstall script ([4a62989](https://github.com/eduardoborges/use-mask-input/commit/4a6298991d02c16af3dcda3edcb8dae4b8874f8a))
14
+
1
15
  ## [3.3.2](https://github.com/eduardoborges/use-mask-input/compare/3.3.1...3.3.2) (2023-08-10)
2
16
 
3
17
 
package/README.md CHANGED
@@ -1,10 +1,11 @@
1
- # 🥸 use-mask-input
1
+ <div align="center">
2
+ <h1>🥸 use-mask-input</h1>
3
+ <h4>A React Hook for build elegant and simple input masks.</h4>
2
4
 
3
- [![NPM](https://img.shields.io/npm/v/use-mask-input.svg)](https://www.npmjs.com/package/use-mask-input) [![Bundle Size](https://badgen.net/bundlephobia/minzip/use-mask-input)](https://bundlephobia.com/result?p=use-mask-input)
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)
4
6
 
5
- A React Hook for build elegant and simple input masks.
7
+ </div>
6
8
 
7
- ---
8
9
 
9
10
  ## Table of Contents
10
11
 
@@ -18,6 +19,7 @@ A React Hook for build elegant and simple input masks.
18
19
  - [Alternator Masking Type](#alias-masking-type)
19
20
  - [Preprocessing Masking Type](#preprocessing-masking-type)
20
21
 
22
+
21
23
  ## Features
22
24
  - 🎯 Simple API
23
25
  - 💎 Works like a charm with *Next.js*
@@ -47,7 +49,7 @@ const App = () => {
47
49
  ```jsx
48
50
  import React from 'react';
49
51
  import { useForm } from 'react-hook-form';
50
- import { withHookFormMask } from 'use-mask-input';
52
+ import { useHookFormMask } from 'use-mask-input';
51
53
 
52
54
  function App() {
53
55
  const { register, handleSubmit } = useForm();
package/dist/index.cjs CHANGED
@@ -3819,7 +3819,7 @@ function useHookFormMask(registerFn) {
3819
3819
  return (fieldName, mask, options) => {
3820
3820
  if (!registerFn)
3821
3821
  throw new Error("registerFn is required");
3822
- const _a = registerFn(fieldName), { ref } = _a, restRegister = __objRest(_a, ["ref"]);
3822
+ const _a = registerFn(fieldName, options), { ref } = _a, restRegister = __objRest(_a, ["ref"]);
3823
3823
  const maskInput = inputmask(getMaskOptions(mask, options));
3824
3824
  const newRef = flow((_ref) => {
3825
3825
  if (_ref)