@ikas/storefront 0.0.149 → 0.0.151

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
@@ -18453,7 +18453,7 @@ var IkasProductFilter = /** @class */ (function () {
18453
18453
  else if (this.displayType === IkasProductFilterDisplayType.NUMBER_RANGE_LIST) {
18454
18454
  (_a = this.numberRangeListOptions) === null || _a === void 0 ? void 0 : _a.forEach(function (o) {
18455
18455
  if (valueKeys.includes(o.key))
18456
- o.isSelected = true;
18456
+ o._isSelected = true;
18457
18457
  });
18458
18458
  }
18459
18459
  else {
@@ -25981,8 +25981,8 @@ var IkasBlog = /** @class */ (function () {
25981
25981
  if (data === void 0) { data = {}; }
25982
25982
  var _a;
25983
25983
  this.id = data.id || Date.now() + "";
25984
- this.createdAt = data.createdAt || Date.now() + "";
25985
- this.updatedAt = data.updatedAt || Date.now() + "";
25984
+ this.createdAt = data.createdAt || Date.now();
25985
+ this.updatedAt = data.updatedAt || Date.now();
25986
25986
  this.categoryId = data.categoryId || null;
25987
25987
  this.category = data.category ? new IkasBlogCategory(data.category) : null;
25988
25988
  this.imageId = data.imageId || null;
@@ -26018,8 +26018,8 @@ var IkasBlogContent = /** @class */ (function () {
26018
26018
  function IkasBlogContent(data) {
26019
26019
  if (data === void 0) { data = {}; }
26020
26020
  this.id = data.id || Date.now() + "";
26021
- this.createdAt = data.createdAt || Date.now() + "";
26022
- this.updatedAt = data.updatedAt || Date.now() + "";
26021
+ this.createdAt = data.createdAt || Date.now();
26022
+ this.updatedAt = data.updatedAt || Date.now();
26023
26023
  this.content = data.content || "";
26024
26024
  makeAutoObservable(this);
26025
26025
  }
@@ -26045,8 +26045,8 @@ var IkasBlogMetaData = /** @class */ (function () {
26045
26045
  this.pageTitle = null;
26046
26046
  this.description = null;
26047
26047
  this.id = data.id || Date.now() + "";
26048
- this.createdAt = data.createdAt || Date.now() + "";
26049
- this.updatedAt = data.updatedAt || Date.now() + "";
26048
+ this.createdAt = data.createdAt || Date.now();
26049
+ this.updatedAt = data.updatedAt || Date.now();
26050
26050
  this.description = data.description || "";
26051
26051
  this.pageTitle = data.pageTitle || "";
26052
26052
  this.slug = data.slug || "";
@@ -26060,8 +26060,8 @@ var IkasBlogCategory = /** @class */ (function () {
26060
26060
  function IkasBlogCategory(data) {
26061
26061
  if (data === void 0) { data = {}; }
26062
26062
  this.id = data.id || "";
26063
- this.createdAt = data.createdAt || Date.now() + "";
26064
- this.updatedAt = data.updatedAt || Date.now() + "";
26063
+ this.createdAt = data.createdAt || Date.now();
26064
+ this.updatedAt = data.updatedAt || Date.now();
26065
26065
  this.deleted = data.deleted || false;
26066
26066
  this.name = data.name || "";
26067
26067
  this.imageId = data.imageId || "";
@@ -26084,8 +26084,8 @@ var IkasBlogTag = /** @class */ (function () {
26084
26084
  function IkasBlogTag(data) {
26085
26085
  if (data === void 0) { data = {}; }
26086
26086
  this.id = data.id || Date.now() + "";
26087
- this.createdAt = data.createdAt || Date.now() + "";
26088
- this.updatedAt = data.updatedAt || Date.now() + "";
26087
+ this.createdAt = data.createdAt || Date.now();
26088
+ this.updatedAt = data.updatedAt || Date.now();
26089
26089
  this.deleted = data.deleted || false;
26090
26090
  this.name = data.name || "";
26091
26091
  makeAutoObservable(this);
@@ -26102,7 +26102,7 @@ var IkasBlogAPI = /** @class */ (function () {
26102
26102
  return __generator(this, function (_b) {
26103
26103
  switch (_b.label) {
26104
26104
  case 0:
26105
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26105
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26106
26106
  _b.label = 1;
26107
26107
  case 1:
26108
26108
  _b.trys.push([1, 3, , 4]);
@@ -26154,7 +26154,7 @@ var IkasBlogAPI = /** @class */ (function () {
26154
26154
  return __generator(this, function (_b) {
26155
26155
  switch (_b.label) {
26156
26156
  case 0:
26157
- QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26157
+ QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26158
26158
  _b.label = 1;
26159
26159
  case 1:
26160
26160
  _b.trys.push([1, 3, , 4]);
@@ -29951,15 +29951,21 @@ var PageViewModel = /** @class */ (function () {
29951
29951
  this.getPagePropValues = function () { return __awaiter(_this, void 0, void 0, function () {
29952
29952
  var pageDataProvider;
29953
29953
  var _this = this;
29954
- var _a;
29955
- return __generator(this, function (_b) {
29956
- switch (_b.label) {
29954
+ var _a, _b, _c;
29955
+ return __generator(this, function (_d) {
29956
+ switch (_d.label) {
29957
29957
  case 0:
29958
29958
  pageDataProvider = new IkasPageDataProvider(this.theme, this.pageParams, (_a = this.page) === null || _a === void 0 ? void 0 : _a.type);
29959
+ if (((_b = this.pageParams) === null || _b === void 0 ? void 0 : _b.blogId) || ((_c = this.pageParams) === null || _c === void 0 ? void 0 : _c.blogCategoryId)) {
29960
+ pageDataProvider.possiblePageTypes = [
29961
+ IkasThemePageType.BLOG,
29962
+ IkasThemePageType.BLOG_CATEGORY,
29963
+ ];
29964
+ }
29959
29965
  this.isLoading = true;
29960
29966
  return [4 /*yield*/, pageDataProvider.getPageData()];
29961
29967
  case 1:
29962
- _b.sent();
29968
+ _d.sent();
29963
29969
  pageDataProvider.pageComponentPropValues = IkasPageDataProvider.initPropValues(JSON.stringify(pageDataProvider.pageComponentPropValues), this.router, JSON.stringify(this.theme.settings));
29964
29970
  runInAction(function () {
29965
29971
  _this.pageDataProvider = pageDataProvider;
@@ -30144,7 +30150,7 @@ var PageViewModel = /** @class */ (function () {
30144
30150
  Object.defineProperty(PageViewModel.prototype, "specification", {
30145
30151
  get: function () {
30146
30152
  var _this = this;
30147
- var _a, _b, _c;
30153
+ var _a, _b, _c, _d, _e;
30148
30154
  var selectedPage = this.page;
30149
30155
  var specification;
30150
30156
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.PRODUCT) {
@@ -30156,6 +30162,12 @@ var PageViewModel = /** @class */ (function () {
30156
30162
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BRAND) {
30157
30163
  specification = (_c = selectedPage.specifications) === null || _c === void 0 ? void 0 : _c.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.brandId); });
30158
30164
  }
30165
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BLOG) {
30166
+ specification = (_d = selectedPage.specifications) === null || _d === void 0 ? void 0 : _d.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogId); });
30167
+ }
30168
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BLOG_CATEGORY) {
30169
+ specification = (_e = selectedPage.specifications) === null || _e === void 0 ? void 0 : _e.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogCategoryId); });
30170
+ }
30159
30171
  return specification;
30160
30172
  },
30161
30173
  enumerable: false,
package/build/index.js CHANGED
@@ -18449,7 +18449,7 @@ var IkasProductFilter = /** @class */ (function () {
18449
18449
  else if (this.displayType === exports.IkasProductFilterDisplayType.NUMBER_RANGE_LIST) {
18450
18450
  (_a = this.numberRangeListOptions) === null || _a === void 0 ? void 0 : _a.forEach(function (o) {
18451
18451
  if (valueKeys.includes(o.key))
18452
- o.isSelected = true;
18452
+ o._isSelected = true;
18453
18453
  });
18454
18454
  }
18455
18455
  else {
@@ -25961,8 +25961,8 @@ var IkasBlog = /** @class */ (function () {
25961
25961
  if (data === void 0) { data = {}; }
25962
25962
  var _a;
25963
25963
  this.id = data.id || Date.now() + "";
25964
- this.createdAt = data.createdAt || Date.now() + "";
25965
- this.updatedAt = data.updatedAt || Date.now() + "";
25964
+ this.createdAt = data.createdAt || Date.now();
25965
+ this.updatedAt = data.updatedAt || Date.now();
25966
25966
  this.categoryId = data.categoryId || null;
25967
25967
  this.category = data.category ? new IkasBlogCategory(data.category) : null;
25968
25968
  this.imageId = data.imageId || null;
@@ -25998,8 +25998,8 @@ var IkasBlogContent = /** @class */ (function () {
25998
25998
  function IkasBlogContent(data) {
25999
25999
  if (data === void 0) { data = {}; }
26000
26000
  this.id = data.id || Date.now() + "";
26001
- this.createdAt = data.createdAt || Date.now() + "";
26002
- this.updatedAt = data.updatedAt || Date.now() + "";
26001
+ this.createdAt = data.createdAt || Date.now();
26002
+ this.updatedAt = data.updatedAt || Date.now();
26003
26003
  this.content = data.content || "";
26004
26004
  mobx.makeAutoObservable(this);
26005
26005
  }
@@ -26024,8 +26024,8 @@ var IkasBlogMetaData = /** @class */ (function () {
26024
26024
  this.pageTitle = null;
26025
26025
  this.description = null;
26026
26026
  this.id = data.id || Date.now() + "";
26027
- this.createdAt = data.createdAt || Date.now() + "";
26028
- this.updatedAt = data.updatedAt || Date.now() + "";
26027
+ this.createdAt = data.createdAt || Date.now();
26028
+ this.updatedAt = data.updatedAt || Date.now();
26029
26029
  this.description = data.description || "";
26030
26030
  this.pageTitle = data.pageTitle || "";
26031
26031
  this.slug = data.slug || "";
@@ -26039,8 +26039,8 @@ var IkasBlogCategory = /** @class */ (function () {
26039
26039
  function IkasBlogCategory(data) {
26040
26040
  if (data === void 0) { data = {}; }
26041
26041
  this.id = data.id || "";
26042
- this.createdAt = data.createdAt || Date.now() + "";
26043
- this.updatedAt = data.updatedAt || Date.now() + "";
26042
+ this.createdAt = data.createdAt || Date.now();
26043
+ this.updatedAt = data.updatedAt || Date.now();
26044
26044
  this.deleted = data.deleted || false;
26045
26045
  this.name = data.name || "";
26046
26046
  this.imageId = data.imageId || "";
@@ -26063,8 +26063,8 @@ var IkasBlogTag = /** @class */ (function () {
26063
26063
  function IkasBlogTag(data) {
26064
26064
  if (data === void 0) { data = {}; }
26065
26065
  this.id = data.id || Date.now() + "";
26066
- this.createdAt = data.createdAt || Date.now() + "";
26067
- this.updatedAt = data.updatedAt || Date.now() + "";
26066
+ this.createdAt = data.createdAt || Date.now();
26067
+ this.updatedAt = data.updatedAt || Date.now();
26068
26068
  this.deleted = data.deleted || false;
26069
26069
  this.name = data.name || "";
26070
26070
  mobx.makeAutoObservable(this);
@@ -26081,7 +26081,7 @@ var IkasBlogAPI = /** @class */ (function () {
26081
26081
  return __generator(this, function (_b) {
26082
26082
  switch (_b.label) {
26083
26083
  case 0:
26084
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26084
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26085
26085
  _b.label = 1;
26086
26086
  case 1:
26087
26087
  _b.trys.push([1, 3, , 4]);
@@ -26133,7 +26133,7 @@ var IkasBlogAPI = /** @class */ (function () {
26133
26133
  return __generator(this, function (_b) {
26134
26134
  switch (_b.label) {
26135
26135
  case 0:
26136
- QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26136
+ QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26137
26137
  _b.label = 1;
26138
26138
  case 1:
26139
26139
  _b.trys.push([1, 3, , 4]);
@@ -29930,15 +29930,21 @@ var PageViewModel = /** @class */ (function () {
29930
29930
  this.getPagePropValues = function () { return __awaiter(_this, void 0, void 0, function () {
29931
29931
  var pageDataProvider;
29932
29932
  var _this = this;
29933
- var _a;
29934
- return __generator(this, function (_b) {
29935
- switch (_b.label) {
29933
+ var _a, _b, _c;
29934
+ return __generator(this, function (_d) {
29935
+ switch (_d.label) {
29936
29936
  case 0:
29937
29937
  pageDataProvider = new IkasPageDataProvider(this.theme, this.pageParams, (_a = this.page) === null || _a === void 0 ? void 0 : _a.type);
29938
+ if (((_b = this.pageParams) === null || _b === void 0 ? void 0 : _b.blogId) || ((_c = this.pageParams) === null || _c === void 0 ? void 0 : _c.blogCategoryId)) {
29939
+ pageDataProvider.possiblePageTypes = [
29940
+ exports.IkasThemePageType.BLOG,
29941
+ exports.IkasThemePageType.BLOG_CATEGORY,
29942
+ ];
29943
+ }
29938
29944
  this.isLoading = true;
29939
29945
  return [4 /*yield*/, pageDataProvider.getPageData()];
29940
29946
  case 1:
29941
- _b.sent();
29947
+ _d.sent();
29942
29948
  pageDataProvider.pageComponentPropValues = IkasPageDataProvider.initPropValues(JSON.stringify(pageDataProvider.pageComponentPropValues), this.router, JSON.stringify(this.theme.settings));
29943
29949
  mobx.runInAction(function () {
29944
29950
  _this.pageDataProvider = pageDataProvider;
@@ -30123,7 +30129,7 @@ var PageViewModel = /** @class */ (function () {
30123
30129
  Object.defineProperty(PageViewModel.prototype, "specification", {
30124
30130
  get: function () {
30125
30131
  var _this = this;
30126
- var _a, _b, _c;
30132
+ var _a, _b, _c, _d, _e;
30127
30133
  var selectedPage = this.page;
30128
30134
  var specification;
30129
30135
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.PRODUCT) {
@@ -30135,6 +30141,12 @@ var PageViewModel = /** @class */ (function () {
30135
30141
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BRAND) {
30136
30142
  specification = (_c = selectedPage.specifications) === null || _c === void 0 ? void 0 : _c.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.brandId); });
30137
30143
  }
30144
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BLOG) {
30145
+ specification = (_d = selectedPage.specifications) === null || _d === void 0 ? void 0 : _d.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogId); });
30146
+ }
30147
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BLOG_CATEGORY) {
30148
+ specification = (_e = selectedPage.specifications) === null || _e === void 0 ? void 0 : _e.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogCategoryId); });
30149
+ }
30138
30150
  return specification;
30139
30151
  },
30140
30152
  enumerable: false,
@@ -1,8 +1,8 @@
1
1
  import { IkasImage } from "../image/index";
2
2
  export declare class IkasBlog {
3
3
  id: string;
4
- createdAt: string;
5
- updatedAt: string;
4
+ createdAt: number;
5
+ updatedAt: number;
6
6
  categoryId: string | null;
7
7
  category: IkasBlogCategory | null;
8
8
  imageId: string | null;
@@ -21,8 +21,8 @@ export declare class IkasBlog {
21
21
  }
22
22
  export declare class IkasBlogContent {
23
23
  id: string;
24
- createdAt: string;
25
- updatedAt: string;
24
+ createdAt: number;
25
+ updatedAt: number;
26
26
  content: string;
27
27
  constructor(data?: Partial<IkasBlogContent>);
28
28
  }
@@ -37,8 +37,8 @@ export declare enum IkasBlogMetadataTargetType {
37
37
  }
38
38
  export declare class IkasBlogMetaData {
39
39
  id: string;
40
- createdAt: string;
41
- updatedAt: string;
40
+ createdAt: number;
41
+ updatedAt: number;
42
42
  pageTitle: string | null;
43
43
  description: string | null;
44
44
  slug: string;
@@ -48,8 +48,8 @@ export declare class IkasBlogMetaData {
48
48
  }
49
49
  export declare class IkasBlogCategory {
50
50
  id: string;
51
- createdAt: string;
52
- updatedAt: string;
51
+ createdAt: number;
52
+ updatedAt: number;
53
53
  deleted: boolean;
54
54
  name: string;
55
55
  imageId: string;
@@ -59,8 +59,8 @@ export declare class IkasBlogCategory {
59
59
  }
60
60
  export declare class IkasBlogTag {
61
61
  id: string;
62
- createdAt: string;
63
- updatedAt: string;
62
+ createdAt: number;
63
+ updatedAt: number;
64
64
  deleted: boolean;
65
65
  name: string | null;
66
66
  constructor(data?: Partial<IkasBlogTag>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.149",
3
+ "version": "0.0.151",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",