@thefittingroom/shop-ui 3.0.0-alpha-3 → 3.0.0-alpha-5

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.
@@ -1,3 +1,12 @@
1
1
  import { FittingRoom, TfrHooks } from './tfr';
2
2
  import { TfrCssVariables } from './tfr-size-rec';
3
- export declare const initFittingRoom: (shopId: string | number, modalDivId: string, sizeRecMainDivId: string, hooks?: TfrHooks, cssVariables?: TfrCssVariables, env?: string) => Promise<FittingRoom>;
3
+ export type TrfConfig = {
4
+ shopId: string | number;
5
+ modalDivId: string;
6
+ sizeRecMainDivId: string;
7
+ vtoMainDivId: string;
8
+ hooks?: TfrHooks;
9
+ cssVariables?: TfrCssVariables;
10
+ env?: string;
11
+ };
12
+ export declare const initFittingRoom: ({ shopId, modalDivId, sizeRecMainDivId, vtoMainDivId, hooks, cssVariables, env, }: TrfConfig) => Promise<FittingRoom>;
@@ -43,7 +43,7 @@ export declare class TfrSizeRec {
43
43
  private readonly onTryOnClick;
44
44
  private readonly sizeRecComponent;
45
45
  private readonly perfectFits;
46
- constructor(sizeRecMainDivId: string, cssVariables: TfrCssVariables, tfrShop: TfrShop, onSignInClick: () => void, onSignOutClick: () => void, onFitInfoClick: () => void, onTryOnClick: (styleId: number, sizeId: number) => void);
46
+ constructor(sizeRecMainDivId: string, cssVariables: TfrCssVariables, tfrShop: TfrShop, onSignInClick: () => void, onSignOutClick: () => void, onFitInfoClick: () => void, onTryOnClick: (styleId: number, sizeId: number, shouldDisplay: boolean) => Promise<void>);
47
47
  get sku(): string;
48
48
  setSku(sku: string): void;
49
49
  get styleId(): number;
package/dist/esm/tfr.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare class FittingRoom {
35
35
  getMeasurementLocationsFromSku(sku: string): Promise<string[]>;
36
36
  onSignInClick(): void;
37
37
  onFitInfoClick(): void;
38
- onTryOnClick(styleId: number, sizeId: number): Promise<void>;
38
+ onTryOnClick(styleId: number, sizeId: number, shouldDisplay?: boolean): Promise<void>;
39
39
  private onUserProfileChange;
40
40
  private subscribeToProfileChanges;
41
41
  private unsubscribeFromProfileChanges;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/shop-ui",
3
- "version": "3.0.0-alpha-3",
3
+ "version": "3.0.0-alpha-5",
4
4
  "description": "the fitting room UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",