@maveio/components 0.0.154 → 0.0.155-beta.0

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.
Files changed (91) hide show
  1. package/README.md +12 -0
  2. package/dist/chunk-2ELUELDT.cjs +1 -0
  3. package/dist/chunk-3MEOYLCV.cjs +20 -0
  4. package/dist/chunk-45FW5DBN.js +1 -0
  5. package/dist/{chunk-2C6BGW6H.js → chunk-4CDE2QCJ.js} +2 -2
  6. package/dist/chunk-4M7XLFOJ.cjs +161 -0
  7. package/dist/chunk-6MCTUE3H.js +37 -0
  8. package/dist/{chunk-YVMWE3I7.js → chunk-6NE3LOKU.js} +3 -3
  9. package/dist/{chunk-WLVMWIKH.cjs → chunk-6NWQAHZT.cjs} +2 -2
  10. package/dist/chunk-7MHSKSE5.js +161 -0
  11. package/dist/{chunk-D3LG3UTO.js → chunk-7WWUNKRI.js} +3 -3
  12. package/dist/{chunk-SAOOZPZZ.cjs → chunk-ALY7UTZA.cjs} +3 -3
  13. package/dist/{chunk-36CSGHYJ.js → chunk-ESQT2PPF.js} +2 -2
  14. package/dist/chunk-F6EKAS27.js +1 -0
  15. package/dist/chunk-FSFJQ67W.js +93 -0
  16. package/dist/{chunk-DH5I55F5.js → chunk-HX6F65VL.js} +1 -1
  17. package/dist/{chunk-WFWUIIE6.js → chunk-IBTJ5OMP.js} +2 -2
  18. package/dist/chunk-J7OISSKU.cjs +1 -0
  19. package/dist/chunk-JBRRVOTV.cjs +37 -0
  20. package/dist/{chunk-2P6HF22Q.cjs → chunk-KTGL4HLA.cjs} +2 -2
  21. package/dist/{chunk-YAVQQEFQ.cjs → chunk-M3UFDMO6.cjs} +3 -3
  22. package/dist/chunk-MC6T46LX.cjs +93 -0
  23. package/dist/chunk-MKZYI5TY.cjs +1 -0
  24. package/dist/chunk-OTDMHX6X.js +20 -0
  25. package/dist/chunk-P6SBZPDR.js +1 -0
  26. package/dist/{chunk-EB4QCWWS.cjs → chunk-RFBU3KXA.cjs} +3 -3
  27. package/dist/{chunk-X3IY737A.cjs → chunk-TVNAG7X4.cjs} +2 -2
  28. package/dist/{chunk-HKHV3KLY.js → chunk-VZKW2VWI.js} +2 -2
  29. package/dist/{chunk-Y7NYUH3P.cjs → chunk-YT56YDUY.cjs} +1 -1
  30. package/dist/{chunk-TI75IJ2E.cjs → chunk-ZODBVQLM.cjs} +1 -1
  31. package/dist/chunk-ZOWJYZSD.js +1 -0
  32. package/dist/components/clip.cjs +1 -1
  33. package/dist/components/clip.js +1 -1
  34. package/dist/components/files.cjs +1 -1
  35. package/dist/components/files.js +1 -1
  36. package/dist/components/img.cjs +1 -1
  37. package/dist/components/img.js +1 -1
  38. package/dist/components/list.cjs +1 -1
  39. package/dist/components/list.js +1 -1
  40. package/dist/components/player.cjs +1 -1
  41. package/dist/components/player.js +1 -1
  42. package/dist/components/pop.cjs +1 -1
  43. package/dist/components/pop.js +1 -1
  44. package/dist/components/text.cjs +1 -1
  45. package/dist/components/text.js +1 -1
  46. package/dist/components/upload.cjs +1 -1
  47. package/dist/components/upload.d.cts +19 -3
  48. package/dist/components/upload.d.ts +19 -3
  49. package/dist/components/upload.js +1 -1
  50. package/dist/embed/api.cjs +1 -1
  51. package/dist/embed/api.d.cts +4 -3
  52. package/dist/embed/api.d.ts +4 -3
  53. package/dist/embed/api.js +1 -1
  54. package/dist/embed/controller.cjs +1 -1
  55. package/dist/embed/controller.js +1 -1
  56. package/dist/embed/socket.cjs +1 -1
  57. package/dist/embed/socket.js +1 -1
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/react.cjs +1 -1
  61. package/dist/react.js +1 -1
  62. package/dist/themes/loader.cjs +1 -1
  63. package/dist/themes/loader.js +1 -1
  64. package/dist/utils/localization.cjs +1 -1
  65. package/dist/utils/localization.js +1 -1
  66. package/dist/utils/mave_element.cjs +1 -1
  67. package/dist/utils/mave_element.js +1 -1
  68. package/dist/utils/origin.cjs +1 -1
  69. package/dist/utils/origin.js +1 -1
  70. package/dist/vue.cjs +1 -0
  71. package/dist/vue.d.cts +65 -0
  72. package/dist/vue.d.ts +65 -0
  73. package/dist/vue.js +1 -0
  74. package/package.json +22 -7
  75. package/dist/chunk-2EYY6N7K.js +0 -20
  76. package/dist/chunk-3PLBZPRP.js +0 -1
  77. package/dist/chunk-4GTAVYTC.cjs +0 -93
  78. package/dist/chunk-5OEIKFAN.js +0 -93
  79. package/dist/chunk-6QHPCMNQ.js +0 -104
  80. package/dist/chunk-COWZ7GYF.cjs +0 -1
  81. package/dist/chunk-F2VMRZFU.cjs +0 -20
  82. package/dist/chunk-GMEHYYP4.js +0 -37
  83. package/dist/chunk-LOR3PIH5.cjs +0 -37
  84. package/dist/chunk-MB72HBHH.cjs +0 -1
  85. package/dist/chunk-NV7C4TBM.js +0 -1
  86. package/dist/chunk-TIOUPJWD.js +0 -1
  87. package/dist/chunk-TPP5OQFR.js +0 -1
  88. package/dist/chunk-VW7IKXVI.cjs +0 -1
  89. package/dist/chunk-WEZKG6QZ.cjs +0 -104
  90. package/dist/lottie-player.esm-BBAKIFYQ.js +0 -283
  91. package/dist/lottie-player.esm-OYBEUNQX.cjs +0 -283
