@configuratorware/configurator-frontendgui 1.26.4 → 1.26.8

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.4",
3
+ "version": "1.26.8",
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.4",
65
- "redhotmagma-visualization": "1.26.4",
64
+ "redhotmagma-graphics-editor": "1.26.8",
65
+ "redhotmagma-visualization": "1.26.8",
66
66
  "redux": "^4.0.5",
67
67
  "redux-logger": "^3.0.6",
68
68
  "redux-persist": "^5.10.0",
@@ -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">