@saasquatch/mint-components 1.15.0-6 → 1.15.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-e666dc8b.js → ShadowViewAddon-afc40c22.js} +1 -1
- package/dist/cjs/{copy-text-view-7441206d.js → copy-text-view-9d4259f4.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +18 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +167 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +114 -1
- package/dist/collection/components/views/copy-text-view.js +1 -1
- package/dist/esm/{ShadowViewAddon-7c10e0ee.js → ShadowViewAddon-bdedf635.js} +1 -1
- package/dist/esm/{copy-text-view-717050d5.js → copy-text-view-ca98ab38.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_41.entry.js +18 -3
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/{ShadowViewAddon-7c10e0ee.js → ShadowViewAddon-bdedf635.js} +1 -1
- package/dist/esm-es5/copy-text-view-ca98ab38.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-c6841ab8.system.entry.js → p-09a77c82.system.entry.js} +1 -1
- package/dist/mint-components/{p-51495bc3.entry.js → p-2195c312.entry.js} +1 -1
- package/dist/mint-components/{p-4874193a.system.js → p-338bcfd6.system.js} +1 -1
- package/dist/mint-components/{p-8c12078e.js → p-469ad274.js} +1 -1
- package/dist/mint-components/{p-7f1e10d3.entry.js → p-484196f8.entry.js} +1 -1
- package/dist/mint-components/p-55c16fb9.system.js +1 -0
- package/dist/mint-components/{p-5ca8959a.system.entry.js → p-642909e6.system.entry.js} +1 -1
- package/dist/mint-components/p-9fe143f5.js +1 -0
- package/dist/mint-components/{p-8b36fe4f.entry.js → p-b889ec31.entry.js} +2 -2
- package/dist/mint-components/{p-bdbbc673.system.entry.js → p-c39db551.system.entry.js} +1 -1
- package/dist/mint-components/p-ed11966d.system.js +1 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +12 -0
- package/dist/types/components.d.ts +146 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/copy-text-view-717050d5.js +0 -1
- package/dist/mint-components/p-c3680c02.js +0 -1
- package/dist/mint-components/p-d8cf46ba.system.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,k as n,i,u as o,m as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-e01fe915.js";import{i as h,_ as m,d as p,J as g,H as v,$ as f,w as b,B as y,L as x,y as w,j as k,r as C,V as E,u as I,Q as S,k as R}from"./p-94a876b9.js";import{j as q}from"./p-e7e129ac.js";import{c as T}from"./p-c1086930.js";import{g as M,a as _}from"./p-9ec99ced.js";import{c as N}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-
|
|
1
|
+
import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,k as n,i,u as o,m as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-e01fe915.js";import{i as h,_ as m,d as p,J as g,H as v,$ as f,w as b,B as y,L as x,y as w,j as k,r as C,V as E,u as I,Q as S,k as R}from"./p-94a876b9.js";import{j as q}from"./p-e7e129ac.js";import{c as T}from"./p-c1086930.js";import{g as M,a as _}from"./p-9ec99ced.js";import{c as N}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-9fe143f5.js";import{a as P}from"./p-4e451f75.js";import{u as L}from"./p-19ccb4ce.js";import"./p-5bedb58c.js";import"./p-eab1c9f3.js";import{p as D}from"./p-8d363802.js";import{R as V,u as F}from"./p-98698131.js";import{P as O}from"./p-7e3a84bc.js";import{u as $}from"./p-4e526a94.js";import{A as j}from"./p-121cdc60.js";import{i as B}from"./p-8c23d1b8.js";import{b as U,U as z,B as H,O as W,J as G,i as Z,K,D as Y,E as Q,H as X,I as J,V as ee,L as te,N as re,C as se,d as ae,h as ne,P as ie,e as oe,R as le,W as ce,j as de,a as ue,S as he,u as me,c as pe,T as ge}from"./p-469ad274.js";import"./p-a9f4ddb1.js";import{u as ve}from"./p-480e08e9.js";const fe=class{constructor(t){e(this,t),this.flexReverse=!1,this.ignored=!0,s(this)}disconnectedCallback(){}render(){var e;const{props:r,label:s}=h()?U(this):z(this),a=!!(null===(e=m().innerHTML)||void 0===e?void 0:e.trim()),n=t("slot",{name:"label"},a?t("slot",null):s);return t(H,Object.assign({},r,{labelSlot:n}))}},be=class{constructor(t){e(this,t),s(this)}disconnectedCallback(){}render(){var e,s;const n=null!==(e=function(e){if(e)try{return W(e)}catch{}}(this.brandColor))&&void 0!==e?e:"",i=(null!==(s=this.brandFont)&&void 0!==s?s:"Nunito Sans").trim()||void 0;a((()=>{if(!i)return;const e=document.createElement("link");return e.setAttribute("href",function(...e){return`https://fonts.googleapis.com/css2?${e.map((e=>`family=${encodeURIComponent(e)}`)).join("&")}`}(i)),e.setAttribute("rel","stylesheet"),document.head.appendChild(e),()=>document.head.removeChild(e)}),[i]);const o=null!=i?i:"";return t(r,null,t("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${n}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),t("slot",null))}},ye=class{constructor(t){e(this,t),this.ignored=!0,this.width=347,this.gap=24,s(this)}disconnectedCallback(){}render(){return t(G,Object.assign({},M(this)),t("slot",null))}},xe=N({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}}),we=xe.toString();function ke({missingProps:e,heading:r="There was a problem loading this section",subheading:s="There was a technical problem that prevented this section from loading. Please contact us with the link to this page.",description:a="Error occured while loading <{tagName}>. Values for the following attributes are missing:"},i){if(!e)return!1;const o=m(),[l,c]=n(!1);return t("sl-alert",{type:"danger",open:!0},t("style",{type:"text/css"},we),t("div",{slot:"icon",class:xe.classes.IconStyle},t("sl-icon",{name:"exclamation-octagon"})),t("div",{class:xe.classes.DivStyle},t("h2",{class:xe.classes.Heading},u.formatMessage({id:"error-heading",defaultMessage:r})),t("p",null,u.formatMessage({id:"error-subheading",defaultMessage:s}))),t("details",{class:xe.classes.Details},t("summary",{onClick:()=>c(!l)},l?"Less":"More"," details"),t("p",null,u.formatMessage({id:"error-description",defaultMessage:a},{tagName:o.tagName.toLowerCase()})),t("ul",null,e.map((e=>t("li",null,t("strong",null,e.attribute)))))),t("div",{class:xe.classes.Children},i))}function Ce(e){var t;const r=i(V),[s,o]=n(!1);return a((()=>{var t,s;(null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName])&&o(!!(null===(s=null==r?void 0:r.initialData)||void 0===s?void 0:s[e.checkboxName]))}),[null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName]]),{states:{registrationFormState:r,checked:s},callbacks:{setChecked:o}}}const Ee=class{constructor(t){e(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,s(this)}disconnectedCallback(){}render(){const e=_([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&e)return t(ke,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const r={...M(this)},{states:s,callbacks:a}=h()?T({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):Ce(this);return t(Z,{states:s,content:r,callbacks:a})}},Ie=p.gql`
|
|
2
2
|
query fuelTankRewardsQuery($programId: ID!) {
|
|
3
3
|
user: viewer {
|
|
4
4
|
... on User {
|
|
@@ -240,7 +240,7 @@ import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,k as n,i,
|
|
|
240
240
|
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
241
241
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
242
242
|
}
|
|
243
|
-
`,zt=class{constructor(t){e(this,t),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Code",this.buttonStyle="icon",s(this)}disconnectedCallback(){}render(){const e=M(this),r=h()?function(e){const[t,r]=n(!1),s="SHARECODE001";return T({copyString:s,tooltiptext:e.tooltiptext,textAlign:e.textAlign,copyButtonLabel:e.copyButtonLabel,buttonStyle:e.buttonStyle,rewardStatus:"AVAILABLE",open:t,onClick:()=>{navigator.clipboard.writeText(s),r(!0),setTimeout((()=>r(!1)),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(e):function(e){var t,r;const{programId:s=v()}=e,a=g(),i=y(),{data:o}=b(Bt,{programId:s},!(null==a?void 0:a.jwt)),[l]=f(Ut),c=null!==(r=null===(t=null==o?void 0:o.user)||void 0===t?void 0:t.referralCode)&&void 0!==r?r:"...",[d,u]=n(!1);return{...e,onClick:function(){navigator.clipboard.writeText(c),u(!0),setTimeout((()=>u(!1)),e.tooltiplifespan),l({eventMeta:{programId:s,id:null==a?void 0:a.id,accountId:null==a?void 0:a.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:i,shareMedium:"DIRECT"}}})},open:d,copyString:c}}(e);return t(A,Object.assign({},r))}},Ht=class{constructor(t){e(this,t),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Link",this.buttonType="primary",this.buttonStyle="icon",s(this)}disconnectedCallback(){}render(){const e=M(this),r=h()?function(e){const[t,r]=n(!1),s="https://www.example.com/sharelink/abc";return T({copyString:s,tooltiptext:e.tooltiptext,textAlign:e.textAlign,buttonStyle:e.buttonStyle,backgroundColor:e.backgroundColor,textColor:e.textColor,borderRadius:e.borderRadius,buttonType:e.buttonType,copyButtonLabel:e.copyButtonLabel,rewardStatus:"AVAILABLE",open:t,onClick:()=>{navigator.clipboard.writeText(s),r(!0),setTimeout((()=>r(!1)),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(e):me(e);return t(A,Object.assign({},r))}},Wt=class{constructor(t){e(this,t),this.ignored=!0,this.space="xxx-large",this.display="grid",s(this)}disconnectedCallback(){}render(){return t(pe,Object.assign({},M(this)),t("slot",null))}},Gt=p.gql`
|
|
243
|
+
`,zt=class{constructor(t){e(this,t),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Code",this.buttonStyle="icon",this.buttonType="primary",s(this)}disconnectedCallback(){}render(){const e=M(this),r=h()?function(e){const[t,r]=n(!1),s="SHARECODE001";return T({copyString:s,tooltiptext:e.tooltiptext,textAlign:e.textAlign,copyButtonLabel:e.copyButtonLabel,buttonStyle:e.buttonStyle,backgroundColor:e.backgroundColor,textColor:e.textColor,borderRadius:e.borderRadius,buttonType:e.buttonType,rewardStatus:"AVAILABLE",open:t,onClick:()=>{navigator.clipboard.writeText(s),r(!0),setTimeout((()=>r(!1)),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(e):function(e){var t,r;const{programId:s=v()}=e,a=g(),i=y(),{data:o}=b(Bt,{programId:s},!(null==a?void 0:a.jwt)),[l]=f(Ut),c=null!==(r=null===(t=null==o?void 0:o.user)||void 0===t?void 0:t.referralCode)&&void 0!==r?r:"...",[d,u]=n(!1);return{...e,onClick:function(){navigator.clipboard.writeText(c),u(!0),setTimeout((()=>u(!1)),e.tooltiplifespan),l({eventMeta:{programId:s,id:null==a?void 0:a.id,accountId:null==a?void 0:a.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:i,shareMedium:"DIRECT"}}})},open:d,copyString:c}}(e);return t(A,Object.assign({},r))}},Ht=class{constructor(t){e(this,t),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Link",this.buttonType="primary",this.buttonStyle="icon",s(this)}disconnectedCallback(){}render(){const e=M(this),r=h()?function(e){const[t,r]=n(!1),s="https://www.example.com/sharelink/abc";return T({copyString:s,tooltiptext:e.tooltiptext,textAlign:e.textAlign,buttonStyle:e.buttonStyle,backgroundColor:e.backgroundColor,textColor:e.textColor,borderRadius:e.borderRadius,buttonType:e.buttonType,copyButtonLabel:e.copyButtonLabel,borderColor:e.borderColor,rewardStatus:"AVAILABLE",open:t,onClick:()=>{navigator.clipboard.writeText(s),r(!0),setTimeout((()=>r(!1)),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(e):me(e);return t(A,Object.assign({},r))}},Wt=class{constructor(t){e(this,t),this.ignored=!0,this.space="xxx-large",this.display="grid",s(this)}disconnectedCallback(){}render(){return t(pe,Object.assign({},M(this)),t("slot",null))}},Gt=p.gql`
|
|
244
244
|
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
245
245
|
logUserEvent(userEventInput: $userEventInput) {
|
|
246
246
|
userId
|