@maas/vue-equipment 1.0.0-beta.17 → 1.0.0-beta.18

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 (65) hide show
  1. package/dist/nuxt/module.json +2 -2
  2. package/dist/nuxt/types.d.mts +2 -6
  3. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +3 -12
  4. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +1 -1
  5. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +3 -12
  6. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +4 -16
  7. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +1 -1
  8. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +3 -12
  9. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +1 -1
  10. package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +1 -4
  11. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +3 -12
  12. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +1 -1
  13. package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue +1 -4
  14. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +3 -12
  15. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +6 -24
  16. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +2 -2
  17. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +2 -8
  18. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +1 -1
  19. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue +3 -12
  20. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +1 -1
  21. package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue +2 -8
  22. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +1 -1
  23. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +12 -9
  24. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +4 -4
  25. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +38 -61
  26. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +2 -17
  27. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +77 -59
  28. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +2 -1
  29. package/dist/plugins/MagicDraggable/src/types/index.d.ts +1 -0
  30. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +2 -8
  31. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +44 -44
  32. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +2 -8
  33. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +2 -8
  34. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +4 -17
  35. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +4 -16
  36. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +2 -8
  37. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +1 -1
  38. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +3 -12
  39. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +6 -24
  40. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +1 -1
  41. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +5 -20
  42. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +2 -2
  43. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +2 -8
  44. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +1 -1
  45. package/dist/plugins/MagicModal/src/components/MagicModal.vue +3 -12
  46. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +10 -10
  47. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +2 -8
  48. package/dist/plugins/MagicPie/src/components/MagicPie.vue +2 -8
  49. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +1 -4
  50. package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue +1 -4
  51. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +1 -4
  52. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +2 -8
  53. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +3 -12
  54. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +2 -8
  55. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +3 -12
  56. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue +1 -4
  57. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +1 -18
  58. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +2 -8
  59. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +1 -1
  60. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +2 -8
  61. package/dist/plugins/MagicToast/src/components/MagicToastView.vue +2 -8
  62. package/package.json +2 -2
  63. package/dist/nuxt/module.cjs +0 -5
  64. package/dist/nuxt/module.d.ts +0 -10
  65. package/dist/nuxt/types.d.ts +0 -7
@@ -8,23 +8,23 @@ interface MagicModalProps {
8
8
  options?: MagicModalOptions;
9
9
  }
10
10
  declare const mappedOptions: Omit<MagicModalOptions, keyof MagicModalOptions> & Omit<import("../../../../utils/index.js").RequireAll<MagicModalOptions>, keyof MagicModalOptions> & {
11
- backdrop: boolean;
12
- tag: "dialog" | "div";
13
- focusTrap: boolean | import("focus-trap").Options;
14
- scrollLock: boolean | {
15
- padding: boolean;
16
- };
17
- teleport: {
18
- target?: string;
19
- disabled?: boolean;
20
- };
21
11
  transition: {
22
12
  content?: string;
23
13
  backdrop?: string;
24
14
  };
15
+ scrollLock: boolean | {
16
+ padding: boolean;
17
+ };
25
18
  keyListener: {
26
19
  close?: string[] | false;
27
20
  };
21
+ backdrop: boolean;
22
+ tag: "div" | "dialog";
23
+ focusTrap: boolean | import("focus-trap").Options;
24
+ teleport: {
25
+ target?: string;
26
+ disabled?: boolean;
27
+ };
28
28
  };
29
29
  declare const mappedId: string;
30
30
  declare const close: () => void;
@@ -12,14 +12,8 @@ import { onMounted, onUnmounted, watch, useTemplateRef } from "vue";
12
12
  import { useResizeObserver, useDebounceFn } from "@vueuse/core";
13
13
  import { useNoiseApi } from "../composables/private/useNoiseApi";
14
14
  const { pause = false, options } = defineProps({
15
- options: {
16
- type: Object,
17
- required: false
18
- },
19
- pause: {
20
- type: Boolean,
21
- required: false
22
- }
15
+ options: { type: Object, required: false },
16
+ pause: { type: Boolean, required: false }
23
17
  });
24
18
  const canvasRef = useTemplateRef("canvas");
25
19
  const offCanvasRef = useTemplateRef("offCanvas");
@@ -20,14 +20,8 @@
20
20
  import { computed, toRefs, onBeforeUnmount } from "vue";
21
21
  import { usePieState } from "../composables/private/usePieState";
