@panneau/form-two-pane 3.0.299 → 3.0.305

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.
Files changed (2) hide show
  1. package/es/index.js +2 -5
  2. package/package.json +8 -8
package/es/index.js CHANGED
@@ -7,7 +7,7 @@ import { PropTypes as PropTypes$1 } from '@panneau/core';
7
7
  import { useFieldComponent, usePreviewComponent } from '@panneau/core/contexts';
8
8
  import Form from '@panneau/element-form';
9
9
 
10
- var _excluded = ["resource", "fields", "status", "value", "setValue", "onSubmit", "buttons", "children", "className"];
10
+ var _excluded = ["resource", "fields", "status", "value", "onChange", "onSubmit", "buttons", "children", "className"];
11
11
  var propTypes = {
12
12
  fields: PropTypes.objectOf(PropTypes.shape({})).isRequired,
13
13
  resource: PropTypes.shape({
@@ -15,7 +15,6 @@ var propTypes = {
15
15
  }),
16
16
  value: PropTypes.object,
17
17
  // eslint-disable-line react/forbid-prop-types
18
- setValue: PropTypes.func,
19
18
  onChange: PropTypes.func.isRequired,
20
19
  onSubmit: PropTypes.func.isRequired,
21
20
  status: PropTypes$1.formStatus,
@@ -35,7 +34,6 @@ var defaultProps = {
35
34
  resource: null,
36
35
  status: null,
37
36
  value: null,
38
- setValue: null,
39
37
  generalError: null,
40
38
  errors: null,
41
39
  buttons: null,
@@ -47,7 +45,7 @@ var TwoPaneForm = function TwoPaneForm(_ref) {
47
45
  fields = _ref.fields,
48
46
  status = _ref.status,
49
47
  value = _ref.value,
50
- setValue = _ref.setValue,
48
+ onChange = _ref.onChange,
51
49
  onSubmit = _ref.onSubmit,
52
50
  buttons = _ref.buttons,
53
51
  children = _ref.children,
@@ -58,7 +56,6 @@ var TwoPaneForm = function TwoPaneForm(_ref) {
58
56
  id = _ref2$id === void 0 ? null : _ref2$id;
59
57
  var FieldsComponent = useFieldComponent('fields');
60
58
  var PreviewComponent = usePreviewComponent(id);
61
- var onChange = setValue || null;
62
59
  return /*#__PURE__*/React.createElement("div", {
63
60
  className: "container-fluid row gx-4"
64
61
  }, /*#__PURE__*/React.createElement(Form, Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/form-two-pane",
3
- "version": "3.0.299",
3
+ "version": "3.0.305",
4
4
  "description": "Two-pane resource forms",
5
5
  "keywords": [
6
6
  "javascript"
@@ -57,12 +57,12 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7.12.5",
60
- "@panneau/core": "^3.0.295",
61
- "@panneau/data": "^3.0.295",
62
- "@panneau/element-button": "^3.0.299",
63
- "@panneau/element-form": "^3.0.299",
64
- "@panneau/field-fields": "^3.0.299",
65
- "@panneau/themes": "^3.0.299",
60
+ "@panneau/core": "^3.0.300",
61
+ "@panneau/data": "^3.0.300",
62
+ "@panneau/element-button": "^3.0.300",
63
+ "@panneau/element-form": "^3.0.300",
64
+ "@panneau/field-fields": "^3.0.300",
65
+ "@panneau/themes": "^3.0.300",
66
66
  "classnames": "^2.5.1",
67
67
  "lodash-es": "^4.17.21",
68
68
  "prop-types": "^15.7.2",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "265c38d01fe6da4ef49ff2792cf07a496424d985"
74
+ "gitHead": "521edd614cc4b97cded057b83c5c1272a9563a6b"
75
75
  }