@ikas/loyalty-widget-renderer 1.0.0-alpha.67 → 1.0.0-alpha.69
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.d.ts +3 -0
- package/build/index.js +1 -1
- package/build/locales.d.ts +608 -0
- package/build/locales.js +1 -0
- package/build/models/index.d.ts +1 -2
- package/build/models/index.js +1 -1
- package/build/models/loyalty-widget/translations.d.ts +1 -8
- package/build/models/loyalty-widget/translations.js +1 -1
- package/build/renderer/index.js +1 -1
- package/build/renderer/screens/credit-history-screen/index.js +1 -1
- package/build/storefront-widget-script-injector.iife.js +3 -3
- package/build/storefront-widget-script-injector.iife.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import locales from "./locales";
|
|
1
2
|
export * from "./models/loyalty-widget";
|
|
2
3
|
export * from "./models/loyalty-widget/types";
|
|
3
4
|
export * from "./models/loyalty-widget/header";
|
|
4
5
|
export * from "./models/loyalty-widget/header/header-background";
|
|
6
|
+
export * from "./models/loyalty-widget/translations";
|
|
7
|
+
export { locales };
|
|
5
8
|
export * from "./models/image";
|
|
6
9
|
export * from "./models/button";
|
|
7
10
|
export * from "./models/loyalty-customer-info";
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{CampaignTypeEnum,CartLoyaltyLineData,LoyaltyCustomerInfo,LoyaltyProgramTier,LoyaltyProgramTierTranslation,OrderAmountTypeEnum}from"./models/loyalty-customer-info/index.js";export{LoyaltyProgramPointHistory}from"./models/loyalty-program-point-history/index.js";export{LoyaltyProgramDiscountSettings,LoyaltyProgramSpendingMethod}from"./models/loyalty-program-spending-method/index.js";export{LoyaltyProgramEarningMethod,LoyaltyProgramEarningMethodOrderSettings,LoyaltyProgramEarningMethodProductSettings}from"./models/loyalty-program-earning-method/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum,WidgetMode}from"./models/types/index.js";export{BadgeLevel1}from"./assets/badgeLevel1.js";export{BadgeLevel2}from"./assets/badgeLevel2.js";export{BadgeLevel3}from"./assets/badgeLevel3.js";export{BadgeLevel4}from"./assets/badgeLevel4.js";export{XClose}from"./assets/icons/x-close.js";export{CheckCircleFill}from"./assets/icons/check-circle-fill.js";export{ChevronLeft}from"./assets/icons/chevron-left.js";export{Check}from"./assets/icons/check.js";export{ArrowRight}from"./assets/icons/arrow-right.js";export{CheckCircle}from"./assets/icons/check-circle.js";export{BubbleChatDone}from"./assets/widget-icons/normal/bubbleChatDone.js";export{CommentAdd01}from"./assets/widget-icons/normal/commentAdd01.js";export{CouponPercent}from"./assets/widget-icons/normal/couponPercent.js";export{DiscountTag02}from"./assets/widget-icons/normal/discountTag02.js";export{Gift}from"./assets/widget-icons/normal/gift.js";export{MoneyAdd01}from"./assets/widget-icons/normal/moneyAdd01.js";export{PackageDelivered}from"./assets/widget-icons/normal/packageDelivered.js";export{SaveMoneyDollar}from"./assets/widget-icons/normal/saveMoneyDollar.js";export{ShoppingBasketAdd02}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";export{UserAdd01}from"./assets/widget-icons/normal/userAdd01.js";export{InformationCircle}from"./assets/widget-icons/normal/informationCircle.js";export{UsersIllustration}from"./assets/widget-icons/illustraions/usersIllustration.js";export{BubbleChatIllustration}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";export{ApprovedChatIllustration}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";export{TshirtIllustration}from"./assets/widget-icons/illustraions/tshirtIllustration.js";export{Medal}from"./assets/widget-icons/illustraions/medal.js";export{GiftIllustration}from"./assets/widget-icons/illustraions/giftIllustration.js";export{ShippingBox}from"./assets/widget-icons/illustraions/shippingBox.js";export{BigSaleMedal}from"./assets/widget-icons/illustraions/bigSaleMedal.js";export{ShoppingCartIllustration}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";export{InformationCircleIllustration}from"./assets/widget-icons/illustraions/informationCircleIllustration.js";export{CheckFillIllustration}from"./assets/widget-icons/illustraions/check-fill.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";
|
|
1
|
+
export{default as locales}from"./locales.js";export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{LoyaltyWidgetTranslations}from"./models/loyalty-widget/translations.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{CampaignTypeEnum,CartLoyaltyLineData,LoyaltyCustomerInfo,LoyaltyProgramTier,LoyaltyProgramTierTranslation,OrderAmountTypeEnum}from"./models/loyalty-customer-info/index.js";export{LoyaltyProgramPointHistory}from"./models/loyalty-program-point-history/index.js";export{LoyaltyProgramDiscountSettings,LoyaltyProgramSpendingMethod}from"./models/loyalty-program-spending-method/index.js";export{LoyaltyProgramEarningMethod,LoyaltyProgramEarningMethodOrderSettings,LoyaltyProgramEarningMethodProductSettings}from"./models/loyalty-program-earning-method/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum,WidgetMode}from"./models/types/index.js";export{BadgeLevel1}from"./assets/badgeLevel1.js";export{BadgeLevel2}from"./assets/badgeLevel2.js";export{BadgeLevel3}from"./assets/badgeLevel3.js";export{BadgeLevel4}from"./assets/badgeLevel4.js";export{XClose}from"./assets/icons/x-close.js";export{CheckCircleFill}from"./assets/icons/check-circle-fill.js";export{ChevronLeft}from"./assets/icons/chevron-left.js";export{Check}from"./assets/icons/check.js";export{ArrowRight}from"./assets/icons/arrow-right.js";export{CheckCircle}from"./assets/icons/check-circle.js";export{BubbleChatDone}from"./assets/widget-icons/normal/bubbleChatDone.js";export{CommentAdd01}from"./assets/widget-icons/normal/commentAdd01.js";export{CouponPercent}from"./assets/widget-icons/normal/couponPercent.js";export{DiscountTag02}from"./assets/widget-icons/normal/discountTag02.js";export{Gift}from"./assets/widget-icons/normal/gift.js";export{MoneyAdd01}from"./assets/widget-icons/normal/moneyAdd01.js";export{PackageDelivered}from"./assets/widget-icons/normal/packageDelivered.js";export{SaveMoneyDollar}from"./assets/widget-icons/normal/saveMoneyDollar.js";export{ShoppingBasketAdd02}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";export{UserAdd01}from"./assets/widget-icons/normal/userAdd01.js";export{InformationCircle}from"./assets/widget-icons/normal/informationCircle.js";export{UsersIllustration}from"./assets/widget-icons/illustraions/usersIllustration.js";export{BubbleChatIllustration}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";export{ApprovedChatIllustration}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";export{TshirtIllustration}from"./assets/widget-icons/illustraions/tshirtIllustration.js";export{Medal}from"./assets/widget-icons/illustraions/medal.js";export{GiftIllustration}from"./assets/widget-icons/illustraions/giftIllustration.js";export{ShippingBox}from"./assets/widget-icons/illustraions/shippingBox.js";export{BigSaleMedal}from"./assets/widget-icons/illustraions/bigSaleMedal.js";export{ShoppingCartIllustration}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";export{InformationCircleIllustration}from"./assets/widget-icons/illustraions/informationCircleIllustration.js";export{CheckFillIllustration}from"./assets/widget-icons/illustraions/check-fill.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";
|
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
declare const locales: {
|
|
2
|
+
tr: {
|
|
3
|
+
common: {
|
|
4
|
+
points: string;
|
|
5
|
+
view: string;
|
|
6
|
+
create: string;
|
|
7
|
+
allow: string;
|
|
8
|
+
use: string;
|
|
9
|
+
review: string;
|
|
10
|
+
login: string;
|
|
11
|
+
register: string;
|
|
12
|
+
convert: string;
|
|
13
|
+
};
|
|
14
|
+
main_screen: {
|
|
15
|
+
earningMethodsTitle: string;
|
|
16
|
+
spendingMethodsTitle: string;
|
|
17
|
+
programInfoTitle: string;
|
|
18
|
+
earnPoints: string;
|
|
19
|
+
allRewards: string;
|
|
20
|
+
tiers: string;
|
|
21
|
+
pointHistory: string;
|
|
22
|
+
cartWarning: string;
|
|
23
|
+
appliedDiscount: {
|
|
24
|
+
fixedAmount: string;
|
|
25
|
+
freeShipping: string;
|
|
26
|
+
ratio: string;
|
|
27
|
+
freeProduct: string;
|
|
28
|
+
generic: string;
|
|
29
|
+
remove: string;
|
|
30
|
+
goToCheckout: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
spendingMethods: {
|
|
34
|
+
minPointLimit: string;
|
|
35
|
+
FIXED_AMOUNT: {
|
|
36
|
+
title: string;
|
|
37
|
+
dynamicTitle: string;
|
|
38
|
+
};
|
|
39
|
+
RATIO: {
|
|
40
|
+
title: string;
|
|
41
|
+
};
|
|
42
|
+
FREE_SHIPPING: {
|
|
43
|
+
title: string;
|
|
44
|
+
};
|
|
45
|
+
FREE_PRODUCT: {
|
|
46
|
+
title: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
header: {
|
|
51
|
+
title: string;
|
|
52
|
+
subtitle: string;
|
|
53
|
+
register_title: string;
|
|
54
|
+
registerDescription: string;
|
|
55
|
+
registerButton: string;
|
|
56
|
+
haveAccount: string;
|
|
57
|
+
earnedPoints: string;
|
|
58
|
+
};
|
|
59
|
+
earningMethods: {
|
|
60
|
+
xPoints: string;
|
|
61
|
+
xPointsForEachProduct: string;
|
|
62
|
+
CUSTOMER_REGISTER: {
|
|
63
|
+
title: string;
|
|
64
|
+
};
|
|
65
|
+
CUSTOMER_REVIEW: {
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
ENABLE_SUBSCRIPTION: {
|
|
69
|
+
title: string;
|
|
70
|
+
};
|
|
71
|
+
ORDER_CREATE: {
|
|
72
|
+
RECEIVE_POINTS_ON_SPEND: {
|
|
73
|
+
title: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
BASE: {
|
|
77
|
+
title: string;
|
|
78
|
+
descriptionStaticMinimum: string;
|
|
79
|
+
descriptionStaticMaximum: string;
|
|
80
|
+
descriptionDynamicMinimum: string;
|
|
81
|
+
descriptionDynamicMaximum: string;
|
|
82
|
+
descriptionOnlyCategory: string;
|
|
83
|
+
descriptionOnlyProduct: string;
|
|
84
|
+
descriptionOnlyBrand: string;
|
|
85
|
+
descriptionOnlyTag: string;
|
|
86
|
+
genericCategory: string;
|
|
87
|
+
genericProduct: string;
|
|
88
|
+
genericBrand: string;
|
|
89
|
+
genericTag: string;
|
|
90
|
+
descriptionSuffix: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
BUY_PRODUCT: {
|
|
94
|
+
title: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
CUSTOMER_SEGMENT: {
|
|
98
|
+
title: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
history: {
|
|
102
|
+
earnedTitle: string;
|
|
103
|
+
spentTitle: string;
|
|
104
|
+
};
|
|
105
|
+
screens: {
|
|
106
|
+
creditEarningMethods: string;
|
|
107
|
+
creditSpendingMethods: string;
|
|
108
|
+
creditHistory: string;
|
|
109
|
+
loyaltyLevel: string;
|
|
110
|
+
loyaltyLevelScreen: {
|
|
111
|
+
afterEarning: string;
|
|
112
|
+
multiplierPrefix: string;
|
|
113
|
+
multiplierSuffix: string;
|
|
114
|
+
reachNextTier: string;
|
|
115
|
+
allTiersCompleted: string;
|
|
116
|
+
currentTierDescription: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
miniMode: {
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
en: {
|
|
124
|
+
common: {
|
|
125
|
+
points: string;
|
|
126
|
+
view: string;
|
|
127
|
+
create: string;
|
|
128
|
+
allow: string;
|
|
129
|
+
use: string;
|
|
130
|
+
review: string;
|
|
131
|
+
login: string;
|
|
132
|
+
register: string;
|
|
133
|
+
convert: string;
|
|
134
|
+
};
|
|
135
|
+
main_screen: {
|
|
136
|
+
earningMethodsTitle: string;
|
|
137
|
+
spendingMethodsTitle: string;
|
|
138
|
+
programInfoTitle: string;
|
|
139
|
+
earnPoints: string;
|
|
140
|
+
allRewards: string;
|
|
141
|
+
tiers: string;
|
|
142
|
+
pointHistory: string;
|
|
143
|
+
cartWarning: string;
|
|
144
|
+
appliedDiscount: {
|
|
145
|
+
fixedAmount: string;
|
|
146
|
+
freeShipping: string;
|
|
147
|
+
ratio: string;
|
|
148
|
+
freeProduct: string;
|
|
149
|
+
generic: string;
|
|
150
|
+
remove: string;
|
|
151
|
+
goToCheckout: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
spendingMethods: {
|
|
155
|
+
minPointLimit: string;
|
|
156
|
+
FIXED_AMOUNT: {
|
|
157
|
+
title: string;
|
|
158
|
+
dynamicTitle: string;
|
|
159
|
+
};
|
|
160
|
+
RATIO: {
|
|
161
|
+
title: string;
|
|
162
|
+
};
|
|
163
|
+
FREE_SHIPPING: {
|
|
164
|
+
title: string;
|
|
165
|
+
};
|
|
166
|
+
FREE_PRODUCT: {
|
|
167
|
+
title: string;
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
header: {
|
|
172
|
+
title: string;
|
|
173
|
+
subtitle: string;
|
|
174
|
+
register_title: string;
|
|
175
|
+
registerDescription: string;
|
|
176
|
+
registerButton: string;
|
|
177
|
+
haveAccount: string;
|
|
178
|
+
earnedPoints: string;
|
|
179
|
+
};
|
|
180
|
+
earningMethods: {
|
|
181
|
+
xPoints: string;
|
|
182
|
+
xPointsForEachProduct: string;
|
|
183
|
+
CUSTOMER_REGISTER: {
|
|
184
|
+
title: string;
|
|
185
|
+
};
|
|
186
|
+
CUSTOMER_REVIEW: {
|
|
187
|
+
title: string;
|
|
188
|
+
};
|
|
189
|
+
ENABLE_SUBSCRIPTION: {
|
|
190
|
+
title: string;
|
|
191
|
+
};
|
|
192
|
+
ORDER_CREATE: {
|
|
193
|
+
RECEIVE_POINTS_ON_SPEND: {
|
|
194
|
+
title: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
BASE: {
|
|
198
|
+
title: string;
|
|
199
|
+
descriptionStaticMinimum: string;
|
|
200
|
+
descriptionStaticMaximum: string;
|
|
201
|
+
descriptionDynamicMinimum: string;
|
|
202
|
+
descriptionDynamicMaximum: string;
|
|
203
|
+
descriptionOnlyCategory: string;
|
|
204
|
+
descriptionOnlyProduct: string;
|
|
205
|
+
descriptionOnlyBrand: string;
|
|
206
|
+
descriptionOnlyTag: string;
|
|
207
|
+
genericCategory: string;
|
|
208
|
+
genericProduct: string;
|
|
209
|
+
genericBrand: string;
|
|
210
|
+
genericTag: string;
|
|
211
|
+
descriptionSuffix: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
BUY_PRODUCT: {
|
|
215
|
+
title: string;
|
|
216
|
+
description: string;
|
|
217
|
+
};
|
|
218
|
+
CUSTOMER_SEGMENT: {
|
|
219
|
+
title: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
history: {
|
|
223
|
+
earnedTitle: string;
|
|
224
|
+
spentTitle: string;
|
|
225
|
+
};
|
|
226
|
+
screens: {
|
|
227
|
+
creditEarningMethods: string;
|
|
228
|
+
creditSpendingMethods: string;
|
|
229
|
+
creditHistory: string;
|
|
230
|
+
loyaltyLevel: string;
|
|
231
|
+
loyaltyLevelScreen: {
|
|
232
|
+
afterEarning: string;
|
|
233
|
+
multiplierPrefix: string;
|
|
234
|
+
multiplierSuffix: string;
|
|
235
|
+
reachNextTier: string;
|
|
236
|
+
allTiersCompleted: string;
|
|
237
|
+
currentTierDescription: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
miniMode: {
|
|
241
|
+
description: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
de: {
|
|
245
|
+
common: {
|
|
246
|
+
points: string;
|
|
247
|
+
view: string;
|
|
248
|
+
create: string;
|
|
249
|
+
allow: string;
|
|
250
|
+
use: string;
|
|
251
|
+
review: string;
|
|
252
|
+
login: string;
|
|
253
|
+
register: string;
|
|
254
|
+
convert: string;
|
|
255
|
+
};
|
|
256
|
+
main_screen: {
|
|
257
|
+
earningMethodsTitle: string;
|
|
258
|
+
spendingMethodsTitle: string;
|
|
259
|
+
programInfoTitle: string;
|
|
260
|
+
earnPoints: string;
|
|
261
|
+
allRewards: string;
|
|
262
|
+
tiers: string;
|
|
263
|
+
pointHistory: string;
|
|
264
|
+
cartWarning: string;
|
|
265
|
+
appliedDiscount: {
|
|
266
|
+
fixedAmount: string;
|
|
267
|
+
freeShipping: string;
|
|
268
|
+
ratio: string;
|
|
269
|
+
freeProduct: string;
|
|
270
|
+
generic: string;
|
|
271
|
+
remove: string;
|
|
272
|
+
goToCheckout: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
spendingMethods: {
|
|
276
|
+
minPointLimit: string;
|
|
277
|
+
FIXED_AMOUNT: {
|
|
278
|
+
title: string;
|
|
279
|
+
dynamicTitle: string;
|
|
280
|
+
};
|
|
281
|
+
RATIO: {
|
|
282
|
+
title: string;
|
|
283
|
+
};
|
|
284
|
+
FREE_SHIPPING: {
|
|
285
|
+
title: string;
|
|
286
|
+
};
|
|
287
|
+
FREE_PRODUCT: {
|
|
288
|
+
title: string;
|
|
289
|
+
description: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
header: {
|
|
293
|
+
title: string;
|
|
294
|
+
subtitle: string;
|
|
295
|
+
register_title: string;
|
|
296
|
+
registerDescription: string;
|
|
297
|
+
registerButton: string;
|
|
298
|
+
haveAccount: string;
|
|
299
|
+
earnedPoints: string;
|
|
300
|
+
};
|
|
301
|
+
earningMethods: {
|
|
302
|
+
xPoints: string;
|
|
303
|
+
xPointsForEachProduct: string;
|
|
304
|
+
CUSTOMER_REGISTER: {
|
|
305
|
+
title: string;
|
|
306
|
+
};
|
|
307
|
+
CUSTOMER_REVIEW: {
|
|
308
|
+
title: string;
|
|
309
|
+
};
|
|
310
|
+
ENABLE_SUBSCRIPTION: {
|
|
311
|
+
title: string;
|
|
312
|
+
};
|
|
313
|
+
ORDER_CREATE: {
|
|
314
|
+
RECEIVE_POINTS_ON_SPEND: {
|
|
315
|
+
title: string;
|
|
316
|
+
description: string;
|
|
317
|
+
};
|
|
318
|
+
BASE: {
|
|
319
|
+
title: string;
|
|
320
|
+
descriptionStaticMinimum: string;
|
|
321
|
+
descriptionStaticMaximum: string;
|
|
322
|
+
descriptionDynamicMinimum: string;
|
|
323
|
+
descriptionDynamicMaximum: string;
|
|
324
|
+
descriptionOnlyCategory: string;
|
|
325
|
+
descriptionOnlyProduct: string;
|
|
326
|
+
descriptionOnlyBrand: string;
|
|
327
|
+
descriptionOnlyTag: string;
|
|
328
|
+
genericCategory: string;
|
|
329
|
+
genericProduct: string;
|
|
330
|
+
genericBrand: string;
|
|
331
|
+
genericTag: string;
|
|
332
|
+
descriptionSuffix: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
BUY_PRODUCT: {
|
|
336
|
+
title: string;
|
|
337
|
+
description: string;
|
|
338
|
+
};
|
|
339
|
+
CUSTOMER_SEGMENT: {
|
|
340
|
+
title: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
history: {
|
|
344
|
+
earnedTitle: string;
|
|
345
|
+
spentTitle: string;
|
|
346
|
+
};
|
|
347
|
+
screens: {
|
|
348
|
+
creditEarningMethods: string;
|
|
349
|
+
creditSpendingMethods: string;
|
|
350
|
+
creditHistory: string;
|
|
351
|
+
loyaltyLevel: string;
|
|
352
|
+
loyaltyLevelScreen: {
|
|
353
|
+
afterEarning: string;
|
|
354
|
+
multiplierPrefix: string;
|
|
355
|
+
multiplierSuffix: string;
|
|
356
|
+
reachNextTier: string;
|
|
357
|
+
allTiersCompleted: string;
|
|
358
|
+
currentTierDescription: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
miniMode: {
|
|
362
|
+
description: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
nl: {
|
|
366
|
+
common: {
|
|
367
|
+
points: string;
|
|
368
|
+
view: string;
|
|
369
|
+
create: string;
|
|
370
|
+
allow: string;
|
|
371
|
+
use: string;
|
|
372
|
+
review: string;
|
|
373
|
+
login: string;
|
|
374
|
+
register: string;
|
|
375
|
+
convert: string;
|
|
376
|
+
};
|
|
377
|
+
main_screen: {
|
|
378
|
+
earningMethodsTitle: string;
|
|
379
|
+
spendingMethodsTitle: string;
|
|
380
|
+
programInfoTitle: string;
|
|
381
|
+
earnPoints: string;
|
|
382
|
+
allRewards: string;
|
|
383
|
+
tiers: string;
|
|
384
|
+
pointHistory: string;
|
|
385
|
+
cartWarning: string;
|
|
386
|
+
appliedDiscount: {
|
|
387
|
+
fixedAmount: string;
|
|
388
|
+
freeShipping: string;
|
|
389
|
+
ratio: string;
|
|
390
|
+
freeProduct: string;
|
|
391
|
+
generic: string;
|
|
392
|
+
remove: string;
|
|
393
|
+
goToCheckout: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
spendingMethods: {
|
|
397
|
+
minPointLimit: string;
|
|
398
|
+
FIXED_AMOUNT: {
|
|
399
|
+
title: string;
|
|
400
|
+
dynamicTitle: string;
|
|
401
|
+
};
|
|
402
|
+
RATIO: {
|
|
403
|
+
title: string;
|
|
404
|
+
};
|
|
405
|
+
FREE_SHIPPING: {
|
|
406
|
+
title: string;
|
|
407
|
+
};
|
|
408
|
+
FREE_PRODUCT: {
|
|
409
|
+
title: string;
|
|
410
|
+
description: string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
header: {
|
|
414
|
+
title: string;
|
|
415
|
+
subtitle: string;
|
|
416
|
+
register_title: string;
|
|
417
|
+
registerDescription: string;
|
|
418
|
+
registerButton: string;
|
|
419
|
+
haveAccount: string;
|
|
420
|
+
earnedPoints: string;
|
|
421
|
+
};
|
|
422
|
+
earningMethods: {
|
|
423
|
+
xPoints: string;
|
|
424
|
+
xPointsForEachProduct: string;
|
|
425
|
+
CUSTOMER_REGISTER: {
|
|
426
|
+
title: string;
|
|
427
|
+
};
|
|
428
|
+
CUSTOMER_REVIEW: {
|
|
429
|
+
title: string;
|
|
430
|
+
};
|
|
431
|
+
ENABLE_SUBSCRIPTION: {
|
|
432
|
+
title: string;
|
|
433
|
+
};
|
|
434
|
+
ORDER_CREATE: {
|
|
435
|
+
RECEIVE_POINTS_ON_SPEND: {
|
|
436
|
+
title: string;
|
|
437
|
+
description: string;
|
|
438
|
+
};
|
|
439
|
+
BASE: {
|
|
440
|
+
title: string;
|
|
441
|
+
descriptionStaticMinimum: string;
|
|
442
|
+
descriptionStaticMaximum: string;
|
|
443
|
+
descriptionDynamicMinimum: string;
|
|
444
|
+
descriptionDynamicMaximum: string;
|
|
445
|
+
descriptionOnlyCategory: string;
|
|
446
|
+
descriptionOnlyProduct: string;
|
|
447
|
+
descriptionOnlyBrand: string;
|
|
448
|
+
descriptionOnlyTag: string;
|
|
449
|
+
genericCategory: string;
|
|
450
|
+
genericProduct: string;
|
|
451
|
+
genericBrand: string;
|
|
452
|
+
genericTag: string;
|
|
453
|
+
descriptionSuffix: string;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
BUY_PRODUCT: {
|
|
457
|
+
title: string;
|
|
458
|
+
description: string;
|
|
459
|
+
};
|
|
460
|
+
CUSTOMER_SEGMENT: {
|
|
461
|
+
title: string;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
history: {
|
|
465
|
+
earnedTitle: string;
|
|
466
|
+
spentTitle: string;
|
|
467
|
+
};
|
|
468
|
+
screens: {
|
|
469
|
+
creditEarningMethods: string;
|
|
470
|
+
creditSpendingMethods: string;
|
|
471
|
+
creditHistory: string;
|
|
472
|
+
loyaltyLevel: string;
|
|
473
|
+
loyaltyLevelScreen: {
|
|
474
|
+
afterEarning: string;
|
|
475
|
+
multiplierPrefix: string;
|
|
476
|
+
multiplierSuffix: string;
|
|
477
|
+
reachNextTier: string;
|
|
478
|
+
allTiersCompleted: string;
|
|
479
|
+
currentTierDescription: string;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
miniMode: {
|
|
483
|
+
description: string;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
fr: {
|
|
487
|
+
common: {
|
|
488
|
+
points: string;
|
|
489
|
+
view: string;
|
|
490
|
+
create: string;
|
|
491
|
+
allow: string;
|
|
492
|
+
use: string;
|
|
493
|
+
review: string;
|
|
494
|
+
login: string;
|
|
495
|
+
register: string;
|
|
496
|
+
convert: string;
|
|
497
|
+
};
|
|
498
|
+
main_screen: {
|
|
499
|
+
earningMethodsTitle: string;
|
|
500
|
+
spendingMethodsTitle: string;
|
|
501
|
+
programInfoTitle: string;
|
|
502
|
+
earnPoints: string;
|
|
503
|
+
allRewards: string;
|
|
504
|
+
tiers: string;
|
|
505
|
+
pointHistory: string;
|
|
506
|
+
cartWarning: string;
|
|
507
|
+
appliedDiscount: {
|
|
508
|
+
fixedAmount: string;
|
|
509
|
+
freeShipping: string;
|
|
510
|
+
ratio: string;
|
|
511
|
+
freeProduct: string;
|
|
512
|
+
generic: string;
|
|
513
|
+
remove: string;
|
|
514
|
+
goToCheckout: string;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
spendingMethods: {
|
|
518
|
+
minPointLimit: string;
|
|
519
|
+
FIXED_AMOUNT: {
|
|
520
|
+
title: string;
|
|
521
|
+
dynamicTitle: string;
|
|
522
|
+
};
|
|
523
|
+
RATIO: {
|
|
524
|
+
title: string;
|
|
525
|
+
};
|
|
526
|
+
FREE_SHIPPING: {
|
|
527
|
+
title: string;
|
|
528
|
+
};
|
|
529
|
+
FREE_PRODUCT: {
|
|
530
|
+
title: string;
|
|
531
|
+
description: string;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
header: {
|
|
535
|
+
title: string;
|
|
536
|
+
subtitle: string;
|
|
537
|
+
register_title: string;
|
|
538
|
+
registerDescription: string;
|
|
539
|
+
registerButton: string;
|
|
540
|
+
haveAccount: string;
|
|
541
|
+
earnedPoints: string;
|
|
542
|
+
};
|
|
543
|
+
earningMethods: {
|
|
544
|
+
xPoints: string;
|
|
545
|
+
xPointsForEachProduct: string;
|
|
546
|
+
CUSTOMER_REGISTER: {
|
|
547
|
+
title: string;
|
|
548
|
+
};
|
|
549
|
+
CUSTOMER_REVIEW: {
|
|
550
|
+
title: string;
|
|
551
|
+
};
|
|
552
|
+
ENABLE_SUBSCRIPTION: {
|
|
553
|
+
title: string;
|
|
554
|
+
};
|
|
555
|
+
ORDER_CREATE: {
|
|
556
|
+
RECEIVE_POINTS_ON_SPEND: {
|
|
557
|
+
title: string;
|
|
558
|
+
description: string;
|
|
559
|
+
};
|
|
560
|
+
BASE: {
|
|
561
|
+
title: string;
|
|
562
|
+
descriptionStaticMinimum: string;
|
|
563
|
+
descriptionStaticMaximum: string;
|
|
564
|
+
descriptionDynamicMinimum: string;
|
|
565
|
+
descriptionDynamicMaximum: string;
|
|
566
|
+
descriptionOnlyCategory: string;
|
|
567
|
+
descriptionOnlyProduct: string;
|
|
568
|
+
descriptionOnlyBrand: string;
|
|
569
|
+
descriptionOnlyTag: string;
|
|
570
|
+
genericCategory: string;
|
|
571
|
+
genericProduct: string;
|
|
572
|
+
genericBrand: string;
|
|
573
|
+
genericTag: string;
|
|
574
|
+
descriptionSuffix: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
BUY_PRODUCT: {
|
|
578
|
+
title: string;
|
|
579
|
+
description: string;
|
|
580
|
+
};
|
|
581
|
+
CUSTOMER_SEGMENT: {
|
|
582
|
+
title: string;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
history: {
|
|
586
|
+
earnedTitle: string;
|
|
587
|
+
spentTitle: string;
|
|
588
|
+
};
|
|
589
|
+
screens: {
|
|
590
|
+
creditEarningMethods: string;
|
|
591
|
+
creditSpendingMethods: string;
|
|
592
|
+
creditHistory: string;
|
|
593
|
+
loyaltyLevel: string;
|
|
594
|
+
loyaltyLevelScreen: {
|
|
595
|
+
afterEarning: string;
|
|
596
|
+
multiplierPrefix: string;
|
|
597
|
+
multiplierSuffix: string;
|
|
598
|
+
reachNextTier: string;
|
|
599
|
+
allTiersCompleted: string;
|
|
600
|
+
currentTierDescription: string;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
miniMode: {
|
|
604
|
+
description: string;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
export default locales;
|
package/build/locales.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./renderer/utils/locales/de.json.js";import e from"./renderer/utils/locales/en.json.js";import o from"./renderer/utils/locales/fr.json.js";import s from"./renderer/utils/locales/nl.json.js";import l from"./renderer/utils/locales/tr.json.js";var n={tr:l,en:e,de:r,nl:s,fr:o};export{n as default};
|
package/build/models/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export declare class LoyaltyWidgetViewModel {
|
|
|
19
19
|
merchantId: string;
|
|
20
20
|
storeUrl: string;
|
|
21
21
|
currency: string;
|
|
22
|
-
locale: string;
|
|
23
22
|
isPreviewMode: boolean;
|
|
24
23
|
user: LoyaltyCustomerInfo | null;
|
|
25
24
|
categories: Category[] | null;
|
|
@@ -31,7 +30,7 @@ export declare class LoyaltyWidgetViewModel {
|
|
|
31
30
|
tiers: LoyaltyProgramTier[];
|
|
32
31
|
pointHistory: LoyaltyProgramPointHistory[];
|
|
33
32
|
callbacks?: LoyaltyWidgetCallbacks;
|
|
34
|
-
constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string,
|
|
33
|
+
constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string, storeURL?: string | null, isPreviewMode?: boolean, callbacks?: LoyaltyWidgetCallbacks);
|
|
35
34
|
get shouldShowSpendingMethods(): boolean;
|
|
36
35
|
setWidgetMode(mode: WidgetMode): void;
|
|
37
36
|
closeMiniModeDescription(): void;
|
package/build/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../ext/tslib/tslib.es6.mjs.js';import{makeObservable as t,observable as i,action as s,computed as r}from"mobx";import{LoyaltyCustomerInfo as o}from"./loyalty-customer-info/index.js";import{LoyaltyProgramEarningMethod as n}from"./loyalty-program-earning-method/index.js";import{LoyaltyProgramSpendingMethod as d}from"./loyalty-program-spending-method/index.js";import{LoyaltyWidget as c}from"./loyalty-widget/index.js";import{WidgetMode as a,LoyaltyWidgetScreenTypeEnum as h}from"./types/index.js";var l=function(){function l(l,g,u,p,M,m,y
|
|
1
|
+
import{__assign as e}from'./../ext/tslib/tslib.es6.mjs.js';import{makeObservable as t,observable as i,action as s,computed as r}from"mobx";import{LoyaltyCustomerInfo as o}from"./loyalty-customer-info/index.js";import{LoyaltyProgramEarningMethod as n}from"./loyalty-program-earning-method/index.js";import{LoyaltyProgramSpendingMethod as d}from"./loyalty-program-spending-method/index.js";import{LoyaltyWidget as c}from"./loyalty-widget/index.js";import{WidgetMode as a,LoyaltyWidgetScreenTypeEnum as h}from"./types/index.js";var l=function(){function l(l,g,u,p,M,m,y){void 0===l&&(l={}),this.userRefreshTrigger=0,this.cartRefreshTrigger=0,this.selectedScreen=l.selectedScreen||h.MAIN_SCREEN,this.currentWidgetMode=m?a.WIDGET_MODE:a.MINI_MODE,this.isMiniModeDescriptionClosed=l.isMiniModeDescriptionClosed||!1,this.isLoading=l.isLoading||!1,this.isActionLoading=l.isActionLoading||!1,this.loyaltyWidget=new c(l.loyaltyWidget),this.cdnURL=g,this.merchantId=u,this.storeUrl=M||l.storeUrl||"",this.currency=p,this.isPreviewMode=m||!1,this.cartId=l.cartId||null,this.cartId=l.cartId||null,this.ikasEventUser=l.ikasEventUser||null,this.user=l.user?new o(l.user):null,this.earningMethods=l.earningMethods?l.earningMethods.map(function(e){return new n(e)}):[],this.spendingMethods=l.spendingMethods?l.spendingMethods.map(function(e){return new d(e)}):[],this.tiers=l.tiers?l.tiers:[],this.categories=l.categories?l.categories:[],this.products=l.products?l.products:[],this.brands=l.brands?l.brands:[],this.tags=l.tags?l.tags:[],this.pointHistory=l.pointHistory?l.pointHistory:[],this.callbacks=y||void 0,t(this,e(e({cartId:i},m?{}:{loyaltyWidget:i}),{isLoading:i,isActionLoading:i,cdnURL:i,merchantId:i,storeUrl:i,currency:i,setWidgetMode:s.bound,closeMiniModeDescription:s.bound,formatCurrency:s.bound,selectedScreen:i,currentWidgetMode:i,isMiniModeDescriptionClosed:i,user:i,earningMethods:i,spendingMethods:i,tiers:i,categories:i,products:i,brands:i,tags:i,pointHistory:i,ikasEventUser:i,userRefreshTrigger:i,cartRefreshTrigger:i,shouldShowSpendingMethods:r}))}return Object.defineProperty(l.prototype,"shouldShowSpendingMethods",{get:function(){return!!this.user&&(!(this.user.totalPoint<=0)&&0!==this.spendingMethods.length)},enumerable:!1,configurable:!0}),l.prototype.setWidgetMode=function(e){this.currentWidgetMode=e,e!==a.WIDGET_MODE||this.isPreviewMode||(this.isMiniModeDescriptionClosed=!0)},l.prototype.closeMiniModeDescription=function(){this.isMiniModeDescriptionClosed=!0},l.prototype.formatCurrency=function(e){var t;return(null===(t=this.callbacks)||void 0===t?void 0:t.formatCurrency)?this.callbacks.formatCurrency(e):"".concat(e.toFixed(2)," ").concat(this.currency)},l}();export{l as LoyaltyWidgetViewModel};
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
export declare enum LoyaltyLocal {
|
|
2
|
-
TR = "tr",
|
|
3
|
-
EN = "en",
|
|
4
|
-
DE = "de",
|
|
5
|
-
NL = "nl",
|
|
6
|
-
FR = "fr"
|
|
7
|
-
}
|
|
8
1
|
export declare class LoyaltyWidgetTranslations {
|
|
9
|
-
language:
|
|
2
|
+
language: string;
|
|
10
3
|
custom: Record<string, string>;
|
|
11
4
|
constructor(data?: Partial<LoyaltyWidgetTranslations>);
|
|
12
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as o}from"mobx";var
|
|
1
|
+
import{makeObservable as t,observable as o}from"mobx";var a=function(a){void 0===a&&(a={}),this.language=a.language||"tr",this.custom=a.custom||{},t(this,{language:o,custom:o})};export{a as LoyaltyWidgetTranslations};
|