@saasquatch/mint-components 2.4.1-8 → 2.4.1
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/sqm-big-stat_47.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +5 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -2
- package/dist/esm/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-940bc86b.system.entry.js +1 -0
- package/dist/mint-components/p-9b35d62f.entry.js +1 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +1 -1
- package/dist/types/components.d.ts +4 -4
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-03d9362e.system.entry.js +0 -1
- package/dist/mint-components/p-0f1aaee1.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": "2.4.1
|
|
4
|
+
"version": "2.4.1",
|
|
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
|
-
System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-2190dc73.system.js","./p-4691e9d5.system.js"],(function(t){"use strict";var e,r,n,i,o,s,l,a,f,u,c;return{setters:[function(t){e=t.r;r=t.h;n=t.c},function(t){i=t.b;o=t.n;s=t.k;l=t.f},function(t){a=t.I;f=t.b;u=t.i},function(t){c=t.V}],execute:function(){var d=i("sq:widget-verification");function v(t){var e=t.parent,r=t.callback;var n=new MutationObserver(o);var i=new MutationObserver(r);n.observe(e,{childList:true,subtree:false});o({addedNodes:e.querySelectorAll("template")});function o(t){var e;(e=t.addedNodes)===null||e===void 0?void 0:e.forEach((function(t){i.observe(t.content,{childList:true,attributes:true,subtree:true})}))}return function(){n.disconnect();i.disconnect()}}var y=t("sqm_widget_verification_controller",function(){function t(t){e(this,t);this.stateController='{"sqm-widget-verification-controller":{"isAuth":true}}';o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a({namespace:c,initialValue:false}),e=t[0],i=t[1];var o=JSON.parse(this.stateController);var y=(o===null||o===void 0?void 0:o["sqm-widget-verification-controller"])||o||{};var p=u()&&(y===null||y===void 0?void 0:y.isAuth);var h=s(undefined),m=h[0],b=h[1];var g=s(undefined),x=g[0],A=g[1];var w=f((function(){var t=x.querySelectorAll("template");var r=p||e;var n=Array.from(t).find((function(t){return t.slot===(r?"verified":"not-verified")}));if(n){var i=n.innerHTML||n.firstElementChild.outerHTML;if(i===m.innerHTML){d("don't rerender")}else if(n){m.innerHTML=i}}var o=Array.from(x.children).filter((function(t){return t.tagName==="RAISINS-PLOP-TARGET"}));if(o.length){var s=o.filter((function(t){return t.slot==="verified"}));var l=o.filter((function(t){return t.slot==="not-verified"}));l.forEach((function(t,e){if(r){t.style.display="none";return}if(e===l.length-1){t.style.bottom="0px";t.style.left="0px";t.style.right="0px";t.style.position="absolute"}t.style.height="25px"}));s.forEach((function(t,e){if(!r){t.style.display="none";return}if(e===s.length-1){t.style.bottom="0px";t.style.left="0px";t.style.right="0px";t.style.position="absolute"}t.style.height="25px"}))}}),[m,x,e,p,this.stateController]);l((function(){if(!m||!x){d("DOM not ready:");return}w();return v({parent:x,callback:w})}),[x,m,e,p,this.stateController]);return r(n,null,r("div",{ref:A,style:{display:"contents"}},r("slot",{name:"not-verified"}),r("slot",{name:"verified"})),r("div",{ref:b},r("slot",{name:"shown"})))};return t}())}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,c as i}from"./p-083180bf.js";import{b as s,n as r,k as n,f as o}from"./p-a7fc1e02.js";import{I as a,b as l,i as c}from"./p-8a6531d2.js";import{V as d}from"./p-4f9dc974.js";const f=s("sq:widget-verification"),p=class{constructor(t){e(this,t),this.stateController='{"sqm-widget-verification-controller":{"isAuth":true}}',r(this)}disconnectedCallback(){}render(){const[e,s]=a({namespace:d,initialValue:!1}),r=JSON.parse(this.stateController),p=(null==r?void 0:r["sqm-widget-verification-controller"])||r||{},u=c()&&(null==p?void 0:p.isAuth),[v,m]=n(void 0),[b,h]=n(void 0),x=l((()=>{const t=b.querySelectorAll("template"),i=u||e,s=Array.from(t).find((e=>e.slot===(i?"verified":"not-verified")));if(s){const e=s.innerHTML||s.firstElementChild.outerHTML;e===v.innerHTML?f("don't rerender"):s&&(v.innerHTML=e)}const r=Array.from(b.children).filter((e=>"RAISINS-PLOP-TARGET"===e.tagName));if(r.length){const e=r.filter((e=>"verified"===e.slot)),t=r.filter((e=>"not-verified"===e.slot));t.forEach(((e,s)=>{i?e.style.display="none":(s===t.length-1&&(e.style.bottom="0px",e.style.left="0px",e.style.right="0px",e.style.position="absolute"),e.style.height="25px")})),e.forEach(((t,s)=>{i?(s===e.length-1&&(t.style.bottom="0px",t.style.left="0px",t.style.right="0px",t.style.position="absolute"),t.style.height="25px"):t.style.display="none"}))}}),[v,b,e,u,this.stateController]);return o((()=>{if(v&&b)return x(),function({parent:e,callback:t}){const i=new MutationObserver(r),s=new MutationObserver(t);function r(e){var t;null===(t=e.addedNodes)||void 0===t||t.forEach((e=>{s.observe(e.content,{childList:!0,attributes:!0,subtree:!0})}))}return i.observe(e,{childList:!0,subtree:!1}),r({addedNodes:e.querySelectorAll("template")}),()=>{i.disconnect(),s.disconnect()}}({parent:b,callback:x});f("DOM not ready:")}),[b,v,e,u,this.stateController]),t(i,null,t("div",{ref:h,style:{display:"contents"}},t("slot",{name:"not-verified"}),t("slot",{name:"verified"})),t("div",{ref:m},t("slot",{name:"shown"})))}};export{p as sqm_widget_verification_controller}
|