narrat 3.3.1 → 3.3.3

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 CHANGED
@@ -1,78 +1,13 @@
1
- import { PropType } from 'vue';
2
1
  import { AppOptions } from './types/app-types';
3
2
  declare const _default: import("vue").DefineComponent<{
4
- options: PropType<AppOptions>;
5
- }, {
6
- dialog: import("vue").ComputedRef<{
7
- speaker: string;
8
- text: string;
9
- pose?: string | undefined;
10
- cssClass?: string | undefined;
11
- choices?: {
12
- choice: string;
13
- originalIndex: number;
14
- allowed: boolean;
15
- }[] | undefined;
16
- textField?: boolean | undefined;
17
- interactive: boolean;
18
- id: string;
19
- }[]>;
20
- stack: import("vue").ComputedRef<{
21
- blocks: {
22
- currentIndex: number;
23
- branchData: {
24
- branch: {
25
- code: string;
26
- command: {
27
- commandType: string;
28
- operator: string;
29
- args: (import("./types/parser").Parser.Primitive | {
30
- code: string;
31
- command: any;
32
- fileName: string;
33
- line: number;
34
- })[];
35
- options: import("./types/parser").Parser.DefaultArg;
36
- staticOptions: {};
37
- };
38
- fileName: string;
39
- line: number;
40
- }[];
41
- args?: string[] | undefined;
42
- };
43
- }[];
44
- label: string;
45
- scope: {
46
- [key: string]: any;
47
- };
48
- returnValue: any;
49
- }[]>;
50
- flowState: import("vue").ComputedRef<"menu" | "engine-splash" | "game-splash" | "playing">;
51
- alerts: import("vue").ComputedRef<{
52
- title: string;
53
- text: string;
54
- resolver: () => void;
55
- id: string;
56
- }[]>;
57
- }, {
58
- lineTitle: string;
59
- lineText: string;
60
- }, {
61
- appStyle(): any;
62
- appClass(): any;
63
- currentLine: () => import("./types/parser").Parser.ParsedExpression<import("./types/parser").Parser.DefaultArg, {}> | undefined;
64
- gameScaleRatio: () => number;
65
- gameWidth: () => number;
66
- gameHeight: () => number;
67
- actualGameHeight: () => number;
68
- screenWidth: () => number;
69
- screenHeight: () => number;
70
- layoutMode: () => "horizontal" | "vertical";
71
- }, {
72
- closeAlert(id: string): void;
73
- engineSplashDone(): void;
74
- updateScreenSize(): void;
75
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
76
- options: PropType<AppOptions>;
3
+ options: {
4
+ type: import("vue").PropType<AppOptions>;
5
+ required: true;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ options: {
9
+ type: import("vue").PropType<AppOptions>;
10
+ required: true;
11
+ };
77
12
  }>>, {}, {}>;
78
13
  export default _default;
@@ -9,10 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  };
10
10
  video: {
11
11
  type: import("vue").PropType<{
12
+ loop?: boolean | undefined;
12
13
  width?: number | undefined;
13
14
  height?: number | undefined;
14
15
  muted?: boolean | undefined;
15
- loop?: boolean | undefined;
16
16
  autoplay?: boolean | undefined;
17
17
  video: string;
18
18
  } | undefined>;
@@ -29,10 +29,10 @@ declare const _default: import("vue").DefineComponent<{
29
29
  };
30
30
  video: {
31
31
  type: import("vue").PropType<{
32
+ loop?: boolean | undefined;
32
33
  width?: number | undefined;
33
34
  height?: number | undefined;
34
35
  muted?: boolean | undefined;
35
- loop?: boolean | undefined;
36
36
  autoplay?: boolean | undefined;
37
37
  video: string;
38
38
  } | undefined>;
@@ -5,6 +5,10 @@ export declare const AudioFileConfigSchema: import("@sinclair/typebox").TObject<
5
5
  volume: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
6
6
  rate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
7
7
  html5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
+ fadeInTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
9
+ fadeInDelay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
10
+ fadeOutTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
11
+ loop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
12
  }>;
9
13
  export type AudioFileConfig = Static<typeof AudioFileConfigSchema>;
10
14
  export declare const AudioRecordConfigSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
@@ -13,6 +17,10 @@ export declare const AudioRecordConfigSchema: import("@sinclair/typebox").TRecor
13
17
  volume: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
14
18
  rate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
15
19
  html5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
20
+ fadeInTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
21
+ fadeInDelay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
22
+ fadeOutTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
23
+ loop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
16
24
  }>>;
