@maas/vue-equipment 1.0.0-beta.3 → 1.0.0-beta.4

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 (42) hide show
  1. package/dist/composables/index.js +9 -5
  2. package/dist/composables/index.js.map +1 -1
  3. package/dist/nuxt/module.json +1 -1
  4. package/dist/nuxt/module.mjs +1 -1
  5. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +2 -2
  6. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +37 -2
  7. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +1 -1
  8. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +1 -1
  9. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +8 -4
  10. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +36 -1
  11. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +38 -3
  12. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +2 -2
  13. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +2 -2
  14. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +2 -2
  15. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +3 -3
  16. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +3 -3
  17. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +3 -3
  18. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +2 -2
  19. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +1 -1
  20. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +3 -3
  21. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +8 -4
  22. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +36 -1
  23. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +2 -2
  24. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +38 -3
  25. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +2 -2
  26. package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.d.ts +2 -2
  27. package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.mjs +2 -2
  28. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +1 -1
  29. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +3 -3
  30. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +1 -1
  31. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +1 -1
  32. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +2 -2
  33. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +4 -4
  34. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +2 -2
  35. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +2 -2
  36. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +19 -2
  37. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +3 -3
  38. package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +2 -2
  39. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +3 -3
  40. package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -0
  41. package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +10 -2
  42. package/package.json +6 -6
