kitchen-simulator 1.0.0-clark.90 → 1.0.0-clark.91
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
5
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
6
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
7
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
8
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
9
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
10
|
var _excluded = ["width", "height", "state", "stateExtractor"];
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -40,23 +40,6 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
40
40
|
_this = _callSuper(this, LiteKitchenConfigurator, [props]);
|
|
41
41
|
|
|
42
42
|
// utm tracking
|
|
43
|
-
_defineProperty(_this, "handleBeforeUnload", function (e) {
|
|
44
|
-
var areas = _this.props.stateExtractor(_this.props.state).getIn(['scene', 'layers', _this.props.stateExtractor(_this.props.state).scene.selectedLayer, 'areas']);
|
|
45
|
-
if (!_this.state.isSaved && areas.size > 0) {
|
|
46
|
-
setTimeout(function () {
|
|
47
|
-
_this.setState({
|
|
48
|
-
savePromptVisible: true,
|
|
49
|
-
isLeaving: true
|
|
50
|
-
});
|
|
51
|
-
}, 500);
|
|
52
|
-
_this.saveProjectToStorage();
|
|
53
|
-
|
|
54
|
-
// This line is required to trigger the browser confirmation dialog
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
e.returnValue = '';
|
|
57
|
-
return '';
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
43
|
var utmDetailParams = new URLSearchParams(_this.props.location && _this.props.location.search);
|
|
61
44
|
var utmStrEncoded = utmDetailParams.get('details');
|
|
62
45
|
var utmRequestData = null;
|
|
@@ -342,8 +325,6 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
342
325
|
}, {
|
|
343
326
|
key: "componentDidMount",
|
|
344
327
|
value: function componentDidMount() {
|
|
345
|
-
window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
346
|
-
console.log('context =>', this.context);
|
|
347
328
|
window.forRedo = [];
|
|
348
329
|
var store = this.context.store;
|
|
349
330
|
var _this$props2 = this.props,
|
|
@@ -354,15 +335,6 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
354
335
|
return newplugin(store, stateExtractor);
|
|
355
336
|
});
|
|
356
337
|
}
|
|
357
|
-
}, {
|
|
358
|
-
key: "componentWillUnmount",
|
|
359
|
-
value: function componentWillUnmount() {
|
|
360
|
-
window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
361
|
-
window.onbeforeunload = null;
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
key: "componentWillMount",
|
|
365
|
-
value: function componentWillMount() {}
|
|
366
338
|
}, {
|
|
367
339
|
key: "componentWillReceiveProps",
|
|
368
340
|
value: function componentWillReceiveProps(nextProps) {
|
|
@@ -9,12 +9,12 @@ exports["default"] = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
13
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
15
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
17
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _axios = _interopRequireDefault(require("axios"));
|
|
19
19
|
var _convertUnitsLite = require("./utils/convert-units-lite");
|
|
20
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -49,23 +49,6 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
49
49
|
_this = _callSuper(this, LiteKitchenConfigurator, [props]);
|
|
50
50
|
|
|
51
51
|
// utm tracking
|
|
52
|
-
(0, _defineProperty2["default"])(_this, "handleBeforeUnload", function (e) {
|
|
53
|
-
var areas = _this.props.stateExtractor(_this.props.state).getIn(['scene', 'layers', _this.props.stateExtractor(_this.props.state).scene.selectedLayer, 'areas']);
|
|
54
|
-
if (!_this.state.isSaved && areas.size > 0) {
|
|
55
|
-
setTimeout(function () {
|
|
56
|
-
_this.setState({
|
|
57
|
-
savePromptVisible: true,
|
|
58
|
-
isLeaving: true
|
|
59
|
-
});
|
|
60
|
-
}, 500);
|
|
61
|
-
_this.saveProjectToStorage();
|
|
62
|
-
|
|
63
|
-
// This line is required to trigger the browser confirmation dialog
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
e.returnValue = '';
|
|
66
|
-
return '';
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
52
|
var utmDetailParams = new URLSearchParams(_this.props.location && _this.props.location.search);
|
|
70
53
|
var utmStrEncoded = utmDetailParams.get('details');
|
|
71
54
|
var utmRequestData = null;
|
|
@@ -351,8 +334,6 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
351
334
|
}, {
|
|
352
335
|
key: "componentDidMount",
|
|
353
336
|
value: function componentDidMount() {
|
|
354
|
-
window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
355
|
-
console.log('context =>', this.context);
|
|
356
337
|
window.forRedo = [];
|
|
357
338
|
var store = this.context.store;
|
|
358
339
|
var _this$props2 = this.props,
|
|
@@ -363,15 +344,6 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
363
344
|
return newplugin(store, stateExtractor);
|
|
364
345
|
});
|
|
365
346
|
}
|
|
366
|
-
}, {
|
|
367
|
-
key: "componentWillUnmount",
|
|
368
|
-
value: function componentWillUnmount() {
|
|
369
|
-
window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
370
|
-
window.onbeforeunload = null;
|
|
371
|
-
}
|
|
372
|
-
}, {
|
|
373
|
-
key: "componentWillMount",
|
|
374
|
-
value: function componentWillMount() {}
|
|
375
347
|
}, {
|
|
376
348
|
key: "componentWillReceiveProps",
|
|
377
349
|
value: function componentWillReceiveProps(nextProps) {
|