@micromag/screen-image 0.3.84 → 0.3.89
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 +9 -1
- package/lib/index.js +9 -1
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -40,6 +40,8 @@ var propTypes = {
|
|
|
40
40
|
current: PropTypes.bool,
|
|
41
41
|
active: PropTypes.bool,
|
|
42
42
|
transitions: PropTypes$1.transitions,
|
|
43
|
+
enableInteraction: PropTypes.func,
|
|
44
|
+
disableInteraction: PropTypes.func,
|
|
43
45
|
className: PropTypes.string
|
|
44
46
|
};
|
|
45
47
|
var defaultProps = {
|
|
@@ -59,6 +61,8 @@ var defaultProps = {
|
|
|
59
61
|
current: true,
|
|
60
62
|
active: true,
|
|
61
63
|
transitions: null,
|
|
64
|
+
enableInteraction: null,
|
|
65
|
+
disableInteraction: null,
|
|
62
66
|
className: null
|
|
63
67
|
};
|
|
64
68
|
|
|
@@ -81,6 +85,8 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
81
85
|
current = _ref.current,
|
|
82
86
|
active = _ref.active,
|
|
83
87
|
transitions = _ref.transitions,
|
|
88
|
+
enableInteraction = _ref.enableInteraction,
|
|
89
|
+
disableInteraction = _ref.disableInteraction,
|
|
84
90
|
className = _ref.className;
|
|
85
91
|
var finalImageFit = useMemo(function () {
|
|
86
92
|
return {
|
|
@@ -262,7 +268,9 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
262
268
|
screenSize: {
|
|
263
269
|
width: width,
|
|
264
270
|
height: height
|
|
265
|
-
}
|
|
271
|
+
},
|
|
272
|
+
enableInteraction: enableInteraction,
|
|
273
|
+
disableInteraction: disableInteraction
|
|
266
274
|
})));
|
|
267
275
|
}
|
|
268
276
|
|
package/lib/index.js
CHANGED
|
@@ -62,6 +62,8 @@ var propTypes = {
|
|
|
62
62
|
current: PropTypes__default["default"].bool,
|
|
63
63
|
active: PropTypes__default["default"].bool,
|
|
64
64
|
transitions: core.PropTypes.transitions,
|
|
65
|
+
enableInteraction: PropTypes__default["default"].func,
|
|
66
|
+
disableInteraction: PropTypes__default["default"].func,
|
|
65
67
|
className: PropTypes__default["default"].string
|
|
66
68
|
};
|
|
67
69
|
var defaultProps = {
|
|
@@ -81,6 +83,8 @@ var defaultProps = {
|
|
|
81
83
|
current: true,
|
|
82
84
|
active: true,
|
|
83
85
|
transitions: null,
|
|
86
|
+
enableInteraction: null,
|
|
87
|
+
disableInteraction: null,
|
|
84
88
|
className: null
|
|
85
89
|
};
|
|
86
90
|
|
|
@@ -103,6 +107,8 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
103
107
|
current = _ref.current,
|
|
104
108
|
active = _ref.active,
|
|
105
109
|
transitions = _ref.transitions,
|
|
110
|
+
enableInteraction = _ref.enableInteraction,
|
|
111
|
+
disableInteraction = _ref.disableInteraction,
|
|
106
112
|
className = _ref.className;
|
|
107
113
|
var finalImageFit = React.useMemo(function () {
|
|
108
114
|
return {
|
|
@@ -284,7 +290,9 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
284
290
|
screenSize: {
|
|
285
291
|
width: width,
|
|
286
292
|
height: height
|
|
287
|
-
}
|
|
293
|
+
},
|
|
294
|
+
enableInteraction: enableInteraction,
|
|
295
|
+
disableInteraction: disableInteraction
|
|
288
296
|
})));
|
|
289
297
|
}
|
|
290
298
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-image",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.89",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
-
"@micromag/element-container": "^0.3.
|
|
56
|
-
"@micromag/element-heading": "^0.3.
|
|
57
|
-
"@micromag/element-layout": "^0.3.
|
|
58
|
-
"@micromag/element-text": "^0.3.
|
|
59
|
-
"@micromag/element-visual": "^0.3.
|
|
60
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.88",
|
|
53
|
+
"@micromag/element-background": "^0.3.88",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.89",
|
|
55
|
+
"@micromag/element-container": "^0.3.88",
|
|
56
|
+
"@micromag/element-heading": "^0.3.88",
|
|
57
|
+
"@micromag/element-layout": "^0.3.88",
|
|
58
|
+
"@micromag/element-text": "^0.3.88",
|
|
59
|
+
"@micromag/element-visual": "^0.3.88",
|
|
60
|
+
"@micromag/transforms": "^0.3.88",
|
|
61
61
|
"classnames": "^2.2.6",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
63
|
"prop-types": "^15.7.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "b79d346163c149050ed713e8162675f11b8baf4b"
|
|
71
71
|
}
|