@ikas/storefront 4.15.0-beta.196 → 4.15.0-beta.197
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{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
|
|
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";import{IkasProduct as n}from"../index.js";var s=function(){function s(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 new n(t)})):[],u(this)}return Object.defineProperty(s.prototype,"tableValue",{get:function(){return o.getTableValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(s.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}),s}(),p=function(t){this.colId=t.colId,this.rowId=t.rowId,this.value=t.value},d=function(t){this.attribute=t.attribute,this.values=t.values.map((function(t){return new s(t)}))};export{p as IkasAttributeTableCellValue,d as IkasProductAttributeMap,s 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.197",
|
|
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.197",
|
|
25
|
+
"@ikas/storefront-config": "^4.15.0-beta.197",
|
|
26
|
+
"@ikas/storefront-model-functions": "^4.15.0-beta.197",
|
|
27
|
+
"@ikas/storefront-models": "^4.15.0-beta.197",
|
|
28
|
+
"@ikas/storefront-providers": "^4.15.0-beta.197",
|
|
29
29
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
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.6",
|
|
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.197",
|
|
64
|
+
"@ikas/storefront-config": "^4.15.0-beta.197",
|
|
65
|
+
"@ikas/storefront-model-functions": "^4.15.0-beta.197",
|
|
66
|
+
"@ikas/storefront-models": "^4.15.0-beta.197",
|
|
67
|
+
"@ikas/storefront-providers": "^4.15.0-beta.197",
|
|
68
68
|
"mobx": "^6.1.3",
|
|
69
69
|
"mobx-react-lite": "^3.1.5",
|
|
70
70
|
"next": "12.2.0",
|