@thefittingroom/shop-ui 3.0.0-alpha-2 → 3.0.0-alpha-4
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/esm/components/Vto.d.ts +7 -0
- package/dist/esm/index.js +50 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +56 -56
- package/dist/esm/init.d.ts +10 -1
- package/dist/esm/tfr.d.ts +2 -1
- package/package.json +1 -1
package/dist/esm/init.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { FittingRoom, TfrHooks } from './tfr';
|
|
2
2
|
import { TfrCssVariables } from './tfr-size-rec';
|
|
3
|
-
export
|
|
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>;
|
package/dist/esm/tfr.d.ts
CHANGED
|
@@ -16,9 +16,10 @@ export declare class FittingRoom {
|
|
|
16
16
|
private isLoggedIn;
|
|
17
17
|
readonly tfrModal: TfrModal;
|
|
18
18
|
readonly tfrSizeRec: TfrSizeRec;
|
|
19
|
+
private readonly vtoComponent;
|
|
19
20
|
private readonly tfrShop;
|
|
20
21
|
private unsub;
|
|
21
|
-
constructor(shopId: string | number, modalDivId: string, sizeRecMainDivId: string, hooks: TfrHooks, cssVariables: TfrCssVariables, _env?: string);
|
|
22
|
+
constructor(shopId: string | number, modalDivId: string, sizeRecMainDivId: string, vtoMainDivId: string, hooks: TfrHooks, cssVariables: TfrCssVariables, _env?: string);
|
|
22
23
|
get shop(): TfrShop;
|
|
23
24
|
get sku(): string;
|
|
24
25
|
checkIfPublished(brandStyleIdOrSku: string): Promise<boolean>;
|