@configuratorware/configurator-frontendgui 1.28.1 → 1.28.5
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 +3 -3
- package/src/App/Modules/Creator/Components/Optiondetail/index.js +7 -3
- package/src/App/Screens/Configurator/Components/CalculationWidget/__snapshots__/index.test.jsx.snap +4 -4
- package/src/App/Screens/Configurator/Components/FullScreenView/__snapshots__/index.test.jsx.snap +1 -1
- package/src/App/Screens/Configurator/Screen.js +1 -1
- package/src/App/Screens/Configurator/__tests__/Screen.test.js +3 -0
- package/src/App/Screens/DesignerProductPreview/__tests__/__snapshots__/Screen.test.js.snap +1 -1
- package/src/Shared/Components/CustomDialog.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.5",
|
|
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.
|
|
67
|
-
"redhotmagma-visualization": "1.28.
|
|
66
|
+
"redhotmagma-graphics-editor": "1.28.5",
|
|
67
|
+
"redhotmagma-visualization": "1.28.5",
|
|
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
|
-
|
|
291
|
-
{
|
|
292
|
-
|
|
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}
|
package/src/App/Screens/Configurator/Components/CalculationWidget/__snapshots__/index.test.jsx.snap
CHANGED
|
@@ -100,7 +100,7 @@ exports[`renders correctly 1`] = `
|
|
|
100
100
|
</div>
|
|
101
101
|
</div>
|
|
102
102
|
<div
|
|
103
|
-
class="MuiCollapse-
|
|
103
|
+
class="MuiCollapse-container MuiCollapse-hidden"
|
|
104
104
|
style="min-height:0px"
|
|
105
105
|
>
|
|
106
106
|
<div
|
|
@@ -277,7 +277,7 @@ exports[`renders correctly 1`] = `
|
|
|
277
277
|
</div>
|
|
278
278
|
</div>
|
|
279
279
|
<div
|
|
280
|
-
class="MuiCollapse-
|
|
280
|
+
class="MuiCollapse-container MuiCollapse-hidden"
|
|
281
281
|
style="min-height:0px"
|
|
282
282
|
>
|
|
283
283
|
<div
|
|
@@ -454,7 +454,7 @@ exports[`renders correctly 1`] = `
|
|
|
454
454
|
</div>
|
|
455
455
|
</div>
|
|
456
456
|
<div
|
|
457
|
-
class="MuiCollapse-
|
|
457
|
+
class="MuiCollapse-container MuiCollapse-hidden"
|
|
458
458
|
style="min-height:0px"
|
|
459
459
|
>
|
|
460
460
|
<div
|
|
@@ -631,7 +631,7 @@ exports[`renders correctly 1`] = `
|
|
|
631
631
|
</div>
|
|
632
632
|
</div>
|
|
633
633
|
<div
|
|
634
|
-
class="MuiCollapse-
|
|
634
|
+
class="MuiCollapse-container MuiCollapse-hidden"
|
|
635
635
|
style="min-height:0px"
|
|
636
636
|
>
|
|
637
637
|
<div
|
package/src/App/Screens/Configurator/Components/FullScreenView/__snapshots__/index.test.jsx.snap
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Screens/Configurator/Components/FullScreenView renders correctly 1`] = `
|
|
4
4
|
<div
|
|
5
|
-
class="MuiGrid-root MuiGrid-container MuiGrid-direction-xs-column MuiGrid-align-items-xs-center MuiGrid-justify-
|
|
5
|
+
class="MuiGrid-root MuiGrid-container MuiGrid-direction-xs-column MuiGrid-align-items-xs-center MuiGrid-justify-xs-space-between"
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
8
|
aria-disabled="false"
|
|
@@ -52,7 +52,7 @@ export const Configurator = props => {
|
|
|
52
52
|
if (imageOnly) {
|
|
53
53
|
Services.visualization.enableDesignAreaInteraction(false);
|
|
54
54
|
} else {
|
|
55
|
-
Services.visualization.
|
|
55
|
+
Services.visualization.initDesignAreaInteraction();
|
|
56
56
|
}
|
|
57
57
|
}, [imageOnly]);
|
|
58
58
|
|
|
@@ -85,7 +85,7 @@ exports[`Screens/DesignerProductPreview/Screen renders the initial image upload
|
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
<div
|
|
88
|
-
class="MuiGrid-root MuiGrid-container MuiGrid-justify-
|
|
88
|
+
class="MuiGrid-root MuiGrid-container MuiGrid-justify-xs-space-between"
|
|
89
89
|
>
|
|
90
90
|
<div
|
|
91
91
|
class="MuiGrid-root MuiGrid-item"
|