@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.
Files changed (100) hide show
  1. package/dist/Treble/Treble.js +1 -1
  2. package/dist/Treble/snapshots.d.ts +1 -1
  3. package/dist/Treble/snapshots.js +1 -1
  4. package/dist/Treble/wishlist.d.ts +1 -1
  5. package/dist/Treble/wishlist.js +1 -1
  6. package/dist/api/assets.js +1 -1
  7. package/dist/api/catalog.js +1 -1
  8. package/dist/api/configurations.js +1 -1
  9. package/dist/api/datatables.js +1 -1
  10. package/dist/api/orders.js +1 -1
  11. package/dist/api/price.js +1 -1
  12. package/dist/components/AttributeTitle/index.d.ts +2 -2
  13. package/dist/components/AttributeValue/index.d.ts +2 -2
  14. package/dist/components/BreatheAnimation/index.js +1 -1
  15. package/dist/components/Button/index.d.ts +3 -3
  16. package/dist/components/Cards/index.d.ts +3 -3
  17. package/dist/components/DevTools/index.d.ts +2 -2
  18. package/dist/components/DraggableHint/draggableIndicator.styles.d.ts +1 -1
  19. package/dist/components/DraggableHint/index.d.ts +2 -2
  20. package/dist/components/Dropdown/index.d.ts +3 -3
  21. package/dist/components/FlatForm/index.d.ts +2 -2
  22. package/dist/components/FormComponentDescription/index.d.ts +1 -1
  23. package/dist/components/FormComponentTitle/index.d.ts +1 -1
  24. package/dist/components/Player/index.d.ts +9 -9
  25. package/dist/components/PlayerLoadingCircular/index.d.ts +2 -2
  26. package/dist/components/PlayerLoadingSpinner/index.d.ts +2 -2
  27. package/dist/components/PlayerLoadingSpinner/playerLoadingSpinner.styles.d.ts +1 -1
  28. package/dist/components/ProductDescription/index.d.ts +3 -3
  29. package/dist/components/ProductName/index.d.ts +3 -3
  30. package/dist/components/Share/index.d.ts +2 -2
  31. package/dist/components/Share/index.js +1 -1
  32. package/dist/components/Share/share.styles.d.ts +1 -1
  33. package/dist/components/Snapshots/index.d.ts +2 -2
  34. package/dist/components/Strips/index.d.ts +3 -3
  35. package/dist/components/Swatch/index.d.ts +3 -3
  36. package/dist/components/Switch/index.d.ts +3 -3
  37. package/dist/components/TextInput/index.d.ts +3 -3
  38. package/dist/components/ThreekitProvider/index.d.ts +1 -1
  39. package/dist/components/Tiles/index.d.ts +3 -3
  40. package/dist/components/TilesGroup/index.d.ts +3 -3
  41. package/dist/components/TotalPrice/index.d.ts +3 -3
  42. package/dist/components/TrebleApp/index.d.ts +3 -3
  43. package/dist/components/TurntableAnimation/index.js +1 -1
  44. package/dist/components/Upload/index.d.ts +3 -3
  45. package/dist/components/Upload/index.js +1 -1
  46. package/dist/components/UploadArea/index.d.ts +3 -3
  47. package/dist/components/UploadArea/index.js +1 -1
  48. package/dist/components/Wishlist/WishlistItem.d.ts +2 -2
  49. package/dist/components/Wishlist/index.d.ts +4 -4
  50. package/dist/components/Wishlist/index.js +1 -1
  51. package/dist/components/Zoom/index.d.ts +6 -6
  52. package/dist/components/containers/formInputContainer.d.ts +2 -2
  53. package/dist/components/formComponents.d.ts +6 -6
  54. package/dist/components/message/index.d.ts +1 -1
  55. package/dist/constants.d.ts +6 -6
  56. package/dist/hooks/useAttribute/index.d.ts +4 -4
  57. package/dist/hooks/useAttribute/index.js +1 -1
  58. package/dist/hooks/useConfigurationLoader/index.js +1 -1
  59. package/dist/hooks/useConfigurator/index.d.ts +3 -3
  60. package/dist/hooks/useDevTools/index.d.ts +1 -1
  61. package/dist/hooks/useNestedConfigurator/index.d.ts +2 -2
  62. package/dist/hooks/useNestedConfigurator/index.js +2 -2
  63. package/dist/hooks/usePlayer/index.d.ts +1 -1
  64. package/dist/hooks/usePlayerPortal/index.d.ts +1 -1
  65. package/dist/hooks/useProductCache/index.js +1 -1
  66. package/dist/hooks/useResetProduct/index.d.ts +1 -1
  67. package/dist/hooks/useResetProduct/index.js +1 -1
  68. package/dist/hooks/useRoomBuilder/RoomBuilderState.js +1 -1
  69. package/dist/hooks/useRoomBuilder/constants.js +2 -2
  70. package/dist/hooks/useRoomBuilder/themes.js +1 -1
  71. package/dist/hooks/useRoomBuilder/types.d.ts +7 -7
  72. package/dist/hooks/useRoomBuilder/types.js +5 -5
  73. package/dist/hooks/useRoomBuilder/validators.d.ts +1 -1
  74. package/dist/hooks/useShare/index.d.ts +1 -1
  75. package/dist/hooks/useShare/index.js +1 -1
  76. package/dist/hooks/useSingleAnimation/index.js +1 -1
  77. package/dist/hooks/useWishlist/index.d.ts +1 -1
  78. package/dist/hooks/useZoom/index.d.ts +1 -1
  79. package/dist/http/assets.d.ts +1 -1
  80. package/dist/http/orders.d.ts +1 -1
  81. package/dist/icons/Spinner.d.ts +2 -2
  82. package/dist/icons/types.d.ts +1 -1
  83. package/dist/store/attributes.d.ts +3 -3
  84. package/dist/store/attributes.js +1 -1
  85. package/dist/store/index.d.ts +33 -12
  86. package/dist/store/price.d.ts +1 -1
  87. package/dist/store/price.js +1 -1
  88. package/dist/store/product.d.ts +2 -2
  89. package/dist/store/product.js +1 -1
  90. package/dist/store/translations.d.ts +1 -1
  91. package/dist/store/translations.js +1 -1
  92. package/dist/store/treble.d.ts +1 -1
  93. package/dist/store/treble.js +1 -1
  94. package/dist/store/wishlist.d.ts +4 -22
  95. package/dist/store/wishlist.js +1 -1
  96. package/dist/types.d.ts +17 -17
  97. package/dist/types.js +9 -9
  98. package/dist/utils.d.ts +2 -2
  99. package/dist/utils.js +3 -3
  100. 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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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
