@maas/vue-equipment 1.0.0-beta.76 → 1.0.0-beta.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nuxt/module.json +1 -1
- package/dist/nuxt/module.mjs +3 -3
- package/dist/plugins/MagicDrawer/index.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +23 -0
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +4 -4
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/types/index.d.ts +11 -6
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +268 -226
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +1 -7
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +2 -2
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +2 -2
- package/dist/plugins/MagicToast/index.d.ts +2 -2
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue +5 -5
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +2 -2
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.d.ts +1 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +58 -28
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +2 -2
- package/dist/plugins/MagicToast/src/composables/private/useToastState.mjs +1 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastView.d.ts +1 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +6 -4
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +5 -2
- package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +45 -5
- package/dist/plugins/MagicToast/src/types/index.d.ts +20 -2
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +4 -1
- package/dist/plugins/MagicTray/index.d.ts +2 -2
- package/dist/plugins/MagicTray/src/components/MagicTray.d.vue.ts +1 -1
- package/dist/plugins/MagicTray/src/components/MagicTray.vue.d.ts +1 -1
- package/dist/plugins/MagicTray/src/components/MagicTrayContent.d.vue.ts +4 -4
- package/dist/plugins/MagicTray/src/components/MagicTrayContent.vue +3 -1
- package/dist/plugins/MagicTray/src/components/MagicTrayContent.vue.d.ts +4 -4
- package/dist/plugins/MagicTray/src/components/MagicTrayHandle.d.vue.ts +3 -3
- package/dist/plugins/MagicTray/src/components/MagicTrayHandle.vue.d.ts +3 -3
- package/dist/plugins/MagicTray/src/components/MagicTrayTransform.d.vue.ts +2 -2
- package/dist/plugins/MagicTray/src/components/MagicTrayTransform.vue.d.ts +2 -2
- package/dist/plugins/MagicTray/src/composables/private/useTrayDrag.d.ts +7 -6
- package/dist/plugins/MagicTray/src/composables/private/useTrayDrag.mjs +23 -27
- package/dist/plugins/MagicTray/src/composables/private/useTrayMagnetism.d.ts +2 -2
- package/dist/plugins/MagicTray/src/composables/private/useTraySnap.d.ts +12 -12
- package/dist/plugins/MagicTray/src/composables/private/useTrayUtils.d.ts +3 -3
- package/dist/plugins/MagicTray/src/composables/useMagicTray.d.ts +3 -3
- package/dist/plugins/MagicTray/src/types/index.d.ts +35 -34
- package/dist/plugins/MagicTray/src/utils/defaultOptions.mjs +4 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function useMagicEmitter(): {
|
|
2
2
|
on: {
|
|
3
|
-
<Key extends "progress" | "
|
|
3
|
+
<Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "magnet" | "willSnapTo" | "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;
|
|
@@ -74,17 +74,17 @@ export declare function useMagicEmitter(): {
|
|
|
74
74
|
} & Omit<{
|
|
75
75
|
beforeSnap: {
|
|
76
76
|
id: string;
|
|
77
|
-
snapPoint: import("../../../MagicDrawer/
|
|
77
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
78
78
|
} | {
|
|
79
79
|
id: string;
|
|
80
80
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
81
81
|
} | {
|
|
82
82
|
id: string;
|
|
83
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
83
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
84
84
|
};
|
|
85
85
|
snapTo: {
|
|
86
86
|
id: string;
|
|
87
|
-
snapPoint: import("../../../MagicDrawer/
|
|
87
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
88
88
|
duration?: number;
|
|
89
89
|
} | {
|
|
90
90
|
id: string;
|
|
@@ -92,18 +92,18 @@ export declare function useMagicEmitter(): {
|
|
|
92
92
|
duration?: number;
|
|
93
93
|
} | {
|
|
94
94
|
id: string;
|
|
95
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
95
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
96
96
|
duration?: number;
|
|
97
97
|
};
|
|
98
98
|
afterSnap: {
|
|
99
99
|
id: string;
|
|
100
|
-
snapPoint: import("../../../MagicDrawer/
|
|
100
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
101
101
|
} | {
|
|
102
102
|
id: string;
|
|
103
103
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
104
104
|
} | {
|
|
105
105
|
id: string;
|
|
106
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
106
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
107
107
|
};
|
|
108
108
|
beforeDrag: {
|
|
109
109
|
id: string;
|
|
@@ -113,9 +113,9 @@ export declare function useMagicEmitter(): {
|
|
|
113
113
|
id: string;
|
|
114
114
|
x: number;
|
|
115
115
|
y: number;
|
|
116
|
-
} | ({
|
|
116
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
117
117
|
id: string;
|
|
118
|
-
} & import("../../../MagicTray/index.js").
|
|
118
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
119
119
|
drag: {
|
|
120
120
|
id: string;
|
|
121
121
|
x: number;
|
|
@@ -124,9 +124,9 @@ export declare function useMagicEmitter(): {
|
|
|
124
124
|
id: string;
|
|
125
125
|
x: number;
|
|
126
126
|
y: number;
|
|
127
|
-
} | ({
|
|
127
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
128
128
|
id: string;
|
|
129
|
-
} & import("../../../MagicTray/index.js").
|
|
129
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
130
130
|
afterDrag: {
|
|
131
131
|
id: string;
|
|
132
132
|
x: number;
|
|
@@ -135,9 +135,9 @@ export declare function useMagicEmitter(): {
|
|
|
135
135
|
id: string;
|
|
136
136
|
x: number;
|
|
137
137
|
y: number;
|
|
138
|
-
} | ({
|
|
138
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
139
139
|
id: string;
|
|
140
|
-
} & import("../../../MagicTray/index.js").
|
|
140
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
141
141
|
dragCanceled: {
|
|
142
142
|
id: string;
|
|
143
143
|
x: number;
|
|
@@ -170,55 +170,56 @@ export declare function useMagicEmitter(): {
|
|
|
170
170
|
};
|
|
171
171
|
beforeSnap: {
|
|
172
172
|
id: string;
|
|
173
|
-
snapPoint: import("../../../MagicDrawer/
|
|
173
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
174
174
|
} | {
|
|
175
175
|
id: string;
|
|
176
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
176
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
177
177
|
};
|
|
178
178
|
snapTo: {
|
|
179
179
|
id: string;
|
|
180
|
-
snapPoint: import("../../../MagicDrawer/
|
|
180
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
181
181
|
duration?: number;
|
|
182
182
|
} | {
|
|
183
183
|
id: string;
|
|
184
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
184
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
185
185
|
duration?: number;
|
|
186
186
|
};
|
|
187
187
|
afterSnap: {
|
|
188
188
|
id: string;
|
|
189
|
-
snapPoint: import("../../../MagicDrawer/
|
|
189
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
190
190
|
} | {
|
|
191
191
|
id: string;
|
|
192
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
192
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
193
193
|
};
|
|
194
194
|
beforeDrag: {
|
|
195
195
|
id: string;
|
|
196
196
|
x: number;
|
|
197
197
|
y: number;
|
|
198
|
-
} | ({
|
|
198
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
199
199
|
id: string;
|
|
200
|
-
} & import("../../../MagicTray/index.js").
|
|
200
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
201
201
|
drag: {
|
|
202
202
|
id: string;
|
|
203
203
|
x: number;
|
|
204
204
|
y: number;
|
|
205
|
-
} | ({
|
|
205
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
206
206
|
id: string;
|
|
207
|
-
} & import("../../../MagicTray/index.js").
|
|
207
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
208
208
|
afterDrag: {
|
|
209
209
|
id: string;
|
|
210
210
|
x: number;
|
|
211
211
|
y: number;
|
|
212
|
-
} | ({
|
|
212
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
213
213
|
id: string;
|
|
214
|
-
} & import("../../../MagicTray/index.js").
|
|
214
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
215
215
|
progress: {
|
|
216
216
|
id: string;
|
|
217
217
|
x: number;
|
|
218
218
|
y: number;
|
|
219
219
|
} | ({
|
|
220
220
|
id: string;
|
|
221
|
-
} & import("../../../MagicTray/index.js").
|
|
221
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
222
|
+
willSnapTo: import("../../../MagicDrawer/index.js").MagicDrawerWillSnapToPayload | import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
222
223
|
} & Omit<{
|
|
223
224
|
beforeEnter: string | {
|
|
224
225
|
id: string;
|
|
@@ -300,39 +301,45 @@ export declare function useMagicEmitter(): {
|
|
|
300
301
|
beforeLeave: string;
|
|
301
302
|
leave: string;
|
|
302
303
|
afterLeave: string;
|
|
304
|
+
beforeDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
305
|
+
id: string;
|
|
306
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
307
|
+
drag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
308
|
+
id: string;
|
|
309
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
310
|
+
afterDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
311
|
+
id: string;
|
|
312
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
303
313
|
} & Omit<{
|
|
304
314
|
beforeSnap: {
|
|
305
315
|
id: string;
|
|
306
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
316
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
307
317
|
};
|
|
308
318
|
snapTo: {
|
|
309
319
|
id: string;
|
|
310
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
320
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
311
321
|
duration?: number;
|
|
312
322
|
};
|
|
313
323
|
afterSnap: {
|
|
314
324
|
id: string;
|
|
315
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
325
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
316
326
|
};
|
|
317
327
|
beforeDrag: {
|
|
318
328
|
id: string;
|
|
319
|
-
} & import("../../../MagicTray/index.js").
|
|
329
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
320
330
|
drag: {
|
|
321
331
|
id: string;
|
|
322
|
-
} & import("../../../MagicTray/index.js").
|
|
332
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
323
333
|
afterDrag: {
|
|
324
334
|
id: string;
|
|
325
|
-
} & import("../../../MagicTray/index.js").
|
|
326
|
-
staticClick: {
|
|
327
|
-
id: string;
|
|
328
|
-
} & import("../../../MagicTray/index.js").TraySidePayload;
|
|
335
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
329
336
|
progress: {
|
|
330
337
|
id: string;
|
|
331
|
-
} & import("../../../MagicTray/index.js").
|
|
338
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
332
339
|
magnet: {
|
|
333
340
|
id: string;
|
|
334
|
-
} & import("../../../MagicTray/index.js").
|
|
335
|
-
willSnapTo: import("../../../MagicTray/index.js").
|
|
341
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
342
|
+
willSnapTo: import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
336
343
|
} & Omit<object, keyof import("../../../MagicTray/src/types/index.js").TrayEvents>, 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;
|
|
337
344
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
338
345
|
beforeEnter: string | {
|
|
@@ -408,17 +415,17 @@ export declare function useMagicEmitter(): {
|
|
|
408
415
|
} & Omit<{
|
|
409
416
|
beforeSnap: {
|
|
410
417
|
id: string;
|
|
411
|
-
snapPoint: import("../../../MagicDrawer/
|
|
418
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
412
419
|
} | {
|
|
413
420
|
id: string;
|
|
414
421
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
415
422
|
} | {
|
|
416
423
|
id: string;
|
|
417
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
424
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
418
425
|
};
|
|
419
426
|
snapTo: {
|
|
420
427
|
id: string;
|
|
421
|
-
snapPoint: import("../../../MagicDrawer/
|
|
428
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
422
429
|
duration?: number;
|
|
423
430
|
} | {
|
|
424
431
|
id: string;
|
|
@@ -426,18 +433,18 @@ export declare function useMagicEmitter(): {
|
|
|
426
433
|
duration?: number;
|
|
427
434
|
} | {
|
|
428
435
|
id: string;
|
|
429
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
436
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
430
437
|
duration?: number;
|
|
431
438
|
};
|
|
432
439
|
afterSnap: {
|
|
433
440
|
id: string;
|
|
434
|
-
snapPoint: import("../../../MagicDrawer/
|
|
441
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
435
442
|
} | {
|
|
436
443
|
id: string;
|
|
437
444
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
438
445
|
} | {
|
|
439
446
|
id: string;
|
|
440
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
447
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
441
448
|
};
|
|
442
449
|
beforeDrag: {
|
|
443
450
|
id: string;
|
|
@@ -447,9 +454,9 @@ export declare function useMagicEmitter(): {
|
|
|
447
454
|
id: string;
|
|
448
455
|
x: number;
|
|
449
456
|
y: number;
|
|
450
|
-
} | ({
|
|
457
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
451
458
|
id: string;
|
|
452
|
-
} & import("../../../MagicTray/index.js").
|
|
459
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
453
460
|
drag: {
|
|
454
461
|
id: string;
|
|
455
462
|
x: number;
|
|
@@ -458,9 +465,9 @@ export declare function useMagicEmitter(): {
|
|
|
458
465
|
id: string;
|
|
459
466
|
x: number;
|
|
460
467
|
y: number;
|
|
461
|
-
} | ({
|
|
468
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
462
469
|
id: string;
|
|
463
|
-
} & import("../../../MagicTray/index.js").
|
|
470
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
464
471
|
afterDrag: {
|
|
465
472
|
id: string;
|
|
466
473
|
x: number;
|
|
@@ -469,9 +476,9 @@ export declare function useMagicEmitter(): {
|
|
|
469
476
|
id: string;
|
|
470
477
|
x: number;
|
|
471
478
|
y: number;
|
|
472
|
-
} | ({
|
|
479
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
473
480
|
id: string;
|
|
474
|
-
} & import("../../../MagicTray/index.js").
|
|
481
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
475
482
|
dragCanceled: {
|
|
476
483
|
id: string;
|
|
477
484
|
x: number;
|
|
@@ -504,55 +511,56 @@ export declare function useMagicEmitter(): {
|
|
|
504
511
|
};
|
|
505
512
|
beforeSnap: {
|
|
506
513
|
id: string;
|
|
507
|
-
snapPoint: import("../../../MagicDrawer/
|
|
514
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
508
515
|
} | {
|
|
509
516
|
id: string;
|
|
510
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
517
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
511
518
|
};
|
|
512
519
|
snapTo: {
|
|
513
520
|
id: string;
|
|
514
|
-
snapPoint: import("../../../MagicDrawer/
|
|
521
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
515
522
|
duration?: number;
|
|
516
523
|
} | {
|
|
517
524
|
id: string;
|
|
518
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
525
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
519
526
|
duration?: number;
|
|
520
527
|
};
|
|
521
528
|
afterSnap: {
|
|
522
529
|
id: string;
|
|
523
|
-
snapPoint: import("../../../MagicDrawer/
|
|
530
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
524
531
|
} | {
|
|
525
532
|
id: string;
|
|
526
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
533
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
527
534
|
};
|
|
528
535
|
beforeDrag: {
|
|
529
536
|
id: string;
|
|
530
537
|
x: number;
|
|
531
538
|
y: number;
|
|
532
|
-
} | ({
|
|
539
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
533
540
|
id: string;
|
|
534
|
-
} & import("../../../MagicTray/index.js").
|
|
541
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
535
542
|
drag: {
|
|
536
543
|
id: string;
|
|
537
544
|
x: number;
|
|
538
545
|
y: number;
|
|
539
|
-
} | ({
|
|
546
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
540
547
|
id: string;
|
|
541
|
-
} & import("../../../MagicTray/index.js").
|
|
548
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
542
549
|
afterDrag: {
|
|
543
550
|
id: string;
|
|
544
551
|
x: number;
|
|
545
552
|
y: number;
|
|
546
|
-
} | ({
|
|
553
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
547
554
|
id: string;
|
|
548
|
-
} & import("../../../MagicTray/index.js").
|
|
555
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
549
556
|
progress: {
|
|
550
557
|
id: string;
|
|
551
558
|
x: number;
|
|
552
559
|
y: number;
|
|
553
560
|
} | ({
|
|
554
561
|
id: string;
|
|
555
|
-
} & import("../../../MagicTray/index.js").
|
|
562
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
563
|
+
willSnapTo: import("../../../MagicDrawer/index.js").MagicDrawerWillSnapToPayload | import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
556
564
|
} & Omit<{
|
|
557
565
|
beforeEnter: string | {
|
|
558
566
|
id: string;
|
|
@@ -634,43 +642,49 @@ export declare function useMagicEmitter(): {
|
|
|
634
642
|
beforeLeave: string;
|
|
635
643
|
leave: string;
|
|
636
644
|
afterLeave: string;
|
|
645
|
+
beforeDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
646
|
+
id: string;
|
|
647
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
648
|
+
drag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
649
|
+
id: string;
|
|
650
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
651
|
+
afterDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
652
|
+
id: string;
|
|
653
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
637
654
|
} & Omit<{
|
|
638
655
|
beforeSnap: {
|
|
639
656
|
id: string;
|
|
640
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
657
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
641
658
|
};
|
|
642
659
|
snapTo: {
|
|
643
660
|
id: string;
|
|
644
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
661
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
645
662
|
duration?: number;
|
|
646
663
|
};
|
|
647
664
|
afterSnap: {
|
|
648
665
|
id: string;
|
|
649
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
666
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
650
667
|
};
|
|
651
668
|
beforeDrag: {
|
|
652
669
|
id: string;
|
|
653
|
-
} & import("../../../MagicTray/index.js").
|
|
670
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
654
671
|
drag: {
|
|
655
672
|
id: string;
|
|
656
|
-
} & import("../../../MagicTray/index.js").
|
|
673
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
657
674
|
afterDrag: {
|
|
658
675
|
id: string;
|
|
659
|
-
} & import("../../../MagicTray/index.js").
|
|
660
|
-
staticClick: {
|
|
661
|
-
id: string;
|
|
662
|
-
} & import("../../../MagicTray/index.js").TraySidePayload;
|
|
676
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
663
677
|
progress: {
|
|
664
678
|
id: string;
|
|
665
|
-
} & import("../../../MagicTray/index.js").
|
|
679
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
666
680
|
magnet: {
|
|
667
681
|
id: string;
|
|
668
|
-
} & import("../../../MagicTray/index.js").
|
|
669
|
-
willSnapTo: import("../../../MagicTray/index.js").
|
|
682
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
683
|
+
willSnapTo: import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
670
684
|
} & Omit<object, keyof import("../../../MagicTray/src/types/index.js").TrayEvents>, 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;
|
|
671
685
|
};
|
|
672
686
|
off: {
|
|
673
|
-
<Key extends "progress" | "
|
|
687
|
+
<Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "magnet" | "willSnapTo" | "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<({
|
|
674
688
|
beforeEnter: string | {
|
|
675
689
|
id: string;
|
|
676
690
|
viewId: string;
|
|
@@ -744,17 +758,17 @@ export declare function useMagicEmitter(): {
|
|
|
744
758
|
} & Omit<{
|
|
745
759
|
beforeSnap: {
|
|
746
760
|
id: string;
|
|
747
|
-
snapPoint: import("../../../MagicDrawer/
|
|
761
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
748
762
|
} | {
|
|
749
763
|
id: string;
|
|
750
764
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
751
765
|
} | {
|
|
752
766
|
id: string;
|
|
753
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
767
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
754
768
|
};
|
|
755
769
|
snapTo: {
|
|
756
770
|
id: string;
|
|
757
|
-
snapPoint: import("../../../MagicDrawer/
|
|
771
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
758
772
|
duration?: number;
|
|
759
773
|
} | {
|
|
760
774
|
id: string;
|
|
@@ -762,18 +776,18 @@ export declare function useMagicEmitter(): {
|
|
|
762
776
|
duration?: number;
|
|
763
777
|
} | {
|
|
764
778
|
id: string;
|
|
765
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
779
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
766
780
|
duration?: number;
|
|
767
781
|
};
|
|
768
782
|
afterSnap: {
|
|
769
783
|
id: string;
|
|
770
|
-
snapPoint: import("../../../MagicDrawer/
|
|
784
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
771
785
|
} | {
|
|
772
786
|
id: string;
|
|
773
787
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
774
788
|
} | {
|
|
775
789
|
id: string;
|
|
776
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
790
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
777
791
|
};
|
|
778
792
|
beforeDrag: {
|
|
779
793
|
id: string;
|
|
@@ -783,9 +797,9 @@ export declare function useMagicEmitter(): {
|
|
|
783
797
|
id: string;
|
|
784
798
|
x: number;
|
|
785
799
|
y: number;
|
|
786
|
-
} | ({
|
|
800
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
787
801
|
id: string;
|
|
788
|
-
} & import("../../../MagicTray/index.js").
|
|
802
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
789
803
|
drag: {
|
|
790
804
|
id: string;
|
|
791
805
|
x: number;
|
|
@@ -794,9 +808,9 @@ export declare function useMagicEmitter(): {
|
|
|
794
808
|
id: string;
|
|
795
809
|
x: number;
|
|
796
810
|
y: number;
|
|
797
|
-
} | ({
|
|
811
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
798
812
|
id: string;
|
|
799
|
-
} & import("../../../MagicTray/index.js").
|
|
813
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
800
814
|
afterDrag: {
|
|
801
815
|
id: string;
|
|
802
816
|
x: number;
|
|
@@ -805,9 +819,9 @@ export declare function useMagicEmitter(): {
|
|
|
805
819
|
id: string;
|
|
806
820
|
x: number;
|
|
807
821
|
y: number;
|
|
808
|
-
} | ({
|
|
822
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
809
823
|
id: string;
|
|
810
|
-
} & import("../../../MagicTray/index.js").
|
|
824
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
811
825
|
dragCanceled: {
|
|
812
826
|
id: string;
|
|
813
827
|
x: number;
|
|
@@ -840,55 +854,56 @@ export declare function useMagicEmitter(): {
|
|
|
840
854
|
};
|
|
841
855
|
beforeSnap: {
|
|
842
856
|
id: string;
|
|
843
|
-
snapPoint: import("../../../MagicDrawer/
|
|
857
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
844
858
|
} | {
|
|
845
859
|
id: string;
|
|
846
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
860
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
847
861
|
};
|
|
848
862
|
snapTo: {
|
|
849
863
|
id: string;
|
|
850
|
-
snapPoint: import("../../../MagicDrawer/
|
|
864
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
851
865
|
duration?: number;
|
|
852
866
|
} | {
|
|
853
867
|
id: string;
|
|
854
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
868
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
855
869
|
duration?: number;
|
|
856
870
|
};
|
|
857
871
|
afterSnap: {
|
|
858
872
|
id: string;
|
|
859
|
-
snapPoint: import("../../../MagicDrawer/
|
|
873
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
860
874
|
} | {
|
|
861
875
|
id: string;
|
|
862
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
876
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
863
877
|
};
|
|
864
878
|
beforeDrag: {
|
|
865
879
|
id: string;
|
|
866
880
|
x: number;
|
|
867
881
|
y: number;
|
|
868
|
-
} | ({
|
|
882
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
869
883
|
id: string;
|
|
870
|
-
} & import("../../../MagicTray/index.js").
|
|
884
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
871
885
|
drag: {
|
|
872
886
|
id: string;
|
|
873
887
|
x: number;
|
|
874
888
|
y: number;
|
|
875
|
-
} | ({
|
|
889
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
876
890
|
id: string;
|
|
877
|
-
} & import("../../../MagicTray/index.js").
|
|
891
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
878
892
|
afterDrag: {
|
|
879
893
|
id: string;
|
|
880
894
|
x: number;
|
|
881
895
|
y: number;
|
|
882
|
-
} | ({
|
|
896
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
883
897
|
id: string;
|
|
884
|
-
} & import("../../../MagicTray/index.js").
|
|
898
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
885
899
|
progress: {
|
|
886
900
|
id: string;
|
|
887
901
|
x: number;
|
|
888
902
|
y: number;
|
|
889
903
|
} | ({
|
|
890
904
|
id: string;
|
|
891
|
-
} & import("../../../MagicTray/index.js").
|
|
905
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
906
|
+
willSnapTo: import("../../../MagicDrawer/index.js").MagicDrawerWillSnapToPayload | import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
892
907
|
} & Omit<{
|
|
893
908
|
beforeEnter: string | {
|
|
894
909
|
id: string;
|
|
@@ -970,39 +985,45 @@ export declare function useMagicEmitter(): {
|
|
|
970
985
|
beforeLeave: string;
|
|
971
986
|
leave: string;
|
|
972
987
|
afterLeave: string;
|
|
988
|
+
beforeDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
989
|
+
id: string;
|
|
990
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
991
|
+
drag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
992
|
+
id: string;
|
|
993
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
994
|
+
afterDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
995
|
+
id: string;
|
|
996
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
973
997
|
} & Omit<{
|
|
974
998
|
beforeSnap: {
|
|
975
999
|
id: string;
|
|
976
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1000
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
977
1001
|
};
|
|
978
1002
|
snapTo: {
|
|
979
1003
|
id: string;
|
|
980
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1004
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
981
1005
|
duration?: number;
|
|
982
1006
|
};
|
|
983
1007
|
afterSnap: {
|
|
984
1008
|
id: string;
|
|
985
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1009
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
986
1010
|
};
|
|
987
1011
|
beforeDrag: {
|
|
988
1012
|
id: string;
|
|
989
|
-
} & import("../../../MagicTray/index.js").
|
|
1013
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
990
1014
|
drag: {
|
|
991
1015
|
id: string;
|
|
992
|
-
} & import("../../../MagicTray/index.js").
|
|
1016
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
993
1017
|
afterDrag: {
|
|
994
1018
|
id: string;
|
|
995
|
-
} & import("../../../MagicTray/index.js").
|
|
996
|
-
staticClick: {
|
|
997
|
-
id: string;
|
|
998
|
-
} & import("../../../MagicTray/index.js").TraySidePayload;
|
|
1019
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
999
1020
|
progress: {
|
|
1000
1021
|
id: string;
|
|
1001
|
-
} & import("../../../MagicTray/index.js").
|
|
1022
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1002
1023
|
magnet: {
|
|
1003
1024
|
id: string;
|
|
1004
|
-
} & import("../../../MagicTray/index.js").
|
|
1005
|
-
willSnapTo: import("../../../MagicTray/index.js").
|
|
1025
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1026
|
+
willSnapTo: import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
1006
1027
|
} & Omit<object, keyof import("../../../MagicTray/src/types/index.js").TrayEvents>, 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;
|
|
1007
1028
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
1008
1029
|
beforeEnter: string | {
|
|
@@ -1078,17 +1099,17 @@ export declare function useMagicEmitter(): {
|
|
|
1078
1099
|
} & Omit<{
|
|
1079
1100
|
beforeSnap: {
|
|
1080
1101
|
id: string;
|
|
1081
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1102
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1082
1103
|
} | {
|
|
1083
1104
|
id: string;
|
|
1084
1105
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
1085
1106
|
} | {
|
|
1086
1107
|
id: string;
|
|
1087
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1108
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1088
1109
|
};
|
|
1089
1110
|
snapTo: {
|
|
1090
1111
|
id: string;
|
|
1091
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1112
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1092
1113
|
duration?: number;
|
|
1093
1114
|
} | {
|
|
1094
1115
|
id: string;
|
|
@@ -1096,18 +1117,18 @@ export declare function useMagicEmitter(): {
|
|
|
1096
1117
|
duration?: number;
|
|
1097
1118
|
} | {
|
|
1098
1119
|
id: string;
|
|
1099
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1120
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1100
1121
|
duration?: number;
|
|
1101
1122
|
};
|
|
1102
1123
|
afterSnap: {
|
|
1103
1124
|
id: string;
|
|
1104
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1125
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1105
1126
|
} | {
|
|
1106
1127
|
id: string;
|
|
1107
1128
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
1108
1129
|
} | {
|
|
1109
1130
|
id: string;
|
|
1110
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1131
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1111
1132
|
};
|
|
1112
1133
|
beforeDrag: {
|
|
1113
1134
|
id: string;
|
|
@@ -1117,9 +1138,9 @@ export declare function useMagicEmitter(): {
|
|
|
1117
1138
|
id: string;
|
|
1118
1139
|
x: number;
|
|
1119
1140
|
y: number;
|
|
1120
|
-
} | ({
|
|
1141
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1121
1142
|
id: string;
|
|
1122
|
-
} & import("../../../MagicTray/index.js").
|
|
1143
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1123
1144
|
drag: {
|
|
1124
1145
|
id: string;
|
|
1125
1146
|
x: number;
|
|
@@ -1128,9 +1149,9 @@ export declare function useMagicEmitter(): {
|
|
|
1128
1149
|
id: string;
|
|
1129
1150
|
x: number;
|
|
1130
1151
|
y: number;
|
|
1131
|
-
} | ({
|
|
1152
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1132
1153
|
id: string;
|
|
1133
|
-
} & import("../../../MagicTray/index.js").
|
|
1154
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1134
1155
|
afterDrag: {
|
|
1135
1156
|
id: string;
|
|
1136
1157
|
x: number;
|
|
@@ -1139,9 +1160,9 @@ export declare function useMagicEmitter(): {
|
|
|
1139
1160
|
id: string;
|
|
1140
1161
|
x: number;
|
|
1141
1162
|
y: number;
|
|
1142
|
-
} | ({
|
|
1163
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1143
1164
|
id: string;
|
|
1144
|
-
} & import("../../../MagicTray/index.js").
|
|
1165
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1145
1166
|
dragCanceled: {
|
|
1146
1167
|
id: string;
|
|
1147
1168
|
x: number;
|
|
@@ -1174,55 +1195,56 @@ export declare function useMagicEmitter(): {
|
|
|
1174
1195
|
};
|
|
1175
1196
|
beforeSnap: {
|
|
1176
1197
|
id: string;
|
|
1177
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1198
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1178
1199
|
} | {
|
|
1179
1200
|
id: string;
|
|
1180
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1201
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1181
1202
|
};
|
|
1182
1203
|
snapTo: {
|
|
1183
1204
|
id: string;
|
|
1184
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1205
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1185
1206
|
duration?: number;
|
|
1186
1207
|
} | {
|
|
1187
1208
|
id: string;
|
|
1188
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1209
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1189
1210
|
duration?: number;
|
|
1190
1211
|
};
|
|
1191
1212
|
afterSnap: {
|
|
1192
1213
|
id: string;
|
|
1193
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1214
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1194
1215
|
} | {
|
|
1195
1216
|
id: string;
|
|
1196
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1217
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1197
1218
|
};
|
|
1198
1219
|
beforeDrag: {
|
|
1199
1220
|
id: string;
|
|
1200
1221
|
x: number;
|
|
1201
1222
|
y: number;
|
|
1202
|
-
} | ({
|
|
1223
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1203
1224
|
id: string;
|
|
1204
|
-
} & import("../../../MagicTray/index.js").
|
|
1225
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1205
1226
|
drag: {
|
|
1206
1227
|
id: string;
|
|
1207
1228
|
x: number;
|
|
1208
1229
|
y: number;
|
|
1209
|
-
} | ({
|
|
1230
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1210
1231
|
id: string;
|
|
1211
|
-
} & import("../../../MagicTray/index.js").
|
|
1232
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1212
1233
|
afterDrag: {
|
|
1213
1234
|
id: string;
|
|
1214
1235
|
x: number;
|
|
1215
1236
|
y: number;
|
|
1216
|
-
} | ({
|
|
1237
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1217
1238
|
id: string;
|
|
1218
|
-
} & import("../../../MagicTray/index.js").
|
|
1239
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1219
1240
|
progress: {
|
|
1220
1241
|
id: string;
|
|
1221
1242
|
x: number;
|
|
1222
1243
|
y: number;
|
|
1223
1244
|
} | ({
|
|
1224
1245
|
id: string;
|
|
1225
|
-
} & import("../../../MagicTray/index.js").
|
|
1246
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1247
|
+
willSnapTo: import("../../../MagicDrawer/index.js").MagicDrawerWillSnapToPayload | import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
1226
1248
|
} & Omit<{
|
|
1227
1249
|
beforeEnter: string | {
|
|
1228
1250
|
id: string;
|
|
@@ -1304,43 +1326,49 @@ export declare function useMagicEmitter(): {
|
|
|
1304
1326
|
beforeLeave: string;
|
|
1305
1327
|
leave: string;
|
|
1306
1328
|
afterLeave: string;
|
|
1329
|
+
beforeDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1330
|
+
id: string;
|
|
1331
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1332
|
+
drag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1333
|
+
id: string;
|
|
1334
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1335
|
+
afterDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1336
|
+
id: string;
|
|
1337
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1307
1338
|
} & Omit<{
|
|
1308
1339
|
beforeSnap: {
|
|
1309
1340
|
id: string;
|
|
1310
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1341
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1311
1342
|
};
|
|
1312
1343
|
snapTo: {
|
|
1313
1344
|
id: string;
|
|
1314
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1345
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1315
1346
|
duration?: number;
|
|
1316
1347
|
};
|
|
1317
1348
|
afterSnap: {
|
|
1318
1349
|
id: string;
|
|
1319
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1350
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1320
1351
|
};
|
|
1321
1352
|
beforeDrag: {
|
|
1322
1353
|
id: string;
|
|
1323
|
-
} & import("../../../MagicTray/index.js").
|
|
1354
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1324
1355
|
drag: {
|
|
1325
1356
|
id: string;
|
|
1326
|
-
} & import("../../../MagicTray/index.js").
|
|
1357
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1327
1358
|
afterDrag: {
|
|
1328
1359
|
id: string;
|
|
1329
|
-
} & import("../../../MagicTray/index.js").
|
|
1330
|
-
staticClick: {
|
|
1331
|
-
id: string;
|
|
1332
|
-
} & import("../../../MagicTray/index.js").TraySidePayload;
|
|
1360
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1333
1361
|
progress: {
|
|
1334
1362
|
id: string;
|
|
1335
|
-
} & import("../../../MagicTray/index.js").
|
|
1363
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1336
1364
|
magnet: {
|
|
1337
1365
|
id: string;
|
|
1338
|
-
} & import("../../../MagicTray/index.js").
|
|
1339
|
-
willSnapTo: import("../../../MagicTray/index.js").
|
|
1366
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1367
|
+
willSnapTo: import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
1340
1368
|
} & Omit<object, keyof import("../../../MagicTray/src/types/index.js").TrayEvents>, 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;
|
|
1341
1369
|
};
|
|
1342
1370
|
emit: {
|
|
1343
|
-
<Key extends "progress" | "
|
|
1371
|
+
<Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "magnet" | "willSnapTo" | "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: ({
|
|
1344
1372
|
beforeEnter: string | {
|
|
1345
1373
|
id: string;
|
|
1346
1374
|
viewId: string;
|
|
@@ -1414,17 +1442,17 @@ export declare function useMagicEmitter(): {
|
|
|
1414
1442
|
} & Omit<{
|
|
1415
1443
|
beforeSnap: {
|
|
1416
1444
|
id: string;
|
|
1417
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1445
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1418
1446
|
} | {
|
|
1419
1447
|
id: string;
|
|
1420
1448
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
1421
1449
|
} | {
|
|
1422
1450
|
id: string;
|
|
1423
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1451
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1424
1452
|
};
|
|
1425
1453
|
snapTo: {
|
|
1426
1454
|
id: string;
|
|
1427
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1455
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1428
1456
|
duration?: number;
|
|
1429
1457
|
} | {
|
|
1430
1458
|
id: string;
|
|
@@ -1432,18 +1460,18 @@ export declare function useMagicEmitter(): {
|
|
|
1432
1460
|
duration?: number;
|
|
1433
1461
|
} | {
|
|
1434
1462
|
id: string;
|
|
1435
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1463
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1436
1464
|
duration?: number;
|
|
1437
1465
|
};
|
|
1438
1466
|
afterSnap: {
|
|
1439
1467
|
id: string;
|
|
1440
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1468
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1441
1469
|
} | {
|
|
1442
1470
|
id: string;
|
|
1443
1471
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
1444
1472
|
} | {
|
|
1445
1473
|
id: string;
|
|
1446
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1474
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1447
1475
|
};
|
|
1448
1476
|
beforeDrag: {
|
|
1449
1477
|
id: string;
|
|
@@ -1453,9 +1481,9 @@ export declare function useMagicEmitter(): {
|
|
|
1453
1481
|
id: string;
|
|
1454
1482
|
x: number;
|
|
1455
1483
|
y: number;
|
|
1456
|
-
} | ({
|
|
1484
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1457
1485
|
id: string;
|
|
1458
|
-
} & import("../../../MagicTray/index.js").
|
|
1486
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1459
1487
|
drag: {
|
|
1460
1488
|
id: string;
|
|
1461
1489
|
x: number;
|
|
@@ -1464,9 +1492,9 @@ export declare function useMagicEmitter(): {
|
|
|
1464
1492
|
id: string;
|
|
1465
1493
|
x: number;
|
|
1466
1494
|
y: number;
|
|
1467
|
-
} | ({
|
|
1495
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1468
1496
|
id: string;
|
|
1469
|
-
} & import("../../../MagicTray/index.js").
|
|
1497
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1470
1498
|
afterDrag: {
|
|
1471
1499
|
id: string;
|
|
1472
1500
|
x: number;
|
|
@@ -1475,9 +1503,9 @@ export declare function useMagicEmitter(): {
|
|
|
1475
1503
|
id: string;
|
|
1476
1504
|
x: number;
|
|
1477
1505
|
y: number;
|
|
1478
|
-
} | ({
|
|
1506
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1479
1507
|
id: string;
|
|
1480
|
-
} & import("../../../MagicTray/index.js").
|
|
1508
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1481
1509
|
dragCanceled: {
|
|
1482
1510
|
id: string;
|
|
1483
1511
|
x: number;
|
|
@@ -1510,55 +1538,56 @@ export declare function useMagicEmitter(): {
|
|
|
1510
1538
|
};
|
|
1511
1539
|
beforeSnap: {
|
|
1512
1540
|
id: string;
|
|
1513
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1541
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1514
1542
|
} | {
|
|
1515
1543
|
id: string;
|
|
1516
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1544
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1517
1545
|
};
|
|
1518
1546
|
snapTo: {
|
|
1519
1547
|
id: string;
|
|
1520
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1548
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1521
1549
|
duration?: number;
|
|
1522
1550
|
} | {
|
|
1523
1551
|
id: string;
|
|
1524
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1552
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1525
1553
|
duration?: number;
|
|
1526
1554
|
};
|
|
1527
1555
|
afterSnap: {
|
|
1528
1556
|
id: string;
|
|
1529
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1557
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1530
1558
|
} | {
|
|
1531
1559
|
id: string;
|
|
1532
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1560
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1533
1561
|
};
|
|
1534
1562
|
beforeDrag: {
|
|
1535
1563
|
id: string;
|
|
1536
1564
|
x: number;
|
|
1537
1565
|
y: number;
|
|
1538
|
-
} | ({
|
|
1566
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1539
1567
|
id: string;
|
|
1540
|
-
} & import("../../../MagicTray/index.js").
|
|
1568
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1541
1569
|
drag: {
|
|
1542
1570
|
id: string;
|
|
1543
1571
|
x: number;
|
|
1544
1572
|
y: number;
|
|
1545
|
-
} | ({
|
|
1573
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1546
1574
|
id: string;
|
|
1547
|
-
} & import("../../../MagicTray/index.js").
|
|
1575
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1548
1576
|
afterDrag: {
|
|
1549
1577
|
id: string;
|
|
1550
1578
|
x: number;
|
|
1551
1579
|
y: number;
|
|
1552
|
-
} | ({
|
|
1580
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1553
1581
|
id: string;
|
|
1554
|
-
} & import("../../../MagicTray/index.js").
|
|
1582
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1555
1583
|
progress: {
|
|
1556
1584
|
id: string;
|
|
1557
1585
|
x: number;
|
|
1558
1586
|
y: number;
|
|
1559
1587
|
} | ({
|
|
1560
1588
|
id: string;
|
|
1561
|
-
} & import("../../../MagicTray/index.js").
|
|
1589
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1590
|
+
willSnapTo: import("../../../MagicDrawer/index.js").MagicDrawerWillSnapToPayload | import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
1562
1591
|
} & Omit<{
|
|
1563
1592
|
beforeEnter: string | {
|
|
1564
1593
|
id: string;
|
|
@@ -1640,41 +1669,47 @@ export declare function useMagicEmitter(): {
|
|
|
1640
1669
|
beforeLeave: string;
|
|
1641
1670
|
leave: string;
|
|
1642
1671
|
afterLeave: string;
|
|
1672
|
+
beforeDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1673
|
+
id: string;
|
|
1674
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1675
|
+
drag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1676
|
+
id: string;
|
|
1677
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1678
|
+
afterDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1679
|
+
id: string;
|
|
1680
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1643
1681
|
} & Omit<{
|
|
1644
1682
|
beforeSnap: {
|
|
1645
1683
|
id: string;
|
|
1646
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1684
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1647
1685
|
};
|
|
1648
1686
|
snapTo: {
|
|
1649
1687
|
id: string;
|
|
1650
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1688
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1651
1689
|
duration?: number;
|
|
1652
1690
|
};
|
|
1653
1691
|
afterSnap: {
|
|
1654
1692
|
id: string;
|
|
1655
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1693
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1656
1694
|
};
|
|
1657
1695
|
beforeDrag: {
|
|
1658
1696
|
id: string;
|
|
1659
|
-
} & import("../../../MagicTray/index.js").
|
|
1697
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1660
1698
|
drag: {
|
|
1661
1699
|
id: string;
|
|
1662
|
-
} & import("../../../MagicTray/index.js").
|
|
1700
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1663
1701
|
afterDrag: {
|
|
1664
1702
|
id: string;
|
|
1665
|
-
} & import("../../../MagicTray/index.js").
|
|
1666
|
-
staticClick: {
|
|
1667
|
-
id: string;
|
|
1668
|
-
} & import("../../../MagicTray/index.js").TraySidePayload;
|
|
1703
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1669
1704
|
progress: {
|
|
1670
1705
|
id: string;
|
|
1671
|
-
} & import("../../../MagicTray/index.js").
|
|
1706
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1672
1707
|
magnet: {
|
|
1673
1708
|
id: string;
|
|
1674
|
-
} & import("../../../MagicTray/index.js").
|
|
1675
|
-
willSnapTo: import("../../../MagicTray/index.js").
|
|
1709
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1710
|
+
willSnapTo: import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
1676
1711
|
} & Omit<object, keyof import("../../../MagicTray/src/types/index.js").TrayEvents>, 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;
|
|
1677
|
-
<Key extends "progress" | "
|
|
1712
|
+
<Key extends "progress" | "acceptAll" | "acceptSelected" | "rejectAll" | "magnet" | "willSnapTo" | "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 ({
|
|
1678
1713
|
beforeEnter: string | {
|
|
1679
1714
|
id: string;
|
|
1680
1715
|
viewId: string;
|
|
@@ -1748,17 +1783,17 @@ export declare function useMagicEmitter(): {
|
|
|
1748
1783
|
} & Omit<{
|
|
1749
1784
|
beforeSnap: {
|
|
1750
1785
|
id: string;
|
|
1751
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1786
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1752
1787
|
} | {
|
|
1753
1788
|
id: string;
|
|
1754
1789
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
1755
1790
|
} | {
|
|
1756
1791
|
id: string;
|
|
1757
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1792
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1758
1793
|
};
|
|
1759
1794
|
snapTo: {
|
|
1760
1795
|
id: string;
|
|
1761
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1796
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1762
1797
|
duration?: number;
|
|
1763
1798
|
} | {
|
|
1764
1799
|
id: string;
|
|
@@ -1766,18 +1801,18 @@ export declare function useMagicEmitter(): {
|
|
|
1766
1801
|
duration?: number;
|
|
1767
1802
|
} | {
|
|
1768
1803
|
id: string;
|
|
1769
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1804
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1770
1805
|
duration?: number;
|
|
1771
1806
|
};
|
|
1772
1807
|
afterSnap: {
|
|
1773
1808
|
id: string;
|
|
1774
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1809
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1775
1810
|
} | {
|
|
1776
1811
|
id: string;
|
|
1777
1812
|
snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
|
|
1778
1813
|
} | {
|
|
1779
1814
|
id: string;
|
|
1780
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1815
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1781
1816
|
};
|
|
1782
1817
|
beforeDrag: {
|
|
1783
1818
|
id: string;
|
|
@@ -1787,9 +1822,9 @@ export declare function useMagicEmitter(): {
|
|
|
1787
1822
|
id: string;
|
|
1788
1823
|
x: number;
|
|
1789
1824
|
y: number;
|
|
1790
|
-
} | ({
|
|
1825
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1791
1826
|
id: string;
|
|
1792
|
-
} & import("../../../MagicTray/index.js").
|
|
1827
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1793
1828
|
drag: {
|
|
1794
1829
|
id: string;
|
|
1795
1830
|
x: number;
|
|
@@ -1798,9 +1833,9 @@ export declare function useMagicEmitter(): {
|
|
|
1798
1833
|
id: string;
|
|
1799
1834
|
x: number;
|
|
1800
1835
|
y: number;
|
|
1801
|
-
} | ({
|
|
1836
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1802
1837
|
id: string;
|
|
1803
|
-
} & import("../../../MagicTray/index.js").
|
|
1838
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1804
1839
|
afterDrag: {
|
|
1805
1840
|
id: string;
|
|
1806
1841
|
x: number;
|
|
@@ -1809,9 +1844,9 @@ export declare function useMagicEmitter(): {
|
|
|
1809
1844
|
id: string;
|
|
1810
1845
|
x: number;
|
|
1811
1846
|
y: number;
|
|
1812
|
-
} | ({
|
|
1847
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1813
1848
|
id: string;
|
|
1814
|
-
} & import("../../../MagicTray/index.js").
|
|
1849
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1815
1850
|
dragCanceled: {
|
|
1816
1851
|
id: string;
|
|
1817
1852
|
x: number;
|
|
@@ -1844,55 +1879,56 @@ export declare function useMagicEmitter(): {
|
|
|
1844
1879
|
};
|
|
1845
1880
|
beforeSnap: {
|
|
1846
1881
|
id: string;
|
|
1847
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1882
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1848
1883
|
} | {
|
|
1849
1884
|
id: string;
|
|
1850
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1885
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1851
1886
|
};
|
|
1852
1887
|
snapTo: {
|
|
1853
1888
|
id: string;
|
|
1854
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1889
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1855
1890
|
duration?: number;
|
|
1856
1891
|
} | {
|
|
1857
1892
|
id: string;
|
|
1858
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1893
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1859
1894
|
duration?: number;
|
|
1860
1895
|
};
|
|
1861
1896
|
afterSnap: {
|
|
1862
1897
|
id: string;
|
|
1863
|
-
snapPoint: import("../../../MagicDrawer/
|
|
1898
|
+
snapPoint: import("../../../MagicDrawer/index.js").MagicDrawerSnapPoint;
|
|
1864
1899
|
} | {
|
|
1865
1900
|
id: string;
|
|
1866
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
1901
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1867
1902
|
};
|
|
1868
1903
|
beforeDrag: {
|
|
1869
1904
|
id: string;
|
|
1870
1905
|
x: number;
|
|
1871
1906
|
y: number;
|
|
1872
|
-
} | ({
|
|
1907
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1873
1908
|
id: string;
|
|
1874
|
-
} & import("../../../MagicTray/index.js").
|
|
1909
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1875
1910
|
drag: {
|
|
1876
1911
|
id: string;
|
|
1877
1912
|
x: number;
|
|
1878
1913
|
y: number;
|
|
1879
|
-
} | ({
|
|
1914
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1880
1915
|
id: string;
|
|
1881
|
-
} & import("../../../MagicTray/index.js").
|
|
1916
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1882
1917
|
afterDrag: {
|
|
1883
1918
|
id: string;
|
|
1884
1919
|
x: number;
|
|
1885
1920
|
y: number;
|
|
1886
|
-
} | ({
|
|
1921
|
+
} | import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
1887
1922
|
id: string;
|
|
1888
|
-
} & import("../../../MagicTray/index.js").
|
|
1923
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1889
1924
|
progress: {
|
|
1890
1925
|
id: string;
|
|
1891
1926
|
x: number;
|
|
1892
1927
|
y: number;
|
|
1893
1928
|
} | ({
|
|
1894
1929
|
id: string;
|
|
1895
|
-
} & import("../../../MagicTray/index.js").
|
|
1930
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1931
|
+
willSnapTo: import("../../../MagicDrawer/index.js").MagicDrawerWillSnapToPayload | import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
1896
1932
|
} & Omit<{
|
|
1897
1933
|
beforeEnter: string | {
|
|
1898
1934
|
id: string;
|
|
@@ -1974,39 +2010,45 @@ export declare function useMagicEmitter(): {
|
|
|
1974
2010
|
beforeLeave: string;
|
|
1975
2011
|
leave: string;
|
|
1976
2012
|
afterLeave: string;
|
|
2013
|
+
beforeDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
2014
|
+
id: string;
|
|
2015
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
2016
|
+
drag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
2017
|
+
id: string;
|
|
2018
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
2019
|
+
afterDrag: import("../../../MagicToast/index.js").MagicToastDragPayload | ({
|
|
2020
|
+
id: string;
|
|
2021
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload);
|
|
1977
2022
|
} & Omit<{
|
|
1978
2023
|
beforeSnap: {
|
|
1979
2024
|
id: string;
|
|
1980
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
2025
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1981
2026
|
};
|
|
1982
2027
|
snapTo: {
|
|
1983
2028
|
id: string;
|
|
1984
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
2029
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1985
2030
|
duration?: number;
|
|
1986
2031
|
};
|
|
1987
2032
|
afterSnap: {
|
|
1988
2033
|
id: string;
|
|
1989
|
-
snapPoint: import("../../../MagicTray/index.js").
|
|
2034
|
+
snapPoint: import("../../../MagicTray/index.js").MagicTraySnapPointPayload;
|
|
1990
2035
|
};
|
|
1991
2036
|
beforeDrag: {
|
|
1992
2037
|
id: string;
|
|
1993
|
-
} & import("../../../MagicTray/index.js").
|
|
2038
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1994
2039
|
drag: {
|
|
1995
2040
|
id: string;
|
|
1996
|
-
} & import("../../../MagicTray/index.js").
|
|
2041
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
1997
2042
|
afterDrag: {
|
|
1998
2043
|
id: string;
|
|
1999
|
-
} & import("../../../MagicTray/index.js").
|
|
2000
|
-
staticClick: {
|
|
2001
|
-
id: string;
|
|
2002
|
-
} & import("../../../MagicTray/index.js").TraySidePayload;
|
|
2044
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
2003
2045
|
progress: {
|
|
2004
2046
|
id: string;
|
|
2005
|
-
} & import("../../../MagicTray/index.js").
|
|
2047
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
2006
2048
|
magnet: {
|
|
2007
2049
|
id: string;
|
|
2008
|
-
} & import("../../../MagicTray/index.js").
|
|
2009
|
-
willSnapTo: import("../../../MagicTray/index.js").
|
|
2050
|
+
} & import("../../../MagicTray/index.js").MagicTraySidePayload;
|
|
2051
|
+
willSnapTo: import("../../../MagicTray/index.js").MagicTrayWillSnapToPayload;
|
|
2010
2052
|
} & Omit<object, keyof import("../../../MagicTray/src/types/index.js").TrayEvents>, 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;
|
|
2011
2053
|
};
|
|
2012
2054
|
};
|