narrat 3.2.5 → 3.2.6-alpha.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.
Files changed (58) hide show
  1. package/dist/app.vue.d.ts +1 -1
  2. package/dist/components/MainMenu.vue.d.ts +1 -1
  3. package/dist/components/SkillsWindow.vue.d.ts +1 -1
  4. package/dist/components/StartMenu.vue.d.ts +1 -1
  5. package/dist/components/achievements/achievement-tile.vue.d.ts +1 -1
  6. package/dist/components/achievements/achievements-section.vue.d.ts +1 -1
  7. package/dist/components/achievements/achievements-ui.vue.d.ts +1 -1
  8. package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +1 -1
  9. package/dist/components/debug/debug-menu.vue.d.ts +1 -1
  10. package/dist/components/dialog-picture.vue.d.ts +1 -1
  11. package/dist/components/engine-splash/engine-splash.vue.d.ts +1 -1
  12. package/dist/components/game-dialog.vue.d.ts +1 -1
  13. package/dist/components/game-splash/game-splash.vue.d.ts +1 -1
  14. package/dist/components/hud.vue.d.ts +1 -1
  15. package/dist/components/in-game.vue.d.ts +1 -1
  16. package/dist/components/inventory/inventory-section.vue.d.ts +1 -1
  17. package/dist/components/inventory/item-details.vue.d.ts +1 -1
  18. package/dist/components/inventory-ui.vue.d.ts +1 -1
  19. package/dist/components/loading-bar.vue.d.ts +1 -1
  20. package/dist/components/menu-buttons.vue.d.ts +1 -1
  21. package/dist/components/notification-toast.vue.d.ts +1 -1
  22. package/dist/components/quests/QuestDetails.vue.d.ts +1 -1
  23. package/dist/components/quests/QuestDisplay.vue.d.ts +1 -1
  24. package/dist/components/quests/quests-list-section.vue.d.ts +1 -1
  25. package/dist/components/quests-ui.vue.d.ts +1 -1
  26. package/dist/components/save-slots.vue.d.ts +1 -1
  27. package/dist/components/saves/save-slot-ui.vue.d.ts +1 -1
  28. package/dist/components/screen-layer.vue.d.ts +1 -1
  29. package/dist/components/screen-objects/screen-object.vue.d.ts +1 -1
  30. package/dist/components/screens.vue.d.ts +1 -1
  31. package/dist/components/settings/setting-widget.vue.d.ts +1 -1
  32. package/dist/components/settings/settings-menu.vue.d.ts +1 -1
  33. package/dist/components/tabs/TabsController.vue.d.ts +1 -1
  34. package/dist/components/tabs/tab-selector.vue.d.ts +1 -1
  35. package/dist/components/tooltips/tooltips-ui.vue.d.ts +1 -1
  36. package/dist/components/transitions/NarratTransition.vue.d.ts +1 -1
  37. package/dist/components/utils/alert-modal.vue.d.ts +1 -1
  38. package/dist/components/utils/floating-tooltip.vue.d.ts +1 -1
  39. package/dist/components/utils/modal-window.vue.d.ts +1 -1
  40. package/dist/components/utils/yes-no.vue.d.ts +1 -1
  41. package/dist/components/volume-controls.vue.d.ts +1 -1
  42. package/dist/config/characters-config.d.ts +2 -0
  43. package/dist/config/config-input.d.ts +2 -0
  44. package/dist/config/config-output.d.ts +10 -8
  45. package/dist/config.d.ts +11 -9
  46. package/dist/constants.d.ts +3 -0
  47. package/dist/dialog-box.vue.d.ts +1 -1
  48. package/dist/narrat.es.js +43337 -40181
  49. package/dist/narrat.es.js.map +1 -1
  50. package/dist/narrat.umd.js +159 -165
  51. package/dist/narrat.umd.js.map +1 -1
  52. package/dist/stores/config-store.d.ts +10 -1
  53. package/dist/stores/main-store.d.ts +40 -0
  54. package/dist/types/game-save.d.ts +2 -0
  55. package/dist/utils/save-helpers.d.ts +1 -1
  56. package/dist/vm/commands/util-commands.d.ts +6 -0
  57. package/package.json +4 -5
  58. package/dist/types/state.d.ts +0 -3
@@ -1,7 +1,16 @@
1
1
  import { Config } from '../config/config-output';
2
+ export type ConfigStoreSave = {
3
+ playerCharacter: string;
4
+ gameCharacter: string;
5
+ };
2
6
  export declare const useConfig: import("pinia").StoreDefinition<"config", {
3
7
  config: Config;
4
- }, {}, {
8
+ }, {
9
+ playerCharacter(): string;
10
+ gameCharacter(): string;
11
+ }, {
5
12
  setConfig(config: Config): Promise<void>;
6
13
  extendConfig(config: Partial<Config>): void;
14
+ generateSaveData(): ConfigStoreSave;
15
+ loadSaveData(saveData: ConfigStoreSave): void;
7
16
  }>;
@@ -177,6 +177,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
177
177
  [key: string]: any;
178
178
  };
179
179
  };
180
+ config: {
181
+ playerCharacter: string;
182
+ gameCharacter: string;
183
+ };
180
184
  };
181
185
  global: {
182
186
  achievements: {
@@ -326,6 +330,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
326
330
  [key: string]: any;
327
331
  };
328
332
  };
333
+ config: {
334
+ playerCharacter: string;
335
+ gameCharacter: string;
336
+ };
329
337
  };
