@saasquatch/vanilla-components 1.2.3 → 1.2.4-0
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sqh-close-button.cjs.entry.js +8 -3
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +182 -7
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/close-button/close-button.js +14 -3
- package/dist/collection/components/copy-button/copy-button.js +117 -24
- package/dist/collection/components/copy-link-button/copy-link-button.js +60 -12
- package/dist/collection/components/global-container/global-container.js +53 -10
- package/dist/collection/components/image-component/image-component.js +54 -12
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +41 -11
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +28 -10
- package/dist/collection/components/referral-list/referral-list.js +319 -58
- package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
- package/dist/collection/components/share-button/share-button.js +76 -22
- package/dist/collection/components/share-button-container/share-button-container.js +1097 -164
- package/dist/collection/components/stat-component/stat-component.js +40 -10
- package/dist/collection/components/stats-container/stats-container.js +30 -6
- package/dist/collection/components/text-component/text-component.js +70 -43
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +8 -3
- package/dist/esm/sqh-copy-button_12.entry.js +181 -6
- package/dist/esm/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +14 -9
- package/dist/esm-es5/sqh-copy-button_12.entry.js +199 -24
- package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/close-button/close-button.d.ts +9 -1
- package/dist/types/components/copy-button/copy-button.d.ts +81 -0
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +42 -0
- package/dist/types/components/global-container/global-container.d.ts +37 -0
- package/dist/types/components/image-component/image-component.d.ts +41 -0
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +33 -1
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +28 -0
- package/dist/types/components/referral-list/referral-list.d.ts +205 -0
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
- package/dist/types/components/share-button/share-button.d.ts +64 -0
- package/dist/types/components/share-button-container/share-button-container.d.ts +584 -0
- package/dist/types/components/stat-component/stat-component.d.ts +31 -0
- package/dist/types/components/stats-container/stats-container.d.ts +21 -0
- package/dist/types/components/text-component/text-component.d.ts +62 -1
- package/dist/types/components.d.ts +2052 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-75ab4c57.entry.js → p-d7059393.entry.js} +1 -1
- package/dist/widget-components/{p-d2335c54.system.entry.js → p-fba5ea7f.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/docs/raisins.json +1 -0
- package/package.json +12 -5
- package/CHANGELOG.md +0 -143
|
@@ -2738,7 +2738,7 @@ ImageComponent.style = imageComponentCss;
|
|
|
2738
2738
|
|
|
2739
2739
|
const partnerStatComponentCss = "sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
|
|
2740
2740
|
|
|
2741
|
-
const
|
|
2741
|
+
const PartnerStatComponent = class {
|
|
2742
2742
|
constructor(hostRef) {
|
|
2743
2743
|
registerInstance(this, hostRef);
|
|
2744
2744
|
this.statTypeUpdated = createEvent(this, "statTypeUpdated", 7);
|
|
@@ -2768,7 +2768,7 @@ const StatComponent = class {
|
|
|
2768
2768
|
"stattype": ["stattypeHandler"]
|
|
2769
2769
|
}; }
|
|
2770
2770
|
};
|
|
2771
|
-
|
|
2771
|
+
PartnerStatComponent.style = partnerStatComponentCss;
|
|
2772
2772
|
|
|
2773
2773
|
var TYPE;
|
|
2774
2774
|
(function (TYPE) {
|
|
@@ -7326,33 +7326,204 @@ const shareButtonContainerCss = "sqh-share-button-container{text-align:center;di
|
|
|
7326
7326
|
const ShareButtonContainer = class {
|
|
7327
7327
|
constructor(hostRef) {
|
|
7328
7328
|
registerInstance(this, hostRef);
|
|
7329
|
+
/**
|
|
7330
|
+
* Email button icon
|
|
7331
|
+
*
|
|
7332
|
+
* @uiName Email Icon
|
|
7333
|
+
* @uiGroup Email
|
|
7334
|
+
*/
|
|
7329
7335
|
this.emailicon = "mail";
|
|
7336
|
+
/**
|
|
7337
|
+
* CSS Class name used to style the Email button
|
|
7338
|
+
*
|
|
7339
|
+
* @uiName Email Class Name
|
|
7340
|
+
* @uiGroup Email
|
|
7341
|
+
*/
|
|
7330
7342
|
this.emailclassName = "email-share";
|
|
7343
|
+
/**
|
|
7344
|
+
* Facebook button icon
|
|
7345
|
+
*
|
|
7346
|
+
* @uiName Facebook Icon
|
|
7347
|
+
* @uiGroup Facebook
|
|
7348
|
+
*/
|
|
7331
7349
|
this.facebookicon = "facebook";
|
|
7350
|
+
/**
|
|
7351
|
+
* Number to horizontally align the facebook button icon
|
|
7352
|
+
*
|
|
7353
|
+
* @uiName Facebook Icon Horizontal
|
|
7354
|
+
* @uiGroup Facebook
|
|
7355
|
+
*/
|
|
7332
7356
|
this.facebookiconhorizontal = 9;
|
|
7357
|
+
/**
|
|
7358
|
+
* Size of the facebook button icon
|
|
7359
|
+
*
|
|
7360
|
+
* @uiName Facebook Icon Size
|
|
7361
|
+
* @uiGroup Facebook
|
|
7362
|
+
*/
|
|
7333
7363
|
this.facebookiconsize = 1.2;
|
|
7364
|
+
/**
|
|
7365
|
+
* Twitter button icon
|
|
7366
|
+
*
|
|
7367
|
+
* @uiName Twitter Icon
|
|
7368
|
+
* @uiGroup Twitter
|
|
7369
|
+
*/
|
|
7334
7370
|
this.twittericon = "twitter";
|
|
7371
|
+
/**
|
|
7372
|
+
* Number to horizontally align the twitter button icon
|
|
7373
|
+
*
|
|
7374
|
+
* @uiName Twitter Icon Horizontal
|
|
7375
|
+
* @uiGroup Twitter
|
|
7376
|
+
*/
|
|
7335
7377
|
this.twittericonhorizontal = 9;
|
|
7378
|
+
/**
|
|
7379
|
+
* Size of the twitter button icon
|
|
7380
|
+
*
|
|
7381
|
+
* @uiName Twitter Icon Size
|
|
7382
|
+
* @uiGroup Twitter
|
|
7383
|
+
*/
|
|
7336
7384
|
this.twittericonsize = 1.2;
|
|
7385
|
+
/**
|
|
7386
|
+
* SMS button icon
|
|
7387
|
+
*
|
|
7388
|
+
* @uiName SMS Icon
|
|
7389
|
+
* @uiGroup SMS
|
|
7390
|
+
*/
|
|
7337
7391
|
this.smsicon = "chat";
|
|
7392
|
+
/**
|
|
7393
|
+
* Color of the text inside the WhatsApp button
|
|
7394
|
+
*
|
|
7395
|
+
* @uiName WhatsApp Text Color
|
|
7396
|
+
* @uiGroup WhatsApp
|
|
7397
|
+
* @uiWidget color
|
|
7398
|
+
* @format color
|
|
7399
|
+
* @default "#ffffff"
|
|
7400
|
+
*/
|
|
7338
7401
|
this.whatsapptextcolor = "#fff";
|
|
7402
|
+
/**
|
|
7403
|
+
* WhatsApp button icon
|
|
7404
|
+
*
|
|
7405
|
+
* @uiName WhatsApp Icon
|
|
7406
|
+
* @uiGroup WhatsApp
|
|
7407
|
+
*/
|
|
7339
7408
|
this.whatsappicon = "whatsapp";
|
|
7409
|
+
/**
|
|
7410
|
+
* Number to horizontally align the WhatsApp button icon
|
|
7411
|
+
*
|
|
7412
|
+
* @uiName WhatsApp Icon Horizontal
|
|
7413
|
+
* @uiGroup WhatsApp
|
|
7414
|
+
*/
|
|
7340
7415
|
this.whatsappiconhorizontal = 7;
|
|
7416
|
+
/**
|
|
7417
|
+
* Number to vertically align the WhatsApp button icon
|
|
7418
|
+
*
|
|
7419
|
+
* @uiName WhatsApp Icon Vertical
|
|
7420
|
+
* @uiGroup WhatsApp
|
|
7421
|
+
*/
|
|
7341
7422
|
this.whatsappiconvertical = 2;
|
|
7423
|
+
/**
|
|
7424
|
+
* Size of the WhatsApp button icon
|
|
7425
|
+
*
|
|
7426
|
+
* @uiName WhatsApp Icon Size
|
|
7427
|
+
* @uiGroup WhatsApp
|
|
7428
|
+
*/
|
|
7342
7429
|
this.whatsappiconsize = 1.4;
|
|
7430
|
+
/**
|
|
7431
|
+
* Linkedin button icon
|
|
7432
|
+
*
|
|
7433
|
+
* @uiName Linkedin Icon
|
|
7434
|
+
* @uiGroup LinkedIn
|
|
7435
|
+
*/
|
|
7343
7436
|
this.linkedinicon = "linkedin";
|
|
7437
|
+
/**
|
|
7438
|
+
* Size of the Linkedin button icon
|
|
7439
|
+
*
|
|
7440
|
+
* @uiName Linkedin Icon Size
|
|
7441
|
+
* @uiGroup LinkedIn
|
|
7442
|
+
*/
|
|
7344
7443
|
this.linkediniconsize = 1.2;
|
|
7444
|
+
/**
|
|
7445
|
+
* Pinterest button icon
|
|
7446
|
+
*
|
|
7447
|
+
* @uiName Pinterest Icon
|
|
7448
|
+
* @uiGroup Pinterest
|
|
7449
|
+
*/
|
|
7345
7450
|
this.pinteresticon = "pinterest";
|
|
7451
|
+
/**
|
|
7452
|
+
* Number to horizontally align the Pinterest button icon
|
|
7453
|
+
*
|
|
7454
|
+
* @uiName Pinterest Icon Horizontal
|
|
7455
|
+
* @uiGroup Pinterest
|
|
7456
|
+
*/
|
|
7346
7457
|
this.pinteresticonhorizontal = 9;
|
|
7458
|
+
/**
|
|
7459
|
+
* Number to vertically align the Pinterest button icon
|
|
7460
|
+
*
|
|
7461
|
+
* @uiName Pinterest Icon Vertical
|
|
7462
|
+
* @uiGroup Pinterest
|
|
7463
|
+
*/
|
|
7347
7464
|
this.pinteresticonvertical = 4;
|
|
7465
|
+
/**
|
|
7466
|
+
* Size of the Pinterest button icon
|
|
7467
|
+
*
|
|
7468
|
+
* @uiName Pinterest Icon Size
|
|
7469
|
+
* @uiGroup Pinterest
|
|
7470
|
+
*/
|
|
7348
7471
|
this.pinteresticonsize = 1.2;
|
|
7472
|
+
/**
|
|
7473
|
+
* Messenger button icon
|
|
7474
|
+
*
|
|
7475
|
+
* @uiName Messenger Icon
|
|
7476
|
+
* @uiGroup Messenger
|
|
7477
|
+
*/
|
|
7349
7478
|
this.messengericon = "messenger";
|
|
7479
|
+
/**
|
|
7480
|
+
* Number to horizontally align the Messenger button icon
|
|
7481
|
+
*
|
|
7482
|
+
* @uiName Messenger Icon Horizontal
|
|
7483
|
+
* @uiGroup Messenger
|
|
7484
|
+
*/
|
|
7350
7485
|
this.messengericonhorizontal = 7;
|
|
7486
|
+
/**
|
|
7487
|
+
* Number to vertically align the Messenger button icon
|
|
7488
|
+
*
|
|
7489
|
+
* @uiName Messenger Icon Vertical
|
|
7490
|
+
* @uiGroup Messenger
|
|
7491
|
+
*/
|
|
7351
7492
|
this.messengericonvertical = 3;
|
|
7493
|
+
/**
|
|
7494
|
+
* Size of the Messenger button icon
|
|
7495
|
+
*
|
|
7496
|
+
* @uiName Messenger Icon Size
|
|
7497
|
+
* @uiGroup Messenger
|
|
7498
|
+
*/
|
|
7352
7499
|
this.messengericonsize = 1.4;
|
|
7500
|
+
/**
|
|
7501
|
+
* Line button icon
|
|
7502
|
+
*
|
|
7503
|
+
* @uiName Line Icon
|
|
7504
|
+
* @uiGroup Line Messenger
|
|
7505
|
+
*/
|
|
7353
7506
|
this.lineicon = "line";
|
|
7507
|
+
/**
|
|
7508
|
+
* Number to horizontally align the Line button icon
|
|
7509
|
+
*
|
|
7510
|
+
* @uiName Line Icon Horizontal
|
|
7511
|
+
* @uiGroup Line Messenger
|
|
7512
|
+
*/
|
|
7354
7513
|
this.lineiconhorizontal = -2;
|
|
7514
|
+
/**
|
|
7515
|
+
* Number to vertically align the Line button icon
|
|
7516
|
+
*
|
|
7517
|
+
* @uiName Line Icon Vertical
|
|
7518
|
+
* @uiGroup Line Messenger
|
|
7519
|
+
*/
|
|
7355
7520
|
this.lineiconvertical = -5;
|
|
7521
|
+
/**
|
|
7522
|
+
* Size of the Line button icon
|
|
7523
|
+
*
|
|
7524
|
+
* @uiName Line Icon Size
|
|
7525
|
+
* @uiGroup Line Messenger
|
|
7526
|
+
*/
|
|
7356
7527
|
this.lineiconsize = 2.2;
|
|
7357
7528
|
}
|
|
7358
7529
|
componentWillLoad() {
|
|
@@ -7409,7 +7580,7 @@ ShareButtonContainer.style = shareButtonContainerCss;
|
|
|
7409
7580
|
|
|
7410
7581
|
const statComponentCss = "sqh-stat-component{text-align:center;width:140px;float:left}sqh-stat-component>div{padding:10px}sqh-stat-component .stat-value{white-space:nowrap;font-size:30px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-stat-component:first-child{border-radius:4px 4px 0 0}sqh-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
|
|
7411
7582
|
|
|
7412
|
-
const StatComponent
|
|
7583
|
+
const StatComponent = class {
|
|
7413
7584
|
constructor(hostRef) {
|
|
7414
7585
|
registerInstance(this, hostRef);
|
|
7415
7586
|
this.statTypeUpdated = createEvent(this, "statTypeUpdated", 7);
|
|
@@ -7439,7 +7610,7 @@ const StatComponent$1 = class {
|
|
|
7439
7610
|
"stattype": ["stattypeHandler"]
|
|
7440
7611
|
}; }
|
|
7441
7612
|
};
|
|
7442
|
-
StatComponent
|
|
7613
|
+
StatComponent.style = statComponentCss;
|
|
7443
7614
|
|
|
7444
7615
|
/**
|
|
7445
7616
|
* Tokenize input string.
|
|
@@ -7739,6 +7910,11 @@ const statsContainerCss = "sqh-stats-container{display:-ms-flexbox;display:flex;
|
|
|
7739
7910
|
const StatsContainer = class {
|
|
7740
7911
|
constructor(hostRef) {
|
|
7741
7912
|
registerInstance(this, hostRef);
|
|
7913
|
+
/**
|
|
7914
|
+
* Hide the component
|
|
7915
|
+
*
|
|
7916
|
+
* @uiName Is Hidden
|
|
7917
|
+
*/
|
|
7742
7918
|
this.ishidden = false;
|
|
7743
7919
|
this.statPaths = [
|
|
7744
7920
|
"/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
|
|
@@ -10437,7 +10613,6 @@ const textComponentCss = "sqh-text-component{display:block}sqh-text-component p{
|
|
|
10437
10613
|
const TextComponent = class {
|
|
10438
10614
|
constructor(hostRef) {
|
|
10439
10615
|
registerInstance(this, hostRef);
|
|
10440
|
-
this.padding = "10px 20px 15px";
|
|
10441
10616
|
}
|
|
10442
10617
|
render() {
|
|
10443
10618
|
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;
|
|
@@ -10468,4 +10643,4 @@ const TextComponent = class {
|
|
|
10468
10643
|
};
|
|
10469
10644
|
TextComponent.style = textComponentCss;
|
|
10470
10645
|
|
|
10471
|
-
export { CopyButton as sqh_copy_button, CopyLinkButton as sqh_copy_link_button, GlobalContainer as sqh_global_container, ImageComponent as sqh_image_component,
|
|
10646
|
+
export { CopyButton as sqh_copy_button, CopyLinkButton as sqh_copy_link_button, GlobalContainer as sqh_global_container, ImageComponent as sqh_image_component, PartnerStatComponent as sqh_partner_stat_component, ReferralComponent as sqh_referral_component, ReferralList as sqh_referral_list, ShareButton as sqh_share_button, ShareButtonContainer as sqh_share_button_container, StatComponent as sqh_stat_component, StatsContainer as sqh_stats_container, TextComponent as sqh_text_component };
|
|
@@ -5,8 +5,23 @@ const rewardsActionsCss = "sqh-rewards-actions .squatch-referrals-actions{text-a
|
|
|
5
5
|
const RewardsActions = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Text inside the previous button
|
|
10
|
+
*
|
|
11
|
+
* @uiName Previous Button Text
|
|
12
|
+
*/
|
|
8
13
|
this.previoustext = "Previous";
|
|
14
|
+
/**
|
|
15
|
+
* Text inside the hide button
|
|
16
|
+
*
|
|
17
|
+
* @uiName Hide Button Text
|
|
18
|
+
*/
|
|
9
19
|
this.hidetext = "Hide";
|
|
20
|
+
/**
|
|
21
|
+
* Text inside the next button
|
|
22
|
+
*
|
|
23
|
+
* @uiName Next Button Text
|
|
24
|
+
*/
|
|
10
25
|
this.nexttext = "Next";
|
|
11
26
|
}
|
|
12
27
|
render() {
|
|
@@ -3,5 +3,5 @@ import { p as patchBrowser } from './en-be593af0.js';
|
|
|
3
3
|
import './_commonjsHelpers-1d681858.js';
|
|
4
4
|
|
|
5
5
|
patchBrowser().then(options => {
|
|
6
|
-
return bootstrapLazy([["sqh-close-button",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"
|
|
6
|
+
return bootstrapLazy([["sqh-close-button",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
|
|
7
7
|
});
|
package/dist/esm-es5/loader.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var defineCustomElements = function (win, options) {
|
|
|
5
5
|
if (typeof window === 'undefined')
|
|
6
6
|
return Promise.resolve();
|
|
7
7
|
return patchEsm().then(function () {
|
|
8
|
-
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[0, "sqh-referral-list", { "ishidden": [4], "paginatemore": [1], "paginateless": [1], "noreferralsyet": [1], "referralnamecolor": [1], "referraltextcolor": [1], "unknownuser": [1], "showexpiry": [4], "shownotes": [4], "redeemedvalue": [1], "showreferrer": [4], "referrercontent": [1], "referrervalue": [1], "rewardcolor": [1], "customernotecolor": [1], "usefirstreward": [4], "convertedcontent": [1], "valuecontent": [1], "pendingcolor": [1], "pendingcontent": [1], "pendingvalue": [1], "expiredcolor": [1], "expiredcontent": [1], "expiredvalue": [1], "expiresvalue": [1], "cancelledcolor": [1], "cancelledcontent": [1], "cancelledvalue": [1], "internationalization": [4], "referrals": [32], "referralsCount": [32], "referredBy": [32], "rewards": [32], "loading": [32], "offset": [32], "locale": [32] }], [0, "sqh-share-button-container", { "ishidden": [4], "emaildisplayrule": [1], "emailtext": [1], "emailbackgroundcolor": [1], "emailtextcolor": [1], "emailicon": [1], "emailclassName": [1, "emailclass-name"], "emailiconhorizontal": [2], "emailiconvertical": [2], "emailiconsize": [2], "facebookdisplayrule": [1], "facebooktext": [1], "facebookbackgroundcolor": [1], "facebooktextcolor": [1], "facebookicon": [1], "facebookclassName": [1, "facebookclass-name"], "facebookiconhorizontal": [2], "facebookiconvertical": [2], "facebookiconsize": [2], "twitterdisplayrule": [1], "twittertext": [1], "twitterbackgroundcolor": [1], "twittertextcolor": [1], "twittericon": [1], "twitterclassName": [1, "twitterclass-name"], "twittericonhorizontal": [2], "twittericonvertical": [2], "twittericonsize": [2], "smsdisplayrule": [1], "smstext": [1], "smsbackgroundcolor": [1], "smstextcolor": [1], "smsicon": [1], "smsclassName": [1, "smsclass-name"], "smsiconhorizontal": [2], "smsiconvertical": [2], "smsiconsize": [2], "whatsappdisplayrule": [1], "whatsapptext": [1], "whatsappbackgroundcolor": [1], "whatsapptextcolor": [1], "whatsappicon": [1], "whatsappclassName": [1, "whatsappclass-name"], "whatsappiconhorizontal": [2], "whatsappiconvertical": [2], "whatsappiconsize": [2], "linkedindisplayrule": [1], "linkedintext": [1], "linkedinbackgroundcolor": [1], "linkedintextcolor": [1], "linkedinicon": [1], "linkedinclassName": [1, "linkedinclass-name"], "linkediniconhorizontal": [2], "linkediniconvertical": [2], "linkediniconsize": [2], "pinterestdisplayrule": [1], "pinteresttext": [1], "pinterestbackgroundcolor": [1], "pinteresttextcolor": [1], "pinteresticon": [1], "pinterestclassName": [1, "pinterestclass-name"], "pinteresticonhorizontal": [2], "pinteresticonvertical": [2], "pinteresticonsize": [2], "messengerdisplayrule": [1], "messengertext": [1], "messengerbackgroundcolor": [1], "messengertextcolor": [1], "messengericon": [1], "messengerclassName": [1, "messengerclass-name"], "messengericonhorizontal": [2], "messengericonvertical": [2], "messengericonsize": [2], "linedisplayrule": [1], "linetext": [1], "linebackgroundcolor": [1], "linetextcolor": [1], "lineicon": [1], "lineclassName": [1, "lineclass-name"], "lineiconhorizontal": [2], "lineiconvertical": [2], "lineiconsize": [2], "emailurl": [32], "facebookurl": [32], "twitterurl": [32], "smsurl": [32], "whatsappurl": [32], "linkedinurl": [32], "pinteresturl": [32], "messengerurl": [32], "lineurl": [32] }], [0, "sqh-copy-button", { "ishidden": [4], "text": [1], "width": [2], "backgroundcolor": [1], "borderradius": [2], "textcolor": [1], "fontsize": [2], "copysuccess": [1], "copyfailure": [1], "rewardkey": [1], "codefontsize": [2], "codefontcolor": [1], "fueltankcode": [32] }], [0, "sqh-copy-link-button", { "ishidden": [4], "text": [1], "copysuccess": [1], "copyfailure": [1], "buttoncolor": [1], "textcolor": [1], "sharelink": [32] }], [4, "sqh-global-container", { "background": [1], "loadingcolor": [1], "fontfamily": [1], "maxwidth": [1], "poweredby": [4] }], [0, "sqh-image-component", { "ishidden": [4], "url": [1], "width": [2], "borderradius": [2], "alignment": [1], "css": [1] }], [0, "sqh-partner-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [0, "sqh-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [4, "sqh-stats-container", { "ishidden": [4], "paddingtop": [1], "paddingbottom": [1], "loading": [32], "stats": [32] }, [[0, "statTypeUpdated", "statTypeUpdatedHandler"], [0, "statAdded", "statAddedHandler"]]], [0, "sqh-text-component", { "ishidden": [4], "ismarkdown": [4], "text": [1], "fontfamily": [1], "color": [1], "fontsize": [1], "paddingtop": [1], "paddingbottom": [1], "
|
|
8
|
+
return bootstrapLazy([["sqh-close-button", [[0, "sqh-close-button", { "text": [1] }, [[0, "click", "handleClick"]]]]], ["sqh-referral-code", [[0, "sqh-referral-code", { "referralcode": [32] }]]], ["sqh-rewards-actions", [[0, "sqh-rewards-actions", { "previoustext": [1], "hidetext": [1], "nexttext": [1] }]]], ["sqh-copy-button_12", [[0, "sqh-referral-list", { "ishidden": [4], "paginatemore": [1], "paginateless": [1], "noreferralsyet": [1], "referralnamecolor": [1], "referraltextcolor": [1], "unknownuser": [1], "showexpiry": [4], "shownotes": [4], "redeemedvalue": [1], "showreferrer": [4], "referrercontent": [1], "referrervalue": [1], "rewardcolor": [1], "customernotecolor": [1], "usefirstreward": [4], "convertedcontent": [1], "valuecontent": [1], "pendingcolor": [1], "pendingcontent": [1], "pendingvalue": [1], "expiredcolor": [1], "expiredcontent": [1], "expiredvalue": [1], "expiresvalue": [1], "cancelledcolor": [1], "cancelledcontent": [1], "cancelledvalue": [1], "internationalization": [4], "referrals": [32], "referralsCount": [32], "referredBy": [32], "rewards": [32], "loading": [32], "offset": [32], "locale": [32] }], [0, "sqh-share-button-container", { "ishidden": [4], "emaildisplayrule": [1], "emailtext": [1], "emailbackgroundcolor": [1], "emailtextcolor": [1], "emailicon": [1], "emailclassName": [1, "emailclass-name"], "emailiconhorizontal": [2], "emailiconvertical": [2], "emailiconsize": [2], "facebookdisplayrule": [1], "facebooktext": [1], "facebookbackgroundcolor": [1], "facebooktextcolor": [1], "facebookicon": [1], "facebookclassName": [1, "facebookclass-name"], "facebookiconhorizontal": [2], "facebookiconvertical": [2], "facebookiconsize": [2], "twitterdisplayrule": [1], "twittertext": [1], "twitterbackgroundcolor": [1], "twittertextcolor": [1], "twittericon": [1], "twitterclassName": [1, "twitterclass-name"], "twittericonhorizontal": [2], "twittericonvertical": [2], "twittericonsize": [2], "smsdisplayrule": [1], "smstext": [1], "smsbackgroundcolor": [1], "smstextcolor": [1], "smsicon": [1], "smsclassName": [1, "smsclass-name"], "smsiconhorizontal": [2], "smsiconvertical": [2], "smsiconsize": [2], "whatsappdisplayrule": [1], "whatsapptext": [1], "whatsappbackgroundcolor": [1], "whatsapptextcolor": [1], "whatsappicon": [1], "whatsappclassName": [1, "whatsappclass-name"], "whatsappiconhorizontal": [2], "whatsappiconvertical": [2], "whatsappiconsize": [2], "linkedindisplayrule": [1], "linkedintext": [1], "linkedinbackgroundcolor": [1], "linkedintextcolor": [1], "linkedinicon": [1], "linkedinclassName": [1, "linkedinclass-name"], "linkediniconhorizontal": [2], "linkediniconvertical": [2], "linkediniconsize": [2], "pinterestdisplayrule": [1], "pinteresttext": [1], "pinterestbackgroundcolor": [1], "pinteresttextcolor": [1], "pinteresticon": [1], "pinterestclassName": [1, "pinterestclass-name"], "pinteresticonhorizontal": [2], "pinteresticonvertical": [2], "pinteresticonsize": [2], "messengerdisplayrule": [1], "messengertext": [1], "messengerbackgroundcolor": [1], "messengertextcolor": [1], "messengericon": [1], "messengerclassName": [1, "messengerclass-name"], "messengericonhorizontal": [2], "messengericonvertical": [2], "messengericonsize": [2], "linedisplayrule": [1], "linetext": [1], "linebackgroundcolor": [1], "linetextcolor": [1], "lineicon": [1], "lineclassName": [1, "lineclass-name"], "lineiconhorizontal": [2], "lineiconvertical": [2], "lineiconsize": [2], "emailurl": [32], "facebookurl": [32], "twitterurl": [32], "smsurl": [32], "whatsappurl": [32], "linkedinurl": [32], "pinteresturl": [32], "messengerurl": [32], "lineurl": [32] }], [0, "sqh-copy-button", { "ishidden": [4], "text": [1], "width": [2], "backgroundcolor": [1], "borderradius": [2], "textcolor": [1], "fontsize": [2], "copysuccess": [1], "copyfailure": [1], "rewardkey": [1], "codefontsize": [2], "codefontcolor": [1], "fueltankcode": [32] }], [0, "sqh-copy-link-button", { "ishidden": [4], "text": [1], "copysuccess": [1], "copyfailure": [1], "buttoncolor": [1], "textcolor": [1], "sharelink": [32] }], [4, "sqh-global-container", { "background": [1], "loadingcolor": [1], "fontfamily": [1], "maxwidth": [1], "poweredby": [4] }], [0, "sqh-image-component", { "ishidden": [4], "url": [1], "width": [2], "borderradius": [2], "alignment": [1], "css": [1] }], [0, "sqh-partner-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [0, "sqh-stat-component", { "ishidden": [4], "stattype": [1], "statvalue": [1], "statdescription": [1], "statcolor": [1] }], [4, "sqh-stats-container", { "ishidden": [4], "paddingtop": [1], "paddingbottom": [1], "loading": [32], "stats": [32] }, [[0, "statTypeUpdated", "statTypeUpdatedHandler"], [0, "statAdded", "statAddedHandler"]]], [0, "sqh-text-component", { "ishidden": [4], "ismarkdown": [4], "text": [1], "fontfamily": [1], "color": [1], "fontsize": [1], "paddingtop": [1], "paddingbottom": [1], "textalign": [1], "background": [1], "height": [1] }], [0, "sqh-referral-component", { "referral": [16], "referraltype": [1], "referralvariables": [16], "unknownuser": [16], "locale": [1] }], [0, "sqh-share-button", { "displayrule": [1], "text": [1], "backgroundcolor": [1], "textcolor": [1], "icon": [1], "buttonClassName": [1, "button-class-name"], "iconhorizontal": [2], "iconvertical": [2], "iconsize": [2], "type": [1], "url": [1] }]]]], options);
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -2,29 +2,34 @@ import { r as registerInstance, h, g as getElement } from './index-8ea8b6d8.js';
|
|
|
2
2
|
import './_commonjsHelpers-1d681858.js';
|
|
3
3
|
import { A as API, w as widgetIdent } from './WidgetHost-a27e693d.js';
|
|
4
4
|
var closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var CloseButton = /** @class */ (function () {
|
|
6
|
+
function CloseButton(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The text shown inside the close button.
|
|
10
|
+
*
|
|
11
|
+
* @uiName Button Text
|
|
12
|
+
*/
|
|
8
13
|
this.text = "Close";
|
|
9
14
|
}
|
|
10
|
-
|
|
15
|
+
CloseButton.prototype.handleClick = function () {
|
|
11
16
|
API.ui.close();
|
|
12
17
|
};
|
|
13
|
-
|
|
18
|
+
CloseButton.prototype.componentDidLoad = function () {
|
|
14
19
|
var widget = widgetIdent();
|
|
15
20
|
if (widget && widget.engagementMedium != "POPUP") {
|
|
16
21
|
this.closeButton.setAttribute("style", "display:none");
|
|
17
22
|
}
|
|
18
23
|
};
|
|
19
|
-
|
|
24
|
+
CloseButton.prototype.render = function () {
|
|
20
25
|
return (h("span", { class: "close squatch-header-close", "data-close-panel": "#squatch-panel" }, this.text));
|
|
21
26
|
};
|
|
22
|
-
Object.defineProperty(
|
|
27
|
+
Object.defineProperty(CloseButton.prototype, "closeButton", {
|
|
23
28
|
get: function () { return getElement(this); },
|
|
24
29
|
enumerable: false,
|
|
25
30
|
configurable: true
|
|
26
31
|
});
|
|
27
|
-
return
|
|
32
|
+
return CloseButton;
|
|
28
33
|
}());
|
|
29
|
-
|
|
30
|
-
export {
|
|
34
|
+
CloseButton.style = closeButtonCss;
|
|
35
|
+
export { CloseButton as sqh_close_button };
|