narrat 3.5.0 → 3.6.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.
Files changed (61) hide show
  1. package/dist/app.vue.d.ts +13 -10
  2. package/dist/components/MainMenu.vue.d.ts +15 -12
  3. package/dist/components/SkillsWindow.vue.d.ts +13 -10
  4. package/dist/components/achievements/achievement-tile.vue.d.ts +9 -10
  5. package/dist/components/achievements/achievements-section.vue.d.ts +9 -26
  6. package/dist/components/dialog-picture.vue.d.ts +20 -56
  7. package/dist/components/game-dialog.vue.d.ts +17 -26
  8. package/dist/components/hud.vue.d.ts +1 -1
  9. package/dist/components/inventory/InventoryTab.vue.d.ts +13 -10
  10. package/dist/components/inventory/inventory-section.vue.d.ts +15 -36
  11. package/dist/components/inventory/item-details.vue.d.ts +15 -12
  12. package/dist/components/inventory-ui.vue.d.ts +17 -20
  13. package/dist/components/quests/QuestDetails.vue.d.ts +13 -10
  14. package/dist/components/quests/QuestDisplay.vue.d.ts +13 -10
  15. package/dist/components/quests/quests-list-section.vue.d.ts +11 -36
  16. package/dist/components/save-slots.vue.d.ts +15 -12
  17. package/dist/components/saves/save-slot-ui.vue.d.ts +23 -45
  18. package/dist/components/screen-layer.vue.d.ts +19 -32
  19. package/dist/components/screen-objects/screen-object.vue.d.ts +19 -32
  20. package/dist/components/screens/viewport-button.vue.d.ts +19 -32
  21. package/dist/components/screens.vue.d.ts +13 -10
  22. package/dist/components/settings/setting-widget.vue.d.ts +9 -10
  23. package/dist/components/skills/SkillDetails.vue.d.ts +17 -20
  24. package/dist/components/skills/SkillGridElement.vue.d.ts +17 -20
  25. package/dist/components/skills/SkillsGrid.vue.d.ts +17 -20
  26. package/dist/components/start-menu/start-menu-button.vue.d.ts +15 -12
  27. package/dist/components/tabs/SubTabController.vue.d.ts +11 -28
  28. package/dist/components/tabs/TabsController.vue.d.ts +11 -20
  29. package/dist/components/tabs/tab-selector.vue.d.ts +17 -20
  30. package/dist/components/utils/floating-tooltip.vue.d.ts +9 -76
  31. package/dist/config/common-config.d.ts +148 -0
  32. package/dist/config/config-input.d.ts +1494 -108
  33. package/dist/config/config-output.d.ts +5 -321
  34. package/dist/config.d.ts +14 -9
  35. package/dist/dialog-box.vue.d.ts +18 -27
  36. package/dist/examples/default/config/index.d.ts +3 -0
  37. package/dist/examples/demo/config/index.d.ts +3 -0
  38. package/dist/examples/empty/config/index.d.ts +3 -0
  39. package/dist/examples/godot/config/index.d.ts +3 -0
  40. package/dist/examples/rpg/config/index.d.ts +3 -0
  41. package/dist/exports/config.d.ts +1 -1
  42. package/dist/exports/utils.d.ts +1 -0
  43. package/dist/hmr/hmr.d.ts +3 -1
  44. package/dist/narrat.es.js +20611 -20497
  45. package/dist/narrat.es.js.map +1 -1
  46. package/dist/narrat.umd.js +134 -135
  47. package/dist/narrat.umd.js.map +1 -1
  48. package/dist/plugins/narrat-themes/NarratThemesPlugin.d.ts +2 -1
  49. package/dist/stores/config-store.d.ts +12 -3
  50. package/dist/stores/main-store.d.ts +3279 -1875
  51. package/dist/stores/settings-store.d.ts +11 -11
  52. package/dist/style.css +1 -1
  53. package/dist/types/app-types.d.ts +39 -6
  54. package/dist/utils/data-helpers.d.ts +249 -141
  55. package/dist/utils/type-utils.d.ts +3 -0
  56. package/package.json +4 -3
  57. /package/dist/examples/default/{scripts.d.ts → scripts/scripts.d.ts} +0 -0
  58. /package/dist/examples/demo/{scripts.d.ts → scripts/index.d.ts} +0 -0
  59. /package/dist/examples/empty/{scripts.d.ts → scripts/index.d.ts} +0 -0
  60. /package/dist/examples/godot/{scripts.d.ts → scripts/index.d.ts} +0 -0
  61. /package/dist/examples/rpg/{scripts.d.ts → scripts/index.d.ts} +0 -0
@@ -1,9 +1,10 @@
1
1
  import { Config } from '../../config/config-output';
2
2
  import { NarratPlugin } from '../NarratPlugin';
3
3
  import { CommandPlugin } from '../../vm/commands/command-plugin';
4
+ import { DeepPartial } from '../../utils/type-utils';
4
5
  export type BaseTheme = {
5
6
  id: string;
6
- extendedConfig?: Partial<Config>;
7
+ extendedConfig?: DeepPartial<Config>;
7
8
  };
8
9
  export type InlineTheme = BaseTheme & {
9
10
  css: string;
@@ -1,16 +1,25 @@
1
1
  import { Config } from '../config/config-output';
2
+ import { DeepPartial } from '../utils/type-utils';
2
3
  export type ConfigStoreSave = {
3
4
  playerCharacter: string;
4
5
  gameCharacter: string;
5
6
  };
6
- export declare const useConfig: import("pinia").StoreDefinition<"config", {
7
+ export interface ConfigModule {
8
+ id: string;
9
+ code: string;
10
+ }
11
+ export interface ConfigStore {
7
12
  config: Config;
8
- }, {
13
+ configModules: Record<string, ConfigModule>;
14
+ }
15
+ export declare const useConfig: import("pinia").StoreDefinition<"config", ConfigStore, {
9
16
  playerCharacter(): string;
10
17
  gameCharacter(): string;
11
18
  }, {
12
19
  setConfig(config: Config): Promise<void>;
13
- extendConfig(config: Partial<Config>): void;
20
+ extendConfig(config: DeepPartial<Config>): void;
14
21
  generateSaveData(): ConfigStoreSave;
22
+ addConfigModule(key: string, module: ConfigModule): void;
23
+ reloadConfigModule(module: ConfigModule): void;
15
24
  loadSaveData(saveData: ConfigStoreSave): void;
16
25
  }>;