330
338
  global: {
331
339
  achievements: {
@@ -475,6 +483,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
475
483
  [key: string]: any;
476
484
  };
477
485
  };
486
+ config: {
487
+ playerCharacter: string;
488
+ gameCharacter: string;
489
+ };
478
490
  };
479
491
  global: {
480
492
  achievements: {
@@ -662,6 +674,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
662
674
  [key: string]: any;
663
675
  };
664
676
  };
677
+ config: {
678
+ playerCharacter: string;
679
+ gameCharacter: string;
680
+ };
665
681
  };
666
682
  global: {
667
683
  achievements: {
@@ -811,6 +827,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
811
827
  [key: string]: any;
812
828
  };
813
829
  };
830
+ config: {
831
+ playerCharacter: string;
832
+ gameCharacter: string;
833
+ };
814
834
  };
815
835
  global: {
816
836
  achievements: {
@@ -960,6 +980,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
960
980
  [key: string]: any;
961
981
  };
962
982
  };
983
+ config: {
984
+ playerCharacter: string;
985
+ gameCharacter: string;
986
+ };
963
987
  };
964
988
  global: {
965
989
  achievements: {
@@ -1109,6 +1133,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1109
1133
  [key: string]: any;
1110
1134
  };
1111
1135
  };
1136
+ config: {
1137
+ playerCharacter: string;
1138
+ gameCharacter: string;
1139
+ };
1112
1140
  };
1113
1141
  global: {
1114
1142
  achievements: {
@@ -1259,6 +1287,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1259
1287
  [key: string]: any;
1260
1288
  };
1261
1289
  };
1290
+ config: {
1291
+ playerCharacter: string;
1292
+ gameCharacter: string;
1293
+ };
1262
1294
  };
1263
1295
  global: {
1264
1296
  achievements: {
@@ -1408,6 +1440,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1408
1440
  [key: string]: any;
1409
1441
  };
1410
1442
  };
1443
+ config: {
1444
+ playerCharacter: string;
1445
+ gameCharacter: string;
1446
+ };
1411
1447
  };
1412
1448
  global: {
1413
1449
  achievements: {
@@ -1557,6 +1593,10 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
1557
1593
  [key: string]: any;
1558
1594
  };
1559
1595
  };
1596
+ config: {
1597
+ playerCharacter: string;
1598
+ gameCharacter: string;
1599
+ };
1560
1600
  };
1561
1601
  global: {
1562
1602
  achievements: {
@@ -10,6 +10,7 @@ import { ScreenObjectsStoreSave } from '../stores/screen-objects-store';
10
10
  import { VMSave } from '../stores/vm-store';
11
11
  import { AchievementsSave } from '../stores/achievements-store';
12
12
  import { GameUserSettingsSave } from '../stores/settings-store';
13
+ import { ConfigStoreSave } from '../stores/config-store';
13
14
  export interface SaveSlot {
14
15
  slotType: 'manual' | 'auto';
15
16
  id: string;
@@ -31,6 +32,7 @@ export type GameSave = {
31
32
  metadata: SaveSlotMetadata;
32
33
  screenObjects: ScreenObjectsStoreSave;
33
34
  settings: GameUserSettingsSave;
35
+ config: ConfigStoreSave;
34
36
  };
35
37
  export type GlobalGameSave = {
36
38
  achievements: AchievementsSave;
@@ -1,5 +1,5 @@
1
1
  import { GameSave, GlobalGameSave, SaveFile, SaveSlotMetadata } from '../types/game-save';
2
- export declare const CURRENT_SAVE_VERSION = "2.17.0";
2
+ export declare const CURRENT_SAVE_VERSION = "3.2.3";
3
3
  export declare function saveFileName(): string;
4
4
  export declare function getSaveFile(): SaveFile;
5
5
  export declare function resetSave(): void;
@@ -2,3 +2,9 @@ import { CommandPlugin } from './command-plugin';
2
2
  export declare const loadDataPlugin: CommandPlugin<{
3
3
  url: string;
4
4
  }, {}>;
5
+ export declare const changePlayerCharacterPlugin: CommandPlugin<{
6
+ character: string;
7
+ }, {}>;
8
+ export declare const changeGameCharacterPlugin: CommandPlugin<{
9
+ character: string;
10
+ }, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narrat",
3
- "version": "3.2.5",
3
+ "version": "3.2.6-alpha.2",
4
4
  "description": "narrat narrative engine",
5
5
  "main": "dist/narrat.umd.js",
6
6
  "module": "dist/narrat.es.js",
@@ -59,16 +59,15 @@
59
59
  "vue": "^3.2.37"
60
60
  },
61
61
  "dependencies": {
62
- "@sinclair/typebox": "^0.24.28",
62
+ "@sinclair/typebox": "^0.29.1",
63
63
  "ajv": "^8.11.0",
64
64
  "ajv-formats": "^2.1.1",
65
65
  "clone-deep": "^4.0.1",
66
- "deepmerge": "^4.2.2",
66
+ "deepmerge": "^4.3.1",
67
67
  "fuse.js": "^6.6.2",
68
68
  "howler": "^2.2.3",
69
69
  "js-yaml": "^4.1.0",
70
- "svelte-jsoneditor": "^0.3.58",
71
- "vue3-mq": "^3.0.0"
70
+ "vanilla-jsoneditor": "^0.17.8"
72
71
  },
73
72
  "devDependencies": {
74
73
  "@pinia/testing": "^0.0.16",
@@ -1,3 +0,0 @@
1
- export interface Vue {
2
- $mq: 'sm' | 'md' | 'lg';
3
- }