mobx-react-hook-form 3.0.7 → 3.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.
@@ -0,0 +1,3 @@
1
+ import { Controller as LibController } from 'react-hook-form';
2
+ export declare const Controller: typeof LibController;
3
+ //# sourceMappingURL=controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/components/controller.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9D,eAAO,MAAM,UAAU,EAON,OAAO,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Observer } from 'mobx-react-lite';
3
+ import { Controller as LibController } from 'react-hook-form';
4
+ export const Controller = ((props) => (_jsx(LibController, { ...props, render: (renderProps) => (_jsx(Observer, { children: () => props.render(renderProps) })) })));
@@ -0,0 +1,2 @@
1
+ export * from './controller.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './controller.js';
package/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './mobx-form/index.js';
2
+ export * from './components/index.js';
2
3
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
package/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export * from './mobx-form/index.js';
2
+ export * from './components/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx-react-hook-form",
3
- "version": "3.0.7",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -37,6 +37,16 @@
37
37
  "typescript": "^5.8.3"
38
38
  },
39
39
  "exports": {
40
+ "./components/controller": {
41
+ "import": "./components/controller.js",
42
+ "default": "./components/controller.js",
43
+ "types": "./components/controller.d.ts"
44
+ },
45
+ "./components": {
46
+ "import": "./components/index.js",
47
+ "default": "./components/index.js",
48
+ "types": "./components/index.d.ts"
49
+ },
40
50
  ".": {
41
51
  "import": "./index.js",
42
52
  "default": "./index.js",