@@ -10,14 +10,14 @@ function useCountdown(options, callback) {
10
10
  options = { ...defaultOptions, ...options };
11
11
  if (unref(options.endDateTime).length < 3) {
12
12
  console.error(
13
- 'useCountdownClock: The "endDateTime" option needs to be an array with the format [YYYY, MM, DD, HH?, MM?, SS?]'
13
+ "useCountdownClock: \u201CendDateTime\u201D needs to be an array [YYYY, MM, DD, HH?, MM?, SS?]"
14
14
  );
15
15
  }
16
16
  const timezone = unref(options.timezone);
17
17
  if (timezone) {
18
18
  if (!DateTime.now().setZone(timezone).isValid) {
19
19
  console.error(
20
- `useCountdownClock: The "timezone" option "${timezone}" is not a valid timezone. Do you mean ${DateTime.local().zoneName}? For more information see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones`
20
+ `useCountdownClock: \u201C${timezone}\u201D is not a valid timezone. Did you mean ${DateTime.local().zoneName}? For more information see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones`
21
21
  );
22
22
  }
23
23
  }
@@ -62,7 +62,9 @@ function useCountdown(options, callback) {
62
62
  if (end <= now) {
63
63
  timer.stop();
64
64
  reset();
65
- if (callback) callback();
65
+ if (callback) {
66
+ callback();
67
+ }
66
68
  return;
67
69
  }
68
70
  const diff = end.diff(now, [
@@ -85,7 +87,6 @@ function useCountdown(options, callback) {
85
87
  function onTick(callback2) {
86
88
  timer.on("tick", callback2);
87
89
  }
88
- timer.on("tick", tick);
89
90
  function reset() {
90
91
  years.value = 0;
91
92
  days.value = 0;
@@ -97,12 +98,15 @@ function useCountdown(options, callback) {
97
98
  timer.reset();
98
99
  timer.start();
99
100
  }
101
+ timer.on("tick", tick);
100
102
  onMounted(() => {
101
103
  tick();
102
104
  timer.start();
103
105
  });
104
106
  watch(endDateTime, () => {
105
- if (timer.state === "running") return;
107
+ if (timer.state === "running") {
108
+ return;
109
+ }
106
110
  restart();
107
111
  });
108
112
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../packages/composables/useCountdown/index.ts","../../packages/composables/useEasings/index.ts","../../packages/composables/useMetaViewport/index.ts","../../packages/composables/useScrollTo/index.ts"],"sourcesContent":["import { computed, onMounted, ref, unref, watch, type MaybeRef } from 'vue'\nimport { MagicTimer } from '@maas/magic-timer'\nimport { DateTime } from 'luxon'\n\n// Type for [YYYY, MM, DD, HH, MM, SS]\nexport type DateTimeArray = [number, number, number, number?, number?, number?]\n\n// Interface for the options\nexport interface CountdownOptions {\n endDateTime: MaybeRef<DateTimeArray>\n timezone?: MaybeRef<string>\n zeroIndexedMonths?: boolean\n}\n\n// Define the default options\nconst defaultOptions: CountdownOptions = {\n endDateTime: [1970, 1, 1, 0, 0, 0],\n zeroIndexedMonths: false,\n}\n\nexport function useCountdown(options: CountdownOptions, callback?: () => void) {\n // Merge the options with the default options\n options = { ...defaultOptions, ...options } as CountdownOptions\n\n // Check if the endDateTime is valid\n if (unref(options.endDateTime).length < 3) {\n console.error(\n 'useCountdownClock: The \"endDateTime\" option needs to be an array with the format [YYYY, MM, DD, HH?, MM?, SS?]'\n )\n }\n\n // Check if the timezone is valid\n const timezone = unref(options.timezone)\n if (timezone) {\n if (!DateTime.now().setZone(timezone).isValid) {\n console.error(\n `useCountdownClock: The \"timezone\" option \"${timezone}\" is not a valid timezone. Do you mean ${\n DateTime.local().zoneName\n }? For more information see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones`\n )\n }\n }\n\n // Create a new timer instance\n const timer = new MagicTimer()\n\n // Create the countdown values\n const years = ref(0)\n const days = ref(0)\n const hours = ref(0)\n const minutes = ref(0)\n const seconds = ref(0)\n\n // Parse the end dateTime array into an date and time object\n // if the hour, minute and second are not set, set them to 0\n // if the month is not zero indexed, add 1 to the month (defined in the options)\n const parseDateTimeArray = (dateTimeArr: DateTimeArray) => {\n const [year, month, day, hour, minute, second] = dateTimeArr\n return {\n year,\n month: options.zeroIndexedMonths ? month + 1 : month,\n day,\n hour: hour ?? 0,\n minute: minute ?? 0,\n second: second ?? 0,\n }\n }\n\n // Get the computed endDateTime value from the options\n const endDateTime = computed(() => {\n const { year, month, day, hour, minute, second } = parseDateTimeArray(\n unref(options.endDateTime)\n )\n\n return DateTime.fromObject(\n {\n year,\n month,\n day,\n hour,\n minute,\n second,\n },\n {\n zone: unref(options.timezone),\n }\n )\n })\n\n // Update the countdown values on each tick\n // if the timer reached the endDateTime stop the timer, reset the values and call the callback\n function tick() {\n const now = DateTime.now().setZone(unref(options.timezone))\n const end = endDateTime.value\n\n if (end <= now) {\n timer.stop()\n reset()\n if (callback) callback()\n return\n }\n\n const diff = end\n .diff(now, [\n 'years',\n 'days',\n 'hours',\n 'minutes',\n 'seconds',\n 'milliseconds',\n ])\n .toObject()\n\n years.value = diff.years ?? 0\n days.value = diff.days ?? 0\n hours.value = diff.hours ?? 0\n minutes.value = diff.minutes ?? 0\n seconds.value = diff.seconds ?? 0\n }\n\n // Function to pad the values with a leading zero\n function pad(value: number): string {\n return ('0' + value).slice(-2)\n }\n\n // Listen to the tick event\n function onTick(callback: () => void) {\n timer.on('tick', callback)\n }\n\n // Listen to the tick event\n timer.on('tick', tick)\n\n // Reset the countdown values\n function reset() {\n years.value = 0\n days.value = 0\n hours.value = 0\n minutes.value = 0\n seconds.value = 0\n }\n\n // Restart the timer\n function restart() {\n timer.reset()\n timer.start()\n }\n\n // Start the timer on mount\n onMounted(() => {\n tick()\n timer.start()\n })\n\n // Watch for changes in the endDateTime\n // and restart the timer\n watch(endDateTime, () => {\n // check timer is running to prevent restart on initial load\n if (timer.state === 'running') return\n restart()\n })\n\n // Return the values and functions\n return {\n years,\n days,\n hours,\n minutes,\n seconds,\n endDateTime,\n pad,\n restart,\n onTick,\n }\n}\n","import {\n linear,\n easeInQuad,\n easeOutQuad,\n easeInOutQuad,\n easeOutBack,\n easeInCubic,\n easeOutCubic,\n easeInOutCubic,\n easeInQuart,\n easeOutQuart,\n easeInOutQuart,\n easeInQuint,\n easeOutQuint,\n easeInOutQuint,\n} from '@maas/vue-equipment/utils'\n\nexport type EasingKey =\n | 'linear'\n | 'easeInQuad'\n | 'easeOutQuad'\n | 'easeInOutQuad'\n | 'easeOutBack'\n | 'easeInCubic'\n | 'easeOutCubic'\n | 'easeInOutCubic'\n | 'easeInQuart'\n | 'easeOutQuart'\n | 'easeInOutQuart'\n | 'easeInQuint'\n | 'easeOutQuint'\n | 'easeInOutQuint'\n\nexport function useEasings() {\n const easings = {\n linear,\n easeInQuad,\n easeOutQuad,\n easeInOutQuad,\n easeOutBack,\n easeInCubic,\n easeOutCubic,\n easeInOutCubic,\n easeInQuart,\n easeOutQuart,\n easeInOutQuart,\n easeInQuint,\n easeOutQuint,\n easeInOutQuint,\n }\n\n return easings\n}\n","import { ref } from 'vue'\n\nexport type UseMetaViewportArgs = {\n content: string\n}\n\nexport function useMetaViewport(args?: UseMetaViewportArgs) {\n const content =\n args?.content ||\n 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'\n\n const metaViewport = ref<string | undefined>(undefined)\n\n function setMetaViewport() {\n const metaElement = document.querySelector(\n 'meta[name=\"viewport\"]'\n ) as HTMLMetaElement\n\n metaViewport.value = metaElement.content\n metaElement.setAttribute('content', content)\n }\n\n function resetMetaViewport() {\n const metaElement = document.querySelector(\n 'meta[name=\"viewport\"]'\n ) as HTMLMetaElement\n\n if (metaViewport.value) {\n metaElement.setAttribute('content', metaViewport.value)\n }\n }\n\n return {\n setMetaViewport,\n resetMetaViewport,\n }\n}\n","import {\n unrefElement,\n type MaybeComputedElementRef,\n type MaybeElement,\n} from '@vueuse/core'\nimport { easeOutQuad } from '@maas/vue-equipment/utils'\n\nexport type ScrollToTarget =\n | string\n | Element\n | MaybeElement\n | MaybeComputedElementRef\n\nexport type ScrollToParent = ScrollToTarget | Window\n\nexport type ScrollToParams = {\n parent?: Element | Window\n left: number\n top: number\n duration?: { x?: number; y?: number }\n easing?: (t: number) => number\n callback?: () => void\n}\n\nexport type getScrollDurationParams = {\n parent: Element | Window\n left: number\n top: number\n speed: number\n}\n\nexport type scrollToTargetParams = {\n target: ScrollToTarget\n parent?: ScrollToParent\n offset?: {\n x?: number\n y?: number\n }\n speed?: number\n easing?: (t: number) => number\n}\n\n// Private functions\nfunction min(a: number, b: number) {\n return a < b ? a : b\n}\n\nfunction unwrapParent(parent: ScrollToParent) {\n if (parent === window) {\n return parent\n } else if (typeof parent === 'string') {\n return document.querySelector(parent) || document.documentElement\n } else {\n return (\n unrefElement(parent as MaybeComputedElementRef<MaybeElement>) ||\n document.documentElement\n )\n }\n}\n\nfunction unwrapTarget(target: ScrollToTarget, parentEl: Element | Window) {\n if (typeof target === 'string') {\n const queryTarget = parentEl === window ? document : (parentEl as Element)\n return queryTarget.querySelector(target)\n } else {\n return unrefElement(target as MaybeComputedElementRef<MaybeElement>)\n }\n}\n\nfunction isHtmlElement(\n parentEl: Window | SVGElement | Element\n): parentEl is HTMLElement {\n return parentEl instanceof HTMLElement\n}\n\nfunction disableScrollSnap(parentEl: Window | SVGElement | Element) {\n if (isHtmlElement(parentEl)) {\n parentEl.style.scrollSnapType = 'none'\n }\n}\n\nfunction reenableScrollSnap(parentEl: Window | SVGElement | Element) {\n if (isHtmlElement(parentEl)) {\n parentEl.style.scrollSnapType = ''\n }\n}\n\n// Public composable\nexport function useScrollTo() {\n function getScrollPosition(element: Element | Window): {\n x: number\n y: number\n } {\n if (element === window) {\n return { x: window.scrollX, y: window.scrollY }\n } else if (element instanceof Element) {\n return { x: element.scrollLeft, y: element.scrollTop }\n } else {\n return { x: 0, y: 0 }\n }\n }\n\n function getDistance(\n target: Element,\n parent?: Element | Window\n ): { top: number; left: number } {\n const rect = target.getBoundingClientRect()\n const scrollEl =\n parent || document.scrollingElement || document.documentElement\n\n const scrollTop = scrollEl instanceof Window ? 0 : scrollEl.scrollTop\n const scrollLeft = scrollEl instanceof Window ? 0 : scrollEl.scrollLeft\n\n return {\n top: rect.top + scrollTop,\n left: rect.left + scrollLeft,\n }\n }\n\n function getScrollDuration({\n parent = document.documentElement || document.body,\n left = 0,\n top = 0,\n speed = 500,\n }: getScrollDurationParams) {\n const currentPos = getScrollPosition(parent)\n const distanceX = currentPos.x - left\n const distanceY = currentPos.y - top\n const durationX = Math.abs((distanceX / speed) * 100)\n const durationY = Math.abs((distanceY / speed) * 100)\n\n return { x: durationX, y: durationY }\n }\n\n function scrollTo({\n parent = document.documentElement || document.body,\n top,\n left,\n duration = {},\n easing = easeOutQuad,\n callback,\n }: ScrollToParams) {\n const startTime = Date.now()\n const { x: fromX, y: fromY } = getScrollPosition(parent)\n\n if (fromX === top && fromY === left) {\n if (callback) callback()\n return\n }\n\n const mappedDuration = { x: 500, y: 500, ...duration }\n\n const scroll = () => {\n const currentTime = Date.now()\n\n const timeX = min(1, (currentTime - startTime) / mappedDuration.x)\n const timeY = min(1, (currentTime - startTime) / mappedDuration.y)\n const easedTimeX = easing(timeX)\n const easedTimeY = easing(timeY)\n\n // We use the min of the two times to make sure we scroll at the same speed\n const minTime = Math.min(easedTimeX, easedTimeY)\n\n parent.scroll({\n left: minTime * (left - fromX) + fromX,\n top: minTime * (top - fromY) + fromY,\n })\n\n if (easedTimeX < 1 || easedTimeY < 1) {\n requestAnimationFrame(scroll)\n } else if (callback) {\n callback()\n }\n }\n\n requestAnimationFrame(scroll)\n }\n\n function scrollToTarget({\n target,\n parent = document.documentElement || document.body,\n offset = {},\n speed = 500,\n easing = easeOutQuad,\n }: scrollToTargetParams) {\n const parentEl = unwrapParent(parent)\n if (!parentEl) return\n const targetEl = unwrapTarget(target, parentEl)\n if (!targetEl) return\n\n disableScrollSnap(parentEl)\n\n const mappedOffset = { x: 0, y: 0, ...offset }\n const distance = getDistance(targetEl, parentEl)\n const leftDistance = distance.left - mappedOffset.x\n const topDistance = distance.top - mappedOffset.y\n\n const scrollDuration = getScrollDuration({\n parent: parentEl,\n left: leftDistance,\n top: topDistance,\n speed: speed,\n })\n\n scrollTo({\n parent: parentEl,\n left: leftDistance,\n top: topDistance,\n duration: scrollDuration,\n easing: easing,\n callback: () => reenableScrollSnap(parentEl),\n })\n }\n\n return {\n getScrollPosition,\n getDistance,\n getScrollDuration,\n scrollTo,\n scrollToTarget,\n }\n}\n"],"mappings":";AAAA,SAAS,UAAU,WAAW,KAAK,OAAO,aAA4B;AACtE,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AAazB,IAAM,iBAAmC;AAAA,EACvC,aAAa,CAAC,MAAM,GAA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AAI,CAAC,SAAU;AAEf,sBAAkB,QAAQ;AAE1B,UAAM,eAAe,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,OAAO;AAC7C,UAAM,WAAW,YAAY,UAAU,QAAQ;AAC/C,UAAM,eAAe,SAAS,OAAO,aAAa;AAClD,UAAM,cAAc,SAAS,MAAM,aAAa;AAEhD,UAAM,iBAAiB,kBAAkB;AAAA,MACvC,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,KAAK;AAAA,MACL;AAAA,IACF,CAAC;AAED,aAAS;AAAA,MACP,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,KAAK;AAAA,MACL,UAAU;AAAA,MACV;AAAA,MACA,UAAU,MAAM,mBAAmB,QAAQ;AAAA,IAC7C,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":["callback","ref","easeOutQuad"]}
1
+ {"version":3,"sources":["../../packages/composables/useCountdown/index.ts","../../packages/composables/useEasings/index.ts","../../packages/composables/useMetaViewport/index.ts","../../packages/composables/useScrollTo/index.ts"],"sourcesContent":["import { computed, onMounted, ref, unref, watch, type MaybeRef } from 'vue'\nimport { MagicTimer } from '@maas/magic-timer'\nimport { DateTime } from 'luxon'\n\nexport type DateTimeArray = [number, number, number, number?, number?, number?]\n\nexport interface CountdownOptions {\n endDateTime: MaybeRef<DateTimeArray>\n timezone?: MaybeRef<string>\n zeroIndexedMonths?: boolean\n}\n\nconst defaultOptions: CountdownOptions = {\n endDateTime: [1970, 1, 1, 0, 0, 0],\n zeroIndexedMonths: false,\n}\n\nexport function useCountdown(options: CountdownOptions, callback?: () => void) {\n options = { ...defaultOptions, ...options }\n\n if (unref(options.endDateTime).length < 3) {\n console.error(\n 'useCountdownClock: “endDateTime” needs to be an array [YYYY, MM, DD, HH?, MM?, SS?]'\n )\n }\n\n const timezone = unref(options.timezone)\n if (timezone) {\n if (!DateTime.now().setZone(timezone).isValid) {\n console.error(\n `useCountdownClock: “${timezone}” is not a valid timezone. Did you mean ${\n DateTime.local().zoneName\n }? For more information see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones`\n )\n }\n }\n\n const timer = new MagicTimer()\n\n const years = ref(0)\n const days = ref(0)\n const hours = ref(0)\n const minutes = ref(0)\n const seconds = ref(0)\n\n // Parse the end dateTime array into an date and time object\n // If hour, minute or second are not set, set them to 0\n // Optionally add +1 if month is not zero indexed\n const parseDateTimeArray = (dateTimeArr: DateTimeArray) => {\n const [year, month, day, hour, minute, second] = dateTimeArr\n return {\n year,\n month: options.zeroIndexedMonths ? month + 1 : month,\n day,\n hour: hour ?? 0,\n minute: minute ?? 0,\n second: second ?? 0,\n }\n }\n\n const endDateTime = computed(() => {\n const { year, month, day, hour, minute, second } = parseDateTimeArray(\n unref(options.endDateTime)\n )\n\n return DateTime.fromObject(\n {\n year,\n month,\n day,\n hour,\n minute,\n second,\n },\n {\n zone: unref(options.timezone),\n }\n )\n })\n\n // Update the countdown values on each tick\n // If endDateTime is reached, stop the timer, reset the values and run the callback\n function tick() {\n const now = DateTime.now().setZone(unref(options.timezone))\n const end = endDateTime.value\n\n if (end <= now) {\n timer.stop()\n reset()\n\n if (callback) {\n callback()\n }\n\n return\n }\n\n const diff = end\n .diff(now, [\n 'years',\n 'days',\n 'hours',\n 'minutes',\n 'seconds',\n 'milliseconds',\n ])\n .toObject()\n\n years.value = diff.years ?? 0\n days.value = diff.days ?? 0\n hours.value = diff.hours ?? 0\n minutes.value = diff.minutes ?? 0\n seconds.value = diff.seconds ?? 0\n }\n\n function pad(value: number): string {\n return ('0' + value).slice(-2)\n }\n\n function onTick(callback: () => void) {\n timer.on('tick', callback)\n }\n\n function reset() {\n years.value = 0\n days.value = 0\n hours.value = 0\n minutes.value = 0\n seconds.value = 0\n }\n\n function restart() {\n timer.reset()\n timer.start()\n }\n\n timer.on('tick', tick)\n\n onMounted(() => {\n tick()\n timer.start()\n })\n\n // Watch for changes in the endDateTime\n // and restart the timer\n watch(endDateTime, () => {\n if (timer.state === 'running') {\n return\n }\n\n restart()\n })\n\n return {\n years,\n days,\n hours,\n minutes,\n seconds,\n endDateTime,\n pad,\n restart,\n onTick,\n }\n}\n","import {\n linear,\n easeInQuad,\n easeOutQuad,\n easeInOutQuad,\n easeOutBack,\n easeInCubic,\n easeOutCubic,\n easeInOutCubic,\n easeInQuart,\n easeOutQuart,\n easeInOutQuart,\n easeInQuint,\n easeOutQuint,\n easeInOutQuint,\n} from '@maas/vue-equipment/utils'\n\nexport type EasingKey =\n | 'linear'\n | 'easeInQuad'\n | 'easeOutQuad'\n | 'easeInOutQuad'\n | 'easeOutBack'\n | 'easeInCubic'\n | 'easeOutCubic'\n | 'easeInOutCubic'\n | 'easeInQuart'\n | 'easeOutQuart'\n | 'easeInOutQuart'\n | 'easeInQuint'\n | 'easeOutQuint'\n | 'easeInOutQuint'\n\nexport function useEasings() {\n const easings = {\n linear,\n easeInQuad,\n easeOutQuad,\n easeInOutQuad,\n easeOutBack,\n easeInCubic,\n easeOutCubic,\n easeInOutCubic,\n easeInQuart,\n easeOutQuart,\n easeInOutQuart,\n easeInQuint,\n easeOutQuint,\n easeInOutQuint,\n }\n\n return easings\n}\n","import { ref } from 'vue'\n\nexport type UseMetaViewportArgs = {\n content: string\n}\n\nexport function useMetaViewport(args?: UseMetaViewportArgs) {\n const content =\n args?.content ||\n 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'\n\n const metaViewport = ref<string | undefined>(undefined)\n\n function setMetaViewport() {\n const metaElement = document.querySelector(\n 'meta[name=\"viewport\"]'\n ) as HTMLMetaElement\n\n metaViewport.value = metaElement.content\n metaElement.setAttribute('content', content)\n }\n\n function resetMetaViewport() {\n const metaElement = document.querySelector(\n 'meta[name=\"viewport\"]'\n ) as HTMLMetaElement\n\n if (metaViewport.value) {\n metaElement.setAttribute('content', metaViewport.value)\n }\n }\n\n return {\n setMetaViewport,\n resetMetaViewport,\n }\n}\n","import {\n unrefElement,\n type MaybeComputedElementRef,\n type MaybeElement,\n} from '@vueuse/core'\nimport { easeOutQuad } from '@maas/vue-equipment/utils'\n\nexport type ScrollToTarget =\n | string\n | Element\n | MaybeElement\n | MaybeComputedElementRef\n\nexport type ScrollToParent = ScrollToTarget | Window\n\nexport type ScrollToParams = {\n parent?: Element | Window\n left: number\n top: number\n duration?: { x?: number; y?: number }\n easing?: (t: number) => number\n callback?: () => void\n}\n\nexport type getScrollDurationParams = {\n parent: Element | Window\n left: number\n top: number\n speed: number\n}\n\nexport type scrollToTargetParams = {\n target: ScrollToTarget\n parent?: ScrollToParent\n offset?: {\n x?: number\n y?: number\n }\n speed?: number\n easing?: (t: number) => number\n}\n\n// Private functions\nfunction min(a: number, b: number) {\n return a < b ? a : b\n}\n\nfunction unwrapParent(parent: ScrollToParent) {\n if (parent === window) {\n return parent\n } else if (typeof parent === 'string') {\n return document.querySelector(parent) || document.documentElement\n } else {\n return (\n unrefElement(parent as MaybeComputedElementRef<MaybeElement>) ||\n document.documentElement\n )\n }\n}\n\nfunction unwrapTarget(target: ScrollToTarget, parentEl: Element | Window) {\n if (typeof target === 'string') {\n const queryTarget = parentEl === window ? document : (parentEl as Element)\n return queryTarget.querySelector(target)\n } else {\n return unrefElement(target as MaybeComputedElementRef<MaybeElement>)\n }\n}\n\nfunction isHtmlElement(\n parentEl: Window | SVGElement | Element\n): parentEl is HTMLElement {\n return parentEl instanceof HTMLElement\n}\n\nfunction disableScrollSnap(parentEl: Window | SVGElement | Element) {\n if (isHtmlElement(parentEl)) {\n parentEl.style.scrollSnapType = 'none'\n }\n}\n\nfunction reenableScrollSnap(parentEl: Window | SVGElement | Element) {\n if (isHtmlElement(parentEl)) {\n parentEl.style.scrollSnapType = ''\n }\n}\n\n// Public composable\nexport function useScrollTo() {\n function getScrollPosition(element: Element | Window): {\n x: number\n y: number\n } {\n if (element === window) {\n return { x: window.scrollX, y: window.scrollY }\n } else if (element instanceof Element) {\n return { x: element.scrollLeft, y: element.scrollTop }\n } else {\n return { x: 0, y: 0 }\n }\n }\n\n function getDistance(\n target: Element,\n parent?: Element | Window\n ): { top: number; left: number } {\n const rect = target.getBoundingClientRect()\n const scrollEl =\n parent || document.scrollingElement || document.documentElement\n\n const scrollTop = scrollEl instanceof Window ? 0 : scrollEl.scrollTop\n const scrollLeft = scrollEl instanceof Window ? 0 : scrollEl.scrollLeft\n\n return {\n top: rect.top + scrollTop,\n left: rect.left + scrollLeft,\n }\n }\n\n function getScrollDuration({\n parent = document.documentElement || document.body,\n left = 0,\n top = 0,\n speed = 500,\n }: getScrollDurationParams) {\n const currentPos = getScrollPosition(parent)\n const distanceX = currentPos.x - left\n const distanceY = currentPos.y - top\n const durationX = Math.abs((distanceX / speed) * 100)\n const durationY = Math.abs((distanceY / speed) * 100)\n\n return { x: durationX, y: durationY }\n }\n\n function scrollTo({\n parent = document.documentElement || document.body,\n top,\n left,\n duration = {},\n easing = easeOutQuad,\n callback,\n }: ScrollToParams) {\n const startTime = Date.now()\n const { x: fromX, y: fromY } = getScrollPosition(parent)\n\n if (fromX === top && fromY === left) {\n if (callback) callback()\n return\n }\n\n const mappedDuration = { x: 500, y: 500, ...duration }\n\n const scroll = () => {\n const currentTime = Date.now()\n\n const timeX = min(1, (currentTime - startTime) / mappedDuration.x)\n const timeY = min(1, (currentTime - startTime) / mappedDuration.y)\n const easedTimeX = easing(timeX)\n const easedTimeY = easing(timeY)\n\n // We use the min of the two times to make sure we scroll at the same speed\n const minTime = Math.min(easedTimeX, easedTimeY)\n\n parent.scroll({\n left: minTime * (left - fromX) + fromX,\n top: minTime * (top - fromY) + fromY,\n })\n\n if (easedTimeX < 1 || easedTimeY < 1) {\n requestAnimationFrame(scroll)\n } else if (callback) {\n callback()\n }\n }\n\n requestAnimationFrame(scroll)\n }\n\n function scrollToTarget({\n target,\n parent = document.documentElement || document.body,\n offset = {},\n speed = 500,\n easing = easeOutQuad,\n }: scrollToTargetParams) {\n const parentEl = unwrapParent(parent)\n if (!parentEl) return\n const targetEl = unwrapTarget(target, parentEl)\n if (!targetEl) return\n\n disableScrollSnap(parentEl)\n\n const mappedOffset = { x: 0, y: 0, ...offset }\n const distance = getDistance(targetEl, parentEl)\n const leftDistance = distance.left - mappedOffset.x\n const topDistance = distance.top - mappedOffset.y\n\n const scrollDuration = getScrollDuration({\n parent: parentEl,\n left: leftDistance,\n top: topDistance,\n speed: speed,\n })\n\n scrollTo({\n parent: parentEl,\n left: leftDistance,\n top: topDistance,\n duration: scrollDuration,\n easing: easing,\n callback: () => reenableScrollSnap(parentEl),\n })\n }\n\n return {\n getScrollPosition,\n getDistance,\n getScrollDuration,\n scrollTo,\n scrollToTarget,\n }\n}\n"],"mappings":";AAAA,SAAS,UAAU,WAAW,KAAK,OAAO,aAA4B;AACtE,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AAUzB,IAAM,iBAAmC;AAAA,EACvC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,EACjC,mBAAmB;AACrB;AAEO,SAAS,aAAa,SAA2B,UAAuB;AAC7E,YAAU,EAAE,GAAG,gBAAgB,GAAG,QAAQ;AAE1C,MAAI,MAAM,QAAQ,WAAW,EAAE,SAAS,GAAG;AACzC,YAAQ;AAAA,MACN;AAAA,IACF;AAAA,EACF;AAEA,QAAM,WAAW,MAAM,QAAQ,QAAQ;AACvC,MAAI,UAAU;AACZ,QAAI,CAAC,SAAS,IAAI,EAAE,QAAQ,QAAQ,EAAE,SAAS;AAC7C,cAAQ;AAAA,QACN,4BAAuB,QAAQ,gDAC7B,SAAS,MAAM,EAAE,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,QAAM,QAAQ,IAAI,WAAW;AAE7B,QAAM,QAAQ,IAAI,CAAC;AACnB,QAAM,OAAO,IAAI,CAAC;AAClB,QAAM,QAAQ,IAAI,CAAC;AACnB,QAAM,UAAU,IAAI,CAAC;AACrB,QAAM,UAAU,IAAI,CAAC;AAKrB,QAAM,qBAAqB,C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maas/vue-equipment/nuxt",
3
3
  "configKey": "vueEquipment",
4
- "version": "1.0.0-beta.2",
4
+ "version": "1.0.0-beta.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "unknown"
@@ -95,7 +95,7 @@ const functions$1 = [
95
95
  {
96
96
  name: "useCountdown",
97
97
  "package": "composables",
98
- lastUpdated: 1707225465000,
98
+ lastUpdated: 1739474856000,
99
99
  docs: "https://maas.egineering/vue-equipment/composables/useCountdown/",
100
100
  description: "calculate the remaining time until a given moment"
101
101
  },
@@ -13,11 +13,11 @@ declare function __VLS_template(): {
13
13
  attrs: Partial<{}>;
14
14
  slots: {
15
15
  default?(_: {
16
- viewActive: any;
16
+ viewActive: boolean | undefined;
17
17
  }): any;
18
18
  };
19
19
  refs: {};
20
- rootEl: any;
20
+ rootEl: HTMLDivElement;
21
21
  };
22
22
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
23
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicAccordionContentProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicAccordionContentProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -9,11 +9,46 @@ declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
10
  slots: {
11
11
  default?(_: {
12
- viewActive: any;
12
+ viewActive: boolean | undefined;
13
13
  }): any;
14
14
  };
15
15
  refs: {
16
- elRef: any;
16
+ elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
17
+ asChild: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ as: {
22
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
23
+ default: string;
24
+ };
25
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
28
+ asChild: boolean;
29
+ as: import("@maas/vue-primitive").ElementOrComponent;
30
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
31
+ P: {};
32
+ B: {};
33
+ D: {};
34
+ C: {};
35
+ M: {};
36
+ Defaults: {};
37
+ }, Readonly<import("vue").ExtractPropTypes<{
38
+ asChild: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ as: {
43
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
44
+ default: string;
45
+ };
46
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>, {}, {}, {}, {
49
+ asChild: boolean;
50
+ as: import("@maas/vue-primitive").ElementOrComponent;
51
+ }> | null;
17
52
  };
18
53
  rootEl: any;
19
54
  };
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  slots: {
9
9
  default?(_: {
10
- viewActive: any;
10
+ viewActive: boolean;
11
11
  }): any;
12
12
  };
13
13
  refs: {};
@@ -6,7 +6,7 @@ declare function __VLS_template(): {
6
6
  default?(_: {}): any;
7
7
  };
8
8
  refs: {
9
- elRef: any;
9
+ elRef: HTMLDivElement;
10
10
  };
11
11
  rootEl: any;
12
12
  };
@@ -7,17 +7,21 @@ declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  slots: {
9
9
  default?(_: {
10
- itemActive: any;
10
+ itemActive: boolean;
11
11
  itemDisabled: boolean;
12
12
  }): any;
13
13
  };
14
14
  refs: {
15
- elRef: any;
15
+ elRef: HTMLDivElement;
16
16
  };
17
- rootEl: any;
17
+ rootEl: HTMLDivElement;
18
18
  };
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ click: (event: MouseEvent) => void;
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandItemProps>>> & Readonly<{
23
+ onClick?: ((event: MouseEvent) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
26
  export default _default;
23
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -11,7 +11,42 @@ declare function __VLS_template(): {
11
11
  default?(_: {}): any;
12
12
  };
13
13
  refs: {
14
- elRef: any;
14
+ elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
15
+ asChild: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ as: {
20
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
21
+ default: string;
22
+ };
23
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
26
+ asChild: boolean;
27
+ as: import("@maas/vue-primitive").ElementOrComponent;
28
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
29
+ P: {};
30
+ B: {};
31
+ D: {};
32
+ C: {};
33
+ M: {};
34
+ Defaults: {};
35
+ }, Readonly<import("vue").ExtractPropTypes<{
36
+ asChild: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ as: {
41
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
42
+ default: string;
43
+ };
44
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ [key: string]: any;
46
+ }>, {}, {}, {}, {
47
+ asChild: boolean;
48
+ as: import("@maas/vue-primitive").ElementOrComponent;
49
+ }> | null;
15
50
  };
16
51
  rootEl: any;
17
52
  };
@@ -11,12 +11,47 @@ declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
12
12
  slots: {
13
13
  default?(_: {
14
- viewActive: any;
15
- triggerDisabled: any;
14
+ viewActive: boolean | undefined;
15
+ triggerDisabled: boolean;
16
16
  }): any;
17
17
  };
18
18
  refs: {
19
- elRef: any;
19
+ elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
20
+ asChild: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ as: {
25
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
26
+ default: string;
27
+ };
28
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
31
+ asChild: boolean;
32
+ as: import("@maas/vue-primitive").ElementOrComponent;
33
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
34
+ P: {};
35
+ B: {};
36
+ D: {};
37
+ C: {};
38
+ M: {};
39
+ Defaults: {};
40
+ }, Readonly<import("vue").ExtractPropTypes<{
41
+ asChild: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ as: {
46
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
47
+ default: string;
48
+ };
49
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>, {}, {}, {}, {
52
+ asChild: boolean;
53
+ as: import("@maas/vue-primitive").ElementOrComponent;
54
+ }> | null;
20
55
  };
21
56
  rootEl: any;
22
57
  };
@@ -6,11 +6,11 @@ declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
8
  default?(_: {
9
- viewActive: any;
9
+ viewActive: boolean;
10
10
  }): any;
11
11
  };
12
12
  refs: {};
13
- rootEl: any;
13
+ rootEl: HTMLDivElement;
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandViewProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandViewProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -7,11 +7,11 @@ declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  slots: {
9
9
  default?(_: {
10
- item: any;
10
+ item: import("../types").CookieItem;
11
11
  }): any;
12
12
  };
13
13
  refs: {};
14
- rootEl: any;
14
+ rootEl: HTMLDivElement;
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCookieItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCookieItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4,11 +4,11 @@ declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: {
6
6
  default?(_: {
7
- viewActive: any;
7
+ viewActive: boolean;
8
8
  }): any;
9
9
  };
10
10
  refs: {};
11
- rootEl: any;
11
+ rootEl: HTMLDivElement;
12
12
  };
13
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
14
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -10,9 +10,9 @@ declare function __VLS_template(): {
10
10
  default?(_: {}): any;
11
11
  };
12
12
  refs: {
13
- drawerRef: any;
14
- wrapperRef: any;
15
- elRef: any;
13
+ drawerRef: HTMLDivElement;
14
+ wrapperRef: HTMLDivElement;
15
+ elRef: unknown;
16
16
  };
17
17
  rootEl: any;
18
18
  };
@@ -21,9 +21,9 @@ declare function __VLS_template(): {
21
21
  default?(_: {}): any;
22
22
  };
23
23
  refs: {
24
- drawerRef: any;
25
- wrapperRef: any;
26
- elRef: any;
24
+ drawerRef: HTMLDivElement;
25
+ wrapperRef: HTMLDivElement;
26
+ elRef: unknown;
27
27
  };
28
28
  rootEl: any;
29
29
  };
