@thefittingroom/shop-ui 4.3.1 → 4.3.2

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
@@ -21515,6 +21515,7 @@ class SizeRecComponent {
21515
21515
  init(sizeRecMainDiv) {
21516
21516
  if (!sizeRecMainDiv) throw new Error("Size rec main div not found");
21517
21517
  this.sizeRecMainDiv = sizeRecMainDiv;
21518
+ this.sizeRecMainDiv.classList.add("hide");
21518
21519
  this.render(sizeRecMainDiv);
21519
21520
  this.setElements(sizeRecMainDiv);
21520
21521
  this.bindEvents();
@@ -21700,7 +21701,7 @@ class SizeRecComponent {
21700
21701
  }
21701
21702
  render(sizeRecMainDiv) {
21702
21703
  const body = `<div id="tfr-size-recommendations">
21703
- <div id="tfr-size-rec-loading">
21704
+ <div id="tfr-size-rec-loading" class="hide">
21704
21705
  <div class="lds-ellipsis">
21705
21706
  <div></div>
21706
21707
  <div></div>
@@ -21807,6 +21808,7 @@ class SizeRecommendationController {
21807
21808
  async GetSizeRecommendationByStyleID(styleId) {
21808
21809
  console.debug("start size recommendation", styleId);
21809
21810
  try {
21811
+ this.Show();
21810
21812
  this.SetSizeRecommendationLoading(true);
21811
21813
  const sizeFitRecommendation = await this.fittingRoomAPI.GetRecommendedSizes(styleId);
21812
21814
  const sizeMeasurementLocationFits = sizeFitRecommendation.available_sizes.map((size) => {
@@ -22014,7 +22016,10 @@ class FittingRoomController {
22014
22016
  }
22015
22017
  this.styleMeasurementLocations = this.styleToGarmentMeasurementLocations(this.style);
22016
22018
  const authUser = await authUserPromise;
22017
- this.unsubFirestoreUserStateChange = this.firebaseAuthUserController.ListenForAuthStateChange(true, this.authStateChangeCallback.bind(this));
22019
+ this.unsubFirestoreUserStateChange = this.firebaseAuthUserController.ListenForAuthStateChange(
22020
+ true,
22021
+ this.authStateChangeCallback.bind(this)
22022
+ );
22018
22023
  if (!authUser) {
22019
22024
  throw UserNotLoggedInError;
22020
22025
  }
@@ -21519,6 +21519,7 @@ This typically indicates that your device does not have a healthy Internet conne
21519
21519
  init(sizeRecMainDiv) {
21520
21520
  if (!sizeRecMainDiv) throw new Error("Size rec main div not found");
21521
21521
  this.sizeRecMainDiv = sizeRecMainDiv;
21522
+ this.sizeRecMainDiv.classList.add("hide");
21522
21523
  this.render(sizeRecMainDiv);
21523
21524
  this.setElements(sizeRecMainDiv);
21524
21525
  this.bindEvents();
@@ -21704,7 +21705,7 @@ This typically indicates that your device does not have a healthy Internet conne
21704
21705
  }
21705
21706
  render(sizeRecMainDiv) {
21706
21707
  const body = `<div id="tfr-size-recommendations">
21707
- <div id="tfr-size-rec-loading">
21708
+ <div id="tfr-size-rec-loading" class="hide">
21708
21709
  <div class="lds-ellipsis">
21709
21710
  <div></div>
21710
21711
  <div></div>
@@ -21811,6 +21812,7 @@ This typically indicates that your device does not have a healthy Internet conne
21811
21812
  async GetSizeRecommendationByStyleID(styleId) {
21812
21813
  console.debug("start size recommendation", styleId);
21813
21814
  try {
21815
+ this.Show();
21814
21816
  this.SetSizeRecommendationLoading(true);
21815
21817
  const sizeFitRecommendation = await this.fittingRoomAPI.GetRecommendedSizes(styleId);
21816
21818
  const sizeMeasurementLocationFits = sizeFitRecommendation.available_sizes.map((size) => {
@@ -22018,7 +22020,10 @@ This typically indicates that your device does not have a healthy Internet conne
22018
22020
  }
22019
22021
  this.styleMeasurementLocations = this.styleToGarmentMeasurementLocations(this.style);
22020
22022
  const authUser = await authUserPromise;
22021
- this.unsubFirestoreUserStateChange = this.firebaseAuthUserController.ListenForAuthStateChange(true, this.authStateChangeCallback.bind(this));
22023
+ this.unsubFirestoreUserStateChange = this.firebaseAuthUserController.ListenForAuthStateChange(
22024
+ true,
22025
+ this.authStateChangeCallback.bind(this)
22026
+ );
22022
22027
  if (!authUser) {
22023
22028
  throw UserNotLoggedInError;
22024
22029
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/shop-ui",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "the fitting room UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",