intelliwaketssveltekitv25 1.0.12 → 1.0.13

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.
@@ -75,7 +75,7 @@ export type TListGroupItem = {
75
75
  selected?: boolean;
76
76
  href?: string;
77
77
  strikeThrough?: boolean;
78
- linkClick?: (() => void | Promise<void>);
78
+ linkClick?: () => void | Promise<void>;
79
79
  /** undefined = don't show, null = show with spinner, number (0, 1, etc.) = show */
80
80
  badgeValue?: number | string | null;
81
81
  badgeColor?: TDefaultColorPalate | null;
@@ -149,7 +149,7 @@ export type TTableCol<T extends Record<string, any> = Record<string, any>> = Par
149
149
  export declare const ShowActivityOverlay: Pick<Writable<number>, "subscribe"> & {
150
150
  show: () => void;
151
151
  hide: () => void;
152
- execute: (action: () => Promise<void | unknown>) => Promise<void>;
152
+ execute: <T = void>(action: () => Promise<T>) => Promise<T>;
153
153
  reset: () => void;
154
154
  };
155
155
  export interface IMessageBoxStore {
@@ -32,8 +32,9 @@ const storeActivityOverlay = () => {
32
32
  hide: () => update((prevState) => (prevState < 2 ? 0 : prevState - 1)),
33
33
  execute: async (action) => {
34
34
  update((prevState) => (prevState < 0 ? 1 : prevState + 1));
35
- await action();
35
+ const result = await action();
36
36
  update((prevState) => (prevState < 2 ? 0 : prevState - 1));
37
+ return result;
37
38
  },
38
39
  reset: () => set(0)
39
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",