@micromag/screen-keypad 0.3.588 → 0.3.590
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 +5 -6
- package/package.json +18 -18
package/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormattedMessage, defineMessage } from 'react-intl';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
@@ -121,7 +121,7 @@ var propTypes = {
|
|
|
121
121
|
footer: PropTypes$1.footer,
|
|
122
122
|
background: PropTypes$1.backgroundElement,
|
|
123
123
|
current: PropTypes.bool,
|
|
124
|
-
|
|
124
|
+
preload: PropTypes.bool,
|
|
125
125
|
withoutCloseButton: PropTypes.bool,
|
|
126
126
|
className: PropTypes.string
|
|
127
127
|
};
|
|
@@ -137,7 +137,7 @@ var defaultProps = {
|
|
|
137
137
|
footer: null,
|
|
138
138
|
background: null,
|
|
139
139
|
current: true,
|
|
140
|
-
|
|
140
|
+
preload: true,
|
|
141
141
|
withoutCloseButton: false,
|
|
142
142
|
className: null
|
|
143
143
|
};
|
|
@@ -153,10 +153,9 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
153
153
|
footer = _ref.footer,
|
|
154
154
|
background = _ref.background,
|
|
155
155
|
current = _ref.current,
|
|
156
|
-
|
|
156
|
+
preload = _ref.preload,
|
|
157
157
|
withoutCloseButton = _ref.withoutCloseButton,
|
|
158
158
|
className = _ref.className;
|
|
159
|
-
useIntl();
|
|
160
159
|
var containerRef = useRef(null);
|
|
161
160
|
var popupInnerRef = useRef(null);
|
|
162
161
|
var trackScreenEvent = useTrackScreenEvent('keypad');
|
|
@@ -203,7 +202,7 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
203
202
|
_useDimensionObserver4 = _useDimensionObserver3.height,
|
|
204
203
|
footerHeight = _useDimensionObserver4 === void 0 ? 0 : _useDimensionObserver4;
|
|
205
204
|
var backgroundPlaying = current && (isView || isEdit);
|
|
206
|
-
var mediaShouldLoad = !isPlaceholder && (current ||
|
|
205
|
+
var mediaShouldLoad = !isPlaceholder && (current || preload);
|
|
207
206
|
var isInteractivePreview = isEdit && screenState === null;
|
|
208
207
|
var _ref3 = keypadSettings || {},
|
|
209
208
|
_ref3$layout = _ref3.layout,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-keypad",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.590",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -65,22 +65,22 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@babel/runtime": "^7.13.10",
|
|
68
|
-
"@micromag/core": "^0.3.
|
|
69
|
-
"@micromag/element-background": "^0.3.
|
|
70
|
-
"@micromag/element-button": "^0.3.
|
|
71
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
72
|
-
"@micromag/element-container": "^0.3.
|
|
73
|
-
"@micromag/element-footer": "^0.3.
|
|
74
|
-
"@micromag/element-grid": "^0.3.
|
|
75
|
-
"@micromag/element-header": "^0.3.
|
|
76
|
-
"@micromag/element-heading": "^0.3.
|
|
77
|
-
"@micromag/element-keypad": "^0.3.
|
|
78
|
-
"@micromag/element-layout": "^0.3.
|
|
79
|
-
"@micromag/element-scroll": "^0.3.
|
|
80
|
-
"@micromag/element-text": "^0.3.
|
|
81
|
-
"@micromag/element-urbania-author": "^0.3.
|
|
82
|
-
"@micromag/element-visual": "^0.3.
|
|
83
|
-
"@micromag/transforms": "^0.3.
|
|
68
|
+
"@micromag/core": "^0.3.590",
|
|
69
|
+
"@micromag/element-background": "^0.3.590",
|
|
70
|
+
"@micromag/element-button": "^0.3.590",
|
|
71
|
+
"@micromag/element-call-to-action": "^0.3.590",
|
|
72
|
+
"@micromag/element-container": "^0.3.590",
|
|
73
|
+
"@micromag/element-footer": "^0.3.590",
|
|
74
|
+
"@micromag/element-grid": "^0.3.590",
|
|
75
|
+
"@micromag/element-header": "^0.3.590",
|
|
76
|
+
"@micromag/element-heading": "^0.3.590",
|
|
77
|
+
"@micromag/element-keypad": "^0.3.590",
|
|
78
|
+
"@micromag/element-layout": "^0.3.590",
|
|
79
|
+
"@micromag/element-scroll": "^0.3.590",
|
|
80
|
+
"@micromag/element-text": "^0.3.590",
|
|
81
|
+
"@micromag/element-urbania-author": "^0.3.590",
|
|
82
|
+
"@micromag/element-visual": "^0.3.590",
|
|
83
|
+
"@micromag/transforms": "^0.3.590",
|
|
84
84
|
"@react-spring/core": "^9.6.1",
|
|
85
85
|
"@react-spring/web": "^9.6.1",
|
|
86
86
|
"@use-gesture/react": "^10.3.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"access": "public",
|
|
96
96
|
"registry": "https://registry.npmjs.org/"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "aee5033c29da327111287f71fd59cb77f469306a"
|
|
99
99
|
}
|