22
22
  const { id, options } = defineProps({
23
- id: {
24
- type: String,
25
- required: true
26
- },
27
- options: {
28
- type: Object,
29
- required: false
30
- }
23
+ id: { type: String, required: true },
24
+ options: { type: Object, required: false }
31
25
  });
32
26
  const { initializeState, deleteState } = usePieState(id);
33
27
  const state = initializeState();
@@ -73,10 +73,7 @@ import {
73
73
  MagicPlayerBarRef
74
74
  } from "../symbols";
75
75
  const { instanceId } = defineProps({
76
- instanceId: {
77
- type: String,
78
- required: false
79
- }
76
+ instanceId: { type: String, required: false }
80
77
  });
81
78
  const injectedInstanceId = inject(MagicPlayerInstanceId, void 0);
82
79
  const mappedInstanceId = computed(() => instanceId ?? injectedInstanceId);
@@ -10,10 +10,7 @@ import { formatTime } from "@maas/vue-equipment/utils";
10
10
  import { usePlayerState } from "../composables/private/usePlayerState";
11
11
  import { MagicPlayerInstanceId } from "../symbols";
12
12
  const { type = "current" } = defineProps({
13
- type: {
14
- type: String,
15
- required: false
16
- }
13
+ type: { type: String, required: false }
17
14
  });
18
15
  const instanceId = inject(MagicPlayerInstanceId);
