@micromag/element-webview 0.3.311 → 0.3.318

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.
@@ -1 +1 @@
1
- .micromag-element-webview-container .micromag-element-webview-close{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-webview-container{position:relative;width:100%;height:100%;background-color:#343434}.micromag-element-webview-container .micromag-element-webview-iframe{display:block;width:100%;height:100%}.micromag-element-webview-container .micromag-element-webview-top{display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;top:0;right:0;left:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:100%;padding:5px}.micromag-element-webview-container .micromag-element-webview-close{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:32px;height:32px;color:#222;-webkit-filter:invert(100%);filter:invert(100%)}.micromag-element-webview-container .micromag-element-webview-icon{width:1em;margin:0;padding:0;line-height:1}
1
+ .micromag-element-webview-container .micromag-element-webview-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;position:relative}.micromag-element-webview-container{background-color:#343434;height:100%;position:relative;width:100%}.micromag-element-webview-container .micromag-element-webview-iframe{display:block;height:100%;width:100%}.micromag-element-webview-container .micromag-element-webview-top{-ms-flex-align:center;-ms-flex-pack:end;align-items:center;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;padding:5px;position:absolute;right:0;top:0;width:100%}.micromag-element-webview-container .micromag-element-webview-close{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;color:#222;display:-ms-flexbox;display:flex;-webkit-filter:invert(100%);filter:invert(100%);height:32px;justify-content:center;width:32px}.micromag-element-webview-container .micromag-element-webview-icon{line-height:1;margin:0;padding:0;width:1em}
package/es/index.js CHANGED
@@ -10,8 +10,8 @@ var styles = {"container":"micromag-element-webview-container","close":"micromag
10
10
  var propTypes = {
11
11
  iframeRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
12
12
  current: PropTypes.any // eslint-disable-line
13
-
14
13
  })]),
14
+
15
15
  url: PropTypes.string,
16
16
  width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
17
17
  height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -28,17 +28,15 @@ var defaultProps = {
28
28
  onClose: null,
29
29
  className: null
30
30
  };
31
-
32
31
  function WebView(_ref) {
33
32
  var _ref2;
34
-
35
33
  var iframeRef = _ref.iframeRef,
36
- url = _ref.url,
37
- width = _ref.width,
38
- height = _ref.height,
39
- closeable = _ref.closeable,
40
- onClose = _ref.onClose,
41
- className = _ref.className;
34
+ url = _ref.url,
35
+ width = _ref.width,
36
+ height = _ref.height,
37
+ closeable = _ref.closeable,
38
+ onClose = _ref.onClose,
39
+ className = _ref.className;
42
40
  return /*#__PURE__*/React.createElement("div", {
43
41
  className: classNames([styles.container, (_ref2 = {}, _defineProperty(_ref2, styles.closeable, closeable), _defineProperty(_ref2, className, className !== null), _ref2)]),
44
42
  style: {
@@ -59,7 +57,6 @@ function WebView(_ref) {
59
57
  src: url || 'about:blank'
60
58
  }));
61
59
  }
62
-
63
60
  WebView.propTypes = propTypes;
64
61
  WebView.defaultProps = defaultProps;
65
62
 
package/lib/index.js CHANGED
@@ -20,8 +20,8 @@ var styles = {"container":"micromag-element-webview-container","close":"micromag
20
20
  var propTypes = {
21
21
  iframeRef: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].shape({
22
22
  current: PropTypes__default["default"].any // eslint-disable-line
23
-
24
23
  })]),
24
+
25
25
  url: PropTypes__default["default"].string,
26
26
  width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
27
27
  height: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
@@ -38,17 +38,15 @@ var defaultProps = {
38
38
  onClose: null,
39
39
  className: null
40
40
  };
41
-
42
41
  function WebView(_ref) {
43
42
  var _ref2;
44
-
45
43
  var iframeRef = _ref.iframeRef,
46
- url = _ref.url,
47
- width = _ref.width,
48
- height = _ref.height,
49
- closeable = _ref.closeable,
50
- onClose = _ref.onClose,
51
- className = _ref.className;
44
+ url = _ref.url,
45
+ width = _ref.width,
46
+ height = _ref.height,
47
+ closeable = _ref.closeable,
48
+ onClose = _ref.onClose,
49
+ className = _ref.className;
52
50
  return /*#__PURE__*/React__default["default"].createElement("div", {
53
51
  className: classNames__default["default"]([styles.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles.closeable, closeable), _defineProperty__default["default"](_ref2, className, className !== null), _ref2)]),
54
52
  style: {
@@ -69,7 +67,6 @@ function WebView(_ref) {
69
67
  src: url || 'about:blank'
70
68
  }));
71
69
  }
72
-
73
70
  WebView.propTypes = propTypes;
74
71
  WebView.defaultProps = defaultProps;
75
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-webview",
3
- "version": "0.3.311",
3
+ "version": "0.3.318",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -52,16 +52,16 @@
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.311",
56
- "@micromag/element-button": "^0.3.311",
55
+ "@micromag/core": "^0.3.318",
56
+ "@micromag/element-button": "^0.3.318",
57
57
  "classnames": "^2.2.6",
58
58
  "lodash": "^4.17.21",
59
59
  "prop-types": "^15.7.2",
60
60
  "react-intl": "^5.12.1",
61
- "uuid": "^8.3.2"
61
+ "uuid": "^9.0.0"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "fab297a7ad204611597c749b969f14d992d35d47"
66
+ "gitHead": "7d1a296e0c0d410e1225279e1f19e3a7715bfa96"
67
67
  }