@maveio/components 0.0.136 → 0.0.138
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-XYDVFCDI.cjs → chunk-2MC77SM7.cjs} +3 -3
- package/dist/chunk-2Q373NMX.js +7 -0
- package/dist/{chunk-4AO3OKPN.cjs → chunk-C5EDBNNK.cjs} +2 -2
- package/dist/{chunk-DZBAEURG.js → chunk-CKXJPWZL.js} +1 -1
- package/dist/{chunk-WO7KHPV5.cjs → chunk-E3T6LRMW.cjs} +2 -2
- package/dist/{chunk-PXHPOLJ3.js → chunk-FOQNNLHG.js} +1 -1
- package/dist/{chunk-RGIEUAZX.cjs → chunk-JQRYBSG6.cjs} +2 -2
- package/dist/{chunk-RUMHES5I.js → chunk-MWAWZT42.js} +2 -2
- package/dist/{chunk-HEZWQOPO.cjs → chunk-QUNVEK4N.cjs} +4 -4
- package/dist/{chunk-ZODBVQLM.cjs → chunk-TI75IJ2E.cjs} +2 -2
- package/dist/{chunk-5KN6H4Y2.js → chunk-TIXPGHZP.js} +1 -1
- package/dist/{chunk-F6EKAS27.js → chunk-TPP5OQFR.js} +2 -2
- package/dist/{chunk-7N6UCPZY.cjs → chunk-VFTKS6RY.cjs} +3 -3
- package/dist/{chunk-SULQSPXB.js → chunk-XCF36OKL.js} +2 -2
- package/dist/components/clip.cjs +4 -4
- package/dist/components/clip.js +3 -3
- package/dist/components/files.cjs +4 -4
- package/dist/components/files.js +3 -3
- package/dist/components/list.cjs +6 -6
- package/dist/components/list.js +5 -5
- package/dist/components/player.cjs +4 -4
- package/dist/components/player.js +3 -3
- package/dist/components/pop.cjs +6 -6
- package/dist/components/pop.js +4 -4
- package/dist/embed/api.cjs +2 -2
- package/dist/embed/api.d.cts +1 -0
- package/dist/embed/api.d.ts +1 -0
- package/dist/embed/api.js +1 -1
- package/dist/embed/controller.cjs +4 -4
- package/dist/embed/controller.js +2 -2
- package/dist/index.cjs +12 -12
- package/dist/index.js +7 -7
- package/dist/react.cjs +8 -8
- package/dist/react.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-DBCDDWFV.js +0 -7
package/dist/index.js
CHANGED
|
@@ -3,22 +3,22 @@ export { a as Upload } from './chunk-EXO73PEH.js';
|
|
|
3
3
|
import './chunk-ULR63WFB.js';
|
|
4
4
|
import './chunk-GO5AXJUO.js';
|
|
5
5
|
import './chunk-ZXCHPIGV.js';
|
|
6
|
-
export { a as Clip } from './chunk-
|
|
6
|
+
export { a as Clip } from './chunk-TIXPGHZP.js';
|
|
7
7
|
import './chunk-AEKWMZ2I.js';
|
|
8
|
-
export { a as Files } from './chunk-
|
|
8
|
+
export { a as Files } from './chunk-FOQNNLHG.js';
|
|
9
9
|
export { a as Image } from './chunk-ZFM2N7YP.js';
|
|
10
|
-
export { a as List } from './chunk-
|
|
11
|
-
export { a as Pop } from './chunk-
|
|
10
|
+
export { a as List } from './chunk-MWAWZT42.js';
|
|
11
|
+
export { a as Pop } from './chunk-CKXJPWZL.js';
|
|
12
12
|
import './chunk-WE5NUDRY.js';
|
|
13
|
-
export { a as Player } from './chunk-
|
|
13
|
+
export { a as Player } from './chunk-XCF36OKL.js';
|
|
14
14
|
import './chunk-RI4GXRVA.js';
|
|
15
15
|
import './chunk-ETMAVITN.js';
|
|
16
16
|
import './chunk-CF5QCOBL.js';
|
|
17
17
|
import './chunk-NR4EI5W5.js';
|
|
18
18
|
import './chunk-MK4VIJT3.js';
|
|
19
19
|
import './chunk-MMHEOMF5.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
20
|
+
import './chunk-2Q373NMX.js';
|
|
21
|
+
import './chunk-TPP5OQFR.js';
|
|
22
22
|
import './chunk-LCTGZL3L.js';
|
|
23
23
|
import './chunk-VOXORDG3.js';
|
|
24
24
|
import './chunk-R2QJ6RON.js';
|
package/dist/react.cjs
CHANGED
|
@@ -5,22 +5,22 @@ var chunkCQGY626F_cjs = require('./chunk-CQGY626F.cjs');
|
|
|
5
5
|
require('./chunk-7UDBLP3I.cjs');
|
|
6
6
|
require('./chunk-3GVDBAOP.cjs');
|
|
7
7
|
require('./chunk-BRZI5I43.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkE3T6LRMW_cjs = require('./chunk-E3T6LRMW.cjs');
|
|
9
9
|
require('./chunk-OLR7D3Q6.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkC5EDBNNK_cjs = require('./chunk-C5EDBNNK.cjs');
|
|
11
11
|
var chunkBTPWX6DH_cjs = require('./chunk-BTPWX6DH.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var chunkVFTKS6RY_cjs = require('./chunk-VFTKS6RY.cjs');
|
|
13
|
+
var chunkJQRYBSG6_cjs = require('./chunk-JQRYBSG6.cjs');
|
|
14
14
|
require('./chunk-5NKBIUPL.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunk2MC77SM7_cjs = require('./chunk-2MC77SM7.cjs');
|
|
16
16
|
require('./chunk-R4VWICJL.cjs');
|
|
17
17
|
require('./chunk-KYW5ANCP.cjs');
|
|
18
18
|
require('./chunk-UEEYC5OJ.cjs');
|
|
19
19
|
require('./chunk-MHDCCX7Q.cjs');
|
|
20
20
|
require('./chunk-SDKTBB4N.cjs');
|
|
21
21
|
require('./chunk-RRCW5BBR.cjs');
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-QUNVEK4N.cjs');
|
|
23
|
+
require('./chunk-TI75IJ2E.cjs');
|
|
24
24
|
require('./chunk-LG2O4WV2.cjs');
|
|
25
25
|
require('./chunk-5C42H643.cjs');
|
|
26
26
|
require('./chunk-26S26OLO.cjs');
|
|
@@ -34,7 +34,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
34
34
|
|
|
35
35
|
var t__default = /*#__PURE__*/_interopDefault(t);
|
|
36
36
|
|
|
37
|
-
var g=react.createComponent({tagName:"mave-clip",elementClass:
|
|
37
|
+
var g=react.createComponent({tagName:"mave-clip",elementClass:chunkE3T6LRMW_cjs.a,react:t__default.default}),v=react.createComponent({tagName:"mave-list",elementClass:chunkVFTKS6RY_cjs.a,react:t__default.default}),P=react.createComponent({tagName:"mave-player",elementClass:chunk2MC77SM7_cjs.a,react:t__default.default}),y=react.createComponent({tagName:"mave-upload",elementClass:chunkCQGY626F_cjs.a,react:t__default.default}),I=react.createComponent({tagName:"mave-files",elementClass:chunkC5EDBNNK_cjs.a,react:t__default.default}),T=react.createComponent({tagName:"mave-img",elementClass:chunkBTPWX6DH_cjs.a,react:t__default.default}),u=react.createComponent({tagName:"mave-text",elementClass:chunkA3PLFLYH_cjs.a,react:t__default.default}),b=react.createComponent({tagName:"mave-pop",elementClass:chunkJQRYBSG6_cjs.a,react:t__default.default});
|
|
38
38
|
|
|
39
39
|
Object.defineProperty(exports, 'setConfig', {
|
|
40
40
|
enumerable: true,
|
package/dist/react.js
CHANGED
|
@@ -3,22 +3,22 @@ import { a as a$3 } from './chunk-EXO73PEH.js';
|
|
|
3
3
|
import './chunk-ULR63WFB.js';
|
|
4
4
|
import './chunk-GO5AXJUO.js';
|
|
5
5
|
import './chunk-ZXCHPIGV.js';
|
|
6
|
-
import { a } from './chunk-
|
|
6
|
+
import { a } from './chunk-TIXPGHZP.js';
|
|
7
7
|
import './chunk-AEKWMZ2I.js';
|
|
8
|
-
import { a as a$4 } from './chunk-
|
|
8
|
+
import { a as a$4 } from './chunk-FOQNNLHG.js';
|
|
9
9
|
import { a as a$5 } from './chunk-ZFM2N7YP.js';
|
|
10
|
-
import { a as a$1 } from './chunk-
|
|
11
|
-
import { a as a$7 } from './chunk-
|
|
10
|
+
import { a as a$1 } from './chunk-MWAWZT42.js';
|
|
11
|
+
import { a as a$7 } from './chunk-CKXJPWZL.js';
|
|
12
12
|
import './chunk-WE5NUDRY.js';
|
|
13
|
-
import { a as a$2 } from './chunk-
|
|
13
|
+
import { a as a$2 } from './chunk-XCF36OKL.js';
|
|
14
14
|
import './chunk-RI4GXRVA.js';
|
|
15
15
|
import './chunk-ETMAVITN.js';
|
|
16
16
|
import './chunk-CF5QCOBL.js';
|
|
17
17
|
import './chunk-NR4EI5W5.js';
|
|
18
18
|
import './chunk-MK4VIJT3.js';
|
|
19
19
|
import './chunk-MMHEOMF5.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
20
|
+
import './chunk-2Q373NMX.js';
|
|
21
|
+
import './chunk-TPP5OQFR.js';
|
|
22
22
|
import './chunk-LCTGZL3L.js';
|
|
23
23
|
import './chunk-VOXORDG3.js';
|
|
24
24
|
import './chunk-R2QJ6RON.js';
|
package/package.json
CHANGED
package/dist/chunk-DBCDDWFV.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { a as a$2 } from './chunk-F6EKAS27.js';
|
|
2
|
-
import { a as a$1 } from './chunk-LCTGZL3L.js';
|
|
3
|
-
import { a as a$3 } from './chunk-JBV2AYRP.js';
|
|
4
|
-
|
|
5
|
-
var d=(t=>(t[t.Collection=0]="Collection",t[t.Embed=1]="Embed",t))(d||{}),a=class{constructor(e,t=1){this.caching=!0;this.loading=!0;this.host=e,this.type=t,this.loading=!0,this.task=new a$1(this.host,async()=>{try{if(this.type==1&&!this.embed)return;if(this.type==0&&!this.token){console.warn("No token attr provided for mave-list");return}let i=await(await fetch(this.manifest_url)).json();if(this.loading=!1,this.type==1){let r=i;return this.version=r.video?.version||0,r}else return i}catch(s){throw console.log(s),new Error(`Failed to fetch "${this.embed}"`)}},()=>[this.embed]);}get manifest_url(){if(this.type==1)return this.embedFile("manifest.json");{let e=new URL(`${a$2}/collection/${this.token}`);return this.embed&&this.embed?.length>1&&e.searchParams.append("embed",this.embed),e.toString()}}set embed(e){this._embed!=e&&(this._embed=e,this.loading=!0,this.host.requestUpdate());}get embed(){return this._embed}set token(e){this._token!=e&&(this._token=e,this.host.requestUpdate());}get token(){return this._token}get spaceId(){return this.embed?.substring(0,5)}get embedId(){return this.embed?.substring(5,this.embed?.length)}get version(){return this._version?`/v${this._version}/`:"/"}set version(e){this._version!=e&&(this._version=e,this.host.requestUpdate());}get cdnRoot(){return a$3.cdn.endpoint.replace("${this.spaceId}",this.spaceId)}refresh(){return this.loading=!0,this.task?.run()}embedFile(e,t=new URLSearchParams){let s=new URL(`${this.cdnRoot}/${this.embedId}${e=="manifest"?"/":this.version}${e}`);return this.token&&t.append("token",this.token),this.caching||t.append("e",new Date().getTime().toString()),s.search=t.toString(),s.toString()}render(e){return this.task?.render(e)}};
|
|
6
|
-
|
|
7
|
-
export { d as a, a as b };
|