@thefittingroom/shop-ui 1.2.5 → 1.2.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 +11 -4
- 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/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.2.
|
|
2
|
+
* thefittingroom v1.2.6 (2024-06-20T18:35:48.116Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
function loadImageRecursive(imageURL, imageURLs) {
|
|
@@ -36778,9 +36778,16 @@ class FittingRoom {
|
|
|
36778
36778
|
get sku() {
|
|
36779
36779
|
return this.tfrSizeRec.sku;
|
|
36780
36780
|
}
|
|
36781
|
-
async checkIfPublished(
|
|
36782
|
-
|
|
36783
|
-
|
|
36781
|
+
async checkIfPublished(brandStyleIdOrSku) {
|
|
36782
|
+
try {
|
|
36783
|
+
const colorwaySizeAsset = await this.tfrShop.getColorwaySizeAssetFromSku(brandStyleIdOrSku);
|
|
36784
|
+
const style = await this.tfrShop.getStyle(colorwaySizeAsset.style_id);
|
|
36785
|
+
return Boolean(style === null || style === void 0 ? void 0 : style.is_published);
|
|
36786
|
+
}
|
|
36787
|
+
catch (_a) {
|
|
36788
|
+
const style = await this.tfrShop.getStyleByBrandStyleId(brandStyleIdOrSku);
|
|
36789
|
+
return Boolean(style === null || style === void 0 ? void 0 : style.is_published);
|
|
36790
|
+
}
|
|
36784
36791
|
}
|
|
36785
36792
|
setSku(sku) {
|
|
36786
36793
|
this.tfrSizeRec.setSku(sku);
|