@@ -11,10 +11,10 @@ declare function __VLS_template(): {
11
11
  default?(_: {}): any;
12
12
  };
13
13
  refs: {
14
- parentRef: any;
15
- childRef: any;
14
+ parentRef: HTMLDivElement;
15
+ childRef: HTMLDivElement;
16
16
  };
17
- rootEl: any;
17
+ rootEl: HTMLDivElement;
18
18
  };
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMarqueeProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMarqueeProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -75,14 +75,14 @@ export default /* @__PURE__ */ _defineComponent({
75
75
 
76
76
  <style>
77
77
  .magic-menu-channel-enter-active {
78
- animation: fade-in 300ms ease;
78
+ animation: fade-in 225ms ease;
79
79
  &[data-initialized='true'] {
80
80
  position: absolute;
81
81
  }
82
82
  }
83
83
 
84
84
  .magic-menu-channel-leave-active {
85
- animation: fade-out 300ms ease;
85
+ animation: fade-out 225ms ease;
86
86
  &[data-initialized='true'] {
87
87
  position: absolute;
88
88
  }
@@ -15,7 +15,7 @@ declare function __VLS_template(): {
15
15
  default?(_: {}): any;
16
16
  };
17
17
  refs: {
18
- contentRef: any;
18
+ contentRef: HTMLDivElement;
19
19
  };
20
20
  rootEl: any;
21
21
  };
@@ -13,10 +13,10 @@ declare function __VLS_template(): {
13
13
  default?(_: {}): any;
14
14
  };
15
15
  refs: {
16
- elRef: any;
17
- arrowRef: any;
16
+ elRef: HTMLDivElement;
17
+ arrowRef: HTMLDivElement;
18
18
  };
19
- rootEl: any;
19
+ rootEl: HTMLDivElement;
20
20
  };
21
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
22
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuFloatProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuFloatProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -6,17 +6,21 @@ declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
8
  default?(_: {
9
- itemActive: any;
9
+ itemActive: boolean;
10
10
  itemDisabled: boolean;
11
11
  }): any;
12
12
  };
