@maas/vue-equipment 1.0.0-beta.3 → 1.0.0-beta.30
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/README.md +2 -2
- package/dist/composables/index.d.ts +5 -5
- package/dist/composables/index.js +23 -13
- package/dist/composables/index.js.map +1 -1
- package/dist/nuxt/module.d.mts +2 -1
- package/dist/nuxt/module.json +2 -2
- package/dist/nuxt/module.mjs +32 -25
- package/dist/nuxt/types.d.mts +3 -1
- package/dist/plugins/.turbo/turbo-lint.log +1 -9
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +61 -84
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +10 -24
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +17 -31
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +6 -20
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +57 -62
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +9 -24
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +34 -45
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +8 -22
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/useMagicAccordion.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicAccordion/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +148 -154
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +7 -14
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +42 -52
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +6 -20
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +72 -87
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +13 -25
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue +37 -47
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +6 -20
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +61 -77
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +6 -22
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +23 -39
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +80 -86
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +9 -25
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +36 -48
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +8 -22
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandState.mjs +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.mjs +1 -0
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicCommand/src/types/index.d.ts +3 -3
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue +34 -41
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +8 -22
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue +19 -36
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +6 -20
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue +42 -74
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +9 -14
- package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.mjs +0 -1
- package/dist/plugins/MagicCookie/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicCookie/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +82 -100
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +6 -24
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +43 -63
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +34 -14
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +2 -15
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +103 -53
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +6 -5
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +4 -3
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.mjs +1 -1
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +284 -323
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +18 -35
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +34 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.mjs +28 -10
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +16 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/types/index.mjs +1 -0
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.mjs +2 -2
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +202 -100
- package/dist/plugins/MagicEmitter/src/types/index.d.ts +2 -0
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +38 -72
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +8 -24
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.mjs +8 -2
- package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.d.ts +1 -1
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +51 -63
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +6 -20
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +180 -216
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +10 -25
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +171 -198
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +8 -24
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +87 -113
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +13 -25
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +82 -81
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +6 -22
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +63 -86
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +9 -23
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +94 -97
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +11 -25
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +49 -61
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +8 -22
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +15 -5
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +4 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuDOM.mjs +35 -15
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +6 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +2 -0
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +18 -6
- package/dist/plugins/MagicMenu/src/composables/useMagicMenu.mjs +1 -0
- package/dist/plugins/MagicMenu/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicMenu/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.mjs +2 -2
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +134 -171
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +10 -25
- package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +34 -14
- package/dist/plugins/MagicModal/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicModal/src/types/index.mjs +1 -0
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +50 -81
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +1 -10
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +3 -3
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +10 -6
- package/dist/plugins/MagicNoise/src/types/index.d.ts +2 -0
- package/dist/plugins/MagicNoise/src/utils/defaultOptions.mjs +3 -1
- package/dist/plugins/MagicPie/index.d.ts +7 -0
- package/dist/plugins/MagicPie/index.mjs +8 -0
- package/dist/plugins/MagicPie/nuxt.d.ts +2 -0
- package/dist/plugins/MagicPie/nuxt.mjs +23 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue +168 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue.d.ts +7 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.d.ts +6 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.mjs +33 -0
- package/dist/plugins/MagicPie/src/composables/useMagicPie.d.ts +13 -0
- package/dist/plugins/MagicPie/src/composables/useMagicPie.mjs +43 -0
- package/dist/plugins/MagicPie/src/types/index.d.ts +9 -0
- package/dist/plugins/MagicPie/src/types/index.mjs +0 -0
- package/dist/plugins/MagicPlayer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +93 -65
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +123 -127
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +9 -25
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue +32 -42
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +117 -103
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +134 -82
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +17 -13
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue +20 -36
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +5 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +66 -56
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +6 -22
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +60 -109
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +118 -68
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +179 -210
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +24 -34
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +0 -4
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +9 -52
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +8 -34
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +170 -234
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerEmitter.d.ts +8 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerEmitter.mjs +103 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +3 -17
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +59 -176
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerProvider.d.ts +6 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerProvider.mjs +34 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +3 -4
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +19 -35
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.d.ts +7 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.mjs +60 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +4 -8
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +43 -91
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +37 -52
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.mjs +53 -3
- package/dist/plugins/MagicPlayer/src/css/magic-player-audio-controls.css +0 -1
- package/dist/plugins/MagicPlayer/src/css/magic-player-timeline.css +5 -0
- package/dist/plugins/MagicPlayer/src/symbols/index.d.ts +6 -2
- package/dist/plugins/MagicPlayer/src/symbols/index.mjs +12 -1
- package/dist/plugins/MagicPlayer/src/types/index.d.ts +75 -10
- package/dist/plugins/MagicPlayer/src/utils/defaultOptions.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/utils/defaultOptions.mjs +6 -1
- package/dist/plugins/MagicPlayer/src/utils/playbackDefaults.d.ts +3 -0
- package/dist/plugins/MagicPlayer/src/utils/playbackDefaults.mjs +7 -0
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +54 -61
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +6 -22
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +56 -71
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +6 -22
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue +26 -33
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +24 -21
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +63 -71
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +8 -24
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +16 -6
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +41 -26
- package/dist/plugins/MagicScroll/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +90 -109
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +7 -16
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue +53 -81
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +6 -23
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +2 -2
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +5 -5
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +23 -23
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +1 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +33 -15
- package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +1 -0
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -0
- package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +10 -2
- package/dist/plugins/MagicToast/src/types/index.d.ts +3 -3
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/utils/css/animations/fade-down.css +9 -0
- package/dist/utils/css/animations.css +9 -22
- package/dist/utils/css/easings.css +9 -1
- package/dist/utils/css/keyframes.css +22 -0
- package/dist/utils/index.d.ts +9 -4
- package/dist/utils/index.js +39 -3
- package/dist/utils/index.js.map +1 -1
- package/package.json +11 -7
- package/dist/nuxt/module.cjs +0 -5
- package/dist/nuxt/module.d.ts +0 -9
- package/dist/nuxt/types.d.ts +0 -1
- package/dist/plugins/MagicAccordion/demo/data/footer.json +0 -117
- package/dist/plugins/MagicCommand/demo/data/about.json +0 -3
- package/dist/plugins/MagicCommand/demo/data/search.json +0 -594
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +0 -15
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.mjs +0 -9
- package/dist/utils/css/transitions.css +0 -8
- /package/dist/utils/css/{transitions → animations}/clip.css +0 -0
- /package/dist/utils/css/{transitions → animations}/fade-up.css +0 -0
- /package/dist/utils/css/{transitions → animations}/fade.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-btt.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-ltr.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-rtl.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-ttb.css +0 -0
- /package/dist/utils/css/{transitions → animations}/zoom.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/auto-size-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/clip-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/clip-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-down-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-down-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-up-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-up-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/flip-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/flip-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-btt-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-btt-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ltr-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ltr-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-rtl-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-rtl-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ttb-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ttb-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/squash-y.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/zoom-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/zoom-out.css +0 -0
|
@@ -1,62 +1,72 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="player"
|
|
4
|
+
class="magic-player-provider"
|
|
5
|
+
:data-id="id"
|
|
6
|
+
:data-mode="mappedOptions.mode"
|
|
7
|
+
:data-fullscreen="fullscreen"
|
|
8
|
+
:data-touched="touched"
|
|
9
|
+
:data-playing="playing"
|
|
10
|
+
:data-paused="paused"
|
|
11
|
+
:data-started="started"
|
|
12
|
+
:data-waiting="waiting"
|
|
13
|
+
:data-loaded="loaded"
|
|
14
|
+
:data-muted="muted"
|
|
15
|
+
@mouseenter="onMouseenter"
|
|
16
|
+
@mouseleave="onMouseleave"
|
|
17
|
+
@pointerdown="onPointerdown"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup>
|
|
24
|
+
import {
|
|
25
|
+
toRefs,
|
|
26
|
+
provide,
|
|
27
|
+
onMounted,
|
|
28
|
+
onUnmounted,
|
|
29
|
+
useTemplateRef
|
|
30
|
+
} from "vue";
|
|
6
31
|
import defu from "defu";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
32
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
33
|
+
import {
|
|
34
|
+
MagicPlayerInstanceId,
|
|
35
|
+
MagicPlayerOptionsKey,
|
|
36
|
+
MagicPlayerRef
|
|
37
|
+
} from "../symbols";
|
|
11
38
|
import { defaultOptions } from "../utils/defaultOptions";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
ref_key: "playerRef",
|
|
40
|
-
ref: playerRef,
|
|
41
|
-
class: "magic-player-provider",
|
|
42
|
-
"data-mode": _unref(mappedOptions).mode,
|
|
43
|
-
"data-fullscreen": _unref(isFullscreen),
|
|
44
|
-
"data-touched": _unref(touched),
|
|
45
|
-
"data-playing": _unref(playing),
|
|
46
|
-
"data-paused": !_unref(playing),
|
|
47
|
-
"data-waiting": _unref(waiting),
|
|
48
|
-
"data-loaded": _unref(loaded),
|
|
49
|
-
"data-muted": _unref(muted),
|
|
50
|
-
onMouseenter: _cache[0] || (_cache[0] = //@ts-ignore
|
|
51
|
-
(...args) => _unref(onMouseenter) && _unref(onMouseenter)(...args)),
|
|
52
|
-
onMouseleave: _cache[1] || (_cache[1] = //@ts-ignore
|
|
53
|
-
(...args) => _unref(onMouseleave) && _unref(onMouseleave)(...args))
|
|
54
|
-
}, [
|
|
55
|
-
_renderSlot(_ctx.$slots, "default")
|
|
56
|
-
], 40, _hoisted_1);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
39
|
+
import { usePlayerEmitter } from "../composables/private/usePlayerEmitter";
|
|
40
|
+
import { usePlayerProvider } from "../composables/private/usePlayerProvider";
|
|
41
|
+
const { id, options } = defineProps({
|
|
42
|
+
id: { type: null, required: true },
|
|
43
|
+
options: { type: Object, required: false }
|
|
44
|
+
});
|
|
45
|
+
const mappedOptions = defu(options, defaultOptions);
|
|
46
|
+
const { initializeState, deleteState } = usePlayerState(id);
|
|
47
|
+
const state = initializeState();
|
|
48
|
+
const {
|
|
49
|
+
playing,
|
|
50
|
+
paused,
|
|
51
|
+
started,
|
|
52
|
+
waiting,
|
|
53
|
+
muted,
|
|
54
|
+
loaded,
|
|
55
|
+
fullscreen,
|
|
56
|
+
touched
|
|
57
|
+
} = toRefs(state);
|
|
58
|
+
const { onMouseenter, onMouseleave, onPointerdown } = usePlayerProvider(id);
|
|
59
|
+
const playerRef = useTemplateRef("player");
|
|
60
|
+
const { initializeEmitter } = usePlayerEmitter({ id });
|
|
61
|
+
onMounted(() => {
|
|
62
|
+
initializeEmitter();
|
|
63
|
+
});
|
|
64
|
+
onUnmounted(() => {
|
|
65
|
+
deleteState();
|
|
59
66
|
});
|
|
67
|
+
provide(MagicPlayerInstanceId, id);
|
|
68
|
+
provide(MagicPlayerOptionsKey, mappedOptions);
|
|
69
|
+
provide(MagicPlayerRef, playerRef);
|
|
60
70
|
</script>
|
|
61
71
|
|
|
62
72
|
<style>
|
|
@@ -4,30 +4,14 @@ interface MagicPlayerProps {
|
|
|
4
4
|
id: MaybeRef<string>;
|
|
5
5
|
options?: MagicPlayerOptions;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {
|
|
13
|
-
playerRef: any;
|
|
14
|
-
};
|
|
15
|
-
rootEl: any;
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
13
|
export default _default;
|
|
21
|
-
type
|
|
22
|
-
type __VLS_TypePropsToOption<T> = {
|
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
-
} : {
|
|
26
|
-
type: import('vue').PropType<T[K]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
15
|
new (): {
|
|
32
16
|
$slots: S;
|
|
33
17
|
};
|
|
@@ -1,112 +1,63 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="track" class="magic-player-timeline">
|
|
3
|
+
<div
|
|
4
|
+
class="magic-player-timeline__target"
|
|
5
|
+
@pointerdown="onPointerdown"
|
|
6
|
+
@pointermove="onPointermove"
|
|
7
|
+
>
|
|
8
|
+
<div class="magic-player-timeline__track">
|
|
9
|
+
<div
|
|
10
|
+
class="magic-player-timeline__thumb"
|
|
11
|
+
:style="{ left: `${scrubbedPercentage}%` }"
|
|
12
|
+
>
|
|
13
|
+
<div class="magic-player-timeline__thumb-handle" />
|
|
14
|
+
</div>
|
|
15
|
+
<div class="magic-player-timeline__inner-track">
|
|
16
|
+
<div
|
|
17
|
+
class="magic-player-timeline__buffered"
|
|
18
|
+
:style="{ left: `${bufferedPercentage}%` }"
|
|
19
|
+
/>
|
|
20
|
+
<div
|
|
21
|
+
v-show="controlsMouseEntered"
|
|
22
|
+
class="magic-player-timeline__seeked"
|
|
23
|
+
:style="{ left: `${seekedPercentage}%` }"
|
|
24
|
+
/>
|
|
25
|
+
<div
|
|
26
|
+
class="magic-player-timeline__scrubbed"
|
|
27
|
+
:style="{ left: `${scrubbedPercentage}%` }"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script setup>
|
|
36
|
+
import { inject, toRefs } from "vue";
|
|
8
37
|
import { usePlayerControlsApi } from "../composables/private/usePlayerControlsApi";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return _openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
34
|
-
_createElementVNode(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
class: "magic-player-timeline__target",
|
|
38
|
-
onMouseenter: _cache[0] || (_cache[0] = //@ts-ignore
|
|
39
|
-
(...args) => _unref(onMouseenter) && _unref(onMouseenter)(...args)),
|
|
40
|
-
onMouseleave: _cache[1] || (_cache[1] = //@ts-ignore
|
|
41
|
-
(...args) => _unref(onMouseleave) && _unref(onMouseleave)(...args)),
|
|
42
|
-
onPointerdown: _cache[2] || (_cache[2] = //@ts-ignore
|
|
43
|
-
(...args) => _unref(onPointerdown) && _unref(onPointerdown)(...args)),
|
|
44
|
-
onPointerup: _cache[3] || (_cache[3] = //@ts-ignore
|
|
45
|
-
(...args) => _unref(onPointerup) && _unref(onPointerup)(...args)),
|
|
46
|
-
onPointermove: _cache[4] || (_cache[4] = //@ts-ignore
|
|
47
|
-
(...args) => _unref(onPointermove) && _unref(onPointermove)(...args))
|
|
48
|
-
},
|
|
49
|
-
[
|
|
50
|
-
_createElementVNode("div", _hoisted_2, [
|
|
51
|
-
_createElementVNode(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
class: "magic-player-timeline__thumb",
|
|
55
|
-
style: _normalizeStyle({ left: `${_unref(scrubbedPercentage)}%` })
|
|
56
|
-
},
|
|
57
|
-
_cache[5] || (_cache[5] = [
|
|
58
|
-
_createElementVNode(
|
|
59
|
-
"div",
|
|
60
|
-
{ class: "magic-player-timeline__thumb-handle" },
|
|
61
|
-
null,
|
|
62
|
-
-1
|
|
63
|
-
/* HOISTED */
|
|
64
|
-
)
|
|
65
|
-
]),
|
|
66
|
-
4
|
|
67
|
-
/* STYLE */
|
|
68
|
-
),
|
|
69
|
-
_createElementVNode("div", _hoisted_3, [
|
|
70
|
-
_createElementVNode(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
class: "magic-player-timeline__buffered",
|
|
74
|
-
style: _normalizeStyle({ left: `${_unref(bufferedPercentage)}%` })
|
|
75
|
-
},
|
|
76
|
-
null,
|
|
77
|
-
4
|
|
78
|
-
/* STYLE */
|
|
79
|
-
),
|
|
80
|
-
_withDirectives(_createElementVNode(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
class: "magic-player-timeline__seeked",
|
|
84
|
-
style: _normalizeStyle({ left: `${_unref(seekedPercentage)}%` })
|
|
85
|
-
},
|
|
86
|
-
null,
|
|
87
|
-
4
|
|
88
|
-
/* STYLE */
|
|
89
|
-
), [
|
|
90
|
-
[_vShow, _unref(mouseEntered)]
|
|
91
|
-
]),
|
|
92
|
-
_createElementVNode(
|
|
93
|
-
"div",
|
|
94
|
-
{
|
|
95
|
-
class: "magic-player-timeline__scrubbed",
|
|
96
|
-
style: _normalizeStyle({ left: `${_unref(scrubbedPercentage)}%` })
|
|
97
|
-
},
|
|
98
|
-
null,
|
|
99
|
-
4
|
|
100
|
-
/* STYLE */
|
|
101
|
-
)
|
|
102
|
-
])
|
|
103
|
-
])
|
|
104
|
-
],
|
|
105
|
-
32
|
|
106
|
-
/* NEED_HYDRATION */
|
|
107
|
-
)
|
|
108
|
-
]);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
38
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
39
|
+
import {
|
|
40
|
+
MagicPlayerInstanceId,
|
|
41
|
+
MagicPlayerTrackRef,
|
|
42
|
+
MagicPlayerPopoverRef,
|
|
43
|
+
MagicPlayerBarRef
|
|
44
|
+
} from "../symbols";
|
|
45
|
+
const instanceId = inject(MagicPlayerInstanceId, void 0);
|
|
46
|
+
if (!instanceId) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
"MagicPlayerTimeline must be nested inside MagicPlayerVideoControls or MagicPlayerAudioControls."
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const { initializeState } = usePlayerState(instanceId);
|
|
52
|
+
const state = initializeState();
|
|
53
|
+
const { controlsMouseEntered, seekedPercentage, scrubbedPercentage } = toRefs(state);
|
|
54
|
+
const barRef = inject(MagicPlayerBarRef);
|
|
55
|
+
const trackRef = inject(MagicPlayerTrackRef);
|
|
56
|
+
const popoverRef = inject(MagicPlayerPopoverRef, void 0);
|
|
57
|
+
const { bufferedPercentage, onPointerdown, onPointermove } = usePlayerControlsApi({
|
|
58
|
+
id: instanceId,
|
|
59
|
+
barRef,
|
|
60
|
+
trackRef,
|
|
61
|
+
popoverRef
|
|
111
62
|
});
|
|
112
63
|
</script>
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<video
|
|
3
|
+
ref="el"
|
|
4
|
+
class="magic-player-video"
|
|
5
|
+
playsinline
|
|
6
|
+
disablePictureInPicture
|
|
7
|
+
:preload="injectedOptions.preload"
|
|
8
|
+
:loop="injectedOptions.loop"
|
|
9
|
+
:muted="muted"
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup>
|
|
14
|
+
import {
|
|
15
|
+
toRefs,
|
|
16
|
+
useTemplateRef,
|
|
17
|
+
watch,
|
|
18
|
+
onMounted,
|
|
19
|
+
inject,
|
|
20
|
+
onBeforeUnmount,
|
|
21
|
+
shallowRef,
|
|
22
|
+
computed
|
|
23
|
+
} from "vue";
|
|
6
24
|
import {
|
|
7
25
|
useElementVisibility,
|
|
8
26
|
useEventListener,
|
|
@@ -11,76 +29,108 @@ import {
|
|
|
11
29
|
import { usePlayerVideoApi } from "../composables/private/usePlayerVideoApi";
|
|
12
30
|
import { usePlayerMediaApi } from "../composables/private/usePlayerMediaApi";
|
|
13
31
|
import { usePlayerRuntime } from "../composables/private/usePlayerRuntime";
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
33
|
+
import { videoModePlaybackDefaults } from "../utils/playbackDefaults";
|
|
34
|
+
import {
|
|
35
|
+
MagicPlayerInstanceId,
|
|
36
|
+
MagicPlayerOptionsKey,
|
|
37
|
+
MagicPlayerRef
|
|
38
|
+
} from "../symbols";
|
|
39
|
+
const injectedInstanceId = inject(MagicPlayerInstanceId, void 0);
|
|
40
|
+
const injectedOptions = inject(MagicPlayerOptionsKey, void 0);
|
|
41
|
+
const injectedPlayerRef = inject(MagicPlayerRef, void 0);
|
|
42
|
+
if (!injectedInstanceId) {
|
|
43
|
+
throw new Error("MagicPlayerVideo must be used within a MagicPlayerProvider");
|
|
44
|
+
}
|
|
45
|
+
if (!injectedOptions) {
|
|
46
|
+
throw new Error("MagicPlayerVideo must be used within a MagicPlayerProvider");
|
|
47
|
+
}
|
|
48
|
+
const elRef = useTemplateRef("el");
|
|
49
|
+
const { initialize, destroy } = usePlayerRuntime({
|
|
50
|
+
id: injectedInstanceId,
|
|
51
|
+
mediaRef: elRef,
|
|
52
|
+
src: injectedOptions.src,
|
|
53
|
+
srcType: injectedOptions.srcType
|
|
54
|
+
});
|
|
55
|
+
const { initializeState } = usePlayerState(injectedInstanceId);
|
|
56
|
+
const state = initializeState();
|
|
57
|
+
const { muted, playing, started, loaded } = toRefs(state);
|
|
58
|
+
usePlayerMediaApi({
|
|
59
|
+
id: injectedInstanceId,
|
|
60
|
+
mediaRef: elRef
|
|
61
|
+
});
|
|
62
|
+
const { play, pause, mute, initializeFullscreen } = usePlayerVideoApi({
|
|
63
|
+
id: injectedInstanceId,
|
|
64
|
+
videoRef: elRef,
|
|
65
|
+
playerRef: injectedPlayerRef
|
|
66
|
+
});
|
|
67
|
+
const wasPlaying = shallowRef(false);
|
|
68
|
+
const isVisible = useElementVisibility(elRef);
|
|
69
|
+
const manageWindow = computed(() => {
|
|
70
|
+
const playbackOptions = injectedOptions.playback || videoModePlaybackDefaults;
|
|
71
|
+
return playbackOptions !== false && playbackOptions?.includes("window");
|
|
72
|
+
});
|
|
73
|
+
const manageViewport = computed(() => {
|
|
74
|
+
const playbackOptions = injectedOptions.playback || videoModePlaybackDefaults;
|
|
75
|
+
return playbackOptions !== false && playbackOptions?.includes("viewport");
|
|
76
|
+
});
|
|
77
|
+
function onWindowFocus() {
|
|
78
|
+
if (isVisible.value && wasPlaying.value) {
|
|
79
|
+
play();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function onWindowBlur() {
|
|
83
|
+
wasPlaying.value = playing.value;
|
|
84
|
+
pause();
|
|
85
|
+
}
|
|
86
|
+
if (manageWindow.value) {
|
|
87
|
+
useEventListener(defaultWindow, "focus", onWindowFocus);
|
|
88
|
+
useEventListener(defaultWindow, "blur", onWindowBlur);
|
|
89
|
+
}
|
|
90
|
+
if (manageViewport.value) {
|
|
91
|
+
watch(isVisible, (value) => {
|
|
92
|
+
if (!value) {
|
|
93
|
+
wasPlaying.value = playing.value;
|
|
94
|
+
pause();
|
|
22
95
|
}
|
|
23
|
-
if (
|
|
24
|
-
|
|
96
|
+
if (value && wasPlaying.value) {
|
|
97
|
+
play();
|
|
25
98
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { initialize, destroy } = usePlayerRuntime({
|
|
29
|
-
id: injectedId,
|
|
30
|
-
mediaRef: elRef,
|
|
31
|
-
src: injectedOptions.src,
|
|
32
|
-
srcType: injectedOptions.srcType
|
|
33
|
-
});
|
|
34
|
-
const { muted, playing } = usePlayerMediaApi({
|
|
35
|
-
id: injectedId,
|
|
36
|
-
mediaRef: elRef
|
|
37
|
-
});
|
|
38
|
-
const { play, pause } = usePlayerVideoApi({
|
|
39
|
-
id: injectedId,
|
|
40
|
-
videoRef: elRef
|
|
41
|
-
});
|
|
42
|
-
function onWindowFocus() {
|
|
43
|
-
if (isVisible.value && !playing.value && injectedOptions?.autoplay) {
|
|
44
|
-
play();
|
|
45
|
-
}
|
|
99
|
+
if (value && injectedOptions.autoplay && !started.value) {
|
|
100
|
+
play();
|
|
46
101
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} else if (!value && playing.value) {
|
|
54
|
-
pause();
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
immediate: true
|
|
102
|
+
});
|
|
103
|
+
watch(
|
|
104
|
+
loaded,
|
|
105
|
+
(value) => {
|
|
106
|
+
if (value && !started.value && isVisible.value && injectedOptions.autoplay) {
|
|
107
|
+
play();
|
|
59
108
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
109
|
+
},
|
|
110
|
+
{ once: true }
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
if (!manageViewport.value) {
|
|
114
|
+
watch(
|
|
115
|
+
loaded,
|
|
116
|
+
(value) => {
|
|
117
|
+
if (value && !started.value && injectedOptions.autoplay) {
|
|
118
|
+
play();
|
|
65
119
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
playsinline: "",
|
|
76
|
-
disablePictureInPicture: "",
|
|
77
|
-
preload: _unref(injectedOptions).preload,
|
|
78
|
-
loop: _unref(injectedOptions).loop,
|
|
79
|
-
muted: _unref(muted)
|
|
80
|
-
}, null, 8, _hoisted_1);
|
|
81
|
-
};
|
|
120
|
+
},
|
|
121
|
+
{ once: true }
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
onMounted(async () => {
|
|
125
|
+
initialize(injectedOptions.autoplay);
|
|
126
|
+
initializeFullscreen();
|
|
127
|
+
if (injectedOptions.autoplay) {
|
|
128
|
+
mute();
|
|
82
129
|
}
|
|
83
130
|
});
|
|
131
|
+
onBeforeUnmount(() => {
|
|
132
|
+
destroy();
|
|
133
|
+
});
|
|
84
134
|
</script>
|
|
85
135
|
|
|
86
136
|
<style>
|