@panneau/form-two-pane 3.0.305 → 3.0.307

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 +6 -3
  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", "onChange", "onSubmit", "buttons", "children", "className"];
10
+ var _excluded = ["resource", "fields", "status", "value", "onChange", "onSubmit", "errors", "buttons", "children", "className"];
11
11
  var propTypes = {
12
12
  fields: PropTypes.objectOf(PropTypes.shape({})).isRequired,
13
13
  resource: PropTypes.shape({
@@ -47,6 +47,7 @@ var TwoPaneForm = function TwoPaneForm(_ref) {
47
47
  value = _ref.value,
48
48
  onChange = _ref.onChange,
49
49
  onSubmit = _ref.onSubmit,
50
+ errors = _ref.errors,
50
51
  buttons = _ref.buttons,
51
52
  children = _ref.children,
52
53
  className = _ref.className,
@@ -63,11 +64,13 @@ var TwoPaneForm = function TwoPaneForm(_ref) {
63
64
  resource: resource,
64
65
  status: status,
65
66
  buttons: buttons,
66
- onSubmit: onSubmit
67
+ onSubmit: onSubmit,
68
+ errors: errors
67
69
  }, props), /*#__PURE__*/React.createElement(FieldsComponent, {
68
70
  fields: fields,
69
71
  value: value,
70
- onChange: onChange
72
+ onChange: onChange,
73
+ errors: errors
71
74
  })), /*#__PURE__*/React.createElement("div", {
72
75
  className: "col-12 col-lg-6"
73
76
  }, PreviewComponent !== null ? /*#__PURE__*/React.createElement(PreviewComponent, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/form-two-pane",
3
- "version": "3.0.305",
3
+ "version": "3.0.307",
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.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",
60
+ "@panneau/core": "^3.0.307",
61
+ "@panneau/data": "^3.0.307",
62
+ "@panneau/element-button": "^3.0.307",
63
+ "@panneau/element-form": "^3.0.307",
64
+ "@panneau/field-fields": "^3.0.307",
65
+ "@panneau/themes": "^3.0.307",
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": "521edd614cc4b97cded057b83c5c1272a9563a6b"
74
+ "gitHead": "cbe5e8b1705d01c5653a4df617a06243344310d3"
75
75
  }