13
13
  refs: {
14
- elRef: any;
14
+ elRef: HTMLDivElement;
15
15
  };
16
- rootEl: any;
16
+ rootEl: HTMLDivElement;
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ click: (event: MouseEvent) => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuItemProps>>> & Readonly<{
22
+ onClick?: ((event: MouseEvent) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
25
  export default _default;
22
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -11,7 +11,42 @@ declare function __VLS_template(): {
11
11
  default?(_: {}): any;
12
12
  };
13
13
  refs: {
14
- elRef: any;
14
+ elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
15
+ asChild: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ as: {
20
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
21
+ default: string;
22
+ };
23
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
26
+ asChild: boolean;
27
+ as: import("@maas/vue-primitive").ElementOrComponent;
28
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
29
+ P: {};
30
+ B: {};
31
+ D: {};
32
+ C: {};
33
+ M: {};
34
+ Defaults: {};
35
+ }, Readonly<import("vue").ExtractPropTypes<{
36
+ asChild: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ as: {
41
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
42
+ default: string;
43
+ };
44
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ [key: string]: any;
46
+ }>, {}, {}, {}, {
47
+ asChild: boolean;
48
+ as: import("@maas/vue-primitive").ElementOrComponent;
49
+ }> | null;
15
50
  };
16
51
  rootEl: any;
17
52
  };
