@micromag/element-webview 0.3.487 → 0.3.491

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
@@ -15,6 +15,7 @@ var propTypes = {
15
15
  width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
16
16
  height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
17
17
  closeable: PropTypes.bool,
18
+ focusable: PropTypes.bool,
18
19
  onClose: PropTypes.func,
19
20
  className: PropTypes.string
20
21
  };
@@ -24,6 +25,7 @@ var defaultProps = {
24
25
  width: null,
25
26
  height: null,
26
27
  closeable: false,
28
+ focusable: false,
27
29
  onClose: null,
28
30
  className: null
29
31
  };
@@ -33,6 +35,7 @@ function WebView(_ref) {
33
35
  width = _ref.width,
34
36
  height = _ref.height,
35
37
  closeable = _ref.closeable,
38
+ focusable = _ref.focusable,
36
39
  onClose = _ref.onClose,
37
40
  className = _ref.className;
38
41
  return /*#__PURE__*/React.createElement("div", {
@@ -50,6 +53,7 @@ function WebView(_ref) {
50
53
  className: styles.closeIcon
51
54
  }))) : null, /*#__PURE__*/React.createElement("iframe", {
52
55
  className: styles.iframe,
56
+ tabIndex: !focusable ? -1 : null,
53
57
  ref: iframeRef,
54
58
  title: "Popup",
55
59
  src: url || 'about:blank'
package/lib/index.js CHANGED
@@ -17,6 +17,7 @@ var propTypes = {
17
17
  width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
18
18
  height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
19
19
  closeable: PropTypes.bool,
20
+ focusable: PropTypes.bool,
20
21
  onClose: PropTypes.func,
21
22
  className: PropTypes.string
22
23
  };
@@ -26,6 +27,7 @@ var defaultProps = {
26
27
  width: null,
27
28
  height: null,
28
29
  closeable: false,
30
+ focusable: false,
29
31
  onClose: null,
30
32
  className: null
31
33
  };
@@ -35,6 +37,7 @@ function WebView(_ref) {
35
37
  width = _ref.width,
36
38
  height = _ref.height,
37
39
  closeable = _ref.closeable,
40
+ focusable = _ref.focusable,
38
41
  onClose = _ref.onClose,
39
42
  className = _ref.className;
40
43
  return /*#__PURE__*/React.createElement("div", {
@@ -52,6 +55,7 @@ function WebView(_ref) {
52
55
  className: styles.closeIcon
53
56
  }))) : null, /*#__PURE__*/React.createElement("iframe", {
54
57
  className: styles.iframe,
58
+ tabIndex: !focusable ? -1 : null,
55
59
  ref: iframeRef,
56
60
  title: "Popup",
57
61
  src: url || 'about:blank'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-webview",
3
- "version": "0.3.487",
3
+ "version": "0.3.491",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -63,8 +63,8 @@
63
63
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
64
64
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
65
65
  "@fortawesome/react-fontawesome": "^0.1.13",
66
- "@micromag/core": "^0.3.487",
67
- "@micromag/element-button": "^0.3.487",
66
+ "@micromag/core": "^0.3.491",
67
+ "@micromag/element-button": "^0.3.491",
68
68
  "classnames": "^2.2.6",
69
69
  "lodash": "^4.17.21",
70
70
  "prop-types": "^15.7.2",
@@ -75,5 +75,5 @@
75
75
  "access": "public",
76
76
  "registry": "https://registry.npmjs.org/"
77
77
  },
78
- "gitHead": "aaa0df7566c8291eca5aab8ab6c8b103152c110c"
78
+ "gitHead": "d4af8a992fad6d8d50e41e347a4b92e6e025b984"
79
79
  }