narrat 2.2.13 → 2.2.15
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 +8 -2
- package/dist/components/in-game.vue.d.ts +46 -0
- package/dist/components/save-slots.vue.d.ts +27 -6
- package/dist/components/saves/save-slot.vue.d.ts +108 -0
- package/dist/components/transitions/NarratTransition.vue.d.ts +3 -3
- package/dist/components/utils/alert-modal.vue.d.ts +82 -0
- package/dist/components/utils/modal.vue.d.ts +14 -2
- package/dist/components/utils/yes-no.vue.d.ts +106 -0
- package/dist/config.d.ts +3 -0
- package/dist/{lib/lib.d.ts → lib.d.ts} +4 -5
- package/dist/main.d.ts +1 -1
- package/dist/narrat.es.js +25080 -22082
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +94 -94
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +346 -10
- package/dist/stores/vm-store.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/types/game-save.d.ts +11 -5
- package/dist/utils/save-helpers.d.ts +13 -10
- package/dist/vm/commands/flow-commands.d.ts +6 -0
- package/package.json +88 -88
- package/README.md +0 -120
- package/dist/img/backgrounds/map.png +0 -0
- package/dist/img/backgrounds/narrat.png +0 -0
- package/dist/img/backgrounds/rpg.png +0 -0
- package/dist/img/backgrounds/test-layers.gif +0 -0
- package/dist/img/characters/cat_idle.jpg +0 -0
- package/dist/img/characters/helper_cat.png +0 -0
- package/dist/img/characters/inner_voice.png +0 -0
- package/dist/img/enemies/goblin.png +0 -0
- package/dist/img/enemies/skeleton.png +0 -0
- package/dist/img/enemies/slime.png +0 -0
- package/dist/img/h01.gif +0 -0
- package/dist/img/items/book.png +0 -0
- package/dist/img/items/bread.png +0 -0
- package/dist/img/levels/cave.png +0 -0
- package/dist/img/levels/dungeon.png +0 -0
- package/dist/img/levels/dungeon_F.png +0 -0
- package/dist/img/levels/dungeon_FL.png +0 -0
- package/dist/img/levels/dungeon_FR.png +0 -0
- package/dist/img/levels/dungeon_FRL.png +0 -0
- package/dist/img/levels/dungeon_LR.png +0 -0
- package/dist/img/levels/grass.png +0 -0
- package/dist/img/players/wizard.png +0 -0
- package/dist/img/skills/agility.jpg +0 -0
- package/dist/img/skills/logic.jpg +0 -0
- package/dist/img/splash-texture.png +0 -0
- package/dist/img/ui/energy.png +0 -0
- package/dist/img/ui/front.png +0 -0
- package/dist/img/ui/left.png +0 -0
- package/dist/img/ui/money.png +0 -0
- package/dist/img/ui/park-button.png +0 -0
- package/dist/img/ui/right.png +0 -0
- package/dist/img/ui/shop-button.png +0 -0
- package/dist/img/ui/start.png +0 -0
package/dist/app.vue.d.ts
CHANGED
|
@@ -51,6 +51,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
}[]>;
|
|
52
52
|
modal: import("vue").ComputedRef<string | false>;
|
|
53
53
|
flowState: import("vue").ComputedRef<"menu" | "playing">;
|
|
54
|
+
alerts: import("vue").ComputedRef<{
|
|
55
|
+
title: string;
|
|
56
|
+
text: string;
|
|
57
|
+
resolver: () => void;
|
|
58
|
+
id: string;
|
|
59
|
+
}[]>;
|
|
54
60
|
}, {
|
|
55
61
|
lineTitle: string;
|
|
56
62
|
lineText: string;
|
|
@@ -60,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
66
|
}, {
|
|
61
67
|
backgroundStyle(): any;
|
|
62
68
|
layoutWidth(): number;
|
|
63
|
-
|
|
69
|
+
isInGame(): boolean;
|
|
64
70
|
layoutHeight(): number;
|
|
65
71
|
backgroundSize(): {
|
|
66
72
|
width: number;
|
|
@@ -82,9 +88,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
88
|
leftOffset: () => number;
|
|
83
89
|
layoutMode: () => "horizontal" | "vertical";
|
|
84
90
|
}, {
|
|
91
|
+
closeAlert(id: string): void;
|
|
85
92
|
setupMachine(): Promise<void>;
|
|
86
93
|
updateScreenSize(): void;
|
|
87
|
-
closeModal(): void;
|
|
88
94
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
89
95
|
config: PropType<GameConfig>;
|
|
90
96
|
options: PropType<AppOptions>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
17
|
+
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & {
|
|
20
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
21
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
22
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
23
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
24
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
33
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
34
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
35
|
+
};
|
|
36
|
+
$forceUpdate: () => void;
|
|
37
|
+
$nextTick: typeof import("vue").nextTick;
|
|
38
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
39
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
40
|
+
__isFragment?: undefined;
|
|
41
|
+
__isTeleport?: undefined;
|
|
42
|
+
__isSuspense?: undefined;
|
|
43
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
+
$slots: {};
|
|
45
|
+
});
|
|
46
|
+
export default _default;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
new (...args: any[]): {
|
|
3
4
|
$: import("vue").ComponentInternalInstance;
|
|
4
5
|
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
mode: {
|
|
8
|
+
type: PropType<"load" | "pick">;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & {
|
|
6
12
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
7
13
|
onChosen?: ((...args: any[]) => any) | undefined;
|
|
8
14
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
@@ -19,10 +25,15 @@ declare const _default: {
|
|
|
19
25
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
20
26
|
$emit: (event: "close" | "chosen", ...args: any[]) => void;
|
|
21
27
|
$el: any;
|
|
22
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
mode: {
|
|
30
|
+
type: PropType<"load" | "pick">;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
}>> & {
|
|
23
34
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
24
35
|
onChosen?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
}, {},
|
|
36
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "chosen")[], string, {}> & {
|
|
26
37
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
27
38
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
28
39
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -42,17 +53,27 @@ declare const _default: {
|
|
|
42
53
|
$forceUpdate: () => void;
|
|
43
54
|
$nextTick: typeof import("vue").nextTick;
|
|
44
55
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
45
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
mode: {
|
|
58
|
+
type: PropType<"load" | "pick">;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
46
62
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
47
63
|
onChosen?: ((...args: any[]) => any) | undefined;
|
|
48
64
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
49
65
|
__isFragment?: undefined;
|
|
50
66
|
__isTeleport?: undefined;
|
|
51
67
|
__isSuspense?: undefined;
|
|
52
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
mode: {
|
|
70
|
+
type: PropType<"load" | "pick">;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
}>> & {
|
|
53
74
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
54
75
|
onChosen?: ((...args: any[]) => any) | undefined;
|
|
55
|
-
}, {},
|
|
76
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "chosen")[], "close" | "chosen", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
56
77
|
$slots: {};
|
|
57
78
|
});
|
|
58
79
|
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { GameSave } from '../../types/game-save';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (...args: any[]): {
|
|
5
|
+
$: import("vue").ComponentInternalInstance;
|
|
6
|
+
$data: {};
|
|
7
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
saveSlot: {
|
|
9
|
+
type: PropType<GameSave>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
id: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
actions: {
|
|
17
|
+
type: PropType<string[]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
23
|
+
$attrs: {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
$refs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$slots: Readonly<{
|
|
30
|
+
[name: string]: import("vue").Slot | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
33
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
34
|
+
$emit: (event: "choice", ...args: any[]) => void;
|
|
35
|
+
$el: any;
|
|
36
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
saveSlot: {
|
|
38
|
+
type: PropType<GameSave>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
id: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
actions: {
|
|
46
|
+
type: PropType<string[]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
}>> & {
|
|
50
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "choice"[], string, {}> & {
|
|
52
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
65
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
66
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
67
|
+
};
|
|
68
|
+
$forceUpdate: () => void;
|
|
69
|
+
$nextTick: typeof import("vue").nextTick;
|
|
70
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
71
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
+
saveSlot: {
|
|
73
|
+
type: PropType<GameSave>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
id: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
actions: {
|
|
81
|
+
type: PropType<string[]>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
}>> & {
|
|
85
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
87
|
+
__isFragment?: undefined;
|
|
88
|
+
__isTeleport?: undefined;
|
|
89
|
+
__isSuspense?: undefined;
|
|
90
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
saveSlot: {
|
|
92
|
+
type: PropType<GameSave>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
id: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
required: true;
|
|
98
|
+
};
|
|
99
|
+
actions: {
|
|
100
|
+
type: PropType<string[]>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
}>> & {
|
|
104
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "choice"[], "choice", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
106
|
+
$slots: {};
|
|
107
|
+
});
|
|
108
|
+
export default _default;
|
|
@@ -90,12 +90,12 @@ 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: {
|
|
93
|
+
oldElement: (_: {
|
|
94
94
|
class: {
|
|
95
95
|
[key: string]: any;
|
|
96
96
|
};
|
|
97
|
-
};
|
|
98
|
-
newElement: {};
|
|
97
|
+
}) => any;
|
|
98
|
+
newElement: (_: {}) => any;
|
|
99
99
|
};
|
|
100
100
|
});
|
|
101
101
|
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
15
|
+
$attrs: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
$refs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
$slots: Readonly<{
|
|
22
|
+
[name: string]: import("vue").Slot | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
25
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
26
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
27
|
+
$el: any;
|
|
28
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
33
|
+
text: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
37
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
38
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
51
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
52
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
53
|
+
};
|
|
54
|
+
$forceUpdate: () => void;
|
|
55
|
+
$nextTick: typeof import("vue").nextTick;
|
|
56
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
57
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
title: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: false;
|
|
61
|
+
};
|
|
62
|
+
text: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
required: false;
|
|
65
|
+
};
|
|
66
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
67
|
+
__isFragment?: undefined;
|
|
68
|
+
__isTeleport?: undefined;
|
|
69
|
+
__isSuspense?: undefined;
|
|
70
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
+
title: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
required: false;
|
|
74
|
+
};
|
|
75
|
+
text: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
79
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
80
|
+
$slots: {};
|
|
81
|
+
});
|
|
82
|
+
export default _default;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
containerCssClass: StringConstructor;
|
|
3
|
-
|
|
3
|
+
cantClose: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, unknown, unknown, {}, {
|
|
8
|
+
close(): void;
|
|
9
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
10
|
containerCssClass: StringConstructor;
|
|
5
|
-
|
|
11
|
+
cantClose: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
cantClose: boolean;
|
|
17
|
+
}>;
|
|
6
18
|
export default _default;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
prompt: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
onConfirm: {
|
|
11
|
+
type: FunctionConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
onRefuse: {
|
|
15
|
+
type: FunctionConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
}>> & {
|
|
19
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
21
|
+
$attrs: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
$refs: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
$slots: Readonly<{
|
|
28
|
+
[name: string]: import("vue").Slot | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
31
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
32
|
+
$emit: (event: "choice", ...args: any[]) => void;
|
|
33
|
+
$el: any;
|
|
34
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
prompt: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
onConfirm: {
|
|
40
|
+
type: FunctionConstructor;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
onRefuse: {
|
|
44
|
+
type: FunctionConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "choice"[], string, {}> & {
|
|
50
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
63
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
64
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
65
|
+
};
|
|
66
|
+
$forceUpdate: () => void;
|
|
67
|
+
$nextTick: typeof import("vue").nextTick;
|
|
68
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
69
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
prompt: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
onConfirm: {
|
|
75
|
+
type: FunctionConstructor;
|
|
76
|
+
required: false;
|
|
77
|
+
};
|
|
78
|
+
onRefuse: {
|
|
79
|
+
type: FunctionConstructor;
|
|
80
|
+
required: false;
|
|
81
|
+
};
|
|
82
|
+
}>> & {
|
|
83
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
85
|
+
__isFragment?: undefined;
|
|
86
|
+
__isTeleport?: undefined;
|
|
87
|
+
__isSuspense?: undefined;
|
|
88
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
89
|
+
prompt: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
onConfirm: {
|
|
94
|
+
type: FunctionConstructor;
|
|
95
|
+
required: false;
|
|
96
|
+
};
|
|
97
|
+
onRefuse: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
required: false;
|
|
100
|
+
};
|
|
101
|
+
}>> & {
|
|
102
|
+
onChoice?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "choice"[], "choice", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
104
|
+
$slots: {};
|
|
105
|
+
});
|
|
106
|
+
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import 'es6-promise/auto';
|
|
3
|
-
|
|
4
|
-
export * from '../main';
|
|
3
|
+
export * from './main';
|
|
5
4
|
export declare type Narrat = {
|
|
6
5
|
app: App;
|
|
7
6
|
};
|
|
@@ -10,6 +9,6 @@ declare global {
|
|
|
10
9
|
narrat: Narrat;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export * from '
|
|
12
|
+
export * from './exports/plugins';
|
|
13
|
+
export * from './exports/display';
|
|
14
|
+
export * from './exports/config';
|
package/dist/main.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'es6-promise/auto';
|
|
2
2
|
import 'virtual:windi.css';
|
|
3
|
-
import '
|
|
3
|
+
import './css/main.css';
|
|
4
4
|
import { GameConfig } from './types/app-types';
|
|
5
5
|
import { AppOptions } from './config';
|
|
6
6
|
export declare function startApp(config: GameConfig, options: AppOptions): Promise<void>;
|