@maas/vue-equipment 1.0.0-beta.23 → 1.0.0-beta.24

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 (77) hide show
  1. package/dist/nuxt/module.json +1 -1
  2. package/dist/nuxt/module.mjs +24 -24
  3. package/dist/plugins/.turbo/turbo-lint.log +2 -2
  4. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +2 -29
  5. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +2 -7
  6. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +2 -16
  7. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +2 -11
  8. package/dist/plugins/MagicAccordion/src/types/index.d.ts +2 -2
  9. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +2 -20
  10. package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +2 -7
  11. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +2 -19
  12. package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +2 -7
  13. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +2 -7
  14. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +2 -18
  15. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +2 -9
  16. package/dist/plugins/MagicCommand/src/types/index.d.ts +2 -2
  17. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +2 -7
  18. package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +2 -4
  19. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +2 -16
  20. package/dist/plugins/MagicCookie/src/types/index.d.ts +2 -2
  21. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +2 -92
  22. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +12 -15
  23. package/dist/plugins/MagicDraggable/src/types/index.d.ts +2 -2
  24. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +2 -161
  25. package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.mjs +1 -1
  26. package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +112 -10
  27. package/dist/plugins/MagicEmitter/src/types/index.d.ts +2 -0
  28. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +2 -7
  29. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +2 -13
  30. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +2 -34
  31. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +2 -33
  32. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +2 -21
  33. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +2 -7
  34. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +2 -12
  35. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +2 -18
  36. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +2 -9
  37. package/dist/plugins/MagicMenu/src/types/index.d.ts +2 -2
  38. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +2 -40
  39. package/dist/plugins/MagicModal/src/types/index.d.ts +2 -2
  40. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +51 -18
  41. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +12 -2
  42. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +2 -22
  43. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +48 -10
  44. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +6 -23
  45. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue +5 -2
  46. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +2 -8
  47. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +37 -5
  48. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +2 -18
  49. package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +2 -2
  50. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +47 -20
  51. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +11 -10
  52. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +2 -42
  53. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +5 -7
  54. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +5 -1
  55. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerEmitter.d.ts +8 -0
  56. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerEmitter.mjs +103 -0
  57. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +22 -11
  58. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +4 -4
  59. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.mjs +13 -9
  60. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +1 -0
  61. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +39 -32
  62. package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +4 -1
  63. package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.mjs +6 -3
  64. package/dist/plugins/MagicPlayer/src/symbols/index.d.ts +2 -1
  65. package/dist/plugins/MagicPlayer/src/symbols/index.mjs +2 -0
  66. package/dist/plugins/MagicPlayer/src/types/index.d.ts +45 -19
  67. package/dist/plugins/MagicPlayer/src/utils/defaultOptions.d.ts +2 -2
  68. package/dist/plugins/MagicPlayer/src/utils/playbackDefaults.d.ts +3 -0
  69. package/dist/plugins/MagicPlayer/src/utils/playbackDefaults.mjs +7 -0
  70. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +2 -4
  71. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +2 -4
  72. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +2 -24
  73. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +2 -7
  74. package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +2 -19
  75. package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +1 -1
  76. package/dist/plugins/MagicToast/src/types/index.d.ts +2 -2
  77. package/package.json +5 -3
@@ -4,100 +4,10 @@ interface MagicDraggableProps {
4
4
  id: MaybeRef<string>;
5
5
  options?: MagicDraggableOptions;
6
6
  }
