@ikas/storefront 4.15.0-beta.194 → 4.15.0-beta.195
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.
|
@@ -15,7 +15,6 @@ export declare class IkasProductAttributeValue implements IProductAttributeValue
|
|
|
15
15
|
constructor(data: IProductAttributeValue);
|
|
16
16
|
get tableValue(): IAttributeTableCellValue[] | undefined;
|
|
17
17
|
get productIds(): string[];
|
|
18
|
-
getProducts(): Promise<never[] | undefined>;
|
|
19
18
|
}
|
|
20
19
|
export declare class IkasAttributeTableCellValue implements IAttributeTableCellValue {
|
|
21
20
|
colId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{IkasImage as t}from"../../image/index.js";import{IkasProductAttribute as r}from"../attribute/index.js";import{IkasProductAttributeOption as i}from"../attribute/option/index.js";import{IkasProductAttributeType as e}from"@ikas/storefront-models";import{makeAutoObservable as u}from"mobx";import{IkasProductAttributeValueFunctions as o}from"@ikas/storefront-model-functions";var n=function(){function n(e){var o;this.imageIds=null,this.productAttributeId=null,this.productAttributeOptionId=null,this.value=null,this.productAttribute=null,this.productAttributeOption=null,this.products=[],this.imageIds=e.imageIds,this.productAttributeId=e.productAttributeId,this.productAttributeOptionId=e.productAttributeOptionId,this.value=e.value||null,this.images=null===(o=e.images)||void 0===o?void 0:o.map((function(r){return new t(r)})),this.productAttribute=e.productAttribute?new r(e.productAttribute):null,this.productAttributeOption=e.productAttributeOption?new i(e.productAttributeOption):null,this.products=e.products?e.products.map((function(t){return t})):[],u(this)}return Object.defineProperty(n.prototype,"tableValue",{get:function(){return o.getTableValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"productIds",{get:function(){var t;if((null===(t=this.productAttribute)||void 0===t?void 0:t.type)!==e.PRODUCT||!this.value)return[];try{return JSON.parse(this.value)}catch(t){return console.error(t),[]}},enumerable:!1,configurable:!0}),n}(),s=function(t){this.colId=t.colId,this.rowId=t.rowId,this.value=t.value},p=function(t){this.attribute=t.attribute,this.values=t.values.map((function(t){return new n(t)}))};export{s as IkasAttributeTableCellValue,p as IkasProductAttributeMap,n as IkasProductAttributeValue};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "4.15.0-beta.
|
|
3
|
+
"version": "4.15.0-beta.195",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"swiper": "11.0.6"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@ikas/storefront-api": "^4.15.0-beta.
|
|
25
|
-
"@ikas/storefront-config": "^4.15.0-beta.
|
|
26
|
-
"@ikas/storefront-model-functions": "^4.15.0-beta.
|
|
27
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
28
|
-
"@ikas/storefront-providers": "^4.15.0-beta.
|
|
24
|
+
"@ikas/storefront-api": "^4.15.0-beta.195",
|
|
25
|
+
"@ikas/storefront-config": "^4.15.0-beta.195",
|
|
26
|
+
"@ikas/storefront-model-functions": "^4.15.0-beta.195",
|
|
27
|
+
"@ikas/storefront-models": "^4.15.0-beta.195",
|
|
28
|
+
"@ikas/storefront-providers": "^4.15.0-beta.195",
|
|
29
29
|
"@ikas/localized-address": "1.0.0-beta.5",
|
|
30
30
|
"@adyen/adyen-web": "^5.57.0",
|
|
31
31
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@ikas/localized-address": "1.0.0-beta.5",
|
|
63
|
-
"@ikas/storefront-api": "^4.15.0-beta.
|
|
64
|
-
"@ikas/storefront-config": "^4.15.0-beta.
|
|
65
|
-
"@ikas/storefront-model-functions": "^4.15.0-beta.
|
|
66
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
67
|
-
"@ikas/storefront-providers": "^4.15.0-beta.
|
|
63
|
+
"@ikas/storefront-api": "^4.15.0-beta.195",
|
|
64
|
+
"@ikas/storefront-config": "^4.15.0-beta.195",
|
|
65
|
+
"@ikas/storefront-model-functions": "^4.15.0-beta.195",
|
|
66
|
+
"@ikas/storefront-models": "^4.15.0-beta.195",
|
|
67
|
+
"@ikas/storefront-providers": "^4.15.0-beta.195",
|
|
68
68
|
"mobx": "^6.1.3",
|
|
69
69
|
"mobx-react-lite": "^3.1.5",
|
|
70
70
|
"next": "12.2.0",
|