@@ -11,8 +11,8 @@ declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
12
12
  slots: {
13
13
  default?(_: {
14
- channelActive: any;
15
- remoteDisabled: any;
14
+ channelActive: boolean;
15
+ remoteDisabled: boolean | undefined;
16
16
  }): any;
17
17
  };
18
18
  refs: {};
@@ -8,12 +8,47 @@ declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
9
9
  slots: {
10
10
  default?(_: {
11
- viewActive: any;
12
- triggerDisabled: any;
11
+ viewActive: boolean | undefined;
12
+ triggerDisabled: boolean;
13
13
  }): any;
14
14
  };
15
15
  refs: {
16
- elRef: any;
16
+ elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
17
+ asChild: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ as: {
22
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
23
+ default: string;
24
+ };
25
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
28
+ asChild: boolean;
29
+ as: import("@maas/vue-primitive").ElementOrComponent;
30
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
31
+ P: {};
32
+ B: {};
33
+ D: {};
34
+ C: {};
35
+ M: {};
36
+ Defaults: {};
37
+ }, Readonly<import("vue").ExtractPropTypes<{
38
+ asChild: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ as: {
43
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
44
+ default: string;
45
+ };
46
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>, {}, {}, {}, {
49
+ asChild: boolean;
50
+ as: import("@maas/vue-primitive").ElementOrComponent;
51
+ }> | null;
17
52
  };
