kitchen-simulator 1.1.1-test.74 → 1.1.1-test.75
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.
|
@@ -9,6 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
9
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
11
|
var _excluded = ["width", "height", "state", "stateExtractor"];
|
|
12
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
13
|
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; }
|
|
13
14
|
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; }
|
|
14
15
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -392,9 +393,9 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
392
393
|
pid: match.params.pid,
|
|
393
394
|
visualizerName: sessionStorage.getItem('visualizerName')
|
|
394
395
|
}).then(/*#__PURE__*/function () {
|
|
395
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
396
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(response) {
|
|
396
397
|
var projectElement, jsonData, _t;
|
|
397
|
-
return
|
|
398
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
398
399
|
while (1) switch (_context.prev = _context.next) {
|
|
399
400
|
case 0:
|
|
400
401
|
projectElement = response.data.projectElement;
|
|
@@ -6,6 +6,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
6
6
|
var _excluded = ["width", "height", "projectElement", "categoryData", "dataBundle", "configData", "options", "user", "auth", "featureFlags", "sentry", "analytics", "onEvent", "onSave", "onError"];
|
|
7
7
|
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; }
|
|
8
8
|
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; }
|
|
9
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
10
|
import React, { useEffect } from 'react';
|
|
10
11
|
import PropTypes from 'prop-types';
|
|
11
12
|
import { Provider } from 'react-redux';
|
|
@@ -122,9 +123,9 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
122
123
|
setCatalogInitiated = _React$useState4[1];
|
|
123
124
|
useEffect(function () {
|
|
124
125
|
var initMyCatalog = /*#__PURE__*/function () {
|
|
125
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
126
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
126
127
|
var x, _x, _x2;
|
|
127
|
-
return
|
|
128
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
128
129
|
while (1) switch (_context.prev = _context.next) {
|
|
129
130
|
case 0:
|
|
130
131
|
for (x in Areas) MyCatalog.registerElement(Areas[x]);
|
|
@@ -143,9 +144,9 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
143
144
|
};
|
|
144
145
|
}();
|
|
145
146
|
var loadMoldings = /*#__PURE__*/function () {
|
|
146
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
147
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
147
148
|
var door_color_alias, subgroup_ids, door_color_alias_ids, doorStyleData, molding, toeMoldingData, cabinets, promises;
|
|
148
|
-
return
|
|
149
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
149
150
|
while (1) switch (_context2.prev = _context2.next) {
|
|
150
151
|
case 0:
|
|
151
152
|
door_color_alias = [];
|
|
@@ -239,15 +240,15 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
239
240
|
};
|
|
240
241
|
}();
|
|
241
242
|
var loadSVGs = /*#__PURE__*/function () {
|
|
242
|
-
var _ref5 = _asyncToGenerator(/*#__PURE__*/
|
|
243
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
243
244
|
var svgLoadPromises, outlineData;
|
|
244
|
-
return
|
|
245
|
+
return _regeneratorRuntime.wrap(function (_context4) {
|
|
245
246
|
while (1) switch (_context4.prev = _context4.next) {
|
|
246
247
|
case 0:
|
|
247
248
|
svgLoadPromises = data.map(/*#__PURE__*/function () {
|
|
248
|
-
var _ref6 = _asyncToGenerator(/*#__PURE__*/
|
|
249
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(item) {
|
|
249
250
|
var _parsed$xml$viewBox, _parsed$xml$viewBox2, response, svgText, loader, parsed, _t;
|
|
250
|
-
return
|
|
251
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
251
252
|
while (1) switch (_context3.prev = _context3.next) {
|
|
252
253
|
case 0:
|
|
253
254
|
if (item.outline) {
|
|
@@ -312,8 +313,8 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
312
313
|
};
|
|
313
314
|
}();
|
|
314
315
|
var initCatalog = /*#__PURE__*/function () {
|
|
315
|
-
var _ref7 = _asyncToGenerator(/*#__PURE__*/
|
|
316
|
-
return
|
|
316
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
317
|
+
return _regeneratorRuntime.wrap(function (_context5) {
|
|
317
318
|
while (1) switch (_context5.prev = _context5.next) {
|
|
318
319
|
case 0:
|
|
319
320
|
setCatalogInitiated(false);
|
|
@@ -5,6 +5,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
11
|
import React, { Component } from 'react';
|
|
@@ -19,9 +20,9 @@ var Scene = /*#__PURE__*/function (_Component) {
|
|
|
19
20
|
return _createClass(Scene, [{
|
|
20
21
|
key: "componentWillReceiveProps",
|
|
21
22
|
value: function () {
|
|
22
|
-
var _componentWillReceiveProps = _asyncToGenerator(/*#__PURE__*/
|
|
23
|
+
var _componentWillReceiveProps = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(nextProps) {
|
|
23
24
|
var scene, catalog, height, layers, selectedLayer, msg, isNotFoundInElements, itemType;
|
|
24
|
-
return
|
|
25
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
25
26
|
while (1) switch (_context.prev = _context.next) {
|
|
26
27
|
case 0:
|
|
27
28
|
// console.log("componentDidMount", this.props.scene.hashCode(), nextProps.scene.hashCode());
|