@maas/vue-equipment 0.33.1 → 0.35.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.
- package/README.md +4 -1
- package/dist/composables/index.d.mts +5 -5
- package/dist/composables/index.d.ts +5 -5
- package/dist/nuxt/module.d.mts +1 -1
- package/dist/nuxt/module.d.ts +1 -1
- package/dist/nuxt/module.json +2 -2
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +10 -15
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +8 -12
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +57 -31
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +2 -3
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +10 -14
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionState.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +11 -29
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +10 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +8 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +13 -29
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +8 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +9 -25
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +11 -25
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +7 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +13 -29
- package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.d.ts +16 -4
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.d.ts +5 -3
- package/dist/plugins/MagicDraggable/index.d.ts +1 -1
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +13 -25
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +9 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +7 -1
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +7 -2
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +14 -26
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +12 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +3 -0
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +4 -4
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.d.ts +3 -0
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +15 -30
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +2 -2
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +8 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +1 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +12 -26
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +12 -13
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +2 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +16 -18
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +10 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +11 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +57 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +2 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +8 -12
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.d.ts +2 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +4 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +7 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuRemote.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuState.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +2 -2
- package/dist/plugins/MagicMenu/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +12 -26
- package/dist/plugins/MagicModal/src/composables/private/useModalCallback.d.ts +1 -1
- package/dist/plugins/MagicModal/src/composables/private/useModalStore.d.ts +1 -1
- package/dist/plugins/MagicModal/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +2 -23
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +12 -27
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +12 -13
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +12 -33
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +21 -33
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +2 -23
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +11 -15
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +8 -12
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +17 -7
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +12 -11
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +3 -3
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +32 -22
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +10 -12
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +11 -25
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +27 -43
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +0 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +13 -30
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +9 -39
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.d.ts +29 -1
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToast.vue +4 -4
- package/dist/plugins/MagicToast/src/components/MagicToast.vue.d.ts +1 -10
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +13 -15
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +8 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.d.ts +1 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.mjs +3 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +11 -1
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -1
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/utils/index.d.mts +1 -3
- package/dist/utils/index.d.ts +1 -3
- package/dist/utils/index.js +2 -12
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +1 -10
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -9,37 +9,23 @@ interface MagicModalProps {
|
|
|
9
9
|
options?: MagicModalOptions;
|
|
10
10
|
}
|
|
11
11
|
declare function __VLS_template(): {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
slots: {
|
|
13
|
+
backdrop?(_: {}): any;
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
modalRef: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
attrs: Partial<{}>;
|
|
14
20
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicModalProps>, {
|
|
18
|
-
options: () => MagicModalOptions;
|
|
19
|
-
}>>>, {
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicModalProps> & Readonly<{}>, {
|
|
20
23
|
options: MagicModalOptions;
|
|
21
|
-
}, {}>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
26
|
export default _default;
|
|
24
|
-
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
-
default: D[K];
|
|
27
|
-
}> : P[K];
|
|
28
|
-
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
28
|
new (): {
|
|
34
29
|
$slots: S;
|
|
35
30
|
};
|
|
36
31
|
};
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToOption<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -3,28 +3,7 @@ interface MagicNoiseProps {
|
|
|
3
3
|
options?: MagicNoiseOptions;
|
|
4
4
|
pause?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import("vue").DefineComponent<
|
|
6
|
+
declare const _default: import("vue").DefineComponent<MagicNoiseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicNoiseProps> & Readonly<{}>, {
|
|
7
7
|
pause: boolean;
|
|
8
|
-
}
|
|
9
|
-
pause: boolean;
|
|
10
|
-
}>>>, {
|
|
11
|
-
pause: boolean;
|
|
12
|
-
}, {}>;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
9
|
export default _default;
|
|
14
|
-
type __VLS_WithDefaults<P, D> = {
|
|
15
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
16
|
-
default: D[K];
|
|
17
|
-
}> : P[K];
|
|
18
|
-
};
|
|
19
|
-
type __VLS_Prettify<T> = {
|
|
20
|
-
[K in keyof T]: T[K];
|
|
21
|
-
} & {};
|
|
22
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
-
type __VLS_TypePropsToOption<T> = {
|
|
24
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
-
} : {
|
|
27
|
-
type: import('vue').PropType<T[K]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref, type MaybeRef } from 'vue';
|
|
2
|
-
import type { MagicNoiseOptions, RafControls } from '../../types.js';
|
|
2
|
+
import type { MagicNoiseOptions, RafControls } from '../../types/index.js';
|
|
3
3
|
type UseNoiseApiArgs = {
|
|
4
4
|
canvasRef: Ref<HTMLCanvasElement | undefined>;
|
|
5
5
|
offCanvasRef: Ref<HTMLCanvasElement | undefined>;
|
|
@@ -11,7 +11,7 @@ export declare function useNoiseApi({ canvasRef, offCanvasRef, options, }: UseNo
|
|
|
11
11
|
rotateAndTransfer: () => void;
|
|
12
12
|
throttledDraw: () => void;
|
|
13
13
|
throttledRotateAndTransfer: () => void;
|
|
14
|
-
isReady: Ref<boolean>;
|
|
14
|
+
isReady: Ref<boolean, boolean>;
|
|
15
15
|
drawControls: import("vue").ShallowRef<RafControls | undefined>;
|
|
16
16
|
transferControls: import("vue").ShallowRef<RafControls | undefined>;
|
|
17
17
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -4,39 +4,24 @@ interface MagicAudioPlayerProps {
|
|
|
4
4
|
loop?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
playerRef: HTMLDivElement;
|
|
12
|
+
audioRef: HTMLAudioElement;
|
|
13
|
+
};
|
|
14
|
+
attrs: Partial<{}>;
|
|
8
15
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
loop: boolean;
|
|
12
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicAudioPlayerProps>, {
|
|
13
|
-
src: string;
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAudioPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAudioPlayerProps> & Readonly<{}>, {
|
|
14
18
|
loop: boolean;
|
|
15
|
-
}>>>, {
|
|
16
19
|
src: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
22
|
export default _default;
|
|
21
|
-
type __VLS_WithDefaults<P, D> = {
|
|
22
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
|
-
default: D[K];
|
|
24
|
-
}> : P[K];
|
|
25
|
-
};
|
|
26
|
-
type __VLS_Prettify<T> = {
|
|
27
|
-
[K in keyof T]: T[K];
|
|
28
|
-
} & {};
|
|
29
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
24
|
new (): {
|
|
31
25
|
$slots: S;
|
|
32
26
|
};
|
|
33
27
|
};
|
|
34
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
-
type __VLS_TypePropsToOption<T> = {
|
|
36
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
-
} : {
|
|
39
|
-
type: import('vue').PropType<T[K]>;
|
|
40
|
-
required: true;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
@@ -2,23 +2,22 @@ interface MagicAudioPlayerControlsProps {
|
|
|
2
2
|
id: string;
|
|
3
3
|
}
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
slots: {
|
|
6
|
+
playIcon?(_: {}): any;
|
|
7
|
+
pauseIcon?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
barRef: HTMLDivElement;
|
|
11
|
+
trackRef: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
attrs: Partial<{}>;
|
|
7
14
|
};
|
|
8
|
-
|
|
9
|
-
declare const
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAudioPlayerControlsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAudioPlayerControlsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
10
18
|
export default _default;
|
|
11
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
20
|
new (): {
|
|
13
21
|
$slots: S;
|
|
14
22
|
};
|
|
15
23
|
};
|
|
16
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type __VLS_TypePropsToOption<T> = {
|
|
18
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
-
} : {
|
|
21
|
-
type: import('vue').PropType<T[K]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
|
-
import { ref,
|
|
22
|
+
import { ref, onMounted, onBeforeUnmount } from 'vue'
|
|
23
23
|
import { useIntersectionObserver } from '@vueuse/core'
|
|
24
24
|
import { usePlayerVideoApi } from '../composables/private/usePlayerVideoApi'
|
|
25
25
|
import { usePlayerMediaApi } from '../composables/private/usePlayerMediaApi'
|
|
@@ -8,48 +8,27 @@ interface MagicPlayerProps {
|
|
|
8
8
|
loop?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
|
-
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
playerRef: HTMLDivElement;
|
|
16
|
+
videoRef: HTMLVideoElement;
|
|
17
|
+
};
|
|
18
|
+
attrs: Partial<{}>;
|
|
12
19
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
src: string;
|
|
16
|
-
autoplay: boolean;
|
|
17
|
-
preload: string;
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerProps> & Readonly<{}>, {
|
|
18
22
|
loop: boolean;
|
|
19
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicPlayerProps>, {
|
|
20
|
-
srcType: string;
|
|
21
23
|
src: string;
|
|
22
|
-
autoplay: boolean;
|
|
23
|
-
preload: string;
|
|
24
|
-
loop: boolean;
|
|
25
|
-
}>>>, {
|
|
26
|
-
src: string;
|
|
27
|
-
loop: boolean;
|
|
28
24
|
srcType: MagicPlayerSourceType;
|
|
29
25
|
autoplay: boolean;
|
|
30
26
|
preload: "auto" | "metadata" | "none";
|
|
31
|
-
}, {}>;
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
29
|
export default _default;
|
|
34
|
-
type __VLS_WithDefaults<P, D> = {
|
|
35
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
-
default: D[K];
|
|
37
|
-
}> : P[K];
|
|
38
|
-
};
|
|
39
|
-
type __VLS_Prettify<T> = {
|
|
40
|
-
[K in keyof T]: T[K];
|
|
41
|
-
} & {};
|
|
42
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
31
|
new (): {
|
|
44
32
|
$slots: S;
|
|
45
33
|
};
|
|
46
34
|
};
|
|
47
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
-
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
-
} : {
|
|
52
|
-
type: import('vue').PropType<T[K]>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
@@ -6,44 +6,32 @@ interface MagicPlayerControlsProps {
|
|
|
6
6
|
transition?: string;
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
seekPopover?(_: {}): any;
|
|
11
|
+
playIcon?(_: {}): any;
|
|
12
|
+
pauseIcon?(_: {}): any;
|
|
13
|
+
timelineBefore?(_: {}): any;
|
|
14
|
+
timelineAfter?(_: {}): any;
|
|
15
|
+
volumeOffIcon?(_: {}): any;
|
|
16
|
+
volumeOnIcon?(_: {}): any;
|
|
17
|
+
fullscreenExitIcon?(_: {}): any;
|
|
18
|
+
fullscreenEnterIcon?(_: {}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {
|
|
21
|
+
popoverRef: HTMLDivElement;
|
|
22
|
+
barRef: HTMLDivElement;
|
|
23
|
+
trackRef: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
attrs: Partial<{}>;
|
|
18
26
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicPlayerControlsProps>, {
|
|
22
|
-
transition: string;
|
|
23
|
-
}>>>, {
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicPlayerControlsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerControlsProps> & Readonly<{}>, {
|
|
24
29
|
transition: string;
|
|
25
|
-
}, {}>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
32
|
export default _default;
|
|
28
|
-
type __VLS_WithDefaults<P, D> = {
|
|
29
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
-
default: D[K];
|
|
31
|
-
}> : P[K];
|
|
32
|
-
};
|
|
33
|
-
type __VLS_Prettify<T> = {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} & {};
|
|
36
33
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
34
|
new (): {
|
|
38
35
|
$slots: S;
|
|
39
36
|
};
|
|
40
37
|
};
|
|
41
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
-
type __VLS_TypePropsToOption<T> = {
|
|
43
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
-
} : {
|
|
46
|
-
type: import('vue').PropType<T[K]>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
@@ -2,28 +2,7 @@ interface MagicPlayerDisplayTimeProps {
|
|
|
2
2
|
id: string;
|
|
3
3
|
type: 'current' | 'remaining' | 'duration';
|
|
4
4
|
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<
|
|
6
|
-
type: string;
|
|
7
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicPlayerDisplayTimeProps>, {
|
|
8
|
-
type: string;
|
|
9
|
-
}>>>, {
|
|
5
|
+
declare const _default: import("vue").DefineComponent<MagicPlayerDisplayTimeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerDisplayTimeProps> & Readonly<{}>, {
|
|
10
6
|
type: "current" | "remaining" | "duration";
|
|
11
|
-
}, {}>;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
8
|
export default _default;
|
|
13
|
-
type __VLS_WithDefaults<P, D> = {
|
|
14
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
15
|
-
default: D[K];
|
|
16
|
-
}> : P[K];
|
|
17
|
-
};
|
|
18
|
-
type __VLS_Prettify<T> = {
|
|
19
|
-
[K in keyof T]: T[K];
|
|
20
|
-
} & {};
|
|
21
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
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
|
-
};
|
|
@@ -2,14 +2,5 @@ type MagicPlayerMuxPopoverProps = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
playbackId: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<
|
|
5
|
+
declare const _default: import("vue").DefineComponent<MagicPlayerMuxPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerMuxPopoverProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToOption<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -2,25 +2,21 @@ interface MagicPlayerOverlayProps {
|
|
|
2
2
|
id: string;
|
|
3
3
|
}
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
waitingIcon?(_: {}): any;
|
|
8
|
+
playIcon?(_: {}): any;
|
|
9
|
+
pauseIcon?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
attrs: Partial<{}>;
|
|
9
13
|
};
|
|
10
|
-
|
|
11
|
-
declare const
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicPlayerOverlayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
17
|
export default _default;
|
|
13
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
19
|
new (): {
|
|
15
20
|
$slots: S;
|
|
16
21
|
};
|
|
17
22
|
};
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToOption<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -2,22 +2,18 @@ export type MagicPlayerPosterProps = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
6
10
|
};
|
|
7
|
-
|
|
8
|
-
declare const
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicPlayerPosterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerPosterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
14
|
export default _default;
|
|
10
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
16
|
new (): {
|
|
12
17
|
$slots: S;
|
|
13
18
|
};
|
|
14
19
|
};
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToOption<T> = {
|
|
17
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
-
} : {
|
|
20
|
-
type: import('vue').PropType<T[K]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
interface MagicPlayerTimelineProps {
|
|
2
2
|
id: string;
|
|
3
3
|
}
|
|
4
|
-
declare const _default: import("vue").DefineComponent<
|
|
4
|
+
declare const _default: import("vue").DefineComponent<MagicPlayerTimelineProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerTimelineProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
6
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
-
type __VLS_TypePropsToOption<T> = {
|
|
8
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
|
-
} : {
|
|
11
|
-
type: import('vue').PropType<T[K]>;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -3,8 +3,8 @@ export type UsePlayerAudioApiArgs = {
|
|
|
3
3
|
id: MaybeRef<string>;
|
|
4
4
|
};
|
|
5
5
|
export declare function usePlayerAudioApi(args: UsePlayerAudioApiArgs): {
|
|
6
|
-
mouseEntered: import("vue").Ref<boolean>;
|
|
7
|
-
touched: import("vue").Ref<boolean>;
|
|
6
|
+
mouseEntered: import("vue").Ref<boolean, boolean>;
|
|
7
|
+
touched: import("vue").Ref<boolean, boolean>;
|
|
8
8
|
play: () => void;
|
|
9
9
|
pause: () => void;
|
|
10
10
|
togglePlay: () => void;
|
|
@@ -6,14 +6,14 @@ export type UsePlayerControlsApiArgs = {
|
|
|
6
6
|
popoverRef?: Ref<HTMLDivElement | undefined>;
|
|
7
7
|
};
|
|
8
8
|
export declare function usePlayerControlsApi(args: UsePlayerControlsApiArgs): {
|
|
9
|
-
mouseEntered: Ref<boolean>;
|
|
10
|
-
dragging: Ref<boolean>;
|
|
11
|
-
seekedTime: Ref<number>;
|
|
12
|
-
seekedPercentage: Ref<number>;
|
|
13
|
-
scrubbedPercentage: Ref<number>;
|
|
9
|
+
mouseEntered: Ref<boolean, boolean>;
|
|
10
|
+
dragging: Ref<boolean, boolean>;
|
|
11
|
+
seekedTime: Ref<number, number>;
|
|
12
|
+
seekedPercentage: Ref<number, number>;
|
|
13
|
+
scrubbedPercentage: Ref<number, number>;
|
|
14
14
|
bufferedPercentage: import("vue").ComputedRef<number>;
|
|
15
|
-
thumbPercentage: Ref<number>;
|
|
16
|
-
popoverOffsetX: Ref<number>;
|
|
15
|
+
thumbPercentage: Ref<number, number>;
|
|
16
|
+
popoverOffsetX: Ref<number, number>;
|
|
17
17
|
onMouseenter: () => void;
|
|
18
18
|
onMouseleave: () => void;
|
|
19
19
|
onPointerdown: (e: MouseEvent | TouchEvent) => void;
|
|
@@ -29,6 +29,16 @@ export declare function usePlayerControlsApi(args: UsePlayerControlsApiArgs): {
|
|
|
29
29
|
readonly right: number;
|
|
30
30
|
readonly top: number;
|
|
31
31
|
toJSON: () => any;
|
|
32
|
+
} | undefined, DOMRect | {
|
|
33
|
+
height: number;
|
|
34
|
+
width: number;
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
readonly bottom: number;
|
|
38
|
+
readonly left: number;
|
|
39
|
+
readonly right: number;
|
|
40
|
+
readonly top: number;
|
|
41
|
+
toJSON: () => any;
|
|
32
42
|
} | undefined>;
|
|
33
43
|
};
|
|
34
44
|
export type UsePlayerControlsApiReturn = ReturnType<typeof usePlayerControlsApi>;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { type MaybeRef } from 'vue';
|
|
2
|
+
import type { Buffered } from '../../types/index.js';
|
|
2
3
|
export type UsePlayerMediaApiArgs = {
|
|
3
4
|
id: MaybeRef<string>;
|
|
4
5
|
mediaRef?: MaybeRef<HTMLMediaElement | undefined>;
|
|
5
6
|
};
|
|
6
7
|
export declare function usePlayerMediaApi(args: UsePlayerMediaApiArgs): {
|
|
7
|
-
currentTime: import("vue").Ref<number>;
|
|
8
|
+
currentTime: import("vue").Ref<number, number>;
|
|
8
9
|
remainingTime: import("vue").ComputedRef<number>;
|
|
9
|
-
duration: import("vue").Ref<number>;
|
|
10
|
-
seeking: import("vue").Ref<boolean>;
|
|
11
|
-
volume: import("vue").Ref<number>;
|
|
12
|
-
rate: import("vue").Ref<number>;
|
|
13
|
-
waiting: import("vue").Ref<boolean>;
|
|
14
|
-
ended: import("vue").Ref<boolean>;
|
|
15
|
-
playing: import("vue").Ref<boolean>;
|
|
16
|
-
stalled: import("vue").Ref<boolean>;
|
|
17
|
-
buffered: import("vue").Ref<[number, number][]>;
|
|
18
|
-
muted: import("vue").Ref<boolean>;
|
|
10
|
+
duration: import("vue").Ref<number, number>;
|
|
11
|
+
seeking: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
volume: import("vue").Ref<number, number>;
|
|
13
|
+
rate: import("vue").Ref<number, number>;
|
|
14
|
+
waiting: import("vue").Ref<boolean, boolean>;
|
|
15
|
+
ended: import("vue").Ref<boolean, boolean>;
|
|
16
|
+
playing: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
stalled: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
buffered: import("vue").Ref<[number, number][], Buffered | [number, number][]>;
|
|
19
|
+
muted: import("vue").Ref<boolean, boolean>;
|
|
19
20
|
};
|
|
20
21
|
export type UsePlayerMediaApiReturn = ReturnType<typeof usePlayerMediaApi>;
|