@maas/vue-equipment 0.22.0 → 0.22.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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment/nuxt",
3
3
  "configKey": "vueEquipment",
4
- "version": "0.21.6"
4
+ "version": "0.22.0"
5
5
  }
@@ -3,7 +3,6 @@ import MagicCommandBody from "./src/components/MagicCommandBody.vue";
3
3
  import MagicCommandFooter from "./src/components/MagicCommandFooter.vue";
4
4
  import MagicCommandGroup from "./src/components/MagicCommandGroup.vue";
5
5
  import MagicCommandHead from "./src/components/MagicCommandHead.vue";
6
- import MagicCommandInput from "./src/components/MagicCommandInput.vue";
7
6
  import MagicCommandItem from "./src/components/MagicCommandItem.vue";
8
7
  import MagicCommandView from "./src/components/MagicCommandView.vue";
9
8
  import { useCommandApi } from "./src/composables/useCommandApi.mjs";
@@ -16,7 +15,6 @@ const MagicCommandPlugin = {
16
15
  app.component("MagicCommandFooter", MagicCommandFooter);
17
16
  app.component("MagicCommandGroup", MagicCommandGroup);
18
17
  app.component("MagicCommandHead", MagicCommandHead);
19
- app.component("MagicCommandInput", MagicCommandInput);
20
18
  app.component("MagicCommandItem", MagicCommandItem);
21
19
  app.component("MagicCommandView", MagicCommandView);
22
20
  }
@@ -13,7 +13,6 @@
13
13
  import {
14
14
  ref,
15
15
  computed,
16
- defineProps,
17
16
  inject,
18
17
  toValue,
19
18
  nextTick,
@@ -5,14 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script lang="ts" setup>
8
- import {
9
- computed,
10
- defineProps,
11
- inject,
12
- toValue,
13
- onMounted,
14
- onUnmounted,
15
- } from 'vue'
8
+ import { computed, inject, toValue, onMounted, onUnmounted } from 'vue'
16
9
  import { uuid } from '@maas/vue-equipment/utils'
17
10
  import { useCommandStore } from '../composables/private/useCommandStore'
18
11
  import { useCommandView } from '../composables/private/useCommandView'
@@ -18,7 +18,7 @@ export type CommandOptions = {
18
18
  next?: string[] | false;
19
19
  prev?: string[] | false;
20
20
  };
21
- loop: boolean;
21
+ loop?: boolean;
22
22
  };
23
23
  export type CommandEvents = {
24
24
  beforeEnter: string;
@@ -1,6 +1,6 @@
1
1
  const defaultOptions = {
2
2
  backdrop: true,
3
- focusTrap: false,
3
+ focusTrap: true,
4
4
  scrollLock: true,
5
5
  scrollLockPadding: true,
6
6
  teleport: {
@@ -16,8 +16,8 @@ import {
16
16
  import { ScrollProgressKey } from '../symbols'
17
17
 
18
18
  interface Props {
19
- keyframes: MotionKeyframesDefinition
20
- offset?: number[] | undefined
19
+ keyframes?: MotionKeyframesDefinition
20
+ offset?: number[]
21
21
  easing?: Easing
22
22
  progress?: number
23
23
  }
@@ -1,7 +1,7 @@
1
1
  import { type MotionKeyframesDefinition, type Easing } from 'motion';
2
2
  interface Props {
3
- keyframes: MotionKeyframesDefinition;
4
- offset?: number[] | undefined;
3
+ keyframes?: MotionKeyframesDefinition;
4
+ offset?: number[];
5
5
  easing?: Easing;
6
6
  progress?: number;
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "A magic collection of Vue composables, plugins, components and directives",
4
- "version": "0.22.0",
4
+ "version": "0.22.1",
5
5
  "author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
6
6
  "devDependencies": {
7
7
  "@antfu/ni": "^0.21.12",
@@ -1,12 +0,0 @@
1
- <template>
2
- <div class="magic-command-input">
3
- <slot>
4
- <input type="text" v-model="input" />
5
- </slot>
6
- </div>
7
- </template>
8
-
9
- <script lang="ts" setup>
10
- import { ref } from 'vue'
11
- const input = ref('')
12
- </script>
@@ -1,9 +0,0 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
- default?(_: {}): any;
3
- }>;
4
- export default _default;
5
- type __VLS_WithTemplateSlots<T, S> = T & {
6
- new (): {
7
- $slots: S;
8
- };
9
- };