18
53
  rootEl: any;
19
54
  };
@@ -7,11 +7,11 @@ declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  slots: {
9
9
  default?(_: {
10
- viewActive: any;
10
+ viewActive: boolean;
11
11
  }): any;
12
12
  };
13
13
  refs: {};
14
- rootEl: any;
14
+ rootEl: HTMLDivElement;
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuViewProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuViewProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2,10 +2,10 @@ export declare enum ModeDelayMouseenter {
2
2
  menubar = 0,
3
3
  dropdown = 0,
4
4
  context = 0,
5
- navigation = 50
5
+ navigation = 0
6
6
  }
7
7
  export declare enum ModeDelayMouseleave {
8
- navigation = 200
8
+ navigation = 100
9
9
  }
10
10
  export declare enum ModeDelayClick {
11
11
  menubar = 0,
@@ -2,11 +2,11 @@ export var ModeDelayMouseenter = /* @__PURE__ */ ((ModeDelayMouseenter2) => {
2
2
  ModeDelayMouseenter2[ModeDelayMouseenter2["menubar"] = 0] = "menubar";
3
3
  ModeDelayMouseenter2[ModeDelayMouseenter2["dropdown"] = 0] = "dropdown";
4
4
  ModeDelayMouseenter2[ModeDelayMouseenter2["context"] = 0] = "context";
5
- ModeDelayMouseenter2[ModeDelayMouseenter2["navigation"] = 50] = "navigation";
5
+ ModeDelayMouseenter2[ModeDelayMouseenter2["navigation"] = 0] = "navigation";
6
6
  return ModeDelayMouseenter2;
7
7
  })(ModeDelayMouseenter || {});
8
8
  export var ModeDelayMouseleave = /* @__PURE__ */ ((ModeDelayMouseleave2) => {
9
- ModeDelayMouseleave2[ModeDelayMouseleave2["navigation"] = 200] = "navigation";
9
+ ModeDelayMouseleave2[ModeDelayMouseleave2["navigation"] = 100] = "navigation";
10
10
  return ModeDelayMouseleave2;
11
11
  })(ModeDelayMouseleave || {});
12
12
  export var ModeDelayClick = /* @__PURE__ */ ((ModeDelayClick2) => {
@@ -14,7 +14,7 @@ declare function __VLS_template(): {
14
14
  default?(_: {}): any;
15
15
  };
16
16
  refs: {
17
- modalRef: any;
17
+ modalRef: HTMLDivElement;
18
18
  };
19
19
  rootEl: any;
20
20
  };
@@ -8,10 +8,10 @@ declare function __VLS_template(): {
8
8
  pauseIcon?(_: {}): any;
9
9
  };
10
10
  refs: {
11
- barRef: any;
12
- trackRef: any;
11
+ barRef: HTMLDivElement;
12
+ trackRef: HTMLDivElement;
13
13
  };
14
- rootEl: any;
14
+ rootEl: HTMLDivElement;
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicAudioPlayerControlsProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicAudioPlayerControlsProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
7
7
  pauseIcon?(_: {}): any;
8
8
  };
9
9
  refs: {};
10
- rootEl: any;
10
+ rootEl: HTMLDivElement;
11
11
  };
