@maas/vue-equipment 0.39.2 → 1.0.0-beta.1

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 (321) hide show
  1. package/README.md +6 -16
  2. package/dist/composables/index.d.ts +2 -13
  3. package/dist/composables/index.js +65 -128
  4. package/dist/composables/index.js.map +1 -1
  5. package/dist/nuxt/module.json +1 -1
  6. package/dist/nuxt/module.mjs +26 -40
  7. package/dist/plugins/.turbo/turbo-build.log +0 -0
  8. package/dist/plugins/.turbo/turbo-lint.log +13 -0
  9. package/dist/plugins/.turbo/turbo-release.log +7 -0
  10. package/dist/plugins/MagicAccordion/demo/data/footer.json +117 -0
  11. package/dist/plugins/MagicAccordion/index.d.ts +2 -0
  12. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +103 -70
  13. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +17 -2
  14. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +36 -30
  15. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +11 -2
  16. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +71 -71
  17. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +12 -7
  18. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +51 -50
  19. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +13 -4
  20. package/dist/plugins/MagicAccordion/src/composables/private/useAccordionCallback.d.ts +6 -6
  21. package/dist/plugins/MagicAccordion/src/composables/private/useAccordionCallback.mjs +6 -6
  22. package/dist/plugins/MagicAccordion/src/composables/private/useAccordionState.mjs +10 -10
  23. package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.mjs +11 -10
  24. package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +1 -1
  25. package/dist/plugins/MagicAccordion/src/types/index.d.ts +4 -0
  26. package/dist/plugins/MagicAccordion/src/utils/defaultOptions.d.ts +2 -2
  27. package/dist/plugins/MagicAccordion/src/utils/defaultOptions.mjs +7 -2
  28. package/dist/plugins/MagicCommand/demo/data/about.json +3 -0
  29. package/dist/plugins/MagicCommand/demo/data/search.json +594 -0
  30. package/dist/plugins/MagicCommand/index.d.ts +2 -0
  31. package/dist/plugins/MagicCommand/index.mjs +9 -11
  32. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +192 -0
  33. package/dist/plugins/MagicCommand/src/components/{MagicCommandBody.vue.d.ts → MagicCommandContent.vue.d.ts} +4 -2
  34. package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +60 -53
  35. package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +12 -3
  36. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +108 -79
  37. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +18 -9
  38. package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue +55 -53
  39. package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +11 -2
  40. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +94 -62
  41. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +52 -7
  42. package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +63 -0
  43. package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +2 -0
  44. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +110 -0
  45. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +75 -0
  46. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +56 -73
  47. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +16 -9
  48. package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.d.ts +14 -0
  49. package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.mjs +32 -0
  50. package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +15 -6
  51. package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.mjs +77 -44
  52. package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +22 -4
  53. package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.mjs +45 -28
  54. package/dist/plugins/MagicCommand/src/composables/private/useCommandState.d.ts +7 -0
  55. package/dist/plugins/MagicCommand/src/composables/private/useCommandState.mjs +49 -0
  56. package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.d.ts +18 -0
  57. package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.mjs +76 -0
  58. package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +21 -5
  59. package/dist/plugins/MagicCommand/src/composables/private/useCommandView.mjs +193 -18
  60. package/dist/plugins/MagicCommand/src/composables/useMagicCommand.d.ts +14 -5
  61. package/dist/plugins/MagicCommand/src/composables/useMagicCommand.mjs +43 -13
  62. package/dist/plugins/MagicCommand/src/symbols/index.d.ts +8 -1
  63. package/dist/plugins/MagicCommand/src/symbols/index.mjs +18 -1
  64. package/dist/plugins/MagicCommand/src/types/index.d.ts +73 -13
  65. package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +3 -5
  66. package/dist/plugins/MagicCommand/src/utils/defaultOptions.mjs +8 -3
  67. package/dist/plugins/MagicCookie/index.d.ts +5 -3
  68. package/dist/plugins/MagicCookie/index.mjs +7 -3
  69. package/dist/plugins/MagicCookie/nuxt.mjs +5 -9
  70. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue +56 -0
  71. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +33 -0
  72. package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue +43 -0
  73. package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +32 -0
  74. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue +96 -0
  75. package/dist/plugins/{MagicCommand/src/components/MagicCommandHead.vue.d.ts → MagicCookie/src/components/MagicCookieView.vue.d.ts} +6 -2
  76. package/dist/plugins/MagicCookie/src/composables/private/useCookieCallback.d.ts +9 -0
  77. package/dist/plugins/MagicCookie/src/composables/private/useCookieCallback.mjs +31 -0
  78. package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.d.ts +16 -0
  79. package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.mjs +87 -0
  80. package/dist/plugins/MagicCookie/src/composables/private/useCookieState.d.ts +7 -0
  81. package/dist/plugins/MagicCookie/src/composables/private/useCookieState.mjs +43 -0
  82. package/dist/plugins/MagicCookie/src/composables/useMagicCookie.d.ts +15 -15
  83. package/dist/plugins/MagicCookie/src/composables/useMagicCookie.mjs +59 -60
  84. package/dist/plugins/MagicCookie/src/symbols/index.d.ts +5 -0
  85. package/dist/plugins/MagicCookie/src/symbols/index.mjs +4 -0
  86. package/dist/plugins/MagicCookie/src/types/index.d.ts +31 -13
  87. package/dist/plugins/MagicCookie/src/utils/defaultOptions.d.ts +4 -0
  88. package/dist/plugins/MagicCookie/src/utils/defaultOptions.mjs +10 -0
  89. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +142 -97
  90. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +12 -6
  91. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +6 -6
  92. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +3 -1
  93. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +3 -4
  94. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +11 -8
  95. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.d.ts +2 -1
  96. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +8 -8
  97. package/dist/plugins/MagicDraggable/src/types/index.d.ts +10 -5
  98. package/dist/plugins/MagicDraggable/src/utils/defaultOptions.d.ts +3 -8
  99. package/dist/plugins/MagicDraggable/src/utils/defaultOptions.mjs +5 -5
  100. package/dist/plugins/MagicDrawer/nuxt.mjs +1 -1
  101. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +491 -336
  102. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +12 -6
  103. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.d.ts +6 -6
  104. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.mjs +6 -6
  105. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +7 -9
  106. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +26 -17
  107. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +2 -3
  108. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +2 -2
  109. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.mjs +4 -2
  110. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +5 -6
  111. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +46 -29
  112. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -1
  113. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.mjs +8 -8
  114. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +2 -2
  115. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +23 -19
  116. package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.mjs +4 -3
  117. package/dist/plugins/MagicDrawer/src/types/index.d.ts +10 -3
  118. package/dist/plugins/MagicDrawer/src/utils/defaultOptions.d.ts +3 -11
  119. package/dist/plugins/MagicDrawer/src/utils/defaultOptions.mjs +2 -4
  120. package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +190 -46
  121. package/dist/plugins/MagicEmitter/src/types/index.d.ts +1 -1
  122. package/dist/plugins/MagicMarquee/index.d.ts +4 -2
  123. package/dist/plugins/MagicMarquee/index.mjs +2 -1
  124. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +121 -50
  125. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +14 -10
  126. package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +3 -7
  127. package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.mjs +52 -44
  128. package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeState.d.ts +7 -0
  129. package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeState.mjs +42 -0
  130. package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.d.ts +11 -0
  131. package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.mjs +45 -0
  132. package/dist/plugins/MagicMarquee/src/types/index.d.ts +9 -0
  133. package/dist/plugins/MagicMarquee/src/types/index.mjs +0 -0
  134. package/dist/plugins/MagicMarquee/src/utils/defaultOptions.d.ts +4 -0
  135. package/dist/plugins/MagicMarquee/src/utils/defaultOptions.mjs +5 -0
  136. package/dist/plugins/MagicMenu/index.d.ts +2 -0
  137. package/dist/plugins/MagicMenu/nuxt.mjs +1 -1
  138. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +79 -69
  139. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +10 -1
  140. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +247 -215
  141. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +12 -1
  142. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +235 -211
  143. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +12 -2
  144. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +126 -124
  145. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +15 -6
  146. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +94 -96
  147. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +49 -4
  148. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +98 -87
  149. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +11 -2
  150. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +111 -112
  151. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +11 -2
  152. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +67 -70
  153. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +13 -2
  154. package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.d.ts +6 -6
  155. package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +8 -8
  156. package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +35 -26
  157. package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +12 -6
  158. package/dist/plugins/MagicMenu/src/composables/private/useMenuItem.d.ts +1 -1
  159. package/dist/plugins/MagicMenu/src/composables/private/useMenuItem.mjs +20 -14
  160. package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +20 -13
  161. package/dist/plugins/MagicMenu/src/composables/private/useMenuState.mjs +10 -10
  162. package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +6 -3
  163. package/dist/plugins/MagicMenu/src/composables/private/useMenuView.d.ts +3 -3
  164. package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +99 -75
  165. package/dist/plugins/MagicMenu/src/symbols/index.d.ts +3 -3
  166. package/dist/plugins/MagicMenu/src/types/index.d.ts +1 -2
  167. package/dist/plugins/MagicModal/src/components/MagicModal.vue +265 -165
  168. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +12 -6
  169. package/dist/plugins/MagicModal/src/composables/private/useModalCallback.d.ts +6 -6
  170. package/dist/plugins/MagicModal/src/composables/private/useModalCallback.mjs +6 -6
  171. package/dist/plugins/MagicModal/src/composables/private/useModalStore.mjs +1 -1
  172. package/dist/plugins/MagicModal/src/types/index.d.ts +2 -2
  173. package/dist/plugins/MagicModal/src/utils/defaultOptions.mjs +2 -2
  174. package/dist/plugins/MagicNoise/index.d.ts +3 -1
  175. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +120 -63
  176. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +11 -4
  177. package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +2 -2
  178. package/dist/plugins/MagicPlayer/index.d.ts +4 -9
  179. package/dist/plugins/MagicPlayer/index.mjs +11 -17
  180. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +78 -0
  181. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +2 -0
  182. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +134 -0
  183. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +33 -0
  184. package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue +45 -41
  185. package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +11 -5
  186. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +116 -114
  187. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +13 -5
  188. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +111 -58
  189. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +1 -4
  190. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue +42 -23
  191. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +1 -4
  192. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +83 -0
  193. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +34 -0
  194. package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +111 -65
  195. package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -4
  196. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +94 -0
  197. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +2 -0
  198. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +222 -0
  199. package/dist/plugins/MagicPlayer/src/components/{MagicPlayerControls.vue.d.ts → MagicPlayerVideoControls.vue.d.ts} +12 -5
  200. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
  201. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
  202. package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
  203. package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
  204. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
  205. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
  206. package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue +23 -1
  207. package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
  208. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +5 -6
  209. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +18 -22
  210. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +13 -13
  211. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +2 -2
  212. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +4 -4
  213. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +6 -8
  214. package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +2 -6
  215. package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.mjs +5 -5
  216. package/dist/plugins/MagicPlayer/src/css/magic-player-audio-controls.css +95 -0
  217. package/dist/plugins/MagicPlayer/src/css/magic-player-display-time.css +10 -0
  218. package/dist/plugins/MagicPlayer/src/css/magic-player-timeline.css +89 -0
  219. package/dist/plugins/MagicPlayer/src/css/magic-player-video-controls.css +115 -0
  220. package/dist/plugins/MagicPlayer/src/symbols/index.d.ts +5 -0
  221. package/dist/plugins/MagicPlayer/src/symbols/index.mjs +3 -0
  222. package/dist/plugins/MagicPlayer/src/types/index.d.ts +11 -1
  223. package/dist/plugins/MagicPlayer/src/utils/defaultOptions.d.ts +3 -0
  224. package/dist/plugins/MagicPlayer/src/utils/defaultOptions.mjs +12 -0
  225. package/dist/plugins/MagicScroll/index.d.ts +4 -10
  226. package/dist/plugins/MagicScroll/index.mjs +2 -11
  227. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +67 -31
  228. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +14 -4
  229. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +78 -64
  230. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +14 -7
  231. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue +39 -39
  232. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +15 -9
  233. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +76 -73
  234. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +13 -7
  235. package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +13 -0
  236. package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +130 -0
  237. package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +3 -3
  238. package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +5 -3
  239. package/dist/plugins/MagicScroll/src/symbols/index.d.ts +2 -2
  240. package/dist/plugins/MagicScroll/src/symbols/index.mjs +2 -2
  241. package/dist/plugins/MagicScroll/src/types/index.d.ts +12 -22
  242. package/dist/plugins/MagicToast/index.d.ts +3 -2
  243. package/dist/plugins/MagicToast/index.mjs +3 -3
  244. package/dist/plugins/MagicToast/nuxt.mjs +2 -2
  245. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +296 -0
  246. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +23 -0
  247. package/dist/plugins/MagicToast/src/components/MagicToastView.vue +155 -0
  248. package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +33 -0
  249. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +7 -30
  250. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +34 -29
  251. package/dist/plugins/MagicToast/src/composables/private/useToastDrag.d.ts +12 -0
  252. package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +312 -0
  253. package/dist/plugins/MagicToast/src/composables/private/useToastListener.d.ts +6 -0
  254. package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +25 -0
  255. package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.d.ts +6 -0
  256. package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +41 -0
  257. package/dist/plugins/MagicToast/src/composables/private/useToastState.d.ts +7 -0
  258. package/dist/plugins/MagicToast/src/composables/private/useToastState.mjs +45 -0
  259. package/dist/plugins/MagicToast/src/composables/private/useToastView.d.ts +12 -0
  260. package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +51 -0
  261. package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +13 -8
  262. package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +26 -23
  263. package/dist/plugins/MagicToast/src/types/index.d.ts +58 -17
  264. package/dist/plugins/MagicToast/src/utils/defaultOptions.d.ts +2 -3
  265. package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +21 -4
  266. package/dist/plugins/MagicToast/symbols/index.d.ts +3 -0
  267. package/dist/plugins/MagicToast/symbols/index.mjs +2 -0
  268. package/dist/plugins/index.d.ts +0 -1
  269. package/dist/plugins/index.mjs +0 -1
  270. package/dist/utils/css/animations/auto-size-out.css +12 -0
  271. package/dist/utils/css/animations/squash-y.css +5 -0
  272. package/dist/utils/css/animations.css +2 -1
  273. package/dist/utils/index.d.ts +1 -2
  274. package/dist/utils/index.js +2 -53
  275. package/dist/utils/index.js.map +1 -1
  276. package/package.json +52 -56
  277. package/dist/composables/index.d.mts +0 -108
  278. package/dist/composables/index.mjs +0 -383
  279. package/dist/composables/index.mjs.map +0 -1
  280. package/dist/plugins/MagicAutoSize/index.d.ts +0 -4
  281. package/dist/plugins/MagicAutoSize/index.mjs +0 -7
  282. package/dist/plugins/MagicAutoSize/nuxt.d.ts +0 -2
  283. package/dist/plugins/MagicAutoSize/nuxt.mjs +0 -14
  284. package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue +0 -152
  285. package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +0 -29
  286. package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue +0 -91
  287. package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue +0 -5
  288. package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +0 -17
  289. package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue +0 -5
  290. package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +0 -17
  291. package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue +0 -5
  292. package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +0 -35
  293. package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.mjs +0 -67
  294. package/dist/plugins/MagicCookie/src/components/MagicCookie.vue +0 -117
  295. package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +0 -27
  296. package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.d.ts +0 -29
  297. package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.mjs +0 -22
  298. package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue +0 -89
  299. package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +0 -28
  300. package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue +0 -95
  301. package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +0 -24
  302. package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue +0 -125
  303. package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +0 -35
  304. package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue +0 -152
  305. package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue +0 -42
  306. package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +0 -36
  307. package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.d.ts +0 -56
  308. package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.mjs +0 -140
  309. package/dist/plugins/MagicToast/src/components/MagicToast.vue +0 -141
  310. package/dist/plugins/MagicToast/src/components/MagicToast.vue.d.ts +0 -14
  311. package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue +0 -64
  312. package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +0 -30
  313. package/dist/plugins/MagicToast/src/composables/private/useToastApi.d.ts +0 -5
  314. package/dist/plugins/MagicToast/src/composables/private/useToastApi.mjs +0 -22
  315. package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.d.ts +0 -4
  316. package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.mjs +0 -28
  317. package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +0 -27
  318. package/dist/plugins/MagicToast/src/composables/private/useToastStore.mjs +0 -41
  319. package/dist/utils/index.d.mts +0 -80
  320. package/dist/utils/index.mjs +0 -200
  321. package/dist/utils/index.mjs.map +0 -1
