@thefittingroom/shop-ui 1.4.2 → 1.4.3
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/index.js +6 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +3 -3
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.4.
|
|
2
|
+
* thefittingroom v1.4.3 (2024-07-24T23:20:32.238Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
function loadImageRecursive(imageURL, imageURLs) {
|
|
@@ -47,7 +47,7 @@ const InitImageSlider = (sliderID, onChange) => {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
/*!
|
|
50
|
-
* thefittingroom v1.4.
|
|
50
|
+
* thefittingroom v1.4.1 (2024-07-24T23:18:17.347Z)
|
|
51
51
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
52
52
|
*/
|
|
53
53
|
|
|
@@ -25520,6 +25520,9 @@ class TfrShop {
|
|
|
25520
25520
|
return getFirebaseError(error);
|
|
25521
25521
|
}
|
|
25522
25522
|
}
|
|
25523
|
+
getMeasurementLocationName(location) {
|
|
25524
|
+
return this.measurementLocations.has(location) ? this.measurementLocations.get(location) : location;
|
|
25525
|
+
}
|
|
25523
25526
|
async getGetTaxonomy(styleId) {
|
|
25524
25527
|
try {
|
|
25525
25528
|
const doc = await this.firebase.getDoc('style_garment_categories', String(styleId));
|
|
@@ -26909,7 +26912,7 @@ class TfrSizeRec {
|
|
|
26909
26912
|
return {
|
|
26910
26913
|
fit: index.FitNames[locationFit.fit],
|
|
26911
26914
|
isPerfect: this.perfectFits.includes(locationFit.fit),
|
|
26912
|
-
location:
|
|
26915
|
+
location: this.tfrShop.getMeasurementLocationName(locationFit.measurement_location),
|
|
26913
26916
|
};
|
|
26914
26917
|
}),
|
|
26915
26918
|
};
|