7
- declare const mappedOptions: Omit<MagicDraggableOptions, keyof MagicDraggableOptions> & Omit<import("../types/index.js").DraggableDefaultOptions, keyof MagicDraggableOptions> & {
8
- threshold: ({
9
- lock?: number;
10
- distance?: number;
11
- momentum?: number;
12
- idle?: number;
13
- } & import("../../../../utils/index.js").RequireAll<{
14
- lock?: number;
15
- distance?: number;
16
- momentum?: number;
17
- idle?: number;
18
- }>) | (Omit<{
19
- lock?: number;
20
- distance?: number;
21
- momentum?: number;
22
- idle?: number;
23
- }, "lock" | "distance" | "momentum" | "idle"> & Omit<{
24
- lock?: number;
25
- distance?: number;
26
- momentum?: number;
27
- idle?: number;
28
- } & import("../../../../utils/index.js").RequireAll<{
29
- lock?: number;
30
- distance?: number;
31
- momentum?: number;
32
- idle?: number;
33
- }>, "lock" | "distance" | "momentum" | "idle"> & {
34
- lock: number;
35
- distance: number;
36
- momentum: number;
37
- idle: number;
38
- });
39
- disabled: boolean;
40
- animation: ({
41
- snap?: {
42
- duration?: number;
43
- easing?: (t: number) => number;
44
- };
45
- } & import("../../../../utils/index.js").RequireAll<{
46
- snap?: {
47
- duration?: number;
48
- easing?: (t: number) => number;
49
- };
50
- }>) | (Omit<{
51
- snap?: {
52
- duration?: number;
53
- easing?: (t: number) => number;
54
- };
55
- }, "snap"> & Omit<{
56
- snap?: {
57
- duration?: number;
58
- easing?: (t: number) => number;
59
- };
60
- } & import("../../../../utils/index.js").RequireAll<{
61
- snap?: {
62
- duration?: number;
63
- easing?: (t: number) => number;
64
- };
65
- }>, "snap"> & {
66
- snap: {
67
- duration?: number;
68
- easing?: (t: number) => number;
69
- };
70
- });
71
- tag: "div" | "dialog";
72
- scrollLock: boolean | {
73
- padding: boolean;
74
- };
75
- snapPoints: import("../types/index.js").DraggableSnapPoint[];
76
- initial: {
77
- snapPoint?: import("../types/index.js").DraggableSnapPoint;
78
- };
79
- };
80
- declare const mappedId: string;
81
- declare const dragging: import("vue").Ref<boolean, boolean>;
82
- declare const disabled: import("vue").ComputedRef<boolean>;
83
- declare const style: import("vue").ComputedRef<string>, hasDragged: import("vue").ComputedRef<boolean>;
84
- declare function guardedPointerdown(event: PointerEvent): void;
85
- declare function guardedClick(event: PointerEvent): void;
86
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
87
7
  declare var __VLS_12: {};
88
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
8
+ type __VLS_Slots = {} & {
89
9
  default?: (props: typeof __VLS_12) => any;
90
- }>;
91
- declare const __VLS_self: import("vue").DefineComponent<MagicDraggableProps, {
92
- mappedOptions: typeof mappedOptions;
93
- mappedId: typeof mappedId;
94
- dragging: typeof dragging;
95
- disabled: typeof disabled;
96
- style: typeof style;
97
- hasDragged: typeof hasDragged;
98
- guardedPointerdown: typeof guardedPointerdown;
99
- guardedClick: typeof guardedClick;
100
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicDraggableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ };
101
11
  declare const __VLS_component: import("vue").DefineComponent<MagicDraggableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicDraggableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
12
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
103
13
  export default _default;
@@ -1,10 +1,4 @@
1
- import {
2
- ref,
3
- toRefs,
4
- computed,
5
- toValue,
6
- nextTick
7
- } from "vue";
1
+ import { ref, toRefs, computed, toValue, nextTick } from "vue";
8
2
  import { computedWithControl } from "@vueuse/core";
9
3
  import { interpolate } from "@maas/vue-equipment/utils";
10
4
  import { useMagicEmitter } from "@maas/vue-equipment/plugins";
