@ikas/storefront 0.0.161-alpha.17 → 0.0.161-alpha.18

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
@@ -37992,7 +37992,7 @@ var SettingsHelper = /** @class */ (function () {
37992
37992
  });
37993
37993
  }); });
37994
37994
  };
37995
- SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes) {
37995
+ SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes, isEditor) {
37996
37996
  var _a;
37997
37997
  return __awaiter(this, void 0, void 0, function () {
37998
37998
  var isLocal, locale, serverRuntimeConfig, settings, storefront, themeLocalization, salesChannel, routing, favicon, stockPreference, provider, componentIds, components, componentDirs, nextI18nConf, routingLocales, defaultRoutingLocale, _b, _c;
@@ -38035,24 +38035,28 @@ var SettingsHelper = /** @class */ (function () {
38035
38035
  IkasStorefrontConfig.stockPreference = stockPreference || null;
38036
38036
  provider = new IkasPageDataProvider(themeLocalization.themeJson, context.params, pageType);
38037
38037
  provider.possiblePageTypes = possiblePageTypes;
38038
+ if (!!isEditor) return [3 /*break*/, 3];
38038
38039
  return [4 /*yield*/, provider.getPageData()];
38039
38040
  case 2:
38040
38041
  _f.sent();
38042
+ _f.label = 3;
38043
+ case 3:
38041
38044
  if (!provider.page) {
38042
- return [2 /*return*/, {
38043
- props: {},
38044
- notFound: true,
38045
- }];
38045
+ if (!isEditor)
38046
+ return [2 /*return*/, {
38047
+ props: {},
38048
+ notFound: true,
38049
+ }];
38046
38050
  }
38047
- componentIds = provider.page.components.map(function (pc) { return pc.componentId; });
38048
- components = themeLocalization.themeJson.components.filter(function (c) {
38049
- return componentIds.includes(c.id);
38050
- });
38051
+ componentIds = isEditor
38052
+ ? provider.theme.components.map(function (c) { return c.id; })
38053
+ : provider.page.components.map(function (pc) { return pc.componentId; });
38054
+ components = themeLocalization.themeJson.components.filter(function (c) { return isEditor || componentIds.includes(c.id); });
38051
38055
  componentDirs = __spreadArrays(["common"], components.map(function (c) { return c.dir; }));
38052
38056
  nextI18nConf = serverRuntimeConfig.nextI18nConf;
38053
38057
  routingLocales = uniq_1(storefront.routings.map(function (sr) { return sr.locale; }));
38054
38058
  defaultRoutingLocale = routing.locale;
38055
- if (!isServer) return [3 /*break*/, 4];
38059
+ if (!isServer) return [3 /*break*/, 5];
38056
38060
  _d = {};
38057
38061
  _b = [{}];
38058
38062
  return [4 /*yield*/, serverSideTranslations(routing.locale, componentDirs, isLocal
@@ -38065,9 +38069,9 @@ var SettingsHelper = /** @class */ (function () {
38065
38069
  serializeConfig: false,
38066
38070
  localePath: nextI18nConf.localePath,
38067
38071
  })];
38068
- case 3: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_f.sent())])), provider.nextPageData.props]),
38072
+ case 4: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_f.sent())])), provider.nextPageData.props]),
38069
38073
  _d)];
38070
- case 4:
38074
+ case 5:
38071
38075
  _e = {};
38072
38076
  _c = [{}];
38073
38077
  return [4 /*yield*/, serverSideTranslations(routing.locale, componentDirs, isLocal
@@ -38080,18 +38084,18 @@ var SettingsHelper = /** @class */ (function () {
38080
38084
  serializeConfig: false,
38081
38085
  localePath: nextI18nConf.localePath,
38082
38086
  })];
38083
- case 5: return [2 /*return*/, (_e.props = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), provider.nextPageData.props]),
38087
+ case 6: return [2 /*return*/, (_e.props = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), provider.nextPageData.props]),
38084
38088
  _e.revalidate = 60,