12
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
13
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4,7 +4,7 @@ declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
5
  };
6
6
  refs: {};
7
- rootEl: any;
7
+ rootEl: HTMLDivElement;
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
10
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -10,9 +10,9 @@ declare function __VLS_template(): {
10
10
  default?(_: {}): any;
11
11
  };
12
12
  refs: {
13
- playerRef: any;
13
+ playerRef: HTMLDivElement;
14
14
  };
15
- rootEl: any;
15
+ rootEl: HTMLDivElement;
16
16
  };
17
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
18
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicPlayerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicPlayerProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -19,11 +19,11 @@ declare function __VLS_template(): {
19
19
  fullscreenEnterIcon?(_: {}): any;
20
20
  };
21
21
  refs: {
22
- popoverRef: any;
23
- barRef: any;
24
- trackRef: any;
22
+ popoverRef: HTMLDivElement;
23
+ barRef: HTMLDivElement;
24
+ trackRef: HTMLDivElement;
25
25
  };
26
- rootEl: any;
26
+ rootEl: HTMLDivElement;
27
27
  };
28
28
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
29
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicPlayerControlsProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicPlayerControlsProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -9,9 +9,9 @@ declare function __VLS_template(): {
9
9
  default?(_: {}): any;
10
10
  };
11
11
  refs: {
12
- elRef: any;
12
+ elRef: HTMLDivElement;
13
13
  };