@@ -43,14 +37,17 @@ export function useDraggableSnap(args) {
43
37
  const snapPointsMap = computedWithControl(
44
38
  () => toValue(snapPoints),
45
39
  () => {
46
- const mapped = toValue(snapPoints).reduce((acc, current) => {
47
- const key = mapSnapPoint(current);
48
- if (key) {
49
- const mappedKey = `x${key.x}y${key.y}`;
50
- acc[mappedKey] = current;
51
- }
52
- return acc;
53
- }, {});
40
+ const mapped = toValue(snapPoints).reduce(
41
+ (acc, current) => {
42
+ const key = mapSnapPoint(current);
43
+ if (key) {
44
+ const mappedKey = `x${key.x}y${key.y}`;
45
+ acc[mappedKey] = current;
46
+ }
47
+ return acc;
48
+ },
49
+ {}
50
+ );
54
51
  return mapped;
55
52
  }
56
53
  );
@@ -55,7 +55,7 @@ export interface DraggableState {
55
55
  wrapperRect: DOMRect | undefined;
56
56
  activeSnapPoint: DraggableSnapPoint | undefined;
57
57
  }
58
- export type DraggableEvents = {
58
+ export interface DraggableEvents {
59
59
  beforeSnap: {
60
60
  id: string;
61
61
  snapPoint: DraggableSnapPoint;
@@ -89,5 +89,5 @@ export type DraggableEvents = {
89
89
  x: number;
90
90
  y: number;
91
91
  };
92
- };
92
+ }
93
93
  export {};
@@ -14,171 +14,12 @@ interface MagicDrawerProps {
14
14
  id: MaybeRef<string>;
15
15
  options?: MagicDrawerOptions;
16
16
  }
17
- declare const mappedOptions: Omit<MagicDrawerOptions, keyof MagicDrawerOptions> & Omit<import("../types/index.js").DrawerDefaultOptions, keyof MagicDrawerOptions> & {
18
- threshold: ({
19
- lock?: number;
20
- distance?: number;
21
- momentum?: number;
22
- } & import("../../../../utils/index.js").RequireAll<{
23
- lock?: number;
24
- distance?: number;
25
- momentum?: number;
26
- }>) | (Omit<{
27
- lock?: number;
28
- distance?: number;
29
- momentum?: number;
30
- }, "lock" | "distance" | "momentum"> & Omit<{
31
- lock?: number;
32
- distance?: number;
33
- momentum?: number;
34
- } & import("../../../../utils/index.js").RequireAll<{
35
- lock?: number;
36
- distance?: number;
37
- momentum?: number;
38
- }>, "lock" | "distance" | "momentum"> & {
39
- lock: number;
40
- distance: number;
41
- momentum: number;
42
- });
43
- transition: {
44
- content?: string;
45
- backdrop?: string;
46
- };
47
- disabled: boolean;
48
- animation: ({
49
- snap?: {
50
- duration?: number;
51
- easing?: (t: number) => number;
52
- };
53
- } & import("../../../../utils/index.js").RequireAll<{
54
- snap?: {
55
- duration?: number;
56
- easing?: (t: number) => number;
57
- };
58
- }>) | (Omit<{
59
- snap?: {
60
- duration?: number;
61
- easing?: (t: number) => number;
62
- };
63
- }, "snap"> & Omit<{
64
- snap?: {
65
- duration?: number;
66
- easing?: (t: number) => number;
67
- };
68
- } & import("../../../../utils/index.js").RequireAll<{
69
- snap?: {
70
- duration?: number;
71
- easing?: (t: number) => number;
72
- };
73
- }>, "snap"> & {
74
- snap: {
75
- duration?: number;
76
- easing?: (t: number) => number;
77
- };
78
- });
79
- backdrop: boolean;
80
- tag: "div" | "dialog";
81
- focusTrap: boolean | import("focus-trap").Options;
82
- scrollLock: {
83
- padding: boolean;
84
- } | ((boolean | {
85
- padding: boolean;
86
- }) & import("../../../../utils/index.js").RequireAll<boolean | {
87
- padding: boolean;
88
- } | undefined>) | (Omit<{
89
- padding: boolean;
90
- }, "padding"> & Omit<false & import("../../../../utils/index.js").RequireAll<{
91
- padding: boolean;
92
- }>, "padding"> & {
93
- padding: boolean;
94
- }) | (Omit<{
95
- padding: boolean;
96
- }, "padding"> & Omit<true & import("../../../../utils/index.js").RequireAll<{
97
- padding: boolean;
98
- }>, "padding"> & {
99
- padding: boolean;
100
- }) | (Omit<{
101
- padding: boolean;
102
- }, "padding"> & Omit<{
103
- padding: boolean;
104
- } & false, "padding"> & {
105
- padding: boolean;
106
- }) | (Omit<{
107
- padding: boolean;
108
- }, "padding"> & Omit<{
109
- padding: boolean;
110
- } & true, "padding"> & {
111
- padding: boolean;
112
- });
113
- teleport: {
114
- target?: string;
115
- disabled?: boolean;
116
- };
117
- keyListener: ({
118
- close?: string[] | false;
119
- } & import("../../../../utils/index.js").RequireAll<{
120
- close?: string[] | false;
121
- }>) | (Omit<{
122
- close?: string[] | false;
123
- }, "close"> & Omit<{
124
- close?: string[] | false;
125
- } & import("../../../../utils/index.js").RequireAll<{
126
- close?: string[] | false;
127
- }>, "close"> & {
128
- close: (false | string[] | undefined) & (false | string[]);
129
- });
130
- position: "right" | "left" | "top" | "bottom";
131
- snapPoints: import("../types/index.js").DrawerSnapPoint[];
132
- initial: {
133
- open?: boolean;
134
- transition?: boolean;
135
- snapPoint?: import("../types/index.js").DrawerSnapPoint;
136
- };
137
- enableMousewheel: boolean;
138
- preventZoom: boolean;
139
- preventDragClose: boolean;
140
- };
141
- declare const mappedId: string;
142
- declare const disabled: import("vue").ComputedRef<boolean>;
143
- declare const style: import("vue").ComputedRef<string>, hasDragged: import("vue").ComputedRef<boolean>;
144
- declare const dragging: import("vue").Ref<boolean, boolean>, wheeling: import("vue").Ref<boolean, boolean>;
145
- declare const innerActive: import("vue").ShallowRef<boolean, boolean>;
146
- declare const wrapperActive: import("vue").ShallowRef<boolean, boolean>;
147
- declare const onBeforeEnter: () => void, onEnter: () => void, onAfterEnter: () => Promise<void>, onBeforeLeave: () => void, onLeave: () => void, onAfterLeave: () => void;
148
- declare const backdropTransition: import("vue").ComputedRef<string | undefined>;
149
- declare const contentTransition: import("vue").ComputedRef<string | undefined>;
150
- declare function guardedPointerdown(event: PointerEvent): void;
151
- declare function guardedClick(event: PointerEvent): void;
152
- declare function guardedClose(): void;
153
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
154
17
  declare var __VLS_9: {}, __VLS_35: {};
155
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
+ type __VLS_Slots = {} & {
156
19
  backdrop?: (props: typeof __VLS_9) => any;
157
20
  } & {
158
21
  default?: (props: typeof __VLS_35) => any;
159
- }>;
160
- declare const __VLS_self: import("vue").DefineComponent<MagicDrawerProps, {
161
- mappedOptions: typeof mappedOptions;
162
- mappedId: typeof mappedId;
163
- disabled: typeof disabled;
164
- style: typeof style;
165
- hasDragged: typeof hasDragged;
166
- dragging: typeof dragging;
167
- wheeling: typeof wheeling;
168
- innerActive: typeof innerActive;
169
- wrapperActive: typeof wrapperActive;
170
- onBeforeEnter: typeof onBeforeEnter;
171
- onEnter: typeof onEnter;
172
- onAfterEnter: typeof onAfterEnter;
173
- onBeforeLeave: typeof onBeforeLeave;
174
- onLeave: typeof onLeave;
175
- onAfterLeave: typeof onAfterLeave;
176
- backdropTransition: typeof backdropTransition;
177
- contentTransition: typeof contentTransition;
178
- guardedPointerdown: typeof guardedPointerdown;
179
- guardedClick: typeof guardedClick;
180
- guardedClose: typeof guardedClose;
181
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicDrawerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ };
182
23
  declare const __VLS_component: import("vue").DefineComponent<MagicDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicDrawerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
183
24
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
184
25
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { computed, toValue, toRefs } from "vue";
2
- import { useMagicEmitter } from "../../../MagicEmitter/index.mjs";
2
+ import { useMagicEmitter } from "@maas/vue-equipment/plugins";
3
3
  import { useDrawerState } from "./private/useDrawerState.mjs";
4
4
  export function useMagicDrawer(id) {
5
5
  const { initializeState } = useDrawerState(toValue(id));
@@ -1,6 +1,6 @@
1
1
  export declare function useMagicEmitter(): {
2
2
  on: {
3
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: Key, handler: import("mitt").Handler<({
3
+ <Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "collision" | keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: Key, handler: import("mitt").Handler<({
4
4
  beforeEnter: string | {
5
5
  id: string;
6
6
  viewId: string;
@@ -235,6 +235,23 @@ export declare function useMagicEmitter(): {
235
235
  id: string;
236
236
  viewId: string;
237
237
  };
238
+ } & Omit<{
239
+ onDragStart: string;
240
+ onDragEnd: string;
241
+ onEnd: string;
242
+ onFullscreenEnter: string;
243
+ onFullscreenLeave: string;
244
+ onLoad: string;
245
+ onMute: string;
246
+ onUnmute: string;
247
+ onPause: string;
248
+ onPlay: string;
249
+ onRateChange: string;
250
+ onStall: string;
251
+ onStart: string;
252
+ onTouch: string;
253
+ onVolumeChange: string;
254
+ onWait: string;
238
255
  } & Omit<{
239
256
  collision: {
240
257
  id: string;
@@ -249,7 +266,7 @@ export declare function useMagicEmitter(): {
249
266
  beforeLeave: string;
250
267
  leave: string;
251
268
  afterLeave: string;
252
- } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key]>): void;
269
+ } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents>, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key]>): void;
253
270
  (type: "*", handler: import("mitt").WildcardHandler<{
254
271
  beforeEnter: string | {
255
272
  id: string;
@@ -485,6 +502,23 @@ export declare function useMagicEmitter(): {
485
502
  id: string;
486
503
  viewId: string;
487
504
  };
505
+ } & Omit<{
506
+ onDragStart: string;
507
+ onDragEnd: string;
508
+ onEnd: string;
509
+ onFullscreenEnter: string;
510
+ onFullscreenLeave: string;
511
+ onLoad: string;
512
+ onMute: string;
513
+ onUnmute: string;
514
+ onPause: string;
515
+ onPlay: string;
516
+ onRateChange: string;
517
+ onStall: string;
518
+ onStart: string;
519
+ onTouch: string;
520
+ onVolumeChange: string;
521
+ onWait: string;
488
522
  } & Omit<{
489
523
  collision: {
490
524
  id: string;
@@ -499,10 +533,10 @@ export declare function useMagicEmitter(): {
499
533
  beforeLeave: string;
500
534
  leave: string;
501
535
  afterLeave: string;
502
- } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>>): void;
536
+ } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents>, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>>): void;
503
537
  };
504
538
  off: {
505
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: Key, handler?: import("mitt").Handler<({
539
+ <Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "collision" | keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: Key, handler?: import("mitt").Handler<({
506
540
  beforeEnter: string | {
507
541
  id: string;
508
542
  viewId: string;
@@ -737,6 +771,23 @@ export declare function useMagicEmitter(): {
737
771
  id: string;
738
772
  viewId: string;
739
773
  };
774
+ } & Omit<{
775
+ onDragStart: string;
776
+ onDragEnd: string;
777
+ onEnd: string;
778
+ onFullscreenEnter: string;
779
+ onFullscreenLeave: string;
780
+ onLoad: string;
781
+ onMute: string;
782
+ onUnmute: string;
783
+ onPause: string;
784
+ onPlay: string;
785
+ onRateChange: string;
786
+ onStall: string;
787
+ onStart: string;
788
+ onTouch: string;
789
+ onVolumeChange: string;
790
+ onWait: string;
740
791
  } & Omit<{
741
792
  collision: {
742
793
  id: string;
@@ -751,7 +802,7 @@ export declare function useMagicEmitter(): {
751
802
  beforeLeave: string;
752
803
  leave: string;
753
804
  afterLeave: string;
754
- } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key]> | undefined): void;
805
+ } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents>, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key]> | undefined): void;
755
806
  (type: "*", handler: import("mitt").WildcardHandler<{
756
807
  beforeEnter: string | {
757
808
  id: string;
@@ -987,6 +1038,23 @@ export declare function useMagicEmitter(): {
987
1038
  id: string;
988
1039
  viewId: string;
989
1040
  };
1041
+ } & Omit<{
1042
+ onDragStart: string;
1043
+ onDragEnd: string;
1044
+ onEnd: string;
1045
+ onFullscreenEnter: string;
1046
+ onFullscreenLeave: string;
1047
+ onLoad: string;
1048
+ onMute: string;
1049
+ onUnmute: string;
1050
+ onPause: string;
1051
+ onPlay: string;
1052
+ onRateChange: string;
1053
+ onStall: string;
1054
+ onStart: string;
1055
+ onTouch: string;
1056
+ onVolumeChange: string;
1057
+ onWait: string;
990
1058
  } & Omit<{
991
1059
  collision: {
992
1060
  id: string;
@@ -1001,10 +1069,10 @@ export declare function useMagicEmitter(): {
1001
1069
  beforeLeave: string;
1002
1070
  leave: string;
1003
1071
  afterLeave: string;
1004
- } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>>): void;
1072
+ } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents>, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>>): void;
1005
1073
  };
1006
1074
  emit: {
1007
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: Key, event: ({
1075
+ <Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "collision" | keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: Key, event: ({
1008
1076
  beforeEnter: string | {
1009
1077
  id: string;
1010
1078
  viewId: string;
@@ -1239,6 +1307,23 @@ export declare function useMagicEmitter(): {
1239
1307
  id: string;
1240
1308
  viewId: string;
1241
1309
  };
1310
+ } & Omit<{
1311
+ onDragStart: string;
1312
+ onDragEnd: string;
1313
+ onEnd: string;
1314
+ onFullscreenEnter: string;
1315
+ onFullscreenLeave: string;
1316
+ onLoad: string;
1317
+ onMute: string;
1318
+ onUnmute: string;
1319
+ onPause: string;
1320
+ onPlay: string;
1321
+ onRateChange: string;
1322
+ onStall: string;
1323
+ onStart: string;
1324
+ onTouch: string;
1325
+ onVolumeChange: string;
1326
+ onWait: string;
1242
1327
  } & Omit<{
1243
1328
  collision: {
1244
1329
  id: string;
@@ -1253,8 +1338,8 @@ export declare function useMagicEmitter(): {
1253
1338
  beforeLeave: string;
1254
1339
  leave: string;
1255
1340
  afterLeave: string;
1256
- } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key]): void;
1257
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: undefined extends ({
1341
+ } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents>, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key]): void;
1342
+ <Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "collision" | keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents | keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents | keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>(type: undefined extends ({
1258
1343
  beforeEnter: string | {
1259
1344
  id: string;
1260
1345
  viewId: string;
@@ -1489,6 +1574,23 @@ export declare function useMagicEmitter(): {
1489
1574
  id: string;
1490
1575
  viewId: string;
1491
1576
  };
1577
+ } & Omit<{
1578
+ onDragStart: string;
1579
+ onDragEnd: string;
1580
+ onEnd: string;
1581
+ onFullscreenEnter: string;
1582
+ onFullscreenLeave: string;
1583
+ onLoad: string;
1584
+ onMute: string;
1585
+ onUnmute: string;
1586
+ onPause: string;
1587
+ onPlay: string;
1588
+ onRateChange: string;
1589
+ onStall: string;
1590
+ onStart: string;
1591
+ onTouch: string;
1592
+ onVolumeChange: string;
1593
+ onWait: string;
1492
1594
  } & Omit<{
1493
1595
  collision: {
1494
1596
  id: string;
@@ -1503,6 +1605,6 @@ export declare function useMagicEmitter(): {
1503
1605
  beforeLeave: string;
1504
1606
  leave: string;
1505
1607
  afterLeave: string;
1506
- } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key] ? Key : never): void;
1608
+ } & Omit<object, keyof import("../../../MagicToast/src/types/index.js").ToastEvents>, "collision">, keyof import("../../../MagicPlayer/src/types/index.js").PlayerEvents>, keyof import("../../../MagicMenu/src/types/index.js").MenuEvents>, keyof import("../../../MagicModal/src/types/index.js").ModalEvents>, keyof import("../../../MagicDrawer/src/types/index.js").DrawerEvents>, keyof import("../../../MagicDraggable/src/types/index.js").DraggableEvents>, keyof import("../../../MagicCookie/src/types/index.js").CookieEvents>, keyof import("../../../MagicAccordion/src/types/index.js").AccordionEvents>)[Key] ? Key : never): void;
1507
1609
  };
1508
1610
  };
@@ -4,6 +4,7 @@ import type { DraggableEvents } from '../../../MagicDraggable/src/types/index.js
4
4
  import type { DrawerEvents } from '../../../MagicDrawer/src/types/index.js';
5
5
  import type { ModalEvents } from '../../../MagicModal/src/types/index.js';
6
6
  import type { MenuEvents } from '../../../MagicMenu/src/types/index.js';
7
+ import type { PlayerEvents } from '../../../MagicPlayer/src/types/index.js';
7
8
  import type { ScrollEvents } from '../../../MagicScroll/src/types/index.js';
8
9
  import type { ToastEvents } from '../../../MagicToast/src/types/index.js';
9
10
  type MergeTypes<T, U> = {
@@ -17,6 +18,7 @@ export type MagicEmitterEvents = Merge<[
17
18
  DrawerEvents,
18
19
  ModalEvents,
19
20
  MenuEvents,
21
+ PlayerEvents,
20
22
  ScrollEvents,
21
23
  ToastEvents
22
24
  ]>;
@@ -4,17 +4,12 @@ interface MagicMarqueeProps {
4
4
  id: MaybeRef<string>;
5
5
  options?: MagicMarqueeOptions;
6
6
  }
7
- declare const duplicates: import("vue").ShallowRef<number, number>;
8
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
9
7
  declare var __VLS_1: {}, __VLS_3: {};
10
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
8
+ type __VLS_Slots = {} & {
11
9
  default?: (props: typeof __VLS_1) => any;
12
10
  } & {
13
11
  default?: (props: typeof __VLS_3) => any;
14
- }>;
15
- declare const __VLS_self: import("vue").DefineComponent<MagicMarqueeProps, {
16
- duplicates: typeof duplicates;
17
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ };
18
13
  declare const __VLS_component: import("vue").DefineComponent<MagicMarqueeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
14
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
15
  export default _default;
@@ -2,21 +2,10 @@ interface MagicMenuChannelProps {
2
2
  id: string;
3
3
  transition?: string;
4
4
  }
5
- declare const state: import("../types/index.js").MenuState;
6
- declare const mappedId: import("vue").ComputedRef<string>;
7
- declare const mappedTransition: import("vue").ComputedRef<string>;
8
- declare const channel: import("../types/index.js").MenuChannel;
9
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
5
  declare var __VLS_5: {};
11
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
6
+ type __VLS_Slots = {} & {
12
7
  default?: (props: typeof __VLS_5) => any;
13
- }>;
14
- declare const __VLS_self: import("vue").DefineComponent<MagicMenuChannelProps, {
15
- state: typeof state;
16
- mappedId: typeof mappedId;
17
- mappedTransition: typeof mappedTransition;
18
- channel: typeof channel;
19
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuChannelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ };
20
9
  declare const __VLS_component: import("vue").DefineComponent<MagicMenuChannelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuChannelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
10
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
11
  export default _default;