38085
38089
  _e)];
38086
38090
  }
38087
38091
  });
38088
38092
  });
38089
38093
  };
38090
- SettingsHelper.getStaticProps = function (context, pageType, possiblePageTypes) {
38094
+ SettingsHelper.getStaticProps = function (context, pageType, possiblePageTypes, isEditor) {
38091
38095
  return __awaiter(this, void 0, void 0, function () {
38092
38096
  return __generator(this, function (_a) {
38093
38097
  switch (_a.label) {
38094
- case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType, possiblePageTypes)];
38098
+ case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType, possiblePageTypes, isEditor)];
38095
38099
  case 1: return [2 /*return*/, _a.sent()];
38096
38100
  }
38097
38101
  });
@@ -38624,10 +38628,19 @@ var IkasPageEditor$1 = dynamic(function () { return Promise.resolve().then(funct
38624
38628
  var Page$c = function () {
38625
38629
  return createElement(IkasPageEditor$1, null);
38626
38630
  };
38631
+ var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38632
+ return __generator(this, function (_a) {
38633
+ switch (_a.label) {
38634
+ case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, undefined, true)];
38635
+ case 1: return [2 /*return*/, _a.sent()];
38636
+ }
38637
+ });
38638
+ }); };
38627
38639
  var editor = observer(Page$c);
38628
38640
 
38629
38641
  var editor$1 = /*#__PURE__*/Object.freeze({
38630
38642
  __proto__: null,
38643
+ getStaticProps: getStaticProps$b,
38631
38644
  'default': editor
38632
38645
  });
38633
38646
 
@@ -38640,7 +38653,7 @@ var Page$d = function (_a) {
38640
38653
  }, [propValuesStr]);
38641
38654
  return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
38642
38655
  };
38643
- var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38656
+ var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38644
38657
  return __generator(this, function (_a) {
38645
38658
  switch (_a.label) {
38646
38659
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FAVORITE_PRODUCTS)];
@@ -38652,7 +38665,7 @@ var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, voi
38652
38665
  var favoriteProducts = /*#__PURE__*/Object.freeze({
38653
38666
  __proto__: null,
38654
38667
  'default': Page$d,
38655
- getStaticProps: getStaticProps$b
38668
+ getStaticProps: getStaticProps$c
38656
38669
  });
38657
38670
 
38658
38671
  var Page$e = function (_a) {
@@ -38672,7 +38685,7 @@ var Page$e = function (_a) {
38672
38685
  }, [isBrowser, propValuesStr]);
38673
38686
  return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
38674
38687
  };
38675
- var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38688
+ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38676
38689
  return __generator(this, function (_a) {
38677
38690
  switch (_a.label) {
38678
38691
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.SEARCH)];
@@ -38684,7 +38697,7 @@ var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, voi
38684
38697
  var search = /*#__PURE__*/Object.freeze({
38685
38698
  __proto__: null,
38686
38699
  'default': Page$e,
38687
- getStaticProps: getStaticProps$c
38700
+ getStaticProps: getStaticProps$d
38688
38701
  });
38689
38702
 
38690
38703
  var Page$f = function (_a) {
@@ -38698,7 +38711,7 @@ var Page$f = function (_a) {
38698
38711
  }, [propValuesStr]);
38699
38712
  return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
38700
38713
  };
38701
- var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38714
+ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38702
38715
  var props;
