narrat 2.12.1 → 2.13.0

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.
@@ -1707,6 +1707,12 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1707
1707
  notifications: import("pinia").Store<"notifications", import("./notification-store").NotificationsState, {}, {
1708
1708
  addNotification(text: string, description?: string | undefined, icon?: string | undefined): Promise<void>;
1709
1709
  deleteNotification(id: string): void;
1710
+ findNotifications(id: string): {
1711
+ id: string;
1712
+ text: string;
1713
+ description?: string | undefined;
1714
+ icon?: string | undefined;
1715
+ } | undefined;
1710
1716
  disableNotifications(): void;
1711
1717
  enableNotifications(): void;
1712
1718
  }>;
@@ -1,17 +1,22 @@
1
1
  export interface NotificationState {
2
+ id: string;
2
3
  text: string;
3
4
  description?: string;
4
5
  icon?: string;
5
6
  }
6
7
  export interface NotificationsState {
7
- notifications: {
8
- [key: string]: NotificationState;
9
- };
8
+ notifications: NotificationState[];
10
9
  enabled: boolean;
11
10
  }
12
11
  export declare const useNotifications: import("pinia").StoreDefinition<"notifications", NotificationsState, {}, {
13
12
  addNotification(text: string, description?: string, icon?: string): Promise<void>;
14
13
  deleteNotification(id: string): void;
14
+ findNotifications(id: string): {
15
+ id: string;
16
+ text: string;
17
+ description?: string | undefined;
18
+ icon?: string | undefined;
19
+ } | undefined;
15
20
  disableNotifications(): void;
16
21
  enableNotifications(): void;
17
22
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narrat",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "narrat narrative engine",
5
5
  "main": "dist/narrat.umd.js",
6
6
  "module": "dist/narrat.es.js",
@@ -40,7 +40,7 @@
40
40
  "dev": "pnpm run run-example default",
41
41
  "generate-types": "vue-tsc --emitDeclarationOnly --outDir dist && pnpm run fix-type-aliases",
42
42
  "fix-type-aliases": "tsc-alias -p tsconfig.json",
43
- "build": "rimraf lib && vite build && pnpm run generate-types",
43
+ "build": "rimraf lib && vue-tsc --noEmit && vite build && pnpm run generate-types",
44
44
  "preview": "vite preview",
45
45
  "lint": "eslint src --ext=.js,.jsx,.ts,.tsx",
46
46
  "preversion": "pnpm run build && pnpm run lint",