@thefittingroom/shop-ui 4.3.5 → 4.3.6

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/index.js CHANGED
@@ -20629,7 +20629,7 @@ class FittingRoomAPI {
20629
20629
  const timeoutPromise = new Promise((_, reject) => {
20630
20630
  setTimeout(() => {
20631
20631
  reject(TimeoutError);
20632
- }, 3e5);
20632
+ }, 1e3 * 60 * 7);
20633
20633
  });
20634
20634
  let firestoreUser;
20635
20635
  try {
@@ -20651,6 +20651,8 @@ class FittingRoomAPI {
20651
20651
  console.error(`Frames not found on final user object for SKU: ${colorwaySizeAssetSKU}`, firestoreUser);
20652
20652
  throw NoFramesFoundError;
20653
20653
  }
20654
+ const timingMS = firestoreUser.vto?.[this.BrandID]?.[colorwaySizeAssetSKU]?.timing_ms;
20655
+ console.debug("vto timing", "colorway_size_asset", colorwaySizeAssetSKU, "timing_ms", timingMS);
20654
20656
  return frames;
20655
20657
  }
20656
20658
  async GetCachedOrRequestUserColorwaySizeAssetFrames(firestoreUserController, colorwaySizeAssetSKU, skipCache) {
@@ -22168,6 +22170,7 @@ class FittingRoomController {
22168
22170
  }
22169
22171
  // callback for SizeRecommendationController
22170
22172
  async onTryOnCallback(selectedSizeID, availableSizeIDs, fromSizeRecSelect) {
22173
+ const startTime = performance.now();
22171
22174
  try {
22172
22175
  if (!this.selectedColorwaySizeAsset) {
22173
22176
  throw new Error("selectedColorwaySizeAsset is not set");
@@ -22201,6 +22204,8 @@ class FittingRoomController {
22201
22204
  this.vtoComponent.onNewFramesReady(batchResult);
22202
22205
  this.SizeRecommendationController.SetVTOLoading(false);
22203
22206
  this.hasInitializedTryOn = true;
22207
+ const endTime = performance.now();
22208
+ console.debug("tryOnCallback", "timing", endTime - startTime);
22204
22209
  } catch (e) {
22205
22210
  this.tfrModal.onError(L$1.SomethingWentWrong);
22206
22211
  console.log("calling HideVTOLoading after VTO error");
@@ -20633,7 +20633,7 @@ This typically indicates that your device does not have a healthy Internet conne
20633
20633
  const timeoutPromise = new Promise((_, reject) => {
20634
20634
  setTimeout(() => {
20635
20635
  reject(TimeoutError);
20636
- }, 3e5);
20636
+ }, 1e3 * 60 * 7);
20637
20637
  });
20638
20638
  let firestoreUser;
20639
20639
  try {
@@ -20655,6 +20655,8 @@ This typically indicates that your device does not have a healthy Internet conne
20655
20655
  console.error(`Frames not found on final user object for SKU: ${colorwaySizeAssetSKU}`, firestoreUser);
20656
20656
  throw NoFramesFoundError;
20657
20657
  }
20658
+ const timingMS = firestoreUser.vto?.[this.BrandID]?.[colorwaySizeAssetSKU]?.timing_ms;
20659
+ console.debug("vto timing", "colorway_size_asset", colorwaySizeAssetSKU, "timing_ms", timingMS);
20658
20660
  return frames;
20659
20661
  }
20660
20662
  async GetCachedOrRequestUserColorwaySizeAssetFrames(firestoreUserController, colorwaySizeAssetSKU, skipCache) {
@@ -22172,6 +22174,7 @@ This typically indicates that your device does not have a healthy Internet conne
22172
22174
  }
22173
22175
  // callback for SizeRecommendationController
22174
22176
  async onTryOnCallback(selectedSizeID, availableSizeIDs, fromSizeRecSelect) {
22177
+ const startTime = performance.now();
22175
22178
  try {
22176
22179
  if (!this.selectedColorwaySizeAsset) {
22177
22180
  throw new Error("selectedColorwaySizeAsset is not set");
@@ -22205,6 +22208,8 @@ This typically indicates that your device does not have a healthy Internet conne
22205
22208
  this.vtoComponent.onNewFramesReady(batchResult);
22206
22209
  this.SizeRecommendationController.SetVTOLoading(false);
22207
22210
  this.hasInitializedTryOn = true;
22211
+ const endTime = performance.now();
22212
+ console.debug("tryOnCallback", "timing", endTime - startTime);
22208
22213
  } catch (e) {
22209
22214
  this.tfrModal.onError(L$1.SomethingWentWrong);
22210
22215
  console.log("calling HideVTOLoading after VTO error");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/shop-ui",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "the fitting room UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",