@thefittingroom/shop-ui 0.1.4 → 0.1.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/esm/index.js +3 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/tfr.d.ts +4 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v0.1.
|
|
2
|
+
* thefittingroom v0.1.5 (2023-12-01T23:44:21.165Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
/*!
|
|
@@ -36320,12 +36320,8 @@ class FittingRoom {
|
|
|
36320
36320
|
}
|
|
36321
36321
|
async getRecommendedSizeString(styleId) {
|
|
36322
36322
|
const res = await this.tfrShop.getRecommendedSizesLabels(styleId);
|
|
36323
|
-
const { availableSizeLabels } = res;
|
|
36324
|
-
|
|
36325
|
-
const lastSize = availableSizeLabels.slice(-1);
|
|
36326
|
-
const tryFirstSizes = `${L.WeRecommendSize} ${firstSizes.join(', ')}`;
|
|
36327
|
-
const trySizes = availableSizeLabels.length > 1 ? `${tryFirstSizes} ${L.OrSize} ${lastSize}` : tryFirstSizes;
|
|
36328
|
-
return `${trySizes}.`;
|
|
36323
|
+
const { recommendedSizeLabel, availableSizeLabels } = res;
|
|
36324
|
+
return { recommendedSizeLabel, availableSizeLabels };
|
|
36329
36325
|
}
|
|
36330
36326
|
onSignInClick() {
|
|
36331
36327
|
this.nav.toScan();
|