38703
38716
  return __generator(this, function (_a) {
38704
38717
  switch (_a.label) {
@@ -38720,7 +38733,7 @@ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, voi
38720
38733
  var _404 = /*#__PURE__*/Object.freeze({
38721
38734
  __proto__: null,
38722
38735
  'default': Page$f,
38723
- getStaticProps: getStaticProps$d
38736
+ getStaticProps: getStaticProps$e
38724
38737
  });
38725
38738
 
38726
38739
  var Page$g = function (_a) {
@@ -38732,7 +38745,7 @@ var Page$g = function (_a) {
38732
38745
  }, [propValuesStr]);
38733
38746
  return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
38734
38747
  };
38735
- var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38748
+ var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38736
38749
  return __generator(this, function (_a) {
38737
38750
  switch (_a.label) {
38738
38751
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.BLOG_INDEX)];
@@ -38744,7 +38757,7 @@ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, voi
38744
38757
  var index$5 = /*#__PURE__*/Object.freeze({
38745
38758
  __proto__: null,
38746
38759
  'default': Page$g,
38747
- getStaticProps: getStaticProps$e
38760
+ getStaticProps: getStaticProps$f
38748
38761
  });
38749
38762
 
38750
38763
  var Page$h = function (_a) {
@@ -38773,7 +38786,7 @@ var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, voi
38773
38786
  }];
38774
38787
  });
38775
38788
  }); };
38776
- var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38789
+ var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38777
38790
  return __generator(this, function (_a) {
38778
38791
  switch (_a.label) {
38779
38792
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, [
@@ -38789,7 +38802,7 @@ var _slug_$2 = /*#__PURE__*/Object.freeze({
38789
38802
  __proto__: null,
38790
38803
  'default': _slug_$1,
38791
38804
  getStaticPaths: getStaticPaths$2,
38792
- getStaticProps: getStaticProps$f
38805
+ getStaticProps: getStaticProps$g
38793
38806
  });
38794
38807
 
38795
38808
  /**
package/build/index.js CHANGED
@@ -37969,7 +37969,7 @@ var SettingsHelper = /** @class */ (function () {
37969
37969
  });
37970
37970
  }); });
37971
37971
  };
37972
- SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes) {
37972
+ SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes, isEditor) {
37973
37973
  var _a;
37974
37974
  return __awaiter(this, void 0, void 0, function () {
37975
37975
  var isLocal, locale, serverRuntimeConfig, settings, storefront, themeLocalization, salesChannel, routing, favicon, stockPreference, provider, componentIds, components, componentDirs, nextI18nConf, routingLocales, defaultRoutingLocale, _b, _c;
@@ -38012,24 +38012,28 @@ var SettingsHelper = /** @class */ (function () {
38012
38012
  IkasStorefrontConfig.stockPreference = stockPreference || null;
38013
38013
  provider = new IkasPageDataProvider(themeLocalization.themeJson, context.params, pageType);
38014
38014
  provider.possiblePageTypes = possiblePageTypes;
38015
+ if (!!isEditor) return [3 /*break*/, 3];
38015
38016
  return [4 /*yield*/, provider.getPageData()];
38016
38017
  case 2:
38017
38018
  _f.sent();
38019
+ _f.label = 3;
38020
+ case 3:
38018
38021
  if (!provider.page) {
38019
- return [2 /*return*/, {
38020
- props: {},
38021
- notFound: true,
38022
- }];
38022
+ if (!isEditor)
38023
+ return [2 /*return*/, {
38024
+ props: {},
38025
+ notFound: true,
38026
+ }];
38023
38027
  }
38024
- componentIds = provider.page.components.map(function (pc) { return pc.componentId; });
38025
- components = themeLocalization.themeJson.components.filter(function (c) {
38026
- return componentIds.includes(c.id);
38027
- });
38028
+ componentIds = isEditor
38029
+ ? provider.theme.components.map(function (c) { return c.id; })
38030
+ : provider.page.components.map(function (pc) { return pc.componentId; });
38031
+ components = themeLocalization.themeJson.components.filter(function (c) { return isEditor || componentIds.includes(c.id); });
38028
38032
  componentDirs = __spreadArrays(["common"], components.map(function (c) { return c.dir; }));
38029
38033
  nextI18nConf = serverRuntimeConfig.nextI18nConf;
38030
38034
  routingLocales = uniq_1(storefront.routings.map(function (sr) { return sr.locale; }));
38031
38035
  defaultRoutingLocale = routing.locale;
38032
- if (!isServer) return [3 /*break*/, 4];
38036
+ if (!isServer) return [3 /*break*/, 5];
38033
38037
  _d = {};
38034
38038
  _b = [{}];
38035
38039
  return [4 /*yield*/, serverSideTranslations.serverSideTranslations(routing.locale, componentDirs, isLocal
@@ -38042,9 +38046,9 @@ var SettingsHelper = /** @class */ (function () {
38042
38046
  serializeConfig: false,
38043
38047
  localePath: nextI18nConf.localePath,
38044
38048
  })];
38045
- case 3: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_f.sent())])), provider.nextPageData.props]),
38049
+ case 4: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_f.sent())])), provider.nextPageData.props]),
38046
38050
  _d)];
