narrat 2.2.1 → 2.2.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.
@@ -345,6 +345,8 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
345
345
  notifications: import("pinia").Store<"notifications", import("./notification-store").NotificationsState, {}, {
346
346
  addNotification(text: string): Promise<void>;
347
347
  deleteNotification(id: string): void;
348
+ disableNotifications(): void;
349
+ enableNotifications(): void;
348
350
  }>;
349
351
  inventory: import("pinia").Store<"inventory", import("./inventory-store").InventoryState, {}, {
350
352
  generateSaveData(): import("./inventory-store").InventoryState;
@@ -5,8 +5,11 @@ export interface NotificationsState {
5
5
  notifications: {
6
6
  [key: string]: NotificationState;
7
7
  };
8
+ enabled: boolean;
8
9
  }
9
10
  export declare const useNotifications: import("pinia").StoreDefinition<"notifications", NotificationsState, {}, {
10
11
  addNotification(text: string): Promise<void>;
11
12
  deleteNotification(id: string): void;
13
+ disableNotifications(): void;
14
+ enableNotifications(): void;
12
15
  }>;
@@ -2,3 +2,5 @@ import { CommandPlugin } from './command-plugin';
2
2
  export declare const notifyPlugin: CommandPlugin<{
3
3
  text: string;
4
4
  }, {}>;
5
+ export declare const disableNotifications: CommandPlugin<{}, {}>;
6
+ export declare const enableNotifications: CommandPlugin<{}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narrat",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "narrat narrative engine",
5
5
  "main": "dist/narrat.umd.js",
6
6
  "module": "dist/narrat.es.js",