@maveio/components 0.0.143 → 0.0.145
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/{chunk-WB7GGUIW.cjs → chunk-EGSETJH4.cjs} +2 -2
- package/dist/{chunk-EZZMEYTK.js → chunk-EXLY3PBF.js} +1 -1
- package/dist/{chunk-OTQK4URW.js → chunk-INRJS7FJ.js} +1 -1
- package/dist/{chunk-UZPME2Y3.cjs → chunk-RIOGLZVH.cjs} +57 -57
- package/dist/{chunk-OL6DQODD.js → chunk-S6DLCNIM.js} +57 -57
- package/dist/{chunk-D3DTEHHZ.cjs → chunk-UHPDRE43.cjs} +2 -2
- package/dist/components/list.cjs +4 -4
- package/dist/components/list.js +3 -3
- package/dist/components/player.cjs +2 -2
- package/dist/components/player.js +1 -1
- package/dist/components/pop.cjs +4 -4
- package/dist/components/pop.js +2 -2
- package/dist/embed/api.d.cts +1 -1
- package/dist/embed/api.d.ts +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +3 -3
- package/dist/react.cjs +4 -4
- package/dist/react.js +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRIOGLZVH_cjs = require('./chunk-RIOGLZVH.cjs');
|
|
4
4
|
var chunkUEEYC5OJ_cjs = require('./chunk-UEEYC5OJ.cjs');
|
|
5
5
|
var chunk26S26OLO_cjs = require('./chunk-26S26OLO.cjs');
|
|
6
6
|
var chunkKGTAAGUE_cjs = require('./chunk-KGTAAGUE.cjs');
|
|
@@ -159,7 +159,7 @@ var i=class extends chunkKGTAAGUE_cjs.i{get backdrop(){return this._backdropColo
|
|
|
159
159
|
background-position: center center;
|
|
160
160
|
background-repeat: no-repeat;
|
|
161
161
|
}
|
|
162
|
-
`,chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c("dialog")],i.prototype,"_dialog",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".content")],i.prototype,"_content",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".frame")],i.prototype,"_frame",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".backdrop")],i.prototype,"_backdrop",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],i.prototype,"backdrop",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a({attribute:"backdrop-filter"})],i.prototype,"backdropFilter",1);window&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",i));function k(l){let d={};if(!l)return d;for(let t=0;t<l.attributes.length;t++){let a=l.attributes[t];d[a.name]=a.value;}return d}var w=l=>{function d(o){let e,r,n=document.querySelector(`mave-pop[embed="${o}"]`);if(n)return r=k(n.querySelector("mave-player")),e=n,{pop:e,attributes:r};let p=document.querySelector("mave-pop:not([embed])");return p?(r=k(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new i,document.body.appendChild(e),{pop:e})}function t(o,e){let r=new
|
|
162
|
+
`,chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c("dialog")],i.prototype,"_dialog",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".content")],i.prototype,"_content",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".frame")],i.prototype,"_frame",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".backdrop")],i.prototype,"_backdrop",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],i.prototype,"backdrop",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a({attribute:"backdrop-filter"})],i.prototype,"backdropFilter",1);window&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",i));function k(l){let d={};if(!l)return d;for(let t=0;t<l.attributes.length;t++){let a=l.attributes[t];d[a.name]=a.value;}return d}var w=l=>{function d(o){let e,r,n=document.querySelector(`mave-pop[embed="${o}"]`);if(n)return r=k(n.querySelector("mave-player")),e=n,{pop:e,attributes:r};let p=document.querySelector("mave-pop:not([embed])");return p?(r=k(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new i,document.body.appendChild(e),{pop:e})}function t(o,e){let r=new chunkRIOGLZVH_cjs.a;if(e)for(let n in e)r.setAttribute(n,e[n]);return r.embed=o,r}function a(o){o.querySelectorAll("[x-mave-pop]").forEach(e=>{let r=e.getAttribute("x-mave-pop")||e.getAttribute("embed");if(!r)return;let{pop:n,attributes:p}=d(r);t(r,p),e.addEventListener("click",E=>{E.preventDefault();let _=document.querySelectorAll("mave-player");if(!Array.from(_).find(m=>m.popped)){let m=t(r,p);n.open(m).then(()=>{m.play();}),n.addEventListener("closed",()=>{m.pause();});}});});}a(l),new MutationObserver(o=>{for(let e of o)e.type==="childList"&&e.addedNodes.forEach(r=>{r instanceof HTMLElement&&a(r);});}).observe(document.body,{childList:!0,subtree:!0});};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{w(document);}):setTimeout(()=>w(document),500);
|
|
163
163
|
|
|
164
164
|
exports.a = i;
|
|
165
165
|
exports.b = w;
|