@thefittingroom/shop-ui 1.5.9 → 2.0.1

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,4 +1,5 @@
1
1
  import './colors.css';
2
+ import './fit-modal.css';
2
3
  import './general.css';
3
4
  import './input.css';
4
5
  import './loader.css';
@@ -16,5 +16,6 @@ export declare class TfrModal {
16
16
  onTryOn(frames: types.TryOnFrames): void;
17
17
  onError(error: string): void;
18
18
  onSizeError(recommended: string, available: string[]): void;
19
+ toFitInfo(): void;
19
20
  navBack(): void;
20
21
  }
@@ -39,9 +39,10 @@ export declare class TfrSizeRec {
39
39
  private readonly tfrShop;
40
40
  private readonly onSignInClick;
41
41
  private readonly onSignOutClick;
42
+ private readonly onFitInfoClick;
42
43
  private readonly sizeRecComponent;
43
44
  private readonly perfectFits;
44
- constructor(sizeRecMainDivId: string, cssVariables: TfrCssVariables, tfrShop: TfrShop, onSignInClick: () => void, onSignOutClick: () => void);
45
+ constructor(sizeRecMainDivId: string, cssVariables: TfrCssVariables, tfrShop: TfrShop, onSignInClick: () => void, onSignOutClick: () => void, onFitInfoClick: () => void);
45
46
  get sku(): string;
46
47
  setSku(sku: string): void;
47
48
  setIsLoggedIn(isLoggedIn: boolean): void;
package/dist/esm/tfr.d.ts CHANGED
@@ -33,6 +33,7 @@ export declare class FittingRoom {
33
33
  passwordReset(code: string, newPassword: string): Promise<void>;
34
34
  getMeasurementLocationsFromSku(sku: string): Promise<string[]>;
35
35
  onSignInClick(): void;
36
+ onFitInfoClick(): void;
36
37
  private onUserProfileChange;
37
38
  private subscribeToProfileChanges;
38
39
  private unsubscribeFromProfileChanges;
@@ -43,6 +43,7 @@ export interface ModalContent {
43
43
  Body: () => string;
44
44
  Hook(): void;
45
45
  Unhook(): void;
46
+ useFullModalContent: boolean;
46
47
  }
47
48
  export interface ModalProps {
48
49
  }
@@ -95,6 +96,10 @@ export interface LoggedOutModalProps {
95
96
  onClose: () => void;
96
97
  onNavSignIn: (email: string) => void;
97
98
  }
99
+ export interface FitModalProps {
100
+ onSignInNav: () => void;
101
+ onClose: () => void;
102
+ }
98
103
  export type TryOnFrames = string[];
99
104
  export declare enum AvatarState {
100
105
  NOT_CREATED = "NOT_CREATED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/shop-ui",
3
- "version": "1.5.9",
3
+ "version": "2.0.1",
4
4
  "description": "the fitting room UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",