@saasquatch/mint-components 1.6.12 → 1.6.13
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-982cecb3.js → ShadowViewAddon-d55832bb.js} +1 -1
- package/dist/cjs/{global-dc823c81.js → global-ac581c47.js} +77 -77
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-f99c965c.js → sqm-portal-email-verification-view-cee5348c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-f45e3ea8.js → sqm-portal-profile-view-28176f3e.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +4 -4
- package/dist/collection/components/sqm-program-menu/useProgramMenu.js +6 -6
- package/dist/collection/global/global.js +1 -1
- package/dist/esm/{ShadowViewAddon-dbb5a208.js → ShadowViewAddon-0f9993af.js} +1 -1
- package/dist/esm/{global-85c8c43e.js → global-fe2b026c.js} +77 -77
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +5 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-9c0dfbf4.js → sqm-portal-email-verification-view-6b37818c.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-1e3100d7.js → sqm-portal-profile-view-cc13ab93.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +4 -4
- package/dist/esm-es5/{ShadowViewAddon-dbb5a208.js → ShadowViewAddon-0f9993af.js} +1 -1
- package/dist/esm-es5/{global-85c8c43e.js → global-fe2b026c.js} +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-9c0dfbf4.js → sqm-portal-email-verification-view-6b37818c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-1e3100d7.js → sqm-portal-profile-view-cc13ab93.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.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/mint-components.js +1 -1
- package/dist/mint-components/{p-ae934e47.system.entry.js → p-0ebf6140.system.entry.js} +1 -1
- package/dist/mint-components/{p-175fbfc4.system.entry.js → p-1be3030c.system.entry.js} +1 -1
- package/dist/mint-components/{p-7771e31f.system.js → p-310578bc.system.js} +1 -1
- package/dist/mint-components/p-38282cef.entry.js +13 -0
- package/dist/mint-components/{p-b2bbf924.system.entry.js → p-455bbcbf.system.entry.js} +1 -1
- package/dist/mint-components/{p-eb6bb11a.entry.js → p-46319934.entry.js} +1 -1
- package/dist/mint-components/{p-e0ea1929.js → p-50c4d42b.js} +1 -1
- package/dist/mint-components/{p-c3a32e2b.system.js → p-5a739d01.system.js} +2 -2
- package/dist/mint-components/{p-f14692ac.js → p-65fffbfb.js} +4 -4
- package/dist/mint-components/{p-afd8c55c.system.entry.js → p-68369452.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f2d05c4.system.js → p-7279510a.system.js} +1 -1
- package/dist/mint-components/{p-a5f480d8.js → p-73c328dc.js} +1 -1
- package/dist/mint-components/p-7a5e33d5.system.entry.js +1 -0
- package/dist/mint-components/{p-23fee2a0.entry.js → p-83fb9f0d.entry.js} +1 -1
- package/dist/mint-components/{p-454b78e0.entry.js → p-86c99bf7.entry.js} +3 -3
- package/dist/mint-components/{p-467eac26.system.entry.js → p-b5bc1367.system.entry.js} +1 -1
- package/dist/mint-components/{p-338f5fc9.system.entry.js → p-bb138fd1.system.entry.js} +1 -1
- package/dist/mint-components/{p-32808e08.entry.js → p-c03429a6.entry.js} +2 -2
- package/dist/mint-components/{p-d4118b62.system.js → p-c3dd8944.system.js} +1 -1
- package/dist/mint-components/{p-fba941c4.js → p-dc869574.js} +1 -1
- package/dist/mint-components/{p-801b7a78.entry.js → p-e3996469.entry.js} +1 -1
- package/dist/mint-components/{p-bbf486e6.entry.js → p-e4907e10.entry.js} +1 -1
- package/dist/mint-components/{p-b166ec60.system.js → p-f870021b.system.js} +1 -1
- package/dist/types/components/sqm-program-menu/useProgramMenu.d.ts +2 -2
- package/docs/docs.docx +0 -0
- package/package.json +2 -2
- package/shoelace/themes/themes/base.css +1 -1
- package/shoelace/themes/themes/dark.css +1 -1
- package/dist/mint-components/p-8915a605.entry.js +0 -13
- package/dist/mint-components/p-daf58343.system.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SlMenu } from
|
|
2
|
-
import { ProgramMenu } from
|
|
1
|
+
import { SlMenu } from "@saasquatch/shoelace";
|
|
2
|
+
import { ProgramMenu } from "./sqm-program-menu";
|
|
3
3
|
export declare function useProgramMenu(props: ProgramMenu): {
|
|
4
4
|
data: {
|
|
5
5
|
programId: string;
|
package/docs/docs.docx
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasquatch/mint-components",
|
|
3
3
|
"title": "Mint Components",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.13",
|
|
5
5
|
"description": "A minimal design library with components for referral and loyalty experiences. Built with Shoelace components by Saasquatch.",
|
|
6
6
|
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Mint.svg",
|
|
7
7
|
"raisins": "docs/raisins.json",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@saasquatch/stencil-hooks": "^2.0.2",
|
|
76
76
|
"@saasquatch/stencilbook": "^1.1.0-1",
|
|
77
77
|
"@saasquatch/universal-hooks": "^1.0.0",
|
|
78
|
-
"@
|
|
78
|
+
"@saasquatch/shoelace": "^1.0.0",
|
|
79
79
|
"babel-polyfill": "^6.26.0",
|
|
80
80
|
"canvas-confetti": "^1.4.0",
|
|
81
81
|
"color2k": "^1.2.4",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ../../../../var/folders/
|
|
1
|
+
/* ../../../../var/folders/77/113dn8kn0hzgvvw_7wx3bzlh0000gp/T/tmp-24813-vCUHQfC9qkvN/shoelace/src/styles/base.css */
|
|
2
2
|
.sl-toast-stack {
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ../../../../var/folders/
|
|
1
|
+
/* ../../../../var/folders/77/113dn8kn0hzgvvw_7wx3bzlh0000gp/T/tmp-24813-vCUHQfC9qkvN/shoelace/src/styles/dark.css */
|
|
2
2
|
.sl-theme-dark {
|
|
3
3
|
--sl-input-background-color: var(--sl-color-gray-900);
|
|
4
4
|
--sl-input-background-color-hover: var(--sl-color-gray-900);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{r,h as a}from"./p-64c3217a.js";import{m as t}from"./p-901f5b80.js";import{i as e}from"./p-f14692ac.js";import{d as o,O as n,L as s,b as i,i as l}from"./p-cdddccfe.js";import{c as d}from"./p-c1086930.js";import{L as c}from"./p-0a898ab1.js";const p=o.gql`
|
|
2
|
-
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
3
|
-
viewer {
|
|
4
|
-
... on User {
|
|
5
|
-
leaderboardRank(type: $type, filter: $filter) {
|
|
6
|
-
rowNumber
|
|
7
|
-
rank
|
|
8
|
-
denseRank
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`,u=class{constructor(a){r(this,a),this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!",t(this)}disconnectedCallback(){}render(){const r=l()?function(r){const a=e.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:1})||"1st";return d({data:{rank:a}},r.demoData||{},{arrayMerge:(r,a)=>a})}(this):function(r){var a,t,o,l;const d=n(),c=null!==(a=r.programId)&&void 0!==a?a:d,u=s(),f=c?{type:r.leaderboardType,filter:{programId_eq:c}}:{type:r.leaderboardType,filter:{}};r.interval&&(f.filter.interval=r.interval);const{data:m}=i(p,f,!(null==u?void 0:u.jwt));return{data:{rank:(null===(t=null==m?void 0:m.viewer)||void 0===t?void 0:t.leaderboardRank)?e.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:null===(l=null===(o=null==m?void 0:m.viewer)||void 0===o?void 0:o.leaderboardRank)||void 0===l?void 0:l[r.rankType]}):r.unrankedText||"unranked"}}}(this);return a(c,Object.assign({},r))}};u.style="p,.P{font-size:var(--sl-font-size-small);color:var(--sl-color-gray-800);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sl-color-gray-500);margin:0px}";export{u as sqm_leaderboard_rank}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-c3a32e2b.system.js","./p-a3e28532.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-5cda74d1.system.js","./p-7771e31f.system.js"],(function(e){"use strict";var t,n,i,a,r,s,o,u,l,d,m,c,f;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.j;a=e.f;r=e.m},function(){},function(e){s=e.d;o=e.L;u=e.b;l=e.I;d=e.i},function(e){m=e.c},function(){},function(e){c=e.g},function(){},function(e){f=e.P}],execute:function(){var v=s.gql(__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"]));var g=s.gql(__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"]));var _={country:"",email:"",firstName:"",lastName:"",errors:{},error:""};function y(e){var t=o();var n=i(false),r=n[0],s=n[1];var d=i(undefined),m=d[0],c=d[1];var f=i(_),y=f[0],N=f[1];var h=u(v,{},!(t===null||t===void 0?void 0:t.jwt));var p=l(g),b=p[0],x=p[1];a((function(){if(x===null||x===void 0?void 0:x.loading)return;if(x===null||x===void 0?void 0:x.errors){N((function(e){var t,n,i;return __assign(__assign({},e),{error:(i=(n=(t=x===null||x===void 0?void 0:x.errors)===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0].message})}))}else{c((function(e){var t;return __assign(__assign({},e),(t=x===null||x===void 0?void 0:x.data)===null||t===void 0?void 0:t.upsertUser)}));if(x===null||x===void 0?void 0:x.data)s(true)}}),[x===null||x===void 0?void 0:x.loading]);a((function(){var e,t;c((function(e){var t;return __assign(__assign({},e),(t=h===null||h===void 0?void 0:h.data)===null||t===void 0?void 0:t.viewer)}));N(__assign(__assign(__assign({},_),(e=h.data)===null||e===void 0?void 0:e.viewer),(t=x.data)===null||t===void 0?void 0:t.upsertUser))}),[h===null||h===void 0?void 0:h.data]);a((function(){var e,t;if((e=x===null||x===void 0?void 0:x.errors)===null||e===void 0?void 0:e.message){N(__assign(__assign({},(t=h.data)===null||t===void 0?void 0:t.viewer),{error:"Network request failed."}))}}),[x===null||x===void 0?void 0:x.errors]);var j=function(){s(false);if(y.firstName&&y.lastName){b({id:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,firstName:y.firstName,lastName:y.lastName});N((function(e){return __assign(__assign({},e),{errors:{},error:""})}));return}var e={};if(!y.firstName){e["firstName"]={message:"Field can't be empty"}}if(!y.lastName){e["lastName"]={message:"Field can't be empty"}}if(e!=={}){N((function(e){return __assign(__assign({},e),{error:"Please correct the errors below to update your profile."})}))}N((function(t){return __assign(__assign({},t),{errors:e})}))};return{states:{success:r,loading:(h===null||h===void 0?void 0:h.loading)||x.loading,submitDisabled:false,showCountry:!e.hideCountry,formState:y,user:m,text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,countrytext:e.countrytext,emailtext:e.emailtext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText}},callbacks:{onSubmit:j,onChange:function(e){var t=e.target,n=t.name,i=t.value;N((function(e){var t;return __assign(__assign({},e),(t={},t[n]=i,t))}))}}}}var N=e("sqm_portal_profile",function(){function e(e){t(this,e);this.ignored=true;this.firstnametext="First Name";this.lastnametext="Last Name";this.emailtext="Email";this.countrytext="Country";this.editProfileHeader="Edit your profile";this.editProfileSubHeader="Personal Information";this.submitChangeButtonText="Submit Changes";this.hideCountry=false;r(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=d()?h(c(this)):y(c(this));return n(f,Object.assign({},e))};return e}());function h(e){return m({states:{success:false,loading:false,submitDisabled:false,showCountry:!e.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,emailtext:e.emailtext,countrytext:e.countrytext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
|