- import React from 'react';
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): React.JSX.Element;
8
+ (props: IUpload): JSX.Element;
9
9
  componentName: string;
10
10
  compatibleAttributes: Set<ATTRIBUTE_TYPES>;
11
11
  };
12
- declare const _default: (props: IUpload) => React.JSX.Element | null;
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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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
- import React from 'react';
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) => React.JSX.Element;
10
+ export declare const WishlistItem: (props: WishlistItemProps) => JSX.Element;
11
11
  export default WishlistItem;
@@ -1,4 +1,4 @@
1
- import React from 'react';
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) => React.JSX.Element;
18
- export declare const WishlistButton: (props: WidgetButtonProps) => React.JSX.Element;
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): React.JSX.Element | null;
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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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
- import React from 'react';
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) => React.JSX.Element | null;
14
- export declare const ZoomInComponent: (props: ZoomComponentProps) => React.JSX.Element | null;
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): React.JSX.Element;
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) => React.JSX.Element | null;
34
- ZoomIn: (props: ZoomComponentProps) => React.JSX.Element | null;
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 React, { FunctionComponent } from 'react';
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) => React.JSX.Element | null;
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) => import("react").JSX.Element | null) | ((props: import("./TextInput").ITextInput) => import("react").JSX.Element | null) | ((props: import("./Tiles").ITiles) => import("react").JSX.Element | null);
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) => import("react").JSX.Element | null;
9
+ [x: string]: (props: import("./Upload").IUpload) => JSX.Element | null;
10
10
  };
