@ikas/storefront 0.0.59 → 0.0.61

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
@@ -12370,9 +12370,9 @@ var IkasImage = /** @class */ (function () {
12370
12370
  });
12371
12371
  IkasImage.prototype.getSrc = function (size) {
12372
12372
  if (this.id.includes("/"))
12373
- return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + this.id + "/" + size + "/" + size + "/img.webp";
12373
+ return process.env.NEXT_PUBLIC_IMG_BASE_URL + "images/" + this.id + "/image_" + size + ".webp";
12374
12374
  var merchantId = decodeBase64(this.editorApiKey || IkasStorefrontConfig.config.apiKey || "");
12375
- return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + merchantId + "/" + this.id + "/" + size + "/" + size + "/img.webp";
12375
+ return process.env.NEXT_PUBLIC_IMG_BASE_URL + "images/" + merchantId + "/" + this.id + "/image_" + size + ".webp";
12376
12376
  };
12377
12377
  return IkasImage;
12378
12378
  }());
@@ -17781,6 +17781,11 @@ var IkasProductFilter = /** @class */ (function () {
17781
17781
  useAndFilter: (_a = this.settings) === null || _a === void 0 ? void 0 : _a.useAndFilter,
17782
17782
  };
17783
17783
  };
17784
+ IkasProductFilter.prototype.toJSON = function () {
17785
+ var value = __assign({}, this);
17786
+ delete value.productList;
17787
+ return value;
17788
+ };
17784
17789
  IkasProductFilter.prototype.applyQueryParam = function (value) {
17785
17790
  var _a, _b;
17786
17791
  var valueKeys = value.split(",");
package/build/index.js CHANGED
@@ -12382,9 +12382,9 @@ var IkasImage = /** @class */ (function () {
12382
12382
  });
12383
12383
  IkasImage.prototype.getSrc = function (size) {
12384
12384
  if (this.id.includes("/"))
12385
- return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + this.id + "/" + size + "/" + size + "/img.webp";
12385
+ return process.env.NEXT_PUBLIC_IMG_BASE_URL + "images/" + this.id + "/image_" + size + ".webp";
12386
12386
  var merchantId = decodeBase64(this.editorApiKey || IkasStorefrontConfig.config.apiKey || "");
12387
- return "" + process.env.NEXT_PUBLIC_IMG_BASE_URL + merchantId + "/" + this.id + "/" + size + "/" + size + "/img.webp";
12387
+ return process.env.NEXT_PUBLIC_IMG_BASE_URL + "images/" + merchantId + "/" + this.id + "/image_" + size + ".webp";
12388
12388
  };
12389
12389
  return IkasImage;
12390
12390
  }());
@@ -17775,6 +17775,11 @@ var IkasProductFilter = /** @class */ (function () {
17775
17775
  useAndFilter: (_a = this.settings) === null || _a === void 0 ? void 0 : _a.useAndFilter,
17776
17776
  };
17777
17777
  };
17778
+ IkasProductFilter.prototype.toJSON = function () {
17779
+ var value = __assign({}, this);
17780
+ delete value.productList;
17781
+ return value;
17782
+ };
17778
17783
  IkasProductFilter.prototype.applyQueryParam = function (value) {
17779
17784
  var _a, _b;
17780
17785
  var valueKeys = value.split(",");
@@ -27,6 +27,7 @@ export declare class IkasProductFilter {
27
27
  onNumberRangeChange(numberRange: RangeValue | null): void;
28
28
  clear(): void;
29
29
  toInput(): SearchInputFilterListInput;
30
+ toJSON(): this;
30
31
  applyQueryParam(value: string): void;
31
32
  private rangeToId;
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",