nuance-ui 0.1.20 → 0.1.22

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.1.20",
7
+ "version": "0.1.22",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -1,5 +1,6 @@
1
1
  import type { NuanceColor } from '@nui/types';
2
- import type { AsyncData } from '#app';
2
+ import type { AsyncData, NuxtError } from '#app';
3
+ import type { FetchError } from 'ofetch';
3
4
  export interface TreeModels {
4
5
  active: string | null;
5
6
  tree: TreeItem[];
@@ -13,7 +14,7 @@ export interface TreeEmits {
13
14
  * Required pass instance of `useFetch`/`useAsyncData` with `{ immediate: false }`
14
15
  * Root path will be queried immediate with path `/`
15
16
  */
16
- export type TreeLoader = (path: string) => AsyncData<TreeItem[], unknown>;
17
+ export type TreeLoader = (path: string) => AsyncData<TreeItem[] | undefined, FetchError<any> | NuxtError | undefined | null>;
17
18
  export type TreeItemType = 'file' | 'directory';
18
19
  export interface TreeItem {
19
20
  /** @IconifyIcon */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "A UI Library for Modern Web Apps, powered by Vue.",
5
5
  "repository": {
6
6
  "type": "git",