@ikas/loyalty-widget-renderer 1.0.0-alpha.73 → 1.0.0-alpha.75
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/locales.d.ts +10 -0
- package/build/renderer/components/mini-mode-button/index.js +1 -1
- package/build/renderer/screens/main-screen/applied-discount/index.js +1 -1
- package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
- package/build/renderer/utils/i18n.d.ts +5 -605
- package/build/renderer/utils/i18n.js +1 -1
- package/build/renderer/utils/locales/de.json.js +1 -1
- package/build/renderer/utils/locales/en.json.js +1 -1
- package/build/renderer/utils/locales/fr.json.js +1 -1
- package/build/renderer/utils/locales/nl.json.js +1 -1
- package/build/renderer/utils/locales/tr.json.js +1 -1
- package/build/storefront-widget-script-injector.iife.js +1 -1
- package/build/storefront-widget-script-injector.iife.js.map +1 -1
- package/package.json +1 -1
package/build/locales.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ declare const locales: {
|
|
|
52
52
|
registerButton: string;
|
|
53
53
|
haveAccount: string;
|
|
54
54
|
earnedPoints: string;
|
|
55
|
+
logoAlt: string;
|
|
55
56
|
};
|
|
56
57
|
earningMethods: {
|
|
57
58
|
xPoints: string;
|
|
@@ -110,6 +111,7 @@ declare const locales: {
|
|
|
110
111
|
};
|
|
111
112
|
miniMode: {
|
|
112
113
|
description: string;
|
|
114
|
+
altText: string;
|
|
113
115
|
};
|
|
114
116
|
};
|
|
115
117
|
en: {
|
|
@@ -165,6 +167,7 @@ declare const locales: {
|
|
|
165
167
|
registerButton: string;
|
|
166
168
|
haveAccount: string;
|
|
167
169
|
earnedPoints: string;
|
|
170
|
+
logoAlt: string;
|
|
168
171
|
};
|
|
169
172
|
earningMethods: {
|
|
170
173
|
xPoints: string;
|
|
@@ -223,6 +226,7 @@ declare const locales: {
|
|
|
223
226
|
};
|
|
224
227
|
miniMode: {
|
|
225
228
|
description: string;
|
|
229
|
+
altText: string;
|
|
226
230
|
};
|
|
227
231
|
};
|
|
228
232
|
de: {
|
|
@@ -278,6 +282,7 @@ declare const locales: {
|
|
|
278
282
|
registerButton: string;
|
|
279
283
|
haveAccount: string;
|
|
280
284
|
earnedPoints: string;
|
|
285
|
+
logoAlt: string;
|
|
281
286
|
};
|
|
282
287
|
earningMethods: {
|
|
283
288
|
xPoints: string;
|
|
@@ -336,6 +341,7 @@ declare const locales: {
|
|
|
336
341
|
};
|
|
337
342
|
miniMode: {
|
|
338
343
|
description: string;
|
|
344
|
+
altText: string;
|
|
339
345
|
};
|
|
340
346
|
};
|
|
341
347
|
nl: {
|
|
@@ -391,6 +397,7 @@ declare const locales: {
|
|
|
391
397
|
registerButton: string;
|
|
392
398
|
haveAccount: string;
|
|
393
399
|
earnedPoints: string;
|
|
400
|
+
logoAlt: string;
|
|
394
401
|
};
|
|
395
402
|
earningMethods: {
|
|
396
403
|
xPoints: string;
|
|
@@ -449,6 +456,7 @@ declare const locales: {
|
|
|
449
456
|
};
|
|
450
457
|
miniMode: {
|
|
451
458
|
description: string;
|
|
459
|
+
altText: string;
|
|
452
460
|
};
|
|
453
461
|
};
|
|
454
462
|
fr: {
|
|
@@ -504,6 +512,7 @@ declare const locales: {
|
|
|
504
512
|
registerButton: string;
|
|
505
513
|
haveAccount: string;
|
|
506
514
|
earnedPoints: string;
|
|
515
|
+
logoAlt: string;
|
|
507
516
|
};
|
|
508
517
|
earningMethods: {
|
|
509
518
|
xPoints: string;
|
|
@@ -562,6 +571,7 @@ declare const locales: {
|
|
|
562
571
|
};
|
|
563
572
|
miniMode: {
|
|
564
573
|
description: string;
|
|
574
|
+
altText: string;
|
|
565
575
|
};
|
|
566
576
|
};
|
|
567
577
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{observer as
|
|
1
|
+
import{observer as e}from"mobx-react";import o from"react";import'./../../../ext/react-i18next/dist/es/context.js';import{useTranslation as t}from'./../../../ext/react-i18next/dist/es/useTranslation.js';import{ImageTypeEnum as r}from"../../../models/loyalty-widget/types/index.js";import{WidgetMode as i}from"../../../models/types/index.js";import{Container as l,Logo as m,Emoji as s}from"./style.js";var n=e(function(e){var n=e.viewModel,a=t().t,d=n.loyaltyWidget.miniMode,c=d.logo.type===r.SHOW&&!!d.logo.src;return o.createElement(l,{$hasImg:c,$bgColor:d.bgColor||void 0,onClick:function(e){e.stopPropagation(),n.setWidgetMode(i.WIDGET_MODE)}},c?o.createElement(m,{src:d.logo.src,alt:a("miniMode.altText")}):o.createElement(s,null,d.emoji))});export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.mjs.js';import{observer as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.mjs.js';import{observer as r}from"mobx-react";import n from"react";import'./../../../../ext/react-i18next/dist/es/context.js';import{useTranslation as o}from'./../../../../ext/react-i18next/dist/es/useTranslation.js';import{ArrowRight as i}from"../../../../assets/icons/arrow-right.js";import{CheckCircle as c}from"../../../../assets/icons/check-circle.js";import{CheckFillIllustration as s}from"../../../../assets/widget-icons/illustraions/check-fill.js";import{CampaignTypeEnum as a}from"../../../../models/loyalty-customer-info/index.js";import{WidgetIconTypeEnum as l}from"../../../../models/loyalty-widget/types/index.js";import{Container as u,IconWrapper as m,ContentWrapper as d,TextRow as p,ButtonsRow as f,ActionButton as E,Loader as y,ArrowIcon as _}from"./style.js";var g=r(function(r){var g=r.viewModel,h=r.line,v=o().t,T=g.loyaltyWidget.settings.widgetIconType,j=n.useState(!1),w=j[0],b=j[1];return n.createElement(u,null,n.createElement(m,{$iconType:T},function(){switch(T){case l.ILLUSTRATION:return n.createElement(s,null);case l.NORMAL:case l.NONE:default:return n.createElement(c,null)}}()),n.createElement(d,null,n.createElement(p,null,function(){var e=g.formatCurrency(h.discountAmount);switch(h.campaignType){case a.FIXED_AMOUNT:return v("main_screen.appliedDiscount.fixedAmount",{amount:e});case a.FREE_SHIPPING:return v("main_screen.appliedDiscount.freeShipping");case a.RATIO:return v("main_screen.appliedDiscount.ratio",{amount:"%".concat(h.discountAmount)});case a.BUY_X_THEN_GET_Y:return v("main_screen.appliedDiscount.freeProduct");default:return v("main_screen.appliedDiscount.generic",{amount:e})}}()),n.createElement(f,null,n.createElement(E,{$color:"#697586",$disabled:w,onClick:function(){return e(void 0,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:if(!(null===(e=g.callbacks)||void 0===e?void 0:e.removeLoyaltyPointsFromCart))return[3,4];b(!0),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,g.callbacks.removeLoyaltyPointsFromCart()];case 2:return t.sent(),g.cartRefreshTrigger++,g.userRefreshTrigger++,[3,4];case 3:return b(!1),[7];case 4:return[2]}})})}},w&&n.createElement(y,null),v("main_screen.appliedDiscount.remove")),n.createElement(E,{$color:"#121926",$disabled:w,onClick:function(){g.storeUrl&&g.cartId&&(window.location.href="".concat(g.storeUrl,"/checkout?id=").concat(g.cartId,"&step=info"))}},v("main_screen.appliedDiscount.goToCheckout"),n.createElement(_,null,n.createElement(i,null))))))});export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{observer as
|
|
1
|
+
import{observer as e}from"mobx-react";import t from"react";import'./../../../../../ext/react-i18next/dist/es/context.js';import{useTranslation as o}from'./../../../../../ext/react-i18next/dist/es/useTranslation.js';import{Container as r,Logo as a}from"./style.js";var m=e(function(e){var m=o().t;return t.createElement(r,null,t.createElement(a,{src:e.logo.src,alt:m("header.logoAlt"),$maxHeight:e.logo.maxHeight}))});export{m as default};
|