@@ -1,9 +1,10 @@
1
- import { computed, toValue } from "vue";
2
- import { useMagicEmitter } from "@maas/vue-equipment/plugins";
1
+ import { computed, toValue, toRefs } from "vue";
2
+ import { useMagicEmitter } from "../../../MagicEmitter/index.mjs";
3
3
  import { useDrawerState } from "./private/useDrawerState.mjs";
4
4
  export function useMagicDrawer(id) {
5
5
  const { initializeState } = useDrawerState(toValue(id));
6
- const { progress, active } = initializeState();
6
+ const state = initializeState();
7
+ const { progress, active } = toRefs(state);
7
8
  const isActive = computed(() => active.value);
8
9
  function open() {
9
10
  active.value = true;
@@ -1,10 +1,11 @@
1
- import { type Options } from 'focus-trap';
2
- export type DrawerSnapPoint = number | `${string}px`;
1
+ import { type Options as FocusTrapOptions } from 'focus-trap';
2
+ import type { RequireAll } from '@maas/vue-equipment/utils';
3
+ export type DrawerSnapPoint = number | `${number}px`;
3
4
  export interface MagicDrawerOptions {
4
5
  position?: 'top' | 'right' | 'bottom' | 'left';
5
6
  backdrop?: boolean;
6
7
  tag?: 'dialog' | 'div';
7
- focusTrap?: boolean | Options;
8
+ focusTrap?: boolean | FocusTrapOptions;
8
9
  scrollLock?: boolean | {
9
10
  padding: boolean;
10
11
  };
@@ -41,6 +42,12 @@ export interface MagicDrawerOptions {
41
42
  preventDragClose?: boolean;
42
43
  disabled?: boolean;
43
44
  }
45
+ export type DrawerDefaultOptions = RequireAll<MagicDrawerOptions> & {
46
+ scrollLock: RequireAll<MagicDrawerOptions['scrollLock']>;
47
+ threshold: RequireAll<MagicDrawerOptions['threshold']>;
48
+ animation: RequireAll<MagicDrawerOptions['animation']>;
49
+ keyListener: RequireAll<MagicDrawerOptions['keyListener']>;
50
+ };
44
51
  export interface DrawerState {
45
52
  id: string;
46
53
  active: boolean;
@@ -1,11 +1,3 @@
1
- import type { MagicDrawerOptions } from '../types/index.js';
2
- import type { RequireAll } from '@maas/vue-equipment/utils';
3
- type DefaultOptions = RequireAll<MagicDrawerOptions> & {
4
- scrollLock: RequireAll<MagicDrawerOptions['scrollLock']>;
5
- threshold: RequireAll<MagicDrawerOptions['threshold']>;
6
- animation: RequireAll<MagicDrawerOptions['animation']>;
7
- initial: RequireAll<MagicDrawerOptions['initial']>;
8
- keyListener: RequireAll<MagicDrawerOptions['keyListener']>;
9
- };
10
- declare const defaultOptions: DefaultOptions;
11
- export { defaultOptions, type DefaultOptions };
1
+ import type { DrawerDefaultOptions } from '../types/index.js';
2
+ declare const defaultOptions: DrawerDefaultOptions;
3
+ export { defaultOptions };
@@ -28,15 +28,13 @@ const defaultOptions = {
28
28
  }
29
29
  },
30
30
  initial: {
31
- open: false,
32
- transition: false,
33
- snapPoint: 1
31
+ open: false
34
32
  },
35
33
  keyListener: {
36
34
  close: ["Escape"]
37
35
  },
38
36
  enableMousewheel: false,
39
- preventZoom: false,
37
+ preventZoom: true,
40
38
  preventDragClose: false,
41
39
  disabled: false
42
40
  };
@@ -1,6 +1,6 @@
1
1
  export declare function useMagicEmitter(): {
2
2
  on: {
3
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, handler: import("mitt").Handler<({
3
+ <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, handler: import("mitt").Handler<({
4
4
  beforeEnter: string | {
5
5
  id: string;
6
6
  viewId: string;
@@ -44,9 +44,33 @@ export declare function useMagicEmitter(): {
44
44
  viewId: string;
45
45
  };
46
46
  } & Omit<{
47
- accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
48
- reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
49
- acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
47
+ beforeEnter: string | {
48
+ id: string;
49
+ viewId: string;
50
+ };
51
+ enter: string | {
52
+ id: string;
53
+ viewId: string;
54
+ };
55
+ afterEnter: string | {
56
+ id: string;
57
+ viewId: string;
58
+ };
59
+ beforeLeave: string | {
60
+ id: string;
61
+ viewId: string;
62
+ };
63
+ leave: string | {
64
+ id: string;
65
+ viewId: string;
66
+ };
67
+ afterLeave: string | {
68
+ id: string;
69
+ viewId: string;
70
+ };
71
+ acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
72
+ rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
73
+ acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
50
74
  } & Omit<{
51
75
  beforeSnap: {
52
76
  id: string;
@@ -213,10 +237,10 @@ export declare function useMagicEmitter(): {
213
237
  };
214
238
  } & Omit<{
215
239
  collision: {
240
+ id: string;
216
241
  direction: import("../../../MagicScroll/src/types").ScrollDirection;
217
- position: import("../../../MagicScroll/src/types").Position;
218
- element: HTMLElement;
219
- data?: Record<string, unknown>;
242
+ childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
243
+ parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
220
244
  };
221
245
  } & Omit<{
222
246
  beforeEnter: string;
@@ -225,7 +249,7 @@ export declare function useMagicEmitter(): {
225
249
  beforeLeave: string;
226
250
  leave: string;
227
251
  afterLeave: string;
228
- } & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]>): void;
252
+ } & Omit<object, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]>): void;
229
253
  (type: "*", handler: import("mitt").WildcardHandler<{
230
254
  beforeEnter: string | {
231
255
  id: string;
@@ -270,9 +294,33 @@ export declare function useMagicEmitter(): {
270
294
  viewId: string;
271
295
  };
272
296
  } & Omit<{
273
- accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
274
- reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
275
- acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
297
+ beforeEnter: string | {
298
+ id: string;
299
+ viewId: string;
300
+ };
301
+ enter: string | {
302
+ id: string;
303
+ viewId: string;
304
+ };
305
+ afterEnter: string | {
306
+ id: string;
307
+ viewId: string;
308
+ };
309
+ beforeLeave: string | {
310
+ id: string;
311
+ viewId: string;
312
+ };
313
+ leave: string | {
314
+ id: string;
315
+ viewId: string;
316
+ };
317
+ afterLeave: string | {
318
+ id: string;
319
+ viewId: string;
320
+ };
321
+ acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
322
+ rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
323
+ acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
276
324
  } & Omit<{
277
325
  beforeSnap: {
278
326
  id: string;
@@ -439,10 +487,10 @@ export declare function useMagicEmitter(): {
439
487
  };
440
488
  } & Omit<{
441
489
  collision: {
490
+ id: string;
442
491
  direction: import("../../../MagicScroll/src/types").ScrollDirection;
443
- position: import("../../../MagicScroll/src/types").Position;
444
- element: HTMLElement;
445
- data?: Record<string, unknown>;
492
+ childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
493
+ parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
446
494
  };
447
495
  } & Omit<{
448
496
  beforeEnter: string;
@@ -451,10 +499,10 @@ export declare function useMagicEmitter(): {
451
499
  beforeLeave: string;
452
500
  leave: string;
453
501
  afterLeave: string;
454
- } & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>>): void;
502
+ } & Omit<object, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>>): void;
455
503
  };
456
504
  off: {
457
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, handler?: import("mitt").Handler<({
505
+ <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, handler?: import("mitt").Handler<({
458
506
  beforeEnter: string | {
459
507
  id: string;
460
508
  viewId: string;
@@ -498,9 +546,33 @@ export declare function useMagicEmitter(): {
498
546
  viewId: string;
499
547
  };
500
548
  } & Omit<{
501
- accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
502
- reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
503
- acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
549
+ beforeEnter: string | {
550
+ id: string;
551
+ viewId: string;
552
+ };
553
+ enter: string | {
554
+ id: string;
555
+ viewId: string;
556
+ };
557
+ afterEnter: string | {
558
+ id: string;
559
+ viewId: string;
560
+ };
561
+ beforeLeave: string | {
562
+ id: string;
563
+ viewId: string;
564
+ };
565
+ leave: string | {
566
+ id: string;
567
+ viewId: string;
568
+ };
569
+ afterLeave: string | {
570
+ id: string;
571
+ viewId: string;
572
+ };
573
+ acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
574
+ rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
575
+ acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
504
576
  } & Omit<{
505
577
  beforeSnap: {
506
578
  id: string;
@@ -667,10 +739,10 @@ export declare function useMagicEmitter(): {
667
739
  };
668
740
  } & Omit<{
669
741
  collision: {
742
+ id: string;
670
743
  direction: import("../../../MagicScroll/src/types").ScrollDirection;
671
- position: import("../../../MagicScroll/src/types").Position;
672
- element: HTMLElement;
673
- data?: Record<string, unknown>;
744
+ childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
745
+ parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
674
746
  };
675
747
  } & Omit<{
676
748
  beforeEnter: string;
@@ -679,7 +751,7 @@ export declare function useMagicEmitter(): {
679
751
  beforeLeave: string;
680
752
  leave: string;
681
753
  afterLeave: string;
682
- } & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]> | undefined): void;
754
+ } & Omit<object, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]> | undefined): void;
683
755
  (type: "*", handler: import("mitt").WildcardHandler<{
684
756
  beforeEnter: string | {
685
757
  id: string;
@@ -724,9 +796,33 @@ export declare function useMagicEmitter(): {
724
796
  viewId: string;
725
797
  };
726
798
  } & Omit<{
727
- accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
728
- reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
729
- acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
799
+ beforeEnter: string | {
800
+ id: string;
801
+ viewId: string;
802
+ };
803
+ enter: string | {
804
+ id: string;
805
+ viewId: string;
806
+ };
807
+ afterEnter: string | {
808
+ id: string;
809
+ viewId: string;
810
+ };
811
+ beforeLeave: string | {
812
+ id: string;
813
+ viewId: string;
814
+ };
815
+ leave: string | {
816
+ id: string;
817
+ viewId: string;
818
+ };
819
+ afterLeave: string | {
820
+ id: string;
821
+ viewId: string;
822
+ };
823
+ acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
824
+ rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
825
+ acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
730
826
  } & Omit<{
731
827
  beforeSnap: {
732
828
  id: string;
@@ -893,10 +989,10 @@ export declare function useMagicEmitter(): {
893
989
  };
894
990
  } & Omit<{
895
991
  collision: {
992
+ id: string;
896
993
  direction: import("../../../MagicScroll/src/types").ScrollDirection;
897
- position: import("../../../MagicScroll/src/types").Position;
898
- element: HTMLElement;
899
- data?: Record<string, unknown>;
994
+ childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
995
+ parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
900
996
  };
901
997
  } & Omit<{
902
998
  beforeEnter: string;
@@ -905,10 +1001,10 @@ export declare function useMagicEmitter(): {
905
1001
  beforeLeave: string;
906
1002
  leave: string;
907
1003
  afterLeave: string;
908
- } & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>>): void;
1004
+ } & Omit<object, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>>): void;
909
1005
  };
910
1006
  emit: {
911
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, event: ({
1007
+ <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, event: ({
912
1008
  beforeEnter: string | {
913
1009
  id: string;
914
1010
  viewId: string;
@@ -952,9 +1048,33 @@ export declare function useMagicEmitter(): {
952
1048
  viewId: string;
953
1049
  };
954
1050
  } & Omit<{
955
- accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
956
- reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
957
- acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
1051
+ beforeEnter: string | {
1052
+ id: string;
1053
+ viewId: string;
1054
+ };
1055
+ enter: string | {
1056
+ id: string;
1057
+ viewId: string;
1058
+ };
1059
+ afterEnter: string | {
1060
+ id: string;
1061
+ viewId: string;
1062
+ };
1063
+ beforeLeave: string | {
1064
+ id: string;
1065
+ viewId: string;
1066
+ };
1067
+ leave: string | {
1068
+ id: string;
1069
+ viewId: string;
1070
+ };
1071
+ afterLeave: string | {
1072
+ id: string;
1073
+ viewId: string;
1074
+ };
1075
+ acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
1076
+ rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
1077
+ acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
958
1078
  } & Omit<{
959
1079
  beforeSnap: {
960
1080
  id: string;
@@ -1121,10 +1241,10 @@ export declare function useMagicEmitter(): {
1121
1241
  };
1122
1242
  } & Omit<{
1123
1243
  collision: {
1244
+ id: string;
1124
1245
  direction: import("../../../MagicScroll/src/types").ScrollDirection;
1125
- position: import("../../../MagicScroll/src/types").Position;
1126
- element: HTMLElement;
1127
- data?: Record<string, unknown>;
1246
+ childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
1247
+ parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
1128
1248
  };
1129
1249
  } & Omit<{
1130
1250
  beforeEnter: string;
@@ -1133,8 +1253,8 @@ export declare function useMagicEmitter(): {
1133
1253
  beforeLeave: string;
1134
1254
  leave: string;
1135
1255
  afterLeave: string;
1136
- } & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]): void;
1137
- <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: undefined extends ({
1256
+ } & Omit<object, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]): void;
1257
+ <Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: undefined extends ({
1138
1258
  beforeEnter: string | {
1139
1259
  id: string;
1140
1260
  viewId: string;
@@ -1178,9 +1298,33 @@ export declare function useMagicEmitter(): {
1178
1298
  viewId: string;
1179
1299
  };
1180
1300
  } & Omit<{
1181
- accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
1182
- reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
1183
- acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
1301
+ beforeEnter: string | {
1302
+ id: string;
1303
+ viewId: string;
1304
+ };
1305
+ enter: string | {
1306
+ id: string;
1307
+ viewId: string;
1308
+ };
1309
+ afterEnter: string | {
1310
+ id: string;
1311
+ viewId: string;
1312
+ };
1313
+ beforeLeave: string | {
1314
+ id: string;
1315
+ viewId: string;
1316
+ };
1317
+ leave: string | {
1318
+ id: string;
1319
+ viewId: string;
1320
+ };
1321
+ afterLeave: string | {
1322
+ id: string;
1323
+ viewId: string;
1324
+ };
1325
+ acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
1326
+ rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
1327
+ acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
1184
1328
  } & Omit<{
1185
1329
  beforeSnap: {
1186
1330
  id: string;
@@ -1347,10 +1491,10 @@ export declare function useMagicEmitter(): {
1347
1491
  };
1348
1492
  } & Omit<{
1349
1493
  collision: {
1494
+ id: string;
1350
1495
  direction: import("../../../MagicScroll/src/types").ScrollDirection;
1351
- position: import("../../../MagicScroll/src/types").Position;
1352
- element: HTMLElement;
1353
- data?: Record<string, unknown>;
1496
+ childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
1497
+ parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
1354
1498
  };
1355
1499
  } & Omit<{
1356
1500
  beforeEnter: string;
@@ -1359,6 +1503,6 @@ export declare function useMagicEmitter(): {
1359
1503
  beforeLeave: string;
1360
1504
  leave: string;
1361
1505
  afterLeave: string;
1362
- } & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key] ? Key : never): void;
1506
+ } & Omit<object, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key] ? Key : never): void;
1363
1507
  };
1364
1508
  };
@@ -9,7 +9,7 @@ import type { ToastEvents } from '../../../MagicToast/src/types/index.js';
9
9
  type MergeTypes<T, U> = {
10
10
  [K in keyof T]: K extends keyof U ? T[K] | U[K] : T[K];
11
11
  } & Omit<U, keyof T>;
12
- type Merge<T extends unknown[]> = T extends [infer First, ...infer Rest] ? MergeTypes<First, Merge<Rest>> : {};
12
+ type Merge<T extends unknown[]> = T extends [infer First, ...infer Rest] ? MergeTypes<First, Merge<Rest>> : object;
13
13
  export type MagicEmitterEvents = Merge<[
14
14
  AccordionEvents,
15
15
  CookieEvents,
@@ -1,4 +1,6 @@
1
1
  import type { Plugin } from 'vue';
2
- import MagicMarquee from './src/components/MagicMarquee.vue.js';
2
+ import { useMagicMarquee } from './src/composables/useMagicMarquee.js';
3
+ import type { MagicMarqueeOptions } from './src/types/index.js';
3
4
  declare const MagicMarqueePlugin: Plugin;
4
- export { MagicMarqueePlugin, MagicMarquee };
5
+ export { MagicMarqueePlugin, useMagicMarquee };
6
+ export type { MagicMarqueeOptions };
@@ -1,7 +1,8 @@
1
1
  import MagicMarquee from "./src/components/MagicMarquee.vue";
2
+ import { useMagicMarquee } from "./src/composables/useMagicMarquee.mjs";
2
3
  const MagicMarqueePlugin = {
3
4
  install: (app) => {
4
5
  app.component("MagicMarquee", MagicMarquee);
5
6
  }
6
7
  };
7
- export { MagicMarqueePlugin, MagicMarquee };
8
+ export { MagicMarqueePlugin, useMagicMarquee };