@shopgate/engage 7.29.1-beta.3 → 7.29.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/engage",
3
- "version": "7.29.1-beta.3",
3
+ "version": "7.29.1",
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.1-beta.3",
21
- "@shopgate/pwa-common-commerce": "7.29.1-beta.3",
22
- "@shopgate/pwa-core": "7.29.1-beta.3",
23
- "@shopgate/pwa-ui-ios": "7.29.1-beta.3",
24
- "@shopgate/pwa-ui-material": "7.29.1-beta.3",
25
- "@shopgate/pwa-ui-shared": "7.29.1-beta.3",
20
+ "@shopgate/pwa-common": "7.29.1",
21
+ "@shopgate/pwa-common-commerce": "7.29.1",
22
+ "@shopgate/pwa-core": "7.29.1",
23
+ "@shopgate/pwa-ui-ios": "7.29.1",
24
+ "@shopgate/pwa-ui-material": "7.29.1",
25
+ "@shopgate/pwa-ui-shared": "7.29.1",
26
26
  "@stripe/react-stripe-js": "^1.16.5",
27
27
  "@stripe/stripe-js": "^1.3.1",
28
28
  "@virtuous/conductor": "~2.5.0",
@@ -1,4 +1,4 @@
1
1
  import React,{useCallback}from'react';import{Button}from'@shopgate/engage/components';import{useWidget}from'@shopgate/engage/page/hooks';import{makeStyles}from'@shopgate/engage/styles';import{useNavigation}from'@shopgate/engage/core';var useStyles=makeStyles()({root:{display:'flex',justifyContent:'center'},text:{whiteSpace:'nowrap'}});/**
2
2
  * The ButtonWidget is used to display a button.
3
3
  * @returns {JSX.Element}
4
- */var ButtonWidget=function ButtonWidget(){var _useStyles=useStyles(),classes=_useStyles.classes;var _useWidget=useWidget(),config=_useWidget.config;var text=config.text,link=config.link;var _useNavigation=useNavigation(),push=_useNavigation.push;var handleClick=useCallback(function(e){e.stopPropagation();if(!link)return;push({pathname:link});},[link,push]);if(!text)return null;return React.createElement("div",{className:classes.root},React.createElement(Button,{type:"secondary",onClick:handleClick,wrapContent:false},React.createElement("span",{className:classes.text},text)));};export default ButtonWidget;
4
+ */var ButtonWidget=function ButtonWidget(){var _useStyles=useStyles(),classes=_useStyles.classes;var _useWidget=useWidget(),config=_useWidget.config,isPreview=_useWidget.isPreview;var text=config.text,link=config.link;var _useNavigation=useNavigation(),push=_useNavigation.push;var handleClick=useCallback(function(e){if(!link)return;if(!isPreview){e.stopPropagation();}push({pathname:link});},[link,isPreview,push]);if(!text)return null;return React.createElement("div",{className:classes.root},React.createElement(Button,{type:"secondary",onClick:handleClick,wrapContent:false},React.createElement("span",{className:classes.text},text)));};export default ButtonWidget;