@configuratorware/configurator-frontendgui 1.26.7 → 1.26.11

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": "@configuratorware/configurator-frontendgui",
3
- "version": "1.26.7",
3
+ "version": "1.26.11",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "./lib/index.js",
@@ -61,8 +61,8 @@
61
61
  "react-router": "^5.2.0",
62
62
  "react-router-dom": "^5.2.0",
63
63
  "react-swipeable": "^5.5.1",
64
- "redhotmagma-graphics-editor": "1.26.7",
65
- "redhotmagma-visualization": "1.26.7",
64
+ "redhotmagma-graphics-editor": "1.26.11",
65
+ "redhotmagma-visualization": "1.26.11",
66
66
  "redux": "^4.0.5",
67
67
  "redux-logger": "^3.0.6",
68
68
  "redux-persist": "^5.10.0",
@@ -241,6 +241,8 @@ class Optiondetail extends React.Component {
241
241
  const { loading, loadingContainerHeight } = this.state;
242
242
  const showNav = _.isArray(options) && options.length > 1;
243
243
  const detailImage = details.detailImage;
244
+ const query = new URLSearchParams(location.search);
245
+ const hidePrices = query.has('_hide_prices') && query.get('_hide_prices') === '1';
244
246
 
245
247
  const detailsContent = (
246
248
  <div>
@@ -254,9 +256,11 @@ class Optiondetail extends React.Component {
254
256
  {details.abstract}
255
257
  </Markdown>
256
258
  )}
257
- <Typography component="div" variant="body2" className={classes.priceFormatted}>
258
- {details.priceFormatted}
259
- </Typography>
259
+ {!hidePrices && (
260
+ <Typography component="div" variant="body2" className={classes.priceFormatted}>
261
+ {details.priceFormatted}
262
+ </Typography>
263
+ )}
260
264
  {details.description && (
261
265
  <Markdown
262
266
  MdComponent={Typography}
@@ -26,6 +26,7 @@ export const customDialogStyle = theme => {
26
26
  fontSize: 24,
27
27
  fontWeight: 'bold',
28
28
  letterSpacing: 'normal',
29
+ marginRight: 28,
29
30
  },
30
31
  },
31
32
  '& .MuiDialogActions-root': {