@configuratorware/configurator-frontendgui 1.47.10 → 1.47.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/App/Modules/Creator/Components/Option/index.js +1 -5
- package/package.json +4 -4
- package/src/App/Modules/Creator/Components/Option/__snapshots__/index.test.js.snap +0 -14
- package/src/App/Modules/Creator/Components/Option/index.js +1 -6
- package/src/App/Modules/Creator/Components/Option/index.test.js +2 -2
|
@@ -207,11 +207,7 @@ var Option = function Option(_ref) {
|
|
|
207
207
|
return (0, _get["default"])(option, 'stock.traffic_light', false) !== 'red';
|
|
208
208
|
};
|
|
209
209
|
var shouldDisplayDetails = function shouldDisplayDetails() {
|
|
210
|
-
|
|
211
|
-
if (option["abstract"] || option.description || detailImage) {
|
|
212
|
-
displayDetails = true;
|
|
213
|
-
}
|
|
214
|
-
return displayDetails;
|
|
210
|
+
return option.description || detailImage;
|
|
215
211
|
};
|
|
216
212
|
var onOptionSelected = function onOptionSelected() {
|
|
217
213
|
var optionClassificationIsMultiselect = (0, _get["default"])(optionclassification, 'is_multiselect', false);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.11",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.47.
|
|
9
|
+
"@configuratorware/scripts": "1.47.11",
|
|
10
10
|
"@material-ui/core": "^4.12.4",
|
|
11
11
|
"@material-ui/icons": "^4.11.3",
|
|
12
12
|
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"react-router-dom": "^5.3.4",
|
|
37
37
|
"react-swipeable": "^5.5.1",
|
|
38
38
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
39
|
-
"redhotmagma-graphics-editor": "1.47.
|
|
40
|
-
"redhotmagma-visualization": "1.47.
|
|
39
|
+
"redhotmagma-graphics-editor": "1.47.11",
|
|
40
|
+
"redhotmagma-visualization": "1.47.11",
|
|
41
41
|
"redux": "^4.1.0",
|
|
42
42
|
"redux-logger": "^3.0.6",
|
|
43
43
|
"redux-persist": "^5.10.0",
|
|
@@ -112,13 +112,6 @@ exports[`Option renders with Incompatibility link 1`] = `
|
|
|
112
112
|
>
|
|
113
113
|
€ 123.00
|
|
114
114
|
</div>
|
|
115
|
-
<div
|
|
116
|
-
class="Option-description-53"
|
|
117
|
-
>
|
|
118
|
-
<p>
|
|
119
|
-
abstract
|
|
120
|
-
</p>
|
|
121
|
-
</div>
|
|
122
115
|
<div
|
|
123
116
|
class="Option-details-56"
|
|
124
117
|
>
|
|
@@ -428,13 +421,6 @@ exports[`Option renders with details 1`] = `
|
|
|
428
421
|
>
|
|
429
422
|
€ 123.00
|
|
430
423
|
</div>
|
|
431
|
-
<div
|
|
432
|
-
class="Option-description-41"
|
|
433
|
-
>
|
|
434
|
-
<p>
|
|
435
|
-
abstract
|
|
436
|
-
</p>
|
|
437
|
-
</div>
|
|
438
424
|
<div
|
|
439
425
|
class="Option-details-44"
|
|
440
426
|
>
|
|
@@ -193,12 +193,7 @@ const Option = ({ children, render, ...props }) => {
|
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
const shouldDisplayDetails = () => {
|
|
196
|
-
|
|
197
|
-
if (option.abstract || option.description || detailImage) {
|
|
198
|
-
displayDetails = true;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return displayDetails;
|
|
196
|
+
return option.description || detailImage;
|
|
202
197
|
};
|
|
203
198
|
|
|
204
199
|
const onOptionSelected = () => {
|
|
@@ -82,7 +82,7 @@ describe('Option', () => {
|
|
|
82
82
|
thumbnail: '',
|
|
83
83
|
title: 'Argentina 1000',
|
|
84
84
|
priceFormatted: '€ 123.00',
|
|
85
|
-
|
|
85
|
+
description: 'description',
|
|
86
86
|
amount_is_selectable: false,
|
|
87
87
|
check_results: {
|
|
88
88
|
status: true,
|
|
@@ -97,7 +97,7 @@ describe('Option', () => {
|
|
|
97
97
|
thumbnail: '',
|
|
98
98
|
title: 'Argentina 1000',
|
|
99
99
|
priceFormatted: '€ 123.00',
|
|
100
|
-
|
|
100
|
+
description: 'description',
|
|
101
101
|
amount_is_selectable: false,
|
|
102
102
|
};
|
|
103
103
|
const tree = render(createOption(testOption));
|