@panneau/field-display 4.0.2 → 4.0.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.
Files changed (2) hide show
  1. package/es/index.js +4 -2
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -1,7 +1,9 @@
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
1
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
4
  import classNames from 'classnames';
4
5
  import { useDisplaysComponentsManager } from '@panneau/core/contexts';
6
+ import { jsx } from 'react/jsx-runtime';
5
7
 
6
8
  var _excluded = ["value", "display", "className"];
7
9
  function DisplayField(_ref) {
@@ -14,9 +16,9 @@ function DisplayField(_ref) {
14
16
  props = _objectWithoutProperties(_ref, _excluded);
15
17
  var displays = useDisplaysComponentsManager();
16
18
  var Component = displays.getComponent(display) || null;
17
- return value !== null && Component !== null ? /*#__PURE__*/React.createElement(Component, Object.assign({
19
+ return value !== null && Component !== null ? /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
18
20
  className: classNames([_defineProperty({}, className, className !== null)])
19
- }, props, {
21
+ }, props), {}, {
20
22
  value: value
21
23
  })) : null;
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-display",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "A field rendering a display",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,13 +49,13 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.12.5",
52
- "@panneau/core": "^4.0.2",
53
- "@panneau/themes": "^4.0.2",
52
+ "@panneau/core": "^4.0.4",
53
+ "@panneau/themes": "^4.0.4",
54
54
  "classnames": "^2.5.1",
55
55
  "prop-types": "^15.7.2"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
60
+ "gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
61
61
  }