@textback/notification-widget 2.0.15 → 2.0.17
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.js +3 -3
- package/build/sdk.js +2 -2
- package/package.json +1 -1
- package/src/sdk/channels/factory.js +31 -28
- package/src/sdk/channels/max.js +23 -0
- package/src/widget/components/tb-notification-button/max.js +55 -0
- package/src/widget/components/tb-notification-button/styles.scss +143 -83
- package/src/widget/components/tb-notification-widget/index.js +2 -1
- package/src/widget/icons/icon_max.svg +16 -0
- package/src/widget/icons/icon_max_circle.svg +16 -0
- package/src/widget/locales/cs.js +2 -0
- package/src/widget/locales/en.js +2 -0
- package/src/widget/locales/pl.js +2 -1
- package/src/widget/locales/ro.js +2 -0
- package/src/widget/locales/ru.js +6 -3
- package/src/widget/locales/uk.js +2 -0
- package/test.html +3 -3
|
@@ -4,18 +4,21 @@ $color-fb-gradient: #6077a6;
|
|
|
4
4
|
$color-vk: #4a76a8;
|
|
5
5
|
$color-vk-gradient: #0f65c6;
|
|
6
6
|
|
|
7
|
-
$color-tg: #
|
|
8
|
-
$color-tg-gradient
|
|
7
|
+
$color-tg: #61a8de;
|
|
8
|
+
$color-tg-gradient: #408ac2;
|
|
9
|
+
|
|
10
|
+
$color-max: #7147ee;
|
|
11
|
+
$color-max-gradient: #7147ee;
|
|
9
12
|
|
|
10
13
|
$color-skype: #00aff0;
|
|
11
|
-
$color-skype-gradient
|
|
14
|
+
$color-skype-gradient: #00d0e7;
|
|
12
15
|
|
|
13
16
|
$color-viber: #574e92;
|
|
14
|
-
$color-viber-gradient
|
|
17
|
+
$color-viber-gradient: #655bab;
|
|
15
18
|
|
|
16
|
-
$color-whatsapp: #
|
|
17
|
-
$color-whatsappb: #
|
|
18
|
-
$color-whatsapp-gradient
|
|
19
|
+
$color-whatsapp: #25d366;
|
|
20
|
+
$color-whatsappb: #25d366;
|
|
21
|
+
$color-whatsapp-gradient: #2fc368;
|
|
19
22
|
|
|
20
23
|
@mixin shadow-on-hover() {
|
|
21
24
|
transition: box-shadow 0.4s;
|
|
@@ -29,7 +32,7 @@ $color-whatsapp-gradient:#2fc368;
|
|
|
29
32
|
transition: box-shadow 0.4s;
|
|
30
33
|
|
|
31
34
|
&:hover {
|
|
32
|
-
box-shadow:inset 0 0 3px 3px rgba(0, 0, 0, 0.4);
|
|
35
|
+
box-shadow: inset 0 0 3px 3px rgba(0, 0, 0, 0.4);
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -44,7 +47,11 @@ $color-whatsapp-gradient:#2fc368;
|
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
@mixin set-channel-button-brand-linear-gradient-color($color, $color-gradient) {
|
|
47
|
-
background: linear-gradient(
|
|
50
|
+
background: linear-gradient(
|
|
51
|
+
309.02deg,
|
|
52
|
+
$color -6.45%,
|
|
53
|
+
$color-gradient 111.08%
|
|
54
|
+
);
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
tb-notification-widget {
|
|
@@ -78,7 +85,8 @@ tb-notification-widget {
|
|
|
78
85
|
|
|
79
86
|
/* new design */
|
|
80
87
|
|
|
81
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
88
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
89
|
+
.tb-widget-buttons.tb-btn-style-square {
|
|
82
90
|
/* inline & popup */
|
|
83
91
|
tb-notification-button {
|
|
84
92
|
display: block;
|
|
@@ -88,8 +96,6 @@ tb-notification-widget {
|
|
|
88
96
|
background-color: transparent;
|
|
89
97
|
height: 30px;
|
|
90
98
|
|
|
91
|
-
|
|
92
|
-
|
|
93
99
|
&[channel="skype"] {
|
|
94
100
|
@include set-channel-button-brand-color($color-skype);
|
|
95
101
|
}
|
|
@@ -106,7 +112,8 @@ tb-notification-widget {
|
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
|
|
109
|
-
&[authorized="true"] tb-notification-button__text[for="login"],
|
|
115
|
+
&[authorized="true"] tb-notification-button__text[for="login"],
|
|
116
|
+
&[authorized="false"] tb-notification-button__text[for="subscribe"] {
|
|
110
117
|
display: none;
|
|
111
118
|
}
|
|
112
119
|
|
|
@@ -121,6 +128,12 @@ tb-notification-widget {
|
|
|
121
128
|
@include set-channel-button-brand-color($color-tg);
|
|
122
129
|
}
|
|
123
130
|
|
|
131
|
+
&[channel="max"] {
|
|
132
|
+
.tb-notification-button__inner > a {
|
|
133
|
+
background-color: $color-max;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
124
137
|
&[channel="whatsapp"] {
|
|
125
138
|
.tb-notification-button__inner > a {
|
|
126
139
|
background-color: $color-whatsapp;
|
|
@@ -152,8 +165,6 @@ tb-notification-widget {
|
|
|
152
165
|
}
|
|
153
166
|
}
|
|
154
167
|
|
|
155
|
-
|
|
156
|
-
|
|
157
168
|
.tb-notification-button__inner {
|
|
158
169
|
position: relative;
|
|
159
170
|
display: inline-block;
|
|
@@ -171,7 +182,7 @@ tb-notification-widget {
|
|
|
171
182
|
color: #fff;
|
|
172
183
|
position: relative;
|
|
173
184
|
font-size: 12px;
|
|
174
|
-
font-family: Arial,Helvetica,sans-serif;
|
|
185
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
175
186
|
padding: 0px;
|
|
176
187
|
line-height: 29px;
|
|
177
188
|
height: 30px;
|
|
@@ -201,14 +212,13 @@ tb-notification-widget {
|
|
|
201
212
|
height: 100%;
|
|
202
213
|
}
|
|
203
214
|
}
|
|
204
|
-
|
|
205
215
|
}
|
|
206
216
|
}
|
|
207
217
|
}
|
|
208
218
|
|
|
209
219
|
/* old design */
|
|
210
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
211
|
-
|
|
220
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
221
|
+
.tb-widget-buttons.tb-btn-style-rounded {
|
|
212
222
|
/* inline */
|
|
213
223
|
tb-notification-button {
|
|
214
224
|
@include shadow-on-hover();
|
|
@@ -217,7 +227,7 @@ tb-notification-widget {
|
|
|
217
227
|
padding: 10px 20px;
|
|
218
228
|
border-radius: 25px;
|
|
219
229
|
cursor: pointer;
|
|
220
|
-
background-color: #
|
|
230
|
+
background-color: #2979ff;
|
|
221
231
|
color: #fff;
|
|
222
232
|
display: inline-block;
|
|
223
233
|
margin: 0 13px 45px 0;
|
|
@@ -232,7 +242,8 @@ tb-notification-widget {
|
|
|
232
242
|
&[channel="vk"] {
|
|
233
243
|
background-color: $color-vk;
|
|
234
244
|
}
|
|
235
|
-
&[authorized="true"] tb-notification-button__text[for="login"],
|
|
245
|
+
&[authorized="true"] tb-notification-button__text[for="login"],
|
|
246
|
+
&[authorized="false"] tb-notification-button__text[for="subscribe"] {
|
|
236
247
|
display: none;
|
|
237
248
|
}
|
|
238
249
|
&[channel="viber"] {
|
|
@@ -241,6 +252,9 @@ tb-notification-widget {
|
|
|
241
252
|
&[channel="tg"] {
|
|
242
253
|
background-color: $color-tg;
|
|
243
254
|
}
|
|
255
|
+
&[channel="max"] {
|
|
256
|
+
background-color: $color-max;
|
|
257
|
+
}
|
|
244
258
|
&[channel="whatsapp"] {
|
|
245
259
|
background-color: $color-whatsapp;
|
|
246
260
|
}
|
|
@@ -307,12 +321,17 @@ tb-notification-widget {
|
|
|
307
321
|
}
|
|
308
322
|
}
|
|
309
323
|
|
|
310
|
-
&.tb-no-api-call
|
|
324
|
+
&.tb-no-api-call
|
|
325
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
326
|
+
.tb-widget-buttons.tb-btn-style-rounded
|
|
327
|
+
tb-notification-button {
|
|
311
328
|
margin-bottom: 13px;
|
|
312
329
|
}
|
|
313
330
|
|
|
314
331
|
/* popup */
|
|
315
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
332
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
333
|
+
tb-notification-widget-overlay
|
|
334
|
+
.tb-widget-buttons.tb-btn-style-rounded {
|
|
316
335
|
tb-notification-button {
|
|
317
336
|
display: inline-block;
|
|
318
337
|
width: 120px;
|
|
@@ -347,8 +366,8 @@ tb-notification-widget {
|
|
|
347
366
|
}
|
|
348
367
|
|
|
349
368
|
/* old design */
|
|
350
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
351
|
-
|
|
369
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
370
|
+
.tb-widget-buttons.tb-btn-style-gradient {
|
|
352
371
|
/* inline */
|
|
353
372
|
tb-notification-button {
|
|
354
373
|
@include shadow-on-hover-gradient();
|
|
@@ -357,36 +376,64 @@ tb-notification-widget {
|
|
|
357
376
|
padding: 21px 36px;
|
|
358
377
|
border-radius: 5px;
|
|
359
378
|
cursor: pointer;
|
|
360
|
-
background-color: #
|
|
379
|
+
background-color: #2979ff;
|
|
361
380
|
color: #fff;
|
|
362
381
|
display: inline-block;
|
|
363
382
|
margin: 0 13px 45px 0;
|
|
364
383
|
position: relative;
|
|
365
384
|
|
|
366
385
|
&[channel="skype"] {
|
|
367
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
386
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
387
|
+
$color-skype,
|
|
388
|
+
$color-skype-gradient
|
|
389
|
+
);
|
|
368
390
|
}
|
|
369
391
|
&[channel="facebook"] {
|
|
370
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
392
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
393
|
+
$color-fb,
|
|
394
|
+
$color-fb-gradient
|
|
395
|
+
);
|
|
371
396
|
}
|
|
372
397
|
&[channel="vk"] {
|
|
373
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
398
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
399
|
+
$color-vk,
|
|
400
|
+
$color-vk-gradient
|
|
401
|
+
);
|
|
374
402
|
padding: 19px 36px;
|
|
375
403
|
}
|
|
376
|
-
&[authorized="true"] tb-notification-button__text[for="login"],
|
|
404
|
+
&[authorized="true"] tb-notification-button__text[for="login"],
|
|
405
|
+
&[authorized="false"] tb-notification-button__text[for="subscribe"] {
|
|
377
406
|
display: none;
|
|
378
407
|
}
|
|
379
408
|
&[channel="viber"] {
|
|
380
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
409
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
410
|
+
$color-viber,
|
|
411
|
+
$color-viber-gradient
|
|
412
|
+
);
|
|
381
413
|
}
|
|
382
414
|
&[channel="tg"] {
|
|
383
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
415
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
416
|
+
$color-tg,
|
|
417
|
+
$color-tg-gradient
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
&[channel="max"] {
|
|
421
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
422
|
+
$color-max,
|
|
423
|
+
$color-max-gradient
|
|
424
|
+
);
|
|
384
425
|
}
|
|
385
426
|
&[channel="whatsapp"] {
|
|
386
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
427
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
428
|
+
$color-whatsapp,
|
|
429
|
+
$color-whatsapp-gradient
|
|
430
|
+
);
|
|
387
431
|
}
|
|
388
432
|
&[channel="whatsappb"] {
|
|
389
|
-
@include set-channel-button-brand-linear-gradient-color(
|
|
433
|
+
@include set-channel-button-brand-linear-gradient-color(
|
|
434
|
+
$color-whatsappb,
|
|
435
|
+
$color-whatsapp-gradient
|
|
436
|
+
);
|
|
390
437
|
}
|
|
391
438
|
&[loading] {
|
|
392
439
|
color: transparent;
|
|
@@ -455,12 +502,17 @@ tb-notification-widget {
|
|
|
455
502
|
}
|
|
456
503
|
}
|
|
457
504
|
|
|
458
|
-
&.tb-no-api-call
|
|
505
|
+
&.tb-no-api-call
|
|
506
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
507
|
+
.tb-widget-buttons.tb-btn-style-gradient
|
|
508
|
+
tb-notification-button {
|
|
459
509
|
margin-bottom: 13px;
|
|
460
510
|
}
|
|
461
511
|
|
|
462
512
|
/* popup */
|
|
463
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
513
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
514
|
+
tb-notification-widget-overlay
|
|
515
|
+
.tb-widget-buttons.tb-btn-style-gradient {
|
|
464
516
|
tb-notification-button {
|
|
465
517
|
display: inline-block;
|
|
466
518
|
width: 120px;
|
|
@@ -494,10 +546,9 @@ tb-notification-widget {
|
|
|
494
546
|
}
|
|
495
547
|
}
|
|
496
548
|
|
|
497
|
-
|
|
498
549
|
/* circle icons design */
|
|
499
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
500
|
-
|
|
550
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
551
|
+
.tb-widget-buttons.tb-btn-style-icons {
|
|
501
552
|
/* inline */
|
|
502
553
|
tb-notification-button {
|
|
503
554
|
display: inline-block;
|
|
@@ -543,7 +594,8 @@ tb-notification-widget {
|
|
|
543
594
|
}
|
|
544
595
|
}
|
|
545
596
|
|
|
546
|
-
&[channel="whatsappb"] tb-notification-button__icon,
|
|
597
|
+
&[channel="whatsappb"] tb-notification-button__icon,
|
|
598
|
+
&[channel="whatsapp"] tb-notification-button__icon {
|
|
547
599
|
background: $color-whatsapp;
|
|
548
600
|
}
|
|
549
601
|
|
|
@@ -555,6 +607,10 @@ tb-notification-widget {
|
|
|
555
607
|
background: $color-tg;
|
|
556
608
|
}
|
|
557
609
|
|
|
610
|
+
&[channel="max"] tb-notification-button__icon {
|
|
611
|
+
background: $color-max;
|
|
612
|
+
}
|
|
613
|
+
|
|
558
614
|
&[channel="facebook"] tb-notification-button__icon {
|
|
559
615
|
background: $color-fb;
|
|
560
616
|
}
|
|
@@ -571,9 +627,9 @@ tb-notification-widget {
|
|
|
571
627
|
width: 50px;
|
|
572
628
|
height: 50px;
|
|
573
629
|
margin: 0 auto;
|
|
574
|
-
transition: all .3s ease;
|
|
630
|
+
transition: all 0.3s ease;
|
|
575
631
|
border-radius: 50%;
|
|
576
|
-
box-shadow: 0 6px 12px rgba(0,0,0
|
|
632
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
|
|
577
633
|
> svg {
|
|
578
634
|
width: 100%;
|
|
579
635
|
height: 100%;
|
|
@@ -596,62 +652,66 @@ tb-notification-widget {
|
|
|
596
652
|
-ms-transform: scale(1.3);
|
|
597
653
|
transform: scale(1.3);
|
|
598
654
|
}
|
|
599
|
-
}
|
|
600
655
|
}
|
|
601
656
|
}
|
|
657
|
+
}
|
|
602
658
|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
/* new design */
|
|
659
|
+
/*styles for non mobile*/
|
|
660
|
+
@media only screen and (min-device-width: 736px) {
|
|
661
|
+
/* new design */
|
|
607
662
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
663
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
664
|
+
.tb-widget-buttons.tb-btn-style-square {
|
|
665
|
+
tb-notification-button {
|
|
666
|
+
.tb-notification-button__inner {
|
|
667
|
+
padding-left: 55px;
|
|
668
|
+
width: 239px;
|
|
613
669
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
670
|
+
tb-notification-button__icon {
|
|
671
|
+
top: -5px;
|
|
672
|
+
left: 0px;
|
|
673
|
+
width: 40px;
|
|
674
|
+
height: 40px;
|
|
620
675
|
}
|
|
621
676
|
}
|
|
622
677
|
}
|
|
678
|
+
}
|
|
623
679
|
|
|
624
|
-
|
|
680
|
+
/* old design*/
|
|
625
681
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
682
|
+
#tb-notification-widget-inner.tb-notification-widget-inner
|
|
683
|
+
tb-notification-widget-overlay
|
|
684
|
+
.tb-widget-buttons.tb-btn-style-rounded {
|
|
685
|
+
tb-notification-button {
|
|
686
|
+
margin: 0px 19px 24px 0px;
|
|
687
|
+
width: 206px;
|
|
688
|
+
height: 50px;
|
|
631
689
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
690
|
+
> a {
|
|
691
|
+
padding: 10px 20px;
|
|
692
|
+
font-size: 20px;
|
|
636
693
|
}
|
|
694
|
+
}
|
|
637
695
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
696
|
+
tb-notification-button__icon {
|
|
697
|
+
width: 40px;
|
|
698
|
+
height: 40px;
|
|
699
|
+
left: 15px;
|
|
700
|
+
top: 5px;
|
|
701
|
+
}
|
|
644
702
|
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
703
|
+
tb-notification-button__text {
|
|
704
|
+
width: 100px;
|
|
705
|
+
line-height: 30px;
|
|
649
706
|
}
|
|
650
707
|
}
|
|
708
|
+
}
|
|
651
709
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
710
|
+
// Dirty crutch. There is no other way now *'(
|
|
711
|
+
tb-notification-widget-popup.tb-popup-with-image
|
|
712
|
+
.tb-widget-buttons
|
|
713
|
+
> div:last-child {
|
|
714
|
+
tb-notification-button {
|
|
715
|
+
margin-bottom: 0 !important;
|
|
657
716
|
}
|
|
717
|
+
}
|
|
@@ -33,7 +33,8 @@ const channelButtons = {
|
|
|
33
33
|
facebook: require('../tb-notification-button/facebook'),
|
|
34
34
|
viber: require('../tb-notification-button/viber'),
|
|
35
35
|
whatsapp: require('../tb-notification-button/whatsapp'),
|
|
36
|
-
whatsappb: require('../tb-notification-button/whatsappb')
|
|
36
|
+
whatsappb: require('../tb-notification-button/whatsappb'),
|
|
37
|
+
max: require('../tb-notification-button/max')
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
const DEFAULT_BUTTONS_MARKUP = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1646_11767)">
|
|
3
|
+
<path
|
|
4
|
+
d="M16.5057 3H7.49426C5.01215 3 3 5.01215 3 7.49426V16.5057C3 18.9879 5.01215 21 7.49426 21H16.5057C18.9879 21 21 18.9879 21 16.5057V7.49426C21 5.01215 18.9879 3 16.5057 3Z"
|
|
5
|
+
fill="white" />
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
7
|
+
d="M12.1478 18.8099C10.7976 18.8099 10.1702 18.6128 9.07961 17.8244C8.38976 18.7114 6.20527 19.4045 6.10999 18.2186C6.10999 17.3284 5.91289 16.5761 5.68951 15.7549C5.42344 14.7431 5.12122 13.6164 5.12122 11.9837C5.12122 8.08448 8.32079 5.151 12.1116 5.151C15.9058 5.151 18.8787 8.22902 18.8787 12.0199C18.8914 15.7521 15.88 18.79 12.1478 18.8099ZM12.2036 8.52137C10.3575 8.42612 8.91864 9.70397 8.6 11.7078C8.3372 13.3667 8.80367 15.387 9.20115 15.4921C9.39168 15.5381 9.87129 15.1505 10.1702 14.8515C10.6645 15.193 11.2401 15.3981 11.839 15.4461C13.7519 15.5381 15.3864 14.0818 15.5149 12.171C15.5896 10.2561 14.1168 8.63425 12.2036 8.52467V8.52137Z"
|
|
8
|
+
fill="#7147EE" />
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<clipPath id="clip0_1646_11767">
|
|
12
|
+
<rect width="18" height="18" fill="white" transform="translate(3 3)" />
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
16
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg width="50" height="48" viewBox="0 0 50 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1650_11775)">
|
|
3
|
+
<path
|
|
4
|
+
d="M32.5096 9H17.4904C13.3536 9 10 12.3536 10 16.4904V31.5096C10 35.6464 13.3536 39 17.4904 39H32.5096C36.6464 39 40 35.6464 40 31.5096V16.4904C40 12.3536 36.6464 9 32.5096 9Z"
|
|
5
|
+
fill="white" />
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
7
|
+
d="M25.2463 35.3498C22.9961 35.3498 21.9504 35.0213 20.1327 33.7073C18.983 35.1856 15.3422 36.3408 15.1834 34.3643C15.1834 32.8807 14.8549 31.6269 14.4826 30.2581C14.0391 28.5718 13.5354 26.6939 13.5354 23.9729C13.5354 17.4741 18.868 12.585 25.1861 12.585C31.5097 12.585 36.4645 17.715 36.4645 24.0331C36.4857 30.2535 31.4667 35.3167 25.2463 35.3498ZM25.3394 18.2023C22.2625 18.0435 19.8644 20.1733 19.3334 23.513C18.8954 26.2779 19.6728 29.6449 20.3353 29.8201C20.6528 29.8968 21.4522 29.2507 21.9504 28.7525C22.7742 29.3217 23.7336 29.6635 24.7317 29.7435C27.9199 29.8969 30.6441 27.4697 30.8581 24.285C30.9828 21.0935 28.528 18.3904 25.3394 18.2078V18.2023Z"
|
|
8
|
+
fill="#7147EE" />
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<clipPath id="clip0_1650_11775">
|
|
12
|
+
<rect width="30" height="30" fill="white" transform="translate(10 9)" />
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
16
|
+
|
package/src/widget/locales/cs.js
CHANGED
package/src/widget/locales/en.js
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
whatsappExtended: "Subscribe to WhatsApp", //если выбран вариант показа "Прямоугольные кнопки" или "Всплывающее окно"
|
|
14
14
|
whatsappb: "WhatsApp", //для всех кнопок, кроме варианта показа "Прямоугольные кнопки" или "Всплывающее окно"
|
|
15
15
|
whatsappbExtended: "Subscribe to WhatsApp", //если выбран вариант показа "Прямоугольные кнопки" или "Всплывающее окно"
|
|
16
|
+
max: "Max",
|
|
17
|
+
maxExtended: "Subscribe to Max",
|
|
16
18
|
|
|
17
19
|
//NB: если не использовать лендинг ВК, то при выборе прямоугольных кнопок или попапа используется нативная кнопка, перевод которой пока не реализован
|
|
18
20
|
|
package/src/widget/locales/pl.js
CHANGED
package/src/widget/locales/ro.js
CHANGED
package/src/widget/locales/ru.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
2
|
//пояснения к переводу смотри в en.js
|
|
4
3
|
|
|
5
4
|
//виджет подписок
|
|
@@ -15,6 +14,8 @@ module.exports = {
|
|
|
15
14
|
whatsappExtended: "Подписаться в WhatsApp",
|
|
16
15
|
whatsappb: "WhatsApp",
|
|
17
16
|
whatsappbExtended: "Подписаться в WhatsApp",
|
|
17
|
+
max: 'Max',
|
|
18
|
+
maxExtended: 'Подписаться в Max',
|
|
18
19
|
|
|
19
20
|
vkontakteLogin: "VK Login",
|
|
20
21
|
singVK: "Подписаться ВКонтакте",
|
|
@@ -22,9 +23,11 @@ module.exports = {
|
|
|
22
23
|
//double check в рассылке
|
|
23
24
|
telegramTip: "Нажмите <strong>Запустить</strong></br>в приложении Telegram",
|
|
24
25
|
facebookTip: "Нажмите <strong>Начать</strong><br/>в Messenger",
|
|
25
|
-
viberTip:
|
|
26
|
+
viberTip:
|
|
27
|
+
"У вас должно быть установлено<br/><strong>Viber Desktop приложение</strong>",
|
|
26
28
|
vkontakteTip: "Нажмите <strong>Разрешить</strong><br/>во всплывающем окне",
|
|
27
|
-
whatsappTip:
|
|
29
|
+
whatsappTip:
|
|
30
|
+
"Отправьте <strong>предзаполненный текст</strong><br/>в WhatsApp без изменений",
|
|
28
31
|
|
|
29
32
|
//WhatsApp Hunter
|
|
30
33
|
getAnswer: "Получить ответ в ",
|
package/src/widget/locales/uk.js
CHANGED
package/test.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<html>
|
|
2
2
|
<body>
|
|
3
|
-
<script src="//
|
|
3
|
+
<script src="//localhost:8083/build/index.js"></script>
|
|
4
4
|
<tb-notification-widget
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
api-path="https://api.qa-1.textback.io/api"
|
|
6
|
+
widget-id="64496244-eeb6-5993-017f-019c94f5feec"
|
|
7
7
|
>
|
|
8
8
|
</tb-notification-widget>
|
|
9
9
|
</body>
|