@maas/vue-equipment 1.0.0-beta.2 → 1.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/composables/index.d.ts +5 -5
- package/dist/composables/index.js +23 -13
- package/dist/composables/index.js.map +1 -1
- package/dist/nuxt/module.d.mts +2 -1
- package/dist/nuxt/module.json +2 -2
- package/dist/nuxt/module.mjs +9 -2
- package/dist/nuxt/types.d.mts +3 -1
- package/dist/plugins/.turbo/turbo-lint.log +2 -10
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +59 -82
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +35 -22
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +17 -31
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +12 -21
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +57 -62
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +23 -59
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +34 -45
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +17 -22
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/useMagicAccordion.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +146 -152
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +24 -13
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +42 -52
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +12 -21
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +72 -87
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +29 -28
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue +37 -47
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +12 -21
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +61 -77
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +12 -58
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +23 -39
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +80 -86
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +25 -60
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +36 -48
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +15 -22
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandState.mjs +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.mjs +1 -0
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicCommand/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue +34 -41
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +13 -22
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue +19 -36
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +9 -21
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue +40 -72
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +21 -12
- package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.mjs +0 -1
- package/dist/plugins/MagicCookie/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +81 -100
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +94 -22
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +43 -63
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +34 -14
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +2 -15
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +117 -64
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +6 -5
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +2 -1
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.mjs +1 -1
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +271 -308
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +165 -23
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +34 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.mjs +28 -10
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +16 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/types/index.mjs +1 -0
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +100 -100
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +38 -72
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +14 -25
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.mjs +8 -2
- package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.d.ts +1 -1
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +51 -63
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +18 -21
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +178 -214
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +41 -24
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +171 -198
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +40 -25
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +87 -113
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +31 -28
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +82 -81
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +12 -58
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +63 -86
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +19 -23
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +94 -97
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +27 -60
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +49 -61
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +15 -22
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +15 -5
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +4 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuDOM.mjs +35 -15
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +6 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +2 -0
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +18 -6
- package/dist/plugins/MagicMenu/src/composables/useMagicMenu.mjs +1 -0
- package/dist/plugins/MagicMenu/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.mjs +2 -2
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +133 -168
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +44 -21
- package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +34 -14
- package/dist/plugins/MagicModal/src/types/index.mjs +1 -0
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +50 -81
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +1 -10
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +3 -3
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +2 -2
- package/dist/plugins/MagicPie/index.d.ts +7 -0
- package/dist/plugins/MagicPie/index.mjs +8 -0
- package/dist/plugins/MagicPie/nuxt.d.ts +2 -0
- package/dist/plugins/MagicPie/nuxt.mjs +23 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue +168 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue.d.ts +7 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.d.ts +6 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.mjs +33 -0
- package/dist/plugins/MagicPie/src/composables/useMagicPie.d.ts +13 -0
- package/dist/plugins/MagicPie/src/composables/useMagicPie.mjs +43 -0
- package/dist/plugins/MagicPie/src/types/index.d.ts +9 -0
- package/dist/plugins/MagicPie/src/types/index.mjs +0 -0
- package/dist/plugins/MagicPlayer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +58 -63
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +99 -127
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +30 -26
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue +32 -42
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +106 -105
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +51 -76
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +29 -14
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue +18 -37
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +12 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +41 -55
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +23 -23
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +60 -109
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +74 -71
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +163 -209
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +63 -33
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +0 -4
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +6 -47
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +7 -34
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +154 -235
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +3 -17
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +17 -157
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +2 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +7 -25
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.d.ts +7 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.mjs +56 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +3 -8
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +7 -62
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +32 -51
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.mjs +49 -2
- package/dist/plugins/MagicPlayer/src/symbols/index.d.ts +5 -2
- package/dist/plugins/MagicPlayer/src/symbols/index.mjs +10 -1
- package/dist/plugins/MagicPlayer/src/types/index.d.ts +29 -0
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +54 -61
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +9 -23
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +56 -71
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +9 -23
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue +26 -33
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +45 -37
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +63 -71
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +13 -24
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +16 -6
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +41 -26
- package/dist/plugins/MagicScroll/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +94 -118
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +1 -10
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue +54 -81
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +24 -23
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +2 -2
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +5 -5
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +22 -22
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +1 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +33 -15
- package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +1 -0
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -0
- package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +10 -2
- package/dist/plugins/MagicToast/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/utils/index.d.ts +9 -4
- package/dist/utils/index.js +39 -3
- package/dist/utils/index.js.map +1 -1
- package/package.json +17 -8
- package/dist/nuxt/module.cjs +0 -5
- package/dist/nuxt/module.d.ts +0 -9
- package/dist/nuxt/types.d.ts +0 -1
- package/dist/plugins/MagicAccordion/demo/data/footer.json +0 -117
- package/dist/plugins/MagicCommand/demo/data/about.json +0 -3
- package/dist/plugins/MagicCommand/demo/data/search.json +0 -594
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +0 -15
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.mjs +0 -9
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="el" class="magic-command-renderer" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { inject, onBeforeUnmount, useTemplateRef } from "vue";
|
|
5
7
|
import {
|
|
6
8
|
useMagicEmitter
|
|
7
9
|
} from "@maas/vue-equipment/plugins";
|
|
8
10
|
import { MagicCommandInstanceId } from "./../symbols";
|
|
9
11
|
import { useCommandState } from "../composables/private/useCommandState";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function enterCallback(payload) {
|
|
24
|
-
if (typeof payload === "string" && payload === instanceId) {
|
|
25
|
-
state.renderer = elRef.value;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
emitter.on("enter", enterCallback);
|
|
29
|
-
onBeforeUnmount(() => {
|
|
30
|
-
emitter.off("enter", enterCallback);
|
|
31
|
-
});
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return _openBlock(), _createElementBlock(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
ref_key: "elRef",
|
|
37
|
-
ref: elRef,
|
|
38
|
-
class: "magic-command-renderer"
|
|
39
|
-
},
|
|
40
|
-
null,
|
|
41
|
-
512
|
|
42
|
-
/* NEED_PATCH */
|
|
43
|
-
);
|
|
44
|
-
};
|
|
12
|
+
const instanceId = inject(MagicCommandInstanceId, "");
|
|
13
|
+
const emitter = useMagicEmitter();
|
|
14
|
+
if (!instanceId) {
|
|
15
|
+
throw new Error(
|
|
16
|
+
"MagicCommandRenderer must be nested inside MagicCommandProvider"
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
const elRef = useTemplateRef("el");
|
|
20
|
+
const { initializeState } = useCommandState(instanceId);
|
|
21
|
+
const state = initializeState();
|
|
22
|
+
function enterCallback(payload) {
|
|
23
|
+
if (typeof payload === "string" && payload === instanceId) {
|
|
24
|
+
state.renderer = elRef.value;
|
|
45
25
|
}
|
|
26
|
+
}
|
|
27
|
+
emitter.on("enter", enterCallback);
|
|
28
|
+
onBeforeUnmount(() => {
|
|
29
|
+
emitter.off("enter", enterCallback);
|
|
46
30
|
});
|
|
47
31
|
</script>
|
|
48
32
|
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<primitive
|
|
3
|
+
ref="el"
|
|
4
|
+
:data-id="`${mappedViewId}-trigger`"
|
|
5
|
+
:data-active="mappedActive"
|
|
6
|
+
:data-disabled="mappedDisabled"
|
|
7
|
+
:as-child="asChild"
|
|
8
|
+
class="magic-command-trigger"
|
|
9
|
+
@click="onClick"
|
|
10
|
+
@mouseenter="onMouseenter"
|
|
11
|
+
>
|
|
12
|
+
<slot :view-active="view?.active" :trigger-disabled="mappedDisabled" />
|
|
13
|
+
</primitive>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
import { computed, inject, useTemplateRef, toValue, watch } from "vue";
|
|
5
18
|
import { Primitive } from "@maas/vue-primitive";
|
|
6
19
|
import { useCommandView } from "../composables/private/useCommandView";
|
|
7
20
|
import { useCommandTrigger } from "../composables/private/useCommandTrigger";
|
|
@@ -13,90 +26,71 @@ import {
|
|
|
13
26
|
MagicCommandProviderOptions
|
|
14
27
|
} from "../symbols";
|
|
15
28
|
import { useMagicKeys } from "@vueuse/core";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
const {
|
|
30
|
+
viewId,
|
|
31
|
+
active = void 0,
|
|
32
|
+
disabled = void 0,
|
|
33
|
+
action = "open",
|
|
34
|
+
trigger = ["click"]
|
|
35
|
+
} = defineProps({
|
|
36
|
+
viewId: { type: String, required: false },
|
|
37
|
+
active: { type: Boolean, required: false },
|
|
38
|
+
disabled: { type: Boolean, required: false },
|
|
39
|
+
action: { type: String, required: false },
|
|
40
|
+
trigger: { type: Array, required: false },
|
|
41
|
+
asChild: { type: Boolean, required: false }
|
|
42
|
+
});
|
|
43
|
+
const elRef = useTemplateRef("el");
|
|
44
|
+
const instanceId = inject(MagicCommandInstanceId, void 0);
|
|
45
|
+
const itemActive = inject(MagicCommandItemActive, void 0);
|
|
46
|
+
const itemDisabled = inject(MagicCommandItemDisabled, void 0);
|
|
47
|
+
const injectedViewId = inject(MagicCommandViewId, void 0);
|
|
48
|
+
const mappedViewId = computed(() => viewId ?? injectedViewId);
|
|
49
|
+
if (!instanceId) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
"MagicCommandTrigger must be nested inside MagicCommandProvider"
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
if (!mappedViewId.value) {
|
|
55
|
+
throw new Error(
|
|
56
|
+
"MagicCommandTrigger must be nested inside MagicCommandView or a viewId must be provided"
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
const { getView } = useCommandView(instanceId);
|
|
60
|
+
const view = getView(mappedViewId.value);
|
|
61
|
+
const mappedActive = computed(() => active ?? toValue(itemActive) ?? false);
|
|
62
|
+
const mappedDisabled = computed(
|
|
63
|
+
() => disabled ?? toValue(itemDisabled) ?? false
|
|
64
|
+
);
|
|
65
|
+
const options = inject(MagicCommandProviderOptions, void 0);
|
|
66
|
+
const { onMouseenter, onClick, onEnter } = useCommandTrigger({
|
|
67
|
+
instanceId,
|
|
68
|
+
viewId: mappedViewId.value,
|
|
69
|
+
mappedActive,
|
|
70
|
+
mappedDisabled,
|
|
71
|
+
trigger,
|
|
72
|
+
action,
|
|
73
|
+
elRef
|
|
74
|
+
});
|
|
75
|
+
watch(
|
|
76
|
+
() => view?.active,
|
|
77
|
+
async (value) => {
|
|
78
|
+
if (value) {
|
|
79
|
+
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
80
|
+
toValue(elRef)?.$el?.blur();
|
|
40
81
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
instanceId,
|
|
50
|
-
viewId: mappedViewId.value,
|
|
51
|
-
mappedActive,
|
|
52
|
-
mappedDisabled,
|
|
53
|
-
trigger: __props.trigger,
|
|
54
|
-
action: __props.action,
|
|
55
|
-
elRef
|
|
56
|
-
});
|
|
57
|
-
watch(
|
|
58
|
-
() => view?.active,
|
|
59
|
-
async (value) => {
|
|
60
|
-
if (value) {
|
|
61
|
-
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
62
|
-
toValue(elRef)?.$el?.blur();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
const keys = useMagicKeys();
|
|
67
|
-
if (options?.keyListener?.enter) {
|
|
68
|
-
for (const key of options.keyListener.enter) {
|
|
69
|
-
watch(keys[key], (value) => {
|
|
70
|
-
if (value) {
|
|
71
|
-
onEnter();
|
|
72
|
-
}
|
|
73
|
-
});
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
const keys = useMagicKeys();
|
|
85
|
+
if (options?.keyListener?.enter) {
|
|
86
|
+
for (const key of options.keyListener.enter) {
|
|
87
|
+
watch(keys[key], (value) => {
|
|
88
|
+
if (value) {
|
|
89
|
+
onEnter();
|
|
74
90
|
}
|
|
75
|
-
}
|
|
76
|
-
return (_ctx, _cache) => {
|
|
77
|
-
return _openBlock(), _createBlock(_unref(Primitive), {
|
|
78
|
-
ref_key: "elRef",
|
|
79
|
-
ref: elRef,
|
|
80
|
-
"data-id": `${mappedViewId.value}-trigger`,
|
|
81
|
-
"data-active": mappedActive.value,
|
|
82
|
-
"data-disabled": mappedDisabled.value,
|
|
83
|
-
"as-child": _ctx.asChild,
|
|
84
|
-
class: "magic-command-trigger",
|
|
85
|
-
onClick: _unref(onClick),
|
|
86
|
-
onMouseenter: _unref(onMouseenter)
|
|
87
|
-
}, {
|
|
88
|
-
default: _withCtx(() => [
|
|
89
|
-
_renderSlot(_ctx.$slots, "default", {
|
|
90
|
-
viewActive: _unref(view)?.active,
|
|
91
|
-
triggerDisabled: mappedDisabled.value
|
|
92
|
-
})
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
/* FORWARDED */
|
|
96
|
-
}, 8, ["data-id", "data-active", "data-disabled", "as-child", "onClick", "onMouseenter"]);
|
|
97
|
-
};
|
|
91
|
+
});
|
|
98
92
|
}
|
|
99
|
-
}
|
|
93
|
+
}
|
|
100
94
|
</script>
|
|
101
95
|
|
|
102
96
|
<style>
|
|
@@ -104,7 +98,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
104
98
|
cursor: var(--magic-command-trigger-cursor, pointer);
|
|
105
99
|
}
|
|
106
100
|
|
|
107
|
-
.magic-menu-trigger
|
|
101
|
+
.magic-menu-trigger[data-disabled='true'] {
|
|
108
102
|
pointer-events: none;
|
|
109
103
|
}
|
|
110
104
|
</style>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Primitive } from '@maas/vue-primitive';
|
|
1
2
|
import type { Interaction, Action } from '../types/index.js';
|
|
2
3
|
interface MagicCommandTriggerProps {
|
|
3
4
|
viewId?: string;
|
|
@@ -7,68 +8,32 @@ interface MagicCommandTriggerProps {
|
|
|
7
8
|
trigger?: Interaction[];
|
|
8
9
|
asChild?: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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;
|
|
55
|
-
};
|
|
56
|
-
rootEl: any;
|
|
11
|
+
declare const mappedViewId: import("vue").ComputedRef<string | undefined>;
|
|
12
|
+
declare const view: import("../types/index.js").CommandView | undefined;
|
|
13
|
+
declare const mappedActive: import("vue").ComputedRef<boolean>;
|
|
14
|
+
declare const mappedDisabled: import("vue").ComputedRef<boolean>;
|
|
15
|
+
declare const onMouseenter: () => Promise<void>, onClick: (e: MouseEvent) => Promise<void>;
|
|
16
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
17
|
+
declare var __VLS_12: {
|
|
18
|
+
viewActive: boolean | undefined;
|
|
19
|
+
triggerDisabled: boolean;
|
|
57
20
|
};
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
|
|
21
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
22
|
+
default?: (props: typeof __VLS_12) => any;
|
|
23
|
+
}>;
|
|
24
|
+
declare const __VLS_self: import("vue").DefineComponent<MagicCommandTriggerProps, {
|
|
25
|
+
Primitive: typeof Primitive;
|
|
26
|
+
mappedViewId: typeof mappedViewId;
|
|
27
|
+
view: typeof view;
|
|
28
|
+
mappedActive: typeof mappedActive;
|
|
29
|
+
mappedDisabled: typeof mappedDisabled;
|
|
30
|
+
onMouseenter: typeof onMouseenter;
|
|
31
|
+
onClick: typeof onClick;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicCommandTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
61
35
|
export default _default;
|
|
62
|
-
type
|
|
63
|
-
type __VLS_TypePropsToOption<T> = {
|
|
64
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
65
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
66
|
-
} : {
|
|
67
|
-
type: import('vue').PropType<T[K]>;
|
|
68
|
-
required: true;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
72
37
|
new (): {
|
|
73
38
|
$slots: S;
|
|
74
39
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div :data-id="mappedId" class="magic-menu-view">
|
|
3
|
+
<slot :view-active="view.active" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
5
8
|
import { computed, inject, onBeforeUnmount, provide, useId, watch } from "vue";
|
|
6
9
|
import { useCommandView } from "../composables/private/useCommandView";
|
|
7
10
|
import {
|
|
@@ -11,50 +14,35 @@ import {
|
|
|
11
14
|
MagicCommandItemId,
|
|
12
15
|
MagicCommandViewActive
|
|
13
16
|
} from "../symbols";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
() => view?.items,
|
|
41
|
-
() => {
|
|
42
|
-
sortViewItems(mappedId.value);
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
onBeforeUnmount(() => {
|
|
46
|
-
deleteView(mappedId.value);
|
|
47
|
-
});
|
|
48
|
-
return (_ctx, _cache) => {
|
|
49
|
-
return _openBlock(), _createElementBlock("div", {
|
|
50
|
-
id: mappedId.value,
|
|
51
|
-
class: "magic-menu-view"
|
|
52
|
-
}, [
|
|
53
|
-
_renderSlot(_ctx.$slots, "default", {
|
|
54
|
-
viewActive: _unref(view).active
|
|
55
|
-
})
|
|
56
|
-
], 8, _hoisted_1);
|
|
57
|
-
};
|
|
17
|
+
const { id, initial = false } = defineProps({
|
|
18
|
+
id: { type: String, required: false },
|
|
19
|
+
initial: { type: Boolean, required: false }
|
|
20
|
+
});
|
|
21
|
+
const parentTree = inject(MagicCommandParentTree, []);
|
|
22
|
+
const instanceId = inject(MagicCommandInstanceId, void 0);
|
|
23
|
+
const itemId = inject(MagicCommandItemId, void 0);
|
|
24
|
+
if (!instanceId) {
|
|
25
|
+
throw new Error("MagicCommandView must be nested inside MagicCommandProvider");
|
|
26
|
+
}
|
|
27
|
+
const mappedId = computed(() => id ?? `magic-command-view-${useId()}`);
|
|
28
|
+
const mappedParentTree = computed(() => [...parentTree, mappedId.value]);
|
|
29
|
+
const mappedActive = computed(() => view.active);
|
|
30
|
+
const { initializeView, deleteView, sortViewItems } = useCommandView(instanceId);
|
|
31
|
+
const view = initializeView({
|
|
32
|
+
id: mappedId.value,
|
|
33
|
+
parent: { views: parentTree, item: itemId ?? "" },
|
|
34
|
+
initial
|
|
35
|
+
});
|
|
36
|
+
provide(MagicCommandViewId, mappedId.value);
|
|
37
|
+
provide(MagicCommandViewActive, mappedActive);
|
|
38
|
+
provide(MagicCommandParentTree, mappedParentTree.value);
|
|
39
|
+
watch(
|
|
40
|
+
() => view?.items,
|
|
41
|
+
() => {
|
|
42
|
+
sortViewItems(mappedId.value);
|
|
58
43
|
}
|
|
44
|
+
);
|
|
45
|
+
onBeforeUnmount(() => {
|
|
46
|
+
deleteView(mappedId.value);
|
|
59
47
|
});
|
|
60
48
|
</script>
|
|
@@ -2,30 +2,23 @@ interface MagicCommandViewProps {
|
|
|
2
2
|
id?: string;
|
|
3
3
|
initial?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: HTMLDivElement;
|
|
5
|
+
declare const mappedId: import("vue").ComputedRef<string>;
|
|
6
|
+
declare const view: import("../types/index.js").CommandView;
|
|
7
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
|
+
declare var __VLS_1: {
|
|
9
|
+
viewActive: boolean;
|
|
14
10
|
};
|
|
15
|
-
type
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
}>;
|
|
14
|
+
declare const __VLS_self: import("vue").DefineComponent<MagicCommandViewProps, {
|
|
15
|
+
mappedId: typeof mappedId;
|
|
16
|
+
view: typeof view;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicCommandViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
20
|
export default _default;
|
|
19
|
-
type
|
|
20
|
-
type __VLS_TypePropsToOption<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
22
|
new (): {
|
|
30
23
|
$slots: S;
|
|
31
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MaybeRef } from 'vue';
|
|
1
|
+
import { type MaybeRef, type Ref } from 'vue';
|
|
2
2
|
interface IsElementAboveArgs {
|
|
3
3
|
element: MaybeRef<HTMLElement>;
|
|
4
4
|
ancestor?: HTMLElement;
|
|
@@ -15,7 +15,7 @@ interface ScrollInFromBottomArgs {
|
|
|
15
15
|
element: MaybeRef<HTMLElement>;
|
|
16
16
|
ancestor?: HTMLElement;
|
|
17
17
|
}
|
|
18
|
-
export declare function useCommandScroll(parent:
|
|
18
|
+
export declare function useCommandScroll(parent: Ref<HTMLElement | null>): {
|
|
19
19
|
findElement: (id: string) => HTMLElement | null;
|
|
20
20
|
findScrollableAncestor: (element: HTMLElement | null) => HTMLElement | undefined;
|
|
21
21
|
isElementAbove: (args: IsElementAboveArgs) => boolean;
|
|
@@ -8,7 +8,7 @@ type UseCommandTriggerArgs = {
|
|
|
8
8
|
mappedActive?: ComputedRef<boolean>;
|
|
9
9
|
trigger: Interaction[];
|
|
10
10
|
action: Action;
|
|
11
|
-
elRef: Ref<InstanceType<typeof Primitive> |
|
|
11
|
+
elRef: Ref<InstanceType<typeof Primitive> | null>;
|
|
12
12
|
};
|
|
13
13
|
export declare function useCommandTrigger(args: UseCommandTriggerArgs): {
|
|
14
14
|
onMouseenter: () => Promise<void>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { InjectionKey, MaybeRef } from 'vue';
|
|
1
|
+
import type { InjectionKey, MaybeRef, Ref } from 'vue';
|
|
2
2
|
import type { MagicCommandOptions } from '../types/index.js';
|
|
3
3
|
declare const MagicCommandInstanceId: InjectionKey<MaybeRef<string>>;
|
|
4
4
|
declare const MagicCommandParentTree: InjectionKey<string[]>;
|
|
5
5
|
declare const MagicCommandViewId: InjectionKey<string>;
|
|
6
|
-
declare const MagicCommandViewActive: InjectionKey<
|
|
6
|
+
declare const MagicCommandViewActive: InjectionKey<Ref<boolean>>;
|
|
7
7
|
declare const MagicCommandContentId: InjectionKey<string>;
|
|
8
8
|
declare const MagicCommandItemId: InjectionKey<string>;
|
|
9
|
-
declare const MagicCommandItemActive: InjectionKey<
|
|
10
|
-
declare const MagicCommandItemDisabled: InjectionKey<
|
|
9
|
+
declare const MagicCommandItemActive: InjectionKey<Ref<boolean>>;
|
|
10
|
+
declare const MagicCommandItemDisabled: InjectionKey<Ref<boolean>>;
|
|
11
11
|
declare const MagicCommandProviderOptions: InjectionKey<MagicCommandOptions>;
|
|
12
12
|
export { MagicCommandInstanceId, MagicCommandParentTree, MagicCommandViewId, MagicCommandViewActive, MagicCommandContentId, MagicCommandItemId, MagicCommandItemActive, MagicCommandItemDisabled, MagicCommandProviderOptions, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|