@@ -1 +1 @@
1
- export{a as default}from'../chunk-HKHV3KLY.js';import'../chunk-JBV2AYRP.js';import'../chunk-NDDFZTBA.js';
1
+ export{a as default}from'../chunk-VZKW2VWI.js';import'../chunk-JBV2AYRP.js';import'../chunk-NDDFZTBA.js';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkX3IY737A_cjs=require('./chunk-X3IY737A.cjs'),chunkWEZKG6QZ_cjs=require('./chunk-WEZKG6QZ.cjs');require('./chunk-4GTAVYTC.cjs'),require('./chunk-QJHVSRHC.cjs'),require('./chunk-2P6HF22Q.cjs');var chunkLOR3PIH5_cjs=require('./chunk-LOR3PIH5.cjs');require('./chunk-H57FX4I6.cjs');var chunkF2VMRZFU_cjs=require('./chunk-F2VMRZFU.cjs'),chunkWLVMWIKH_cjs=require('./chunk-WLVMWIKH.cjs'),chunkEB4QCWWS_cjs=require('./chunk-EB4QCWWS.cjs'),chunkSAOOZPZZ_cjs=require('./chunk-SAOOZPZZ.cjs');require('./chunk-5NKBIUPL.cjs');var chunkYAVQQEFQ_cjs=require('./chunk-YAVQQEFQ.cjs');require('./chunk-MB72HBHH.cjs'),require('./chunk-COWZ7GYF.cjs'),require('./chunk-Q22T22LT.cjs'),require('./chunk-5KQJTT3P.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-RRCW5BBR.cjs'),require('./chunk-Y7NYUH3P.cjs'),require('./chunk-TI75IJ2E.cjs'),require('./chunk-LG2O4WV2.cjs'),require('./chunk-VW7IKXVI.cjs'),require('./chunk-FUBUUA7Y.cjs'),require('./chunk-5NSCV6C2.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunkX3IY737A_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunkWEZKG6QZ_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkLOR3PIH5_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkF2VMRZFU_cjs.a}});Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkWLVMWIKH_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkEB4QCWWS_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkSAOOZPZZ_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkYAVQQEFQ_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});
1
+ 'use strict';var chunkTVNAG7X4_cjs=require('./chunk-TVNAG7X4.cjs'),chunk4M7XLFOJ_cjs=require('./chunk-4M7XLFOJ.cjs');require('./chunk-MC6T46LX.cjs'),require('./chunk-QJHVSRHC.cjs'),require('./chunk-KTGL4HLA.cjs');var chunkJBRRVOTV_cjs=require('./chunk-JBRRVOTV.cjs');require('./chunk-H57FX4I6.cjs');var chunk3MEOYLCV_cjs=require('./chunk-3MEOYLCV.cjs'),chunk6NWQAHZT_cjs=require('./chunk-6NWQAHZT.cjs'),chunkRFBU3KXA_cjs=require('./chunk-RFBU3KXA.cjs'),chunkALY7UTZA_cjs=require('./chunk-ALY7UTZA.cjs'),chunkM3UFDMO6_cjs=require('./chunk-M3UFDMO6.cjs');require('./chunk-2ELUELDT.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-Q22T22LT.cjs'),require('./chunk-5KQJTT3P.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-RRCW5BBR.cjs'),require('./chunk-YT56YDUY.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-LG2O4WV2.cjs'),require('./chunk-MKZYI5TY.cjs'),require('./chunk-FUBUUA7Y.cjs'),require('./chunk-5NSCV6C2.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunkTVNAG7X4_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk4M7XLFOJ_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkJBRRVOTV_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunk3MEOYLCV_cjs.a}});Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunk6NWQAHZT_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkRFBU3KXA_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkALY7UTZA_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkM3UFDMO6_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{a as Text}from'./chunk-WFWUIIE6.js';export{a as Upload}from'./chunk-6QHPCMNQ.js';import'./chunk-5OEIKFAN.js';import'./chunk-ZWTODZDA.js';import'./chunk-HKHV3KLY.js';export{a as Clip}from'./chunk-GMEHYYP4.js';import'./chunk-3R7TX6NC.js';export{a as Files}from'./chunk-2EYY6N7K.js';export{a as Image}from'./chunk-2C6BGW6H.js';export{a as List}from'./chunk-D3LG3UTO.js';export{a as Pop}from'./chunk-YVMWE3I7.js';import'./chunk-WE5NUDRY.js';export{a as Player}from'./chunk-36CSGHYJ.js';import'./chunk-NV7C4TBM.js';import'./chunk-TIOUPJWD.js';import'./chunk-MS5NFI3Q.js';import'./chunk-CUGRXOA2.js';import'./chunk-MK4VIJT3.js';import'./chunk-MMHEOMF5.js';import'./chunk-DH5I55F5.js';import'./chunk-TPP5OQFR.js';import'./chunk-LCTGZL3L.js';import'./chunk-3PLBZPRP.js';import'./chunk-HMISRRKC.js';import'./chunk-A4GZBQEB.js';export{b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-NDDFZTBA.js';
1
+ export{a as Text}from'./chunk-IBTJ5OMP.js';export{a as Upload}from'./chunk-7MHSKSE5.js';import'./chunk-FSFJQ67W.js';import'./chunk-ZWTODZDA.js';import'./chunk-VZKW2VWI.js';export{a as Clip}from'./chunk-6MCTUE3H.js';import'./chunk-3R7TX6NC.js';export{a as Files}from'./chunk-OTDMHX6X.js';export{a as Image}from'./chunk-4CDE2QCJ.js';export{a as List}from'./chunk-7WWUNKRI.js';export{a as Pop}from'./chunk-6NE3LOKU.js';export{a as Player}from'./chunk-ESQT2PPF.js';import'./chunk-ZOWJYZSD.js';import'./chunk-WE5NUDRY.js';import'./chunk-P6SBZPDR.js';import'./chunk-MS5NFI3Q.js';import'./chunk-CUGRXOA2.js';import'./chunk-MK4VIJT3.js';import'./chunk-MMHEOMF5.js';import'./chunk-HX6F65VL.js';import'./chunk-F6EKAS27.js';import'./chunk-LCTGZL3L.js';import'./chunk-45FW5DBN.js';import'./chunk-HMISRRKC.js';import'./chunk-A4GZBQEB.js';export{b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-NDDFZTBA.js';
package/dist/react.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkX3IY737A_cjs=require('./chunk-X3IY737A.cjs'),chunkWEZKG6QZ_cjs=require('./chunk-WEZKG6QZ.cjs');require('./chunk-4GTAVYTC.cjs'),require('./chunk-QJHVSRHC.cjs'),require('./chunk-2P6HF22Q.cjs');var chunkLOR3PIH5_cjs=require('./chunk-LOR3PIH5.cjs');require('./chunk-H57FX4I6.cjs');var chunkF2VMRZFU_cjs=require('./chunk-F2VMRZFU.cjs'),chunkWLVMWIKH_cjs=require('./chunk-WLVMWIKH.cjs'),chunkEB4QCWWS_cjs=require('./chunk-EB4QCWWS.cjs'),chunkSAOOZPZZ_cjs=require('./chunk-SAOOZPZZ.cjs');require('./chunk-5NKBIUPL.cjs');var chunkYAVQQEFQ_cjs=require('./chunk-YAVQQEFQ.cjs');require('./chunk-MB72HBHH.cjs'),require('./chunk-COWZ7GYF.cjs'),require('./chunk-Q22T22LT.cjs'),require('./chunk-5KQJTT3P.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-RRCW5BBR.cjs'),require('./chunk-Y7NYUH3P.cjs'),require('./chunk-TI75IJ2E.cjs'),require('./chunk-LG2O4WV2.cjs'),require('./chunk-VW7IKXVI.cjs'),require('./chunk-FUBUUA7Y.cjs'),require('./chunk-5NSCV6C2.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-IPA5Q26W.cjs');var react=require('@lit/react'),t=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);var g=react.createComponent({tagName:"mave-clip",elementClass:chunkLOR3PIH5_cjs.a,react:t__default.default}),v=react.createComponent({tagName:"mave-list",elementClass:chunkEB4QCWWS_cjs.a,react:t__default.default}),P=react.createComponent({tagName:"mave-player",elementClass:chunkYAVQQEFQ_cjs.a,react:t__default.default}),y=react.createComponent({tagName:"mave-upload",elementClass:chunkWEZKG6QZ_cjs.a,react:t__default.default}),I=react.createComponent({tagName:"mave-files",elementClass:chunkF2VMRZFU_cjs.a,react:t__default.default}),T=react.createComponent({tagName:"mave-img",elementClass:chunkWLVMWIKH_cjs.a,react:t__default.default}),u=react.createComponent({tagName:"mave-text",elementClass:chunkX3IY737A_cjs.a,react:t__default.default}),b=react.createComponent({tagName:"mave-pop",elementClass:chunkSAOOZPZZ_cjs.a,react:t__default.default});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});exports.Clip=g;exports.Files=I;exports.Image=T;exports.List=v;exports.Player=P;exports.Pop=b;exports.Text=u;exports.Upload=y;
1
+ 'use strict';var chunkTVNAG7X4_cjs=require('./chunk-TVNAG7X4.cjs'),chunk4M7XLFOJ_cjs=require('./chunk-4M7XLFOJ.cjs');require('./chunk-MC6T46LX.cjs'),require('./chunk-QJHVSRHC.cjs'),require('./chunk-KTGL4HLA.cjs');var chunkJBRRVOTV_cjs=require('./chunk-JBRRVOTV.cjs');require('./chunk-H57FX4I6.cjs');var chunk3MEOYLCV_cjs=require('./chunk-3MEOYLCV.cjs'),chunk6NWQAHZT_cjs=require('./chunk-6NWQAHZT.cjs'),chunkRFBU3KXA_cjs=require('./chunk-RFBU3KXA.cjs'),chunkALY7UTZA_cjs=require('./chunk-ALY7UTZA.cjs'),chunkM3UFDMO6_cjs=require('./chunk-M3UFDMO6.cjs');require('./chunk-2ELUELDT.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-Q22T22LT.cjs'),require('./chunk-5KQJTT3P.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-RRCW5BBR.cjs'),require('./chunk-YT56YDUY.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-LG2O4WV2.cjs'),require('./chunk-MKZYI5TY.cjs'),require('./chunk-FUBUUA7Y.cjs'),require('./chunk-5NSCV6C2.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-IPA5Q26W.cjs');var react=require('@lit/react'),t=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);var g=react.createComponent({tagName:"mave-clip",elementClass:chunkJBRRVOTV_cjs.a,react:t__default.default}),v=react.createComponent({tagName:"mave-list",elementClass:chunkRFBU3KXA_cjs.a,react:t__default.default}),P=react.createComponent({tagName:"mave-player",elementClass:chunkM3UFDMO6_cjs.a,react:t__default.default}),y=react.createComponent({tagName:"mave-upload",elementClass:chunk4M7XLFOJ_cjs.a,react:t__default.default}),I=react.createComponent({tagName:"mave-files",elementClass:chunk3MEOYLCV_cjs.a,react:t__default.default}),T=react.createComponent({tagName:"mave-img",elementClass:chunk6NWQAHZT_cjs.a,react:t__default.default}),u=react.createComponent({tagName:"mave-text",elementClass:chunkTVNAG7X4_cjs.a,react:t__default.default}),b=react.createComponent({tagName:"mave-pop",elementClass:chunkALY7UTZA_cjs.a,react:t__default.default});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});exports.Clip=g;exports.Files=I;exports.Image=T;exports.List=v;exports.Player=P;exports.Pop=b;exports.Text=u;exports.Upload=y;
package/dist/react.js CHANGED
@@ -1 +1 @@
1
- import {a as a$6}from'./chunk-WFWUIIE6.js';import {a as a$3}from'./chunk-6QHPCMNQ.js';import'./chunk-5OEIKFAN.js';import'./chunk-ZWTODZDA.js';import'./chunk-HKHV3KLY.js';import {a}from'./chunk-GMEHYYP4.js';import'./chunk-3R7TX6NC.js';import {a as a$4}from'./chunk-2EYY6N7K.js';import {a as a$5}from'./chunk-2C6BGW6H.js';import {a as a$1}from'./chunk-D3LG3UTO.js';import {a as a$7}from'./chunk-YVMWE3I7.js';import'./chunk-WE5NUDRY.js';import {a as a$2}from'./chunk-36CSGHYJ.js';import'./chunk-NV7C4TBM.js';import'./chunk-TIOUPJWD.js';import'./chunk-MS5NFI3Q.js';import'./chunk-CUGRXOA2.js';import'./chunk-MK4VIJT3.js';import'./chunk-MMHEOMF5.js';import'./chunk-DH5I55F5.js';import'./chunk-TPP5OQFR.js';import'./chunk-LCTGZL3L.js';import'./chunk-3PLBZPRP.js';import'./chunk-HMISRRKC.js';import'./chunk-A4GZBQEB.js';export{b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-NDDFZTBA.js';import {createComponent}from'@lit/react';import t from'react';var g=createComponent({tagName:"mave-clip",elementClass:a,react:t}),v=createComponent({tagName:"mave-list",elementClass:a$1,react:t}),P=createComponent({tagName:"mave-player",elementClass:a$2,react:t}),y=createComponent({tagName:"mave-upload",elementClass:a$3,react:t}),I=createComponent({tagName:"mave-files",elementClass:a$4,react:t}),T=createComponent({tagName:"mave-img",elementClass:a$5,react:t}),u=createComponent({tagName:"mave-text",elementClass:a$6,react:t}),b=createComponent({tagName:"mave-pop",elementClass:a$7,react:t});export{g as Clip,I as Files,T as Image,v as List,P as Player,b as Pop,u as Text,y as Upload};
1
+ import {a as a$6}from'./chunk-IBTJ5OMP.js';import {a as a$3}from'./chunk-7MHSKSE5.js';import'./chunk-FSFJQ67W.js';import'./chunk-ZWTODZDA.js';import'./chunk-VZKW2VWI.js';import {a}from'./chunk-6MCTUE3H.js';import'./chunk-3R7TX6NC.js';import {a as a$4}from'./chunk-OTDMHX6X.js';import {a as a$5}from'./chunk-4CDE2QCJ.js';import {a as a$1}from'./chunk-7WWUNKRI.js';import {a as a$7}from'./chunk-6NE3LOKU.js';import {a as a$2}from'./chunk-ESQT2PPF.js';import'./chunk-ZOWJYZSD.js';import'./chunk-WE5NUDRY.js';import'./chunk-P6SBZPDR.js';import'./chunk-MS5NFI3Q.js';import'./chunk-CUGRXOA2.js';import'./chunk-MK4VIJT3.js';import'./chunk-MMHEOMF5.js';import'./chunk-HX6F65VL.js';import'./chunk-F6EKAS27.js';import'./chunk-LCTGZL3L.js';import'./chunk-45FW5DBN.js';import'./chunk-HMISRRKC.js';import'./chunk-A4GZBQEB.js';export{b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-NDDFZTBA.js';import {createComponent}from'@lit/react';import t from'react';var g=createComponent({tagName:"mave-clip",elementClass:a,react:t}),v=createComponent({tagName:"mave-list",elementClass:a$1,react:t}),P=createComponent({tagName:"mave-player",elementClass:a$2,react:t}),y=createComponent({tagName:"mave-upload",elementClass:a$3,react:t}),I=createComponent({tagName:"mave-files",elementClass:a$4,react:t}),T=createComponent({tagName:"mave-img",elementClass:a$5,react:t}),u=createComponent({tagName:"mave-text",elementClass:a$6,react:t}),b=createComponent({tagName:"mave-pop",elementClass:a$7,react:t});export{g as Clip,I as Files,T as Image,v as List,P as Player,b as Pop,u as Text,y as Upload};
@@ -1 +1 @@
1
- 'use strict';var chunkMB72HBHH_cjs=require('../chunk-MB72HBHH.cjs');require('../chunk-COWZ7GYF.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"ThemeLoader",{enumerable:true,get:function(){return chunkMB72HBHH_cjs.a}});
1
+ 'use strict';var chunk2ELUELDT_cjs=require('../chunk-2ELUELDT.cjs');require('../chunk-J7OISSKU.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"ThemeLoader",{enumerable:true,get:function(){return chunk2ELUELDT_cjs.a}});
@@ -1 +1 @@
1
- export{a as ThemeLoader}from'../chunk-NV7C4TBM.js';import'../chunk-TIOUPJWD.js';import'../chunk-A4GZBQEB.js';import'../chunk-NDDFZTBA.js';
1
+ export{a as ThemeLoader}from'../chunk-ZOWJYZSD.js';import'../chunk-P6SBZPDR.js';import'../chunk-A4GZBQEB.js';import'../chunk-NDDFZTBA.js';
@@ -1 +1 @@
1
- 'use strict';var chunk4GTAVYTC_cjs=require('../chunk-4GTAVYTC.cjs');require('../chunk-COWZ7GYF.cjs'),require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"LanguageController",{enumerable:true,get:function(){return chunk4GTAVYTC_cjs.d}});Object.defineProperty(exports,"localization",{enumerable:true,get:function(){return chunk4GTAVYTC_cjs.c}});Object.defineProperty(exports,"localized",{enumerable:true,get:function(){return chunk4GTAVYTC_cjs.a}});Object.defineProperty(exports,"msg",{enumerable:true,get:function(){return chunk4GTAVYTC_cjs.b}});
1
+ 'use strict';var chunkMC6T46LX_cjs=require('../chunk-MC6T46LX.cjs');require('../chunk-J7OISSKU.cjs'),require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"LanguageController",{enumerable:true,get:function(){return chunkMC6T46LX_cjs.d}});Object.defineProperty(exports,"localization",{enumerable:true,get:function(){return chunkMC6T46LX_cjs.c}});Object.defineProperty(exports,"localized",{enumerable:true,get:function(){return chunkMC6T46LX_cjs.a}});Object.defineProperty(exports,"msg",{enumerable:true,get:function(){return chunkMC6T46LX_cjs.b}});
@@ -1 +1 @@
1
- export{d as LanguageController,c as localization,a as localized,b as msg}from'../chunk-5OEIKFAN.js';import'../chunk-TIOUPJWD.js';import'../chunk-NDDFZTBA.js';
1
+ export{d as LanguageController,c as localization,a as localized,b as msg}from'../chunk-FSFJQ67W.js';import'../chunk-P6SBZPDR.js';import'../chunk-NDDFZTBA.js';
@@ -1 +1 @@
1
- 'use strict';var chunkVW7IKXVI_cjs=require('../chunk-VW7IKXVI.cjs');require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"MaveElement",{enumerable:true,get:function(){return chunkVW7IKXVI_cjs.a}});
1
+ 'use strict';var chunkMKZYI5TY_cjs=require('../chunk-MKZYI5TY.cjs');require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"MaveElement",{enumerable:true,get:function(){return chunkMKZYI5TY_cjs.a}});
@@ -1 +1 @@
1
- export{a as MaveElement}from'../chunk-3PLBZPRP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-NDDFZTBA.js';
1
+ export{a as MaveElement}from'../chunk-45FW5DBN.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-NDDFZTBA.js';
@@ -1 +1 @@
1
- 'use strict';var chunkCOWZ7GYF_cjs=require('../chunk-COWZ7GYF.cjs');require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"potentialDistFolder",{enumerable:true,get:function(){return chunkCOWZ7GYF_cjs.a}});
1
+ 'use strict';var chunkJ7OISSKU_cjs=require('../chunk-J7OISSKU.cjs');require('../chunk-IPA5Q26W.cjs');Object.defineProperty(exports,"potentialDistFolder",{enumerable:true,get:function(){return chunkJ7OISSKU_cjs.a}});
@@ -1 +1 @@
1
- export{a as potentialDistFolder}from'../chunk-TIOUPJWD.js';import'../chunk-NDDFZTBA.js';
1
+ export{a as potentialDistFolder}from'../chunk-P6SBZPDR.js';import'../chunk-NDDFZTBA.js';
package/dist/vue.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkTVNAG7X4_cjs=require('./chunk-TVNAG7X4.cjs'),chunk4M7XLFOJ_cjs=require('./chunk-4M7XLFOJ.cjs');require('./chunk-MC6T46LX.cjs'),require('./chunk-QJHVSRHC.cjs'),require('./chunk-KTGL4HLA.cjs');var chunkJBRRVOTV_cjs=require('./chunk-JBRRVOTV.cjs');require('./chunk-H57FX4I6.cjs');var chunk3MEOYLCV_cjs=require('./chunk-3MEOYLCV.cjs'),chunk6NWQAHZT_cjs=require('./chunk-6NWQAHZT.cjs'),chunkRFBU3KXA_cjs=require('./chunk-RFBU3KXA.cjs'),chunkALY7UTZA_cjs=require('./chunk-ALY7UTZA.cjs'),chunkM3UFDMO6_cjs=require('./chunk-M3UFDMO6.cjs');require('./chunk-2ELUELDT.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-Q22T22LT.cjs'),require('./chunk-5KQJTT3P.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-RRCW5BBR.cjs'),require('./chunk-YT56YDUY.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-LG2O4WV2.cjs'),require('./chunk-MKZYI5TY.cjs'),require('./chunk-FUBUUA7Y.cjs'),require('./chunk-5NSCV6C2.cjs'),require('./chunk-5STN56TL.cjs'),require('./chunk-IPA5Q26W.cjs');var vue=require('vue');var e={Clip:{tag:"mave-clip",element:chunkJBRRVOTV_cjs.a},Files:{tag:"mave-files",element:chunk3MEOYLCV_cjs.a},Image:{tag:"mave-img",element:chunk6NWQAHZT_cjs.a},List:{tag:"mave-list",element:chunkRFBU3KXA_cjs.a},Player:{tag:"mave-player",element:chunkM3UFDMO6_cjs.a},Pop:{tag:"mave-pop",element:chunkALY7UTZA_cjs.a},Text:{tag:"mave-text",element:chunkTVNAG7X4_cjs.a},Upload:{tag:"mave-upload",element:chunk4M7XLFOJ_cjs.a}};function L(t,o){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,o));}function T(t){let o=[];t.default&&o.push(...t.default());for(let[r,m]of Object.entries(t)){if(!m||r==="default")continue;let p=m();for(let s of p)o.push(vue.cloneVNode(s,{slot:r}));}return o.length?o:void 0}function l(t,o,r){return L(o,r),vue.defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(p,{attrs:s,slots:y,expose:E}){let i=vue.ref(null);return E({element:i}),()=>vue.h(o,{ref:i,...s},T(y))}})}var n={Clip:l("Clip",e.Clip.tag,e.Clip.element),Files:l("Files",e.Files.tag,e.Files.element),Image:l("Image",e.Image.tag,e.Image.element),List:l("List",e.List.tag,e.List.element),Player:l("Player",e.Player.tag,e.Player.element),Pop:l("Pop",e.Pop.tag,e.Pop.element),Text:l("Text",e.Text.tag,e.Text.element),Upload:l("Upload",e.Upload.tag,e.Upload.element)},$=n.Clip,b=n.Files,O=n.Image,k=n.List,D=n.Player,H=n.Pop,W=n.Text,_=n.Upload;function I(t){Object.entries(n).forEach(([o,r])=>{t.component(o,r);});}var q={install(t){I(t);}};exports.Clip=$;exports.Files=b;exports.Image=O;exports.List=k;exports.Player=D;exports.Pop=H;exports.Text=W;exports.Upload=_;exports.default=q;exports.registerMaveComponents=I;
package/dist/vue.d.cts ADDED
@@ -0,0 +1,65 @@
1
+ import * as vue from 'vue';
2
+ import { App, VNode } from 'vue';
3
+
4
+ declare const Clip: vue.DefineComponent<{
5
+ [x: string]: any;
6
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
7
+ [key: string]: any;
8
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
9
+ [x: string]: any;
10
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
11
+ declare const Files: vue.DefineComponent<{
12
+ [x: string]: any;
13
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
14
+ [key: string]: any;
15
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
16
+ [x: string]: any;
17
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
18
+ declare const Image: vue.DefineComponent<{
19
+ [x: string]: any;
20
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
21
+ [key: string]: any;
22
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
23
+ [x: string]: any;
24
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
25
+ declare const List: vue.DefineComponent<{
26
+ [x: string]: any;
27
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
28
+ [key: string]: any;
29
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
30
+ [x: string]: any;
31
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
32
+ declare const Player: vue.DefineComponent<{
33
+ [x: string]: any;
34
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
35
+ [key: string]: any;
36
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
37
+ [x: string]: any;
38
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
39
+ declare const Pop: vue.DefineComponent<{
40
+ [x: string]: any;
41
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
42
+ [key: string]: any;
43
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
44
+ [x: string]: any;
45
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
46
+ declare const Text: vue.DefineComponent<{
47
+ [x: string]: any;
48
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
49
+ [key: string]: any;
50
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
51
+ [x: string]: any;
52
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
53
+ declare const Upload: vue.DefineComponent<{
54
+ [x: string]: any;
55
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
56
+ [key: string]: any;
57
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
58
+ [x: string]: any;
59
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
60
+ declare function registerMaveComponents(app: App): void;
61
+ declare const _default: {
62
+ install(app: App): void;
63
+ };
64
+
65
+ export { Clip, Files, Image, List, Player, Pop, Text, Upload, _default as default, registerMaveComponents };
package/dist/vue.d.ts ADDED
@@ -0,0 +1,65 @@
1
+ import * as vue from 'vue';
2
+ import { App, VNode } from 'vue';
3
+
4
+ declare const Clip: vue.DefineComponent<{
5
+ [x: string]: any;
6
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
7
+ [key: string]: any;
8
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
9
+ [x: string]: any;
10
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
11
+ declare const Files: vue.DefineComponent<{
12
+ [x: string]: any;
13
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
14
+ [key: string]: any;
15
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
16
+ [x: string]: any;
17
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
18
+ declare const Image: vue.DefineComponent<{
19
+ [x: string]: any;
20
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
21
+ [key: string]: any;
22
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
23
+ [x: string]: any;
24
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
25
+ declare const List: vue.DefineComponent<{
26
+ [x: string]: any;
27
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
28
+ [key: string]: any;
29
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
30
+ [x: string]: any;
31
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
32
+ declare const Player: vue.DefineComponent<{
33
+ [x: string]: any;
34
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
35
+ [key: string]: any;
36
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
37
+ [x: string]: any;
38
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
39
+ declare const Pop: vue.DefineComponent<{
40
+ [x: string]: any;
41
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
42
+ [key: string]: any;
43
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
44
+ [x: string]: any;
45
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
46
+ declare const Text: vue.DefineComponent<{
47
+ [x: string]: any;
48
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
49
+ [key: string]: any;
50
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
51
+ [x: string]: any;
52
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
53
+ declare const Upload: vue.DefineComponent<{
54
+ [x: string]: any;
55
+ }, () => VNode<vue.RendererNode, vue.RendererElement, {
56
+ [key: string]: any;
57
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
58
+ [x: string]: any;
59
+ }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
60
+ declare function registerMaveComponents(app: App): void;
61
+ declare const _default: {
62
+ install(app: App): void;
63
+ };
64
+
65
+ export { Clip, Files, Image, List, Player, Pop, Text, Upload, _default as default, registerMaveComponents };
package/dist/vue.js ADDED
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-IBTJ5OMP.js';import {a}from'./chunk-7MHSKSE5.js';import'./chunk-FSFJQ67W.js';import'./chunk-ZWTODZDA.js';import'./chunk-VZKW2VWI.js';import {a as a$7}from'./chunk-6MCTUE3H.js';import'./chunk-3R7TX6NC.js';import {a as a$6}from'./chunk-OTDMHX6X.js';import {a as a$5}from'./chunk-4CDE2QCJ.js';import {a as a$4}from'./chunk-7WWUNKRI.js';import {a as a$2}from'./chunk-6NE3LOKU.js';import {a as a$3}from'./chunk-ESQT2PPF.js';import'./chunk-ZOWJYZSD.js';import'./chunk-WE5NUDRY.js';import'./chunk-P6SBZPDR.js';import'./chunk-MS5NFI3Q.js';import'./chunk-CUGRXOA2.js';import'./chunk-MK4VIJT3.js';import'./chunk-MMHEOMF5.js';import'./chunk-HX6F65VL.js';import'./chunk-F6EKAS27.js';import'./chunk-LCTGZL3L.js';import'./chunk-45FW5DBN.js';import'./chunk-HMISRRKC.js';import'./chunk-A4GZBQEB.js';import'./chunk-JBV2AYRP.js';import'./chunk-NDDFZTBA.js';import {defineComponent,ref,h,cloneVNode}from'vue';var e={Clip:{tag:"mave-clip",element:a$7},Files:{tag:"mave-files",element:a$6},Image:{tag:"mave-img",element:a$5},List:{tag:"mave-list",element:a$4},Player:{tag:"mave-player",element:a$3},Pop:{tag:"mave-pop",element:a$2},Text:{tag:"mave-text",element:a$1},Upload:{tag:"mave-upload",element:a}};function L(t,o){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,o));}function T(t){let o=[];t.default&&o.push(...t.default());for(let[r,m]of Object.entries(t)){if(!m||r==="default")continue;let p=m();for(let s of p)o.push(cloneVNode(s,{slot:r}));}return o.length?o:void 0}function l(t,o,r){return L(o,r),defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(p,{attrs:s,slots:y,expose:E}){let i=ref(null);return E({element:i}),()=>h(o,{ref:i,...s},T(y))}})}var n={Clip:l("Clip",e.Clip.tag,e.Clip.element),Files:l("Files",e.Files.tag,e.Files.element),Image:l("Image",e.Image.tag,e.Image.element),List:l("List",e.List.tag,e.List.element),Player:l("Player",e.Player.tag,e.Player.element),Pop:l("Pop",e.Pop.tag,e.Pop.element),Text:l("Text",e.Text.tag,e.Text.element),Upload:l("Upload",e.Upload.tag,e.Upload.element)},$=n.Clip,b=n.Files,O=n.Image,k=n.List,D=n.Player,H=n.Pop,W=n.Text,_=n.Upload;function I(t){Object.entries(n).forEach(([o,r])=>{t.component(o,r);});}var q={install(t){I(t);}};export{$ as Clip,b as Files,O as Image,k as List,D as Player,H as Pop,W as Text,_ as Upload,q as default,I as registerMaveComponents};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maveio/components",
3
- "version": "0.0.154",
3
+ "version": "0.0.155-beta.0",
4
4
  "description": "privacy friendly (🇪🇺), iframe-less, video UI elements for videos hosted on mave.io",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -16,15 +16,29 @@
16
16
  "types": "./dist/react.d.ts",
17
17
  "import": "./dist/react.js",
18
18
  "default": "./dist/react.cjs"
19
+ },
20
+ "./vue": {
21
+ "types": "./dist/vue.d.ts",
22
+ "import": "./dist/vue.js",
23
+ "default": "./dist/vue.cjs"
19
24
  }
20
25
  },
21
- "sideEffects": [
22
- "dist/*"
23
- ],
24
26
  "type": "module",
25
27
  "files": [
26
28
  "dist"
27
29
  ],
30
+ "peerDependencies": {
31
+ "vue": "^3.3.0",
32
+ "react": ">=18 <20"
33
+ },
34
+ "peerDependenciesMeta": {
35
+ "vue": {
36
+ "optional": true
37
+ },
38
+ "react": {
39
+ "optional": true
40
+ }
41
+ },
28
42
  "scripts": {
29
43
  "ts-types": "tsc",
30
44
  "build": "tsup",
@@ -69,7 +83,9 @@
69
83
  "prettier": "^2.8.4",
70
84
  "ts-jest": "^29.0.5",
71
85
  "tsup": "^8.4.0",
72
- "typescript": "^5.2"
86
+ "typescript": "^5.2",
87
+ "vue": "^3.4.21",
88
+ "react": "^18.2.0"
73
89
  },
74
90
  "author": "mave.io",
75
91
  "license": "AGPL-3.0-or-later",
@@ -94,16 +110,15 @@
94
110
  "homepage": "https://github.com/maveio/components#readme",
95
111
  "dependencies": {
96
112
  "@lit-labs/observers": "^2.0.2",
113
+ "@lit-labs/ssr-dom-shim": "^1.4.0",
97
114
  "@lit/localize": "^0.12.1",
98
115
  "@lit/react": "^1.0.5",
99
116
  "@lit/task": "^1.0.0",
100
- "@lottiefiles/lottie-player": "^2.0.2",
101
117
  "@maveio/metrics": "^0.1.5",
102
118
  "hls.js": "^1.6.7",
103
119
  "lit": "^3.1.2",
104
120
  "media-chrome": "^4.12.0",
105
121
  "phoenix": "^1.7.21",
106
- "react": "^18.2.0",
107
122
  "tus-js-client": "^4.2.3"
108
123
  },
109
124
  "directories": {
@@ -1,20 +0,0 @@
1
- import {b}from'./chunk-DH5I55F5.js';import {a as a$1}from'./chunk-3PLBZPRP.js';import {a}from'./chunk-HMISRRKC.js';import {h as h$1,c as c$2}from'./chunk-A4GZBQEB.js';import {c as c$1,e,f}from'./chunk-NDDFZTBA.js';var i,d,E,A,h,c=class extends a$1{constructor(){super(...arguments);e(this,i);this.embedController=new b(this);}get embed(){return this._embed}set embed(o){this._embed!==o&&(this._embed=o,this.requestUpdate("embed"),this.embedController.embed=this.embed);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}render(){return c$2`
2
- ${this.embedController.render({pending:this.renderPending,complete:o=>{if(this._data=o,!o)return;let r=this._slottedChildren.map(t=>{function e(){let n;return t.nodeName==="TEMPLATE"?n=t.content.cloneNode(true):n=t.cloneNode(true),n}if(t.getAttribute("name")=="mave-files-video"){let n=e(),a=new Date(this._data.created_at);a&&f(this,i,d).call(this,n,'[slot="date"]',a.toLocaleDateString().replaceAll("/","-"));let p=this._data.video.duration;p&&f(this,i,d).call(this,n,'[slot="duration"]',this.durationToTime(p));let f$1=this._data.video.filetype;f$1&&f(this,i,d).call(this,n,'[slot="filetype"]',f$1);let b=this._data.video.size,C=b/1e6;b&&f(this,i,d).call(this,n,'[slot="size"]',`${C.toFixed(1)} MB`);let u=f(this,i,h).call(this,`${this.cdn_root}/${this.embedId}/h264_hd.mp4`,`${this._data.name}.mp4`);return u.setAttribute("aria-label","Download video"),u.appendChild(n),c$2`${u}`}if(this._data.video.audio&&t.getAttribute("name")=="mave-files-audio"){let n=e();f(this,i,d).call(this,n,'[slot="filetype"]',"mp3");let a=f(this,i,h).call(this,`${this.cdn_root}/${this.embedId}/audio.mp3`,`${this._data.name}.mp3`);return a.setAttribute("aria-label","Download audio"),a.appendChild(n),c$2`${a}`}let m=this._data.subtitles.find(n=>n.language==this._data.video.language);if(m&&t.getAttribute("name")=="mave-files-subtitles"){let n=e();f(this,i,d).call(this,n,'[slot="filetype"]',"vtt");let a=f(this,i,h).call(this,m.path,`${this._data.name}.vtt`);return a.setAttribute("aria-label","Download subtitles"),a.appendChild(n),c$2`${a}`}});return c$2`${this._stylesheets} ${r}`}})}
3
- `}renderPending(){return c$2`<slot style="display: none"></slot>`}};i=new WeakSet,d=function(o,r,t){let e=o.querySelector(r);e&&(e.textContent=t,e.removeAttribute("slot"));},E=function(o,r){let t=window.URL.createObjectURL(o),e=document.createElement("a");e.style.display="none",e.href=t,e.download=r,this.appendChild(e),e.click(),window.URL.revokeObjectURL(t),this.removeChild(e);},A=function(o,r){return fetch(o).then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.blob()}).then(t=>f(this,i,E).call(this,t,r)).catch(t=>console.error("Something went wrong:",t))},h=function(o,r){let t=document.createElement("a");t.classList.add("link"),t.setAttribute("href",o),t.setAttribute("download",r),t.setAttribute("target","new");let e=false;return t.addEventListener("click",m=>{m.preventDefault(),!e&&(e=true,t.style.cursor="wait",t.style.opacity="0.5",f(this,i,A).call(this,o,r).then(()=>{e=false,t.style.cursor="pointer",t.style.opacity="1";}));}),t},c.styles=h$1`
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
- `,c$1([a({type:String})],c.prototype,"embed",1);window&&window.customElements&&(window.customElements.get("mave-files")||window.customElements.define("mave-files",c));export{c as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-HMISRRKC.js';import {i,c as c$1}from'./chunk-A4GZBQEB.js';import {a as a$1}from'./chunk-JBV2AYRP.js';import {c}from'./chunk-NDDFZTBA.js';var r=class extends i{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 a$1.cdn.endpoint.replace("${this.spaceId}",this.spaceId)}get _stylesheets(){let t=document.querySelectorAll('style, link[rel="stylesheet"]');return c$1`${Array.from(t).map(e=>e.cloneNode(true))}`}durationToTime(t){let e=Math.floor(t),s=Math.floor(e/3600),n=Math.floor(e%3600/60),i=e%60;return s>0?`${s}:${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`${n}:${i.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}}));}};c([a({type:String})],r.prototype,"embed",1);export{r as a};
@@ -1,93 +0,0 @@
1
- 'use strict';var chunkCOWZ7GYF_cjs=require('./chunk-COWZ7GYF.cjs');var M=t=>typeof t!="string"&&"strTag"in t,p=(t,e,o)=>{let s=t[0];for(let r=1;r<t.length;r++)s+=e[o?o[r-1]:r-1],s+=t[r];return s};var c=t=>M(t)?p(t.strings,t.values):t;var d="lit-localize-status";var x=class{constructor(e){this.__litLocalizeEventHandler=o=>{o.detail.status==="ready"&&this.host.requestUpdate();},this.host=e;}hostConnected(){window.addEventListener(d,this.__litLocalizeEventHandler);}hostDisconnected(){window.removeEventListener(d,this.__litLocalizeEventHandler);}},N=t=>t.addController(new x(t)),C=N;var W=()=>(t,e)=>(t.addInitializer(C),t);var u=class{constructor(){this.settled=false,this.promise=new Promise((e,o)=>{this._resolve=e,this._reject=o;});}resolve(e){this.settled=true,this._resolve(e);}reject(e){this.settled=true,this._reject(e);}};var i=[];for(let t=0;t<256;t++)i[t]=(t>>4&15).toString(16)+(t&15).toString(16);function y(t){let e=0,o=8997,s=0,r=33826,n=0,a=40164,v=0,f=52210;for(let L=0;L<t.length;L++)o^=t.charCodeAt(L),e=o*435,s=r*435,n=a*435,v=f*435,n+=o<<8,v+=r<<8,s+=e>>>16,o=e&65535,n+=s>>>16,r=s&65535,f=v+(n>>>16)&65535,a=n&65535;return i[f>>8]+i[f&255]+i[a>>8]+i[a&255]+i[r>>8]+i[r&255]+i[o>>8]+i[o&255]}var F="",O="h",b="s";function z(t,e){return (e?O:b)+y(typeof t=="string"?t:t.join(F))}var A=new WeakMap,j=new Map;function H(t,e,o){if(t){let s=o?.id??X(e),r=t[s];if(r){if(typeof r=="string")return r;if("strTag"in r)return p(r.strings,e.values,r.values);{let n=A.get(r);return n===void 0&&(n=r.values,A.set(r,n)),{...r,values:n.map(a=>e.values[a])}}}}return c(e)}function X(t){let e=typeof t=="string"?t:t.strings,o=j.get(e);return o===void 0&&(o=z(e,typeof t!="string"&&!("strTag"in t)),j.set(e,o)),o}function _(t){window.dispatchEvent(new CustomEvent(d,{detail:t}));}var g="",E,P,h,T,R,l=new u;l.resolve();var m=0,U=t=>(S((e,o)=>H(R,e,o)),g=P=t.sourceLocale,h=new Set(t.targetLocales),h.add(t.sourceLocale),T=t.loadLocale,{getLocale:$,setLocale:k}),$=()=>g,k=t=>{if(t===(E??g))return l.promise;if(!h||!T)throw new Error("Internal error");if(!h.has(t))throw new Error("Invalid locale code");m++;let e=m;return E=t,l.settled&&(l=new u),_({status:"loading",loadingLocale:t}),(t===P?Promise.resolve({templates:void 0}):T(t)).then(s=>{m===e&&(g=t,E=void 0,R=s.templates,_({status:"ready",readyLocale:t}),l.resolve());},s=>{m===e&&(_({status:"error",errorLocale:t,errorMessage:s.toString()}),l.reject(s));}),l.promise};exports.b=c;var V=false;function S(t){if(V)throw new Error("lit-localize can only be configured once");exports.b=t,V=true;}var G=U({sourceLocale:"default",targetLocales:["en","nl","de","fr"],loadLocale:async t=>{try{return await import(`./${chunkCOWZ7GYF_cjs.a()}generated/locales/${t}.js`)}catch(e){return console.log("[mave-player]: locale not loaded",e),null}}}),w=false,D=class{constructor(e){this._onLoad=e=>{e.detail.status==="loading"?w=false:e.detail.status==="ready"&&(w=true),this.host.requestUpdate();};this.host=e,e.addController(this);}get loaded(){return w}set locale(e){this._locale!==e&&(G.setLocale(e),this.host.requestUpdate());}get locale(){return this._locale}hostConnected(){window.addEventListener("lit-localize-status",this._onLoad);}hostDisconnected(){window.removeEventListener("lit-localize-status",this._onLoad);}};/*! Bundled license information:
2
-
3
- @lit/localize/internal/str-tag.js:
4
- (**
5
- * @license
6
- * Copyright 2021 Google LLC
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- *)
9
-
10
- @lit/localize/internal/default-msg.js:
11
- (**
12
- * @license
13
- * Copyright 2021 Google LLC
14
- * SPDX-License-Identifier: BSD-3-Clause
15
- *)
16
-
17
- @lit/localize/internal/locale-status-event.js:
18
- (**
19
- * @license
20
- * Copyright 2021 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- *)
23
-
24
- @lit/localize/internal/types.js:
25
- (**
26
- * @license
27
- * Copyright 2021 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- *)
30
-
31
- @lit/localize/internal/localized-controller.js:
32
- (**
33
- * @license
34
- * Copyright 2021 Google LLC
35
- * SPDX-License-Identifier: BSD-3-Clause
36
- *)
37
-
38
- @lit/localize/internal/localized-decorator.js:
39
- (**
40
- * @license
41
- * Copyright 2021 Google LLC
42
- * SPDX-License-Identifier: BSD-3-Clause
43
- *)
44
-
45
- @lit/localize/internal/deferred.js:
46
- (**
47
- * @license
48
- * Copyright 2020 Google LLC
49
- * SPDX-License-Identifier: BSD-3-Clause
50
- *)
51
-
52
- @lit/localize/internal/fnv1a64.js:
53
- (**
54
- * @license
55
- * Copyright 2014 Travis Webb
56
- * SPDX-License-Identifier: MIT
57
- *)
58
-
59
- @lit/localize/internal/id-generation.js:
60
- (**
61
- * @license
62
- * Copyright 2020 Google LLC
63
- * SPDX-License-Identifier: BSD-3-Clause
64
- *)
65
-
66
- @lit/localize/internal/runtime-msg.js:
67
- (**
68
- * @license
69
- * Copyright 2021 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- *)
72
-
73
- @lit/localize/init/runtime.js:
74
- (**
75
- * @license
76
- * Copyright 2021 Google LLC
77
- * SPDX-License-Identifier: BSD-3-Clause
78
- *)
79
-
80
- @lit/localize/init/transform.js:
81
- (**
82
- * @license
83
- * Copyright 2021 Google LLC
84
- * SPDX-License-Identifier: BSD-3-Clause
85
- *)
86
-
87
- @lit/localize/lit-localize.js:
88
- (**
89
- * @license
90
- * Copyright 2020 Google LLC
91
- * SPDX-License-Identifier: BSD-3-Clause
92
- *)
93
- */exports.a=W;exports.c=G;exports.d=D;
@@ -1,93 +0,0 @@
1
- import {a}from'./chunk-TIOUPJWD.js';var M=t=>typeof t!="string"&&"strTag"in t,p=(t,e,o)=>{let s=t[0];for(let r=1;r<t.length;r++)s+=e[o?o[r-1]:r-1],s+=t[r];return s};var c=t=>M(t)?p(t.strings,t.values):t;var d="lit-localize-status";var x=class{constructor(e){this.__litLocalizeEventHandler=o=>{o.detail.status==="ready"&&this.host.requestUpdate();},this.host=e;}hostConnected(){window.addEventListener(d,this.__litLocalizeEventHandler);}hostDisconnected(){window.removeEventListener(d,this.__litLocalizeEventHandler);}},N=t=>t.addController(new x(t)),C=N;var W=()=>(t,e)=>(t.addInitializer(C),t);var u=class{constructor(){this.settled=false,this.promise=new Promise((e,o)=>{this._resolve=e,this._reject=o;});}resolve(e){this.settled=true,this._resolve(e);}reject(e){this.settled=true,this._reject(e);}};var i=[];for(let t=0;t<256;t++)i[t]=(t>>4&15).toString(16)+(t&15).toString(16);function y(t){let e=0,o=8997,s=0,r=33826,n=0,a=40164,v=0,f=52210;for(let L=0;L<t.length;L++)o^=t.charCodeAt(L),e=o*435,s=r*435,n=a*435,v=f*435,n+=o<<8,v+=r<<8,s+=e>>>16,o=e&65535,n+=s>>>16,r=s&65535,f=v+(n>>>16)&65535,a=n&65535;return i[f>>8]+i[f&255]+i[a>>8]+i[a&255]+i[r>>8]+i[r&255]+i[o>>8]+i[o&255]}var F="",O="h",b="s";function z(t,e){return (e?O:b)+y(typeof t=="string"?t:t.join(F))}var A=new WeakMap,j=new Map;function H(t,e,o){if(t){let s=o?.id??X(e),r=t[s];if(r){if(typeof r=="string")return r;if("strTag"in r)return p(r.strings,e.values,r.values);{let n=A.get(r);return n===void 0&&(n=r.values,A.set(r,n)),{...r,values:n.map(a=>e.values[a])}}}}return c(e)}function X(t){let e=typeof t=="string"?t:t.strings,o=j.get(e);return o===void 0&&(o=z(e,typeof t!="string"&&!("strTag"in t)),j.set(e,o)),o}function _(t){window.dispatchEvent(new CustomEvent(d,{detail:t}));}var g="",E,P,h,T,R,l=new u;l.resolve();var m=0,U=t=>(S((e,o)=>H(R,e,o)),g=P=t.sourceLocale,h=new Set(t.targetLocales),h.add(t.sourceLocale),T=t.loadLocale,{getLocale:$,setLocale:k}),$=()=>g,k=t=>{if(t===(E??g))return l.promise;if(!h||!T)throw new Error("Internal error");if(!h.has(t))throw new Error("Invalid locale code");m++;let e=m;return E=t,l.settled&&(l=new u),_({status:"loading",loadingLocale:t}),(t===P?Promise.resolve({templates:void 0}):T(t)).then(s=>{m===e&&(g=t,E=void 0,R=s.templates,_({status:"ready",readyLocale:t}),l.resolve());},s=>{m===e&&(_({status:"error",errorLocale:t,errorMessage:s.toString()}),l.reject(s));}),l.promise};var q=c,V=false;function S(t){if(V)throw new Error("lit-localize can only be configured once");q=t,V=true;}var G=U({sourceLocale:"default",targetLocales:["en","nl","de","fr"],loadLocale:async t=>{try{return await import(`./${a()}generated/locales/${t}.js`)}catch(e){return console.log("[mave-player]: locale not loaded",e),null}}}),w=false,D=class{constructor(e){this._onLoad=e=>{e.detail.status==="loading"?w=false:e.detail.status==="ready"&&(w=true),this.host.requestUpdate();};this.host=e,e.addController(this);}get loaded(){return w}set locale(e){this._locale!==e&&(G.setLocale(e),this.host.requestUpdate());}get locale(){return this._locale}hostConnected(){window.addEventListener("lit-localize-status",this._onLoad);}hostDisconnected(){window.removeEventListener("lit-localize-status",this._onLoad);}};/*! Bundled license information:
2
-
3
- @lit/localize/internal/str-tag.js:
4
- (**
5
- * @license
6
- * Copyright 2021 Google LLC
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- *)
9
-
10
- @lit/localize/internal/default-msg.js:
11
- (**
12
- * @license
13
- * Copyright 2021 Google LLC
14
- * SPDX-License-Identifier: BSD-3-Clause
15
- *)
16
-
17
- @lit/localize/internal/locale-status-event.js:
18
- (**
19
- * @license
20
- * Copyright 2021 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- *)
23
-
24
- @lit/localize/internal/types.js:
25
- (**
26
- * @license
27
- * Copyright 2021 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- *)
30
-
31
- @lit/localize/internal/localized-controller.js:
32
- (**
33
- * @license
34
- * Copyright 2021 Google LLC
35
- * SPDX-License-Identifier: BSD-3-Clause
36
- *)
37
-
38
- @lit/localize/internal/localized-decorator.js:
39
- (**
40
- * @license
41
- * Copyright 2021 Google LLC
42
- * SPDX-License-Identifier: BSD-3-Clause
43
- *)
44
-
45
- @lit/localize/internal/deferred.js:
46
- (**
47
- * @license
48
- * Copyright 2020 Google LLC
49
- * SPDX-License-Identifier: BSD-3-Clause
50
- *)
51
-
52
- @lit/localize/internal/fnv1a64.js:
53
- (**
54
- * @license
55
- * Copyright 2014 Travis Webb
56
- * SPDX-License-Identifier: MIT
57
- *)
58
-
59
- @lit/localize/internal/id-generation.js:
60
- (**
61
- * @license
62
- * Copyright 2020 Google LLC
63
- * SPDX-License-Identifier: BSD-3-Clause
64
- *)
65
-
66
- @lit/localize/internal/runtime-msg.js:
67
- (**
68
- * @license
69
- * Copyright 2021 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- *)
72
-
73
- @lit/localize/init/runtime.js:
74
- (**
75
- * @license
76
- * Copyright 2021 Google LLC
77
- * SPDX-License-Identifier: BSD-3-Clause
78
- *)
79
-
80
- @lit/localize/init/transform.js:
81
- (**
82
- * @license
83
- * Copyright 2021 Google LLC
84
- * SPDX-License-Identifier: BSD-3-Clause
85
- *)
86
-
87
- @lit/localize/lit-localize.js:
88
- (**
89
- * @license
90
- * Copyright 2020 Google LLC
91
- * SPDX-License-Identifier: BSD-3-Clause
92
- *)
93
- */export{W as a,q as b,G as c,D as d};