@saasquatch/vanilla-components 1.2.4-9 → 1.2.4
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/CHANGELOG.md +163 -0
- package/dist/cjs/{WidgetHost-cee741d8.js → WidgetHost-d7b870ce.js} +0 -157
- package/dist/cjs/{en-3a7cb52e.js → en-a49a5ef5.js} +2 -2
- package/dist/cjs/{index-09a04159.js → index-deb40352.js} +3 -54
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
- package/dist/cjs/{sqh-copy-button_14.cjs.entry.js → sqh-copy-button_12.cjs.entry.js} +8 -1177
- package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/close-button/close-button.js +0 -2
- package/dist/collection/components/copy-button/copy-button.js +4 -13
- package/dist/collection/components/copy-link-button/copy-link-button.js +5 -11
- package/dist/collection/components/global-container/global-container.js +4 -18
- package/dist/collection/components/image-component/image-component.js +2 -5
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +1 -4
- package/dist/collection/components/referral-list/referral-list.js +50 -74
- package/dist/collection/components/share-button/share-button.js +1 -10
- package/dist/collection/components/share-button-container/share-button-container.js +37 -92
- package/dist/collection/components/stat-component/stat-component.js +1 -5
- package/dist/collection/components/stats-container/stats-container.js +4 -4
- package/dist/collection/components/text-component/text-component.js +7 -7
- package/dist/collection/entrypoint.js +19 -17
- package/dist/collection/services/WidgetHost.js +0 -157
- package/dist/esm/{WidgetHost-6cd6c29a.js → WidgetHost-a27e693d.js} +0 -157
- package/dist/esm/{en-a652ab83.js → en-be593af0.js} +1 -1
- package/dist/esm/{index-342d7c26.js → index-8ea8b6d8.js} +3 -54
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/sqh-close-button.entry.js +2 -2
- package/dist/esm/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +9 -1176
- package/dist/esm/sqh-referral-code.entry.js +2 -2
- package/dist/esm/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-6cd6c29a.js → WidgetHost-a27e693d.js} +4 -96
- package/dist/esm-es5/{en-a652ab83.js → en-be593af0.js} +1 -1
- package/dist/esm-es5/{index-342d7c26.js → index-8ea8b6d8.js} +3 -53
- package/dist/esm-es5/loader.mjs +3 -3
- package/dist/esm-es5/sqh-close-button.entry.js +2 -2
- package/dist/esm-es5/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +19 -1064
- package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
- package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm-es5/widget-components.mjs +3 -3
- package/dist/types/components/close-button/close-button.d.ts +0 -2
- package/dist/types/components/copy-button/copy-button.d.ts +4 -7
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +5 -7
- package/dist/types/components/global-container/global-container.d.ts +3 -7
- package/dist/types/components/image-component/image-component.d.ts +2 -3
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +1 -2
- package/dist/types/components/referral-list/referral-list.d.ts +50 -58
- package/dist/types/components/share-button/share-button.d.ts +1 -4
- package/dist/types/components/share-button-container/share-button-container.d.ts +36 -54
- package/dist/types/components/stat-component/stat-component.d.ts +1 -3
- package/dist/types/components/stats-container/stats-container.d.ts +3 -3
- package/dist/types/components/text-component/text-component.d.ts +2 -2
- package/dist/types/components.d.ts +214 -494
- package/dist/types/services/WidgetHost.d.ts +0 -6
- package/dist/widget-components/entrypoint.js +19 -17
- package/dist/widget-components/p-0bfec452.entry.js +149 -0
- package/dist/widget-components/{p-17d80384.js → p-44a6559d.js} +1 -1
- package/dist/widget-components/p-485eaf44.js +1 -0
- package/dist/widget-components/{p-e82def83.system.js → p-58be1132.system.js} +1 -1
- package/dist/widget-components/{p-1dfd20e2.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/p-796dc228.system.entry.js +8 -0
- package/dist/widget-components/{p-eeb2bfd4.system.entry.js → p-908068c2.system.entry.js} +1 -1
- package/dist/widget-components/{p-4b1ab75c.js → p-9525bf4a.js} +3 -68
- package/dist/widget-components/{p-fb528be6.entry.js → p-9746ae26.entry.js} +1 -1
- package/dist/widget-components/{p-b67d3319.system.js → p-9adc7c50.system.js} +2 -2
- package/dist/widget-components/{p-aaf44379.system.js → p-a846f503.system.js} +1 -1
- package/dist/widget-components/{p-599e6d35.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-9ffe6e46.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/{p-665b8d42.system.entry.js → p-e2b4739f.system.entry.js} +1 -1
- package/dist/widget-components/p-e61a8100.system.js +1 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +4 -4
- package/dist/collection/components/cta-component/cta-component.css +0 -6
- package/dist/collection/components/cta-component/cta-component.js +0 -396
- package/dist/collection/components/progress-indicator/progress-indicator.css +0 -73
- package/dist/collection/components/progress-indicator/progress-indicator.js +0 -493
- package/dist/types/components/cta-component/cta-component.d.ts +0 -86
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +0 -42
- package/dist/widget-components/p-7d98ea96.entry.js +0 -233
- package/dist/widget-components/p-8ca0fd41.system.entry.js +0 -10
- package/dist/widget-components/p-ad5121cf.system.js +0 -1
- package/dist/widget-components/p-fbf0c7fe.js +0 -1
|
@@ -63,8 +63,7 @@ export class ShareButtonContainer {
|
|
|
63
63
|
* @uiName WhatsApp Text Color
|
|
64
64
|
* @uiGroup WhatsApp
|
|
65
65
|
* @uiWidget color
|
|
66
|
-
* @
|
|
67
|
-
* @default "#ffffff"
|
|
66
|
+
* @default #ffffff
|
|
68
67
|
*/
|
|
69
68
|
this.whatsapptextcolor = "#fff";
|
|
70
69
|
/**
|
|
@@ -287,7 +286,7 @@ export class ShareButtonContainer {
|
|
|
287
286
|
"text": "[\"Mobile and Desktop\",\"Mobile Only\",\"Desktop Only\",\"Hide\"]",
|
|
288
287
|
"name": "uiEnumNames"
|
|
289
288
|
}, {
|
|
290
|
-
"text": "
|
|
289
|
+
"text": "mobile-and-desktop",
|
|
291
290
|
"name": "default"
|
|
292
291
|
}],
|
|
293
292
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -313,7 +312,7 @@ export class ShareButtonContainer {
|
|
|
313
312
|
"text": "Email",
|
|
314
313
|
"name": "uiGroup"
|
|
315
314
|
}, {
|
|
316
|
-
"text": "
|
|
315
|
+
"text": "Email",
|
|
317
316
|
"name": "default"
|
|
318
317
|
}],
|
|
319
318
|
"text": ""
|
|
@@ -342,10 +341,7 @@ export class ShareButtonContainer {
|
|
|
342
341
|
"text": "color",
|
|
343
342
|
"name": "uiWidget"
|
|
344
343
|
}, {
|
|
345
|
-
"text": "
|
|
346
|
-
"name": "format"
|
|
347
|
-
}, {
|
|
348
|
-
"text": "\"#4b4d50\"",
|
|
344
|
+
"text": "#4b4d50",
|
|
349
345
|
"name": "default"
|
|
350
346
|
}],
|
|
351
347
|
"text": "Background color of the Email button"
|
|
@@ -374,10 +370,7 @@ export class ShareButtonContainer {
|
|
|
374
370
|
"text": "color",
|
|
375
371
|
"name": "uiWidget"
|
|
376
372
|
}, {
|
|
377
|
-
"text": "
|
|
378
|
-
"name": "format"
|
|
379
|
-
}, {
|
|
380
|
-
"text": "\"#ffffff\"",
|
|
373
|
+
"text": "#ffffff",
|
|
381
374
|
"name": "default"
|
|
382
375
|
}],
|
|
383
376
|
"text": ""
|
|
@@ -526,7 +519,7 @@ export class ShareButtonContainer {
|
|
|
526
519
|
"text": "[\"Mobile and Desktop\",\"Mobile Only\",\"Desktop Only\",\"Hide\"]",
|
|
527
520
|
"name": "uiEnumNames"
|
|
528
521
|
}, {
|
|
529
|
-
"text": "
|
|
522
|
+
"text": "mobile-and-desktop",
|
|
530
523
|
"name": "default"
|
|
531
524
|
}],
|
|
532
525
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -552,7 +545,7 @@ export class ShareButtonContainer {
|
|
|
552
545
|
"text": "Facebook",
|
|
553
546
|
"name": "uiGroup"
|
|
554
547
|
}, {
|
|
555
|
-
"text": "
|
|
548
|
+
"text": "Facebook",
|
|
556
549
|
"name": "default"
|
|
557
550
|
}],
|
|
558
551
|
"text": ""
|
|
@@ -581,10 +574,7 @@ export class ShareButtonContainer {
|
|
|
581
574
|
"text": "color",
|
|
582
575
|
"name": "uiWidget"
|
|
583
576
|
}, {
|
|
584
|
-
"text": "
|
|
585
|
-
"name": "format"
|
|
586
|
-
}, {
|
|
587
|
-
"text": "\"#234079\"",
|
|
577
|
+
"text": "#234079",
|
|
588
578
|
"name": "default"
|
|
589
579
|
}],
|
|
590
580
|
"text": "Background color of the facebook button"
|
|
@@ -613,10 +603,7 @@ export class ShareButtonContainer {
|
|
|
613
603
|
"text": "color",
|
|
614
604
|
"name": "uiWidget"
|
|
615
605
|
}, {
|
|
616
|
-
"text": "
|
|
617
|
-
"name": "format"
|
|
618
|
-
}, {
|
|
619
|
-
"text": "\"#ffffff\"",
|
|
606
|
+
"text": "#ffffff",
|
|
620
607
|
"name": "default"
|
|
621
608
|
}],
|
|
622
609
|
"text": ""
|
|
@@ -766,7 +753,7 @@ export class ShareButtonContainer {
|
|
|
766
753
|
"text": "[\"Mobile and Desktop\",\"Mobile Only\",\"Desktop Only\",\"Hide\"]",
|
|
767
754
|
"name": "uiEnumNames"
|
|
768
755
|
}, {
|
|
769
|
-
"text": "
|
|
756
|
+
"text": "mobile-and-desktop",
|
|
770
757
|
"name": "default"
|
|
771
758
|
}],
|
|
772
759
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -792,7 +779,7 @@ export class ShareButtonContainer {
|
|
|
792
779
|
"text": "Twitter",
|
|
793
780
|
"name": "uiGroup"
|
|
794
781
|
}, {
|
|
795
|
-
"text": "
|
|
782
|
+
"text": "Twitter",
|
|
796
783
|
"name": "default"
|
|
797
784
|
}],
|
|
798
785
|
"text": ""
|
|
@@ -821,10 +808,7 @@ export class ShareButtonContainer {
|
|
|
821
808
|
"text": "color",
|
|
822
809
|
"name": "uiWidget"
|
|
823
810
|
}, {
|
|
824
|
-
"text": "
|
|
825
|
-
"name": "format"
|
|
826
|
-
}, {
|
|
827
|
-
"text": "\"#4797d2\"",
|
|
811
|
+
"text": "#4797d2",
|
|
828
812
|
"name": "default"
|
|
829
813
|
}],
|
|
830
814
|
"text": "Background color of the twitter button"
|
|
@@ -853,10 +837,7 @@ export class ShareButtonContainer {
|
|
|
853
837
|
"text": "color",
|
|
854
838
|
"name": "uiWidget"
|
|
855
839
|
}, {
|
|
856
|
-
"text": "
|
|
857
|
-
"name": "format"
|
|
858
|
-
}, {
|
|
859
|
-
"text": "\"#ffffff\"",
|
|
840
|
+
"text": "#ffffff",
|
|
860
841
|
"name": "default"
|
|
861
842
|
}],
|
|
862
843
|
"text": ""
|
|
@@ -1006,7 +987,7 @@ export class ShareButtonContainer {
|
|
|
1006
987
|
"text": "[\"Mobile Only\",\"Hide\"]",
|
|
1007
988
|
"name": "uiEnumNames"
|
|
1008
989
|
}, {
|
|
1009
|
-
"text": "
|
|
990
|
+
"text": "mobile-only",
|
|
1010
991
|
"name": "default"
|
|
1011
992
|
}],
|
|
1012
993
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -1032,7 +1013,7 @@ export class ShareButtonContainer {
|
|
|
1032
1013
|
"text": "SMS",
|
|
1033
1014
|
"name": "uiGroup"
|
|
1034
1015
|
}, {
|
|
1035
|
-
"text": "
|
|
1016
|
+
"text": "SMS",
|
|
1036
1017
|
"name": "default"
|
|
1037
1018
|
}],
|
|
1038
1019
|
"text": ""
|
|
@@ -1061,10 +1042,7 @@ export class ShareButtonContainer {
|
|
|
1061
1042
|
"text": "color",
|
|
1062
1043
|
"name": "uiWidget"
|
|
1063
1044
|
}, {
|
|
1064
|
-
"text": "
|
|
1065
|
-
"name": "format"
|
|
1066
|
-
}, {
|
|
1067
|
-
"text": "\"#7bbf38\"",
|
|
1045
|
+
"text": "#7bbf38",
|
|
1068
1046
|
"name": "default"
|
|
1069
1047
|
}],
|
|
1070
1048
|
"text": "Background color of the SMS button"
|
|
@@ -1093,10 +1071,7 @@ export class ShareButtonContainer {
|
|
|
1093
1071
|
"text": "color",
|
|
1094
1072
|
"name": "uiWidget"
|
|
1095
1073
|
}, {
|
|
1096
|
-
"text": "
|
|
1097
|
-
"name": "format"
|
|
1098
|
-
}, {
|
|
1099
|
-
"text": "\"#ffffff\"",
|
|
1074
|
+
"text": "#ffffff",
|
|
1100
1075
|
"name": "default"
|
|
1101
1076
|
}],
|
|
1102
1077
|
"text": ""
|
|
@@ -1244,7 +1219,7 @@ export class ShareButtonContainer {
|
|
|
1244
1219
|
"text": "[\"Mobile Only\",\"Hide\"]",
|
|
1245
1220
|
"name": "uiEnumNames"
|
|
1246
1221
|
}, {
|
|
1247
|
-
"text": "
|
|
1222
|
+
"text": "mobile-only",
|
|
1248
1223
|
"name": "default"
|
|
1249
1224
|
}],
|
|
1250
1225
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -1270,7 +1245,7 @@ export class ShareButtonContainer {
|
|
|
1270
1245
|
"text": "WhatsApp",
|
|
1271
1246
|
"name": "uiGroup"
|
|
1272
1247
|
}, {
|
|
1273
|
-
"text": "
|
|
1248
|
+
"text": "Whatspp",
|
|
1274
1249
|
"name": "default"
|
|
1275
1250
|
}],
|
|
1276
1251
|
"text": ""
|
|
@@ -1299,10 +1274,7 @@ export class ShareButtonContainer {
|
|
|
1299
1274
|
"text": "color",
|
|
1300
1275
|
"name": "uiWidget"
|
|
1301
1276
|
}, {
|
|
1302
|
-
"text": "
|
|
1303
|
-
"name": "format"
|
|
1304
|
-
}, {
|
|
1305
|
-
"text": "\"#25D366\"",
|
|
1277
|
+
"text": "#25D366",
|
|
1306
1278
|
"name": "default"
|
|
1307
1279
|
}],
|
|
1308
1280
|
"text": "Background color of the WhatsApp button"
|
|
@@ -1331,10 +1303,7 @@ export class ShareButtonContainer {
|
|
|
1331
1303
|
"text": "color",
|
|
1332
1304
|
"name": "uiWidget"
|
|
1333
1305
|
}, {
|
|
1334
|
-
"text": "
|
|
1335
|
-
"name": "format"
|
|
1336
|
-
}, {
|
|
1337
|
-
"text": "\"#ffffff\"",
|
|
1306
|
+
"text": "#ffffff",
|
|
1338
1307
|
"name": "default"
|
|
1339
1308
|
}],
|
|
1340
1309
|
"text": ""
|
|
@@ -1486,7 +1455,7 @@ export class ShareButtonContainer {
|
|
|
1486
1455
|
"text": "[\"Mobile and Desktop\",\"Mobile Only\",\"Desktop Only\",\"Hide\"]",
|
|
1487
1456
|
"name": "uiEnumNames"
|
|
1488
1457
|
}, {
|
|
1489
|
-
"text": "
|
|
1458
|
+
"text": "hidden",
|
|
1490
1459
|
"name": "default"
|
|
1491
1460
|
}],
|
|
1492
1461
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -1512,7 +1481,7 @@ export class ShareButtonContainer {
|
|
|
1512
1481
|
"text": "LinkedIn",
|
|
1513
1482
|
"name": "uiGroup"
|
|
1514
1483
|
}, {
|
|
1515
|
-
"text": "
|
|
1484
|
+
"text": "LinkedIn",
|
|
1516
1485
|
"name": "default"
|
|
1517
1486
|
}],
|
|
1518
1487
|
"text": ""
|
|
@@ -1541,10 +1510,7 @@ export class ShareButtonContainer {
|
|
|
1541
1510
|
"text": "color",
|
|
1542
1511
|
"name": "uiWidget"
|
|
1543
1512
|
}, {
|
|
1544
|
-
"text": "
|
|
1545
|
-
"name": "format"
|
|
1546
|
-
}, {
|
|
1547
|
-
"text": "\"#ffffff\"",
|
|
1513
|
+
"text": "#ffffff",
|
|
1548
1514
|
"name": "default"
|
|
1549
1515
|
}],
|
|
1550
1516
|
"text": "Background color of the linkedin button"
|
|
@@ -1573,10 +1539,7 @@ export class ShareButtonContainer {
|
|
|
1573
1539
|
"text": "color",
|
|
1574
1540
|
"name": "uiWidget"
|
|
1575
1541
|
}, {
|
|
1576
|
-
"text": "
|
|
1577
|
-
"name": "format"
|
|
1578
|
-
}, {
|
|
1579
|
-
"text": "\"#0084b9\"",
|
|
1542
|
+
"text": "#0084b9",
|
|
1580
1543
|
"name": "default"
|
|
1581
1544
|
}],
|
|
1582
1545
|
"text": ""
|
|
@@ -1725,7 +1688,7 @@ export class ShareButtonContainer {
|
|
|
1725
1688
|
"text": "[\"Mobile and Desktop\",\"Mobile Only\",\"Desktop Only\",\"Hide\"]",
|
|
1726
1689
|
"name": "uiEnumNames"
|
|
1727
1690
|
}, {
|
|
1728
|
-
"text": "
|
|
1691
|
+
"text": "hidden",
|
|
1729
1692
|
"name": "default"
|
|
1730
1693
|
}],
|
|
1731
1694
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -1751,7 +1714,7 @@ export class ShareButtonContainer {
|
|
|
1751
1714
|
"text": "Pinterest",
|
|
1752
1715
|
"name": "uiGroup"
|
|
1753
1716
|
}, {
|
|
1754
|
-
"text": "
|
|
1717
|
+
"text": "Pinterest",
|
|
1755
1718
|
"name": "default"
|
|
1756
1719
|
}],
|
|
1757
1720
|
"text": ""
|
|
@@ -1780,10 +1743,7 @@ export class ShareButtonContainer {
|
|
|
1780
1743
|
"text": "color",
|
|
1781
1744
|
"name": "uiWidget"
|
|
1782
1745
|
}, {
|
|
1783
|
-
"text": "
|
|
1784
|
-
"name": "format"
|
|
1785
|
-
}, {
|
|
1786
|
-
"text": "\"#cb2027\"",
|
|
1746
|
+
"text": "#cb2027",
|
|
1787
1747
|
"name": "default"
|
|
1788
1748
|
}],
|
|
1789
1749
|
"text": "Background color of the Pinterest button"
|
|
@@ -1812,10 +1772,7 @@ export class ShareButtonContainer {
|
|
|
1812
1772
|
"text": "color",
|
|
1813
1773
|
"name": "uiWidget"
|
|
1814
1774
|
}, {
|
|
1815
|
-
"text": "
|
|
1816
|
-
"name": "format"
|
|
1817
|
-
}, {
|
|
1818
|
-
"text": "\"#ffffff\"",
|
|
1775
|
+
"text": "#ffffff",
|
|
1819
1776
|
"name": "default"
|
|
1820
1777
|
}],
|
|
1821
1778
|
"text": ""
|
|
@@ -1966,7 +1923,7 @@ export class ShareButtonContainer {
|
|
|
1966
1923
|
"text": "[\"Mobile and Desktop\",\"Mobile Only\",\"Desktop Only\",\"Hide\"]",
|
|
1967
1924
|
"name": "uiEnumNames"
|
|
1968
1925
|
}, {
|
|
1969
|
-
"text": "
|
|
1926
|
+
"text": "hidden",
|
|
1970
1927
|
"name": "default"
|
|
1971
1928
|
}],
|
|
1972
1929
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -1992,7 +1949,7 @@ export class ShareButtonContainer {
|
|
|
1992
1949
|
"text": "Messenger",
|
|
1993
1950
|
"name": "uiGroup"
|
|
1994
1951
|
}, {
|
|
1995
|
-
"text": "
|
|
1952
|
+
"text": "Messenger",
|
|
1996
1953
|
"name": "default"
|
|
1997
1954
|
}],
|
|
1998
1955
|
"text": ""
|
|
@@ -2021,10 +1978,7 @@ export class ShareButtonContainer {
|
|
|
2021
1978
|
"text": "color",
|
|
2022
1979
|
"name": "uiWidget"
|
|
2023
1980
|
}, {
|
|
2024
|
-
"text": "
|
|
2025
|
-
"name": "format"
|
|
2026
|
-
}, {
|
|
2027
|
-
"text": "\"#0084ff\"",
|
|
1981
|
+
"text": "#0084ff",
|
|
2028
1982
|
"name": "default"
|
|
2029
1983
|
}],
|
|
2030
1984
|
"text": "Background color of the Messenger button"
|
|
@@ -2053,10 +2007,7 @@ export class ShareButtonContainer {
|
|
|
2053
2007
|
"text": "color",
|
|
2054
2008
|
"name": "uiWidget"
|
|
2055
2009
|
}, {
|
|
2056
|
-
"text": "
|
|
2057
|
-
"name": "format"
|
|
2058
|
-
}, {
|
|
2059
|
-
"text": "\"#ffffff\"",
|
|
2010
|
+
"text": "#ffffff",
|
|
2060
2011
|
"name": "default"
|
|
2061
2012
|
}],
|
|
2062
2013
|
"text": ""
|
|
@@ -2207,7 +2158,7 @@ export class ShareButtonContainer {
|
|
|
2207
2158
|
"text": "[\"Mobile Only\",\"Hide\"]",
|
|
2208
2159
|
"name": "uiEnumNames"
|
|
2209
2160
|
}, {
|
|
2210
|
-
"text": "
|
|
2161
|
+
"text": "mobile-only",
|
|
2211
2162
|
"name": "default"
|
|
2212
2163
|
}],
|
|
2213
2164
|
"text": "Show and hide button depending on what type of device the user is on"
|
|
@@ -2233,7 +2184,7 @@ export class ShareButtonContainer {
|
|
|
2233
2184
|
"text": "Line Messenger",
|
|
2234
2185
|
"name": "uiGroup"
|
|
2235
2186
|
}, {
|
|
2236
|
-
"text": "
|
|
2187
|
+
"text": "Line Messenger",
|
|
2237
2188
|
"name": "default"
|
|
2238
2189
|
}],
|
|
2239
2190
|
"text": ""
|
|
@@ -2262,10 +2213,7 @@ export class ShareButtonContainer {
|
|
|
2262
2213
|
"text": "color",
|
|
2263
2214
|
"name": "uiWidget"
|
|
2264
2215
|
}, {
|
|
2265
|
-
"text": "
|
|
2266
|
-
"name": "format"
|
|
2267
|
-
}, {
|
|
2268
|
-
"text": "\"#00c300\"",
|
|
2216
|
+
"text": "#00c300",
|
|
2269
2217
|
"name": "default"
|
|
2270
2218
|
}],
|
|
2271
2219
|
"text": "Background color of the Line button"
|
|
@@ -2294,10 +2242,7 @@ export class ShareButtonContainer {
|
|
|
2294
2242
|
"text": "color",
|
|
2295
2243
|
"name": "uiWidget"
|
|
2296
2244
|
}, {
|
|
2297
|
-
"text": "
|
|
2298
|
-
"name": "format"
|
|
2299
|
-
}, {
|
|
2300
|
-
"text": "\"#ffffff\"",
|
|
2245
|
+
"text": "#ffffff",
|
|
2301
2246
|
"name": "default"
|
|
2302
2247
|
}],
|
|
2303
2248
|
"text": ""
|
|
@@ -6,7 +6,6 @@ import { css } from "emotion";
|
|
|
6
6
|
* @exampleGroup Statistics
|
|
7
7
|
* @example Referral Count - <sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
8
8
|
* @example Reward Count - <sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
|
|
9
|
-
* @example Credit Earned - <sqh-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CENTS/prettyAssignedCredit" statdescription="Credit earned" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
|
|
10
9
|
* @example Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
|
|
11
10
|
*/
|
|
12
11
|
export class StatComponent {
|
|
@@ -77,7 +76,7 @@ export class StatComponent {
|
|
|
77
76
|
"text": "Stat Type",
|
|
78
77
|
"name": "uiName"
|
|
79
78
|
}, {
|
|
80
|
-
"text": "
|
|
79
|
+
"text": "statTypeSelectWidget",
|
|
81
80
|
"name": "uiWidget"
|
|
82
81
|
}, {
|
|
83
82
|
"text": undefined,
|
|
@@ -151,9 +150,6 @@ export class StatComponent {
|
|
|
151
150
|
}, {
|
|
152
151
|
"text": "color",
|
|
153
152
|
"name": "uiWidget"
|
|
154
|
-
}, {
|
|
155
|
-
"text": "color",
|
|
156
|
-
"name": "format"
|
|
157
153
|
}],
|
|
158
154
|
"text": ""
|
|
159
155
|
},
|
|
@@ -14,7 +14,7 @@ export class StatsContainer {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
/**
|
|
16
16
|
* @undocumented
|
|
17
|
-
* @uiName
|
|
17
|
+
* @uiName Hide stats
|
|
18
18
|
*/
|
|
19
19
|
this.ishidden = false;
|
|
20
20
|
this.statPaths = [
|
|
@@ -133,7 +133,7 @@ export class StatsContainer {
|
|
|
133
133
|
"text": undefined,
|
|
134
134
|
"name": "undocumented"
|
|
135
135
|
}, {
|
|
136
|
-
"text": "
|
|
136
|
+
"text": "Hide stats",
|
|
137
137
|
"name": "uiName"
|
|
138
138
|
}],
|
|
139
139
|
"text": ""
|
|
@@ -157,7 +157,7 @@ export class StatsContainer {
|
|
|
157
157
|
"text": "Padding Top",
|
|
158
158
|
"name": "uiName"
|
|
159
159
|
}, {
|
|
160
|
-
"text": "
|
|
160
|
+
"text": "0",
|
|
161
161
|
"name": "default"
|
|
162
162
|
}],
|
|
163
163
|
"text": "Define the bottom padding of the container with a pixel amount."
|
|
@@ -180,7 +180,7 @@ export class StatsContainer {
|
|
|
180
180
|
"text": "Padding Bottom",
|
|
181
181
|
"name": "uiName"
|
|
182
182
|
}, {
|
|
183
|
-
"text": "
|
|
183
|
+
"text": "0",
|
|
184
184
|
"name": "default"
|
|
185
185
|
}],
|
|
186
186
|
"text": "Define the top padding of the container with a pixel amount."
|
|
@@ -12,9 +12,9 @@ export class TextComponent {
|
|
|
12
12
|
render() {
|
|
13
13
|
const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
14
14
|
const textStyle = css `
|
|
15
|
-
font-family: ${this.fontfamily ||
|
|
16
|
-
font-size: ${this.fontsize ? this.fontsize +
|
|
17
|
-
font-weight: ${this.fontweight ? this.fontweight :
|
|
15
|
+
font-family: ${this.fontfamily || "inherit"};
|
|
16
|
+
font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
|
|
17
|
+
font-weight: ${this.fontweight ? this.fontweight : "inherit"};
|
|
18
18
|
text-align: ${this.textalign};
|
|
19
19
|
color: ${this.color || "inherit"};
|
|
20
20
|
padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
|
|
@@ -82,7 +82,7 @@ export class TextComponent {
|
|
|
82
82
|
"text": "Use Markdown",
|
|
83
83
|
"name": "uiName"
|
|
84
84
|
}],
|
|
85
|
-
"text": "
|
|
85
|
+
"text": "Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details."
|
|
86
86
|
},
|
|
87
87
|
"attribute": "ismarkdown",
|
|
88
88
|
"reflect": false
|
|
@@ -101,6 +101,9 @@ export class TextComponent {
|
|
|
101
101
|
"tags": [{
|
|
102
102
|
"text": "Text",
|
|
103
103
|
"name": "uiName"
|
|
104
|
+
}, {
|
|
105
|
+
"text": "textArea",
|
|
106
|
+
"name": "uiWidget"
|
|
104
107
|
}],
|
|
105
108
|
"text": ""
|
|
106
109
|
},
|
|
@@ -144,9 +147,6 @@ export class TextComponent {
|
|
|
144
147
|
}, {
|
|
145
148
|
"text": "color",
|
|
146
149
|
"name": "uiWidget"
|
|
147
|
-
}, {
|
|
148
|
-
"text": "color",
|
|
149
|
-
"name": "format"
|
|
150
150
|
}],
|
|
151
151
|
"text": ""
|
|
152
152
|
},
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
2
|
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
3
|
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
4
|
-
(function(doc){
|
|
5
|
-
var isSafari10 =
|
|
6
|
-
|
|
4
|
+
(function (doc) {
|
|
5
|
+
var isSafari10 =
|
|
6
|
+
window.navigator.userAgent.indexOf("Safari") > 0 &&
|
|
7
|
+
window.navigator.userAgent.indexOf("Version/10") > 0;
|
|
8
|
+
var scriptElm = Array.from(doc.scripts).find((script) =>
|
|
9
|
+
script.src.includes("widget-components")
|
|
10
|
+
);
|
|
7
11
|
|
|
8
|
-
var parts = scriptElm.src.split(
|
|
12
|
+
var parts = scriptElm.src.split("/");
|
|
9
13
|
parts.pop();
|
|
10
|
-
var url = parts.join(
|
|
14
|
+
var url = parts.join("/");
|
|
11
15
|
|
|
12
16
|
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
13
17
|
// without the "nomodule" attribute
|
|
14
18
|
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
15
|
-
|
|
16
19
|
if (!isSafari10) {
|
|
17
|
-
var scriptElm = doc.createElement(
|
|
18
|
-
scriptElm.setAttribute(
|
|
19
|
-
scriptElm.src = url +
|
|
20
|
-
scriptElm.setAttribute(
|
|
20
|
+
var scriptElm = doc.createElement("script");
|
|
21
|
+
scriptElm.setAttribute("type", "module");
|
|
22
|
+
scriptElm.src = url + "/widget-components.esm.js";
|
|
23
|
+
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
21
24
|
doc.head.appendChild(scriptElm);
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
var scriptElm = doc.createElement(
|
|
26
|
+
|
|
27
|
+
var scriptElm = doc.createElement("script");
|
|
25
28
|
if (!isSafari10) {
|
|
26
|
-
scriptElm.setAttribute(
|
|
29
|
+
scriptElm.setAttribute("nomodule", "");
|
|
27
30
|
}
|
|
28
|
-
scriptElm.src = url +
|
|
29
|
-
scriptElm.setAttribute(
|
|
30
|
-
doc.head.appendChild(scriptElm)
|
|
31
|
+
scriptElm.src = url + "/widget-components.js";
|
|
32
|
+
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
33
|
+
doc.head.appendChild(scriptElm);
|
|
31
34
|
})(document);
|
|
32
|
-
|