@ikas/storefront 4.3.5 → 4.3.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.
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import{IkasImage as e}from"../../image/index.js";import{IkasProductFilterType as i,IkasProductFilterDisplayType as s,IkasProductFilterSortType as n}from"@ikas/storefront-models";export{IkasProductFilterDisplayType,IkasProductFilterSortType,IkasProductFilterType,IkasProductStockFilterValue}from"@ikas/storefront-models";import{makeAutoObservable as o}from"mobx";import{IkasProductFilterFunctions as l}from"@ikas/storefront-model-functions";var r=function(){function e(e,n){var r=this;if(this.productList=null,this.numberRange=null,this.numberRangeLimit=null,this.numberRangeListOptions=null,this.onFilterValueClick=function(t){var e;l.onFilterValueClick(r,t),null===(e=r.productList)||void 0===e||e.applyFilters()},this.onNumberRangeClick=function(t){var e;l.onNumberRangeClick(r,t),null===(e=r.productList)||void 0===e||e.applyFilters()},this.onNumberRangeChange=function(t){var e;l.onNumberRangeChange(r,t),null===(e=r.productList)||void 0===e||e.applyFilters()},this.clear=function(){l.clear(r)},this.toInput=function(){return l.toInput(r)},this.applyQueryParam=function(t){l.applyQueryParam(r,t)},this.id=e.id||"",this.key=e.key||"",this.name=e.name||"",this.order=e.order||0,this.type=e.type||i.BRAND,this.displayType=e.displayType||s.BOX,this.isMultiSelect=e.isMultiSelect||!1,this.isFacetFilter=e.isFacetFilter||!1,this.values=e.values?e.values.map((function(t){return new u(t)})):null,this.customValues=e.customValues||null,this.settings=e.settings?new h(e.settings):null,this.displayType===s.NUMBER_RANGE_LIST&&this.customValues&&this.customValues.length&&(this.numberRangeListOptions=this.customValues.map((function(e){return new c(t(t({key:e},m(e)),{isSelected:!1}))}))),this.displayType===s.NUMBER_RANGE&&this.customValues&&this.customValues.length){var a=this.customValues[0];this.numberRangeLimit=m(a)}this.productList=n,o(this)}return Object.defineProperty(e.prototype,"isCustomValueFilter",{get:function(){return l.isCustomValueFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStockFilter",{get:function(){return l.isStockFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueList",{get:function(){return l.getValueList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyList",{get:function(){return l.getKeyList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayedValues",{get:function(){return l.getDisplayedValues(this)},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var e=t({},this);return delete e.productList,e},e}(),u=function(t){this.id=t.id||"",this.key=t.key||"",this.name=t.name||"",this.colorCode=t.colorCode||null,this.thumbnailImageId=t.thumbnailImageId||null,this.thumbnailImageId&&(this.thumbnailImage=new e({id:this.thumbnailImageId,isVideo:!1})),this.isSelected=t.isSelected||!1,this.resultCount=void 0!==t.resultCount&&null!==t.resultCount?t.resultCount:null,o(this)},a=function(t){this.id=t.id,this.type=t.type,this.displayType=t.displayType,this.valueList=t.valueList,o(this)},h=function(t){this.useAndFilter=t.useAndFilter||!1,this.showCollapsedOnDesktop=t.showCollapsedOnDesktop||!1,this.showCollapsedOnMobile=t.showCollapsedOnMobile||!1,this.sortType=t.sortType||n.ALPHABETICAL_ASC,this.customSortedValues=t.customSortedValues||null,o(this)},p=function(t){this.from=t.from||0,this.to=t.to||null,o(this)},c=function(){function e(t){this.from=t.from||0,this.to=t.to||null,this.key=t.key||"",this.isSelected=t.isSelected||!1,o(this)}return e.prototype.toJSON=function(){return t(t({},this),{isSelected:this.isSelected})},e}();function m(t){return l.parseRangeStr(t)}export{u as IkasApplicableProductFilterValue,p as IkasFilterRangeValue,r as IkasProductFilter,c as IkasProductFilterNumberRangeListOption,h as IkasProductFilterSettings,a as IkasProductFilterValue,m as parseRangeStr};
1
+ import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import{IkasImage as e}from"../../image/index.js";import{IkasProductFilterType as i,IkasProductFilterDisplayType as s,IkasProductFilterSortType as n}from"@ikas/storefront-models";export{IkasProductFilterDisplayType,IkasProductFilterSortType,IkasProductFilterType,IkasProductStockFilterValue}from"@ikas/storefront-models";import{makeAutoObservable as o}from"mobx";import{IkasProductFilterFunctions as l}from"@ikas/storefront-model-functions";var u=function(){function e(e,n){var u=this;if(this.productList=null,this.numberRange=null,this.numberRangeLimit=null,this.numberRangeListOptions=null,this.onFilterValueClick=function(t){var e;l.onFilterValueClick(u,t),null===(e=u.productList)||void 0===e||e.applyFilters()},this.onNumberRangeClick=function(t){var e;l.onNumberRangeClick(u,t),null===(e=u.productList)||void 0===e||e.applyFilters()},this.onNumberRangeChange=function(t){var e;l.onNumberRangeChange(u,t),null===(e=u.productList)||void 0===e||e.applyFilters()},this.clear=function(){l.clear(u)},this.toInput=function(){return l.toInput(u)},this.applyQueryParam=function(t){l.applyQueryParam(u,t)},this.id=e.id||"",this.key=e.key||"",this.name=e.name||"",this.order=e.order||0,this.type=e.type||i.BRAND,this.displayType=e.displayType||s.BOX,this.isMultiSelect=e.isMultiSelect||!1,this.isFacetFilter=e.isFacetFilter||!1,this.values=e.values?e.values.map((function(t){return new r(t)})):null,this.customValues=e.customValues||null,this.settings=e.settings?new h(e.settings):null,this.displayType===s.NUMBER_RANGE_LIST&&this.customValues&&this.customValues.length&&(this.numberRangeListOptions=this.customValues.map((function(e){return new c(t(t({key:e},m(e)),{isSelected:!1}))}))),this.displayType===s.NUMBER_RANGE&&this.customValues&&this.customValues.length){var a=this.customValues[0];this.numberRangeLimit=m(a)}this.productList=n,o(this)}return Object.defineProperty(e.prototype,"isCustomValueFilter",{get:function(){return l.isCustomValueFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStockFilter",{get:function(){return l.isStockFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueList",{get:function(){return l.getValueList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyList",{get:function(){return l.getKeyList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayedValues",{get:function(){return l.getDisplayedValues(this)},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var e=t({},this);return delete e.productList,e},e}(),r=function(t){this.thumbnailImageId=null,this.thumbnailImage=null,this.id=t.id||"",this.key=t.key||"",this.name=t.name||"",this.colorCode=t.colorCode||null,this.thumbnailImageId=t.thumbnailImageId||null,this.thumbnailImageId&&(this.thumbnailImage=new e({id:this.thumbnailImageId,isVideo:!1})),this.isSelected=t.isSelected||!1,this.resultCount=void 0!==t.resultCount&&null!==t.resultCount?t.resultCount:null,o(this)},a=function(t){this.id=t.id,this.type=t.type,this.displayType=t.displayType,this.valueList=t.valueList,o(this)},h=function(t){this.useAndFilter=t.useAndFilter||!1,this.showCollapsedOnDesktop=t.showCollapsedOnDesktop||!1,this.showCollapsedOnMobile=t.showCollapsedOnMobile||!1,this.sortType=t.sortType||n.ALPHABETICAL_ASC,this.customSortedValues=t.customSortedValues||null,o(this)},p=function(t){this.from=t.from||0,this.to=t.to||null,o(this)},c=function(){function e(t){this.from=t.from||0,this.to=t.to||null,this.key=t.key||"",this.isSelected=t.isSelected||!1,o(this)}return e.prototype.toJSON=function(){return t(t({},this),{isSelected:this.isSelected})},e}();function m(t){return l.parseRangeStr(t)}export{r as IkasApplicableProductFilterValue,p as IkasFilterRangeValue,u as IkasProductFilter,c as IkasProductFilterNumberRangeListOption,h as IkasProductFilterSettings,a as IkasProductFilterValue,m as parseRangeStr};
@@ -6,7 +6,7 @@ export declare class IkasVariantValue implements IVariantValue {
6
6
  colorCode: string | null;
7
7
  thumbnailImageId: string | null;
8
8
  variantTypeId: string;
9
- thumbnailImage?: IkasImage;
9
+ thumbnailImage?: IkasImage | null;
10
10
  constructor(data: IVariantValue);
11
11
  get slug(): string;
12
12
  }
@@ -1 +1 @@
1
- import{IkasImage as i}from"../../image/index.js";import{makeAutoObservable as t}from"mobx";import{IkasVariantValueFunctions as e}from"@ikas/storefront-model-functions";var n=function(){function n(e){this.colorCode=null,this.thumbnailImageId=null,this.id=e.id,this.name=e.name,this.colorCode=e.colorCode||null,this.variantTypeId=e.variantTypeId,this.thumbnailImage=e.thumbnailImage?new i(e.thumbnailImage):e.thumbnailImageId?new i({id:e.thumbnailImageId,isVideo:!1}):void 0,t(this)}return Object.defineProperty(n.prototype,"slug",{get:function(){return e.getIkasVariantValueSlug(this)},enumerable:!1,configurable:!0}),n}();export{n as IkasVariantValue};
1
+ import{IkasImage as t}from"../../image/index.js";import{makeAutoObservable as i}from"mobx";import{IkasVariantValueFunctions as e}from"@ikas/storefront-model-functions";var n=function(){function n(e){this.colorCode=null,this.thumbnailImageId=null,this.thumbnailImage=null,this.id=e.id,this.name=e.name,this.colorCode=e.colorCode||null,this.variantTypeId=e.variantTypeId,this.thumbnailImage=e.thumbnailImage?new t(e.thumbnailImage):e.thumbnailImageId?new t({id:e.thumbnailImageId,isVideo:!1}):null,i(this)}return Object.defineProperty(n.prototype,"slug",{get:function(){return e.getIkasVariantValueSlug(this)},enumerable:!1,configurable:!0}),n}();export{n as IkasVariantValue};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "Storefront functionality for ikas storefront themes.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",
@@ -17,11 +17,11 @@
17
17
  "build": "rm -rf build && rollup -c"
18
18
  },
19
19
  "devDependencies": {
20
- "@ikas/storefront-api": "^4.3.5",
21
- "@ikas/storefront-config": "^4.3.5",
22
- "@ikas/storefront-model-functions": "^4.3.5",
23
- "@ikas/storefront-models": "^4.3.5",
24
- "@ikas/storefront-providers": "^4.3.5",
20
+ "@ikas/storefront-api": "^4.3.6",
21
+ "@ikas/storefront-config": "^4.3.6",
22
+ "@ikas/storefront-model-functions": "^4.3.6",
23
+ "@ikas/storefront-models": "^4.3.6",
24
+ "@ikas/storefront-providers": "^4.3.6",
25
25
  "@adyen/adyen-web": "^5.28.2",
26
26
  "@rollup/plugin-commonjs": "^22.0.0",
27
27
  "@rollup/plugin-json": "^4.1.0",
@@ -52,11 +52,11 @@
52
52
  "libphonenumber-js": "^1.10.6"
53
53
  },
54
54
  "peerDependencies": {
55
- "@ikas/storefront-api": "^4.3.5",
56
- "@ikas/storefront-config": "^4.3.5",
57
- "@ikas/storefront-model-functions": "^4.3.5",
58
- "@ikas/storefront-models": "^4.3.5",
59
- "@ikas/storefront-providers": "^4.3.5",
55
+ "@ikas/storefront-api": "^4.3.6",
56
+ "@ikas/storefront-config": "^4.3.6",
57
+ "@ikas/storefront-model-functions": "^4.3.6",
58
+ "@ikas/storefront-models": "^4.3.6",
59
+ "@ikas/storefront-providers": "^4.3.6",
60
60
  "mobx": "^6.1.3",
61
61
  "mobx-react-lite": "^3.1.5",
62
62
  "next": "12.2.0",