@saasquatch/mint-components 1.13.0-19 → 1.13.0-21
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +11 -19
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +19 -1
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +14 -19
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +0 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-google-sign-in.entry.js +11 -19
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0a971223.entry.js +1 -0
- package/dist/mint-components/p-18c61d10.system.entry.js +1 -0
- package/dist/mint-components/p-2138dd19.system.js +1 -1
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-674c1f25.entry.js +0 -1
- package/dist/mint-components/p-d7b066a4.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.13.0-
|
|
4
|
+
"version": "1.13.0-21",
|
|
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 +0,0 @@
|
|
|
1
|
-
import{r as t,e as o,h as n}from"./p-c7c11325.js";import{k as e,m as s,f as i,n as c}from"./p-35b2fde0.js";import{g as l}from"./p-7b68894c.js";const u=class{constructor(n){t(this,n),this.initComplete=o(this,"initComplete",7),c(this)}disconnectedCallback(){}connectedCallback(){if(!document.head.querySelector('script[src="https://accounts.google.com/gsi/client"]')){const t=document.createElement("script");t.src="https://accounts.google.com/gsi/client",t.async=!0,document.head.appendChild(t)}}render(){const{setGoogleButtonDiv:t}=function(t){const[o,n]=e(!1),[c,u]=e(null),[r,a]=e(null),g=s(null);return i((()=>{let t=null;function o(){const o=document.querySelector(".register-button");console.log(o,"button"),o&&(a(o.clientWidth),null==t||t.disconnect())}return o(),t=new MutationObserver(o),t.observe(document.body,{childList:!0,subtree:!0}),()=>null==t?void 0:t.disconnect()}),[c]),i((()=>{function t(){clearTimeout(g.current),g.current=setTimeout((()=>{}),40)}return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),g.current&&clearTimeout(g.current)}}),[]),i((()=>{const o=()=>{window.onGoogleLibraryLoad=null;const o=l();"SquatchPortal"===o.type&&(google.accounts.id.initialize({client_id:o.env.googleOAuthId,callback:o=>{t.initComplete.emit(o)}}),n(!0))};window.google&&o(),window.onGoogleLibraryLoad=o}),[]),i((()=>{c&&o&&(c.id="google-button",google.accounts.id.renderButton(c,{theme:"outline",size:"large",text:t.text,height:40,width:r}))}),[c,o,r]),{setGoogleButtonDiv:u}}(this);return n("div",null,n("style",null,"\n .custom-google-button {\n width: 100%;\n max-width: 400px;\n height: 40px;\n }\n "),n("div",{ref:t}))}};export{u as sqm_google_sign_in}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-59b028db.system.js","./p-88e32c4a.system.js","./p-b3d03697.system.js"],(function(t){"use strict";var e,n,o,i,r,u,c,l;return{setters:[function(t){e=t.r;n=t.e;o=t.h},function(t){i=t.k;r=t.m;u=t.f;c=t.n},function(t){l=t.g}],execute:function(){function s(t){var e=i(false),n=e[0],o=e[1];var c=i(null),s=c[0],a=c[1];var d=i(null),g=d[0],f=d[1];var v=r(null);u((function(){var t=null;function e(){var e=document.querySelector(".register-button");console.log(e,"button");if(e){f(e.clientWidth);t===null||t===void 0?void 0:t.disconnect()}}e();t=new MutationObserver(e);t.observe(document.body,{childList:true,subtree:true});return function(){return t===null||t===void 0?void 0:t.disconnect()}}),[s]);u((function(){function t(){clearTimeout(v.current);v.current=setTimeout((function(){}),40)}window.addEventListener("resize",t);return function(){window.removeEventListener("resize",t);if(v.current)clearTimeout(v.current)}}),[]);u((function(){var e=function(){window.onGoogleLibraryLoad=null;var e=l();if(e.type!=="SquatchPortal")return;var n=function(e){t.initComplete.emit(e)};google.accounts.id.initialize({client_id:e.env.googleOAuthId,callback:n});o(true)};if(window.google)e();window.onGoogleLibraryLoad=e}),[]);u((function(){if(!s||!n)return;s.id="google-button";google.accounts.id.renderButton(s,{theme:"outline",size:"large",text:t.text,height:40,width:g})}),[s,n,g]);return{setGoogleButtonDiv:a}}var a=t("sqm_google_sign_in",function(){function t(t){e(this,t);this.initComplete=n(this,"initComplete",7);c(this)}t.prototype.disconnectedCallback=function(){};t.prototype.connectedCallback=function(){var t="https://accounts.google.com/gsi/client";if(!document.head.querySelector('script[src="'+t+'"]')){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client";e.async=true;document.head.appendChild(e)}};t.prototype.render=function(){var t=s(this).setGoogleButtonDiv;return o("div",null,o("style",null,"\n .custom-google-button {\n width: 100%;\n max-width: 400px;\n height: 40px;\n }\n "),o("div",{ref:t}))};return t}())}}}));
|