@ikas/storefront 0.0.45 → 0.0.46
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/build/index.es.js
CHANGED
|
@@ -12316,10 +12316,7 @@ var IkasImage = /** @class */ (function () {
|
|
|
12316
12316
|
});
|
|
12317
12317
|
Object.defineProperty(IkasImage.prototype, "src", {
|
|
12318
12318
|
get: function () {
|
|
12319
|
-
|
|
12320
|
-
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + this.id + "/1920/1920/img.webp";
|
|
12321
|
-
var merchantId = decodeBase64(this.editorApiKey || IkasStorefrontConfig.config.apiKey || "");
|
|
12322
|
-
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + merchantId + "/" + this.id + "/1920/1920/img.webp";
|
|
12319
|
+
return this.getSrc(1920);
|
|
12323
12320
|
},
|
|
12324
12321
|
enumerable: false,
|
|
12325
12322
|
configurable: true
|
|
@@ -12334,6 +12331,12 @@ var IkasImage = /** @class */ (function () {
|
|
|
12334
12331
|
enumerable: false,
|
|
12335
12332
|
configurable: true
|
|
12336
12333
|
});
|
|
12334
|
+
IkasImage.prototype.getSrc = function (size) {
|
|
12335
|
+
if (this.id.includes("/"))
|
|
12336
|
+
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + this.id + "/" + size + "/" + size + "/img.webp";
|
|
12337
|
+
var merchantId = decodeBase64(this.editorApiKey || IkasStorefrontConfig.config.apiKey || "");
|
|
12338
|
+
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + merchantId + "/" + this.id + "/" + size + "/" + size + "/img.webp";
|
|
12339
|
+
};
|
|
12337
12340
|
return IkasImage;
|
|
12338
12341
|
}());
|
|
12339
12342
|
|
package/build/index.js
CHANGED
|
@@ -12328,10 +12328,7 @@ var IkasImage = /** @class */ (function () {
|
|
|
12328
12328
|
});
|
|
12329
12329
|
Object.defineProperty(IkasImage.prototype, "src", {
|
|
12330
12330
|
get: function () {
|
|
12331
|
-
|
|
12332
|
-
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + this.id + "/1920/1920/img.webp";
|
|
12333
|
-
var merchantId = decodeBase64(this.editorApiKey || IkasStorefrontConfig.config.apiKey || "");
|
|
12334
|
-
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + merchantId + "/" + this.id + "/1920/1920/img.webp";
|
|
12331
|
+
return this.getSrc(1920);
|
|
12335
12332
|
},
|
|
12336
12333
|
enumerable: false,
|
|
12337
12334
|
configurable: true
|
|
@@ -12346,6 +12343,12 @@ var IkasImage = /** @class */ (function () {
|
|
|
12346
12343
|
enumerable: false,
|
|
12347
12344
|
configurable: true
|
|
12348
12345
|
});
|
|
12346
|
+
IkasImage.prototype.getSrc = function (size) {
|
|
12347
|
+
if (this.id.includes("/"))
|
|
12348
|
+
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + this.id + "/" + size + "/" + size + "/img.webp";
|
|
12349
|
+
var merchantId = decodeBase64(this.editorApiKey || IkasStorefrontConfig.config.apiKey || "");
|
|
12350
|
+
return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + merchantId + "/" + this.id + "/" + size + "/" + size + "/img.webp";
|
|
12351
|
+
};
|
|
12349
12352
|
return IkasImage;
|
|
12350
12353
|
}());
|
|
12351
12354
|
|