@ikas/storefront 0.0.69 → 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/components/checkout/components/error-container/payment-error/index.d.ts +2 -0
- package/build/index.es.js +67 -4
- package/build/index.js +68 -3
- package/build/models/theme/page/index.d.ts +3 -1
- package/build/pages/404.d.ts +12 -0
- package/build/pages/index.d.ts +3 -1
- package/build/pages/search.d.ts +12 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -18216,6 +18216,8 @@ var IkasThemePageType;
|
|
|
18216
18216
|
IkasThemePageType["RECOVER_PASSWORD"] = "RECOVER_PASSWORD";
|
|
18217
18217
|
IkasThemePageType["CART"] = "CART";
|
|
18218
18218
|
IkasThemePageType["FAVORITE_PRODUCTS"] = "FAVORITE_PRODUCTS";
|
|
18219
|
+
IkasThemePageType["SEARCH"] = "SEARCH";
|
|
18220
|
+
IkasThemePageType["NOT_FOUND"] = "NOT_FOUND";
|
|
18219
18221
|
})(IkasThemePageType || (IkasThemePageType = {}));
|
|
18220
18222
|
|
|
18221
18223
|
var IkasThemeColor = /** @class */ (function () {
|
|
@@ -20168,6 +20170,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
20168
20170
|
filter.applyQueryParam(value);
|
|
20169
20171
|
}
|
|
20170
20172
|
});
|
|
20173
|
+
var querySearch = queryParams === null || queryParams === void 0 ? void 0 : queryParams.get("s");
|
|
20174
|
+
if (querySearch)
|
|
20175
|
+
this._searchKeyword = querySearch;
|
|
20171
20176
|
}
|
|
20172
20177
|
catch (err) {
|
|
20173
20178
|
console.log(err);
|
|
@@ -24587,6 +24592,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24587
24592
|
if (typeof queryParams.failed === "string") {
|
|
24588
24593
|
this.error = {
|
|
24589
24594
|
type: ErrorType.PAYMENT_ERROR,
|
|
24595
|
+
data: queryParams.error || null,
|
|
24590
24596
|
};
|
|
24591
24597
|
}
|
|
24592
24598
|
merchantId = decodeBase64(IkasStorefrontConfig.config.apiKey || "");
|
|
@@ -26325,9 +26331,10 @@ var UnknownError = observer(function (_a) {
|
|
|
26325
26331
|
});
|
|
26326
26332
|
|
|
26327
26333
|
var PaymentError = observer(function (_a) {
|
|
26328
|
-
var onClose = _a.onClose;
|
|
26334
|
+
var error = _a.error, onClose = _a.onClose;
|
|
26329
26335
|
return (createElement(ErrorContainer, { onClose: onClose },
|
|
26330
|
-
createElement("div", null,
|
|
26336
|
+
createElement("div", null, (error === null || error === void 0 ? void 0 : error.data) ||
|
|
26337
|
+
"Ödemeniz alınamadı. Lütfen bilgilerinizi kontrol edip tekrar deneyin.")));
|
|
26331
26338
|
});
|
|
26332
26339
|
|
|
26333
26340
|
var NoShippingError = observer(function (_a) {
|
|
@@ -27122,7 +27129,7 @@ var IkasCheckoutPage = observer(function (_a) {
|
|
|
27122
27129
|
return createElement(StockError, { error: vm.error, onClose: onErrorClose });
|
|
27123
27130
|
};
|
|
27124
27131
|
var renderPaymentError = function () {
|
|
27125
|
-
return createElement(PaymentError, { onClose: onErrorClose });
|
|
27132
|
+
return createElement(PaymentError, { error: vm.error, onClose: onErrorClose });
|
|
27126
27133
|
};
|
|
27127
27134
|
var renderNoShipingError = function () {
|
|
27128
27135
|
return createElement(NoShippingError, { onClose: onErrorClose });
|
|
@@ -28260,6 +28267,62 @@ var favoriteProducts = /*#__PURE__*/Object.freeze({
|
|
|
28260
28267
|
getStaticProps: getStaticProps$b
|
|
28261
28268
|
});
|
|
28262
28269
|
|
|
28270
|
+
var Page$e = function (_a) {
|
|
28271
|
+
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28272
|
+
var router = useRouter();
|
|
28273
|
+
var propValues = IkasPageDataProvider.initPropValues(propValuesStr, router);
|
|
28274
|
+
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28275
|
+
};
|
|
28276
|
+
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28277
|
+
var theme, provider;
|
|
28278
|
+
return __generator(this, function (_a) {
|
|
28279
|
+
switch (_a.label) {
|
|
28280
|
+
case 0: return [4 /*yield*/, IkasThemeAPI.fetchTheme()];
|
|
28281
|
+
case 1:
|
|
28282
|
+
theme = _a.sent();
|
|
28283
|
+
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.SEARCH);
|
|
28284
|
+
return [4 /*yield*/, provider.getPageData()];
|
|
28285
|
+
case 2:
|
|
28286
|
+
_a.sent();
|
|
28287
|
+
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28288
|
+
}
|
|
28289
|
+
});
|
|
28290
|
+
}); };
|
|
28291
|
+
|
|
28292
|
+
var search = /*#__PURE__*/Object.freeze({
|
|
28293
|
+
__proto__: null,
|
|
28294
|
+
'default': Page$e,
|
|
28295
|
+
getStaticProps: getStaticProps$c
|
|
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
|
+
|
|
28263
28326
|
configure({
|
|
28264
28327
|
enforceActions: "never",
|
|
28265
28328
|
});
|
|
@@ -28271,4 +28334,4 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
28271
28334
|
return IkasBaseStore;
|
|
28272
28335
|
}());
|
|
28273
28336
|
|
|
28274
|
-
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, 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
|
@@ -18204,6 +18204,8 @@ var IkasThemePage = /** @class */ (function () {
|
|
|
18204
18204
|
IkasThemePageType["RECOVER_PASSWORD"] = "RECOVER_PASSWORD";
|
|
18205
18205
|
IkasThemePageType["CART"] = "CART";
|
|
18206
18206
|
IkasThemePageType["FAVORITE_PRODUCTS"] = "FAVORITE_PRODUCTS";
|
|
18207
|
+
IkasThemePageType["SEARCH"] = "SEARCH";
|
|
18208
|
+
IkasThemePageType["NOT_FOUND"] = "NOT_FOUND";
|
|
18207
18209
|
})(exports.IkasThemePageType || (exports.IkasThemePageType = {}));
|
|
18208
18210
|
|
|
18209
18211
|
var IkasThemeColor = /** @class */ (function () {
|
|
@@ -20151,6 +20153,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
20151
20153
|
filter.applyQueryParam(value);
|
|
20152
20154
|
}
|
|
20153
20155
|
});
|
|
20156
|
+
var querySearch = queryParams === null || queryParams === void 0 ? void 0 : queryParams.get("s");
|
|
20157
|
+
if (querySearch)
|
|
20158
|
+
this._searchKeyword = querySearch;
|
|
20154
20159
|
}
|
|
20155
20160
|
catch (err) {
|
|
20156
20161
|
console.log(err);
|
|
@@ -24567,6 +24572,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24567
24572
|
if (typeof queryParams.failed === "string") {
|
|
24568
24573
|
this.error = {
|
|
24569
24574
|
type: ErrorType.PAYMENT_ERROR,
|
|
24575
|
+
data: queryParams.error || null,
|
|
24570
24576
|
};
|
|
24571
24577
|
}
|
|
24572
24578
|
merchantId = decodeBase64(IkasStorefrontConfig.config.apiKey || "");
|
|
@@ -26305,9 +26311,10 @@ var UnknownError = mobxReactLite.observer(function (_a) {
|
|
|
26305
26311
|
});
|
|
26306
26312
|
|
|
26307
26313
|
var PaymentError = mobxReactLite.observer(function (_a) {
|
|
26308
|
-
var onClose = _a.onClose;
|
|
26314
|
+
var error = _a.error, onClose = _a.onClose;
|
|
26309
26315
|
return (React.createElement(ErrorContainer, { onClose: onClose },
|
|
26310
|
-
React.createElement("div", null,
|
|
26316
|
+
React.createElement("div", null, (error === null || error === void 0 ? void 0 : error.data) ||
|
|
26317
|
+
"Ödemeniz alınamadı. Lütfen bilgilerinizi kontrol edip tekrar deneyin.")));
|
|
26311
26318
|
});
|
|
26312
26319
|
|
|
26313
26320
|
var NoShippingError = mobxReactLite.observer(function (_a) {
|
|
@@ -27102,7 +27109,7 @@ var IkasCheckoutPage = mobxReactLite.observer(function (_a) {
|
|
|
27102
27109
|
return React.createElement(StockError, { error: vm.error, onClose: onErrorClose });
|
|
27103
27110
|
};
|
|
27104
27111
|
var renderPaymentError = function () {
|
|
27105
|
-
return React.createElement(PaymentError, { onClose: onErrorClose });
|
|
27112
|
+
return React.createElement(PaymentError, { error: vm.error, onClose: onErrorClose });
|
|
27106
27113
|
};
|
|
27107
27114
|
var renderNoShipingError = function () {
|
|
27108
27115
|
return React.createElement(NoShippingError, { onClose: onErrorClose });
|
|
@@ -28240,6 +28247,62 @@ var favoriteProducts = /*#__PURE__*/Object.freeze({
|
|
|
28240
28247
|
getStaticProps: getStaticProps$b
|
|
28241
28248
|
});
|
|
28242
28249
|
|
|
28250
|
+
var Page$e = function (_a) {
|
|
28251
|
+
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28252
|
+
var router$1 = router.useRouter();
|
|
28253
|
+
var propValues = IkasPageDataProvider.initPropValues(propValuesStr, router$1);
|
|
28254
|
+
return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28255
|
+
};
|
|
28256
|
+
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28257
|
+
var theme, provider;
|
|
28258
|
+
return __generator(this, function (_a) {
|
|
28259
|
+
switch (_a.label) {
|
|
28260
|
+
case 0: return [4 /*yield*/, IkasThemeAPI.fetchTheme()];
|
|
28261
|
+
case 1:
|
|
28262
|
+
theme = _a.sent();
|
|
28263
|
+
provider = new IkasPageDataProvider(theme, context.params, exports.IkasThemePageType.SEARCH);
|
|
28264
|
+
return [4 /*yield*/, provider.getPageData()];
|
|
28265
|
+
case 2:
|
|
28266
|
+
_a.sent();
|
|
28267
|
+
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28268
|
+
}
|
|
28269
|
+
});
|
|
28270
|
+
}); };
|
|
28271
|
+
|
|
28272
|
+
var search = /*#__PURE__*/Object.freeze({
|
|
28273
|
+
__proto__: null,
|
|
28274
|
+
'default': Page$e,
|
|
28275
|
+
getStaticProps: getStaticProps$c
|
|
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
|
+
|
|
28243
28306
|
mobx.configure({
|
|
28244
28307
|
enforceActions: "never",
|
|
28245
28308
|
});
|
|
@@ -28350,6 +28413,7 @@ exports.LoginForm = LoginForm;
|
|
|
28350
28413
|
exports.LoginPage = login;
|
|
28351
28414
|
exports.MaxRule = MaxRule;
|
|
28352
28415
|
exports.MinRule = MinRule;
|
|
28416
|
+
exports.NotFoundPage = _404;
|
|
28353
28417
|
exports.OrderDetailPage = _id_$2;
|
|
28354
28418
|
exports.OrdersPage = index$4;
|
|
28355
28419
|
exports.PhoneRule = PhoneRule;
|
|
@@ -28359,6 +28423,7 @@ exports.RecoverPasswordPage = recoverPassword;
|
|
|
28359
28423
|
exports.RegisterForm = RegisterForm;
|
|
28360
28424
|
exports.RegisterPage = register;
|
|
28361
28425
|
exports.RequiredRule = RequiredRule;
|
|
28426
|
+
exports.SearchPage = search;
|
|
28362
28427
|
exports.SlugPage = index$2;
|
|
28363
28428
|
exports.ValidationRule = ValidationRule;
|
|
28364
28429
|
exports.Validator = Validator;
|
|
@@ -24,5 +24,7 @@ export declare enum IkasThemePageType {
|
|
|
24
24
|
FORGOT_PASSWORD = "FORGOT_PASSWORD",
|
|
25
25
|
RECOVER_PASSWORD = "RECOVER_PASSWORD",
|
|
26
26
|
CART = "CART",
|
|
27
|
-
FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS"
|
|
27
|
+
FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
|
|
28
|
+
SEARCH = "SEARCH",
|
|
29
|
+
NOT_FOUND = "NOT_FOUND"
|
|
28
30
|
}
|
|
@@ -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
|
@@ -13,4 +13,6 @@ import * as RecoverPasswordPage from "./account/recover-password";
|
|
|
13
13
|
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
|
+
import * as NotFoundPage from "./404";
|
|
18
|
+
export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, };
|
|
@@ -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;
|