@thefittingroom/shop-ui 0.0.7 → 0.0.8
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/README.md +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/tfr.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ const shopId: number = 9001
|
|
|
26
26
|
const hooks: TfrHooks = {
|
|
27
27
|
onLoading: () => {},
|
|
28
28
|
onLoadingComplete: () => {},
|
|
29
|
-
|
|
29
|
+
onVtoReady: (frames: string[]) => {},
|
|
30
30
|
onError: () => {},
|
|
31
31
|
onLogin: () => {},
|
|
32
32
|
onLogout: () => {},
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v0.0.
|
|
2
|
+
* thefittingroom v0.0.8 (2023-07-26T17:22:58.790Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
/*!
|
|
@@ -36286,8 +36286,8 @@ class FittingRoom {
|
|
|
36286
36286
|
this.hooks.onLoading();
|
|
36287
36287
|
const frames = await this.tfrShop.tryOn(this.sku);
|
|
36288
36288
|
this.nav.close();
|
|
36289
|
-
if (this.hooks.
|
|
36290
|
-
this.hooks.
|
|
36289
|
+
if (this.hooks.onVtoReady)
|
|
36290
|
+
this.hooks.onVtoReady(frames);
|
|
36291
36291
|
}
|
|
36292
36292
|
catch (error) {
|
|
36293
36293
|
if (error instanceof errors.AvatarNotCreatedError)
|