@threekit-tools/treble 0.0.94 → 0.0.95
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/dist/Treble/Treble.js +1 -1
- package/dist/Treble/snapshots.d.ts +1 -1
- package/dist/Treble/snapshots.js +1 -1
- package/dist/Treble/wishlist.d.ts +1 -1
- package/dist/Treble/wishlist.js +1 -1
- package/dist/api/assets.js +1 -1
- package/dist/api/catalog.js +1 -1
- package/dist/api/configurations.js +1 -1
- package/dist/api/datatables.js +1 -1
- package/dist/api/orders.js +1 -1
- package/dist/api/price.js +1 -1
- package/dist/components/AttributeTitle/index.d.ts +2 -2
- package/dist/components/AttributeValue/index.d.ts +2 -2
- package/dist/components/BreatheAnimation/index.js +1 -1
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Cards/index.d.ts +3 -3
- package/dist/components/DevTools/index.d.ts +2 -2
- package/dist/components/DraggableHint/draggableIndicator.styles.d.ts +1 -1
- package/dist/components/DraggableHint/index.d.ts +2 -2
- package/dist/components/Dropdown/index.d.ts +3 -3
- package/dist/components/FlatForm/index.d.ts +2 -2
- package/dist/components/FormComponentDescription/index.d.ts +1 -1
- package/dist/components/FormComponentTitle/index.d.ts +1 -1
- package/dist/components/Player/index.d.ts +9 -9
- package/dist/components/PlayerLoadingCircular/index.d.ts +2 -2
- package/dist/components/PlayerLoadingSpinner/index.d.ts +2 -2
- package/dist/components/PlayerLoadingSpinner/playerLoadingSpinner.styles.d.ts +1 -1
- package/dist/components/ProductDescription/index.d.ts +3 -3
- package/dist/components/ProductName/index.d.ts +3 -3
- package/dist/components/Share/index.d.ts +2 -2
- package/dist/components/Share/index.js +1 -1
- package/dist/components/Share/share.styles.d.ts +1 -1
- package/dist/components/Snapshots/index.d.ts +2 -2
- package/dist/components/Strips/index.d.ts +3 -3
- package/dist/components/Swatch/index.d.ts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/TextInput/index.d.ts +3 -3
- package/dist/components/ThreekitProvider/index.d.ts +1 -1
- package/dist/components/Tiles/index.d.ts +3 -3
- package/dist/components/TilesGroup/index.d.ts +3 -3
- package/dist/components/TotalPrice/index.d.ts +3 -3
- package/dist/components/TrebleApp/index.d.ts +3 -3
- package/dist/components/TurntableAnimation/index.js +1 -1
- package/dist/components/Upload/index.d.ts +3 -3
- package/dist/components/Upload/index.js +1 -1
- package/dist/components/UploadArea/index.d.ts +3 -3
- package/dist/components/UploadArea/index.js +1 -1
- package/dist/components/Wishlist/WishlistItem.d.ts +2 -2
- package/dist/components/Wishlist/index.d.ts +4 -4
- package/dist/components/Wishlist/index.js +1 -1
- package/dist/components/Zoom/index.d.ts +6 -6
- package/dist/components/containers/formInputContainer.d.ts +2 -2
- package/dist/components/formComponents.d.ts +6 -6
- package/dist/components/message/index.d.ts +1 -1
- package/dist/constants.d.ts +6 -6
- package/dist/hooks/useAttribute/index.d.ts +4 -4
- package/dist/hooks/useAttribute/index.js +1 -1
- package/dist/hooks/useConfigurationLoader/index.js +1 -1
- package/dist/hooks/useConfigurator/index.d.ts +3 -3
- package/dist/hooks/useDevTools/index.d.ts +1 -1
- package/dist/hooks/useNestedConfigurator/index.d.ts +2 -2
- package/dist/hooks/useNestedConfigurator/index.js +2 -2
- package/dist/hooks/usePlayer/index.d.ts +1 -1
- package/dist/hooks/usePlayerPortal/index.d.ts +1 -1
- package/dist/hooks/useProductCache/index.js +1 -1
- package/dist/hooks/useResetProduct/index.d.ts +1 -1
- package/dist/hooks/useResetProduct/index.js +1 -1
- package/dist/hooks/useRoomBuilder/RoomBuilderState.js +1 -1
- package/dist/hooks/useRoomBuilder/constants.js +2 -2
- package/dist/hooks/useRoomBuilder/themes.js +1 -1
- package/dist/hooks/useRoomBuilder/types.d.ts +7 -7
- package/dist/hooks/useRoomBuilder/types.js +5 -5
- package/dist/hooks/useRoomBuilder/validators.d.ts +1 -1
- package/dist/hooks/useShare/index.d.ts +1 -1
- package/dist/hooks/useShare/index.js +1 -1
- package/dist/hooks/useSingleAnimation/index.js +1 -1
- package/dist/hooks/useWishlist/index.d.ts +1 -1
- package/dist/hooks/useZoom/index.d.ts +1 -1
- package/dist/http/assets.d.ts +1 -1
- package/dist/http/orders.d.ts +1 -1
- package/dist/icons/Spinner.d.ts +2 -2
- package/dist/icons/types.d.ts +1 -1
- package/dist/store/attributes.d.ts +3 -3
- package/dist/store/attributes.js +1 -1
- package/dist/store/index.d.ts +33 -12
- package/dist/store/price.d.ts +1 -1
- package/dist/store/price.js +1 -1
- package/dist/store/product.d.ts +2 -2
- package/dist/store/product.js +1 -1
- package/dist/store/translations.d.ts +1 -1
- package/dist/store/translations.js +1 -1
- package/dist/store/treble.d.ts +1 -1
- package/dist/store/treble.js +1 -1
- package/dist/store/wishlist.d.ts +4 -22
- package/dist/store/wishlist.js +1 -1
- package/dist/types.d.ts +17 -17
- package/dist/types.js +9 -9
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +3 -3
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (
|
|
40
|
+
while (_) try {
|
|
41
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ATTRIBUTE_TYPES } from '../../types';
|
|
3
3
|
import { IFormComponentProps, IOptionShared } from '../containers/formInputContainer';
|
|
4
4
|
export interface IUpload extends Pick<IFormComponentProps<IOptionShared>, 'title' | 'description' | 'className' | 'value'> {
|
|
5
5
|
onChange: (file: File) => Promise<void>;
|
|
6
6
|
}
|
|
7
7
|
export declare const UploadArea: {
|
|
8
|
-
(props: IUpload):
|
|
8
|
+
(props: IUpload): JSX.Element;
|
|
9
9
|
componentName: string;
|
|
10
10
|
compatibleAttributes: Set<ATTRIBUTE_TYPES>;
|
|
11
11
|
};
|
|
12
|
-
declare const _default: (props: IUpload) =>
|
|
12
|
+
declare const _default: (props: IUpload) => JSX.Element | null;
|
|
13
13
|
export default _default;
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (
|
|
40
|
+
while (_) try {
|
|
41
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IMetadata } from '../../types';
|
|
3
3
|
interface WishlistItemProps {
|
|
4
4
|
thumbnail?: string;
|
|
@@ -7,5 +7,5 @@ interface WishlistItemProps {
|
|
|
7
7
|
onShare: () => void;
|
|
8
8
|
onDelete: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const WishlistItem: (props: WishlistItemProps) =>
|
|
10
|
+
export declare const WishlistItem: (props: WishlistItemProps) => JSX.Element;
|
|
11
11
|
export default WishlistItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { BUTTON_SHAPES, BUTTON_TYPES } from '../Button';
|
|
4
4
|
interface WidgetButtonProps {
|
|
@@ -14,10 +14,10 @@ interface WishlistProps {
|
|
|
14
14
|
shape?: BUTTON_SHAPES;
|
|
15
15
|
className?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare const AddWishlistButton: (props: WidgetButtonProps) =>
|
|
18
|
-
export declare const WishlistButton: (props: WidgetButtonProps) =>
|
|
17
|
+
export declare const AddWishlistButton: (props: WidgetButtonProps) => JSX.Element;
|
|
18
|
+
export declare const WishlistButton: (props: WidgetButtonProps) => JSX.Element;
|
|
19
19
|
export declare const Wishlist: {
|
|
20
|
-
(props: WishlistProps):
|
|
20
|
+
(props: WishlistProps): JSX.Element | null;
|
|
21
21
|
propTypes: {
|
|
22
22
|
className: PropTypes.Requireable<string>;
|
|
23
23
|
};
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (
|
|
40
|
+
while (_) try {
|
|
41
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { BUTTON_SHAPES, BUTTON_TYPES } from '../Button';
|
|
4
4
|
interface ZoomComponentProps {
|
|
@@ -10,10 +10,10 @@ interface ZoomComponentProps {
|
|
|
10
10
|
interface ZoomProps extends ZoomComponentProps {
|
|
11
11
|
orientation?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const ZoomOutComponent: (props: ZoomComponentProps) =>
|
|
14
|
-
export declare const ZoomInComponent: (props: ZoomComponentProps) =>
|
|
13
|
+
export declare const ZoomOutComponent: (props: ZoomComponentProps) => JSX.Element | null;
|
|
14
|
+
export declare const ZoomInComponent: (props: ZoomComponentProps) => JSX.Element | null;
|
|
15
15
|
export declare const Zoom: {
|
|
16
|
-
(props: ZoomProps):
|
|
16
|
+
(props: ZoomProps): JSX.Element;
|
|
17
17
|
propTypes: {
|
|
18
18
|
step: PropTypes.Requireable<number>;
|
|
19
19
|
orientation: PropTypes.Requireable<string>;
|
|
@@ -30,7 +30,7 @@ export declare const Zoom: {
|
|
|
30
30
|
};
|
|
31
31
|
componentName: string;
|
|
32
32
|
Icon: import("../../icons/types").IIcon;
|
|
33
|
-
ZoomOut: (props: ZoomComponentProps) =>
|
|
34
|
-
ZoomIn: (props: ZoomComponentProps) =>
|
|
33
|
+
ZoomOut: (props: ZoomComponentProps) => JSX.Element | null;
|
|
34
|
+
ZoomIn: (props: ZoomComponentProps) => JSX.Element | null;
|
|
35
35
|
};
|
|
36
36
|
export default Zoom;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { RawAttributeValue } from '../../hooks/useAttribute';
|
|
3
3
|
import { IHydratedAttribute, IHydratedAttributeAssetValue } from '../../types';
|
|
4
4
|
export interface IOptionShared {
|
|
@@ -50,5 +50,5 @@ export declare const hydrateAttributeForComponent: (attribute: IHydratedAttribut
|
|
|
50
50
|
value: string;
|
|
51
51
|
}[] | IHydratedAttributeAssetValue[] | undefined;
|
|
52
52
|
};
|
|
53
|
-
declare function formComponentContainer<P extends IFormContainerProps>(FormComponent: IFormComponent<Omit<P, 'options'>>): (props: P) =>
|
|
53
|
+
declare function formComponentContainer<P extends IFormContainerProps>(FormComponent: IFormComponent<Omit<P, 'options'>>): (props: P) => JSX.Element | null;
|
|
54
54
|
export default formComponentContainer;
|
|
@@ -4,21 +4,21 @@ export declare const FORM_COMPONENT_TYPES: {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const formComponents: {
|
|
6
6
|
[x: string]: {
|
|
7
|
-
[x: string]: ((props: import("./Cards").ICards) =>
|
|
7
|
+
[x: string]: ((props: import("./Cards").ICards) => JSX.Element | null) | ((props: import("./TextInput").ITextInput) => JSX.Element | null) | ((props: import("./Tiles").ITiles) => JSX.Element | null);
|
|
8
8
|
} | {
|
|
9
|
-
[x: string]: (props: import("./Upload").IUpload) =>
|
|
9
|
+
[x: string]: (props: import("./Upload").IUpload) => JSX.Element | null;
|
|
10
10
|
};
|
|
11
11
|
Asset: {
|
|
12
|
-
[x: string]: ((props: import("./Cards").ICards) =>
|
|
12
|
+
[x: string]: ((props: import("./Cards").ICards) => JSX.Element | null) | ((props: import("./Tiles").ITiles) => JSX.Element | null);
|
|
13
13
|
};
|
|
14
14
|
String: {
|
|
15
|
-
[x: string]: ((props: import("./Cards").ICards) =>
|
|
15
|
+
[x: string]: ((props: import("./Cards").ICards) => JSX.Element | null) | ((props: import("./TextInput").ITextInput) => JSX.Element | null) | ((props: import("./Tiles").ITiles) => JSX.Element | null);
|
|
16
16
|
};
|
|
17
17
|
upload: {
|
|
18
|
-
[x: string]: (props: import("./Upload").IUpload) =>
|
|
18
|
+
[x: string]: (props: import("./Upload").IUpload) => JSX.Element | null;
|
|
19
19
|
};
|
|
20
20
|
Boolean: {
|
|
21
|
-
[x: string]: (props: import("./Switch").ISwitch) =>
|
|
21
|
+
[x: string]: (props: import("./Switch").ISwitch) => JSX.Element | null;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export default formComponents;
|
|
@@ -10,7 +10,7 @@ interface MessageComponentProps {
|
|
|
10
10
|
icon: string;
|
|
11
11
|
}
|
|
12
12
|
export declare const MessageComponent: {
|
|
13
|
-
(props: MessageComponentProps):
|
|
13
|
+
(props: MessageComponentProps): JSX.Element | null;
|
|
14
14
|
propTypes: {
|
|
15
15
|
content: PropTypes.Requireable<string>;
|
|
16
16
|
icon: PropTypes.Requireable<string>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const TREBLE_DEBUG: boolean;
|
|
2
2
|
export declare const DEFAULT_CLASS_NAME = "threekit-react";
|
|
3
3
|
export declare const CLASS_NAME_PREFIX = "tk";
|
|
4
|
-
export declare const INPUT_COMPONENT_CLASS_NAME
|
|
5
|
-
export declare const WIDGET_CLASS_NAME
|
|
6
|
-
export declare const LAYOUT_CLASS_NAME
|
|
7
|
-
export declare const TOOL_CLASS_NAME
|
|
8
|
-
export declare const DISPLAY_CLASS_NAME
|
|
9
|
-
export declare const FORM_CLASS_NAME
|
|
4
|
+
export declare const INPUT_COMPONENT_CLASS_NAME: string;
|
|
5
|
+
export declare const WIDGET_CLASS_NAME: string;
|
|
6
|
+
export declare const LAYOUT_CLASS_NAME: string;
|
|
7
|
+
export declare const TOOL_CLASS_NAME: string;
|
|
8
|
+
export declare const DISPLAY_CLASS_NAME: string;
|
|
9
|
+
export declare const FORM_CLASS_NAME: string;
|
|
10
10
|
export declare const IS_TREBLE_SCRIPTS: boolean;
|
|
11
11
|
export declare const TK_PRODUCT_ID_PARAM_KEY = "tkProduct";
|
|
12
12
|
export declare const TK_SAVED_CONFIG_PARAM_KEY = "tkConfigId";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IHydratedAttribute, IConfigurationColor } from '../../types';
|
|
2
|
-
export type RawAttributeValue = string | number | boolean | IConfigurationColor | File | undefined;
|
|
3
|
-
type UseAttributeError = [undefined, undefined];
|
|
4
|
-
type UseAttributeSuccess = [
|
|
2
|
+
export declare type RawAttributeValue = string | number | boolean | IConfigurationColor | File | undefined;
|
|
3
|
+
declare type UseAttributeError = [undefined, undefined];
|
|
4
|
+
declare type UseAttributeSuccess = [
|
|
5
5
|
IHydratedAttribute,
|
|
6
6
|
(val: RawAttributeValue) => Promise<void>
|
|
7
7
|
];
|
|
8
|
-
type UseAttributeHook = UseAttributeError | UseAttributeSuccess;
|
|
8
|
+
declare type UseAttributeHook = UseAttributeError | UseAttributeSuccess;
|
|
9
9
|
declare const useAttribute: (attributeName?: string) => UseAttributeHook;
|
|
10
10
|
export default useAttribute;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ISetConfiguration, IHydratedAttribute } from '../../types';
|
|
2
|
-
type UseConfiguratorError = [undefined, undefined];
|
|
3
|
-
type UseConfiguratorSuccess = [
|
|
2
|
+
declare type UseConfiguratorError = [undefined, undefined];
|
|
3
|
+
declare type UseConfiguratorSuccess = [
|
|
4
4
|
Record<string, IHydratedAttribute>,
|
|
5
5
|
(configuration: ISetConfiguration) => void
|
|
6
6
|
];
|
|
7
|
-
type UseConfiguratorHook = UseConfiguratorError | UseConfiguratorSuccess;
|
|
7
|
+
declare type UseConfiguratorHook = UseConfiguratorError | UseConfiguratorSuccess;
|
|
8
8
|
declare const useConfigurator: () => UseConfiguratorHook;
|
|
9
9
|
export default useConfigurator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHydratedAttribute, IMetadata, ISetConfiguration } from '../../types';
|
|
2
|
-
type UseNestedConfiguratorError = [undefined, undefined, undefined, undefined];
|
|
3
|
-
type UseNestedConfiguratorSuccess = [
|
|
2
|
+
declare type UseNestedConfiguratorError = [undefined, undefined, undefined, undefined];
|
|
3
|
+
declare type UseNestedConfiguratorSuccess = [
|
|
4
4
|
Record<string, IHydratedAttribute>,
|
|
5
5
|
(val: ISetConfiguration) => Promise<void>,
|
|
6
6
|
IMetadata,
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -90,7 +90,7 @@ var useNestedConfigurator = function (address) {
|
|
|
90
90
|
var _a;
|
|
91
91
|
return Object.assign(output, (_a = {}, _a[attr.name] = attr, _a));
|
|
92
92
|
}, {});
|
|
93
|
-
var preppedAttributes = (0, utils_1.hydrateAttribute)([attributeObj, translations], handleSelect);
|
|
93
|
+
var preppedAttributes = (0, utils_1.hydrateAttribute)([attributeObj, translations], handleSelect, configurator.current.getResolvedConfiguration());
|
|
94
94
|
var price = priceConfig
|
|
95
95
|
? configurator.current.getPrice(priceConfig.id, priceConfig.currency)
|
|
96
96
|
: undefined;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (
|
|
28
|
+
while (_) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -12,7 +12,7 @@ var IWallAttributes;
|
|
|
12
12
|
IWallAttributes["HEIGHT"] = "Height";
|
|
13
13
|
IWallAttributes["THICKNESS"] = "Thickness";
|
|
14
14
|
IWallAttributes["CONNECTIONS"] = "Connections";
|
|
15
|
-
})(IWallAttributes
|
|
15
|
+
})(IWallAttributes = exports.IWallAttributes || (exports.IWallAttributes = {}));
|
|
16
16
|
var IFeatureAttribute;
|
|
17
17
|
(function (IFeatureAttribute) {
|
|
18
18
|
IFeatureAttribute["POSITION_X"] = "Start X";
|
|
@@ -21,7 +21,7 @@ var IFeatureAttribute;
|
|
|
21
21
|
IFeatureAttribute["HEIGHT"] = "Height";
|
|
22
22
|
IFeatureAttribute["LENGTH"] = "Length";
|
|
23
23
|
IFeatureAttribute["CONNECTED_TO"] = "Connected To";
|
|
24
|
-
})(IFeatureAttribute
|
|
24
|
+
})(IFeatureAttribute = exports.IFeatureAttribute || (exports.IFeatureAttribute = {}));
|
|
25
25
|
exports.SCALE = 0.02;
|
|
26
26
|
exports.SNAP_PROXIMITY = 10;
|
|
27
27
|
exports.MIN_WALL_LENGTH = 50;
|
|
@@ -7,7 +7,7 @@ var IThemes;
|
|
|
7
7
|
IThemes["DEFAULT"] = "default";
|
|
8
8
|
IThemes["BLUEPRINT"] = "blueprint";
|
|
9
9
|
IThemes["LIGHT"] = "light";
|
|
10
|
-
})(IThemes
|
|
10
|
+
})(IThemes = exports.IThemes || (exports.IThemes = {}));
|
|
11
11
|
var HIGHLIGHT_COLOR = '#36738E';
|
|
12
12
|
var ACTIVE_COLOR = 'green';
|
|
13
13
|
var ERROR_COLOR = 'red';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type ICoordinate2D = [x: number, y: number];
|
|
2
|
-
export type ICoordinate3D = [x: number, y: number, z: number];
|
|
3
|
-
export type ICoordinatesLine = [
|
|
1
|
+
export declare type ICoordinate2D = [x: number, y: number];
|
|
2
|
+
export declare type ICoordinate3D = [x: number, y: number, z: number];
|
|
3
|
+
export declare type ICoordinatesLine = [
|
|
4
4
|
startPoint: ICoordinate2D,
|
|
5
5
|
endPoint: ICoordinate2D
|
|
6
6
|
];
|
|
7
|
-
export type ICoordinatesQuadrilateral = [
|
|
7
|
+
export declare type ICoordinatesQuadrilateral = [
|
|
8
8
|
point1: ICoordinate2D,
|
|
9
9
|
point2: ICoordinate2D,
|
|
10
10
|
point3: ICoordinate2D,
|
|
@@ -18,8 +18,8 @@ export declare enum IElements {
|
|
|
18
18
|
DOOR = "doors",
|
|
19
19
|
OPENING = "openings"
|
|
20
20
|
}
|
|
21
|
-
export type IFeatureName = IElements.WINDOW | IElements.DOOR | IElements.OPENING;
|
|
22
|
-
export type IElementName = IElements.WALL | IElements.VERTEX | IFeatureName;
|
|
21
|
+
export declare type IFeatureName = IElements.WINDOW | IElements.DOOR | IElements.OPENING;
|
|
22
|
+
export declare type IElementName = IElements.WALL | IElements.VERTEX | IFeatureName;
|
|
23
23
|
export interface IWall {
|
|
24
24
|
assetId: string;
|
|
25
25
|
line: ICoordinatesLine;
|
|
@@ -179,7 +179,7 @@ export interface ISnapPointFeature extends ISnapPointShared<IFeatureName> {
|
|
|
179
179
|
}
|
|
180
180
|
export interface ISnapPointAngle extends Omit<ISnapPointShared<'Angle'>, 'index'> {
|
|
181
181
|
}
|
|
182
|
-
export type ISnapPoint = ISnapPointVertex | ISnapPointWall | ISnapPointFeature | ISnapPointAngle;
|
|
182
|
+
export declare type ISnapPoint = ISnapPointVertex | ISnapPointWall | ISnapPointFeature | ISnapPointAngle;
|
|
183
183
|
export interface IActiveElement extends IElementAddress {
|
|
184
184
|
snapPoint?: ISnapPoint;
|
|
185
185
|
}
|
|
@@ -9,28 +9,28 @@ var IElements;
|
|
|
9
9
|
IElements["WINDOW"] = "windows";
|
|
10
10
|
IElements["DOOR"] = "doors";
|
|
11
11
|
IElements["OPENING"] = "openings";
|
|
12
|
-
})(IElements
|
|
12
|
+
})(IElements = exports.IElements || (exports.IElements = {}));
|
|
13
13
|
var IElementStyleModes;
|
|
14
14
|
(function (IElementStyleModes) {
|
|
15
15
|
IElementStyleModes["HIGHLIGHT"] = "highlight";
|
|
16
16
|
IElementStyleModes["ACTIVE"] = "active";
|
|
17
17
|
IElementStyleModes["ERROR"] = "error";
|
|
18
|
-
})(IElementStyleModes
|
|
18
|
+
})(IElementStyleModes = exports.IElementStyleModes || (exports.IElementStyleModes = {}));
|
|
19
19
|
var IErrorTypes;
|
|
20
20
|
(function (IErrorTypes) {
|
|
21
21
|
IErrorTypes["HARD"] = "hard";
|
|
22
22
|
IErrorTypes["SOFT"] = "soft";
|
|
23
23
|
IErrorTypes["WARN"] = "warning";
|
|
24
|
-
})(IErrorTypes
|
|
24
|
+
})(IErrorTypes = exports.IErrorTypes || (exports.IErrorTypes = {}));
|
|
25
25
|
var IModes;
|
|
26
26
|
(function (IModes) {
|
|
27
27
|
IModes["SELECT"] = "select";
|
|
28
28
|
IModes["DRAW"] = "draw";
|
|
29
|
-
})(IModes
|
|
29
|
+
})(IModes = exports.IModes || (exports.IModes = {}));
|
|
30
30
|
var IUnits;
|
|
31
31
|
(function (IUnits) {
|
|
32
32
|
IUnits["FEET"] = "feet";
|
|
33
33
|
IUnits["METER"] = "meter";
|
|
34
34
|
IUnits["INCH"] = "inch";
|
|
35
35
|
IUnits["CM"] = "cm";
|
|
36
|
-
})(IUnits
|
|
36
|
+
})(IUnits = exports.IUnits || (exports.IUnits = {}));
|
|
@@ -20,7 +20,7 @@ export interface IMoveVertexValidatorInput {
|
|
|
20
20
|
vertex: IVertex;
|
|
21
21
|
features: IFeatures;
|
|
22
22
|
}
|
|
23
|
-
type IValidatorFunction<T> = (input: T) => false | IErrorElement;
|
|
23
|
+
declare type IValidatorFunction<T> = (input: T) => false | IErrorElement;
|
|
24
24
|
export declare function isWallTooShort(input: IAddWallValidatorInput): false | IErrorElement;
|
|
25
25
|
export declare function isWallIntersectingFeature(input: IAddWallValidatorInput): false | IErrorElement;
|
|
26
26
|
export declare function isWallOverlappingExisitingWalls(input: IAddWallValidatorInput): false | IErrorElement;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (
|
|
28
|
+
while (_) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -5,7 +5,7 @@ interface HydratedWishlistItem extends IConfigurationResponse {
|
|
|
5
5
|
handleRemove: () => void;
|
|
6
6
|
handleShare: () => void;
|
|
7
7
|
}
|
|
8
|
-
type UseWishlistHook = [
|
|
8
|
+
declare type UseWishlistHook = [
|
|
9
9
|
Array<HydratedWishlistItem>,
|
|
10
10
|
(config?: Omit<ISaveConfiguration, 'configuration'>) => void,
|
|
11
11
|
() => void
|
package/dist/http/assets.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ITranslationsMap = Record<string, string>;
|
|
1
|
+
export declare type ITranslationsMap = Record<string, string>;
|
|
2
2
|
export declare const getTranslationsForLocale: (locale: string) => Promise<import("axios").AxiosResponse<ITranslationsMap>>;
|
package/dist/http/orders.d.ts
CHANGED
package/dist/icons/Spinner.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface ISpinnerProps {
|
|
3
3
|
size?: string;
|
|
4
4
|
thickness?: string;
|
|
5
5
|
}
|
|
6
|
-
declare function Spinner(props: ISpinnerProps):
|
|
6
|
+
declare function Spinner(props: ISpinnerProps): JSX.Element;
|
|
7
7
|
declare namespace Spinner {
|
|
8
8
|
var iconName: string;
|
|
9
9
|
}
|
package/dist/icons/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RootState, ThreekitDispatch } from './index';
|
|
2
2
|
import { ISetConfiguration, IThreekitDisplayAttribute } from '../types';
|
|
3
3
|
import { ITranslationsMap } from '../http/assets';
|
|
4
|
-
export type AttributesState = Record<string, IThreekitDisplayAttribute>;
|
|
4
|
+
export declare type AttributesState = Record<string, IThreekitDisplayAttribute>;
|
|
5
5
|
export declare const setAttributes: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[attributes: IThreekitDisplayAttribute[]], Record<string, IThreekitDisplayAttribute>, "treble/attributes/set-attributes", never, never>;
|
|
6
|
-
declare const reducer: import("redux").Reducer<AttributesState>;
|
|
6
|
+
declare const reducer: import("redux").Reducer<AttributesState, import("redux").AnyAction>;
|
|
7
7
|
export declare const getAttributes: (state: RootState) => AttributesState;
|
|
8
8
|
export declare const getHydrationData: ((state: {
|
|
9
9
|
treble: import("./treble").TrebleState;
|
|
@@ -12,7 +12,7 @@ export declare const getHydrationData: ((state: {
|
|
|
12
12
|
translations: import("./translations").TranslationsState;
|
|
13
13
|
wishlist: import("../Treble").WishlistArray;
|
|
14
14
|
price: import("./price").PriceState;
|
|
15
|
-
}) => readonly [Record<string, IThreekitDisplayAttribute>, ITranslationsMap]) & import("reselect").OutputSelectorFields<(args_0: AttributesState, args_1: ITranslationsMap) => readonly [Record<string, IThreekitDisplayAttribute>, ITranslationsMap]
|
|
15
|
+
}) => readonly [Record<string, IThreekitDisplayAttribute>, ITranslationsMap]) & import("reselect").OutputSelectorFields<(args_0: AttributesState, args_1: ITranslationsMap) => readonly [Record<string, IThreekitDisplayAttribute>, ITranslationsMap] & {
|
|
16
16
|
clearCache: () => void;
|
|
17
17
|
}> & {
|
|
18
18
|
clearCache: () => void;
|
package/dist/store/attributes.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|