@ikas/storefront-providers 4.0.0-alpha.32 → 4.0.0-alpha.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-providers",
3
- "version": "4.0.0-alpha.32",
3
+ "version": "4.0.0-alpha.33",
4
4
  "description": "Data providers for ikas storefront theme components.",
5
5
  "author": "Umut Ozan Yıldırım",
6
6
  "license": "ISC",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-api": "^4.0.0-alpha.32",
21
- "@ikas/storefront-config": "^4.0.0-alpha.32",
22
- "@ikas/storefront-model-functions": "^4.0.0-alpha.32",
23
- "@ikas/storefront-models": "^4.0.0-alpha.32",
20
+ "@ikas/storefront-api": "^4.0.0-alpha.33",
21
+ "@ikas/storefront-config": "^4.0.0-alpha.33",
22
+ "@ikas/storefront-model-functions": "^4.0.0-alpha.33",
23
+ "@ikas/storefront-models": "^4.0.0-alpha.33",
24
24
  "@rollup/plugin-node-resolve": "^13.3.0",
25
25
  "@types/lodash": "^4.14.168",
26
26
  "@types/react": "^16.9.55",
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "mobx": "^6.1.3",
40
- "@ikas/storefront-api": "^4.0.0-alpha.32",
41
- "@ikas/storefront-config": "^4.0.0-alpha.32",
42
- "@ikas/storefront-model-functions": "^4.0.0-alpha.32",
43
- "@ikas/storefront-models": "^4.0.0-alpha.32",
40
+ "@ikas/storefront-api": "^4.0.0-alpha.33",
41
+ "@ikas/storefront-config": "^4.0.0-alpha.33",
42
+ "@ikas/storefront-model-functions": "^4.0.0-alpha.33",
43
+ "@ikas/storefront-models": "^4.0.0-alpha.33",
44
44
  "lodash": "^4.17.20"
45
45
  }
46
46
  }
@@ -80,7 +80,7 @@ export class IkasPageDataProvider {
80
80
  theme: IkasThemeJson;
81
81
  pageType?: IkasThemeJsonPageType | null = null;
82
82
  pageParams: Record<string, any> = {};
83
- pageComponentPropValues: IkasPageComponentPropValue[] = [];
83
+ private pageComponentPropValues: IkasPageComponentPropValue[] = [];
84
84
  pageSpecificData?: any | null = null;
85
85
  merchantSettings?: IkasMerchantSettings | null = null;
86
86
  possiblePageTypes?: IkasThemeJsonPageType[] = []; // Used for distinguishing blog slug page from main slug page
@@ -154,6 +154,10 @@ export class IkasPageDataProvider {
154
154
  return this.page?.components || [];
155
155
  }
156
156
 
157
+ get $pageComponentPropValues() {
158
+ return this.pageComponentPropValues;
159
+ }
160
+
157
161
  async getMerchantSettings() {
158
162
  const merchantSettingsResponse = await listMerchantSettings({});
159
163
 
@@ -19,6 +19,7 @@ import { IkasBrandPropValue } from "../models/prop-value/brand";
19
19
  import { IkasCategoryPropValue } from "../models/prop-value/category";
20
20
  import { IkasProductPropValue } from "../models/prop-value/product";
21
21
  import { IkasRafflePropValue } from "../models/prop-value/raffle";
22
+ import { makeAutoObservable } from "mobx";
22
23
 
23
24
  export class IkasPageComponentPropValue {
24
25
  pageComponent: IkasThemeJsonPageComponent;
@@ -29,6 +30,8 @@ export class IkasPageComponentPropValue {
29
30
  this.pageComponent = data.pageComponent;
30
31
  this.component = data.component;
31
32
  this.propValues = data.propValues || {};
33
+
34
+ makeAutoObservable(this);
32
35
  }
33
36
  }
34
37