@ikas/storefront 0.1.5 → 0.1.7

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
@@ -71991,7 +71991,7 @@ function corsMiddleware(req, res) {
71991
71991
 
71992
71992
  var serverRuntimeConfig = getConfig().serverRuntimeConfig;
71993
71993
  var componentsPath = path$2.join(serverRuntimeConfig.PROJECT_ROOT, "src", "components");
71994
- var getComponentDirs = (function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
71994
+ var getComponentDirs = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
71995
71995
  var componentDirNames;
71996
71996
  return __generator(this, function (_a) {
71997
71997
  switch (_a.label) {
@@ -72009,7 +72009,7 @@ var getComponentDirs = (function (req, res) { return __awaiter(void 0, void 0, v
72009
72009
  return [2 /*return*/];
72010
72010
  }
72011
72011
  });
72012
- }); });
72012
+ }); };
72013
72013
  var config = {};
72014
72014
  function getComponentDirNames() {
72015
72015
  return new Promise(function (resolve, reject) {
@@ -72026,18 +72026,18 @@ function getComponentDirNames() {
72026
72026
 
72027
72027
  var GetComponentDirs = /*#__PURE__*/Object.freeze({
72028
72028
  __proto__: null,
72029
- 'default': getComponentDirs,
72029
+ getComponentDirs: getComponentDirs,
72030
72030
  config: config
72031
72031
  });
72032
72032
 
72033
- var getTheme = (function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
72033
+ var getTheme = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
72034
72034
  var theme;
72035
72035
  return __generator(this, function (_a) {
72036
72036
  switch (_a.label) {
72037
72037
  case 0: return [4 /*yield*/, corsMiddleware(req, res)];
72038
72038
  case 1:
72039
72039
  _a.sent();
72040
- return [4 /*yield*/, getTheme$1()];
72040
+ return [4 /*yield*/, _getTheme()];
72041
72041
  case 2:
72042
72042
  theme = _a.sent();
72043
72043
  res.statusCode = 200;
@@ -72048,9 +72048,9 @@ var getTheme = (function (req, res) { return __awaiter(void 0, void 0, void 0, f
72048
72048
  return [2 /*return*/];
72049
72049
  }
72050
72050
  });
72051
- }); });
72051
+ }); };
72052
72052
  var config$1 = {};
72053
- function getTheme$1() {
72053
+ function _getTheme() {
72054
72054
  return new Promise(function (resolve, reject) {
72055
72055
  var serverRuntimeConfig = getConfig().serverRuntimeConfig;
72056
72056
  var themePath = path$2.join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
@@ -72068,7 +72068,7 @@ function getTheme$1() {
72068
72068
 
72069
72069
  var GetTheme = /*#__PURE__*/Object.freeze({
72070
72070
  __proto__: null,
72071
- 'default': getTheme,
72071
+ getTheme: getTheme,
72072
72072
  config: config$1
72073
72073
  });
72074
72074
 
@@ -113146,7 +113146,7 @@ var uploadTheme = function (req, res) { return __awaiter(void 0, void 0, void 0,
113146
113146
  _a.label = 2;
113147
113147
  case 2:
113148
113148
  _a.trys.push([2, 9, , 10]);
113149
- return [4 /*yield*/, getTheme$2()];
113149
+ return [4 /*yield*/, getTheme$1()];
113150
113150
  case 3:
113151
113151
  theme = _a.sent();
113152
113152
  return [4 /*yield*/, readLocalizationFiles()];
@@ -113350,7 +113350,7 @@ function buildTheme() {
113350
113350
  });
113351
113351
  });
113352
113352
  }
113353
- function getTheme$2() {
113353
+ function getTheme$1() {
113354
113354
  return new Promise(function (resolve, reject) {
113355
113355
  var serverRuntimeConfig = getConfig().serverRuntimeConfig;
113356
113356
  var themePath = path$2.join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
@@ -113418,11 +113418,11 @@ var UploadTheme = /*#__PURE__*/Object.freeze({
113418
113418
  config: config$3
113419
113419
  });
113420
113420
 
113421
- var IkasLocaleThemeAPI = {
113421
+ var IkasLocalThemeAPI = {
113422
113422
  GetComponentDirs: GetComponentDirs,
113423
113423
  GetTheme: GetTheme,
113424
113424
  UpdateTheme: UpdateTheme,
113425
113425
  UploadTheme: UploadTheme,
113426
113426
  };
113427
113427
 
113428
- export { AccountInfoForm, index$4 as AccountPage, AddressForm, addresses$1 as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$8 as BlogPage, _slug_$3 as BlogSlugPage, cart$1 as CartPage, checkout$1 as CheckoutPage, ContactForm, _slug_$1 as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts$1 as FavoriteProductsPage, ForgotPasswordForm, forgotPassword$1 as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasAttributeDetail, IkasAttributeList, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogCategoryList, IkasBlogCategoryListPropValue, IkasBlogCategoryListType, IkasBlogCategoryPropValue, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasLocaleThemeAPI, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderRefundSettings, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeType, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home$1 as IndexPage, LessThanRule, LoginForm, login$1 as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$1 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$6 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword$1 as RecoverPasswordPage, RegisterForm, register$1 as RegisterPage, RequiredRule, search$1 as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, createTranslationInputData, decodeBase64, findAllIndexes, formatDate, formatMoney, parseRangeStr, pascalCase, stringSorter, stringToSlug, tryForEach, useTranslation, validatePhoneNumber };
113428
+ export { AccountInfoForm, index$4 as AccountPage, AddressForm, addresses$1 as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$8 as BlogPage, _slug_$3 as BlogSlugPage, cart$1 as CartPage, checkout$1 as CheckoutPage, ContactForm, _slug_$1 as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts$1 as FavoriteProductsPage, ForgotPasswordForm, forgotPassword$1 as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasAttributeDetail, IkasAttributeList, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogCategoryList, IkasBlogCategoryListPropValue, IkasBlogCategoryListType, IkasBlogCategoryPropValue, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasLocalThemeAPI, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderRefundSettings, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeType, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home$1 as IndexPage, LessThanRule, LoginForm, login$1 as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$1 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$6 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword$1 as RecoverPasswordPage, RegisterForm, register$1 as RegisterPage, RequiredRule, search$1 as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, createTranslationInputData, decodeBase64, findAllIndexes, formatDate, formatMoney, parseRangeStr, pascalCase, stringSorter, stringToSlug, tryForEach, useTranslation, validatePhoneNumber };
package/build/index.js CHANGED
@@ -71983,7 +71983,7 @@ function corsMiddleware(req, res) {
71983
71983
 
71984
71984
  var serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
71985
71985
  var componentsPath = path__default['default'].join(serverRuntimeConfig.PROJECT_ROOT, "src", "components");
71986
- var getComponentDirs = (function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
71986
+ var getComponentDirs = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
71987
71987
  var componentDirNames;
71988
71988
  return __generator(this, function (_a) {
71989
71989
  switch (_a.label) {
@@ -72001,7 +72001,7 @@ var getComponentDirs = (function (req, res) { return __awaiter(void 0, void 0, v
72001
72001
  return [2 /*return*/];
72002
72002
  }
72003
72003
  });
72004
- }); });
72004
+ }); };
72005
72005
  var config = {};
72006
72006
  function getComponentDirNames() {
72007
72007
  return new Promise(function (resolve, reject) {
@@ -72018,18 +72018,18 @@ function getComponentDirNames() {
72018
72018
 
72019
72019
  var GetComponentDirs = /*#__PURE__*/Object.freeze({
72020
72020
  __proto__: null,
72021
- 'default': getComponentDirs,
72021
+ getComponentDirs: getComponentDirs,
72022
72022
  config: config
72023
72023
  });
72024
72024
 
72025
- var getTheme = (function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
72025
+ var getTheme = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
72026
72026
  var theme;
72027
72027
  return __generator(this, function (_a) {
72028
72028
  switch (_a.label) {
72029
72029
  case 0: return [4 /*yield*/, corsMiddleware(req, res)];
72030
72030
  case 1:
72031
72031
  _a.sent();
72032
- return [4 /*yield*/, getTheme$1()];
72032
+ return [4 /*yield*/, _getTheme()];
72033
72033
  case 2:
72034
72034
  theme = _a.sent();
72035
72035
  res.statusCode = 200;
@@ -72040,9 +72040,9 @@ var getTheme = (function (req, res) { return __awaiter(void 0, void 0, void 0, f
72040
72040
  return [2 /*return*/];
72041
72041
  }
72042
72042
  });
72043
- }); });
72043
+ }); };
72044
72044
  var config$1 = {};
72045
- function getTheme$1() {
72045
+ function _getTheme() {
72046
72046
  return new Promise(function (resolve, reject) {
72047
72047
  var serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
72048
72048
  var themePath = path__default['default'].join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
@@ -72060,7 +72060,7 @@ function getTheme$1() {
72060
72060
 
72061
72061
  var GetTheme = /*#__PURE__*/Object.freeze({
72062
72062
  __proto__: null,
72063
- 'default': getTheme,
72063
+ getTheme: getTheme,
72064
72064
  config: config$1
72065
72065
  });
72066
72066
 
@@ -113138,7 +113138,7 @@ var uploadTheme = function (req, res) { return __awaiter(void 0, void 0, void 0,
113138
113138
  _a.label = 2;
113139
113139
  case 2:
113140
113140
  _a.trys.push([2, 9, , 10]);
113141
- return [4 /*yield*/, getTheme$2()];
113141
+ return [4 /*yield*/, getTheme$1()];
113142
113142
  case 3:
113143
113143
  theme = _a.sent();
113144
113144
  return [4 /*yield*/, readLocalizationFiles()];
@@ -113342,7 +113342,7 @@ function buildTheme() {
113342
113342
  });
113343
113343
  });
113344
113344
  }
113345
- function getTheme$2() {
113345
+ function getTheme$1() {
113346
113346
  return new Promise(function (resolve, reject) {
113347
113347
  var serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
113348
113348
  var themePath = path__default['default'].join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
@@ -113410,7 +113410,7 @@ var UploadTheme = /*#__PURE__*/Object.freeze({
113410
113410
  config: config$3
113411
113411
  });
113412
113412
 
113413
- var IkasLocaleThemeAPI = {
113413
+ var IkasLocalThemeAPI = {
113414
113414
  GetComponentDirs: GetComponentDirs,
113415
113415
  GetTheme: GetTheme,
113416
113416
  UpdateTheme: UpdateTheme,
@@ -113481,7 +113481,7 @@ exports.IkasHTMLMetaData = IkasHTMLMetaData;
113481
113481
  exports.IkasHTMLMetaDataAPI = IkasHTMLMetaDataAPI;
113482
113482
  exports.IkasImage = IkasImage;
113483
113483
  exports.IkasLinkPropValue = IkasLinkPropValue;
113484
- exports.IkasLocaleThemeAPI = IkasLocaleThemeAPI;
113484
+ exports.IkasLocalThemeAPI = IkasLocalThemeAPI;
113485
113485
  exports.IkasMerchantAPI = IkasMerchantAPI;
113486
113486
  exports.IkasMerchantSettings = IkasMerchantSettings;
113487
113487
  exports.IkasNavigationLink = IkasNavigationLink;
@@ -1,4 +1,3 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
- declare const _default: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export default _default;
2
+ export declare const getComponentDirs: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
4
3
  export declare const config: {};
@@ -1,4 +1,3 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
- declare const _default: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export default _default;
2
+ export declare const getTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
4
3
  export declare const config: {};
@@ -21,10 +21,10 @@ import * as GetComponentDirs from "./api/getComponentDirs";
21
21
  import * as GetTheme from "./api/getTheme";
22
22
  import * as UpdateTheme from "./api/updateTheme";
23
23
  import * as UploadTheme from "./api/uploadTheme";
24
- declare const IkasLocaleThemeAPI: {
24
+ declare const IkasLocalThemeAPI: {
25
25
  GetComponentDirs: typeof GetComponentDirs;
26
26
  GetTheme: typeof GetTheme;
27
27
  UpdateTheme: typeof UpdateTheme;
28
28
  UploadTheme: typeof UploadTheme;
29
29
  };
30
- export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, IkasLocaleThemeAPI, };
30
+ export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, IkasLocalThemeAPI, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",