@micromag/element-webview 0.3.50 → 0.3.54

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/es/index.js CHANGED
@@ -18,6 +18,7 @@ var propTypes = {
18
18
  height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
19
19
  closeable: PropTypes.bool,
20
20
  onClose: PropTypes.func,
21
+ hidden: PropTypes.bool,
21
22
  className: PropTypes.string
22
23
  };
23
24
  var defaultProps = {
@@ -27,6 +28,7 @@ var defaultProps = {
27
28
  height: null,
28
29
  closeable: false,
29
30
  onClose: null,
31
+ hidden: false,
30
32
  className: null
31
33
  };
32
34
 
@@ -39,6 +41,7 @@ function WebView(_ref) {
39
41
  height = _ref.height,
40
42
  closeable = _ref.closeable,
41
43
  onClose = _ref.onClose,
44
+ hidden = _ref.hidden,
42
45
  className = _ref.className;
43
46
  return /*#__PURE__*/React.createElement("div", {
44
47
  className: classNames([styles.container, (_ref2 = {}, _defineProperty(_ref2, styles.closeable, closeable), _defineProperty(_ref2, className, className !== null), _ref2)]),
@@ -55,12 +58,12 @@ function WebView(_ref) {
55
58
  className: styles.icon,
56
59
  icon: faTimes,
57
60
  size: "lg"
58
- }))) : null, /*#__PURE__*/React.createElement("iframe", {
61
+ }))) : null, !hidden ? /*#__PURE__*/React.createElement("iframe", {
59
62
  className: styles.iframe,
60
63
  ref: iframeRef,
61
64
  title: "Popup",
62
65
  src: src
63
- }));
66
+ }) : null);
64
67
  }
65
68
 
66
69
  WebView.propTypes = propTypes;
package/lib/index.js CHANGED
@@ -28,6 +28,7 @@ var propTypes = {
28
28
  height: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
29
29
  closeable: PropTypes__default["default"].bool,
30
30
  onClose: PropTypes__default["default"].func,
31
+ hidden: PropTypes__default["default"].bool,
31
32
  className: PropTypes__default["default"].string
32
33
  };
33
34
  var defaultProps = {
@@ -37,6 +38,7 @@ var defaultProps = {
37
38
  height: null,
38
39
  closeable: false,
39
40
  onClose: null,
41
+ hidden: false,
40
42
  className: null
41
43
  };
42
44
 
@@ -49,6 +51,7 @@ function WebView(_ref) {
49
51
  height = _ref.height,
50
52
  closeable = _ref.closeable,
51
53
  onClose = _ref.onClose,
54
+ hidden = _ref.hidden,
52
55
  className = _ref.className;
53
56
  return /*#__PURE__*/React__default["default"].createElement("div", {
54
57
  className: classNames__default["default"]([styles.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles.closeable, closeable), _defineProperty__default["default"](_ref2, className, className !== null), _ref2)]),
@@ -65,12 +68,12 @@ function WebView(_ref) {
65
68
  className: styles.icon,
66
69
  icon: freeSolidSvgIcons.faTimes,
67
70
  size: "lg"
68
- }))) : null, /*#__PURE__*/React__default["default"].createElement("iframe", {
71
+ }))) : null, !hidden ? /*#__PURE__*/React__default["default"].createElement("iframe", {
69
72
  className: styles.iframe,
70
73
  ref: iframeRef,
71
74
  title: "Popup",
72
75
  src: src
73
- }));
76
+ }) : null);
74
77
  }
75
78
 
76
79
  WebView.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-webview",
3
- "version": "0.3.50",
3
+ "version": "0.3.54",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -52,8 +52,8 @@
52
52
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
53
53
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
54
54
  "@fortawesome/react-fontawesome": "^0.1.13",
55
- "@micromag/core": "^0.3.42",
56
- "@micromag/element-button": "^0.3.45",
55
+ "@micromag/core": "^0.3.54",
56
+ "@micromag/element-button": "^0.3.54",
57
57
  "classnames": "^2.2.6",
58
58
  "lodash": "^4.17.21",
59
59
  "prop-types": "^15.7.2",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "d021aec0c6ae2543f8dcde725a8cca8c7c811d75"
66
+ "gitHead": "e256975ebe532e65a8d1d8f8a909326e56dd3b2b"
67
67
  }