38047
- case 4:
38051
+ case 5:
38048
38052
  _e = {};
38049
38053
  _c = [{}];
38050
38054
  return [4 /*yield*/, serverSideTranslations.serverSideTranslations(routing.locale, componentDirs, isLocal
@@ -38057,18 +38061,18 @@ var SettingsHelper = /** @class */ (function () {
38057
38061
  serializeConfig: false,
38058
38062
  localePath: nextI18nConf.localePath,
38059
38063
  })];
38060
- case 5: return [2 /*return*/, (_e.props = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), provider.nextPageData.props]),
38064
+ case 6: return [2 /*return*/, (_e.props = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), provider.nextPageData.props]),
38061
38065
  _e.revalidate = 60,
38062
38066
  _e)];
38063
38067
  }
38064
38068
  });
38065
38069
  });
38066
38070
  };
38067
- SettingsHelper.getStaticProps = function (context, pageType, possiblePageTypes) {
38071
+ SettingsHelper.getStaticProps = function (context, pageType, possiblePageTypes, isEditor) {
38068
38072
  return __awaiter(this, void 0, void 0, function () {
38069
38073
  return __generator(this, function (_a) {
38070
38074
  switch (_a.label) {
38071
- case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType, possiblePageTypes)];
38075
+ case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType, possiblePageTypes, isEditor)];
38072
38076
  case 1: return [2 /*return*/, _a.sent()];
38073
38077
  }
38074
38078
  });
@@ -38601,10 +38605,19 @@ var IkasPageEditor$1 = dynamic__default['default'](function () { return Promise.
38601
38605
  var Page$c = function () {
38602
38606
  return React.createElement(IkasPageEditor$1, null);
38603
38607
  };
38608
+ var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38609
+ return __generator(this, function (_a) {
38610
+ switch (_a.label) {
38611
+ case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, undefined, true)];
38612
+ case 1: return [2 /*return*/, _a.sent()];
38613
+ }
38614
+ });
38615
+ }); };
38604
38616
  var editor = mobxReactLite.observer(Page$c);
38605
38617
 
38606
38618
  var editor$1 = /*#__PURE__*/Object.freeze({
38607
38619
  __proto__: null,
38620
+ getStaticProps: getStaticProps$b,
38608
38621
  'default': editor
38609
38622
  });
38610
38623
 
@@ -38617,7 +38630,7 @@ var Page$d = function (_a) {
38617
38630
  }, [propValuesStr]);
38618
38631
  return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
38619
38632
  };
38620
- var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38633
+ var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38621
38634
  return __generator(this, function (_a) {
38622
38635
  switch (_a.label) {
38623
38636
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, exports.IkasThemePageType.FAVORITE_PRODUCTS)];
@@ -38629,7 +38642,7 @@ var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, voi
38629
38642
  var favoriteProducts = /*#__PURE__*/Object.freeze({
38630
38643
  __proto__: null,
38631
38644
  'default': Page$d,
38632
- getStaticProps: getStaticProps$b
38645
+ getStaticProps: getStaticProps$c
38633
38646
  });
38634
38647
 
38635
38648
  var Page$e = function (_a) {
@@ -38649,7 +38662,7 @@ var Page$e = function (_a) {
38649
38662
  }, [isBrowser, propValuesStr]);
38650
38663
  return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
38651
38664
  };
