@ikas/storefront 0.0.70 → 0.0.71
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 +30 -1
- package/build/index.js +30 -0
- package/build/models/theme/page/index.d.ts +2 -1
- package/build/pages/404.d.ts +12 -0
- package/build/pages/index.d.ts +2 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -18217,6 +18217,7 @@ var IkasThemePageType;
|
|
|
18217
18217
|
IkasThemePageType["CART"] = "CART";
|
|
18218
18218
|
IkasThemePageType["FAVORITE_PRODUCTS"] = "FAVORITE_PRODUCTS";
|
|
18219
18219
|
IkasThemePageType["SEARCH"] = "SEARCH";
|
|
18220
|
+
IkasThemePageType["NOT_FOUND"] = "NOT_FOUND";
|
|
18220
18221
|
})(IkasThemePageType || (IkasThemePageType = {}));
|
|
18221
18222
|
|
|
18222
18223
|
var IkasThemeColor = /** @class */ (function () {
|
|
@@ -28294,6 +28295,34 @@ var search = /*#__PURE__*/Object.freeze({
|
|
|
28294
28295
|
getStaticProps: getStaticProps$c
|
|
28295
28296
|
});
|
|
28296
28297
|
|
|
28298
|
+
var Page$f = function (_a) {
|
|
28299
|
+
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28300
|
+
var router = useRouter();
|
|
28301
|
+
var propValues = IkasPageDataProvider.initPropValues(propValuesStr, router);
|
|
28302
|
+
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28303
|
+
};
|
|
28304
|
+
var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28305
|
+
var theme, provider;
|
|
28306
|
+
return __generator(this, function (_a) {
|
|
28307
|
+
switch (_a.label) {
|
|
28308
|
+
case 0: return [4 /*yield*/, IkasThemeAPI.fetchTheme()];
|
|
28309
|
+
case 1:
|
|
28310
|
+
theme = _a.sent();
|
|
28311
|
+
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.NOT_FOUND);
|
|
28312
|
+
return [4 /*yield*/, provider.getPageData()];
|
|
28313
|
+
case 2:
|
|
28314
|
+
_a.sent();
|
|
28315
|
+
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28316
|
+
}
|
|
28317
|
+
});
|
|
28318
|
+
}); };
|
|
28319
|
+
|
|
28320
|
+
var _404 = /*#__PURE__*/Object.freeze({
|
|
28321
|
+
__proto__: null,
|
|
28322
|
+
'default': Page$f,
|
|
28323
|
+
getStaticProps: getStaticProps$d
|
|
28324
|
+
});
|
|
28325
|
+
|
|
28297
28326
|
configure({
|
|
28298
28327
|
enforceActions: "never",
|
|
28299
28328
|
});
|
|
@@ -28305,4 +28334,4 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
28305
28334
|
return IkasBaseStore;
|
|
28306
28335
|
}());
|
|
28307
28336
|
|
|
28308
|
-
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, cart as CartPage, _id_$1 as CheckoutPage, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, GTMAddToCart, GTMBeginCheckout, GTMBody, GTMCheckoutStep, GTMDisableHTML, GTMHead, GTMPageView, GTMProductView, GTMPurchase, GTMRemoveFromCart, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAPI, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontAPI, IkasStorefrontConfig, IkasTheme, IkasThemeAPI, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemeCustomDataType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home as IndexPage, LessThanRule, LoginForm, login as LoginPage, MaxRule, MinRule, _id_$2 as OrderDetailPage, index$4 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword as RecoverPasswordPage, RegisterForm, register as RegisterPage, RequiredRule, search as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, decodeBase64, formatMoney, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
|
|
28337
|
+
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, cart as CartPage, _id_$1 as CheckoutPage, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, GTMAddToCart, GTMBeginCheckout, GTMBody, GTMCheckoutStep, GTMDisableHTML, GTMHead, GTMPageView, GTMProductView, GTMPurchase, GTMRemoveFromCart, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAPI, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontAPI, IkasStorefrontConfig, IkasTheme, IkasThemeAPI, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemeCustomDataType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home as IndexPage, LessThanRule, LoginForm, login as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$2 as OrderDetailPage, index$4 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword as RecoverPasswordPage, RegisterForm, register as RegisterPage, RequiredRule, search as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, decodeBase64, formatMoney, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
|
package/build/index.js
CHANGED
|
@@ -18205,6 +18205,7 @@ var IkasThemePage = /** @class */ (function () {
|
|
|
18205
18205
|
IkasThemePageType["CART"] = "CART";
|
|
18206
18206
|
IkasThemePageType["FAVORITE_PRODUCTS"] = "FAVORITE_PRODUCTS";
|
|
18207
18207
|
IkasThemePageType["SEARCH"] = "SEARCH";
|
|
18208
|
+
IkasThemePageType["NOT_FOUND"] = "NOT_FOUND";
|
|
18208
18209
|
})(exports.IkasThemePageType || (exports.IkasThemePageType = {}));
|
|
18209
18210
|
|
|
18210
18211
|
var IkasThemeColor = /** @class */ (function () {
|
|
@@ -28274,6 +28275,34 @@ var search = /*#__PURE__*/Object.freeze({
|
|
|
28274
28275
|
getStaticProps: getStaticProps$c
|
|
28275
28276
|
});
|
|
28276
28277
|
|
|
28278
|
+
var Page$f = function (_a) {
|
|
28279
|
+
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28280
|
+
var router$1 = router.useRouter();
|
|
28281
|
+
var propValues = IkasPageDataProvider.initPropValues(propValuesStr, router$1);
|
|
28282
|
+
return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28283
|
+
};
|
|
28284
|
+
var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28285
|
+
var theme, provider;
|
|
28286
|
+
return __generator(this, function (_a) {
|
|
28287
|
+
switch (_a.label) {
|
|
28288
|
+
case 0: return [4 /*yield*/, IkasThemeAPI.fetchTheme()];
|
|
28289
|
+
case 1:
|
|
28290
|
+
theme = _a.sent();
|
|
28291
|
+
provider = new IkasPageDataProvider(theme, context.params, exports.IkasThemePageType.NOT_FOUND);
|
|
28292
|
+
return [4 /*yield*/, provider.getPageData()];
|
|
28293
|
+
case 2:
|
|
28294
|
+
_a.sent();
|
|
28295
|
+
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28296
|
+
}
|
|
28297
|
+
});
|
|
28298
|
+
}); };
|
|
28299
|
+
|
|
28300
|
+
var _404 = /*#__PURE__*/Object.freeze({
|
|
28301
|
+
__proto__: null,
|
|
28302
|
+
'default': Page$f,
|
|
28303
|
+
getStaticProps: getStaticProps$d
|
|
28304
|
+
});
|
|
28305
|
+
|
|
28277
28306
|
mobx.configure({
|
|
28278
28307
|
enforceActions: "never",
|
|
28279
28308
|
});
|
|
@@ -28384,6 +28413,7 @@ exports.LoginForm = LoginForm;
|
|
|
28384
28413
|
exports.LoginPage = login;
|
|
28385
28414
|
exports.MaxRule = MaxRule;
|
|
28386
28415
|
exports.MinRule = MinRule;
|
|
28416
|
+
exports.NotFoundPage = _404;
|
|
28387
28417
|
exports.OrderDetailPage = _id_$2;
|
|
28388
28418
|
exports.OrdersPage = index$4;
|
|
28389
28419
|
exports.PhoneRule = PhoneRule;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { GetStaticProps } from "next";
|
|
3
|
+
import { IkasThemePage } from "../models/index";
|
|
4
|
+
declare type Props = {
|
|
5
|
+
propValuesStr: string;
|
|
6
|
+
page: IkasThemePage;
|
|
7
|
+
settingsStr: string;
|
|
8
|
+
merchantSettings: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Page: React.FC<Props>;
|
|
11
|
+
export default Page;
|
|
12
|
+
export declare const getStaticProps: GetStaticProps;
|
package/build/pages/index.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ import * as CartPage from "./cart";
|
|
|
14
14
|
import * as EditorPage from "./editor";
|
|
15
15
|
import * as FavoriteProductsPage from "./account/favorite-products";
|
|
16
16
|
import * as SearchPage from "./search";
|
|
17
|
-
|
|
17
|
+
import * as NotFoundPage from "./404";
|
|
18
|
+
export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, };
|