narrat 2.3.2 → 2.3.5

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.
@@ -18,6 +18,7 @@ declare const _default: import("vue").DefineComponent<{}, {
18
18
  playing: () => boolean;
19
19
  errors: () => {
20
20
  text: string;
21
+ type: "error" | "warning" | "info";
21
22
  }[];
22
23
  playTime: () => {
23
24
  start: number;
@@ -90,11 +90,7 @@ declare const _default: {
90
90
  onComplete?: ((...args: any[]) => any) | undefined;
91
91
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "complete"[], "complete", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
92
92
  $slots: {
93
- oldElement: (_: {
94
- class: {
95
- [key: string]: any;
96
- };
97
- }) => any;
93
+ oldElement: (_: {}) => any;
98
94
  newElement: (_: {}) => any;
99
95
  };
100
96
  });
package/dist/config.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { AppOptions } from './types/app-types';
1
2
  import { TransitionSettings } from './utils/transition';
2
- export declare function setConfig(conf: Config): void;
3
+ export declare function loadConfig(options: AppOptions): Promise<void>;
3
4
  export declare function getConfig(): Config;
4
5
  export declare function getSkillConfig(id: string): SkillData;
5
6
  export declare function getImageUrl(imageKeyOrUrl: string): string;
@@ -13,6 +14,22 @@ export interface AppOptionsDeprecated {
13
14
  logging: boolean;
14
15
  debug: boolean;
15
16
  }
17
+ export interface SplitConfig {
18
+ screens: Config['screens'];
19
+ buttons: Config['buttons'];
20
+ skills: {
21
+ skills: Config['skills'];
22
+ options: Config['skillOptions'];
23
+ skillChecks: Config['skillChecks'];
24
+ };
25
+ scripts: Config['scripts'];
26
+ audio: {
27
+ files: Config['audio'];
28
+ options: Config['audioOptions'];
29
+ };
30
+ items: Config['items'];
31
+ quests: Config['quests'];
32
+ }
16
33
  export interface Config {
17
34
  baseAssetsPath?: string;
18
35
  baseDataPath?: string;