@thefittingroom/shop-ui 0.1.13 → 1.1.0

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.
@@ -0,0 +1,45 @@
1
+ import { TfrShop } from '@thefittingroom/sdk';
2
+ export type RecommendedSize = {
3
+ recommended: string;
4
+ sizes: {
5
+ size: string;
6
+ locations: {
7
+ fit: string;
8
+ location: string;
9
+ }[];
10
+ }[];
11
+ };
12
+ export declare class SizeRecComponent {
13
+ private readonly tfrShop;
14
+ private readonly onSignInClick;
15
+ private readonly onSignOutClick;
16
+ private _sku;
17
+ private tfrSizeRecActionLogin;
18
+ private tfrSizeRecActionLogout;
19
+ private tfrSizeRecLoading;
20
+ private tfrSizeRecommendationError;
21
+ private tfrSizeRecommendationsContainer;
22
+ private tfrSizeRecSelect;
23
+ private tfrSizeRecSize;
24
+ private tfrSizeRecTable;
25
+ private redraw;
26
+ constructor(sizeRecMainDivId: string, tfrShop: TfrShop, onSignInClick: () => void, onSignOutClick: () => void);
27
+ get sku(): string;
28
+ setSku(sku: string): void;
29
+ setIsLoggedIn(isLoggedIn: boolean): void;
30
+ setLoading(isLoading: boolean): void;
31
+ setGarmentLocations(locations: string[]): void;
32
+ setRecommendedSize({ recommended, sizes }: RecommendedSize): void;
33
+ setError(error: string): void;
34
+ private init;
35
+ private setElements;
36
+ private bindEvents;
37
+ private onSizeRecSelectClick;
38
+ private renderSizeRec;
39
+ private renderSizeRecTable;
40
+ private renderSizeRecSelect;
41
+ private renderSizeRecTableRow;
42
+ private renderLoginCta;
43
+ private renderGarmentLocations;
44
+ private render;
45
+ }
@@ -1,4 +1,3 @@
1
- export { VTO_TIMEOUT_MS } from '@thefittingroom/sdk';
2
1
  export { InitImageSlider } from './components/slider';
3
2
  export { initFittingRoom } from './init';
4
3
  export type { FittingRoom } from './tfr';