kitchen-simulator 1.1.1-test.26 → 1.1.1-test.27
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/es/KitchenConfigurator.js +1 -1
- package/es/KitchenConfiguratorApp.js +1 -1
- package/es/catalog/properties/property-checkbox.js +1 -1
- package/es/catalog/properties/property-color.js +1 -1
- package/es/catalog/properties/property-enum.js +1 -1
- package/es/catalog/properties/property-hidden.js +1 -1
- package/es/catalog/properties/property-lenght-measure.js +1 -1
- package/es/catalog/properties/property-length-measure.js +1 -1
- package/es/catalog/properties/property-length-measure_hole.js +1 -1
- package/es/catalog/properties/property-number.js +1 -1
- package/es/catalog/properties/property-read-only.js +1 -1
- package/es/catalog/properties/property-string.js +1 -1
- package/es/catalog/properties/property-toggle.js +1 -1
- package/es/compat/propTypesCompat.js +8 -0
- package/es/components/content.js +1 -1
- package/es/components/style/button.js +1 -1
- package/es/components/style/content-container.js +1 -1
- package/es/components/style/content-title.js +1 -1
- package/es/components/style/form-number-input.js +1 -1
- package/es/components/style/form-number-input_2.js +1 -1
- package/es/components/viewer2d/area.js +1 -1
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +1 -1
- package/es/components/viewer2d/grids/grid-streak.js +1 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +1 -1
- package/es/components/viewer2d/grids/grids.js +1 -1
- package/es/components/viewer2d/group.js +1 -1
- package/es/components/viewer2d/item.js +1 -1
- package/es/components/viewer2d/layer.js +1 -1
- package/es/components/viewer2d/line.js +1 -1
- package/es/components/viewer2d/ruler.js +1 -1
- package/es/components/viewer2d/rulerDist.js +1 -1
- package/es/components/viewer2d/rulerX.js +1 -1
- package/es/components/viewer2d/rulerY.js +1 -1
- package/es/components/viewer2d/scene.js +1 -1
- package/es/components/viewer2d/snap.js +1 -1
- package/es/components/viewer2d/state.js +1 -1
- package/es/components/viewer2d/vertex.js +1 -1
- package/es/components/viewer2d/viewer2d.js +1 -1
- package/es/components/viewer3d/viewer3d-first-person.js +1 -1
- package/es/components/viewer3d/viewer3d.js +1 -1
- package/es/reducers/user-reducer.js +1 -1
- package/es/utils/react-if.js +1 -1
- package/lib/KitchenConfigurator.js +20 -20
- package/lib/KitchenConfiguratorApp.js +27 -27
- package/lib/catalog/properties/property-checkbox.js +7 -7
- package/lib/catalog/properties/property-color.js +7 -7
- package/lib/catalog/properties/property-enum.js +7 -7
- package/lib/catalog/properties/property-hidden.js +7 -7
- package/lib/catalog/properties/property-lenght-measure.js +9 -9
- package/lib/catalog/properties/property-length-measure.js +9 -9
- package/lib/catalog/properties/property-length-measure_hole.js +9 -9
- package/lib/catalog/properties/property-number.js +8 -8
- package/lib/catalog/properties/property-read-only.js +7 -7
- package/lib/catalog/properties/property-string.js +7 -7
- package/lib/catalog/properties/property-toggle.js +7 -7
- package/lib/compat/propTypesCompat.js +26 -0
- package/lib/components/content.js +6 -6
- package/lib/components/style/button.js +5 -5
- package/lib/components/style/content-container.js +4 -4
- package/lib/components/style/content-title.js +2 -2
- package/lib/components/style/form-number-input.js +15 -15
- package/lib/components/style/form-number-input_2.js +12 -12
- package/lib/components/viewer2d/area.js +4 -4
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +4 -4
- package/lib/components/viewer2d/grids/grid-streak.js +4 -4
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +4 -4
- package/lib/components/viewer2d/grids/grids.js +2 -2
- package/lib/components/viewer2d/group.js +6 -6
- package/lib/components/viewer2d/item.js +6 -6
- package/lib/components/viewer2d/layer.js +4 -4
- package/lib/components/viewer2d/line.js +5 -5
- package/lib/components/viewer2d/ruler.js +4 -4
- package/lib/components/viewer2d/rulerDist.js +4 -4
- package/lib/components/viewer2d/rulerX.js +12 -12
- package/lib/components/viewer2d/rulerY.js +10 -10
- package/lib/components/viewer2d/scene.js +5 -5
- package/lib/components/viewer2d/snap.js +4 -4
- package/lib/components/viewer2d/state.js +4 -4
- package/lib/components/viewer2d/vertex.js +3 -3
- package/lib/components/viewer2d/viewer2d.js +12 -12
- package/lib/components/viewer3d/viewer3d-first-person.js +10 -10
- package/lib/components/viewer3d/viewer3d.js +12 -12
- package/lib/reducers/user-reducer.js +1 -1
- package/lib/utils/react-if.js +3 -3
- package/package.json +8 -8
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
import axios from 'axios';
|
|
32
32
|
import * as convert from 'convert-units';
|
|
33
33
|
import { Plugins as PlannerPlugins } from "./index";
|
|
34
|
-
import PropTypes from
|
|
34
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
35
35
|
import React, { Component } from 'react';
|
|
36
36
|
import ReactGA from 'react-ga4';
|
|
37
37
|
import { hotjar } from 'react-hotjar';
|
|
@@ -19,7 +19,7 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
19
19
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
20
20
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
21
21
|
import React, { useEffect } from 'react';
|
|
22
|
-
import PropTypes from
|
|
22
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
23
23
|
import { Provider } from 'react-redux';
|
|
24
24
|
import { createStore } from 'redux';
|
|
25
25
|
import * as Models from "./models";
|
|
@@ -7,7 +7,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import PropTypes from
|
|
10
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
11
11
|
import styled from 'styled-components';
|
|
12
12
|
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
13
13
|
var FlipWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 15px 0;\n justify-content: space-between;\n"])));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { FormLabel, FormColorInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyColor(_ref) {
|
|
@@ -7,7 +7,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
7
7
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import PropTypes from
|
|
10
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
11
11
|
import { Seq } from 'immutable';
|
|
12
12
|
import { FormLabel, FormSelect } from "../../components/style/export";
|
|
13
13
|
import PropertyStyle from "./shared-property-style";
|
|
@@ -3,7 +3,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from
|
|
6
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
7
7
|
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNITS_LENGTH, UNIT_INCH } from "./../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
9
|
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
@@ -5,7 +5,7 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import PropTypes from
|
|
8
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
9
9
|
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
10
10
|
import convert from 'convert-units';
|
|
11
11
|
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
@@ -3,7 +3,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from
|
|
6
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
7
7
|
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
9
|
import { FormLabel, FormNumberInput1, FormSelect } from "../../components/style/export";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { FormLabel, FormNumberInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyNumber(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { FormLabel } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyReadOnly(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { FormLabel, FormTextInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
var tableStyle = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { FormLabel, Button } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyToggle(_ref) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Bulletproof wrapper that works whether `prop-types` exposes default or only named exports.
|
|
2
|
+
import * as NS from "src/compat/propTypesCompat";
|
|
3
|
+
|
|
4
|
+
// If there's a default export, use it; otherwise fall back to the namespace itself (CJS shape)
|
|
5
|
+
var PropTypes = 'default' in NS ? NS["default"] : NS;
|
|
6
|
+
export default PropTypes;
|
|
7
|
+
// Preserve named exports like shape, arrayOf, etc.
|
|
8
|
+
export * from "src/compat/propTypesCompat";
|
package/es/components/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
4
|
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
5
|
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
@@ -16,7 +16,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
16
16
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
17
17
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
18
|
import React, { Component } from 'react';
|
|
19
|
-
import PropTypes from
|
|
19
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
20
20
|
import * as SharedStyle from "../../shared-style";
|
|
21
21
|
var BASE_STYLE = {
|
|
22
22
|
display: 'inline-block',
|
|
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import PropTypes from
|
|
8
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
9
9
|
var STYLE = {
|
|
10
10
|
padding: '0 20px',
|
|
11
11
|
overflowY: 'auto'
|
|
@@ -9,7 +9,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import PropTypes from
|
|
12
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
13
13
|
import * as SharedStyle from "../../shared-style";
|
|
14
14
|
var STYLE = {
|
|
15
15
|
color: SharedStyle.PRIMARY_COLOR.alt,
|
|
@@ -14,7 +14,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
14
14
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
15
15
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
16
|
import React, { Component } from 'react';
|
|
17
|
-
import PropTypes from
|
|
17
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
18
18
|
import { KEYBOARD_BUTTON_CODE, TEXT_COLOR_NEUTRAL_0, SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY } from "../../constants";
|
|
19
19
|
import styled from 'styled-components';
|
|
20
20
|
import { isValidNumber } from "../../utils/helper";
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
import { MdUpdate } from 'react-icons/md';
|
|
21
21
|
import { KEYBOARD_BUTTON_CODE } from "../../constants";
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { memo } from 'react';
|
|
8
|
-
import PropTypes from
|
|
8
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
9
9
|
import GridStreak from "./grid-streak";
|
|
10
10
|
var propsAreEqual = function propsAreEqual(oldScene, newScene) {
|
|
11
11
|
return oldScene.scene.width === newScene.scene.width && oldScene.scene.height === newScene.scene.height && oldScene.scene.grids === newScene.scene.grids;
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { useState } from 'react';
|
|
9
|
-
import PropTypes from
|
|
9
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
10
10
|
import If from "../../utils/react-if";
|
|
11
11
|
import RulerDist from "./rulerDist";
|
|
12
12
|
import convert from 'convert-units';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { Line, Area, Vertex, Item, Group } from "./export";
|
|
4
4
|
import { GeometryUtils } from "../../utils/export";
|
|
5
5
|
import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import { GeometryUtils } from "../../utils/export";
|
|
4
4
|
import Ruler from "./ruler";
|
|
5
5
|
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerX = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerX(props, context) {
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerY = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerY(props, context) {
|
|
@@ -22,7 +22,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
22
22
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
23
23
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
24
24
|
import React, { Component } from 'react';
|
|
25
|
-
import PropTypes from
|
|
25
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
26
26
|
import { Layer, Grids } from "./export";
|
|
27
27
|
import { searchForSkuValue } from "./utils";
|
|
28
28
|
var Scene = /*#__PURE__*/function (_Component) {
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import PropTypes from
|
|
8
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
9
9
|
import Scene from "./scene";
|
|
10
10
|
import Snap from "./snap";
|
|
11
11
|
import * as SharedStyle from "../../shared-style";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
3
3
|
import * as SharedStyle from "../../shared-style";
|
|
4
4
|
//Space from the center of the point(Use cases:x - vertexthickness,y + vertexthickness )
|
|
5
5
|
var vertexthickness = 4;
|
|
@@ -15,7 +15,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
15
15
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
16
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
19
19
|
import { ReactSVGPanZoom, TOOL_AUTO, TOOL_NONE, TOOL_PAN, TOOL_ZOOM_IN, TOOL_ZOOM_OUT, zoom } from 'react-svg-pan-zoom';
|
|
20
20
|
import * as constants from "../../constants";
|
|
21
21
|
import State from "./state";
|
|
@@ -14,7 +14,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
14
14
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
15
15
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import PropTypes from
|
|
17
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
18
18
|
import ReactDOM from 'react-dom';
|
|
19
19
|
import * as Three from 'three';
|
|
20
20
|
import { parseData, updateScene } from "./scene-creator";
|
|
@@ -18,7 +18,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
18
18
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
19
19
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import PropTypes from
|
|
21
|
+
import PropTypes from "src/compat/propTypesCompat";
|
|
22
22
|
import ReactDOM from 'react-dom';
|
|
23
23
|
import * as Three from 'three';
|
|
24
24
|
import { checkCabinetOverlap, createBacksplash, deleteSpecifiedMeshObjects, fVLine, getDistances, parseData, updateScene, visibleTransformBox } from "./scene-creator";
|
package/es/utils/react-if.js
CHANGED
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
8
8
|
var convert = _interopRequireWildcard(require("convert-units"));
|
|
9
9
|
var _index = require("./index");
|
|
10
|
-
var
|
|
10
|
+
var _propTypesCompat = _interopRequireDefault(require("src/compat/propTypesCompat"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactGa = _interopRequireDefault(require("react-ga4"));
|
|
13
13
|
var _reactHotjar = require("react-hotjar");
|
|
@@ -608,30 +608,30 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
608
608
|
}]);
|
|
609
609
|
}(_react.Component);
|
|
610
610
|
KitchenConfigurator.propTypes = {
|
|
611
|
-
translator:
|
|
612
|
-
catalog:
|
|
613
|
-
allowProjectFileSupport:
|
|
614
|
-
plugins:
|
|
615
|
-
autosaveKey:
|
|
616
|
-
autosaveDelay:
|
|
617
|
-
width:
|
|
618
|
-
height:
|
|
619
|
-
stateExtractor:
|
|
620
|
-
toolbarButtons:
|
|
621
|
-
sidebarComponents:
|
|
622
|
-
footerbarComponents:
|
|
623
|
-
customContents:
|
|
624
|
-
softwareSignature:
|
|
625
|
-
configData:
|
|
611
|
+
translator: _propTypesCompat["default"].instanceOf(_translator["default"]),
|
|
612
|
+
catalog: _propTypesCompat["default"].instanceOf(_catalog["default"]),
|
|
613
|
+
allowProjectFileSupport: _propTypesCompat["default"].bool,
|
|
614
|
+
plugins: _propTypesCompat["default"].arrayOf(_propTypesCompat["default"].func),
|
|
615
|
+
autosaveKey: _propTypesCompat["default"].string,
|
|
616
|
+
autosaveDelay: _propTypesCompat["default"].number,
|
|
617
|
+
width: _propTypesCompat["default"].number.isRequired,
|
|
618
|
+
height: _propTypesCompat["default"].number.isRequired,
|
|
619
|
+
stateExtractor: _propTypesCompat["default"].func.isRequired,
|
|
620
|
+
toolbarButtons: _propTypesCompat["default"].array,
|
|
621
|
+
sidebarComponents: _propTypesCompat["default"].array,
|
|
622
|
+
footerbarComponents: _propTypesCompat["default"].array,
|
|
623
|
+
customContents: _propTypesCompat["default"].object,
|
|
624
|
+
softwareSignature: _propTypesCompat["default"].string,
|
|
625
|
+
configData: _propTypesCompat["default"].object
|
|
626
626
|
};
|
|
627
627
|
KitchenConfigurator.contextTypes = {
|
|
628
|
-
store:
|
|
628
|
+
store: _propTypesCompat["default"].object.isRequired
|
|
629
629
|
};
|
|
630
630
|
KitchenConfigurator.childContextTypes = _objectSpread(_objectSpread({}, (0, _objectsUtils.objectsMap)(_export["default"], function () {
|
|
631
|
-
return
|
|
631
|
+
return _propTypesCompat["default"].object;
|
|
632
632
|
})), {}, {
|
|
633
|
-
translator:
|
|
634
|
-
catalog:
|
|
633
|
+
translator: _propTypesCompat["default"].object,
|
|
634
|
+
catalog: _propTypesCompat["default"].object
|
|
635
635
|
});
|
|
636
636
|
KitchenConfigurator.defaultProps = {
|
|
637
637
|
translator: new _translator["default"](),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = KitchenConfiguratorApp;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _propTypesCompat = _interopRequireDefault(require("src/compat/propTypesCompat"));
|
|
10
10
|
var _reactRedux = require("react-redux");
|
|
11
11
|
var _redux = require("redux");
|
|
12
12
|
var Models = _interopRequireWildcard(require("./models"));
|
|
@@ -470,33 +470,33 @@ function KitchenConfiguratorApp(props) {
|
|
|
470
470
|
/* ============================== prop types ============================== */
|
|
471
471
|
|
|
472
472
|
KitchenConfiguratorApp.propTypes = {
|
|
473
|
-
width:
|
|
474
|
-
height:
|
|
475
|
-
projectElement:
|
|
476
|
-
categoryData:
|
|
477
|
-
dataBundle:
|
|
478
|
-
configData:
|
|
479
|
-
catalog:
|
|
480
|
-
logoImg:
|
|
481
|
-
companyUrl:
|
|
482
|
-
toolbarButtons:
|
|
483
|
-
options:
|
|
484
|
-
user:
|
|
485
|
-
auth:
|
|
486
|
-
featureFlags:
|
|
487
|
-
sentry:
|
|
488
|
-
dsn:
|
|
489
|
-
environment:
|
|
473
|
+
width: _propTypesCompat["default"].oneOfType([_propTypesCompat["default"].number, _propTypesCompat["default"].string]),
|
|
474
|
+
height: _propTypesCompat["default"].oneOfType([_propTypesCompat["default"].number, _propTypesCompat["default"].string]),
|
|
475
|
+
projectElement: _propTypesCompat["default"].arrayOf(_propTypesCompat["default"].object),
|
|
476
|
+
categoryData: _propTypesCompat["default"].any,
|
|
477
|
+
dataBundle: _propTypesCompat["default"].any,
|
|
478
|
+
configData: _propTypesCompat["default"].any,
|
|
479
|
+
catalog: _propTypesCompat["default"].oneOfType([_propTypesCompat["default"].object, _propTypesCompat["default"].instanceOf(Models.Catalog)]),
|
|
480
|
+
logoImg: _propTypesCompat["default"].any,
|
|
481
|
+
companyUrl: _propTypesCompat["default"].string,
|
|
482
|
+
toolbarButtons: _propTypesCompat["default"].any,
|
|
483
|
+
options: _propTypesCompat["default"].object,
|
|
484
|
+
user: _propTypesCompat["default"].object,
|
|
485
|
+
auth: _propTypesCompat["default"].object,
|
|
486
|
+
featureFlags: _propTypesCompat["default"].object,
|
|
487
|
+
sentry: _propTypesCompat["default"].shape({
|
|
488
|
+
dsn: _propTypesCompat["default"].string,
|
|
489
|
+
environment: _propTypesCompat["default"].string
|
|
490
490
|
}),
|
|
491
|
-
analytics:
|
|
492
|
-
ga4Id:
|
|
493
|
-
hotjar:
|
|
494
|
-
id:
|
|
495
|
-
sv:
|
|
491
|
+
analytics: _propTypesCompat["default"].shape({
|
|
492
|
+
ga4Id: _propTypesCompat["default"].string,
|
|
493
|
+
hotjar: _propTypesCompat["default"].shape({
|
|
494
|
+
id: _propTypesCompat["default"].oneOfType([_propTypesCompat["default"].string, _propTypesCompat["default"].number]),
|
|
495
|
+
sv: _propTypesCompat["default"].oneOfType([_propTypesCompat["default"].string, _propTypesCompat["default"].number])
|
|
496
496
|
})
|
|
497
497
|
}),
|
|
498
|
-
onEvent:
|
|
499
|
-
onSave:
|
|
500
|
-
onError:
|
|
501
|
-
store:
|
|
498
|
+
onEvent: _propTypesCompat["default"].func,
|
|
499
|
+
onSave: _propTypesCompat["default"].func,
|
|
500
|
+
onError: _propTypesCompat["default"].func,
|
|
501
|
+
store: _propTypesCompat["default"].object
|
|
502
502
|
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = PropertyCheckbox;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _propTypesCompat = _interopRequireDefault(require("src/compat/propTypesCompat"));
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
var _constants = require("../../constants");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
@@ -67,10 +67,10 @@ function PropertyCheckbox(_ref) {
|
|
|
67
67
|
}))));
|
|
68
68
|
}
|
|
69
69
|
PropertyCheckbox.propTypes = {
|
|
70
|
-
value:
|
|
71
|
-
onUpdate:
|
|
72
|
-
configs:
|
|
73
|
-
sourceElement:
|
|
74
|
-
internalState:
|
|
75
|
-
state:
|
|
70
|
+
value: _propTypesCompat["default"].any.isRequired,
|
|
71
|
+
onUpdate: _propTypesCompat["default"].func.isRequired,
|
|
72
|
+
configs: _propTypesCompat["default"].object.isRequired,
|
|
73
|
+
sourceElement: _propTypesCompat["default"].object,
|
|
74
|
+
internalState: _propTypesCompat["default"].object,
|
|
75
|
+
state: _propTypesCompat["default"].object.isRequired
|
|
76
76
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = PropertyColor;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var _propTypesCompat = _interopRequireDefault(require("src/compat/propTypesCompat"));
|
|
9
9
|
var _export = require("../../components/style/export");
|
|
10
10
|
var _sharedPropertyStyle = _interopRequireDefault(require("./shared-property-style"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -37,10 +37,10 @@ function PropertyColor(_ref) {
|
|
|
37
37
|
})))));
|
|
38
38
|
}
|
|
39
39
|
PropertyColor.propTypes = {
|
|
40
|
-
value:
|
|
41
|
-
onUpdate:
|
|
42
|
-
configs:
|
|
43
|
-
sourceElement:
|
|
44
|
-
internalState:
|
|
45
|
-
state:
|
|
40
|
+
value: _propTypesCompat["default"].any.isRequired,
|
|
41
|
+
onUpdate: _propTypesCompat["default"].func.isRequired,
|
|
42
|
+
configs: _propTypesCompat["default"].object.isRequired,
|
|
43
|
+
sourceElement: _propTypesCompat["default"].object,
|
|
44
|
+
internalState: _propTypesCompat["default"].object,
|
|
45
|
+
state: _propTypesCompat["default"].object.isRequired
|
|
46
46
|
};
|