@configuratorware/configurator-frontendgui 1.46.8 → 1.46.10

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.
@@ -101,9 +101,12 @@ var PdfDownload = /*#__PURE__*/function (_React$Component) {
101
101
  return _this;
102
102
  }
103
103
  _createClass(PdfDownload, [{
104
- key: "componentDidMount",
105
- value: function componentDidMount() {
106
- this.creatPdfUrl();
104
+ key: "componentDidUpdate",
105
+ value: function componentDidUpdate(prevProps) {
106
+ var show = this.props.show;
107
+ if (show && prevProps.show !== show) {
108
+ this.creatPdfUrl();
109
+ }
107
110
  }
108
111
  }, {
109
112
  key: "render",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-frontendgui",
3
- "version": "1.46.8",
3
+ "version": "1.46.10",
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.46.8",
9
+ "@configuratorware/scripts": "1.46.10",
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.46.8",
40
- "redhotmagma-visualization": "1.46.8",
39
+ "redhotmagma-graphics-editor": "1.46.10",
40
+ "redhotmagma-visualization": "1.46.10",
41
41
  "redux": "^4.1.0",
42
42
  "redux-logger": "^3.0.6",
43
43
  "redux-persist": "^5.10.0",
@@ -51,8 +51,11 @@ class PdfDownload extends React.Component {
51
51
  state = {
52
52
  pdfUrl: '',
53
53
  };
54
- componentDidMount() {
55
- this.creatPdfUrl();
54
+ componentDidUpdate(prevProps) {
55
+ const { show } = this.props;
56
+ if (show && prevProps.show !== show) {
57
+ this.creatPdfUrl();
58
+ }
56
59
  }
57
60
  creatPdfUrl = async () => {
58
61
  const pdfUrl = await Services.interaction.createPdfUrl('user');