11
11
  Asset: {
12
- [x: string]: ((props: import("./Cards").ICards) => import("react").JSX.Element | null) | ((props: import("./Tiles").ITiles) => import("react").JSX.Element | null);
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) => import("react").JSX.Element | null) | ((props: import("./TextInput").ITextInput) => import("react").JSX.Element | null) | ((props: import("./Tiles").ITiles) => import("react").JSX.Element | null);
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) => import("react").JSX.Element | null;
18
+ [x: string]: (props: import("./Upload").IUpload) => JSX.Element | null;
19
19
  };
20
20
  Boolean: {
21
- [x: string]: (props: import("./Switch").ISwitch) => import("react").JSX.Element | null;
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): React.JSX.Element | null;
13
+ (props: MessageComponentProps): JSX.Element | null;
14
14
  propTypes: {
15
15
  content: PropTypes.Requireable<string>;
16
16
  icon: PropTypes.Requireable<string>;
@@ -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 = "threekit-react tk-input";
5
- export declare const WIDGET_CLASS_NAME = "threekit-react tk-widget";
6
- export declare const LAYOUT_CLASS_NAME = "threekit-react tk-layout";
7
- export declare const TOOL_CLASS_NAME = "threekit-react tk-tool";
8
- export declare const DISPLAY_CLASS_NAME = "threekit-react tk-display";
9
- export declare const FORM_CLASS_NAME = "threekit-react tk-form";
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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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,3 +1,3 @@
1
- type UseDevToolsHook = [boolean, (val: boolean) => void];
1
+ declare type UseDevToolsHook = [boolean, (val: boolean) => void];
2
2
  export declare const useDevTools: () => UseDevToolsHook;
3
3
  export default useDevTools;
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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;
@@ -1,3 +1,3 @@
1
- type UsePlayer = [undefined] | [(node: null | HTMLDivElement) => void];
1
+ declare type UsePlayer = [undefined] | [(node: null | HTMLDivElement) => void];
2
2
  declare const usePlayer: () => UsePlayer;
3
3
  export default usePlayer;
@@ -1,3 +1,3 @@
1
- type UsePlayerPortal = [undefined, undefined] | [(toEl: string) => void, () => void];
1
+ declare type UsePlayerPortal = [undefined, undefined] | [(toEl: string) => void, () => void];
2
2
  declare const usePlayerPortal: () => UsePlayerPortal;
3
3
  export default usePlayerPortal;
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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,3 +1,3 @@
1
- type UseShareHook = undefined | (() => Promise<void>);
1
+ declare type UseShareHook = undefined | (() => Promise<void>);
2
2
  declare const useResetProduct: () => UseShareHook;
3
3
  export default useResetProduct;
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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 || (exports.IWallAttributes = 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 || (exports.IFeatureAttribute = 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 || (exports.IThemes = 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 || (exports.IElements = 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 || (exports.IElementStyleModes = 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 || (exports.IErrorTypes = 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 || (exports.IModes = 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 || (exports.IUnits = 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;
@@ -1,3 +1,3 @@
1
- type UseShareHook = undefined | ((msg: string | undefined) => Promise<undefined | string>);
1
+ declare type UseShareHook = undefined | ((msg: string | undefined) => Promise<undefined | string>);
2
2
  declare const useShare: () => UseShareHook;
3
3
  export default useShare;
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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
@@ -1,3 +1,3 @@
1
- type UseZoom = [(step: number) => void, (step: number) => void];
1
+ declare type UseZoom = [(step: number) => void, (step: number) => void];
2
2
  declare const useZoom: () => UseZoom;
3
3
  export default useZoom;
@@ -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>>;
@@ -1,5 +1,5 @@
1
1
  import { IMultiPageResponse } from './request';
2
- export type STATUSES = 'List';
2
+ export declare type STATUSES = 'List';
3
3
  export interface ICartItem {
4
4
  count: number;
5
5
  metadata?: null | Record<string, string>;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  interface ISpinnerProps {
3
3
  size?: string;
4
4
  thickness?: string;
5
5
  }
6
- declare function Spinner(props: ISpinnerProps): React.JSX.Element;
6
+ declare function Spinner(props: ISpinnerProps): JSX.Element;
7
7
  declare namespace Spinner {
8
8
  var iconName: string;
9
9
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export interface IIconProps {
3
3
  color?: string;
4
4
  }
@@ -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;
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
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]) {