@saasquatch/vanilla-components 1.2.4-2 → 1.2.4-20
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-71b013eb.js → WidgetHost-cee741d8.js} +772 -615
- package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
- package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +26 -26
- package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +2362 -1121
- package/dist/cjs/sqh-referral-code.cjs.entry.js +23 -23
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +27 -27
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/close-button/close-button.js +70 -70
- package/dist/collection/components/copy-button/copy-button.js +380 -389
- package/dist/collection/components/copy-link-button/copy-link-button.js +230 -233
- package/dist/collection/components/cta-component/cta-component.css +6 -0
- package/dist/collection/components/cta-component/cta-component.js +396 -0
- package/dist/collection/components/global-container/global-container.js +158 -170
- package/dist/collection/components/image-component/image-component.js +175 -175
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +196 -186
- package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +557 -0
- package/dist/collection/components/referral-code/referral-code.js +36 -34
- package/dist/collection/components/referral-component/referral-component.js +255 -255
- package/dist/collection/components/referral-list/referral-list.js +911 -930
- package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
- package/dist/collection/components/share-button/share-button.js +301 -310
- package/dist/collection/components/share-button-container/share-button-container.js +2384 -2470
- package/dist/collection/components/stat-component/stat-component.js +197 -186
- package/dist/collection/components/stats-container/stats-container.js +210 -205
- package/dist/collection/components/text-component/text-component.js +301 -280
- package/dist/collection/global/global.js +4 -4
- package/dist/collection/services/FormatJs.js +15 -15
- package/dist/collection/services/WidgetHost.js +778 -621
- package/dist/collection/utilities.js +81 -81
- package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-6cd6c29a.js} +772 -615
- package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/sqh-close-button.entry.js +26 -26
- package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +2361 -1122
- package/dist/esm/sqh-referral-code.entry.js +23 -23
- package/dist/esm/sqh-rewards-actions.entry.js +27 -27
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-6cd6c29a.js} +9524 -9432
- package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
- package/dist/esm-es5/css-shim-a659079f.js +122 -122
- package/dist/esm-es5/dom-4061ceba.js +468 -468
- package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1471 -1471
- package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +1808 -1758
- package/dist/esm-es5/loader.mjs +11 -11
- package/dist/esm-es5/sqh-close-button.entry.js +35 -35
- package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +10677 -9571
- package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
- package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
- package/dist/esm-es5/widget-components.mjs +6 -6
- package/dist/types/components/close-button/close-button.d.ts +18 -18
- package/dist/types/components/copy-button/copy-button.d.ts +90 -107
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +53 -62
- package/dist/types/components/cta-component/cta-component.d.ts +95 -0
- package/dist/types/components/global-container/global-container.d.ts +39 -47
- package/dist/types/components/image-component/image-component.d.ts +45 -51
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +51 -49
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +94 -0
- package/dist/types/components/referral-code/referral-code.d.ts +12 -10
- package/dist/types/components/referral-component/referral-component.d.ts +46 -46
- package/dist/types/components/referral-list/referral-list.d.ts +234 -249
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
- package/dist/types/components/share-button/share-button.d.ts +77 -82
- package/dist/types/components/share-button-container/share-button-container.d.ts +593 -684
- package/dist/types/components/stat-component/stat-component.d.ts +49 -48
- package/dist/types/components/stats-container/stats-container.d.ts +47 -45
- package/dist/types/components/text-component/text-component.d.ts +73 -81
- package/dist/types/components.d.ts +646 -548
- package/dist/types/global/global.d.ts +4 -4
- package/dist/types/saasquatch.d.ts +105 -103
- package/dist/types/services/FormatJs.d.ts +7 -7
- package/dist/types/services/WidgetHost.d.ts +51 -45
- package/dist/types/utilities.d.ts +7 -7
- package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
- package/dist/widget-components/{p-54ea7a00.entry.js → p-1dfd20e2.entry.js} +1 -1
- package/dist/widget-components/p-24fc4ba9.js +1 -1
- package/dist/widget-components/p-46109683.js +3 -3
- package/dist/widget-components/{p-edd43dbc.js → p-4b1ab75c.js} +68 -3
- package/dist/widget-components/{p-b17efca4.system.entry.js → p-599e6d35.system.entry.js} +1 -1
- package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
- package/dist/widget-components/p-9fcf9906.entry.js +233 -0
- package/dist/widget-components/{p-366f1663.entry.js → p-9ffe6e46.entry.js} +1 -1
- package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
- package/dist/widget-components/p-ad5121cf.system.js +1 -0
- package/dist/widget-components/{p-8e232564.system.js → p-b67d3319.system.js} +2 -2
- package/dist/widget-components/p-cdc72d95.system.entry.js +10 -0
- package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
- package/dist/widget-components/p-eeb2bfd4.system.entry.js +1 -0
- package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
- package/dist/widget-components/p-fbf0c7fe.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 +98 -96
- package/readme.md +52 -52
- package/dist/collection/entrypoint.js +0 -32
- package/dist/widget-components/entrypoint.js +0 -32
- package/dist/widget-components/p-485eaf44.js +0 -1
- package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
- package/dist/widget-components/p-d416634a.entry.js +0 -148
- package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
- package/dist/widget-components/p-e61a8100.system.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-ad5121cf.system.js","./p-aaf44379.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-eeb2bfd4.system",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-599e6d35.system",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-665b8d42.system",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-cdc72d95.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]}],[0,"sqh-cta-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],fontweight:[1],paddingbottom:[1],textalign:[1],background:[1],buttonbackground:[1],height:[1],width:[1],borderradius:[1],url:[1]}],[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-progress-indicator",{ishidden:[4],textcolor:[1],align:[1],progresstype:[1],earned:[1],progress:[1],progresswidth:[1],percentagecolor:[1],percentagesize:[1],progresscolor:[1],stats:[32],rewardStats:[32],progressMessage:[32],rewardComplete:[32],locale:[32],loading:[32]}],[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)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-ad5121cf.system.js","./p-22e300c7.system.js","./p-b67d3319.system.js"],(function(t){"use strict";var e,o,n,s,r;return{setters:[function(t){e=t.r;o=t.h;n=t.g},function(){},function(t){s=t.A;r=t.w}],execute:function(){var c="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}";var u=t("sqh_close_button",function(){function t(t){e(this,t);this.text="Close"}t.prototype.handleClick=function(){s.ui.close()};t.prototype.componentDidLoad=function(){var t=r();if(t&&t.engagementMedium!="POPUP"){this.closeButton.setAttribute("style","display:none")}};t.prototype.render=function(){return o("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)};Object.defineProperty(t.prototype,"closeButton",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());u.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-fbf0c7fe.js";const a=class{constructor(s){t(this,s),this.previoustext="Previous",this.hidetext="Hide",this.nexttext="Next"}render(){return s("div",{class:"squatch-referrals-actions"},s("button",{class:"btn btn-default disabled","data-scroll-element":"#squatch-referrals-scroll","data-scroll-increment":"-3"},this.previoustext),s("button",{class:"btn btn-default","data-close-panel":"#squatch-panel","data-scroll-reset":"#squatch-referrals-scroll"},this.hidetext),s("button",{class:"btn btn-default disabled","data-scroll-element":"#squatch-referrals-scroll","data-scroll-increment":"3"},this.nexttext))}};a.style="sqh-rewards-actions .squatch-referrals-actions{text-align:center}sqh-rewards-actions .squatch-referrals-actions .btn{margin-left:10px;width:120px}sqh-rewards-actions .squatch-referrals-actions .btn:first-child{margin-left:0}@media (max-width: 499px){sqh-rewards-actions .squatch-referrals-actions .btn{font-size:13px;width:85px;padding-left:6px;padding-right:6px;margin-left:7px}}";export{a as sqh_rewards_actions}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t="widget-components";let e,n,l=!1,o=!1,s=!1,r=!1,c=0,i=!1;const f="undefined"!=typeof window?window:{},a=f.CSS,u=f.document||{head:{}},d=f.HTMLElement||class{},p={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),$=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),m=(t,e,n)=>{n&&n.map(([n,l,o])=>{const s=t,r=b(e,o),c=y(n);p.ael(s,l,r,c),(e.o=e.o||[]).push(()=>p.rel(s,l,r,c))})},b=(t,e)=>n=>{256&t.t?t.s[e](n):(t.i=t.i||[]).push([e,n])},y=t=>0!=(2&t),w="http://www.w3.org/1999/xlink",g=new WeakMap,v=t=>"sc-"+t.u,j={},O=t=>"object"==(t=typeof t)||"function"===t,k="undefined"!=typeof Deno,M=!(k||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),S=(k&&Deno,M?process:k&&Deno,M?process:k&&Deno,(t,e,...n)=>{let l=null,o=null,s=!1,r=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!O(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?x(null,l):l),r=s)};if(i(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,C);const f=x(t,null);return f.h=e,c.length>0&&(f.$=c),f.m=o,f}),x=(t,e)=>({t:0,g:t,p:e,v:null,$:null,h:null,m:null}),_={},C={forEach:(t,e)=>t.map(D).forEach(e),map:(t,e)=>t.map(D).map(e).map(E)},D=t=>({vattrs:t.h,vchildren:t.$,vkey:t.j,vname:t.m,vtag:t.g,vtext:t.p}),E=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),S(t.vtag,e,...t.vchildren||[])}const e=x(t.vtag,t.vtext);return e.h=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.m=t.vname,e},N=(t,e,n,l,o,s)=>{if(n!==l){let r=wt(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=T(n),s=T(l);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if(r||"o"!==e[0]||"n"!==e[1]){const i=O(l);if((r||i&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(w,e):t.removeAttribute(e)):(!r||4&s||o)&&!i&&(l=!0===l?"":l,f?t.setAttributeNS(w,e,l):t.setAttribute(e,l))}else e="-"===e[2]?e.slice(3):wt(f,c)?c.slice(2):c[2]+e.slice(3),n&&p.rel(t,e,n,!1),l&&p.ael(t,e,l,!1)}},R=/\s/,T=t=>t?t.split(R):[],L=(t,e,n,l)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.h||j,r=e.h||j;for(l in s)l in r||N(o,l,s[l],void 0,n,e.t);for(l in r)N(o,l,s[l],r[l],n,e.t)},P=(t,o,c)=>{let i,f,a,d=o.$[c],p=0;if(l||(s=!0,"slot"===d.g&&(d.t|=d.$?2:1)),null!==d.p)i=d.v=u.createTextNode(d.p);else if(1&d.t)i=d.v=u.createTextNode("");else{if(r||(r="svg"===d.g),i=d.v=u.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&d.t?"slot-fb":d.g),r&&"foreignObject"===d.g&&(r=!1),L(null,d,r),d.$)for(p=0;p<d.$.length;++p)f=P(t,d,p),f&&i.appendChild(f);"svg"===d.g?r=!1:"foreignObject"===i.tagName&&(r=!0)}return i["s-hn"]=n,3&d.t&&(i["s-sr"]=!0,i["s-cr"]=e,i["s-sn"]=d.m||"",a=t&&t.$&&t.$[c],a&&a.g===d.g&&t.v&&A(t.v,!1)),i},A=(t,e)=>{p.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const o=l[t];o["s-hn"]!==n&&o["s-ol"]&&(H(o).insertBefore(o,F(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),e&&A(o,e)}p.t&=-2},U=(t,e,n,l,o,s)=>{let r,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(r=P(null,n,o),r&&(l[o].v=r,c.insertBefore(r,F(e))))},W=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(o=!0,(s=l.v)["s-ol"]?s["s-ol"].remove():A(s,!0),s.remove())},q=(t,e)=>t.g===e.g&&("slot"!==t.g||t.m===e.m),F=t=>t&&t["s-ol"]||t,H=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,V=(t,e)=>{const n=e.v=t.v,l=t.$,o=e.$,s=e.g,c=e.p;let i;null===c?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||L(t,e,r),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==f?f=e[--c]:null==u?u=l[++r]:null==d?d=l[--a]:q(i,u)?(V(i,u),i=e[++s],u=l[++r]):q(f,d)?(V(f,d),f=e[--c],d=l[--a]):q(i,d)?("slot"!==i.g&&"slot"!==d.g||A(i.v.parentNode,!1),V(i,d),t.insertBefore(i.v,f.v.nextSibling),i=e[++s],d=l[--a]):q(f,u)?("slot"!==i.g&&"slot"!==d.g||A(f.v.parentNode,!1),V(f,u),t.insertBefore(f.v,i.v),f=e[--c],u=l[++r]):(o=P(e&&e[r],n,r),u=l[++r],o&&H(i.v).insertBefore(o,F(i.v)));s>c?U(t,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&W(e,s,c)})(n,l,e,o):null!==o?(null!==t.p&&(n.textContent=""),U(n,null,e,o,0,o.length-1)):null!==l&&W(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(i=n["s-cr"])?i.parentNode.textContent=c:t.p!==c&&(n.data=c)},z=t=>{let e,n,l,o,s,r,c=t.childNodes;for(n=0,l=c.length;n<l;n++)if(e=c[n],1===e.nodeType){if(e["s-sr"])for(s=e["s-sn"],e.hidden=!1,o=0;o<l;o++)if(c[o]["s-hn"]!==e["s-hn"])if(r=c[o].nodeType,""!==s){if(1===r&&s===c[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===r||3===r&&""!==c[o].textContent.trim()){e.hidden=!0;break}z(e)}},B=[],G=t=>{let e,n,l,s,r,c,i=0,f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"]))for(l=n.parentNode.childNodes,s=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(I(n,s)?(r=B.find(t=>t.O===n),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.k=e:B.push({k:e,O:n}),n["s-sr"]&&B.map(t=>{I(t.O,n["s-sn"])&&(r=B.find(t=>t.O===n),r&&!t.k&&(t.k=r.k))})):B.some(t=>t.O===n)||B.push({O:n}));1===e.nodeType&&G(e)}},I=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,J=t=>mt(t).M,K=(t,e,n)=>{const l=J(t);return{emit:t=>Q(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},Q=(t,e,n)=>{const l=p.ce(e,n);return t.dispatchEvent(l),l},X=(t,e)=>{e&&!t.S&&e["s-p"]&&e["s-p"].push(new Promise(e=>t.S=e))},Y=(t,e)=>{if(t.t|=16,!(4&t.t))return X(t,t._),Et(()=>Z(t,e));t.t|=512},Z=(t,e)=>{const n=t.s;let l;return e&&(t.t|=256,t.i&&(t.i.map(([t,e])=>ot(n,t,e)),t.i=null),l=ot(n,"componentWillLoad")),st(l,()=>tt(t,n,e))},tt=(t,r,c)=>{const i=t.M,f=i["s-rc"];c&&(t=>{const e=t.C;((t,e)=>{let n=v(e),l=Ot.get(n);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let e,o=g.get(t=t.head||t);o||g.set(t,o=new Set),o.has(n)||(e=u.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.M.getRootNode(),e)})(t);((t,r)=>{const c=t.M,i=t.C,f=t.D||x(null,null),a=(t=>t&&t.g===_)(r)?r:S(null,null,r);if(n=c.tagName,a.g=null,a.t|=4,t.D=a,a.v=f.v=c,e=c["s-cr"],l=0!=(1&i.t),o=!1,V(f,a),p.t|=1,s){let t,e,n,l,o,s;G(a.v);let r=0;for(;r<B.length;r++)t=B[r],e=t.O,e["s-ol"]||(n=u.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<B.length;r++)if(t=B[r],e=t.O,t.k){for(l=t.k.parentNode,o=t.k.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}o&&z(a.v),p.t&=-2,B.length=0})(t,et(t,r)),f&&(f.map(t=>t()),i["s-rc"]=void 0);{const e=i["s-p"],n=()=>nt(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},et=(t,e)=>{try{e=e.render(),t.t&=-17,t.t|=2}catch(t){gt(t)}return e},nt=t=>{const e=t.M,n=t.s,l=t._;64&t.t||(t.t|=64,rt(e),ot(n,"componentDidLoad"),t.N(e),l||lt()),t.S&&(t.S(),t.S=void 0),512&t.t&&Dt(()=>Y(t,!1)),t.t&=-517},lt=()=>{rt(u.documentElement),p.t|=2,Dt(()=>Q(f,"appload",{detail:{namespace:"widget-components"}}))},ot=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){gt(t)}},st=(t,e)=>t&&t.then?t.then(e):e(),rt=t=>t.classList.add("hydrated"),ct=(t,e,n)=>{if(e.R){t.watchers&&(e.T=t.watchers);const l=Object.entries(e.R),o=t.prototype;if(l.map(([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>mt(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=mt(t),s=o.L.get(e),r=o.t,c=o.s;if(n=((t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.R[e][0]),!(8&r&&void 0!==s||n===s)&&(o.L.set(e,n),c)){if(l.T&&128&r){const t=l.T[e];t&&t.map(t=>{try{c[t](n,s,e)}catch(t){gt(t)}})}2==(18&r)&&Y(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){p.jmp(()=>{const n=e.get(t);this[n]=(null!==l||"boolean"!=typeof this[n])&&l})},t.observedAttributes=l.filter(([t,e])=>15&e[0]).map(([t,n])=>{const l=n[1]||t;return e.set(l,t),l})}}return t},it=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this,l=e.call(n,!1);if(t){let t,e=0;for(;e<n.childNodes.length;e++)t=n.childNodes[e]["s-nr"],t&&(l.__appendChild?l.__appendChild(t.cloneNode(!0)):l.appendChild(t.cloneNode(!0)))}return l}},ft=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=ut(t),n=dt(this.childNodes,e);if(n){const l=pt(n,e),o=l[l.length-1];return o.parentNode.insertBefore(t,o.nextSibling)}return this.__appendChild(t)}},at=(t,e)=>{class n extends Array{item(t){return this[t]}}if(8&e.t){const e=t.__lookupGetter__("childNodes");Object.defineProperty(t,"children",{get(){return this.childNodes.map(t=>1===t.nodeType)}}),Object.defineProperty(t,"childElementCount",{get:()=>t.children.length}),Object.defineProperty(t,"childNodes",{get(){const t=e.call(this);if(0==(1&p.t)&&2&mt(this).t){const e=new n;for(let n=0;n<t.length;n++){const l=t[n]["s-nr"];l&&e.push(l)}return e}return n.from(t)}})}},ut=t=>t["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",dt=(t,e)=>{let n,l=0;for(;l<t.length;l++){if(n=t[l],n["s-sr"]&&n["s-sn"]===e)return n;if(n=dt(n.childNodes,e),n)return n}return null},pt=(t,e)=>{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},ht=(t,e={})=>{const n=[],l=e.exclude||[],o=f.customElements,s=u.head,r=s.querySelector("meta[charset]"),c=u.createElement("style"),i=[];let a,d=!0;Object.assign(p,e),p.l=new URL(e.resourcesUrl||"./",u.baseURI).href,e.syncQueue&&(p.t|=4),t.map(t=>t[1].map(e=>{const s={t:e[0],u:e[1],R:e[2],P:e[3]};s.R=e[2],s.P=e[3],s.T={};const r=s.u,c=class extends HTMLElement{constructor(t){super(t),yt(t=this,s),at(t,s)}connectedCallback(){a&&(clearTimeout(a),a=null),d?i.push(this):p.jmp(()=>(t=>{if(0==(1&p.t)){const e=mt(t),n=e.C,l=()=>{};if(1&e.t)m(t,e,n.P);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=u.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(e,e._=n);break}}n.R&&Object.entries(n.R).map(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),Dt(()=>(async(t,e,n,l,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=jt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.T=o.watchers,ct(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){gt(t)}e.t&=-9,e.t|=128,t()}if(o.style){let t=o.style;const e=v(n);if(!Ot.has(e)){const l=()=>{};((t,e,n)=>{let l=Ot.get(t);$&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,Ot.set(t,l)})(e,t,!!(1&n.t)),l()}}}const s=e._,r=()=>Y(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n))}l()}})(this))}disconnectedCallback(){p.jmp(()=>(()=>{if(0==(1&p.t)){const t=mt(this);t.o&&(t.o.map(t=>t()),t.o=void 0)}})())}forceUpdate(){(()=>{{const t=mt(this);t.M.isConnected&&2==(18&t.t)&&Y(t,!1)}})()}componentOnReady(){return mt(this).A}};it(c.prototype),ft(c.prototype),s.U=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ct(c,s,1)))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),d=!1,i.length?i.map(t=>t.connectedCallback()):p.jmp(()=>a=setTimeout(lt,30))},$t=new WeakMap,mt=t=>$t.get(t),bt=(t,e)=>$t.set(e.s=t,e),yt=(t,e)=>{const n={t:0,M:t,C:e,L:new Map};return n.A=new Promise(t=>n.N=t),t["s-p"]=[],t["s-rc"]=[],m(t,n,e.P),$t.set(t,n)},wt=(t,e)=>e in t,gt=t=>console.error(t),vt=new Map,jt=t=>{const e=t.u.replace(/-/g,"_"),n=t.U,l=vt.get(n);return l?l[e]:__sc_import_widget_components(`./${n}.entry.js`).then(t=>(vt.set(n,t),t[e]),gt)},Ot=new Map,kt=[],Mt=[],St=[],xt=(t,e)=>n=>{t.push(n),i||(i=!0,e&&4&p.t?Dt(Ct):p.raf(Ct))},_t=(t,e)=>{let n=0,l=0;for(;n<t.length&&(l=performance.now())<e;)try{t[n++](l)}catch(t){gt(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},Ct=()=>{c++,(t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){gt(t)}t.length=0})(kt);{const t=2==(6&p.t)?performance.now()+14*Math.ceil(.1*c):1/0;_t(Mt,t),_t(St,t),Mt.length>0&&(St.push(...Mt),Mt.length=0),(i=kt.length+Mt.length+St.length>0)?p.raf(Ct):c=0}},Dt=t=>h().then(t),Et=xt(Mt,!0);export{a as C,d as H,t as N,h as a,ht as b,K as c,u as d,J as g,S as h,p,bt as r,f as w}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./p-
|
|
1
|
+
import{b as e}from"./p-fbf0c7fe.js";import{p as t}from"./p-17d80384.js";import"./p-b18ab5ec.js";t().then(t=>e([["p-1dfd20e2",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-9ffe6e46",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-fb528be6",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-9fcf9906",[[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]}],[0,"sqh-cta-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],fontweight:[1],paddingbottom:[1],textalign:[1],background:[1],buttonbackground:[1],height:[1],width:[1],borderradius:[1],url:[1]}],[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-progress-indicator",{ishidden:[4],textcolor:[1],align:[1],progresstype:[1],earned:[1],progress:[1],progresswidth:[1],percentagecolor:[1],percentagesize:[1],progresscolor:[1],stats:[32],rewardStats:[32],progressMessage:[32],rewardComplete:[32],locale:[32],loading:[32]}],[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));
|
|
@@ -116,7 +116,7 @@ var StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=
|
|
|
116
116
|
|
|
117
117
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
118
118
|
var start = function() {
|
|
119
|
-
var url = new URL('./p-
|
|
119
|
+
var url = new URL('./p-e82def83.system.js', new URL(resourcesUrl));
|
|
120
120
|
System.import(url.href);
|
|
121
121
|
};
|
|
122
122
|
|
package/docs/raisins.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":"0.0.1","modules":[{"tags":[{"tagName":"sqh-close-button","title":"Close Button","attributes":[{"name":"text","type":"string","title":"Button Text","description":"The text shown inside the close button.","default":"Close"}],"exampleGroup":"Common Components","examples":[{"title":"Close Popup Button","content":"<sqh-close-button text=\"Close\"></sqh-close-button>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-copy-button","title":"Copy Button","attributes":[{"name":"backgroundcolor","type":"string","title":"Background Color","description":"Background & border color of the copy button.","uiWidget":"color","format":"color"},{"name":"borderradius","type":"number","title":"Border Radius","description":"Configure border radius with pixel amount"},{"name":"codefontcolor","type":"string","title":"Code Font Color","description":"Text color of the fuel tank code.","uiWidget":"color","format":"color"},{"name":"codefontsize","type":"number","title":"Code Font Size","description":"Font size of the fuel tank code."},{"name":"copyfailure","type":"string","title":"Copy Failure Text","description":"Shown when the button has failed to copy the code to the users clipboard."},{"name":"copysuccess","type":"string","title":"Copy Success Text","description":"Shown when the code is successfully copied to the users clipboard."},{"name":"fontsize","type":"number","title":"Font Size","description":"Font size of the copy button text."},{"name":"ishidden","type":"boolean","title":"Hide Button","description":"Hide or show the component"},{"name":"rewardkey","type":"string","title":"Reward Key","description":"rewardkey is used to get the fuel tank code for a user."},{"name":"text","type":"string","title":"Button Text","description":"Text shown inside the copy button."},{"name":"textcolor","type":"string","title":"Text Color","description":"Color of text inside the copy button.","uiWidget":"color","format":"color"},{"name":"width","type":"number","title":"Max Width","description":"Sets a maximum width on the copy button."}],"exampleGroup":"Common Components","examples":[{"title":"Fuel Tank Copy Button","content":"<sqh-copy-button ishidden=\"false\" copysuccess=\"copied!\" copyfailure=\"Press Ctrl+C to copy\" codefontcolor=\"#000000\" codefontsize=\"14\" text=\"COPY CODE\" fontsize=\"14\" width=\"170\" backgroundcolor=\"#35b21e\" textcolor=\"#ffffff\" borderradius=\"4\" rewardkey=\"referredReward\" codefontsize=\"14\" codefontcolor=\"#000000\"></sqh-copy-button>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-copy-link-button","title":"Copy Link Button","attributes":[{"name":"buttoncolor","type":"string","title":"Button Color","description":"Background & border color of the copy button.","uiWidget":"color","format":"color"},{"name":"copyfailure","type":"string","title":"Copy Failure Text","description":"Shown when the button has failed to copy the code to the users clipboard."},{"name":"copysuccess","type":"string","title":"Copy Success Text","description":"Shown when the code is successfully copied to the users clipboard."},{"name":"ishidden","type":"boolean","title":"Hide Button","description":"Hide or show the component"},{"name":"text","type":"string","title":"Button Text","description":"Text shown inside the copy button."},{"name":"textcolor","type":"string","title":"Text Color","description":"Color of text inside the copy button.","uiWidget":"color","format":"color"}],"exampleGroup":"Common Components","examples":[{"title":"Copy Link Button","content":"<sqh-copy-link-button ishidden=\"false\" copysuccess=\"copied!\" copyfailure=\"Press Ctrl+C to copy\" text=\"Copy\" buttoncolor=\"#5C6164\" textcolor=\"#FFFFFF\"></sqh-copy-link-button>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-global-container","title":"Global Container","slots":[{"name":"","title":"Widget Content"}],"attributes":[{"name":"background","type":"string","title":"Background Color","description":"Configure the background color.","uiWidget":"color","format":"color"},{"name":"fontfamily","type":"string","title":"Font Family","description":"Font family used inside the container.","enum":["Roboto","Artifakt Element","Helvetica Neue,Helvetica,Arial,sans-serif","Lato,sans-serif","Times New Roman","Arial","Courier","Tahoma","Verdana","Georgia"],"enumNames":["Roboto","Artifakt Element","Helvetica Neue","Lato","Times New Roman","Arial","Courier","Tahoma","Verdana","Georgia"]},{"name":"loadingcolor","type":"string","title":"Loading Color","description":"Configure the color of the loading state.","uiWidget":"color","format":"color"},{"name":"maxwidth","type":"string","title":"Max Width","description":"Maximum width on the container."},{"name":"poweredby","type":"boolean","title":"Show Powered By","description":"Show and hide the powered by SaaSquatch link. Can only be disabled on Pro plans."}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-image-component","title":"Image Component","attributes":[{"name":"alignment","type":"string","title":"Alignment","description":"Configure alignment of the image","enum":["left","center","right"],"enumNames":["Left","Center","Right"]},{"name":"borderradius","type":"number","title":"Border Radius","description":"Configure border radius with pixel amount"},{"name":"css","type":"string","title":"CSS","description":"Additional CSS applied to the image element","uiWidget":"textArea"},{"name":"ishidden","type":"boolean","title":"Hide Image","description":"Hide or show the component"},{"name":"url","type":"string","title":"URL","description":"Image link","uiWidget":"imageUpload","format":"url"},{"name":"width","type":"number","title":"Width","description":"Image width"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-partner-stat-component","title":"Partner Stat","attributes":[{"name":"ishidden","type":"boolean","title":"Hide Stat","description":"Hide or show the component"},{"name":"statcolor","type":"string","title":"Stat Color","description":"Color of the stat value and description","uiWidget":"color","format":"color"},{"name":"statdescription","type":"string","title":"Stat Description","description":"Description of the stat"},{"name":"stattype","type":"string","title":"Stat Type","description":"Used to query the stats for a user","uiWidget":"statTypeSelector"},{"name":"statvalue","type":"string","title":"Stat Value","description":"Value of the stat"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-referral-code","title":"Referral Code","attributes":[],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-referral-component","title":"Referral Component","attributes":[{"name":"locale","type":"string","title":"Local","description":"Configure the local"},{"name":"referraltype","type":"\"converted\" | \"pending\" | \"referrer\"","title":"Referral Type","description":"Type of referral"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-referral-list","title":"Referral List","attributes":[{"name":"cancelledcolor","type":"string","title":"Cancelled Color","description":"Color of the cancelled icon and text","uiWidget":"color","format":"color","uiGroup":"Cancelled Rewards"},{"name":"cancelledcontent","type":"string","title":"Cancelled Content","description":"Cancelled text content shown in the user column","uiGroup":"Cancelled Rewards"},{"name":"cancelledvalue","type":"string","title":"Cancelled Value","description":"Cancelled text content shown alongside the icon in the referral column","uiGroup":"Cancelled Rewards"},{"name":"convertedcontent","type":"string","title":"Converted Content","description":"Content shown when a referral is converted","uiGroup":"Converted Referrals"},{"name":"customernotecolor","type":"string","title":"Reward Color","description":"Color of the customer note","uiWidget":"color","format":"color","uiGroup":"Converted Referrals"},{"name":"expiredcolor","type":"string","title":"Expired Color","description":"Color of the expired icon and text","uiWidget":"color","format":"color","uiGroup":"Expired Rewards"},{"name":"expiredcontent","type":"string","title":"Expired Content","description":"Expired content shown in the user column","uiGroup":"Expired Rewards"},{"name":"expiredvalue","type":"string","title":"Expired Value","description":"Expired content shown alongside the icon in the referral column","uiGroup":"Expired Rewards"},{"name":"expiresvalue","type":"string","title":"Expires Value","description":"Reward expiry ICU message","uiGroup":"Expired Rewards"},{"name":"internationalization","type":"boolean","title":"Internationalization","description":"When true, the local gets set by using the value passed to the referral component"},{"name":"ishidden","type":"boolean","title":"Hide Referral List","description":"Hide or show the component"},{"name":"noreferralsyet","type":"string","title":"Empty Referrals Text","description":"Shown when referral list is empty"},{"name":"paginateless","type":"string","title":"Paginate Less Text","description":"Shown inside the paginate less button"},{"name":"paginatemore","type":"string","title":"Paginate More Text","description":"Shown inside the paginate more button"},{"name":"pendingcolor","type":"string","title":"Pending Color","description":"Color of the pending icon and text","uiWidget":"color","format":"color","uiGroup":"Pending Referrals"},{"name":"pendingcontent","type":"string","title":"Pending Content","description":"Pending content shown in the user column","uiGroup":"Pending Referrals"},{"name":"pendingvalue","type":"string","title":"Pending Value","description":"Pending content shown alongside the icon in the referral column","uiGroup":"Pending Referrals"},{"name":"redeemedvalue","type":"string","title":"Redeemed Value","description":"Shown when reward is redeemed","uiGroup":"Converted Referrals"},{"name":"referralnamecolor","type":"string","title":"Referral Name Color","description":"Text color of the referred users name","uiWidget":"color","format":"color"},{"name":"referraltextcolor","type":"string","title":"Referral Text Color","description":"Text color of the referral status","uiWidget":"color","format":"color"},{"name":"referrercontent","type":"string","title":"Referrer Content","description":"Text explaining who referred you to the program","uiGroup":"Referrer"},{"name":"referrervalue","type":"string","title":"Referrer Value","description":"Referred Text shown in reward column","uiGroup":"Referrer"},{"name":"rewardcolor","type":"string","title":"Reward Color","description":"Color of the successful reward icon and the text value","uiWidget":"color","format":"color","uiGroup":"Converted Referrals"},{"name":"showexpiry","type":"boolean","title":"Show Expiry","description":"Show or hide expired rewards"},{"name":"shownotes","type":"boolean","title":"Show Customer Note","description":"Show the customer note for a referral"},{"name":"showreferrer","type":"boolean","title":"Show Referrer","description":"Show or hide the referrer","uiGroup":"Referrer"},{"name":"unknownuser","type":"string","title":"Unknown User Text","description":"Text shown when the referred users name is unknown"},{"name":"usefirstreward","type":"boolean","title":"Use First Reward","description":"Show value of the first earned reward inside the rewards column","uiGroup":"Converted Referrals"},{"name":"valuecontent","type":"string","title":"Value Content","description":"Value shown in the rewards column","uiWidget":"textArea","uiGroup":"Converted Referrals"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-rewards-actions","title":"Reward Actions","attributes":[{"name":"hidetext","type":"string","title":"Hide Button Text","description":"Text inside the hide button","default":"Hide"},{"name":"nexttext","type":"string","title":"Next Button Text","description":"Text inside the next button","default":"Next"},{"name":"previoustext","type":"string","title":"Previous Button Text","description":"Text inside the previous button","default":"Previous"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-share-button","title":"Share Button","attributes":[{"name":"backgroundcolor","type":"string","title":"Share Button Background Color","description":"Background color of the share button","uiWidget":"color","format":"color"},{"name":"button-class-name","type":"string","title":"Share Button Class Name","description":"CSS Class name used to style the share button"},{"name":"displayrule","type":"string","title":"Share Button Display Rule","description":"Show or hide button depending on what type of device the user is on"},{"name":"icon","type":"string","title":"Share Button Icon","description":"Share button icon"},{"name":"iconhorizontal","type":"number","title":"Share Button Icon Horizontal","description":"Number to horizontally align the share button icon"},{"name":"iconsize","type":"number","title":"Share Button Icon Size","description":"Size of the Share button icon"},{"name":"iconvertical","type":"number","title":"Share Button Icon Vertical","description":"Number to vertically align the share button icon"},{"name":"text","type":"string","title":"Share Button Text","description":"Text inside the share button"},{"name":"textcolor","type":"string","title":"Share Button Text Color","description":"Color of the text inside the share button","uiWidget":"color","format":"color"},{"name":"type","type":"string","title":"Share Button Type","description":"Type of the share button"},{"name":"url","type":"string","title":"URL","description":"URL redirect location","uiWidget":"imageUpload","format":"url"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-share-button-container","title":"Share Button Container","attributes":[{"name":"emailbackgroundcolor","type":"string","title":"Email Background Color","description":"Background color of the Email button","uiWidget":"color","format":"color","uiGroup":"Email"},{"name":"emailclass-name","type":"string","title":"Email Class Name","description":"CSS Class name used to style the Email button","default":"email-share","uiGroup":"Email"},{"name":"emaildisplayrule","type":"string","title":"Email Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Email"},{"name":"emailicon","type":"string","title":"Email Icon","description":"Email button icon","default":"mail","uiGroup":"Email"},{"name":"emailiconhorizontal","type":"number","title":"Email Icon Horizontal","description":"Number to horizontally align the Email button icon","uiGroup":"Email"},{"name":"emailiconsize","type":"number","title":"Email Icon Size","description":"Size of the Email button icon","uiGroup":"Email"},{"name":"emailiconvertical","type":"number","title":"Email Icon Vertical","description":"Number to vertically align the Email button icon","uiGroup":"Email"},{"name":"emailtext","type":"string","title":"Email Text","description":"Text inside the Email button","uiGroup":"Email"},{"name":"emailtextcolor","type":"string","title":"Email Text Color","description":"Color of the text inside the Email button","uiWidget":"color","format":"color","uiGroup":"Email"},{"name":"facebookbackgroundcolor","type":"string","title":"Facebook Background Color","description":"Background color of the facebook button","uiWidget":"color","format":"color","uiGroup":"Facebook"},{"name":"facebookclass-name","type":"string","title":"Facebook Class Name","description":"CSS Class name used to style the facebook button","uiGroup":"Facebook"},{"name":"facebookdisplayrule","type":"string","title":"Facebook Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Facebook"},{"name":"facebookicon","type":"string","title":"Facebook Icon","description":"Facebook button icon","default":"facebook","uiGroup":"Facebook"},{"name":"facebookiconhorizontal","type":"number","title":"Facebook Icon Horizontal","description":"Number to horizontally align the facebook button icon","default":9,"uiGroup":"Facebook"},{"name":"facebookiconsize","type":"number","title":"Facebook Icon Size","description":"Size of the facebook button icon","default":1.2,"uiGroup":"Facebook"},{"name":"facebookiconvertical","type":"number","title":"Facebook Icon Vertical","description":"Number to vertically align the facebook button icon","uiGroup":"Facebook"},{"name":"facebooktext","type":"string","title":"Facebook Text","description":"Text inside the facebook button","uiGroup":"Facebook"},{"name":"facebooktextcolor","type":"string","title":"Facebook Text Color","description":"Color of the text inside the facebook button","uiWidget":"color","format":"color","uiGroup":"Facebook"},{"name":"ishidden","type":"boolean","title":"Hide Share Buttons","description":"Hide or show the component"},{"name":"linebackgroundcolor","type":"string","title":"Line Background Color","description":"Background color of the Line button","uiWidget":"color","format":"color","uiGroup":"Line Messenger"},{"name":"lineclass-name","type":"string","title":"Line Class Name","description":"CSS Class name used to style the Line button","uiGroup":"Line Messenger"},{"name":"linedisplayrule","type":"string","title":"Line Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-only","hidden"],"enumNames":["Mobile Only","Hide"],"uiGroup":"Line Messenger"},{"name":"lineicon","type":"string","title":"Line Icon","description":"Line button icon","default":"line","uiGroup":"Line Messenger"},{"name":"lineiconhorizontal","type":"number","title":"Line Icon Horizontal","description":"Number to horizontally align the Line button icon","default":-2,"uiGroup":"Line Messenger"},{"name":"lineiconsize","type":"number","title":"Line Icon Size","description":"Size of the Line button icon","default":2.2,"uiGroup":"Line Messenger"},{"name":"lineiconvertical","type":"number","title":"Line Icon Vertical","description":"Number to vertically align the Line button icon","default":-5,"uiGroup":"Line Messenger"},{"name":"linetext","type":"string","title":"Line Text","description":"Text inside the Line button","uiGroup":"Line Messenger"},{"name":"linetextcolor","type":"string","title":"Line Text Color","description":"Color of the text inside the Line button","uiWidget":"color","format":"color","uiGroup":"Line Messenger"},{"name":"linkedinbackgroundcolor","type":"string","title":"Linkedin Background Color","description":"Background color of the linkedin button","uiWidget":"color","format":"color","uiGroup":"LinkedIn"},{"name":"linkedinclass-name","type":"string","title":"Linkedin Class Name","description":"CSS Class name used to style the Linkedin button","uiGroup":"LinkedIn"},{"name":"linkedindisplayrule","type":"string","title":"Linkedin Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"LinkedIn"},{"name":"linkedinicon","type":"string","title":"Linkedin Icon","description":"Linkedin button icon","default":"linkedin","uiGroup":"LinkedIn"},{"name":"linkediniconhorizontal","type":"number","title":"Linkedin Icon Horizontal","description":"Number to horizontally align the Linkedin button icon","uiGroup":"LinkedIn"},{"name":"linkediniconsize","type":"number","title":"Linkedin Icon Size","description":"Size of the Linkedin button icon","default":1.2,"uiGroup":"LinkedIn"},{"name":"linkediniconvertical","type":"number","title":"Linkedin Icon Vertical","description":"Number to vertically align the Linkedin button icon","uiGroup":"LinkedIn"},{"name":"linkedintext","type":"string","title":"Linkedin Text","description":"Text inside the linkedin button","uiGroup":"LinkedIn"},{"name":"linkedintextcolor","type":"string","title":"Linkedin Text Color","description":"Color of the text inside the Linkedin button","uiWidget":"color","format":"color","uiGroup":"LinkedIn"},{"name":"messengerbackgroundcolor","type":"string","title":"Messenger Background Color","description":"Background color of the Messenger button","uiWidget":"color","format":"color","uiGroup":"Messenger"},{"name":"messengerclass-name","type":"string","title":"Messenger Class Name","description":"CSS Class name used to style the Messenger button","uiGroup":"Messenger"},{"name":"messengerdisplayrule","type":"string","title":"Messenger Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Messenger"},{"name":"messengericon","type":"string","title":"Messenger Icon","description":"Messenger button icon","default":"messenger","uiGroup":"Messenger"},{"name":"messengericonhorizontal","type":"number","title":"Messenger Icon Horizontal","description":"Number to horizontally align the Messenger button icon","default":7,"uiGroup":"Messenger"},{"name":"messengericonsize","type":"number","title":"Messenger Icon Size","description":"Size of the Messenger button icon","default":1.4,"uiGroup":"Messenger"},{"name":"messengericonvertical","type":"number","title":"Messenger Icon Vertical","description":"Number to vertically align the Messenger button icon","default":3,"uiGroup":"Messenger"},{"name":"messengertext","type":"string","title":"Messenger Text","description":"Text inside the Messenger button","uiGroup":"Messenger"},{"name":"messengertextcolor","type":"string","title":"Messenger Text Color","description":"Color of the text inside the Messenger button","uiWidget":"color","format":"color","uiGroup":"Messenger"},{"name":"pinterestbackgroundcolor","type":"string","title":"Pinterest Background Color","description":"Background color of the Pinterest button","uiWidget":"color","format":"color","uiGroup":"Pinterest"},{"name":"pinterestclass-name","type":"string","title":"Pinterest Class Name","description":"CSS Class name used to style the Pinterest button","uiGroup":"Pinterest"},{"name":"pinterestdisplayrule","type":"string","title":"Pinterest Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Pinterest"},{"name":"pinteresticon","type":"string","title":"Pinterest Icon","description":"Pinterest button icon","default":"pinterest","uiGroup":"Pinterest"},{"name":"pinteresticonhorizontal","type":"number","title":"Pinterest Icon Horizontal","description":"Number to horizontally align the Pinterest button icon","default":9,"uiGroup":"Pinterest"},{"name":"pinteresticonsize","type":"number","title":"Pinterest Icon Size","description":"Size of the Pinterest button icon","default":1.2,"uiGroup":"Pinterest"},{"name":"pinteresticonvertical","type":"number","title":"Pinterest Icon Vertical","description":"Number to vertically align the Pinterest button icon","default":4,"uiGroup":"Pinterest"},{"name":"pinteresttext","type":"string","title":"Pinterest Text","description":"Text inside the Pinterest button","uiGroup":"Pinterest"},{"name":"pinteresttextcolor","type":"string","title":"Pinterest Text Color","description":"Color of the text inside the Pinterest button","uiWidget":"color","format":"color","uiGroup":"Pinterest"},{"name":"smsbackgroundcolor","type":"string","title":"SMS Background Color","description":"Background color of the SMS button","uiWidget":"color","format":"color","uiGroup":"SMS"},{"name":"smsclass-name","type":"string","title":"SMS Class Name","description":"CSS Class name used to style the SMS button","uiGroup":"SMS"},{"name":"smsdisplayrule","type":"string","title":"SMS Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-only","hidden"],"enumNames":["Mobile Only","Hide"],"uiGroup":"SMS"},{"name":"smsicon","type":"string","title":"SMS Icon","description":"SMS button icon","default":"chat","uiGroup":"SMS"},{"name":"smsiconhorizontal","type":"number","title":"SMS Icon Horizontal","description":"Number to horizontally align the SMS button icon","uiGroup":"SMS"},{"name":"smsiconsize","type":"number","title":"SMS Icon Size","description":"Size of the SMS button icon","uiGroup":"SMS"},{"name":"smsiconvertical","type":"number","title":"SMS Icon Vertical","description":"Number to vertically align the SMS button icon","uiGroup":"SMS"},{"name":"smstext","type":"string","title":"SMS Text","description":"Text inside the SMS button","uiGroup":"SMS"},{"name":"smstextcolor","type":"string","title":"SMS Text Color","description":"Color of the text inside the SMS button","uiWidget":"color","format":"color","uiGroup":"SMS"},{"name":"twitterbackgroundcolor","type":"string","title":"Twitter Background Color","description":"Background color of the twitter button","uiWidget":"color","format":"color","uiGroup":"Twitter"},{"name":"twitterclass-name","type":"string","title":"Twitter Class Name","description":"CSS Class name used to style the twitter button","uiGroup":"Twitter"},{"name":"twitterdisplayrule","type":"string","title":"Twitter Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Twitter"},{"name":"twittericon","type":"string","title":"Twitter Icon","description":"Twitter button icon","default":"twitter","uiGroup":"Twitter"},{"name":"twittericonhorizontal","type":"number","title":"Twitter Icon Horizontal","description":"Number to horizontally align the twitter button icon","default":9,"uiGroup":"Twitter"},{"name":"twittericonsize","type":"number","title":"Twitter Icon Size","description":"Size of the twitter button icon","default":1.2,"uiGroup":"Twitter"},{"name":"twittericonvertical","type":"number","title":"Twitter Icon Vertical","description":"Number to vertically align the twitter button icon","uiGroup":"Twitter"},{"name":"twittertext","type":"string","title":"Twitter Text","description":"Text inside the twitter button","uiGroup":"Twitter"},{"name":"twittertextcolor","type":"string","title":"Twitter Text Color","description":"Color of the text inside the twitter button","uiWidget":"color","format":"color","uiGroup":"Twitter"},{"name":"whatsappbackgroundcolor","type":"string","title":"WhatsApp Background Color","description":"Background color of the WhatsApp button","uiWidget":"color","format":"color","uiGroup":"WhatsApp"},{"name":"whatsappclass-name","type":"string","title":"WhatsApp Class Name","description":"CSS Class name used to style the WhatsApp button","uiGroup":"WhatsApp"},{"name":"whatsappdisplayrule","type":"string","title":"WhatsApp Display Rule","description":"Show and hide button depending on what type of device the user is on","enum":["mobile-only","hidden"],"enumNames":["Mobile Only","Hide"],"uiGroup":"WhatsApp"},{"name":"whatsappicon","type":"string","title":"WhatsApp Icon","description":"WhatsApp button icon","default":"whatsapp","uiGroup":"WhatsApp"},{"name":"whatsappiconhorizontal","type":"number","title":"WhatsApp Icon Horizontal","description":"Number to horizontally align the WhatsApp button icon","default":7,"uiGroup":"WhatsApp"},{"name":"whatsappiconsize","type":"number","title":"WhatsApp Icon Size","description":"Size of the WhatsApp button icon","default":1.4,"uiGroup":"WhatsApp"},{"name":"whatsappiconvertical","type":"number","title":"WhatsApp Icon Vertical","description":"Number to vertically align the WhatsApp button icon","default":2,"uiGroup":"WhatsApp"},{"name":"whatsapptext","type":"string","title":"WhatsApp Text","description":"Text inside the WhatsApp button","uiGroup":"WhatsApp"},{"name":"whatsapptextcolor","type":"string","title":"WhatsApp Text Color","description":"Color of the text inside the WhatsApp button","default":"#fff","uiWidget":"color","format":"color","uiGroup":"WhatsApp"}],"exampleGroup":"Sharing","examples":[{"title":"Share Button Group","content":"<sqh-share-button-container ishidden=\"false\" emaildisplayrule=\"mobile-and-desktop\" emailtext=\"Email\" emailtextcolor=\"#ffffff\" emailbackgroundcolor=\"#4b4d50\" facebookdisplayrule=\"mobile-and-desktop\" facebooktext=\"Facebook\" facebooktextcolor=\"#ffffff\" facebookbackgroundcolor=\"#234079\" twitterdisplayrule=\"mobile-and-desktop\" twittertext=\"Twitter\" twittertextcolor=\"#ffffff\" twitterbackgroundcolor=\"#4797d2\" smsdisplayrule=\"mobile-only\" smstext=\"SMS\" smstextcolor=\"#ffffff\" smsbackgroundcolor=\"#7bbf38\" whatsappdisplayrule=\"mobile-only\" whatsapptext=\"Whatspp\" whatsapptextcolor=\"#ffffff\" whatsappbackgroundcolor=\"#25D366\" linkedindisplayrule=\"hidden\" linkedintext=\"LinkedIn\" linkedintextcolor=\"#ffffff\" linkedinbackgroundcolor=\"#0084b9\" pinterestdisplayrule=\"hidden\" pinteresttext=\"Pinterest\" pinteresttextcolor=\"#ffffff\" pinterestbackgroundcolor=\"#cb2027\" messengerdisplayrule=\"hidden\" messengertext=\"Messenger\" messengertextcolor=\"#ffffff\" messengerbackgroundcolor=\"#0084ff\" linedisplayrule=\"mobile-only\" linetext=\"Line Messenger\" linetextcolor=\"#ffffff\" linebackgroundcolor=\"#00c300\"></sqh-share-button-container>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-stat-component","title":"Stat Component","attributes":[{"name":"ishidden","type":"boolean","title":"Hide Stat","description":"Hide or show the component"},{"name":"statcolor","type":"string","title":"Stat Color","description":"Text color of the stat","uiWidget":"color","format":"color"},{"name":"statdescription","type":"string","title":"Stat Description","description":"Description shown underneath stat value"},{"name":"stattype","type":"string","title":"Stat Type","description":"Type of stat being displayed. e.g /rewardsCount","uiWidget":"statTypeSelector"},{"name":"statvalue","type":"string","title":"Stat Value","description":"Value shown inside stat"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-stats-container","title":"Stats Container","slots":[{"name":"","title":"Stats"}],"attributes":[{"name":"ishidden","type":"boolean","title":"Is Hidden","description":"Hide the component","default":false},{"name":"paddingbottom","type":"string","title":"Padding Bottom","description":"Configure the padding bottom of the container"},{"name":"paddingtop","type":"string","title":"Padding Top","description":"Configure the padding top of the container"}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-text-component","title":"Text Component","attributes":[{"name":"background","type":"string","title":"Background","description":"Background the container, color or url"},{"name":"color","type":"string","title":"Color","description":"Color of the text","uiWidget":"color","format":"color"},{"name":"fontfamily","type":"string","title":"Font Family","description":"Font family of the text"},{"name":"fontsize","type":"string","title":"Font Size","description":"Size of the text"},{"name":"height","type":"string","title":"Height","description":"Height of the container"},{"name":"ishidden","type":"boolean","title":"Hide Text","description":"Hide or show the component"},{"name":"ismarkdown","type":"boolean","title":"Is Markdown","description":"Compiles plain text into markdown"},{"name":"paddingbottom","type":"string","title":"Padding Bottom","description":"Bottom padding on text"},{"name":"paddingtop","type":"string","title":"Padding Top","description":"Top padding on text"},{"name":"text","type":"string","title":"Text","description":"The text content"},{"name":"textalign","type":"string","title":"Text Align","description":"Text alignment","enum":["left","center","right"],"enumNames":["Left","Center","Right"]}],"exampleGroup":"Common Components","examples":[{"title":"Header Text","content":"<sqh-text-component sqhheader=\"true\" ishidden=\"false\" ismarkdown=\"false\" text=\"Give $10 and Get $10!\" color=\"#4486E1\" fontsize=\"30\" textalign=\"center\" paddingtop=\"30\" paddingbottom=\"10\"></sqh-text-component>"},{"title":"Paragraph Text","content":"<sqh-text-component sqhbody=\"true\" ishidden=\"false\" ismarkdown=\"true\" text=\"Give a friend a $10 and receive $10 for yourself when they purchase.<br/><br/>Share the link below or use the code **<sqh-referral-code />**\" color=\"#000000\" fontsize=\"13\" textalign=\"center\" paddingtop=\"5\" paddingbottom=\"20\"></sqh-text-component>"}],"canvasRenderer":"always-replace"}]}]}
|
|
1
|
+
{"schemaVersion":"0.0.1","modules":[{"tags":[{"tagName":"sqh-close-button","title":"Close Button","attributes":[{"name":"text","type":"string","title":"Button Text","description":"The text shown inside the close button.","default":"Close","required":false}],"exampleGroup":"Common Components","examples":[{"title":"Close Popup Button","content":"<sqh-close-button text=\"Close\"></sqh-close-button>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-copy-button","title":"Copy Button","attributes":[{"name":"backgroundcolor","type":"string","title":"Button Color","description":"","default":"#35b21e","uiWidget":"color","required":false},{"name":"borderradius","type":"number","title":"Border Radius","description":"Define the radius of the corners with a pixel amount.","default":"4","required":false},{"name":"codefontcolor","type":"string","title":"Fuel Tank Code Color","description":"","default":"#000000","uiWidget":"color","required":false},{"name":"codefontsize","type":"number","title":"Code Font Size","description":"Font size of the fuel tank code.","default":"14","required":false},{"name":"copyfailure","type":"string","title":"Copy Failure Text","description":"Shown when the button has failed to copy the code to the users clipboard.","default":"Press Ctrl+C to copy","required":false},{"name":"copysuccess","type":"string","title":"Copy Success Text","description":"Shown when the code is successfully copied to the users clipboard.","default":"copied!","required":false},{"name":"fontsize","type":"number","title":"Font Size","description":"","default":"14","required":false},{"name":"rewardkey","type":"string","title":"Reward Key","description":"The rewardKey of a fuel tank reward. This is used to get the fuel tank code for a user.","default":"referredReward","required":false},{"name":"text","type":"string","title":"Button Text","description":"","default":"COPY CODE","required":false},{"name":"textcolor","type":"string","title":"Button Text Color","description":"","default":"#ffffff","uiWidget":"color","required":false},{"name":"width","type":"number","title":"Button Max Width","description":"","default":"170","required":false}],"exampleGroup":"Common Components","examples":[{"title":"Fuel Tank Copy Button","content":"<sqh-copy-button ishidden=\"false\" copysuccess=\"copied!\" copyfailure=\"Press Ctrl+C to copy\" codefontcolor=\"#000000\" codefontsize=\"14\" text=\"COPY CODE\" fontsize=\"14\" width=\"170\" backgroundcolor=\"#35b21e\" textcolor=\"#ffffff\" borderradius=\"4\" rewardkey=\"referredReward\" codefontsize=\"14\" codefontcolor=\"#000000\"></sqh-copy-button>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-copy-link-button","title":"Copy Link Button","attributes":[{"name":"buttoncolor","type":"string","title":"Button Color","description":"","default":"#5C6164","uiWidget":"color","required":false},{"name":"copyfailure","type":"string","title":"Copy Failure Text","description":"Shown when the button has failed to copy the code to the users clipboard.","default":"Press Ctrl+C to copy","required":false},{"name":"copysuccess","type":"string","title":"Copy Success Text","description":"Shown when the code is successfully copied to the users clipboard.","default":"copied!","required":false},{"name":"text","type":"string","title":"Button Text","description":"","default":"Copy","required":false},{"name":"textcolor","type":"string","title":"Button Text Color","description":"","default":"#FFFFFF","uiWidget":"color","required":false}],"exampleGroup":"Common Components","examples":[{"title":"Copy Link Button","content":"<sqh-copy-link-button ishidden=\"false\" copysuccess=\"copied!\" copyfailure=\"Press Ctrl+C to copy\" text=\"Copy\" buttoncolor=\"#5C6164\" textcolor=\"#FFFFFF\"></sqh-copy-link-button>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-cta-component","title":"Call To Action","attributes":[{"name":"background","type":"string","title":"Container Background Color","description":"","uiWidget":"color","required":false},{"name":"borderradius","type":"string","title":"Border Radius","description":"Define the border radius of the button with a pixel amount.","default":"8","uiWidget":"number","required":false},{"name":"buttonbackground","type":"string","title":"Button Color","description":"","default":"#F5A100","uiWidget":"color","required":false},{"name":"color","type":"string","title":"Text Color","description":"","uiWidget":"color","required":false},{"name":"fontfamily","type":"string","title":"Font Family","description":"","required":false},{"name":"fontsize","type":"string","title":"Font Size","description":"Define the font size of the button text with pixel amount.","required":false},{"name":"fontweight","type":"string","title":"Font Weight","description":"Define the font weight of the button text.","required":false},{"name":"height","type":"string","title":"Button Height","description":"Define the height of the container with a pixel amount.","required":false},{"name":"ishidden","type":"boolean","title":"Hide Text","description":"","required":false},{"name":"ismarkdown","type":"boolean","title":"Use Markdown","description":"Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.","required":false},{"name":"paddingbottom","type":"string","title":"Padding Bottom","description":"Define the bottom padding with a pixel amount.","required":false},{"name":"paddingtop","type":"string","title":"Padding Top","description":"Define the top padding with a pixel amount.","required":false},{"name":"text","type":"string","title":"Button Text","description":"","required":false},{"name":"textalign","type":"string","title":"Button Alignment","description":"","enum":["left","center","right"],"enumNames":["Left","Center","Right"],"required":false},{"name":"url","type":"string","title":"Button Link","description":"","required":false},{"name":"width","type":"string","title":"Button Width","description":"Define the width of the button with a pixel amount.","required":false}],"examples":[]},{"tagName":"sqh-global-container","title":"Global Container","slots":[{"name":"","title":"Widget Content"}],"attributes":[{"name":"background","type":"string","title":"Background Color","description":"","default":"#ffffff","uiWidget":"color","required":false},{"name":"fontfamily","type":"string","title":"Font Family","description":"A font from the Google Fonts library used inside the container.","default":"Roboto","required":false},{"name":"loadingcolor","type":"string","title":"Loading Color","description":"The background colour of the component while in the loading state.","uiWidget":"color","required":false},{"name":"maxwidth","type":"string","title":"Container Max Width","description":"","required":false},{"name":"poweredby","type":"boolean","title":"Show Powered By","description":"Show the Powered by SaaSquatch link. This can only be disabled on Pro plans.","required":false}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-image-component","title":"Image Component","attributes":[{"name":"alignment","type":"string","title":"Horizontal Alignment","description":"","default":"center","enum":["left","center","right"],"enumNames":["Left","Center","Right"],"required":false},{"name":"borderradius","type":"number","title":"Border Radius","description":"Define the radius of the corners with a pixel amount.","required":false},{"name":"css","type":"string","title":"CSS","description":"Additional CSS applied to the image element","default":"padding-top: 38px; padding-bottom: 7px;","uiWidget":"textArea","required":false},{"name":"url","type":"string","title":"Image URL","description":"","uiWidget":"imageUpload","required":false},{"name":"width","type":"number","title":"Width","description":"Define the width of the image with a pixel amount.","required":false}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-partner-stat-component","title":"Partner Stat","attributes":[{"name":"statcolor","type":"string","title":"Color","description":"Color of the stat value and description","uiWidget":"color","required":false},{"name":"statdescription","type":"string","title":"Description","description":"","required":false},{"name":"stattype","type":"string","title":"Stat Type","description":"Determines what type of stat is displayed. Manual paths are also supported.","uiWidget":"statTypeSelectorWidget","minLength":1,"required":true}],"exampleGroup":"Statistics","examples":[{"title":"Pending CASH/CAD","content":"<sqh-partner-stat-component statcolor=\"#000000\" stattype=\"/rewardBalance/CREDIT/CASH_CAD/prettyPendingCredit\" statdescription=\"Pending Balance\" paddingtop=\"10\" paddingbottom=\"10\"></sqh-partner-stat-component>"},{"title":"Available CASH/CAD","content":"<sqh-partner-stat-component stattype=\"/rewardBalance/CREDIT/CASH_CAD/prettyValue\" statdescription=\"Available Balance\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#4CAF50\"></sqh-partner-stat-component>"},{"title":"Redeemed CASH/CAD","content":"<sqh-partner-stat-component stattype=\"/rewardBalance/CREDIT/CASH_CAD/prettyRedeemedCredit\" statdescription=\"Redeemed Balance\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#000000\"></sqh-partner-stat-component>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-progress-indicator","title":"Progress Indicator","attributes":[{"name":"earned","type":"string","title":"Credit Earned Text","description":"Text displayed before a user’s credit earned amount.","required":false},{"name":"ishidden","type":"boolean","title":"Hide Component","description":"","default":false,"required":false},{"name":"percentagecolor","type":"string","title":"Percentage Text Color","description":"","uiWidget":"color","required":false},{"name":"percentagesize","type":"string","title":"Percentage Text Size","description":"Define the font size of the percentage text in a pixel amount","required":false},{"name":"progress","type":"string","title":"Progress Text","description":"Text displayed below the completion percentage.","required":false},{"name":"progresscolor","type":"string","title":"Progress Color","description":"","uiWidget":"color","required":false},{"name":"progresstype","type":"string","title":"Indicator Icon","description":"The type of icon used to display a user’s progress.","enum":["Path"],"enumNames":["Path"],"required":false},{"name":"progresswidth","type":"string","title":"Progress Width","description":"Width of the progress bar.","required":false},{"name":"textcolor","type":"string","title":"Text Color","description":"","uiWidget":"color","required":false}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-referral-code","title":"Referral Code","attributes":[],"exampleGroup":"Referrals","examples":[{"title":"Referral Code","content":"<sqh-referral-code />"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-referral-component","title":"Referral Component","attributes":[{"name":"locale","type":"string","title":"Local","description":"Configure the local","required":false},{"name":"referraltype","type":"\"converted\" | \"pending\" | \"referrer\"","title":"Referral Type","description":"Type of referral","required":false}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-referral-list","title":"Referral List","attributes":[{"name":"cancelledcolor","type":"string","title":"Cancelled Color","description":"Color of the cancelled icon and text in the rewards column.","default":"#C81D05","uiWidget":"color","uiGroup":"Cancelled Rewards","required":false},{"name":"cancelledcontent","type":"string","title":"Cancelled Referral Description","description":"Content shown in the referral column for a cancelled reward.","default":"Signed up, referred {date}","uiGroup":"Cancelled Rewards","required":false},{"name":"cancelledvalue","type":"string","title":"Cancelled Reward Text","description":"Text shown alongside the icon in the rewards column for a cancelled reward.","default":"Cancelled Reward","uiGroup":"Cancelled Rewards","required":false},{"name":"convertedcontent","type":"string","title":"Converted Description","description":"Description shown in the referral column when a referral is converted.","default":"Signed up, referred {date}","uiGroup":"Converted Referrals","required":false},{"name":"customernotecolor","type":"string","title":"Customer Note Color","description":"","uiWidget":"color","uiGroup":"Converted Referrals","required":false},{"name":"expiredcolor","type":"string","title":"Expired Color","description":"Color of the expired reward icon and text in the rewards column.","default":"lightgray","uiWidget":"color","uiGroup":"Expired Rewards","required":false},{"name":"expiredcontent","type":"string","title":"Expired Description","description":"Expired text shown in the referral column.","default":"Signed up, referred {date}","uiGroup":"Expired Rewards","required":false},{"name":"expiredvalue","type":"string","title":"Expired Text","description":"Expired text shown alongside the icon in the rewards column.","default":"Expired Reward","uiGroup":"Expired Rewards","required":false},{"name":"expiresvalue","type":"string","title":"Expiring Text","description":"ICU message shown in the rewards column for expiring rewards. See [ICU messages](https://unicode-org.github.io/icu/userguide/format_parse/messages/) for more details.","uiGroup":"Expired Rewards","required":false},{"name":"internationalization","type":"boolean","title":"Internationalization","description":"Use the value passed to the referral component to set the locale of the user.","required":false},{"name":"noreferralsyet","type":"string","title":"Empty Referrals Text","description":"Shown when referral list is empty.","default":"No Referrals Yet...","required":false},{"name":"paginateless","type":"string","title":"Paginate Less Text","description":"Shown inside the paginate less button.","default":"Previous","required":false},{"name":"paginatemore","type":"string","title":"Paginate More Text","description":"Shown inside the paginate more button.","default":"View More","required":false},{"name":"pendingcolor","type":"string","title":"Pending Color","description":"Color of the pending reward icon and text in the rewards column.","default":"lightgray","uiWidget":"color","uiGroup":"Pending Referrals","required":false},{"name":"pendingcontent","type":"string","title":"Pending Description","description":"Pending description shown in the referral column.","default":"Trial user, referred {date}","uiGroup":"Pending Referrals","required":false},{"name":"pendingvalue","type":"string","title":"Pending Text","description":"Pending text shown alongside the icon in the rewards column.","default":"Referral pending","uiGroup":"Pending Referrals","required":false},{"name":"redeemedvalue","type":"string","title":"Redeemed Text","description":"Shown when reward is redeemed.","default":"Redeemed","uiGroup":"Converted Referrals","required":false},{"name":"referralnamecolor","type":"string","title":"Referral Name Color","description":"Text color of the referred user's name.","default":"darkslategray","uiWidget":"color","required":false},{"name":"referraltextcolor","type":"string","title":"Referral Status Text Color","description":"","default":"lightgray","uiWidget":"color","required":false},{"name":"referrercontent","type":"string","title":"Referrer Description","description":"Text explaining who referred you to the program.","default":"Referred you {date}","uiGroup":"Referrer","required":false},{"name":"referrervalue","type":"string","title":"Referrer Text","description":"Referred Text shown in reward column.","default":"Referred","uiGroup":"Referrer","required":false},{"name":"rewardcolor","type":"string","title":"Reward Color","description":"Color of the successful reward icon and text in the rewards column.","default":"#4BB543","uiWidget":"color","uiGroup":"Converted Referrals","required":false},{"name":"showexpiry","type":"boolean","title":"Show Expired Rewards","description":"","required":false},{"name":"shownotes","type":"boolean","title":"Show Customer Note","description":"","required":false},{"name":"showreferrer","type":"boolean","title":"Show Referred By","description":"Show referral and reward information on who referred you.","uiGroup":"Referrer","required":false},{"name":"unknownuser","type":"string","title":"Unknown User Text","description":"Text shown when the referred user's name is unknown.","default":"Your Friend","required":false},{"name":"usefirstreward","type":"boolean","title":"Use First Reward","description":"Show the value of the first earned reward inside the rewards column.","uiGroup":"Converted Referrals","required":false},{"name":"valuecontent","type":"string","title":"Value Content","description":"ICU message shown in the rewards column. See [ICU messages](https://unicode-org.github.io/icu/userguide/format_parse/messages/) for more details.","default":"and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}","uiWidget":"textArea","uiGroup":"Converted Referrals","required":false}],"exampleGroup":"Referrals","examples":[{"title":"Referral List","content":"<sqh-referral-list ishidden=\"false\" showreferrer=\"true\" usefirstreward=\"false\" referralnamecolor=\"darkslategray\" referraltextcolor=\"lightgray\" rewardcolor=\"#4BB543\" pendingcolor=\"lightgray\" pendingvalue=\"Reward Pending\" referrervalue=\"Referred\" referrercontent=\"Referred you {date}\" convertedcontent=\"Signed up, referred {date}\" pendingcontent=\"Trial user, referred {date}\" pendingvalue=\"Referral pending\" valuecontent=\"and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}\" expiredcolor=\"lightgray\" expiredvalue=\"Expired Reward\" expiredcontent=\"Signed up, referred {date}\" cancelledcolor=\"#C81D05\" cancelledvalue=\"Cancelled Reward\" cancelledcontent=\"Signed up, referred {date}\" paginatemore=\"View More\" paginateless=\"Previous\" noreferralsyet=\"No Referrals Yet...\" unknownuser=\"Your Friend\"></sqh-referral-list>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-rewards-actions","title":"Reward Actions","attributes":[{"name":"hidetext","type":"string","title":"Hide Button Text","description":"Text inside the hide button","default":"Hide","required":false},{"name":"nexttext","type":"string","title":"Next Button Text","description":"Text inside the next button","default":"Next","required":false},{"name":"previoustext","type":"string","title":"Previous Button Text","description":"Text inside the previous button","default":"Previous","required":false}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-share-button","title":"Share Button","attributes":[{"name":"backgroundcolor","type":"string","title":"Share Button Background Color","description":"Background color of the share button","uiWidget":"color","required":false},{"name":"button-class-name","type":"string","title":"Share Button Class Name","description":"CSS Class name used to style the share button","required":false},{"name":"displayrule","type":"string","title":"Share Button Display Rule","description":"Show or hide button depending on what type of device the user is on","required":false},{"name":"icon","type":"string","title":"Share Button Icon","description":"Full list of valid icon names available in the [Shoelace Icon Library](https://shoelace.style/components/icon). This value is case sensitive.","required":false},{"name":"iconhorizontal","type":"number","title":"Share Button Icon Horizontal","description":"Number to horizontally align the share button icon","required":false},{"name":"iconsize","type":"number","title":"Share Button Icon Size","description":"Size of the Share button icon in em units","required":false},{"name":"iconvertical","type":"number","title":"Share Button Icon Vertical","description":"Number to vertically align the share button icon","required":false},{"name":"text","type":"string","title":"Share Button Text","description":"Text inside the share button","required":false},{"name":"textcolor","type":"string","title":"Share Button Text Color","description":"Color of the text inside the share button","uiWidget":"color","required":false},{"name":"type","type":"string","title":"Share Button Type","description":"","required":false},{"name":"url","type":"string","title":"URL","description":"URL redirect location","uiWidget":"imageUpload","required":false}],"examples":[],"canvasRenderer":"always-replace"},{"tagName":"sqh-share-button-container","title":"Share Button Container","attributes":[{"name":"emailbackgroundcolor","type":"string","title":"Email Background Color","description":"Background color of the Email button","default":"#4b4d50","uiWidget":"color","uiGroup":"Email","required":false},{"name":"emailclass-name","type":"string","title":"Email Class Name","description":"CSS class name for additional styling.","default":"email-share","uiGroup":"Email","required":false},{"name":"emaildisplayrule","type":"string","title":"Email Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"mobile-and-desktop","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Email","required":false},{"name":"emailicon","type":"string","title":"Email Icon","description":"","default":"mail","uiGroup":"Email","required":false},{"name":"emailiconhorizontal","type":"number","title":"Email Icon Horizontal","description":"Number to horizontally align the Email button icon","uiGroup":"Email","required":false},{"name":"emailiconsize","type":"number","title":"Email Icon Size","description":"","uiGroup":"Email","required":false},{"name":"emailiconvertical","type":"number","title":"Email Icon Vertical","description":"Number to vertically align the Email button icon","uiGroup":"Email","required":false},{"name":"emailtext","type":"string","title":"Email Text","description":"","default":"Email","uiGroup":"Email","required":false},{"name":"emailtextcolor","type":"string","title":"Email Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"Email","required":false},{"name":"facebookbackgroundcolor","type":"string","title":"Facebook Background Color","description":"Background color of the facebook button","default":"#234079","uiWidget":"color","uiGroup":"Facebook","required":false},{"name":"facebookclass-name","type":"string","title":"Facebook Class Name","description":"CSS class name for additional styling.","uiGroup":"Facebook","required":false},{"name":"facebookdisplayrule","type":"string","title":"Facebook Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"mobile-and-desktop","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Facebook","required":false},{"name":"facebookicon","type":"string","title":"Facebook Icon","description":"","default":"facebook","uiGroup":"Facebook","required":false},{"name":"facebookiconhorizontal","type":"number","title":"Facebook Icon Horizontal","description":"Number to horizontally align the facebook button icon","default":9,"uiGroup":"Facebook","required":false},{"name":"facebookiconsize","type":"number","title":"Facebook Icon Size","description":"","default":1.2,"uiGroup":"Facebook","required":false},{"name":"facebookiconvertical","type":"number","title":"Facebook Icon Vertical","description":"Number to vertically align the facebook button icon","uiGroup":"Facebook","required":false},{"name":"facebooktext","type":"string","title":"Facebook Text","description":"","default":"Facebook","uiGroup":"Facebook","required":false},{"name":"facebooktextcolor","type":"string","title":"Facebook Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"Facebook","required":false},{"name":"linebackgroundcolor","type":"string","title":"Line Background Color","description":"Background color of the Line button","default":"#00c300","uiWidget":"color","uiGroup":"Line Messenger","required":false},{"name":"lineclass-name","type":"string","title":"Line Class Name","description":"CSS class name for additional styling.","uiGroup":"Line Messenger","required":false},{"name":"linedisplayrule","type":"string","title":"Line Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"mobile-only","enum":["mobile-only","hidden"],"enumNames":["Mobile Only","Hide"],"uiGroup":"Line Messenger","required":false},{"name":"lineicon","type":"string","title":"Line Icon","description":"","default":"line","uiGroup":"Line Messenger","required":false},{"name":"lineiconhorizontal","type":"number","title":"Line Icon Horizontal","description":"Number to horizontally align the Line button icon","default":-2,"uiGroup":"Line Messenger","required":false},{"name":"lineiconsize","type":"number","title":"Line Icon Size","description":"","default":2.2,"uiGroup":"Line Messenger","required":false},{"name":"lineiconvertical","type":"number","title":"Line Icon Vertical","description":"Number to vertically align the Line button icon","default":-5,"uiGroup":"Line Messenger","required":false},{"name":"linetext","type":"string","title":"Line Text","description":"","default":"Line Messenger","uiGroup":"Line Messenger","required":false},{"name":"linetextcolor","type":"string","title":"Line Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"Line Messenger","required":false},{"name":"linkedinbackgroundcolor","type":"string","title":"Linkedin Background Color","description":"Background color of the linkedin button","default":"#ffffff","uiWidget":"color","uiGroup":"LinkedIn","required":false},{"name":"linkedinclass-name","type":"string","title":"Linkedin Class Name","description":"CSS class name for additional styling.","uiGroup":"LinkedIn","required":false},{"name":"linkedindisplayrule","type":"string","title":"Linkedin Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"hidden","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"LinkedIn","required":false},{"name":"linkedinicon","type":"string","title":"Linkedin Icon","description":"","default":"linkedin","uiGroup":"LinkedIn","required":false},{"name":"linkediniconhorizontal","type":"number","title":"Linkedin Icon Horizontal","description":"Number to horizontally align the Linkedin button icon","uiGroup":"LinkedIn","required":false},{"name":"linkediniconsize","type":"number","title":"Linkedin Icon Size","description":"","default":1.2,"uiGroup":"LinkedIn","required":false},{"name":"linkediniconvertical","type":"number","title":"Linkedin Icon Vertical","description":"Number to vertically align the Linkedin button icon","uiGroup":"LinkedIn","required":false},{"name":"linkedintext","type":"string","title":"Linkedin Text","description":"","default":"LinkedIn","uiGroup":"LinkedIn","required":false},{"name":"linkedintextcolor","type":"string","title":"Linkedin Text Color","description":"","default":"#0084b9","uiWidget":"color","uiGroup":"LinkedIn","required":false},{"name":"messengerbackgroundcolor","type":"string","title":"Messenger Background Color","description":"Background color of the Messenger button","default":"#0084ff","uiWidget":"color","uiGroup":"Messenger","required":false},{"name":"messengerclass-name","type":"string","title":"Messenger Class Name","description":"CSS class name for additional styling.","uiGroup":"Messenger","required":false},{"name":"messengerdisplayrule","type":"string","title":"Messenger Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"hidden","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Messenger","required":false},{"name":"messengericon","type":"string","title":"Messenger Icon","description":"","default":"messenger","uiGroup":"Messenger","required":false},{"name":"messengericonhorizontal","type":"number","title":"Messenger Icon Horizontal","description":"Number to horizontally align the Messenger button icon","default":7,"uiGroup":"Messenger","required":false},{"name":"messengericonsize","type":"number","title":"Messenger Icon Size","description":"","default":1.4,"uiGroup":"Messenger","required":false},{"name":"messengericonvertical","type":"number","title":"Messenger Icon Vertical","description":"Number to vertically align the Messenger button icon","default":3,"uiGroup":"Messenger","required":false},{"name":"messengertext","type":"string","title":"Messenger Text","description":"","default":"Messenger","uiGroup":"Messenger","required":false},{"name":"messengertextcolor","type":"string","title":"Messenger Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"Messenger","required":false},{"name":"pinterestbackgroundcolor","type":"string","title":"Pinterest Background Color","description":"Background color of the Pinterest button","default":"#cb2027","uiWidget":"color","uiGroup":"Pinterest","required":false},{"name":"pinterestclass-name","type":"string","title":"Pinterest Class Name","description":"CSS class name for additional styling.","uiGroup":"Pinterest","required":false},{"name":"pinterestdisplayrule","type":"string","title":"Pinterest Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"hidden","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Pinterest","required":false},{"name":"pinteresticon","type":"string","title":"Pinterest Icon","description":"","default":"pinterest","uiGroup":"Pinterest","required":false},{"name":"pinteresticonhorizontal","type":"number","title":"Pinterest Icon Horizontal","description":"Number to horizontally align the Pinterest button icon","default":9,"uiGroup":"Pinterest","required":false},{"name":"pinteresticonsize","type":"number","title":"Pinterest Icon Size","description":"","default":1.2,"uiGroup":"Pinterest","required":false},{"name":"pinteresticonvertical","type":"number","title":"Pinterest Icon Vertical","description":"Number to vertically align the Pinterest button icon","default":4,"uiGroup":"Pinterest","required":false},{"name":"pinteresttext","type":"string","title":"Pinterest Text","description":"","default":"Pinterest","uiGroup":"Pinterest","required":false},{"name":"pinteresttextcolor","type":"string","title":"Pinterest Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"Pinterest","required":false},{"name":"smsbackgroundcolor","type":"string","title":"SMS Background Color","description":"Background color of the SMS button","default":"#7bbf38","uiWidget":"color","uiGroup":"SMS","required":false},{"name":"smsclass-name","type":"string","title":"SMS Class Name","description":"CSS class name for additional styling.","uiGroup":"SMS","required":false},{"name":"smsdisplayrule","type":"string","title":"SMS Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"mobile-only","enum":["mobile-only","hidden"],"enumNames":["Mobile Only","Hide"],"uiGroup":"SMS","required":false},{"name":"smsicon","type":"string","title":"SMS Icon","description":"","default":"chat","uiGroup":"SMS","required":false},{"name":"smsiconhorizontal","type":"number","title":"SMS Icon Horizontal","description":"Number to horizontally align the SMS button icon","uiGroup":"SMS","required":false},{"name":"smsiconsize","type":"number","title":"SMS Icon Size","description":"","uiGroup":"SMS","required":false},{"name":"smsiconvertical","type":"number","title":"SMS Icon Vertical","description":"Number to vertically align the SMS button icon","uiGroup":"SMS","required":false},{"name":"smstext","type":"string","title":"SMS Text","description":"","default":"SMS","uiGroup":"SMS","required":false},{"name":"smstextcolor","type":"string","title":"SMS Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"SMS","required":false},{"name":"twitterbackgroundcolor","type":"string","title":"Twitter Background Color","description":"Background color of the twitter button","default":"#4797d2","uiWidget":"color","uiGroup":"Twitter","required":false},{"name":"twitterclass-name","type":"string","title":"Twitter Class Name","description":"CSS class name for additional styling.","uiGroup":"Twitter","required":false},{"name":"twitterdisplayrule","type":"string","title":"Twitter Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"mobile-and-desktop","enum":["mobile-and-desktop","mobile-only","desktop-only","hidden"],"enumNames":["Mobile and Desktop","Mobile Only","Desktop Only","Hide"],"uiGroup":"Twitter","required":false},{"name":"twittericon","type":"string","title":"Twitter Icon","description":"","default":"twitter","uiGroup":"Twitter","required":false},{"name":"twittericonhorizontal","type":"number","title":"Twitter Icon Horizontal","description":"Number to horizontally align the twitter button icon","default":9,"uiGroup":"Twitter","required":false},{"name":"twittericonsize","type":"number","title":"Twitter Icon Size","description":"","default":1.2,"uiGroup":"Twitter","required":false},{"name":"twittericonvertical","type":"number","title":"Twitter Icon Vertical","description":"Number to vertically align the twitter button icon","uiGroup":"Twitter","required":false},{"name":"twittertext","type":"string","title":"Twitter Text","description":"","default":"Twitter","uiGroup":"Twitter","required":false},{"name":"twittertextcolor","type":"string","title":"Twitter Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"Twitter","required":false},{"name":"whatsappbackgroundcolor","type":"string","title":"WhatsApp Background Color","description":"Background color of the WhatsApp button","default":"#25D366","uiWidget":"color","uiGroup":"WhatsApp","required":false},{"name":"whatsappclass-name","type":"string","title":"WhatsApp Class Name","description":"CSS class name for additional styling.","uiGroup":"WhatsApp","required":false},{"name":"whatsappdisplayrule","type":"string","title":"WhatsApp Display Rule","description":"Show and hide button depending on what type of device the user is on","default":"mobile-only","enum":["mobile-only","hidden"],"enumNames":["Mobile Only","Hide"],"uiGroup":"WhatsApp","required":false},{"name":"whatsappicon","type":"string","title":"WhatsApp Icon","description":"","default":"whatsapp","uiGroup":"WhatsApp","required":false},{"name":"whatsappiconhorizontal","type":"number","title":"WhatsApp Icon Horizontal","description":"Number to horizontally align the WhatsApp button icon","default":7,"uiGroup":"WhatsApp","required":false},{"name":"whatsappiconsize","type":"number","title":"WhatsApp Icon Size","description":"","default":1.4,"uiGroup":"WhatsApp","required":false},{"name":"whatsappiconvertical","type":"number","title":"WhatsApp Icon Vertical","description":"Number to vertically align the WhatsApp button icon","default":2,"uiGroup":"WhatsApp","required":false},{"name":"whatsapptext","type":"string","title":"WhatsApp Text","description":"","default":"Whatspp","uiGroup":"WhatsApp","required":false},{"name":"whatsapptextcolor","type":"string","title":"WhatsApp Text Color","description":"","default":"#ffffff","uiWidget":"color","uiGroup":"WhatsApp","required":false}],"exampleGroup":"Sharing","examples":[{"title":"Share Button Group","content":"<sqh-share-button-container ishidden=\"false\" emaildisplayrule=\"mobile-and-desktop\" emailtext=\"Email\" emailtextcolor=\"#ffffff\" emailbackgroundcolor=\"#4b4d50\" facebookdisplayrule=\"mobile-and-desktop\" facebooktext=\"Facebook\" facebooktextcolor=\"#ffffff\" facebookbackgroundcolor=\"#234079\" twitterdisplayrule=\"mobile-and-desktop\" twittertext=\"Twitter\" twittertextcolor=\"#ffffff\" twitterbackgroundcolor=\"#4797d2\" smsdisplayrule=\"mobile-only\" smstext=\"SMS\" smstextcolor=\"#ffffff\" smsbackgroundcolor=\"#7bbf38\" whatsappdisplayrule=\"mobile-only\" whatsapptext=\"Whatspp\" whatsapptextcolor=\"#ffffff\" whatsappbackgroundcolor=\"#25D366\" linkedindisplayrule=\"hidden\" linkedintext=\"LinkedIn\" linkedintextcolor=\"#ffffff\" linkedinbackgroundcolor=\"#0084b9\" pinterestdisplayrule=\"hidden\" pinteresttext=\"Pinterest\" pinteresttextcolor=\"#ffffff\" pinterestbackgroundcolor=\"#cb2027\" messengerdisplayrule=\"hidden\" messengertext=\"Messenger\" messengertextcolor=\"#ffffff\" messengerbackgroundcolor=\"#0084ff\" linedisplayrule=\"mobile-only\" linetext=\"Line Messenger\" linetextcolor=\"#ffffff\" linebackgroundcolor=\"#00c300\"></sqh-share-button-container>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-stat-component","title":"Stat Component","attributes":[{"name":"statcolor","type":"string","title":"Color","description":"","uiWidget":"color","required":false},{"name":"statdescription","type":"string","title":"Description","description":"Text shown underneath the stat value","required":false},{"name":"stattype","type":"string","title":"Stat Type","description":"Type of stat being displayed. e.g /rewardsCount","uiWidget":"statTypeSelectorWidget","minLength":1,"required":true}],"exampleGroup":"Statistics","examples":[{"title":"Referral Count","content":"<sqh-stat-component ishidden=\"false\" statcolor=\"#4caf50\" stattype=\"/referralsCount\" statdescription=\"Friends Referred\" paddingtop=\"10\" paddingbottom=\"10\"></sqh-stat-component>"},{"title":"Reward Count","content":"<sqh-stat-component ishidden=\"false\" stattype=\"/rewardsCount\" statdescription=\"Total Rewards\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#000000\"></sqh-stat-component>"},{"title":"Credit Earned","content":"<sqh-stat-component ishidden=\"false\" stattype=\"/rewardBalance/CREDIT/CENTS/prettyAssignedCredit\" statdescription=\"Credit earned\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#000000\"></sqh-stat-component>"},{"title":"Points Earned","content":"<sqh-stat-component statcolor=\"#000000\" stattype=\"/rewardBalance/CREDIT/POINT/totalAssignedCredit\" statdescription=\"Points Earned\" paddingtop=\"10\" paddingbottom=\"10\"></sqh-stat-component>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-stats-container","title":"Stats Container","slots":[{"name":"","title":"Stats"}],"attributes":[{"name":"paddingbottom","type":"string","title":"Padding Bottom","description":"Define the top padding of the container with a pixel amount.","default":"0","required":false},{"name":"paddingtop","type":"string","title":"Padding Top","description":"Define the bottom padding of the container with a pixel amount.","default":"0","required":false}],"exampleGroup":"Statistics","examples":[{"title":"Referral Stat Group","content":"<sqh-stats-container ishidden=\"false\" paddingtop=\"0\" paddingbottom=\"0\"><sqh-stat-component ishidden=\"false\" statcolor=\"#4caf50\" stattype=\"/referralsCount\" statdescription=\"Friends Referred\" paddingtop=\"10\" paddingbottom=\"10\"></sqh-stat-component><sqh-stat-component ishidden=\"false\" stattype=\"/rewardsCount\" statdescription=\"Total Rewards\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#000000\"></sqh-stat-component><sqh-stat-component ishidden=\"false\" stattype=\"/rewardBalance/CREDIT/CENTS/prettyAssignedCredit\" statdescription=\"Credit earned\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#000000\"></sqh-stat-component></sqh-stats-container>"},{"title":"Partner Stat Group","content":"<sqh-stats-container ishidden=\"false\" paddingtop=\"0\" paddingbottom=\"0\"><sqh-partner-stat-component ishidden=\"false\" statcolor=\"#000000\" stattype=\"/rewardBalance/CREDIT/CASH_CAD/prettyPendingCredit\" statdescription=\"Pending Balance\" paddingtop=\"10\" paddingbottom=\"10\"></sqh-partner-stat-component><sqh-partner-stat-component ishidden=\"false\" stattype=\"/rewardBalance/CREDIT/CASH_CAD/prettyValue\" statdescription=\"Available Balance\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#4caf50\"></sqh-partner-stat-component><sqh-partner-stat-component ishidden=\"false\" stattype=\"/rewardBalance/CREDIT/CASH_CAD/prettyRedeemedCredit\" statdescription=\"Redeemed Balance\" paddingtop=\"10\" paddingbottom=\"10\" statcolor=\"#000000\"></sqh-partner-stat-component></sqh-stats-container>"}],"canvasRenderer":"always-replace"},{"tagName":"sqh-text-component","title":"Text Component","attributes":[{"name":"background","type":"string","title":"Background","description":"Fill the background with a color or image. Input color values as a HEX code and an image as a URL.","required":false},{"name":"color","type":"string","title":"Text Color","description":"","uiWidget":"color","required":false},{"name":"fontfamily","type":"string","title":"Font Family","description":"","required":false},{"name":"fontsize","type":"string","title":"Font Size","description":"","required":false},{"name":"fontweight","type":"string","title":"Font Weight","description":"","required":false},{"name":"height","type":"string","title":"Height","description":"Define the height of the container with a pixel amount.","required":false},{"name":"ismarkdown","type":"boolean","title":"Use Markdown","description":"Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.","required":false},{"name":"paddingbottom","type":"string","title":"Padding Bottom","description":"Define the bottom padding of the container with a pixel amount.","required":false},{"name":"paddingtop","type":"string","title":"Padding Top","description":"Define the top padding of the container with a pixel amount.","required":false},{"name":"text","type":"string","title":"Text","description":"","required":false},{"name":"textalign","type":"string","title":"Text Alignment","description":"","enum":["left","center","right"],"enumNames":["Left","Center","Right"],"required":false}],"exampleGroup":"Common Components","examples":[{"title":"Header Text","content":"<sqh-text-component sqhheader=\"true\" ishidden=\"false\" ismarkdown=\"false\" text=\"Give $10 and Get $10!\" color=\"#4486E1\" fontsize=\"30\" textalign=\"center\" paddingtop=\"30\" paddingbottom=\"10\"></sqh-text-component>"},{"title":"Paragraph Text","content":"<sqh-text-component sqhbody=\"true\" ishidden=\"false\" ismarkdown=\"true\" text=\"Give a friend a $10 and receive $10 for yourself when they purchase.<br/><br/>Share the link below or use the code **<sqh-referral-code />**\" color=\"#000000\" fontsize=\"13\" textalign=\"center\" paddingtop=\"5\" paddingbottom=\"20\"></sqh-text-component>"}],"canvasRenderer":"always-replace"}]}]}
|