@configuratorware/configurator-frontendgui 1.26.5 → 1.26.9

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.5",
3
+ "version": "1.26.9",
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.5",
65
- "redhotmagma-visualization": "1.26.5",
64
+ "redhotmagma-graphics-editor": "1.26.9",
65
+ "redhotmagma-visualization": "1.26.9",
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}
@@ -150,6 +150,8 @@ class FullScreenView extends React.Component {
150
150
  renderButtonOnTop,
151
151
  } = this.props;
152
152
 
153
+ const topPreviewButton = renderTopPreviewButton({ ...this.props, onClick: this.openPreview });
154
+
153
155
  return previewOpen ? (
154
156
  <div className={classes.fullScreenWrapper}>
155
157
  <PreviewPortal
@@ -164,7 +166,7 @@ class FullScreenView extends React.Component {
164
166
  </div>
165
167
  ) : (
166
168
  <React.Fragment>
167
- {renderTopPreviewButton({ ...this.props, onClick: this.openPreview })}
169
+ {topPreviewButton}
168
170
 
169
171
  {children}
170
172
  {showDesignViewList ? (
@@ -192,13 +194,20 @@ class FullScreenView extends React.Component {
192
194
  ) : (
193
195
  <>
194
196
  <ThumbnailComponent {...thumbnailProps} />
195
- <PreviewButton {...this.props} bottom onClick={this.openPreview} />
197
+ {!topPreviewButton && (
198
+ <PreviewButton
199
+ {...this.props}
200
+ bottom
201
+ onClick={this.openPreview}
202
+ />
203
+ )}
196
204
  </>
197
205
  )}
198
206
  </Grid>
199
207
  )}
200
208
  </Grid>
201
209
  ) : (
210
+ !topPreviewButton &&
202
211
  showPreviewButton &&
203
212
  width !== 'xs' && (
204
213
  <Grid container direction="column" justify="space-between" alignItems="center">
@@ -60,7 +60,6 @@ export const customDialogStyle = theme => {
60
60
  },
61
61
  },
62
62
  closeIcon: {
63
- position: 'absolute',
64
63
  right: 28,
65
64
  top: 28,
66
65
 
@@ -73,6 +72,11 @@ export const customDialogStyle = theme => {
73
72
  cursor: 'pointer',
74
73
  },
75
74
  },
75
+ titleContainer: {
76
+ flexDirection: 'row',
77
+ alignItems: 'center',
78
+ justifyContent: 'center',
79
+ },
76
80
  };
77
81
  };
78
82
 
@@ -92,10 +96,12 @@ export default withWidth({ initialWidth: 'xl' })(
92
96
  {...props}
93
97
  >
94
98
  <DialogTitle id="alert-dialog-title">
95
- {dialogTitle}
96
- <Icon className={classes.closeIcon} onClick={onCancel}>
97
- close
98
- </Icon>
99
+ <div className={classes.titleContainer}>
100
+ {dialogTitle}
101
+ <Icon className={classes.closeIcon} onClick={onCancel}>
102
+ close
103
+ </Icon>
104
+ </div>
99
105
  </DialogTitle>
100
106
  {children}
101
107
  </Dialog>