@ikas/storefront 4.8.0-beta.1 → 4.8.0-beta.2
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 e}from'./../../ext/tslib/tslib.es6.js';import r,{useState as t}from"react";import o from"next/link";import{observer as
|
|
1
|
+
import{__assign as e}from'./../../ext/tslib/tslib.es6.js';import r,{useState as t}from"react";import o from"next/link";import{observer as i}from"mobx-react-lite";import{IkasBaseStore as n}from"../../store/base.js";import"../../store/customer/index.js";import"../../store/cart/index.js";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";var a=i((function(i){var a,m=t(!1),f=m[0],c=m[1],l=n.getInstance();if(r.useEffect((function(){var e="string"==typeof i.href,r=l.spaLinksDisabled;c(r&&e)}),[l.spaLinksDisabled]),f){var p=null===(a=s.getCurrentRouting())||void 0===a?void 0:a.path,d=i.href,u=d;return p&&(u=d.replace("/","/".concat(p,"/"))),r.createElement("a",{href:u},i.children)}return r.createElement(o,e({},i),i.children)}));export{a as default};
|
|
@@ -17,7 +17,7 @@ export declare class IkasCategory extends IkasBaseModel implements ICategory {
|
|
|
17
17
|
conditions: IkasCategoryConditions[] | null;
|
|
18
18
|
image?: IkasImage | null;
|
|
19
19
|
translations?: IkasCategoryTranslation[] | null;
|
|
20
|
-
conditionValues: IkasCategoryConditionValues;
|
|
20
|
+
conditionValues: IkasCategoryConditionValues | null;
|
|
21
21
|
constructor(data: ICategory);
|
|
22
22
|
get href(): string;
|
|
23
23
|
get path(): IkasCategoryPathItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasImage as
|
|
1
|
+
import{__extends as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasImage as n}from"../image/index.js";import{IkasBaseModel as e}from"../base/index.js";import{IkasCategoryPathItem as o}from"./path-item/index.js";import{IkasCategoryTranslation as r}from"./translations/index.js";export{IkasCategoryProductsOrderType as IkasCategoryOrderType}from"@ikas/storefront-models";import{IkasCategoryFunctions as i}from"@ikas/storefront-model-functions";import{IkasCategoryConditions as a}from"./conditions/index.js";var l=function(e){function l(t){var i,l,s=this;return(s=e.call(this,t)||this).categoryPath=null,s.description=null,s.imageId=null,s.parentId=null,s.metaData=null,s.orderType=null,s.conditions=null,s.image=null,s.translations=null,s.conditionValues=null,s.categoryPath=t.categoryPath||null,s.description=t.description||null,s.imageId=t.imageId||null,s.name=t.name,s.parentId=t.parentId||null,s.metaData=t.metaData||null,s.categoryPathItems=(null===(i=t.categoryPathItems)||void 0===i?void 0:i.map((function(t){return new o(t)})))||[],s.orderType=t.orderType,s.conditions=t.conditions?t.conditions.map((function(t){return new a(t)})):null,s.conditionValues=t.conditionValues||null,s.image=t.image?new n(t.image):null,s.translations=(null===(l=t.translations)||void 0===l?void 0:l.map((function(t){return new r(t)})))||null,s}return t(l,e),Object.defineProperty(l.prototype,"href",{get:function(){return i.getIkasCategoryHref(this)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"path",{get:function(){var t=new o(this);return this.categoryPathItems.concat(t)},enumerable:!1,configurable:!0}),l}(e);export{l as IkasCategory};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "4.8.0-beta.
|
|
3
|
+
"version": "4.8.0-beta.2",
|
|
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.8.0-beta.
|
|
21
|
-
"@ikas/storefront-config": "^4.8.0-beta.
|
|
22
|
-
"@ikas/storefront-model-functions": "^4.8.0-beta.
|
|
23
|
-
"@ikas/storefront-models": "^4.8.0-beta.
|
|
24
|
-
"@ikas/storefront-providers": "^4.8.0-beta.
|
|
20
|
+
"@ikas/storefront-api": "^4.8.0-beta.2",
|
|
21
|
+
"@ikas/storefront-config": "^4.8.0-beta.2",
|
|
22
|
+
"@ikas/storefront-model-functions": "^4.8.0-beta.2",
|
|
23
|
+
"@ikas/storefront-models": "^4.8.0-beta.2",
|
|
24
|
+
"@ikas/storefront-providers": "^4.8.0-beta.2",
|
|
25
25
|
"@ikas/localized-address": "^1.0.0-beta.3",
|
|
26
26
|
"@adyen/adyen-web": "^5.28.2",
|
|
27
27
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@ikas/localized-address": "^1.0.0-beta.3",
|
|
58
|
-
"@ikas/storefront-api": "^4.8.0-beta.
|
|
59
|
-
"@ikas/storefront-config": "^4.8.0-beta.
|
|
60
|
-
"@ikas/storefront-model-functions": "^4.8.0-beta.
|
|
61
|
-
"@ikas/storefront-models": "^4.8.0-beta.
|
|
62
|
-
"@ikas/storefront-providers": "^4.8.0-beta.
|
|
58
|
+
"@ikas/storefront-api": "^4.8.0-beta.2",
|
|
59
|
+
"@ikas/storefront-config": "^4.8.0-beta.2",
|
|
60
|
+
"@ikas/storefront-model-functions": "^4.8.0-beta.2",
|
|
61
|
+
"@ikas/storefront-models": "^4.8.0-beta.2",
|
|
62
|
+
"@ikas/storefront-providers": "^4.8.0-beta.2",
|
|
63
63
|
"mobx": "^6.1.3",
|
|
64
64
|
"mobx-react-lite": "^3.1.5",
|
|
65
65
|
"next": "12.2.0",
|