19
16
  if (!instanceId) {
@@ -28,10 +28,7 @@ import { useDevicePixelRatio } from "@vueuse/core";
28
28
  import { usePlayerState } from "../composables/private/usePlayerState";
29
29
  import { MagicPlayerInstanceId, MagicPlayerOptionsKey } from "../symbols";
30
30
  const { playbackId } = defineProps({
31
- playbackId: {
32
- type: String,
33
- required: false
34
- }
31
+ playbackId: { type: String, required: false }
35
32
  });
36
33
  const instanceId = inject(MagicPlayerInstanceId, void 0);
37
34
  const injectedOptions = inject(MagicPlayerOptionsKey, void 0);
@@ -25,14 +25,8 @@ import { usePlayerState } from "../composables/private/usePlayerState";
25
25
  import { MagicPlayerInstanceId, MagicPlayerOptionsKey } from "../symbols";
26
26
  import { defaultOptions } from "../utils/defaultOptions";
27
27
  const { id, options } = defineProps({
28
- id: {
29
- type: null,
30
- required: true
31
- },
32
- options: {
33
- type: Object,
34
- required: false
35
- }
28
+ id: { type: null, required: true },
29
+ options: { type: Object, required: false }
36
30
  });
37
31
  const mappedOptions = defu(options, defaultOptions);
38
32
  const { initializeState, deleteState } = usePlayerState(id);
@@ -108,18 +108,9 @@ const {
108
108
  standalone = false,
109
109
  transition
110
110
  } = defineProps({
111
- id: {
112
- type: String,
113
- required: false
114
- },
115
- standalone: {
116
- type: Boolean,
117
- required: false
118
- },
119
- transition: {
120
- type: String,
121
- required: false
122
- }
111
+ id: { type: String, required: false },
112
+ standalone: { type: Boolean, required: false },
113
+ transition: { type: String, required: false }
123
114
  });
124
115
  const injectedInstanceId = inject(MagicPlayerInstanceId, void 0);
125
116
  const mappedInstanceId = computed(() => id ?? injectedInstanceId);
@@ -19,14 +19,8 @@ import { useCollisionDetection } from "../composables/private/useCollisionDetect
19
19
  import { MagicScrollReturn, MagicScrollTarget } from "../symbols";
20
20
  import { useIntersectionObserver } from "@vueuse/core";
21
21
  const { id, offset } = defineProps({
22
- id: {
23
- type: String,
24
- required: false
25
- },
26
- offset: {
27
- type: Object,
28
- required: false
29
- }
22
+ id: { type: String, required: false },
23
+ offset: { type: Object, required: false }
30
24
  });
31
25
  const scrollReturn = inject(MagicScrollReturn, void 0);
32
26
  const scrollTarget = inject(MagicScrollTarget);
@@ -14,18 +14,9 @@ import {
14
14
  import { MagicScrollProgress } from "../symbols";
15
15
  import {} from "../types";
16
16
  const { progress, sequence, sequenceOptions } = defineProps({
17
- sequence: {
18
- type: Array,
19
- required: true
20
- },
21
- sequenceOptions: {
22
- type: Object,
23
- required: false
24
- },
25
- progress: {
26
- type: Number,
27
- required: false
28
- }
17
+ sequence: { type: Array, required: true },
18
+ sequenceOptions: { type: Object, required: false },
19
+ progress: { type: Number, required: false }
29
20
  });
30
21
  const animation = ref(void 0);
31
22
  const elRef = useTemplateRef("el");
@@ -9,10 +9,7 @@ import { provide, computed } from "vue";
9
9
  import { useScroll, unrefElement } from "@vueuse/core";
10
10
  import { MagicScrollReturn, MagicScrollTarget } from "../symbols";
11
11
  const { target } = defineProps({
12
- target: {
13
- type: null,
14
- required: false
15
- }
12
+ target: { type: null, required: false }
16
13
  });
17
14
  const mappedTarget = computed(() => {
18
15
  switch (true) {
@@ -22,24 +22,7 @@ declare const scrollReturn: {
22
22
  };
23
23
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
24
24
  declare var __VLS_1: {
25
- scrollReturn: {
26
- x: import("vue").WritableComputedRef<number, number>;
27
- y: import("vue").WritableComputedRef<number, number>;
28
- isScrolling: import("vue").ShallowRef<boolean, boolean>;
29
- arrivedState: {
30
- left: boolean;
31
- right: boolean;
32
- top: boolean;
33
- bottom: boolean;
34
- };
35
- directions: {
36
- left: boolean;
37
- right: boolean;
38
- top: boolean;
39
- bottom: boolean;
40
- };
41
- measure(): void;
42
- };
25
+ scrollReturn: any;
43
26
  };
44
27
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
45
28
  default?: (props: typeof __VLS_1) => any;
@@ -22,14 +22,8 @@ import {
22
22
  MagicScrollReturn
23
23
  } from "../symbols";
24
24
  const { from = "top-bottom", to = "bottom-top" } = defineProps({
25
- from: {
26
- type: String,
27
- required: false
28
- },
29
- to: {
30
- type: String,
31
- required: false
32
- }
25
+ from: { type: String, required: false },
26
+ to: { type: String, required: false }
33
27
  });
34
28
  const scrollReturn = inject(MagicScrollReturn, void 0);
35
29
  const scrollTarget = inject(MagicScrollTarget, void 0);
@@ -6,7 +6,7 @@ interface MagicScrollSceneProps {
6
6
  declare const progress: import("vue").ShallowRef<number, number>;
7
7
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
8
8
  declare var __VLS_1: {
9
- progress: number;
9
+ progress: any;
10
10
  };
11
11
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
12
  default?: (props: typeof __VLS_1) => any;
@@ -63,14 +63,8 @@ import "@maas/vue-equipment/utils/css/animations/slide-rtl-in.css";
63
63
  import "@maas/vue-equipment/utils/css/animations/slide-rtl-out.css";
64
64
  import { useToastListener } from "../composables/private/useToastListener";
65
65
  const { id, options } = defineProps({
66
- id: {
67
- type: null,
68
- required: true
69
- },
70
- options: {
71
- type: Object,
72
- required: false
73
- }
66
+ id: { type: null, required: true },
67
+ options: { type: Object, required: false }
74
68
  });
75
69
  const mappedId = toValue(id);
76
70
  defineOptions({
@@ -31,14 +31,8 @@ import { useToastState } from "../composables/private/useToastState";
31
31
  import { useToastDrag } from "../composables/private/useToastDrag";
32
32
  import "@maas/vue-equipment/utils/css/transitions/fade.css";
33
33
  const { id, index } = defineProps({
34
- id: {
35
- type: String,
36
- required: true
37
- },
38
- index: {
39
- type: Number,
40
- required: true
41
- }
34
+ id: { type: String, required: true },
35
+ index: { type: Number, required: true }
42
36
  });
43
37
  const instanceId = inject(MagicToastInstanceId, void 0);
44
38
  if (!instanceId) {
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.17",
4
+ "version": "1.0.0-beta.18",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Robin Scholz",
@@ -140,7 +140,7 @@
140
140
  "volta": {
141
141
  "node": "20.18.1"
142
142
  },
143
- "packageManager": "pnpm@10.7.1",
143
+ "packageManager": "pnpm@10.8.0",
144
144
  "pnpm": {
145
145
  "overrides": {
146
146
  "typescript": "catalog:"
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
@@ -1,10 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- interface ModuleOptions {
4
- plugins?: string[] | boolean;
5
- composables?: string[] | boolean;
6
- }
7
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
8
-
9
- export { _default as default };
10
- export type { ModuleOptions };
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'