@xy-planning-network/trees 0.5.0-rc-1 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xy-planning-network/trees",
3
- "version": "0.5.0-rc-1",
3
+ "version": "0.5.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "repository": "github:xy-planning-network/trees",
@@ -51,7 +51,7 @@ const loadAndRender = (checkForContent: boolean): void => {
51
51
  if (checkForContent) hasContent.value = items.value.length != 0
52
52
  },
53
53
  () => {
54
- useAppFlasher().genericError()
54
+ useAppFlasher.genericError()
55
55
  }
56
56
  )
57
57
  }
@@ -107,7 +107,7 @@ const loadAndRender = (): void => {
107
107
  items.value = success.data.items
108
108
  },
109
109
  () => {
110
- useAppFlasher().genericError()
110
+ useAppFlasher.genericError()
111
111
  }
112
112
  )
113
113
  }
@@ -77,4 +77,10 @@ export declare function useFlashes(flasherConfig?: FlasherConfig): {
77
77
  */
78
78
  export declare const loadWindowFlashes: (flasher: Flasher) => void;
79
79
  export declare function useAppFlashes(): UseFlashes;
80
- export declare function useAppFlasher(): Flasher;
80
+ export declare const useAppFlasher: {
81
+ error(msg: string, persistent?: boolean | undefined): void;
82
+ info(msg: string, persistent?: boolean | undefined): void;
83
+ success(msg: string, persistent?: boolean | undefined): void;
84
+ warning(msg: string, persistent?: boolean | undefined): void;
85
+ genericError(email?: string | undefined, persistent?: boolean | undefined): void;
86
+ };
@@ -22,7 +22,7 @@ export declare function useSpinnerDisplay(): {
22
22
  hide: () => void;
23
23
  };
24
24
  export declare function useAppSpinnerDisplay(): UseSpinnerDisplay;
25
- export declare function useAppSpinner(): {
25
+ export declare const useAppSpinner: {
26
26
  show: (msgs?: string[] | undefined) => void;
27
27
  hide: () => void;
28
28
  };
@@ -1,12 +0,0 @@
1
- export interface Pagination {
2
- page: number;
3
- perPage: number;
4
- totalItems: number;
5
- totalPages: number;
6
- }
7
- export interface PaginationItems<T = any> {
8
- items: T[];
9
- }
10
- export interface PaginationData<T = any> {
11
- data: Pagination & PaginationItems<T>;
12
- }