@saasquatch/mint-components 1.12.0-20 → 1.12.0-22

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.
Files changed (39) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -2
  4. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +0 -1
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -4
  6. package/dist/cjs/sqm-widget-verification.cjs.entry.js +20 -6
  7. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -3
  8. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +71 -6
  9. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -2
  10. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -2
  11. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +2 -2
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/esm/mint-components.js +1 -1
  14. package/dist/esm/sqm-banking-info-form_17.entry.js +2 -2
  15. package/dist/esm/sqm-big-stat_39.entry.js +0 -1
  16. package/dist/esm/sqm-stencilbook.entry.js +2 -4
  17. package/dist/esm/sqm-widget-verification.entry.js +20 -6
  18. package/dist/esm-es5/loader.js +1 -1
  19. package/dist/esm-es5/mint-components.js +1 -1
  20. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  21. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  22. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  23. package/dist/mint-components/mint-components.esm.js +1 -1
  24. package/dist/mint-components/p-2e7744af.system.entry.js +1 -0
  25. package/dist/mint-components/{p-0a94fe9f.system.entry.js → p-400478d5.system.entry.js} +1 -1
  26. package/dist/mint-components/{p-3007fb7d.system.entry.js → p-b2a1cde8.system.entry.js} +1 -1
  27. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  28. package/dist/mint-components/{p-478a3755.entry.js → p-cfc80b2c.entry.js} +1 -1
  29. package/dist/mint-components/p-f01f3c48.entry.js +16 -0
  30. package/dist/mint-components/{p-a954c299.entry.js → p-f6e49854.entry.js} +1 -1
  31. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +10 -0
  32. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -1
  33. package/dist/types/components.d.ts +22 -2
  34. package/docs/docs.docx +0 -0
  35. package/docs/raisins.json +1 -1
  36. package/grapesjs/grapesjs.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/mint-components/p-97c92e75.entry.js +0 -16
  39. package/dist/mint-components/p-cb55d3c4.system.entry.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasquatch/mint-components",
3
3
  "title": "Mint Components",
4
- "version": "1.12.0-20",
4
+ "version": "1.12.0-22",
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",
@@ -1,16 +0,0 @@
1
- import{r as e,h as i}from"./p-64c3217a.js";import{n as o,k as r,f as t}from"./p-fd2c5407.js";import{d as a,i as n,F as s,S as c,K as d,o as l}from"./p-bdd6bb13.js";import{g as m}from"./p-9ec99ced.js";import{S as h,V as u,a as f}from"./p-38c7775a.js";import{e as p}from"./p-26468242.js";const v=a.gql`
2
- query checkUserVerification {
3
- viewer {
4
- ... on User {
5
- id
6
- accountId
7
- email
8
- emailVerified
9
- managedIdentity {
10
- email
11
- emailVerified
12
- }
13
- }
14
- }
15
- }
16
- `,y=class{constructor(i){e(this,i),this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.",this.emailStep_sendCodeErrorHeader="There was an error sending your code.",this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.",this.emailStep_emailLabel="Email",this.emailStep_sendCodeText="Send code",this.emailStep_emailValidationErrorText="Please enter a valid email",this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}",this.codeStep_resendCodeLabel="Resend code",this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}",this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.",this.codeStep_verifyText="Verify",this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",o(this)}disconnectedCallback(){}getStepTextProps(e){const i=m(this);return p(i,e)}render(){const{showCode:e,onVerification:o,loading:a}=n()?function(){const[e,i]=s({namespace:h,initialValue:!1}),[o,r]=s({namespace:u,initialValue:void 0}),t=c(f);return{showCode:e,onVerification:()=>{t(!0)},loading:!1}}():function(){const e=d(),[i,o]=s({namespace:h,initialValue:!1}),[a,n]=s({namespace:u,initialValue:null==e?void 0:e.email}),m=c(f),[p,y]=r(!0),[g]=l(v);return t((()=>{(async()=>{var e,i,o;try{const r=await g({});if(!r||r instanceof Error)throw new Error;((null===(e=null==r?void 0:r.viewer)||void 0===e?void 0:e.emailVerified)||(null===(o=null===(i=null==r?void 0:r.viewer)||void 0===i?void 0:i.managedIdentity)||void 0===o?void 0:o.emailVerified))&&m(!0)}catch(e){console.error("Could not fetch user information:",e)}finally{y(!1)}})()}),[]),{showCode:i,onVerification:()=>{m(!0)},loading:p}}();return a?i("div",null):e?i("sqm-code-verification",Object.assign({onVerification:o},this.getStepTextProps("codeStep_"))):i("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_")))}};export{y as sqm_widget_verification}
@@ -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 __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-93576222.system.js","./p-6333265f.system.js","./p-57dd28bd.system.js","./p-a8645c1b.system.js"],(function(e){"use strict";var t,r,n,i,o,a,s,c,l,u,d,f,p,m,h,v;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.n;i=e.k;o=e.f},function(e){a=e.d;s=e.i;c=e.F;l=e.S;u=e.K;d=e.o},function(e){f=e.g},function(e){p=e.S;m=e.V;h=e.a},function(e){v=e.e}],execute:function(){var y=a.gql(__makeTemplateObject(["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"],["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"]));function _(){var e=this;var t=u();var r=c({namespace:p,initialValue:false}),n=r[0],a=r[1];var s=c({namespace:m,initialValue:t===null||t===void 0?void 0:t.email}),f=s[0],v=s[1];var _=l(h);var b=i(true),g=b[0],w=b[1];var S=d(y)[0];o((function(){var t=function(){return __awaiter(e,void 0,void 0,(function(){var e,t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,3,4]);return[4,S({})];case 1:n=o.sent();if(!n||n instanceof Error)throw new Error;if((e=n===null||n===void 0?void 0:n.viewer)===null||e===void 0?void 0:e.emailVerified)_(true);else if((r=(t=n===null||n===void 0?void 0:n.viewer)===null||t===void 0?void 0:t.managedIdentity)===null||r===void 0?void 0:r.emailVerified)_(true);return[3,4];case 2:i=o.sent();console.error("Could not fetch user information:",i);return[3,4];case 3:w(false);return[7];case 4:return[2]}}))}))};t()}),[]);var V=function(){_(true)};return{showCode:n,onVerification:V,loading:g}}var b=e("sqm_widget_verification",function(){function e(e){t(this,e);this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";this.emailStep_sendCodeErrorHeader="There was an error sending your code.";this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.";this.emailStep_emailLabel="Email";this.emailStep_sendCodeText="Send code";this.emailStep_emailValidationErrorText="Please enter a valid email";this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}";this.codeStep_resendCodeLabel="Resend code";this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}";this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.codeStep_verifyText="Verify";this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getStepTextProps=function(e){var t=f(this);return v(t,e)};e.prototype.render=function(){var e=s()?g():_(),t=e.showCode,n=e.onVerification,i=e.loading;if(i)return r("div",null);if(t){return r("sqm-code-verification",Object.assign({onVerification:n},this.getStepTextProps("codeStep_")))}return r("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_")))};return e}());function g(){var e=c({namespace:p,initialValue:false}),t=e[0],r=e[1];var n=c({namespace:m,initialValue:undefined}),i=n[0],o=n[1];var a=l(h);var s=function(){a(true)};return{showCode:t,onVerification:s,loading:false}}}}}));