@nuxt/ui 3.0.0-beta.1 → 3.0.0-beta.2

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/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.13.1"
6
6
  },
7
7
  "docs": "https://ui3.nuxt.dev/getting-started/installation/nuxt",
8
- "version": "3.0.0-beta.1",
8
+ "version": "3.0.0-beta.2",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue'
2
3
  import { useOverlay, type Overlay } from '../composables/useOverlay'
3
4
 
4
5
  const { overlays, unMount, close } = useOverlay()
@@ -19,7 +19,7 @@ interface OverlayInstance<T> {
19
19
  patch: (props: Partial<ComponentProps<T>>) => void;
20
20
  }
21
21
  declare function _useOverlay(): {
22
- overlays: any;
22
+ overlays: import("vue").ShallowReactive<Overlay[]>;
23
23
  open: <T extends Component>(id: symbol, props?: ComponentProps<T>) => Promise<any>;
24
24
  close: (id: symbol, value?: any) => void;
25
25
  create: <T extends Component>(component: T, _options?: OverlayOptions<ComponentProps<T>>) => OverlayInstance<T>;
@@ -1,3 +1,4 @@
1
+ import { reactive, markRaw, shallowReactive } from "vue";
1
2
  import { createSharedComposable } from "@vueuse/core";
2
3
  function _useOverlay() {
3
4
  const overlays = shallowReactive([]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
3
  "description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
4
- "version": "3.0.0-beta.1",
4
+ "version": "3.0.0-beta.2",
5
5
  "packageManager": "pnpm@10.5.2",
6
6
  "repository": {
7
7
  "type": "git",