narrat 3.0.2 → 3.1.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.
@@ -1589,8 +1589,8 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1589
1589
  finishTransition(layer: number): void;
1590
1590
  transitionScreen(screen: string, transition: import("../utils/transition").AddTransition, layer?: number | undefined): Promise<void>;
1591
1591
  emptyLayer(layer: number, transition?: import("../utils/transition").AddTransition | undefined): Promise<void>;
1592
- setButtons(config: import("../config/config-output").Config): void;
1593
- reset(config: import("../config/config-output").Config): void;
1592
+ setButtons(config: import("../lib").Config): void;
1593
+ reset(config: import("../lib").Config): void;
1594
1594
  changeButton(button: string, newValue: import("./screens-store").ButtonStateValue): void;
1595
1595
  generateSaveData(): import("./screens-store").ScreenSave;
1596
1596
  loadSaveData(data: import("./screens-store").ScreenSave): void;
@@ -1946,9 +1946,11 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1946
1946
  }): {
1947
1947
  [key: string]: import("./screen-objects-store").ScreenObjectState;
1948
1948
  };
1949
+ emptyLayer(layer: number): void;
1950
+ emptyAllLayers(): void;
1949
1951
  }>;
1950
1952
  settings: import("pinia").Store<"settings", import("./settings-store").GameUserSettings, {}, {
1951
- reset(config: import("../config/config-output").Config): void;
1953
+ reset(config: import("../lib").Config): void;
1952
1954
  getSetting(key: string): any;
1953
1955
  getSettingSchema(key: string): ({
1954
1956
  description?: string | undefined;
@@ -2015,7 +2017,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
2015
2017
  });
2016
2018
  };
2017
2019
  setSetting(key: string, value: any): void;
2018
- setupSettings(config: import("../config/config-output").Config): void;
2020
+ setupSettings(config: import("../lib").Config): void;
2019
2021
  addCustomSetting(key: string, schema: ({
2020
2022
  description?: string | undefined;
2021
2023
  name: string;
@@ -77,4 +77,6 @@ export declare const useScreenObjects: import("pinia").StoreDefinition<"screenOb
77
77
  }): {
78
78
  [key: string]: ScreenObjectState;
79
79
  };
80
+ emptyLayer(layer: number): void;
81
+ emptyAllLayers(): void;
80
82
  }>;
@@ -23,7 +23,7 @@ export declare function getModifiableDataPinia(): {
23
23
  scope: {
24
24
  [key: string]: any;
25
25
  };
26
- config: import("../config/config-output").Config;
26
+ config: import("../lib").Config;
27
27
  gameOptions: {
28
28
  baseAssetsPath?: string | undefined;
29
29
  baseDataPath?: string | undefined;
@@ -14,3 +14,6 @@ export declare const createObjectCommand: CommandPlugin<{
14
14
  export declare const deleteSpriteCommand: CommandPlugin<{
15
15
  sprite: ScreenObjectState;
16
16
  }, {}>;
17
+ export declare const emptySpritesCommand: CommandPlugin<{
18
+ layer?: number | undefined;
19
+ }, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narrat",
3
- "version": "3.0.2",
3
+ "version": "3.1.1",
4
4
  "description": "narrat narrative engine",
5
5
  "main": "dist/narrat.umd.js",
6
6
  "module": "dist/narrat.es.js",