@shopgate/engage 7.29.8 → 7.29.9-beta.2
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.
|
@@ -18,7 +18,7 @@ function _extends(){_extends=Object.assign||function(target){for(var i=1;i<argum
|
|
|
18
18
|
*/function componentDidMount(){var _this3=this;var scrollTop=this.context.state.scrollTop;// This trick ensures the scroll position is restored correctly. Without it there where
|
|
19
19
|
// situations where scroll position was restored before the content was rendered.
|
|
20
20
|
// In that case restoration didn't have any effect.
|
|
21
|
-
window.requestAnimationFrame(function(){if(_this3.ref.current===window){window.scrollTo(0,scrollTop||0);}else{_this3.ref.current.scrollTop=scrollTop;}});}/**
|
|
21
|
+
window.requestAnimationFrame(function(){var _this3$ref$current;if(_this3.ref.current===window){window.scrollTo(0,scrollTop||0);}else if((_this3$ref$current=_this3.ref.current)===null||_this3$ref$current===void 0?void 0:_this3$ref$current.scrollTop){_this3.ref.current.scrollTop=scrollTop||0;}});}/**
|
|
22
22
|
* Removes the keyboardWillChange listener.
|
|
23
23
|
*/},{key:"componentWillUnmount",value:function componentWillUnmount(){var scrollTop;if(this.ref.current===window){scrollTop=window.scrollY;}else{scrollTop=this.ref.current.scrollTop;}router.update(this.context.id,{scrollTop:scrollTop},false);event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE,this.handleKeyboardChange);if(isIOs){window.removeEventListener('focusin',this.handleInputFocusChange);window.removeEventListener('focusout',this.handleInputFocusChange);}}/**
|
|
24
24
|
* @returns {Object}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/engage",
|
|
3
|
-
"version": "7.29.
|
|
3
|
+
"version": "7.29.9-beta.2",
|
|
4
4
|
"description": "Shopgate's ENGAGE library.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@emotion/react": "^11.14.0",
|
|
19
19
|
"@shopgate/native-modules": "1.0.0-beta.25",
|
|
20
|
-
"@shopgate/pwa-common": "7.29.
|
|
21
|
-
"@shopgate/pwa-common-commerce": "7.29.
|
|
22
|
-
"@shopgate/pwa-core": "7.29.
|
|
23
|
-
"@shopgate/pwa-ui-ios": "7.29.
|
|
24
|
-
"@shopgate/pwa-ui-material": "7.29.
|
|
25
|
-
"@shopgate/pwa-ui-shared": "7.29.
|
|
20
|
+
"@shopgate/pwa-common": "7.29.9-beta.2",
|
|
21
|
+
"@shopgate/pwa-common-commerce": "7.29.9-beta.2",
|
|
22
|
+
"@shopgate/pwa-core": "7.29.9-beta.2",
|
|
23
|
+
"@shopgate/pwa-ui-ios": "7.29.9-beta.2",
|
|
24
|
+
"@shopgate/pwa-ui-material": "7.29.9-beta.2",
|
|
25
|
+
"@shopgate/pwa-ui-shared": "7.29.9-beta.2",
|
|
26
26
|
"@stripe/react-stripe-js": "^1.16.5",
|
|
27
27
|
"@stripe/stripe-js": "^1.3.1",
|
|
28
28
|
"@virtuous/conductor": "~2.5.0",
|