@reactables/react-forms 0.7.0-alpha.5 → 0.7.0-alpha.7

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/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './Components';
2
- export * from './Hooks';
3
2
  export * from '@reactables/forms';
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var forms = require('@reactables/forms');
7
- var reactHelpers = require('@reactables/react-helpers');
8
7
 
9
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
9
 
@@ -111,16 +110,9 @@ var FormArray = function (_a) {
111
110
  return React__default["default"].createElement("div", null, children && children(formArrayChildrenProps));
112
111
  };
113
112
 
114
- var useForm = function (config) {
115
- var form = React.useMemo(function () { return forms.build(config); }, []);
116
- var rxForm = reactHelpers.useReactable(form);
117
- return rxForm;
118
- };
119
-
120
113
  exports.Field = Field;
121
114
  exports.Form = Form;
122
115
  exports.FormArray = FormArray;
123
- exports.useForm = useForm;
124
116
  Object.keys(forms).forEach(function (k) {
125
117
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
126
118
  enumerable: true,
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
19
  "@reactables/core": "*",
20
- "@reactables/forms": "^0.7.0-alpha.5",
20
+ "@reactables/forms": "^0.7.0-alpha.7",
21
21
  "@reactables/react-helpers": "*"
22
22
  },
23
23
  "peerDependencies": {
@@ -25,5 +25,5 @@
25
25
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
26
26
  "rxjs": "^6.0.0 || ^7.0.0"
27
27
  },
28
- "version": "0.7.0-alpha.5"
28
+ "version": "0.7.0-alpha.7"
29
29
  }
@@ -1 +0,0 @@
1
- export { useForm } from './useForm';
@@ -1,3 +0,0 @@
1
- import { AbstractControlConfig } from '@reactables/forms';
2
- import { HookedRxForm } from '../Components/Form';
3
- export declare const useForm: (config: AbstractControlConfig) => HookedRxForm;