@maveio/components 0.0.172 → 0.0.174
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-3FKZJPP6.cjs +2 -0
- package/dist/chunk-HDVI5ING.js +2583 -0
- package/dist/chunk-KCEF7VQS.cjs +2583 -0
- package/dist/chunk-SWNRHAZK.js +2 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +9 -3
- package/dist/config.d.ts +9 -3
- package/dist/config.js +1 -1
- package/dist/de-4HGSV4NX.cjs +1 -0
- package/dist/de-AM53RBF2.js +1 -0
- package/dist/{themes/default.cjs → default-LFHA4VXP.cjs} +3 -3
- package/dist/{themes/default.js → default-OIQBJJAX.js} +3 -3
- package/dist/{themes/dolphin.cjs → dolphin-B2Z26DWX.cjs} +2 -2
- package/dist/{themes/dolphin.js → dolphin-JJOJS5EI.js} +2 -2
- package/dist/en-H7UBETC6.js +1 -0
- package/dist/en-M6OWHDJ2.cjs +1 -0
- package/dist/fr-2IL2CZKO.js +1 -0
- package/dist/fr-OXQSVAX4.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +470 -16
- package/dist/index.d.ts +470 -16
- package/dist/index.js +1 -1
- package/dist/nl-CPFN66G7.js +1 -0
- package/dist/nl-YHUQM5IK.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.cts +2 -11
- package/dist/react.d.ts +2 -11
- package/dist/react.js +1 -1
- package/dist/{themes/synthwave.cjs → synthwave-JAIVYLQN.cjs} +2 -2
- package/dist/{themes/synthwave.js → synthwave-X45G4Z3J.js} +2 -2
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +1 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +1 -1
- package/package.json +7 -2
- package/dist/chunk-2E5GLLOS.cjs +0 -19
- package/dist/chunk-2FUCHY2J.cjs +0 -35
- package/dist/chunk-2JCNQPEK.js +0 -1
- package/dist/chunk-3BAQWQNY.cjs +0 -25
- package/dist/chunk-3UQNIS3L.js +0 -194
- package/dist/chunk-474VILDO.cjs +0 -194
- package/dist/chunk-5NKBIUPL.cjs +0 -1
- package/dist/chunk-5PIHL662.js +0 -19
- package/dist/chunk-5ZZKAVXJ.js +0 -38
- package/dist/chunk-6DDQAAOQ.cjs +0 -211
- package/dist/chunk-AOBEOJ2U.cjs +0 -10
- package/dist/chunk-B5K5JDPC.cjs +0 -7
- package/dist/chunk-B6P2GJBQ.js +0 -9
- package/dist/chunk-BL5IEXIA.cjs +0 -1
- package/dist/chunk-BTCK3T4L.cjs +0 -24
- package/dist/chunk-CNPQ5Q2M.js +0 -1
- package/dist/chunk-CVXHA76S.js +0 -3
- package/dist/chunk-CWZPXTU2.cjs +0 -154
- package/dist/chunk-DL4BV5IH.cjs +0 -24
- package/dist/chunk-DXS4BF7U.js +0 -33
- package/dist/chunk-EVKPEPYP.cjs +0 -2
- package/dist/chunk-FAONFKQ2.cjs +0 -9
- package/dist/chunk-GXOLIMQT.js +0 -1
- package/dist/chunk-HMVS6DJE.js +0 -186
- package/dist/chunk-IBQULJZC.cjs +0 -3
- package/dist/chunk-J7OISSKU.cjs +0 -1
- package/dist/chunk-JN3JQJEF.js +0 -1639
- package/dist/chunk-K5Z7QHTN.cjs +0 -1
- package/dist/chunk-KHVG2CY5.js +0 -7
- package/dist/chunk-KNLOZXCA.cjs +0 -33
- package/dist/chunk-KO3CETGD.js +0 -25
- package/dist/chunk-KZGLJUFY.cjs +0 -38
- package/dist/chunk-LVGLIRQU.cjs +0 -186
- package/dist/chunk-MK4VIJT3.js +0 -1
- package/dist/chunk-MMHEOMF5.js +0 -9
- package/dist/chunk-NDPOBFNC.js +0 -20
- package/dist/chunk-NPP5B5PV.cjs +0 -16
- package/dist/chunk-OX42Y2HR.js +0 -1
- package/dist/chunk-P6SBZPDR.js +0 -1
- package/dist/chunk-PTN427IG.js +0 -24
- package/dist/chunk-QFF6OUH6.js +0 -9
- package/dist/chunk-QOM4AP6R.cjs +0 -9
- package/dist/chunk-QQDH35OW.cjs +0 -9
- package/dist/chunk-R3SDTEHC.js +0 -9
- package/dist/chunk-RHTBV6KZ.js +0 -24
- package/dist/chunk-RKL7JR7S.js +0 -211
- package/dist/chunk-RQN3DXJB.cjs +0 -1
- package/dist/chunk-RRCW5BBR.cjs +0 -9
- package/dist/chunk-S3D62CAG.js +0 -154
- package/dist/chunk-SDKTBB4N.cjs +0 -1
- package/dist/chunk-SWRFZ3FV.js +0 -1
- package/dist/chunk-TAKTIPT7.cjs +0 -1639
- package/dist/chunk-TH3DUBVR.js +0 -35
- package/dist/chunk-TJ5F2FGY.cjs +0 -20
- package/dist/chunk-TKJYRGEU.cjs +0 -1
- package/dist/chunk-WE5NUDRY.js +0 -0
- package/dist/chunk-WOXKZOJ3.js +0 -10
- package/dist/chunk-X7OGQ4KH.cjs +0 -1
- package/dist/chunk-YPCQNE3R.js +0 -16
- package/dist/chunk-ZTDQPDC6.js +0 -2
- package/dist/components/audio-track-menu.cjs +0 -1
- package/dist/components/audio-track-menu.d.cts +0 -27
- package/dist/components/audio-track-menu.d.ts +0 -27
- package/dist/components/audio-track-menu.js +0 -1
- package/dist/components/captions-menu-button.cjs +0 -1
- package/dist/components/captions-menu-button.d.cts +0 -10
- package/dist/components/captions-menu-button.d.ts +0 -10
- package/dist/components/captions-menu-button.js +0 -1
- package/dist/components/clip.cjs +0 -1
- package/dist/components/clip.d.cts +0 -55
- package/dist/components/clip.d.ts +0 -55
- package/dist/components/clip.js +0 -1
- package/dist/components/files.cjs +0 -1
- package/dist/components/files.d.cts +0 -22
- package/dist/components/files.d.ts +0 -22
- package/dist/components/files.js +0 -1
- package/dist/components/img.cjs +0 -1
- package/dist/components/img.d.cts +0 -16
- package/dist/components/img.d.ts +0 -16
- package/dist/components/img.js +0 -1
- package/dist/components/list.cjs +0 -1
- package/dist/components/list.d.cts +0 -29
- package/dist/components/list.d.ts +0 -29
- package/dist/components/list.js +0 -1
- package/dist/components/player.cjs +0 -1
- package/dist/components/player.d.cts +0 -104
- package/dist/components/player.d.ts +0 -104
- package/dist/components/player.js +0 -1
- package/dist/components/pop.cjs +0 -1
- package/dist/components/pop.d.cts +0 -37
- package/dist/components/pop.d.ts +0 -37
- package/dist/components/pop.js +0 -1
- package/dist/components/text.cjs +0 -1
- package/dist/components/text.d.cts +0 -55
- package/dist/components/text.d.ts +0 -55
- package/dist/components/text.js +0 -1
- package/dist/components/upload.cjs +0 -1
- package/dist/components/upload.d.cts +0 -94
- package/dist/components/upload.d.ts +0 -94
- package/dist/components/upload.js +0 -1
- package/dist/embed/api.cjs +0 -1
- package/dist/embed/api.d.cts +0 -112
- package/dist/embed/api.d.ts +0 -112
- package/dist/embed/api.js +0 -1
- package/dist/embed/caption.cjs +0 -1
- package/dist/embed/caption.d.cts +0 -24
- package/dist/embed/caption.d.ts +0 -24
- package/dist/embed/caption.js +0 -1
- package/dist/embed/controller.cjs +0 -1
- package/dist/embed/controller.d.cts +0 -34
- package/dist/embed/controller.d.ts +0 -34
- package/dist/embed/controller.js +0 -1
- package/dist/embed/socket.cjs +0 -1
- package/dist/embed/socket.d.cts +0 -14
- package/dist/embed/socket.d.ts +0 -14
- package/dist/embed/socket.js +0 -1
- package/dist/generated/locales/de.cjs +0 -1
- package/dist/generated/locales/de.d.cts +0 -17
- package/dist/generated/locales/de.d.ts +0 -17
- package/dist/generated/locales/de.js +0 -1
- package/dist/generated/locales/en.cjs +0 -1
- package/dist/generated/locales/en.d.cts +0 -17
- package/dist/generated/locales/en.d.ts +0 -17
- package/dist/generated/locales/en.js +0 -1
- package/dist/generated/locales/fr.cjs +0 -1
- package/dist/generated/locales/fr.d.cts +0 -17
- package/dist/generated/locales/fr.d.ts +0 -17
- package/dist/generated/locales/fr.js +0 -1
- package/dist/generated/locales/nl.cjs +0 -1
- package/dist/generated/locales/nl.d.cts +0 -17
- package/dist/generated/locales/nl.d.ts +0 -17
- package/dist/generated/locales/nl.js +0 -1
- package/dist/themes/default.d.cts +0 -3
- package/dist/themes/default.d.ts +0 -3
- package/dist/themes/dolphin.d.cts +0 -3
- package/dist/themes/dolphin.d.ts +0 -3
- package/dist/themes/loader.cjs +0 -1
- package/dist/themes/loader.d.cts +0 -11
- package/dist/themes/loader.d.ts +0 -11
- package/dist/themes/loader.js +0 -1
- package/dist/themes/synthwave.d.cts +0 -3
- package/dist/themes/synthwave.d.ts +0 -3
- package/dist/utils/localization.cjs +0 -1
- package/dist/utils/localization.d.cts +0 -24
- package/dist/utils/localization.d.ts +0 -24
- package/dist/utils/localization.js +0 -1
- package/dist/utils/mave_element.cjs +0 -1
- package/dist/utils/mave_element.d.cts +0 -19
- package/dist/utils/mave_element.d.ts +0 -19
- package/dist/utils/mave_element.js +0 -1
- package/dist/utils/origin.cjs +0 -1
- package/dist/utils/origin.d.cts +0 -3
- package/dist/utils/origin.d.ts +0 -3
- package/dist/utils/origin.js +0 -1
- package/dist/utils/video_events.cjs +0 -1
- package/dist/utils/video_events.d.cts +0 -3
- package/dist/utils/video_events.d.ts +0 -3
- package/dist/utils/video_events.js +0 -1
package/dist/chunk-TH3DUBVR.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-B6P2GJBQ.js';import {a as a$2}from'./chunk-CNPQ5Q2M.js';import {a as a$4}from'./chunk-R3SDTEHC.js';import {a as a$1,b}from'./chunk-PTN427IG.js';import {g,e as e$1,a as a$5}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c,e,g as g$1}from'./chunk-KA24PL7V.js';var o,k,C,S,n=class extends g{constructor(){super(...arguments);e(this,o);this._clickable=true;this._autoscroll=true;this._lastScrollTime=0;this.currentTime=0;}get embed(){return this._embedId}set embed(t){this._embedId!=t&&(this._embedId=t,this.captionController=new a$2(this,this.embed),this.reset(),this.requestUpdate("embed"));}get clickable(){return this._clickable}set clickable(t){this._clickable!=t&&(typeof t=="string"?this._clickable=t==="true"||t==="":this._clickable=t,this.requestUpdate("clickable"));}get autoscroll(){return this._autoscroll}set autoscroll(t){this._autoscroll!=t&&(typeof t=="string"?this._autoscroll=t==="true"||t==="":this._autoscroll=t,this.requestUpdate("autoscroll"));}get wordIndex(){return this._wordIndex}set wordIndex(t){if(this._wordIndex!=t&&(this._wordIndex=t,this.autoscroll)){let e=this.shadowRoot?.querySelector(`[data-word-id="word-${this.segmentIndex}-${this.wordIndex}"]`);if(e&&this._lastScrollTime+2500<Date.now()){let r=this.getBoundingClientRect(),i=e.getBoundingClientRect(),s=i.top-r.top;if(s>0){let c=this.scrollTop+s;g$1(this,o,k).call(this,this,c-i.height/2);}}}}get segmentIndex(){return this._segmentIndex}set segmentIndex(t){this._segmentIndex!=t&&(this._segmentIndex=t);}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",g$1(this,o,C).bind(this)),this.reset();}reset(){if(typeof document>"u")return;this.loop=false,this.currentTime=0,this.wordIndex=0,this.segmentIndex=0;let t=document.querySelector(`mave-player[embed="${this.embed}"]`);t&&(this.player=t,t.addEventListener("play",()=>{this.loop=true,this.loopUpdateTime();}),t.addEventListener("pause",()=>{this.loop=false;}));}updateTime(){this.currentTime=this.player.currentTime;}loopUpdateTime(){this.updateTime(),setTimeout(()=>{this.loop&&requestAnimationFrame(this.loopUpdateTime.bind(this));},10);}inRange({start:t,end:e},r,i,s){if(this.currentTime>=t&&this.currentTime<=e)return s&&(this.wordIndex=s),i&&(this.segmentIndex=i),r||true}segmentStyle(){return this.clickable?{cursor:"pointer"}:{}}wordStyle(t){return t?{"background-color":this.highlight}:{}}render(){return this.captionController?this.captionController.render({complete:t=>(this.captions=t,a$5`
|
|
2
|
-
<div>
|
|
3
|
-
${this.captions.segments.map((e,r)=>a$5`
|
|
4
|
-
<p
|
|
5
|
-
data-segment-id="segment-${r}"
|
|
6
|
-
style=${a$3(this.segmentStyle())}
|
|
7
|
-
@click=${this.clickable?g$1(this,o,S):e$1}
|
|
8
|
-
part=${a$4(this.inRange(e,"segment"))}
|
|
9
|
-
x-caption-segment-start="${e.start}"
|
|
10
|
-
x-caption-segment-end="${e.end}"
|
|
11
|
-
>
|
|
12
|
-
${e.words.map((i,s)=>a$5`
|
|
13
|
-
<span
|
|
14
|
-
data-word-id="word-${r}-${s}"
|
|
15
|
-
style=${a$3(this.wordStyle(this.inRange(i)))}
|
|
16
|
-
part=${a$4(this.inRange(i,"word",r,s))}
|
|
17
|
-
x-caption-word-start="${i.start}"
|
|
18
|
-
x-caption-word-end="${i.end}"
|
|
19
|
-
>${i.word.trim()}</span
|
|
20
|
-
>
|
|
21
|
-
`)}
|
|
22
|
-
</p>
|
|
23
|
-
`)}
|
|
24
|
-
</div>
|
|
25
|
-
`)}):e$1}};o=new WeakSet,k=function(t,e,r=500){let i=this.scrollTop,s=e-i,c=null,p=false;function w(l){c||(c=l);let y=l-c,v=Math.min(y/r,1);t.scrollTop=i+s*x(v),y<r&&p?requestAnimationFrame(w):p=false;}function x(l){return l<.5?2*l*l:1-Math.pow(-2*l+2,2)/2}p=true,requestAnimationFrame(w);},C=function(){this._lastScrollTime=Date.now();},S=function(t){if(this.clickable){let e=t.target.closest("p");if(e&&this.player){let r=e.getAttribute("x-caption-segment-start");this.player.currentTime=Number(r),this.player.paused&&this.player.play();}}},n.styles=a`
|
|
26
|
-
:host {
|
|
27
|
-
display: block;
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 100%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
[part='word'] {
|
|
33
|
-
background-color: rgba(255, 210, 42, 0.5);
|
|
34
|
-
}
|
|
35
|
-
`,c([a$1()],n.prototype,"embed",1),c([a$1()],n.prototype,"highlight",2),c([a$1()],n.prototype,"clickable",1),c([a$1()],n.prototype,"autoscroll",1),c([b()],n.prototype,"currentTime",2),c([b()],n.prototype,"captions",2);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-text")||window.customElements.define("mave-text",n));export{n as a};
|
package/dist/chunk-TJ5F2FGY.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkTKJYRGEU_cjs=require('./chunk-TKJYRGEU.cjs'),chunkRQN3DXJB_cjs=require('./chunk-RQN3DXJB.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var i,l,C,R,g,v,w,z,L,U,F,y,f=class extends chunkTKJYRGEU_cjs.a{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,i);this.embedController=new chunkRQN3DXJB_cjs.b(this);}get embed(){return this._embed}set embed(e){this._embed!==e&&(this._embed=e,this.requestUpdate("embed"),this.embedController.embed=this.embed);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}render(){return chunk2E5GLLOS_cjs.a`
|
|
2
|
-
${this.embedController.render({pending:this.renderPending,complete:e=>{if(this._data=e,!e)return;let n=chunkJHSFSCC2_cjs.g(this,i,U).call(this),t=chunkJHSFSCC2_cjs.g(this,i,F).call(this),o=this._slottedChildren.map(a=>{function h(){let s;return a.nodeName==="TEMPLATE"?s=a.content.cloneNode(true):s=a.cloneNode(true),s}if(a.getAttribute("name")=="mave-files-video"){if(!n)return;let s=h(),d=Number(this._data.created_at),m=d&&d<1e12?d*1e3:d;Number.isFinite(m)&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"date",new Date(m).toLocaleDateString().replaceAll("/","-"));let p=this._data.video.duration;p&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"duration",this.durationToTime(p));let u=this._data.video.filetype;u&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"filetype",u);let k=n.file_size||this._data.video.size;k&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"size",chunkJHSFSCC2_cjs.g(this,i,v).call(this,k));let M=chunkJHSFSCC2_cjs.g(this,i,z).call(this,n),S=n.container||"mp4",b=chunkJHSFSCC2_cjs.g(this,i,g).call(this,M,`${this._data.name}.${S}`);return b.setAttribute("aria-label","Download video"),b.appendChild(s),chunk2E5GLLOS_cjs.a`${b}`}if(t&&a.getAttribute("name")=="mave-files-audio"){let s=h(),d=t.codec||chunkJHSFSCC2_cjs.g(this,i,y).call(this,t.filename)||"mp3";chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"filetype",d);let m=t.file_size;m&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"size",chunkJHSFSCC2_cjs.g(this,i,v).call(this,m));let p=chunkJHSFSCC2_cjs.g(this,i,L).call(this,t),u=chunkJHSFSCC2_cjs.g(this,i,g).call(this,p,t.filename||`${this._data.name}.${d}`);return u.setAttribute("aria-label","Download audio"),u.appendChild(s),chunk2E5GLLOS_cjs.a`${u}`}let _=this._data.subtitles.find(s=>s.language==this._data.video.language);if(_&&a.getAttribute("name")=="mave-files-subtitles"){let s=h();chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"filetype","vtt");let d=chunkJHSFSCC2_cjs.g(this,i,g).call(this,_.path,`${this._data.name}.vtt`);return d.setAttribute("aria-label","Download subtitles"),d.appendChild(s),chunk2E5GLLOS_cjs.a`${d}`}});return chunk2E5GLLOS_cjs.a`${this._stylesheets} ${o}`}})}
|
|
3
|
-
`}renderPending(){return chunk2E5GLLOS_cjs.a`<slot style="display: none"></slot>`}};i=new WeakSet,l=function(e,n,t){let o=e.querySelector(`[slot="${n}"], [data-slot="${n}"]`);o&&(o.textContent=t,o.removeAttribute("slot"),o.removeAttribute("data-slot"));},C=function(e,n){let t=window.URL.createObjectURL(e),o=document.createElement("a");o.style.display="none",o.href=t,o.download=n,this.appendChild(o),o.click(),window.URL.revokeObjectURL(t),this.removeChild(o);},R=function(e,n){return fetch(e).then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.blob()}).then(t=>chunkJHSFSCC2_cjs.g(this,i,C).call(this,t,n)).catch(t=>console.error("Something went wrong:",t))},g=function(e,n){let t=document.createElement("a");t.classList.add("link"),t.setAttribute("href",e),t.setAttribute("download",n),t.setAttribute("target","new");let o=false;return t.addEventListener("click",a=>{a.preventDefault(),!o&&(o=true,t.style.cursor="wait",t.style.opacity="0.5",chunkJHSFSCC2_cjs.g(this,i,R).call(this,e,n).then(()=>{o=false,t.style.cursor="pointer",t.style.opacity="1";}));}),t},v=function(e){let n=e/1e6;if(n<10)return `${n.toFixed(1)} MB`;let t=n%1!==0;return `${n.toFixed(t?1:0)} MB`},w=function(e){let n=this._data?.video?.version&&this._data.video.version>0?`v${this._data.video.version}/`:"";return `${this.cdn_root}/${this.embedId}/${n}${e}`},z=function(e){let n=e?.codec||"h264",t=e?.size||"hd",o=e?.container||"mp4";return chunkJHSFSCC2_cjs.g(this,i,w).call(this,`${n}_${t}.${o}`)},L=function(e){if(e?.path)return e.path;let n=e?.codec||chunkJHSFSCC2_cjs.g(this,i,y).call(this,e?.filename||"")||"mp3";return chunkJHSFSCC2_cjs.g(this,i,w).call(this,`audio.${n}`)},U=function(){let e=this._data?.video?.renditions||[];if(!e.length)return;let n=e.filter(o=>o.container==="mp4"&&o.codec==="h264"&&(!o.type||o.type==="video")),t=["hd","fhd","sd","qhd","uhd"];for(let o of t){let a=n.find(h=>h.size===o);if(a)return a}return n[0]||e.find(o=>o.type==="video")},F=function(){let e=this._data?.audio_tracks||[];if(e.length)return e.find(n=>n.default)||e[0]},y=function(e){if(!e)return;let n=e.split(".");return n.length>1?n.pop():void 0},f.styles=chunkNPP5B5PV_cjs.a`
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
--link-color: #006fc6;
|
|
7
|
-
--link-decoration: underline;
|
|
8
|
-
--link-decoration-thickness: 1px;
|
|
9
|
-
--link-decoration-offset: 1px;
|
|
10
|
-
--link-cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
a {
|
|
14
|
-
text-decoration: var(--link-decoration);
|
|
15
|
-
text-decoration-thickness: var(--link-decoration-thickness);
|
|
16
|
-
text-underline-offset: var(--link-decoration-thickness);
|
|
17
|
-
color: var(--link-color);
|
|
18
|
-
cursor: var(--link-cursor);
|
|
19
|
-
}
|
|
20
|
-
`,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a({type:String})],f.prototype,"embed",1);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-files")||window.customElements.define("mave-files",f));exports.a=f;
|
package/dist/chunk-TKJYRGEU.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var s=class extends chunk2E5GLLOS_cjs.g{constructor(){super(...arguments);this.EVENT_TYPES={CLICK:"user_click"};}get embed(){return this._embed}set embed(t){this._embed=t;}get embedId(){return this._embed?.substring(5,this._embed?.length)}get spaceId(){return this.embed?.substring(0,5)}get cdn_root(){return chunkEVKPEPYP_cjs.a.cdn.endpoint.replace("${this.spaceId}",this.spaceId)}get _stylesheets(){if(typeof document>"u")return chunk2E5GLLOS_cjs.a``;let t=document.querySelectorAll('style, link[rel="stylesheet"]');return chunk2E5GLLOS_cjs.a`${Array.from(t).map(e=>e.cloneNode(true))}`}durationToTime(t){let e=Math.floor(t),n=Math.floor(e/3600),i=Math.floor(e%3600/60),o=e%60;return n>0?`${n}:${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${i}:${o.toString().padStart(2,"0")}`}emit(t,e){this.dispatchEvent(new CustomEvent(`mave:${t}`,{detail:{...e,eventType:t}})),this.dispatchEvent(new CustomEvent("mave:*",{detail:{...e,eventType:t}}));}};chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a({type:String})],s.prototype,"embed",1);exports.a=s;
|
package/dist/chunk-WE5NUDRY.js
DELETED
|
File without changes
|
package/dist/chunk-WOXKZOJ3.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-SWRFZ3FV.js';import {a as a$2}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';var e=class extends a$1{get poster(){return `${this.cdn_root}/${this.embedId}/poster.webp`}render(){return a$2`<img src=${this.poster} />`}};e.styles=a`
|
|
2
|
-
:host {
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
img {
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-height: 100vh;
|
|
9
|
-
}
|
|
10
|
-
`;typeof window<"u"&&window.customElements&&(window.customElements.get("mave-img")||window.customElements.define("mave-img",e));export{e as a};
|
package/dist/chunk-X7OGQ4KH.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');var i=chunkEVKPEPYP_cjs.a.api.endpoint;exports.a=i;
|
package/dist/chunk-YPCQNE3R.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var d=globalThis,u=d.ShadowRoot&&(d.ShadyCSS===void 0||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),E=new WeakMap,l=class{constructor(t,e,s){if(this._$cssResult$=true,s!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o,e=this.t;if(u&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=E.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&E.set(e,t));}return t}toString(){return this.cssText}},_=r=>new l(typeof r=="string"?r:r+"",void 0,f),v=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===true)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new l(e,r,f)},$=(r,t)=>{if(u)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=d.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s);}},S=u?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return _(e)})(r):r;var {is:w,defineProperty:P,getOwnPropertyDescriptor:C,getOwnPropertyNames:U,getOwnPropertySymbols:A,getPrototypeOf:O}=Object,a=globalThis,m=a.trustedTypes,R=m?m.emptyScript:"",M=a.reactiveElementPolyfillSupport,p=(r,t)=>r,y={toAttribute(r,t){switch(t){case Boolean:r=r?R:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r);}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r);}catch{e=null;}}return e}},b=(r,t)=>!w(r,t),g={attribute:true,type:String,converter:y,reflect:false,useDefault:false,hasChanged:b};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),a.litPropertyMetadata??(a.litPropertyMetadata=new WeakMap);var c=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=g){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&P(this.prototype,t,i);}}static getPropertyDescriptor(t,e,s){let{get:i,set:o}=C(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n;}};return {get:i,set(n){let h=i?.call(this);o?.call(this,n),this.requestUpdate(t,h,s);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??g}static _$Ei(){if(this.hasOwnProperty(p("elementProperties")))return;let t=O(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(p("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(p("properties"))){let e=this.properties,s=[...U(e),...A(e)];for(let i of s)this.createProperty(i,e[i]);}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i);}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(S(i));}else t!==void 0&&e.push(S(t));return e}static _$Eu(t,e){let s=e.attribute;return s===false?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this));}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t);}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(true),this._$EO?.forEach(t=>t.hostConnected?.());}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.());}attributeChangedCallback(t,e,s){this._$AK(t,s);}_$ET(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===true){let o=(s.converter?.toAttribute!==void 0?s.converter:y).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null;}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:y;this._$Em=i;let h=n.fromAttribute(e,o.type);this[i]=h??this._$Ej?.get(i)??h,this._$Em=null;}}requestUpdate(t,e,s,i=false,o){if(t!==void 0){let n=this.constructor;if(i===false&&(o=this[t]),s??(s=n.getPropertyOptions(t)),!((s.hasChanged??b)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s);}this.isUpdatePending===false&&(this._$ES=this._$EP());}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==true||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===true&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(e){Promise.reject(e);}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0;}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,o]of s){let{wrapped:n}=o,h=this[i];n!==true||this._$AL.has(i)||h===void 0||this.C(i,void 0,o,h);}}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(e);}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM();}updated(t){}firstUpdated(t){}};c.elementStyles=[],c.shadowRootOptions={mode:"open"},c[p("elementProperties")]=new Map,c[p("finalized")]=new Map,M?.({ReactiveElement:c}),(a.reactiveElementVersions??(a.reactiveElementVersions=[])).push("2.1.2");/*! Bundled license information:
|
|
2
|
-
|
|
3
|
-
@lit/reactive-element/css-tag.js:
|
|
4
|
-
(**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright 2019 Google LLC
|
|
7
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
-
*)
|
|
9
|
-
|
|
10
|
-
@lit/reactive-element/reactive-element.js:
|
|
11
|
-
(**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2017 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*)
|
|
16
|
-
*/export{v as a,y as b,b as c,c as d};
|
package/dist/chunk-ZTDQPDC6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={metrics:{enabled:true,endpoint:"https://metrics.video-dns.com/v1/events"},upload:{socket:"wss://app.mave.io/api/v1/socket",endpoint:"https://upload.mave.io/files"},api:{endpoint:"https://mave.io/api/v1"},cdn:{endpoint:"https://space-${this.spaceId}.video-dns.com"}};function o(t){Object.assign(e,t);}
|
|
2
|
-
export{e as a,o as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkLVGLIRQU_cjs=require('../chunk-LVGLIRQU.cjs');require('../chunk-474VILDO.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveAudioTrackMenu",{enumerable:true,get:function(){return chunkLVGLIRQU_cjs.f}});Object.defineProperty(exports,"MaveAudioTrackMenuButton",{enumerable:true,get:function(){return chunkLVGLIRQU_cjs.g}});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { MediaChromeMenu } from 'media-chrome/dist/menu/media-chrome-menu.js';
|
|
2
|
-
import { MediaChromeMenuButton } from 'media-chrome/dist/menu/media-chrome-menu-button.js';
|
|
3
|
-
|
|
4
|
-
type AudioTrackOption = {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
language?: string;
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare class MaveAudioTrackMenu extends MediaChromeMenu {
|
|
11
|
-
#private;
|
|
12
|
-
get tracks(): AudioTrackOption[];
|
|
13
|
-
set tracks(value: AudioTrackOption[]);
|
|
14
|
-
get selected(): string | undefined;
|
|
15
|
-
set selected(id: string | undefined);
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
disconnectedCallback(): void;
|
|
18
|
-
}
|
|
19
|
-
declare class MaveAudioTrackMenuButton extends MediaChromeMenuButton {
|
|
20
|
-
#private;
|
|
21
|
-
static getSlotTemplateHTML: () => string;
|
|
22
|
-
static getTooltipContentHTML: () => string;
|
|
23
|
-
connectedCallback(): void;
|
|
24
|
-
get invokeTargetElement(): HTMLElement | null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { MaveAudioTrackMenu, MaveAudioTrackMenuButton };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { MediaChromeMenu } from 'media-chrome/dist/menu/media-chrome-menu.js';
|
|
2
|
-
import { MediaChromeMenuButton } from 'media-chrome/dist/menu/media-chrome-menu-button.js';
|
|
3
|
-
|
|
4
|
-
type AudioTrackOption = {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
language?: string;
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare class MaveAudioTrackMenu extends MediaChromeMenu {
|
|
11
|
-
#private;
|
|
12
|
-
get tracks(): AudioTrackOption[];
|
|
13
|
-
set tracks(value: AudioTrackOption[]);
|
|
14
|
-
get selected(): string | undefined;
|
|
15
|
-
set selected(id: string | undefined);
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
disconnectedCallback(): void;
|
|
18
|
-
}
|
|
19
|
-
declare class MaveAudioTrackMenuButton extends MediaChromeMenuButton {
|
|
20
|
-
#private;
|
|
21
|
-
static getSlotTemplateHTML: () => string;
|
|
22
|
-
static getTooltipContentHTML: () => string;
|
|
23
|
-
connectedCallback(): void;
|
|
24
|
-
get invokeTargetElement(): HTMLElement | null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { MaveAudioTrackMenu, MaveAudioTrackMenuButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{f as MaveAudioTrackMenu,g as MaveAudioTrackMenuButton}from'../chunk-HMVS6DJE.js';import'../chunk-3UQNIS3L.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk3BAQWQNY_cjs=require('../chunk-3BAQWQNY.cjs');require('../chunk-474VILDO.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveCaptionsMenuButton",{enumerable:true,get:function(){return chunk3BAQWQNY_cjs.h}});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MediaCaptionsMenuButton } from 'media-chrome/dist/menu/media-captions-menu-button.js';
|
|
2
|
-
|
|
3
|
-
declare class MaveCaptionsMenuButton extends MediaCaptionsMenuButton {
|
|
4
|
-
#private;
|
|
5
|
-
static getTooltipContentHTML: () => string;
|
|
6
|
-
connectedCallback(): void;
|
|
7
|
-
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { MaveCaptionsMenuButton };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MediaCaptionsMenuButton } from 'media-chrome/dist/menu/media-captions-menu-button.js';
|
|
2
|
-
|
|
3
|
-
declare class MaveCaptionsMenuButton extends MediaCaptionsMenuButton {
|
|
4
|
-
#private;
|
|
5
|
-
static getTooltipContentHTML: () => string;
|
|
6
|
-
connectedCallback(): void;
|
|
7
|
-
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { MaveCaptionsMenuButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{h as MaveCaptionsMenuButton}from'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/clip.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkKZGLJUFY_cjs=require('../chunk-KZGLJUFY.cjs');require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-FAONFKQ2.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkKZGLJUFY_cjs.a}});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
|
|
5
|
-
interface Source {
|
|
6
|
-
media?: number | undefined;
|
|
7
|
-
codec: string;
|
|
8
|
-
src: string;
|
|
9
|
-
}
|
|
10
|
-
declare class Clip extends LitElement {
|
|
11
|
-
#private;
|
|
12
|
-
private _embedId;
|
|
13
|
-
get embed(): string;
|
|
14
|
-
set embed(value: string);
|
|
15
|
-
autoplay?: 'always' | 'off' | 'true' | 'scroll' | 'lazy';
|
|
16
|
-
quality: string;
|
|
17
|
-
fallback?: 'placeholder' | 'thumbnail';
|
|
18
|
-
private _loop?;
|
|
19
|
-
set loop(value: boolean | string);
|
|
20
|
-
get loop(): boolean;
|
|
21
|
-
private _poster?;
|
|
22
|
-
get poster(): string;
|
|
23
|
-
set poster(value: string | null);
|
|
24
|
-
private _token;
|
|
25
|
-
get token(): string;
|
|
26
|
-
set token(value: string);
|
|
27
|
-
get sources(): Source[];
|
|
28
|
-
private _videoElement?;
|
|
29
|
-
private _queue;
|
|
30
|
-
private _failedPlay;
|
|
31
|
-
private _intersectionObserver;
|
|
32
|
-
static styles: lit.CSSResult;
|
|
33
|
-
private embedController;
|
|
34
|
-
private _metricsInstance?;
|
|
35
|
-
private _embed;
|
|
36
|
-
private _canPlay;
|
|
37
|
-
connectedCallback(): void;
|
|
38
|
-
disconnectedCallback(): void;
|
|
39
|
-
set muted(value: boolean);
|
|
40
|
-
get muted(): boolean;
|
|
41
|
-
get paused(): boolean;
|
|
42
|
-
get duration(): Promise<number>;
|
|
43
|
-
set currentTime(value: number);
|
|
44
|
-
get currentTime(): number;
|
|
45
|
-
play(): void;
|
|
46
|
-
pause(): void;
|
|
47
|
-
render(): lit_html.TemplateResult<1>;
|
|
48
|
-
}
|
|
49
|
-
declare global {
|
|
50
|
-
interface HTMLElementTagNameMap {
|
|
51
|
-
'mave-clip': Clip;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Clip };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
|
|
5
|
-
interface Source {
|
|
6
|
-
media?: number | undefined;
|
|
7
|
-
codec: string;
|
|
8
|
-
src: string;
|
|
9
|
-
}
|
|
10
|
-
declare class Clip extends LitElement {
|
|
11
|
-
#private;
|
|
12
|
-
private _embedId;
|
|
13
|
-
get embed(): string;
|
|
14
|
-
set embed(value: string);
|
|
15
|
-
autoplay?: 'always' | 'off' | 'true' | 'scroll' | 'lazy';
|
|
16
|
-
quality: string;
|
|
17
|
-
fallback?: 'placeholder' | 'thumbnail';
|
|
18
|
-
private _loop?;
|
|
19
|
-
set loop(value: boolean | string);
|
|
20
|
-
get loop(): boolean;
|
|
21
|
-
private _poster?;
|
|
22
|
-
get poster(): string;
|
|
23
|
-
set poster(value: string | null);
|
|
24
|
-
private _token;
|
|
25
|
-
get token(): string;
|
|
26
|
-
set token(value: string);
|
|
27
|
-
get sources(): Source[];
|
|
28
|
-
private _videoElement?;
|
|
29
|
-
private _queue;
|
|
30
|
-
private _failedPlay;
|
|
31
|
-
private _intersectionObserver;
|
|
32
|
-
static styles: lit.CSSResult;
|
|
33
|
-
private embedController;
|
|
34
|
-
private _metricsInstance?;
|
|
35
|
-
private _embed;
|
|
36
|
-
private _canPlay;
|
|
37
|
-
connectedCallback(): void;
|
|
38
|
-
disconnectedCallback(): void;
|
|
39
|
-
set muted(value: boolean);
|
|
40
|
-
get muted(): boolean;
|
|
41
|
-
get paused(): boolean;
|
|
42
|
-
get duration(): Promise<number>;
|
|
43
|
-
set currentTime(value: number);
|
|
44
|
-
get currentTime(): number;
|
|
45
|
-
play(): void;
|
|
46
|
-
pause(): void;
|
|
47
|
-
render(): lit_html.TemplateResult<1>;
|
|
48
|
-
}
|
|
49
|
-
declare global {
|
|
50
|
-
interface HTMLElementTagNameMap {
|
|
51
|
-
'mave-clip': Clip;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Clip };
|
package/dist/components/clip.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as Clip}from'../chunk-5ZZKAVXJ.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-R3SDTEHC.js';import'../chunk-MMHEOMF5.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkTJ5F2FGY_cjs=require('../chunk-TJ5F2FGY.cjs');require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkTJ5F2FGY_cjs.a}});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { MaveElement } from '../utils/mave_element.cjs';
|
|
4
|
-
|
|
5
|
-
declare class Files extends MaveElement {
|
|
6
|
-
#private;
|
|
7
|
-
get embed(): string;
|
|
8
|
-
set embed(value: string);
|
|
9
|
-
get _slottedChildren(): Element[];
|
|
10
|
-
private embedController;
|
|
11
|
-
private _data;
|
|
12
|
-
static styles: lit.CSSResult;
|
|
13
|
-
render(): lit_html.TemplateResult<1>;
|
|
14
|
-
renderPending(): lit_html.TemplateResult<1>;
|
|
15
|
-
}
|
|
16
|
-
declare global {
|
|
17
|
-
interface HTMLElementTagNameMap {
|
|
18
|
-
'mave-files': Files;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { Files };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { MaveElement } from '../utils/mave_element.js';
|
|
4
|
-
|
|
5
|
-
declare class Files extends MaveElement {
|
|
6
|
-
#private;
|
|
7
|
-
get embed(): string;
|
|
8
|
-
set embed(value: string);
|
|
9
|
-
get _slottedChildren(): Element[];
|
|
10
|
-
private embedController;
|
|
11
|
-
private _data;
|
|
12
|
-
static styles: lit.CSSResult;
|
|
13
|
-
render(): lit_html.TemplateResult<1>;
|
|
14
|
-
renderPending(): lit_html.TemplateResult<1>;
|
|
15
|
-
}
|
|
16
|
-
declare global {
|
|
17
|
-
interface HTMLElementTagNameMap {
|
|
18
|
-
'mave-files': Files;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { Files };
|
package/dist/components/files.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as Files}from'../chunk-NDPOBFNC.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/img.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkAOBEOJ2U_cjs=require('../chunk-AOBEOJ2U.cjs');require('../chunk-TKJYRGEU.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkAOBEOJ2U_cjs.a}});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { MaveElement } from '../utils/mave_element.cjs';
|
|
4
|
-
|
|
5
|
-
declare class Image extends MaveElement {
|
|
6
|
-
static styles: lit.CSSResult;
|
|
7
|
-
get poster(): string;
|
|
8
|
-
render(): lit_html.TemplateResult<1>;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface HTMLElementTagNameMap {
|
|
12
|
-
'mave-img': Image;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { Image };
|
package/dist/components/img.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { MaveElement } from '../utils/mave_element.js';
|
|
4
|
-
|
|
5
|
-
declare class Image extends MaveElement {
|
|
6
|
-
static styles: lit.CSSResult;
|
|
7
|
-
get poster(): string;
|
|
8
|
-
render(): lit_html.TemplateResult<1>;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface HTMLElementTagNameMap {
|
|
12
|
-
'mave-img': Image;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { Image };
|
package/dist/components/img.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as Image}from'../chunk-WOXKZOJ3.js';import'../chunk-SWRFZ3FV.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/list.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkB5K5JDPC_cjs=require('../chunk-B5K5JDPC.cjs');require('../chunk-CWZPXTU2.cjs'),require('../chunk-TAKTIPT7.cjs'),require('../chunk-BL5IEXIA.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkB5K5JDPC_cjs.a}});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import { Video } from '../embed/api.cjs';
|
|
3
|
-
import * as lit from 'lit';
|
|
4
|
-
import { MaveElement } from '../utils/mave_element.cjs';
|
|
5
|
-
|
|
6
|
-
declare class List extends MaveElement {
|
|
7
|
-
#private;
|
|
8
|
-
token: string;
|
|
9
|
-
order?: 'oldest' | 'newest' | 'az' | 'za';
|
|
10
|
-
static styles: lit.CSSResult;
|
|
11
|
-
private embedController;
|
|
12
|
-
private _collection;
|
|
13
|
-
connectedCallback(): void;
|
|
14
|
-
requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
|
|
15
|
-
get _slottedChildren(): Element[];
|
|
16
|
-
updated(): void;
|
|
17
|
-
refresh(): Promise<unknown>;
|
|
18
|
-
containsEmbed(embedId: string): boolean;
|
|
19
|
-
getNextForEmbed(embedId: string): Video | undefined;
|
|
20
|
-
render(): lit_html.TemplateResult<1>;
|
|
21
|
-
renderPending(): lit_html.TemplateResult<1>;
|
|
22
|
-
}
|
|
23
|
-
declare global {
|
|
24
|
-
interface HTMLElementTagNameMap {
|
|
25
|
-
'mave-list': List;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { List };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import { Video } from '../embed/api.js';
|
|
3
|
-
import * as lit from 'lit';
|
|
4
|
-
import { MaveElement } from '../utils/mave_element.js';
|
|
5
|
-
|
|
6
|
-
declare class List extends MaveElement {
|
|
7
|
-
#private;
|
|
8
|
-
token: string;
|
|
9
|
-
order?: 'oldest' | 'newest' | 'az' | 'za';
|
|
10
|
-
static styles: lit.CSSResult;
|
|
11
|
-
private embedController;
|
|
12
|
-
private _collection;
|
|
13
|
-
connectedCallback(): void;
|
|
14
|
-
requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
|
|
15
|
-
get _slottedChildren(): Element[];
|
|
16
|
-
updated(): void;
|
|
17
|
-
refresh(): Promise<unknown>;
|
|
18
|
-
containsEmbed(embedId: string): boolean;
|
|
19
|
-
getNextForEmbed(embedId: string): Video | undefined;
|
|
20
|
-
render(): lit_html.TemplateResult<1>;
|
|
21
|
-
renderPending(): lit_html.TemplateResult<1>;
|
|
22
|
-
}
|
|
23
|
-
declare global {
|
|
24
|
-
interface HTMLElementTagNameMap {
|
|
25
|
-
'mave-list': List;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { List };
|
package/dist/components/list.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as List}from'../chunk-KHVG2CY5.js';import'../chunk-S3D62CAG.js';import'../chunk-JN3JQJEF.js';import'../chunk-GXOLIMQT.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkTAKTIPT7_cjs=require('../chunk-TAKTIPT7.cjs');require('../chunk-BL5IEXIA.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkTAKTIPT7_cjs.a}});
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit_html_directive from 'lit-html/directive';
|
|
3
|
-
import * as lit_html_directives_style_map_js from 'lit-html/directives/style-map.js';
|
|
4
|
-
import * as lit from 'lit';
|
|
5
|
-
import { Embed } from '../embed/api.cjs';
|
|
6
|
-
import { MaveElement } from '../utils/mave_element.cjs';
|
|
7
|
-
|
|
8
|
-
declare class Player extends MaveElement {
|
|
9
|
-
#private;
|
|
10
|
-
private _embedId;
|
|
11
|
-
get embed(): string;
|
|
12
|
-
set embed(value: string);
|
|
13
|
-
private _token;
|
|
14
|
-
get token(): string;
|
|
15
|
-
set token(value: string);
|
|
16
|
-
locale?: string;
|
|
17
|
-
aspect_ratio?: string;
|
|
18
|
-
width?: string;
|
|
19
|
-
subtitles?: string | [string];
|
|
20
|
-
active_subtitle?: string;
|
|
21
|
-
height?: string;
|
|
22
|
-
autoplay?: 'always' | 'lazy' | 'true';
|
|
23
|
-
color?: string;
|
|
24
|
-
opacity?: string;
|
|
25
|
-
private _loop;
|
|
26
|
-
set loop(value: boolean | string);
|
|
27
|
-
get loop(): boolean;
|
|
28
|
-
private _controls;
|
|
29
|
-
get controls(): string[];
|
|
30
|
-
set controls(value: string | string[]);
|
|
31
|
-
_previousControls?: string[];
|
|
32
|
-
audioTracks?: 'auto' | 'on' | 'off';
|
|
33
|
-
private _cache;
|
|
34
|
-
get cache(): boolean;
|
|
35
|
-
set cache(value: string | boolean);
|
|
36
|
-
private _quality;
|
|
37
|
-
get quality(): string;
|
|
38
|
-
set quality(value: string);
|
|
39
|
-
private _theme;
|
|
40
|
-
get theme(): string;
|
|
41
|
-
set theme(value: string);
|
|
42
|
-
private _poster?;
|
|
43
|
-
get poster(): string | null;
|
|
44
|
-
set poster(value: string | null);
|
|
45
|
-
popped: boolean;
|
|
46
|
-
private _isProcessing;
|
|
47
|
-
endScreenElement: HTMLElement;
|
|
48
|
-
startScreenElement: HTMLElement;
|
|
49
|
-
private _startedPlaying;
|
|
50
|
-
private _themeLoaded;
|
|
51
|
-
private static readonly PROCESSING_REFRESH_INTERVAL;
|
|
52
|
-
private _subtitlesText;
|
|
53
|
-
private _audioTrackCount;
|
|
54
|
-
private _cleanupHlsAudioTracks?;
|
|
55
|
-
private _hlsAudioTracks;
|
|
56
|
-
private _hlsAudioTrackIdMap;
|
|
57
|
-
private _pendingAudioTrackSetup?;
|
|
58
|
-
private _currentAudioTrackMenu?;
|
|
59
|
-
private _themeMutationObserver?;
|
|
60
|
-
private _themeMutationObserverRoot?;
|
|
61
|
-
private _controlColorsKey?;
|
|
62
|
-
private _controlColors?;
|
|
63
|
-
private _contrastQuery?;
|
|
64
|
-
private _contrastQueryHandler?;
|
|
65
|
-
static styles: lit.CSSResult;
|
|
66
|
-
private _intersectionObserver;
|
|
67
|
-
private embedController;
|
|
68
|
-
private _videoElement?;
|
|
69
|
-
private _embedObj;
|
|
70
|
-
private _metricsInstance?;
|
|
71
|
-
private _intersected;
|
|
72
|
-
private _queue;
|
|
73
|
-
private _processingRefreshHandle?;
|
|
74
|
-
private languageController;
|
|
75
|
-
private _currentTrackLanguage;
|
|
76
|
-
private hls?;
|
|
77
|
-
private static readonly METADATA_READY_STATES;
|
|
78
|
-
pop(): void;
|
|
79
|
-
close(): void;
|
|
80
|
-
set muted(value: boolean | string);
|
|
81
|
-
get muted(): boolean;
|
|
82
|
-
set currentTime(value: number);
|
|
83
|
-
get currentTime(): number;
|
|
84
|
-
get duration(): Promise<number>;
|
|
85
|
-
get paused(): boolean;
|
|
86
|
-
play(): void;
|
|
87
|
-
restart(): void;
|
|
88
|
-
pause(): void;
|
|
89
|
-
updateStylePoster(): void;
|
|
90
|
-
connectedCallback(): void;
|
|
91
|
-
requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
|
|
92
|
-
disconnectedCallback(): void;
|
|
93
|
-
loadTheme(): void;
|
|
94
|
-
updateEmbed(embed: Embed): void;
|
|
95
|
-
get styles(): lit_html_directive.DirectiveResult<typeof lit_html_directives_style_map_js.StyleMapDirective>;
|
|
96
|
-
render(): lit_html.TemplateResult<1> | undefined;
|
|
97
|
-
}
|
|
98
|
-
declare global {
|
|
99
|
-
interface HTMLElementTagNameMap {
|
|
100
|
-
'mave-player': Player;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export { Player };
|