17
25
  export type AudioRecordConfig = Static<typeof AudioRecordConfigSchema>;
18
26
  export declare const AudioOptionsSchema: import("@sinclair/typebox").TObject<{
@@ -32,6 +40,10 @@ export declare const AudioInputConfigSchema: import("@sinclair/typebox").TObject
32
40
  volume: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
33
41
  rate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
34
42
  html5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
43
+ fadeInTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
44
+ fadeInDelay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
45
+ fadeOutTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
46
+ loop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35
47
  }>>;
36
48
  audioTriggers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
37
49
  options: import("@sinclair/typebox").TObject<{
@@ -185,6 +185,10 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TObject<{
185
185
  volume: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
186
186
  rate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
187
187
  html5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
188
+ fadeInTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
189
+ fadeInDelay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
190
+ fadeOutTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
191
+ loop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
188
192
  }>>;
189
193
  audioTriggers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
190
194
  options: import("@sinclair/typebox").TObject<{
@@ -91,8 +91,8 @@ export declare const defaultConfig: {
91
91
  screens: {
92
92
  screens: Record<string, {
93
93
  video?: {
94
- muted?: boolean | undefined;
95
94
  loop?: boolean | undefined;
95
+ muted?: boolean | undefined;
96
96
  } | undefined;
97
97
  buttons?: (string | ({
98
98
  text?: string | undefined;
@@ -279,10 +279,10 @@ export declare const defaultConfig: {
279
279
  textCss?: Record<string, any> | undefined;
280
280
  } | undefined;
281
281
  sprites?: Record<string, string | {
282
+ loop?: boolean | undefined;
282
283
  width?: number | undefined;
283
284
  height?: number | undefined;
284
285
  muted?: boolean | undefined;
285
- loop?: boolean | undefined;
286
286
  autoplay?: boolean | undefined;
287
287
  video: string;
288
288
  } | {
package/dist/config.d.ts CHANGED
@@ -7,6 +7,22 @@ export declare function setupConfig(configInput: ConfigInput): Promise<Config>;
7
7
  export declare function loadConfig(options: AppOptions): Promise<Config>;
8
8
  export declare function getConfig(): Config;
9
9
  export declare function audioConfig(): import("./config/audio-config").AudioConfig;
10
+ export declare function audioFileConfig(key: string): {
11
+ path?: string | undefined;
12
+ volume?: number | undefined;
13
+ rate?: number | undefined;
14
+ html5?: boolean | undefined;
15
+ fadeInTime?: number | undefined;
16
+ fadeInDelay?: number | undefined;
17
+ fadeOutTime?: number | undefined;
18
+ loop?: boolean | undefined;
19
+ src: string;
20
+ } | undefined;
21
+ export declare function getAudioFadeTimings(audio: string): {
22
+ fadeInDelay: number;
23
+ fadeInTime: number;
24
+ fadeOutTime: number;
25
+ };
10
26
  export declare function skillsConfig(): {
11
27
  skills: Record<string, {
12
28
  hidden?: boolean | undefined;
@@ -79,8 +95,8 @@ export declare function questsConfig(): {
79
95
  export declare function screensConfig(): {
80
96
  screens: Record<string, {
81
97
  video?: {
82
- muted?: boolean | undefined;
83
98
  loop?: boolean | undefined;
99
+ muted?: boolean | undefined;
84
100
  } | undefined;
85
101
  buttons?: (string | ({
86
102
  text?: string | undefined;
@@ -157,10 +173,10 @@ export declare function charactersConfig(): {
157
173
  textCss?: Record<string, any> | undefined;
158
174
  } | undefined;
159
175
  sprites?: Record<string, string | {
176
+ loop?: boolean | undefined;
160
177
  width?: number | undefined;
161
178
  height?: number | undefined;
162
179
  muted?: boolean | undefined;
163
- loop?: boolean | undefined;
164
180
  autoplay?: boolean | undefined;
165
181
  video: string;
166
182
  } | {