38652
- var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38665
+ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38653
38666
  return __generator(this, function (_a) {
38654
38667
  switch (_a.label) {
38655
38668
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, exports.IkasThemePageType.SEARCH)];
@@ -38661,7 +38674,7 @@ var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, voi
38661
38674
  var search = /*#__PURE__*/Object.freeze({
38662
38675
  __proto__: null,
38663
38676
  'default': Page$e,
38664
- getStaticProps: getStaticProps$c
38677
+ getStaticProps: getStaticProps$d
38665
38678
  });
38666
38679
 
38667
38680
  var Page$f = function (_a) {
@@ -38675,7 +38688,7 @@ var Page$f = function (_a) {
38675
38688
  }, [propValuesStr]);
38676
38689
  return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
38677
38690
  };
38678
- var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38691
+ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38679
38692
  var props;
38680
38693
  return __generator(this, function (_a) {
38681
38694
  switch (_a.label) {
@@ -38697,7 +38710,7 @@ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, voi
38697
38710
  var _404 = /*#__PURE__*/Object.freeze({
38698
38711
  __proto__: null,
38699
38712
  'default': Page$f,
38700
- getStaticProps: getStaticProps$d
38713
+ getStaticProps: getStaticProps$e
38701
38714
  });
38702
38715
 
38703
38716
  var Page$g = function (_a) {
@@ -38709,7 +38722,7 @@ var Page$g = function (_a) {
38709
38722
  }, [propValuesStr]);
38710
38723
  return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
38711
38724
  };
38712
- var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38725
+ var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38713
38726
  return __generator(this, function (_a) {
38714
38727
  switch (_a.label) {
38715
38728
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, exports.IkasThemePageType.BLOG_INDEX)];
@@ -38721,7 +38734,7 @@ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, voi
38721
38734
  var index$5 = /*#__PURE__*/Object.freeze({
38722
38735
  __proto__: null,
38723
38736
  'default': Page$g,
38724
- getStaticProps: getStaticProps$e
38737
+ getStaticProps: getStaticProps$f
38725
38738
  });
38726
38739
 
38727
38740
  var Page$h = function (_a) {
@@ -38750,7 +38763,7 @@ var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, voi
38750
38763
  }];
38751
38764
  });
38752
38765
  }); };
38753
- var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38766
+ var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, void 0, function () {
38754
38767
  return __generator(this, function (_a) {
38755
38768
  switch (_a.label) {
38756
38769
  case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, [
@@ -38766,7 +38779,7 @@ var _slug_$2 = /*#__PURE__*/Object.freeze({
38766
38779
  __proto__: null,
38767
38780
  'default': _slug_$1,
38768
38781
  getStaticPaths: getStaticPaths$2,
38769
- getStaticProps: getStaticProps$f
38782
+ getStaticProps: getStaticProps$g
38770
38783
  });
38771
38784
 
38772
38785
  /**
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { GetStaticProps } from "next";
3
+ export declare const getStaticProps: GetStaticProps;
2
4
  declare const _default: (() => JSX.Element) & {
3
5
  displayName: string;
4
6
  };
@@ -12,7 +12,7 @@ export declare class SettingsHelper {
12
12
  static readLocalTheme(): Promise<IkasTheme>;
13
13
  static readSettingsFile(): Promise<any>;
14
14
  static getSettings(locale: string): Promise<SettingsData | null>;
15
- static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[]): Promise<{
15
+ static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
16
16
  props: {};
17
17
  notFound: boolean;
18
18
  revalidate?: undefined;
@@ -75,7 +75,7 @@ export declare class SettingsHelper {
75
75
  revalidate: number;
76
76
  notFound?: undefined;
77
77
  }>;
78
- static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[]): Promise<{
78
+ static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
79
79
  props: {};
80
80
  notFound: boolean;
81
81
  revalidate?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.161-alpha.17",
3
+ "version": "0.0.161-alpha.18",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",