@ikas/storefront 0.0.14 → 0.0.15

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/build/index.es.js CHANGED
@@ -12111,9 +12111,15 @@ var IkasPageDataProvider = /** @class */ (function () {
12111
12111
  case IkasThemeComponentPropType.IMAGE_LIST:
12112
12112
  IkasPageDataProvider.initImageListPropValue(prop, propValue, pageComponentPropValue);
12113
12113
  break;
12114
+ case IkasThemeComponentPropType.BRAND:
12115
+ IkasPageDataProvider.initBrandPropValue(prop, propValue, pageComponentPropValue);
12116
+ break;
12114
12117
  case IkasThemeComponentPropType.BRAND_LIST:
12115
12118
  IkasPageDataProvider.initBrandListPropValue(prop, propValue, pageComponentPropValue);
12116
12119
  break;
12120
+ case IkasThemeComponentPropType.CATEGORY:
12121
+ IkasPageDataProvider.initCategoryPropValue(prop, propValue, pageComponentPropValue);
12122
+ break;
12117
12123
  case IkasThemeComponentPropType.CATEGORY_LIST:
12118
12124
  IkasPageDataProvider.initCategoryListPropValue(prop, propValue, pageComponentPropValue);
12119
12125
  break;
@@ -12132,10 +12138,18 @@ var IkasPageDataProvider = /** @class */ (function () {
12132
12138
  });
12133
12139
  return pageComponentPropValues;
12134
12140
  };
12141
+ IkasPageDataProvider.initBrandPropValue = function (prop, propValue, pageComponentPropValue) {
12142
+ var brand = new IkasBrand(propValue);
12143
+ pageComponentPropValue.propValues[prop.name] = brand;
12144
+ };
12135
12145
  IkasPageDataProvider.initBrandListPropValue = function (prop, propValue, pageComponentPropValue) {
12136
12146
  var brandList = new IkasBrandList(propValue);
12137
12147
  pageComponentPropValue.propValues[prop.name] = brandList;
12138
12148
  };
12149
+ IkasPageDataProvider.initCategoryPropValue = function (prop, propValue, pageComponentPropValue) {
12150
+ var category = new IkasCategory(propValue);
12151
+ pageComponentPropValue.propValues[prop.name] = category;
12152
+ };
12139
12153
  IkasPageDataProvider.initCategoryListPropValue = function (prop, propValue, pageComponentPropValue) {
12140
12154
  var categoryList = new IkasCategoryList(propValue);
12141
12155
  pageComponentPropValue.propValues[prop.name] = categoryList;
package/build/index.js CHANGED
@@ -12124,9 +12124,15 @@ var IkasPageDataProvider = /** @class */ (function () {
12124
12124
  case exports.IkasThemeComponentPropType.IMAGE_LIST:
12125
12125
  IkasPageDataProvider.initImageListPropValue(prop, propValue, pageComponentPropValue);
12126
12126
  break;
12127
+ case exports.IkasThemeComponentPropType.BRAND:
12128
+ IkasPageDataProvider.initBrandPropValue(prop, propValue, pageComponentPropValue);
12129
+ break;
12127
12130
  case exports.IkasThemeComponentPropType.BRAND_LIST:
12128
12131
  IkasPageDataProvider.initBrandListPropValue(prop, propValue, pageComponentPropValue);
12129
12132
  break;
12133
+ case exports.IkasThemeComponentPropType.CATEGORY:
12134
+ IkasPageDataProvider.initCategoryPropValue(prop, propValue, pageComponentPropValue);
12135
+ break;
12130
12136
  case exports.IkasThemeComponentPropType.CATEGORY_LIST:
12131
12137
  IkasPageDataProvider.initCategoryListPropValue(prop, propValue, pageComponentPropValue);
12132
12138
  break;
@@ -12145,10 +12151,18 @@ var IkasPageDataProvider = /** @class */ (function () {
12145
12151
  });
12146
12152
  return pageComponentPropValues;
12147
12153
  };
12154
+ IkasPageDataProvider.initBrandPropValue = function (prop, propValue, pageComponentPropValue) {
12155
+ var brand = new IkasBrand(propValue);
12156
+ pageComponentPropValue.propValues[prop.name] = brand;
12157
+ };
12148
12158
  IkasPageDataProvider.initBrandListPropValue = function (prop, propValue, pageComponentPropValue) {
12149
12159
  var brandList = new IkasBrandList(propValue);
12150
12160
  pageComponentPropValue.propValues[prop.name] = brandList;
12151
12161
  };
12162
+ IkasPageDataProvider.initCategoryPropValue = function (prop, propValue, pageComponentPropValue) {
12163
+ var category = new IkasCategory(propValue);
12164
+ pageComponentPropValue.propValues[prop.name] = category;
12165
+ };
12152
12166
  IkasPageDataProvider.initCategoryListPropValue = function (prop, propValue, pageComponentPropValue) {
12153
12167
  var categoryList = new IkasCategoryList(propValue);
12154
12168
  pageComponentPropValue.propValues[prop.name] = categoryList;
@@ -21,7 +21,9 @@ export declare class IkasPageDataProvider {
21
21
  getPageComponentPropValue(pageComponent: IkasThemePageComponent, prop: IkasThemeComponentProp): Promise<any>;
22
22
  static isServer(): boolean;
23
23
  static initPropValues(propValuesStr: string, router: NextRouter, queryParams?: Record<string, any>): IkasPageComponentPropValue[];
24
+ static initBrandPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
24
25
  static initBrandListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
26
+ static initCategoryPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
25
27
  static initCategoryListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
26
28
  static initProductListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
27
29
  static initProductDetailPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue, queryParams: Record<string, any>, router: NextRouter): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",