@configuratorware/configurator-frontendgui 1.28.0 → 1.28.4

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.28.0",
3
+ "version": "1.28.4",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "./lib/index.js",
@@ -63,8 +63,8 @@
63
63
  "react-router-dom": "^5.2.0",
64
64
  "react-swipeable": "^5.5.1",
65
65
  "react-zoom-pan-pinch": "^2.1.3",
66
- "redhotmagma-graphics-editor": "1.28.0",
67
- "redhotmagma-visualization": "1.28.0",
66
+ "redhotmagma-graphics-editor": "1.28.4",
67
+ "redhotmagma-visualization": "1.28.4",
68
68
  "redux": "^4.0.5",
69
69
  "redux-logger": "^3.0.6",
70
70
  "redux-persist": "^5.10.0",
@@ -274,6 +274,8 @@ class Optiondetail extends React.Component {
274
274
  const { loading, loadingContainerHeight } = this.state;
275
275
  const showNav = _.isArray(options) && options.length > 1;
276
276
  const detailImage = details.detailImage;
277
+ const query = new URLSearchParams(location.search);
278
+ const hidePrices = query.has('_hide_prices') && query.get('_hide_prices') === '1';
277
279
 
278
280
  const detailsContent = (
279
281
  <div>
@@ -287,9 +289,11 @@ class Optiondetail extends React.Component {
287
289
  {details.abstract}
288
290
  </Markdown>
289
291
  )}
290
- <Typography component="div" variant="body2" className={classes.priceFormatted}>
291
- {details.priceFormatted}
292
- </Typography>
292
+ {!hidePrices && (
293
+ <Typography component="div" variant="body2" className={classes.priceFormatted}>
294
+ {details.priceFormatted}
295
+ </Typography>
296
+ )}
293
297
  {details.description && (
294
298
  <Markdown
295
299
  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': {