@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.
- package/assets/css/styles.css +1 -1
- package/es/index.js +7 -10
- package/lib/index.js +7 -10
- package/package.json +5 -5
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-element-webview-container .micromag-element-webview-close{
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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.
|
|
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.
|
|
56
|
-
"@micromag/element-button": "^0.3.
|
|
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": "^
|
|
61
|
+
"uuid": "^9.0.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "7d1a296e0c0d410e1225279e1f19e3a7715bfa96"
|
|
67
67
|
}
|