@micromag/screen-keypad 0.3.769 → 0.3.771
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 +11 -1
- package/package.json +10 -10
package/es/index.js
CHANGED
|
@@ -412,6 +412,15 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
412
412
|
var onPopupScrollNotBottom = useCallback(function () {
|
|
413
413
|
setPopupDragDisabled(true);
|
|
414
414
|
}, [setPopupDragDisabled]);
|
|
415
|
+
var onScrolledTrigger = useCallback(function () {
|
|
416
|
+
var trigger = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
417
|
+
if (trigger !== null) {
|
|
418
|
+
var scrollPercent = Math.round(trigger * 100);
|
|
419
|
+
trackScreenEvent('scroll', scrollPercent, {
|
|
420
|
+
scrollPercent: scrollPercent
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}, [trackScreenEvent]);
|
|
415
424
|
var onTap = useCallback(function () {
|
|
416
425
|
onCloseModal(showPopup);
|
|
417
426
|
}, [onCloseModal, showPopup]);
|
|
@@ -595,7 +604,8 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
595
604
|
verticalAlign: layout,
|
|
596
605
|
withArrow: !showPopup,
|
|
597
606
|
withShadow: !showPopup,
|
|
598
|
-
disabled: isPreview || isPlaceholder || showPopup
|
|
607
|
+
disabled: isPreview || isPlaceholder || showPopup,
|
|
608
|
+
onScrolledTrigger: onScrolledTrigger
|
|
599
609
|
}, /*#__PURE__*/React.createElement(Layout, {
|
|
600
610
|
className: styles.layout,
|
|
601
611
|
verticalAlign: 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.771",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -66,20 +66,20 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@babel/runtime": "^7.13.10",
|
|
68
68
|
"@micromag/core": "^0.3.769",
|
|
69
|
-
"@micromag/element-background": "^0.3.
|
|
69
|
+
"@micromag/element-background": "^0.3.771",
|
|
70
70
|
"@micromag/element-button": "^0.3.769",
|
|
71
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
71
|
+
"@micromag/element-call-to-action": "^0.3.771",
|
|
72
72
|
"@micromag/element-container": "^0.3.769",
|
|
73
|
-
"@micromag/element-footer": "^0.3.
|
|
73
|
+
"@micromag/element-footer": "^0.3.771",
|
|
74
74
|
"@micromag/element-grid": "^0.3.769",
|
|
75
|
-
"@micromag/element-header": "^0.3.
|
|
75
|
+
"@micromag/element-header": "^0.3.771",
|
|
76
76
|
"@micromag/element-heading": "^0.3.769",
|
|
77
77
|
"@micromag/element-keypad": "^0.3.769",
|
|
78
78
|
"@micromag/element-layout": "^0.3.769",
|
|
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.
|
|
79
|
+
"@micromag/element-scroll": "^0.3.771",
|
|
80
|
+
"@micromag/element-text": "^0.3.771",
|
|
81
|
+
"@micromag/element-urbania-author": "^0.3.771",
|
|
82
|
+
"@micromag/element-visual": "^0.3.771",
|
|
83
83
|
"@micromag/transforms": "^0.3.769",
|
|
84
84
|
"@react-spring/core": "^9.6.1",
|
|
85
85
|
"@react-spring/web": "^9.6.1",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"access": "public",
|
|
96
96
|
"registry": "https://registry.npmjs.org/"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "a74bf984979f2bee58b57859808a8d9f6fa31f4a"
|
|
99
99
|
}
|