@ikas/storefront 0.0.128 → 0.0.129
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 +70 -1
- package/build/index.js +71 -0
- package/build/pages/index.d.ts +3 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -30924,6 +30924,75 @@ var _404 = /*#__PURE__*/Object.freeze({
|
|
|
30924
30924
|
getStaticProps: getStaticProps$d
|
|
30925
30925
|
});
|
|
30926
30926
|
|
|
30927
|
+
var Page$g = function (_a) {
|
|
30928
|
+
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
|
|
30929
|
+
IkasStorefrontConfig.initWithJson(configJson);
|
|
30930
|
+
var router = useRouter();
|
|
30931
|
+
var propValues = useMemo(function () {
|
|
30932
|
+
return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
|
|
30933
|
+
}, [propValuesStr]);
|
|
30934
|
+
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
30935
|
+
};
|
|
30936
|
+
var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30937
|
+
return __generator(this, function (_a) {
|
|
30938
|
+
switch (_a.label) {
|
|
30939
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.BLOG_INDEX)];
|
|
30940
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
30941
|
+
}
|
|
30942
|
+
});
|
|
30943
|
+
}); };
|
|
30944
|
+
|
|
30945
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
30946
|
+
__proto__: null,
|
|
30947
|
+
'default': Page$g,
|
|
30948
|
+
getStaticProps: getStaticProps$e
|
|
30949
|
+
});
|
|
30950
|
+
|
|
30951
|
+
var Page$h = function (_a) {
|
|
30952
|
+
var page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
|
|
30953
|
+
IkasStorefrontConfig.initWithJson(configJson);
|
|
30954
|
+
var router = useRouter();
|
|
30955
|
+
var _b = useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
|
|
30956
|
+
var initialPropValues = useMemo(function () {
|
|
30957
|
+
return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
|
|
30958
|
+
}, [propValuesStr]);
|
|
30959
|
+
var _c = useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
|
|
30960
|
+
useEffect(function () {
|
|
30961
|
+
setIsBrowser(typeof window !== "undefined");
|
|
30962
|
+
}, []);
|
|
30963
|
+
useEffect(function () {
|
|
30964
|
+
setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
|
|
30965
|
+
}, [isBrowser, propValuesStr]);
|
|
30966
|
+
return (createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
|
|
30967
|
+
};
|
|
30968
|
+
var _slug_$1 = observer(Page$h);
|
|
30969
|
+
var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30970
|
+
return __generator(this, function (_a) {
|
|
30971
|
+
return [2 /*return*/, {
|
|
30972
|
+
paths: [],
|
|
30973
|
+
fallback: "blocking",
|
|
30974
|
+
}];
|
|
30975
|
+
});
|
|
30976
|
+
}); };
|
|
30977
|
+
var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30978
|
+
return __generator(this, function (_a) {
|
|
30979
|
+
switch (_a.label) {
|
|
30980
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, [
|
|
30981
|
+
IkasThemePageType.BLOG,
|
|
30982
|
+
IkasThemePageType.BLOG_CATEGORY,
|
|
30983
|
+
])];
|
|
30984
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
30985
|
+
}
|
|
30986
|
+
});
|
|
30987
|
+
}); };
|
|
30988
|
+
|
|
30989
|
+
var _slug_$2 = /*#__PURE__*/Object.freeze({
|
|
30990
|
+
__proto__: null,
|
|
30991
|
+
'default': _slug_$1,
|
|
30992
|
+
getStaticPaths: getStaticPaths$2,
|
|
30993
|
+
getStaticProps: getStaticProps$f
|
|
30994
|
+
});
|
|
30995
|
+
|
|
30927
30996
|
/**
|
|
30928
30997
|
* Flattens `array` a single level deep.
|
|
30929
30998
|
*
|
|
@@ -31054,4 +31123,4 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
31054
31123
|
return IkasBaseStore;
|
|
31055
31124
|
}());
|
|
31056
31125
|
|
|
31057
|
-
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, cart as CartPage, _id_$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, 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, IkasProductAttribute, IkasProductAttributeAPI, 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, 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, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, 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, getPlaceholderBlog, getPlaceholderBrand, getPlaceholderCategory, getPlaceholderProduct, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
|
|
31126
|
+
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$5 as BlogPage, _slug_$2 as BlogSlugPage, cart as CartPage, _id_$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, 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, IkasProductAttribute, IkasProductAttributeAPI, 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, 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, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, 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, getPlaceholderBlog, getPlaceholderBrand, getPlaceholderCategory, getPlaceholderProduct, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
|
package/build/index.js
CHANGED
|
@@ -30902,6 +30902,75 @@ var _404 = /*#__PURE__*/Object.freeze({
|
|
|
30902
30902
|
getStaticProps: getStaticProps$d
|
|
30903
30903
|
});
|
|
30904
30904
|
|
|
30905
|
+
var Page$g = function (_a) {
|
|
30906
|
+
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
|
|
30907
|
+
IkasStorefrontConfig.initWithJson(configJson);
|
|
30908
|
+
var router$1 = router.useRouter();
|
|
30909
|
+
var propValues = React.useMemo(function () {
|
|
30910
|
+
return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
|
|
30911
|
+
}, [propValuesStr]);
|
|
30912
|
+
return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
30913
|
+
};
|
|
30914
|
+
var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30915
|
+
return __generator(this, function (_a) {
|
|
30916
|
+
switch (_a.label) {
|
|
30917
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, exports.IkasThemePageType.BLOG_INDEX)];
|
|
30918
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
30919
|
+
}
|
|
30920
|
+
});
|
|
30921
|
+
}); };
|
|
30922
|
+
|
|
30923
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
30924
|
+
__proto__: null,
|
|
30925
|
+
'default': Page$g,
|
|
30926
|
+
getStaticProps: getStaticProps$e
|
|
30927
|
+
});
|
|
30928
|
+
|
|
30929
|
+
var Page$h = function (_a) {
|
|
30930
|
+
var page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
|
|
30931
|
+
IkasStorefrontConfig.initWithJson(configJson);
|
|
30932
|
+
var router$1 = router.useRouter();
|
|
30933
|
+
var _b = React.useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
|
|
30934
|
+
var initialPropValues = React.useMemo(function () {
|
|
30935
|
+
return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
|
|
30936
|
+
}, [propValuesStr]);
|
|
30937
|
+
var _c = React.useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
|
|
30938
|
+
React.useEffect(function () {
|
|
30939
|
+
setIsBrowser(typeof window !== "undefined");
|
|
30940
|
+
}, []);
|
|
30941
|
+
React.useEffect(function () {
|
|
30942
|
+
setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr, isBrowser));
|
|
30943
|
+
}, [isBrowser, propValuesStr]);
|
|
30944
|
+
return (React.createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
|
|
30945
|
+
};
|
|
30946
|
+
var _slug_$1 = mobxReactLite.observer(Page$h);
|
|
30947
|
+
var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30948
|
+
return __generator(this, function (_a) {
|
|
30949
|
+
return [2 /*return*/, {
|
|
30950
|
+
paths: [],
|
|
30951
|
+
fallback: "blocking",
|
|
30952
|
+
}];
|
|
30953
|
+
});
|
|
30954
|
+
}); };
|
|
30955
|
+
var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30956
|
+
return __generator(this, function (_a) {
|
|
30957
|
+
switch (_a.label) {
|
|
30958
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, [
|
|
30959
|
+
exports.IkasThemePageType.BLOG,
|
|
30960
|
+
exports.IkasThemePageType.BLOG_CATEGORY,
|
|
30961
|
+
])];
|
|
30962
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
30963
|
+
}
|
|
30964
|
+
});
|
|
30965
|
+
}); };
|
|
30966
|
+
|
|
30967
|
+
var _slug_$2 = /*#__PURE__*/Object.freeze({
|
|
30968
|
+
__proto__: null,
|
|
30969
|
+
'default': _slug_$1,
|
|
30970
|
+
getStaticPaths: getStaticPaths$2,
|
|
30971
|
+
getStaticProps: getStaticProps$f
|
|
30972
|
+
});
|
|
30973
|
+
|
|
30905
30974
|
/**
|
|
30906
30975
|
* Flattens `array` a single level deep.
|
|
30907
30976
|
*
|
|
@@ -31039,6 +31108,8 @@ exports.AddressesPage = addresses;
|
|
|
31039
31108
|
exports.Analytics = Analytics;
|
|
31040
31109
|
exports.AnalyticsBody = AnalyticsBody;
|
|
31041
31110
|
exports.AnalyticsHead = AnalyticsHead;
|
|
31111
|
+
exports.BlogPage = index$5;
|
|
31112
|
+
exports.BlogSlugPage = _slug_$2;
|
|
31042
31113
|
exports.CartPage = cart;
|
|
31043
31114
|
exports.CheckoutPage = _id_$1;
|
|
31044
31115
|
exports.ContactForm = ContactForm;
|
package/build/pages/index.d.ts
CHANGED
|
@@ -15,4 +15,6 @@ 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
|
-
|
|
18
|
+
import * as BlogPage from "./blog/index";
|
|
19
|
+
import * as BlogSlugPage from "./blog/[slug]";
|
|
20
|
+
export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, };
|