@configuratorware/configurator-frontendgui 1.53.6 → 1.54.0
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.
|
@@ -483,7 +483,7 @@ function getSelectedViewName(designArea) {
|
|
|
483
483
|
(0, _get["default"])(designArea, 'identifier') ||
|
|
484
484
|
// fallback to the design area identifier (currently no known use case)
|
|
485
485
|
'default' // if no design area selected use the default view
|
|
486
|
-
|
|
486
|
+
;
|
|
487
487
|
}
|
|
488
488
|
var hasPlaceHolderImagesForActiveDesignArea = exports.hasPlaceHolderImagesForActiveDesignArea = function hasPlaceHolderImagesForActiveDesignArea(state) {
|
|
489
489
|
var designData = getDesignDataForSelectedDesignArea(state);
|
|
@@ -378,8 +378,8 @@ var applySvgContentOperations = exports.applySvgContentOperations = function app
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
// remove doctype if present
|
|
382
|
-
svgContent = svgContent.replace(/<!DOCTYPE[^>]*>/gi, '');
|
|
381
|
+
// remove doctype if present (including nested entity definitions)
|
|
382
|
+
svgContent = svgContent.replace(/<!DOCTYPE\s+svg[^>[]*(\[[^\]]*\])?\s*>/gi, '');
|
|
383
383
|
if (operations && operations.vectorize && operations.vectorizeColorsMap && Object.keys(operations.vectorizeColorsMap).length) {
|
|
384
384
|
var colorRegex = new RegExp("(".concat(Object.keys(operations.vectorizeColorsMap).join('|'), ")"), 'ig');
|
|
385
385
|
svgContent = svgContent.replace(colorRegex, function (match) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.0",
|
|
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.
|
|
9
|
+
"@configuratorware/scripts": "1.54.0",
|
|
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.
|
|
40
|
-
"redhotmagma-visualization": "1.
|
|
39
|
+
"redhotmagma-graphics-editor": "1.54.0",
|
|
40
|
+
"redhotmagma-visualization": "1.54.0",
|
|
41
41
|
"redux": "^4.1.0",
|
|
42
42
|
"redux-logger": "^3.0.6",
|
|
43
43
|
"redux-persist": "^5.10.0",
|
|
@@ -459,8 +459,8 @@ export const applySvgContentOperations = (original, preview, operations, svgCont
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
// remove doctype if present
|
|
463
|
-
svgContent = svgContent.replace(/<!DOCTYPE[^>]*>/gis, '');
|
|
462
|
+
// remove doctype if present (including nested entity definitions)
|
|
463
|
+
svgContent = svgContent.replace(/<!DOCTYPE\s+svg[^>[]*(\[[^\]]*\])?\s*>/gis, '');
|
|
464
464
|
|
|
465
465
|
if (
|
|
466
466
|
operations &&
|
|
@@ -475,7 +475,6 @@ export const applySvgContentOperations = (original, preview, operations, svgCont
|
|
|
475
475
|
return isValidHex(value) ? value : '#000000';
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
-
|
|
479
478
|
return 'data:image/svg+xml;base64,' + btoa(svgContent);
|
|
480
479
|
};
|
|
481
480
|
|