@ikas/storefront 0.0.169-alpha.1 → 0.0.169-alpha.3
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/image/index.d.ts +1 -0
- package/build/index.es.js +4 -3
- package/build/index.js +4 -3
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -23751,7 +23751,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
23751
23751
|
return [4 /*yield*/, IkasCheckoutAPI.listPaymentGateway(isLocal ? undefined : idList)];
|
|
23752
23752
|
case 1:
|
|
23753
23753
|
paymentGateways = _a.sent();
|
|
23754
|
-
if (!paymentGateways) {
|
|
23754
|
+
if (!paymentGateways || !paymentGateways.length) {
|
|
23755
23755
|
this.error = {
|
|
23756
23756
|
type: ErrorType.API_ERROR,
|
|
23757
23757
|
};
|
|
@@ -24230,6 +24230,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24230
24230
|
}
|
|
24231
24231
|
else {
|
|
24232
24232
|
localStorage.removeItem(USE_DIFFERENT_ADDRESS_KEY);
|
|
24233
|
+
_this.checkout.billingAddress = _this.checkout.shippingAddress;
|
|
24233
24234
|
}
|
|
24234
24235
|
};
|
|
24235
24236
|
this.setShouldSaveAddress = function (value) {
|
|
@@ -70294,7 +70295,7 @@ var IMAGE_SIZES = [
|
|
|
70294
70295
|
3840,
|
|
70295
70296
|
];
|
|
70296
70297
|
var Image = function (_a) {
|
|
70297
|
-
var image = _a.image, others = __rest(_a, ["image"]);
|
|
70298
|
+
var image = _a.image, useBlur = _a.useBlur, others = __rest(_a, ["image", "useBlur"]);
|
|
70298
70299
|
var loader = function (_a) {
|
|
70299
70300
|
var width = _a.width;
|
|
70300
70301
|
var closest = IMAGE_SIZES.reduce(function (prev, curr) {
|
|
@@ -70302,7 +70303,7 @@ var Image = function (_a) {
|
|
|
70302
70303
|
});
|
|
70303
70304
|
return image.getSrc(closest);
|
|
70304
70305
|
};
|
|
70305
|
-
return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: "blur", blurDataURL: image.getSrc(180) })));
|
|
70306
|
+
return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: useBlur ? "blur" : "empty", blurDataURL: useBlur ? image.getSrc(180) : undefined })));
|
|
70306
70307
|
};
|
|
70307
70308
|
|
|
70308
70309
|
var styles$k = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
|
package/build/index.js
CHANGED
|
@@ -23758,7 +23758,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
23758
23758
|
return [4 /*yield*/, IkasCheckoutAPI.listPaymentGateway(isLocal ? undefined : idList)];
|
|
23759
23759
|
case 1:
|
|
23760
23760
|
paymentGateways = _a.sent();
|
|
23761
|
-
if (!paymentGateways) {
|
|
23761
|
+
if (!paymentGateways || !paymentGateways.length) {
|
|
23762
23762
|
this.error = {
|
|
23763
23763
|
type: ErrorType.API_ERROR,
|
|
23764
23764
|
};
|
|
@@ -24237,6 +24237,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24237
24237
|
}
|
|
24238
24238
|
else {
|
|
24239
24239
|
localStorage.removeItem(USE_DIFFERENT_ADDRESS_KEY);
|
|
24240
|
+
_this.checkout.billingAddress = _this.checkout.shippingAddress;
|
|
24240
24241
|
}
|
|
24241
24242
|
};
|
|
24242
24243
|
this.setShouldSaveAddress = function (value) {
|
|
@@ -70273,7 +70274,7 @@ var IMAGE_SIZES = [
|
|
|
70273
70274
|
3840,
|
|
70274
70275
|
];
|
|
70275
70276
|
var Image = function (_a) {
|
|
70276
|
-
var image = _a.image, others = __rest(_a, ["image"]);
|
|
70277
|
+
var image = _a.image, useBlur = _a.useBlur, others = __rest(_a, ["image", "useBlur"]);
|
|
70277
70278
|
var loader = function (_a) {
|
|
70278
70279
|
var width = _a.width;
|
|
70279
70280
|
var closest = IMAGE_SIZES.reduce(function (prev, curr) {
|
|
@@ -70281,7 +70282,7 @@ var Image = function (_a) {
|
|
|
70281
70282
|
});
|
|
70282
70283
|
return image.getSrc(closest);
|
|
70283
70284
|
};
|
|
70284
|
-
return (React.createElement(NextImage__default['default'], __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: "blur", blurDataURL: image.getSrc(180) })));
|
|
70285
|
+
return (React.createElement(NextImage__default['default'], __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: useBlur ? "blur" : "empty", blurDataURL: useBlur ? image.getSrc(180) : undefined })));
|
|
70285
70286
|
};
|
|
70286
70287
|
|
|
70287
70288
|
var styles$k = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
|