@configuratorware/configurator-frontendgui 1.31.2 → 1.31.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/App/Modules/Designer/Components/ImageColorize/index.js +10 -3
- package/App/Shared/Components/PriceOverview/index.js +2 -1
- package/package.json +4 -4
- package/scripts/getDefaultWebpackConfig.js +3 -1
- package/src/App/Modules/Designer/Components/ImageColorize/index.js +6 -3
- package/src/App/Shared/Components/PriceOverview/index.js +1 -0
|
@@ -229,7 +229,8 @@ var ImageColorize = /*#__PURE__*/function (_React$Component) {
|
|
|
229
229
|
selectedColorPalette: null,
|
|
230
230
|
vectorizeThreshold: 0,
|
|
231
231
|
isThresholdSliderDisabled: false,
|
|
232
|
-
designProductionMethodName: ''
|
|
232
|
+
designProductionMethodName: '',
|
|
233
|
+
vectorizeRequested: false
|
|
233
234
|
});
|
|
234
235
|
|
|
235
236
|
_defineProperty(_assertThisInitialized(_this), "onVectorizeThresholdChange", function (event) {
|
|
@@ -327,6 +328,11 @@ var ImageColorize = /*#__PURE__*/function (_React$Component) {
|
|
|
327
328
|
|
|
328
329
|
_defineProperty(_assertThisInitialized(_this), "onVectorizeToggleChange", function (e, value) {
|
|
329
330
|
var onVectorizeToggleChange = _this.props.onVectorizeToggleChange;
|
|
331
|
+
|
|
332
|
+
_this.setState({
|
|
333
|
+
vectorizeRequested: value
|
|
334
|
+
});
|
|
335
|
+
|
|
330
336
|
onVectorizeToggleChange && onVectorizeToggleChange(value);
|
|
331
337
|
});
|
|
332
338
|
|
|
@@ -449,7 +455,8 @@ var ImageColorize = /*#__PURE__*/function (_React$Component) {
|
|
|
449
455
|
customControlElements = _this$props4.customControlElements;
|
|
450
456
|
var _this$state = this.state,
|
|
451
457
|
selectedColor = _this$state.selectedColor,
|
|
452
|
-
vectorizeThreshold = _this$state.vectorizeThreshold
|
|
458
|
+
vectorizeThreshold = _this$state.vectorizeThreshold,
|
|
459
|
+
vectorizeRequested = _this$state.vectorizeRequested;
|
|
453
460
|
var onColorRemoveClick = this.props.onColorRemoveClick;
|
|
454
461
|
var thresholdValue = colorAmountList.indexOf(vectorizeThreshold) === -1 ? 0 : vectorizeThreshold;
|
|
455
462
|
var amountIsValid = this.validateAmount();
|
|
@@ -488,7 +495,7 @@ var ImageColorize = /*#__PURE__*/function (_React$Component) {
|
|
|
488
495
|
}) : (0, _i18n.t)('imageEditDialog.imageColors', {
|
|
489
496
|
amount: colorAmount
|
|
490
497
|
})));
|
|
491
|
-
}))), imageColorsWereEdited && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
498
|
+
}))), (imageColorsWereEdited || vectorizeRequested) && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
492
499
|
variant: "outlined",
|
|
493
500
|
onClick: this.resetImageState,
|
|
494
501
|
disabled: isLoading,
|
|
@@ -51,7 +51,8 @@ var styles = function styles(theme) {
|
|
|
51
51
|
return {
|
|
52
52
|
cardPriceOverview: (_cardPriceOverview = {
|
|
53
53
|
fontSize: 12,
|
|
54
|
-
boxShadow: 'none'
|
|
54
|
+
boxShadow: 'none',
|
|
55
|
+
overflow: 'initial'
|
|
55
56
|
}, _defineProperty(_cardPriceOverview, theme.breakpoints.down('md'), {
|
|
56
57
|
boxShadow: 'none'
|
|
57
58
|
}), _defineProperty(_cardPriceOverview, theme.breakpoints.down('sm'), {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.5",
|
|
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.31.
|
|
9
|
+
"@configuratorware/scripts": "1.31.5",
|
|
10
10
|
"@hot-loader/react-dom": "^17.0.1",
|
|
11
11
|
"@material-ui/core": "^4.12.2",
|
|
12
12
|
"@material-ui/icons": "^4.11.2",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-router-dom": "^5.2.0",
|
|
40
40
|
"react-swipeable": "^5.5.1",
|
|
41
41
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
42
|
-
"redhotmagma-graphics-editor": "1.31.
|
|
43
|
-
"redhotmagma-visualization": "1.31.
|
|
42
|
+
"redhotmagma-graphics-editor": "1.31.5",
|
|
43
|
+
"redhotmagma-visualization": "1.31.5",
|
|
44
44
|
"redux": "^4.1.0",
|
|
45
45
|
"redux-logger": "^3.0.6",
|
|
46
46
|
"redux-persist": "^5.10.0",
|
|
@@ -175,6 +175,7 @@ class ImageColorize extends React.Component {
|
|
|
175
175
|
vectorizeThreshold: 0,
|
|
176
176
|
isThresholdSliderDisabled: false,
|
|
177
177
|
designProductionMethodName: '',
|
|
178
|
+
vectorizeRequested: false,
|
|
178
179
|
};
|
|
179
180
|
|
|
180
181
|
componentDidMount() {
|
|
@@ -256,7 +257,9 @@ class ImageColorize extends React.Component {
|
|
|
256
257
|
|
|
257
258
|
onVectorizeToggleChange = (e, value) => {
|
|
258
259
|
const { onVectorizeToggleChange } = this.props;
|
|
259
|
-
|
|
260
|
+
this.setState({
|
|
261
|
+
vectorizeRequested: value,
|
|
262
|
+
});
|
|
260
263
|
onVectorizeToggleChange && onVectorizeToggleChange(value);
|
|
261
264
|
};
|
|
262
265
|
|
|
@@ -331,7 +334,7 @@ class ImageColorize extends React.Component {
|
|
|
331
334
|
colorAmountList,
|
|
332
335
|
customControlElements,
|
|
333
336
|
} = this.props;
|
|
334
|
-
const { selectedColor, vectorizeThreshold } = this.state;
|
|
337
|
+
const { selectedColor, vectorizeThreshold, vectorizeRequested } = this.state;
|
|
335
338
|
|
|
336
339
|
const { onColorRemoveClick } = this.props;
|
|
337
340
|
|
|
@@ -377,7 +380,7 @@ class ImageColorize extends React.Component {
|
|
|
377
380
|
))}
|
|
378
381
|
</Select>
|
|
379
382
|
</AnalyticsWrapper>
|
|
380
|
-
{imageColorsWereEdited && (
|
|
383
|
+
{(imageColorsWereEdited || vectorizeRequested) && (
|
|
381
384
|
<Button
|
|
382
385
|
variant="outlined"
|
|
383
386
|
onClick={this.resetImageState}
|