14
- rootEl: any;
14
+ rootEl: HTMLDivElement;
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollCollisionProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollCollisionProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -11,9 +11,9 @@ declare function __VLS_template(): {
11
11
  default?(_: {}): any;
12
12
  };
13
13
  refs: {
14
- elRef: any;
14
+ elRef: HTMLDivElement;
15
15
  };
16
- rootEl: any;
16
+ rootEl: HTMLDivElement;
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollMotionProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollMotionProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -6,11 +6,28 @@ declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
8
  default?(_: {
9
- scrollReturn: any;
9
+ scrollReturn: {
10
+ x: import("vue").WritableComputedRef<number, number>;
11
+ y: import("vue").WritableComputedRef<number, number>;
12
+ isScrolling: import("vue").Ref<boolean, boolean>;
13
+ arrivedState: {
14
+ left: boolean;
15
+ right: boolean;
16
+ top: boolean;
17
+ bottom: boolean;
18
+ };
19
+ directions: {
20
+ left: boolean;
21
+ right: boolean;
22
+ top: boolean;
23
+ bottom: boolean;
24
+ };
25
+ measure(): void;
26
+ };
10
27
  }): any;
11
28
  };
12
29
  refs: {};
13
- rootEl: any;
30
+ rootEl: HTMLDivElement;
14
31
  };
15
32
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
33
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollProviderProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollProviderProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -7,13 +7,13 @@ declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  slots: {
9
9
  default?(_: {
10
- progress: any;
10
+ progress: number;
11
11
  }): any;
12
12
  };
13
13
  refs: {
14
- elRef: any;
14
+ elRef: HTMLDivElement;
15
15
  };
16
- rootEl: any;
16
+ rootEl: HTMLDivElement;
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollSceneProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicScrollSceneProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -9,9 +9,9 @@ declare function __VLS_template(): {
9
9
  default?(_: {}): any;
10
10
  };
11
11
  refs: {
12
- elRef: any;
12
+ elRef: HTMLLIElement;
13
13
  };
14
- rootEl: any;
14
+ rootEl: HTMLLIElement;
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicToastViewProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicToastViewProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -12,6 +12,9 @@ export function useToastCallback(instanceId) {
12
12
  }
13
13
  function onEnter() {
14
14
  emitter.emit("enter", toValue(instanceId));
15
+ if (state.views.length && state.options.layout?.max && state.views.length > state.options.layout.max) {
16
+ deleteView(state.views[0].id);
17
+ }
15
18
  }
16
19
  function onAfterEnter(el) {
17
20
  emitter.emit("afterEnter", toValue(instanceId));
@@ -28,9 +31,6 @@ export function useToastCallback(instanceId) {
28
31
  };
29
32
  view.dimensions = dimensions;
30
33
  }
31
- if (state.views.length && state.options.layout?.max && state.views.length > state.options.layout.max) {
32
- deleteView(state.views[0].id);
33
- }
34
34
  }
35
35
  function onBeforeLeave() {
36
36
  emitter.emit("beforeLeave", toValue(instanceId));
@@ -11,6 +11,7 @@ export declare function useMagicToast(id: MaybeRef<string>): {
11
11
  count: import("vue").ComputedRef<number>;
12
12
  add: (args: AddArgs) => string;
13
13
  remove: (id: string) => void;
14
+ clear: (transition?: string) => Promise<void>;
14
15
  expand: () => void;
15
16
  collapse: () => void;
16
17
  };
@@ -1,11 +1,11 @@
1
- import { computed, toValue } from "vue";
1
+ import { computed, toValue, nextTick } from "vue";
2
2
  import { useToastState } from "./private/useToastState.mjs";
3
3
  import { useToastView } from "./private/useToastView.mjs";
4
4
  export function useMagicToast(id) {
5
5
  const { initializeState } = useToastState(toValue(id));
6
6
  const state = initializeState();
7
7
  const { initializeView, deleteView } = useToastView(id);
8
- const toasts = computed(() => state?.views);
8
+ const toasts = computed(() => state.views);
9
9
  const count = computed(() => toasts.value?.length);
10
10
  function add(args) {
11
11
  const { id: id2, component, props, duration } = args;
@@ -21,6 +21,13 @@ export function useMagicToast(id) {
21
21
  function remove(id2) {
22
22
  deleteView(id2);
23
23
  }
24
+ async function clear(transition) {
25
+ const lastTransition = state.options.transition;
26
+ state.options.transition = transition ?? "";
27
+ state.views = [];
28
+ await nextTick();
29
+ state.options.transition = lastTransition;
30
+ }
24
31
  function expand() {
25
32
  state.expanded = true;
26
33
  }
@@ -32,6 +39,7 @@ export function useMagicToast(id) {
32
39
  count,
33
40
  add,
34
41
  remove,
42
+ clear,
35
43
  expand,
36
44
  collapse
37
45
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "Our Frontend Toolkit, Free and Open Source",
4
- "version": "1.0.0-beta.3",
4
+ "version": "1.0.0-beta.4",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Robin Scholz",
@@ -13,12 +13,12 @@
13
13
  }
14
14
  ],
15
15
  "devDependencies": {
16
- "@maas/config": "^1.5.0",
16
+ "@maas/config": "^1.6.0",
17
17
  "@release-it/bumper": "^7.0.1",
18
18
  "@types/node": "catalog:",
19
19
  "release-it": "^18.1.2",
20
20
  "tailwindcss": "catalog:",
21
- "turbo": "^2.4.1",
21
+ "turbo": "^2.4.2",
22
22
  "typescript": "catalog:"
23
23
  },
24
24
  "exports": {
@@ -34,8 +34,8 @@
34
34
  "types": "./dist/plugins/index.d.ts",
35
35
  "import": "./dist/plugins/index.mjs"
36
36
  },
37
- "./plugins/*/css/*.css": {
38
- "import": "./dist/plugins/*/src/css/*.css"
37
+ "./plugins/MagicPlayer/css/*.css": {
38
+ "import": "./dist/plugins/MagicPlayer/src/css/*.css"
39
39
  },
40
40
  "./utils": {
41
41
  "types": "./dist/utils/index.d.mts",
@@ -138,7 +138,7 @@
138
138
  "volta": {
139
139
  "node": "20.18.1"
140
140
  },
141
- "packageManager": "pnpm@10.3.0",
141
+ "packageManager": "pnpm@10.4.0",
142
142
  "pnpm": {
143
143
  "overrides": {
144
144
  "typescript": "catalog:"