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.
- package/dist/app.vue.d.ts +13 -10
- package/dist/components/MainMenu.vue.d.ts +15 -12
- package/dist/components/SkillsWindow.vue.d.ts +13 -10
- package/dist/components/achievements/achievement-tile.vue.d.ts +9 -10
- package/dist/components/achievements/achievements-section.vue.d.ts +9 -26
- package/dist/components/dialog-picture.vue.d.ts +20 -56
- package/dist/components/game-dialog.vue.d.ts +17 -26
- package/dist/components/hud.vue.d.ts +1 -1
- package/dist/components/inventory/InventoryTab.vue.d.ts +13 -10
- package/dist/components/inventory/inventory-section.vue.d.ts +15 -36
- package/dist/components/inventory/item-details.vue.d.ts +15 -12
- package/dist/components/inventory-ui.vue.d.ts +17 -20
- package/dist/components/quests/QuestDetails.vue.d.ts +13 -10
- package/dist/components/quests/QuestDisplay.vue.d.ts +13 -10
- package/dist/components/quests/quests-list-section.vue.d.ts +11 -36
- package/dist/components/save-slots.vue.d.ts +15 -12
- package/dist/components/saves/save-slot-ui.vue.d.ts +23 -45
- package/dist/components/screen-layer.vue.d.ts +19 -32
- package/dist/components/screen-objects/screen-object.vue.d.ts +19 -32
- package/dist/components/screens/viewport-button.vue.d.ts +19 -32
- package/dist/components/screens.vue.d.ts +13 -10
- package/dist/components/settings/setting-widget.vue.d.ts +9 -10
- package/dist/components/skills/SkillDetails.vue.d.ts +17 -20
- package/dist/components/skills/SkillGridElement.vue.d.ts +17 -20
- package/dist/components/skills/SkillsGrid.vue.d.ts +17 -20
- package/dist/components/start-menu/start-menu-button.vue.d.ts +15 -12
- package/dist/components/tabs/SubTabController.vue.d.ts +11 -28
- package/dist/components/tabs/TabsController.vue.d.ts +11 -20
- package/dist/components/tabs/tab-selector.vue.d.ts +17 -20
- package/dist/components/utils/floating-tooltip.vue.d.ts +9 -76
- package/dist/config/common-config.d.ts +148 -0
- package/dist/config/config-input.d.ts +1494 -108
- package/dist/config/config-output.d.ts +5 -321
- package/dist/config.d.ts +14 -9
- package/dist/dialog-box.vue.d.ts +18 -27
- package/dist/examples/default/config/index.d.ts +3 -0
- package/dist/examples/demo/config/index.d.ts +3 -0
- package/dist/examples/empty/config/index.d.ts +3 -0
- package/dist/examples/godot/config/index.d.ts +3 -0
- package/dist/examples/rpg/config/index.d.ts +3 -0
- package/dist/exports/config.d.ts +1 -1
- package/dist/exports/utils.d.ts +1 -0
- package/dist/hmr/hmr.d.ts +3 -1
- package/dist/narrat.es.js +20611 -20497
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +134 -135
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/narrat-themes/NarratThemesPlugin.d.ts +2 -1
- package/dist/stores/config-store.d.ts +12 -3
- package/dist/stores/main-store.d.ts +3279 -1875
- package/dist/stores/settings-store.d.ts +11 -11
- package/dist/style.css +1 -1
- package/dist/types/app-types.d.ts +39 -6
- package/dist/utils/data-helpers.d.ts +249 -141
- package/dist/utils/type-utils.d.ts +3 -0
- package/package.json +4 -3
- /package/dist/examples/default/{scripts.d.ts → scripts/scripts.d.ts} +0 -0
- /package/dist/examples/demo/{scripts.d.ts → scripts/index.d.ts} +0 -0
- /package/dist/examples/empty/{scripts.d.ts → scripts/index.d.ts} +0 -0
- /package/dist/examples/godot/{scripts.d.ts → scripts/index.d.ts} +0 -0
- /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?:
|
|
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
|
|
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:
|
|
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
|
}>;
|