@saasquatch/vanilla-components 1.2.5 → 1.2.7
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/LICENSE +21 -21
- package/dist/cjs/{WidgetHost-fce29ef5.js → WidgetHost-71b013eb.js} +195 -195
- package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +147 -147
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/collection/components/copy-button/copy-button.js +22 -22
- package/dist/collection/components/copy-link-button/copy-link-button.js +15 -15
- package/dist/collection/components/global-container/global-container.js +8 -8
- package/dist/collection/components/image-component/image-component.js +10 -10
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +2 -2
- package/dist/collection/components/referral-list/referral-list.js +51 -51
- package/dist/collection/components/share-button/share-button.js +19 -19
- package/dist/collection/components/stat-component/stat-component.js +2 -2
- package/dist/collection/components/stats-container/stats-container.js +4 -4
- package/dist/collection/components/text-component/text-component.js +13 -13
- package/dist/collection/entrypoint.js +34 -34
- package/dist/collection/services/WidgetHost.js +195 -195
- package/dist/esm/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +195 -195
- package/dist/esm/sqh-close-button.entry.js +1 -1
- package/dist/esm/sqh-copy-button_12.entry.js +147 -147
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +1 -1
- package/dist/esm-es5/sqh-copy-button_12.entry.js +2 -2
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/types/saasquatch.d.ts +105 -105
- package/dist/widget-components/entrypoint.js +34 -34
- package/dist/widget-components/{p-50ae8f2b.entry.js → p-366f1663.entry.js} +1 -1
- package/dist/widget-components/{p-131a5c4a.entry.js → p-54ea7a00.entry.js} +1 -1
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-8baa34a0.entry.js → p-71e912a2.entry.js} +6 -6
- package/dist/widget-components/{p-b9fcb846.system.entry.js → p-b17efca4.system.entry.js} +1 -1
- package/dist/widget-components/p-c5f70ddc.system.entry.js +8 -0
- package/dist/widget-components/{p-da180bcd.system.entry.js → p-c8bc8c77.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/package.json +97 -97
- package/readme.md +52 -52
- package/dist/widget-components/p-1b8f2cfc.system.entry.js +0 -8
- /package/dist/esm-es5/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +0 -0
- /package/dist/widget-components/{p-e692beaf.system.js → p-8e232564.system.js} +0 -0
- /package/dist/widget-components/{p-ffeb02d1.js → p-edd43dbc.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
|
-
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
|
-
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
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
|
-
);
|
|
11
|
-
|
|
12
|
-
var parts = scriptElm.src.split("/");
|
|
13
|
-
parts.pop();
|
|
14
|
-
var url = parts.join("/");
|
|
15
|
-
|
|
16
|
-
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
17
|
-
// without the "nomodule" attribute
|
|
18
|
-
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
19
|
-
if (!isSafari10) {
|
|
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");
|
|
24
|
-
doc.head.appendChild(scriptElm);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var scriptElm = doc.createElement("script");
|
|
28
|
-
if (!isSafari10) {
|
|
29
|
-
scriptElm.setAttribute("nomodule", "");
|
|
30
|
-
}
|
|
31
|
-
scriptElm.src = url + "/widget-components.js";
|
|
32
|
-
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
33
|
-
doc.head.appendChild(scriptElm);
|
|
34
|
-
})(document);
|
|
1
|
+
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
|
+
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
|
+
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
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
|
+
);
|
|
11
|
+
|
|
12
|
+
var parts = scriptElm.src.split("/");
|
|
13
|
+
parts.pop();
|
|
14
|
+
var url = parts.join("/");
|
|
15
|
+
|
|
16
|
+
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
17
|
+
// without the "nomodule" attribute
|
|
18
|
+
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
19
|
+
if (!isSafari10) {
|
|
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");
|
|
24
|
+
doc.head.appendChild(scriptElm);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var scriptElm = doc.createElement("script");
|
|
28
|
+
if (!isSafari10) {
|
|
29
|
+
scriptElm.setAttribute("nomodule", "");
|
|
30
|
+
}
|
|
31
|
+
scriptElm.src = url + "/widget-components.js";
|
|
32
|
+
scriptElm.setAttribute("data-stencil-namespace", "widget-components");
|
|
33
|
+
doc.head.appendChild(scriptElm);
|
|
34
|
+
})(document);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as e}from"./p-
|
|
1
|
+
import{r,h as o}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as e}from"./p-edd43dbc.js";const s=class{constructor(o){r(this,o)}componentWillLoad(){return e.graphql.getReferralCode().then(r=>{this.referralcode=r}).catch(r=>{this.onError(r)})}onError(r){console.log("Error loading via GraphQL.",r)}render(){return o("span",null,this.referralcode)}};s.style="sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";export{s as sqh_referral_code}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as e,g as t}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as o,w as a}from"./p-
|
|
1
|
+
import{r as s,h as e,g as t}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as o,w as a}from"./p-edd43dbc.js";const r=class{constructor(e){s(this,e),this.text="Close"}handleClick(){o.ui.close()}componentDidLoad(){const s=a();s&&"POPUP"!=s.engagementMedium&&this.closeButton.setAttribute("style","display:none")}render(){return e("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)}get closeButton(){return t(this)}};r.style="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}";export{r as sqh_close_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-e61a8100.system.js","./p-a846f503.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-
|
|
1
|
+
System.register(["./p-e61a8100.system.js","./p-a846f503.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-c8bc8c77.system",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-b17efca4.system",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-e2b4739f.system",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-c5f70ddc.system",[[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],fontweight:[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]}]]]],t)}))}}}));
|