narrat 2.2.9 → 2.2.12
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/components/screen-layer.vue.d.ts +26 -4
- package/dist/components/transitions/NarratTransition.vue.d.ts +101 -0
- package/dist/config.d.ts +4 -0
- package/dist/constants.d.ts +2 -1
- package/dist/favicon.svg +30 -0
- package/dist/narrat.es.js +8083 -7933
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +66 -66
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +7 -7
- package/dist/stores/screens-store.d.ts +17 -5
- package/dist/style.css +1 -1
- package/dist/utils/transition.d.ts +15 -0
- package/dist/vm/commands/flow-commands.d.ts +1 -0
- package/dist/vm/commands/screen-commands.d.ts +4 -1
- package/package.json +5 -3
- package/dist/favicon.ico +0 -0
|
@@ -2,9 +2,15 @@ declare const _default: {
|
|
|
2
2
|
new (...args: any[]): {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
|
4
4
|
$data: {};
|
|
5
|
-
$props: Partial<{
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
transitioning: boolean;
|
|
7
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
6
8
|
layer: StringConstructor;
|
|
7
|
-
|
|
9
|
+
transitioning: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "transitioning">;
|
|
8
14
|
$attrs: {
|
|
9
15
|
[x: string]: unknown;
|
|
10
16
|
};
|
|
@@ -20,7 +26,13 @@ declare const _default: {
|
|
|
20
26
|
$el: any;
|
|
21
27
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
22
28
|
layer: StringConstructor;
|
|
23
|
-
|
|
29
|
+
transitioning: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
34
|
+
transitioning: boolean;
|
|
35
|
+
}> & {
|
|
24
36
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
37
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
26
38
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -42,13 +54,23 @@ declare const _default: {
|
|
|
42
54
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
43
55
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
44
56
|
layer: StringConstructor;
|
|
57
|
+
transitioning: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
45
61
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
46
62
|
__isFragment?: undefined;
|
|
47
63
|
__isTeleport?: undefined;
|
|
48
64
|
__isSuspense?: undefined;
|
|
49
65
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
50
66
|
layer: StringConstructor;
|
|
51
|
-
|
|
67
|
+
transitioning: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
72
|
+
transitioning: boolean;
|
|
73
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
52
74
|
$slots: {};
|
|
53
75
|
});
|
|
54
76
|
export default _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
name: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
duration: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
delay: NumberConstructor;
|
|
15
|
+
}>> & {
|
|
16
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
18
|
+
$attrs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
$refs: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
$slots: Readonly<{
|
|
25
|
+
[name: string]: import("vue").Slot | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
28
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
29
|
+
$emit: (event: "complete", ...args: any[]) => void;
|
|
30
|
+
$el: any;
|
|
31
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
name: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
duration: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
delay: NumberConstructor;
|
|
41
|
+
}>> & {
|
|
42
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "complete"[], string, {}> & {
|
|
44
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
57
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
58
|
+
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;
|
|
59
|
+
};
|
|
60
|
+
$forceUpdate: () => void;
|
|
61
|
+
$nextTick: typeof import("vue").nextTick;
|
|
62
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
63
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
name: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
duration: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
delay: NumberConstructor;
|
|
73
|
+
}>> & {
|
|
74
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
76
|
+
__isFragment?: undefined;
|
|
77
|
+
__isTeleport?: undefined;
|
|
78
|
+
__isSuspense?: undefined;
|
|
79
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
name: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
duration: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
delay: NumberConstructor;
|
|
89
|
+
}>> & {
|
|
90
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "complete"[], "complete", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
92
|
+
$slots: {
|
|
93
|
+
oldElement: {
|
|
94
|
+
class: {
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
newElement: {};
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransitionSettings } from './utils/transition';
|
|
1
2
|
export declare function setConfig(conf: Config): void;
|
|
2
3
|
export declare function getConfig(): Config;
|
|
3
4
|
export declare function getSkillConfig(id: string): SkillData;
|
|
@@ -89,6 +90,9 @@ export interface Config {
|
|
|
89
90
|
quests: {
|
|
90
91
|
[key: string]: QuestData;
|
|
91
92
|
};
|
|
93
|
+
transitions: {
|
|
94
|
+
[key: string]: TransitionSettings;
|
|
95
|
+
};
|
|
92
96
|
audioTriggers: {
|
|
93
97
|
[key: string]: string;
|
|
94
98
|
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare const PRE_SIGNAL = "###_--_~=:;";
|
|
|
3
3
|
export declare const JUMP_SIGNAL = "###_--_~=:;_JUMP";
|
|
4
4
|
export declare const RETURN_SIGNAL = "###_--_~=:;_RETURN";
|
|
5
5
|
export declare const OK_SIGNAL = "###_--_~=:;_OK";
|
|
6
|
-
export declare
|
|
6
|
+
export declare const STOP_SIGNAL = "###_--_~=:;_STOP";
|
|
7
|
+
export declare type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL | typeof STOP_SIGNAL;
|
|
7
8
|
export declare function isReturnSignal(s: string): s is ReturnSignal;
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Rat" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 595.3 595.3" style="enable-background:new 0 0 595.3 595.3;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#E23B33;}
|
|
7
|
+
</style>
|
|
8
|
+
<path id="Rat_Shape" class="st0" d="M556.9,82.5c-10.8-24.3-47-57.1-71.3-65.6c-24.3-8.4-64.1-0.3-88.7,22.3
|
|
9
|
+
c-20,18.4-26,28.2-29.1,37c-2.1,5.9-4.8,13.5-6,20.9v0c-0.5,4.1-4.5,7-8.6,6.1c-10.4-2.3-29.5-6-44.4-6.3
|
|
10
|
+
c-13.7-0.2-30.1,3.2-40.4,5.7c-4.5,1.1-8.8-2.2-8.8-6.8c-0.1-5.3-1.1-12.3-4.8-19.6c-8.5-16.9-19.6-32.6-57.8-47.4
|
|
11
|
+
c-31.9-12.4-75.1-9.7-100.8,1.8c-28.1,12.6-42.4,37.9-54,61.8c-14.4,29.8-14.9,83.6-6.4,104c12.8,30.7,35.8,47.2,52.6,53
|
|
12
|
+
c11.3,3.8,28.2,3.7,38.2,3.3c4.2-0.2,7.7,3.3,7.5,7.5c-0.7,13.6-0.9,41.5,7,61.4c7.7,19.4,29.7,62.3,50.7,101.2
|
|
13
|
+
c0,0.1-14.6,2.9-31.4,6.8c-23.9,5.5-52.6,12.7-54.3,13.7c-3.5,2.1-3,10-2.7,12c0.5,3.4,5.3,8.1,6.9,8.3c3.9,0.3,31.3-7.6,55.7-14.6
|
|
14
|
+
c18.5-5.3,34.9-9.3,35.5-8.2c5.1,9.3,10,18,14.4,25.8c5.2,9.1,10.7,16.4,14.1,23.6c1.1,2.3-16.6,5.8-32.5,14.7
|
|
15
|
+
c-16.4,9.1-29.7,21-32.3,24c-1.8,2.1-3,6-1.2,10.7c1.1,2.9,10,5.7,12.4,5.1c6.8-1.7,16.5-12.5,33.1-21.1
|
|
16
|
+
c16.3-8.5,32.9-14.9,33.8-13.6c9.7,14.3,16.9,21.6,22.6,31.2c9.8,16.5,27.3,45.9,46.6,39.5c6.4-2.1,31.1-33.6,53.3-68.6
|
|
17
|
+
c1.3-2.1,16.1,11.3,30.4,23.2c13.8,11.4,22.7,20.6,27.1,21.4c5.4,1,14.2-7.7,14.1-14.7c-0.1-2.7-14.3-13.8-29.1-26.2
|
|
18
|
+
c-14.5-12.1-30.1-22.8-29.2-24.3c7.6-12,14.5-23.7,20.1-33.9c4.3-7.8,8.9-16,13-24.7c0.6-1.2,15.9,3,31.4,7.1c15.3,4,26.7,10,31,8
|
|
19
|
+
c6.9-3,11.6-13.8,9.4-18.3c-1.1-2.3-17-7.3-33.2-12c-14.2-4.1-28-6.5-27.7-7.3c15.5-34,28.8-64.8,27.6-69.6
|
|
20
|
+
c-1.7-7.1,2.6-11.9,7-36.5c3.2-18.1,4.7-40.9,5.2-51.7c0.2-3.5,2.8-6.3,6.3-6.7c3.1-0.3,6.9-0.9,10.5-1.9c7.8-2,18.6-7.8,36.4-20.6
|
|
21
|
+
c17.9-12.8,38.7-49.6,44.4-67.8S567.6,106.8,556.9,82.5z M265.1,336.2c-8.1,4-13,7-26.4,9.6c-6.9,1.4-29.4-0.2-40.7-4.6
|
|
22
|
+
c-10.5-4.1-19.9-7.6-30-15.4s-15.7-13.2-15.7-15.3c0-4.4,6-9.4,11-9.4c5.1,0,14.5,9.2,29.7,16.6c14.3,7,17.9,6.1,25.4,7.3
|
|
23
|
+
c2.9,0.5,7.7,0.6,10.7,0.4c14.1-1.3,21.4-5.9,25.3-8.8c4-3,13.7-12.9,17.2-12.5c8,1,18.9,3.4,18.9,7.1
|
|
24
|
+
C290.4,319,273.2,332.1,265.1,336.2z M320.9,521.4c-4.3,3.7-17.7,13.5-23.3,13.5c-2.8,0-7.4-8.2-11.5-16.8
|
|
25
|
+
c-4.1-8.5-9.1-21.1-9.1-31.6c0-4.6,6-7.4,13.4-9.2c7.2-1.7,27.3-1.8,29.9-1.1c6.8,1.7,12.9,2.2,12.7,6.4c-0.4,12.7-7,18.9-8.3,24.3
|
|
26
|
+
C323.4,512.3,323.4,519.2,320.9,521.4z M431.1,320.3c-9.2,7.4-10.6,8.1-24.9,13.7c-11.3,4.4-28.6,5.8-41.6,3.6
|
|
27
|
+
c-12.2-2.1-22.3-4.6-29.5-10.1c-9.7-7.3-16.4-15.1-16.4-19.8c0-3.7,6.4-4.3,14.5-4.9c3.5-0.3,9.3,5.9,13.2,9.2
|
|
28
|
+
c8.1,6.8,14.8,8,28.8,9.9c2.9,0.4,7.8,0.4,10.7,0.1c7.5-0.9,12-0.4,25.8-8.2c20-11.2,17.8-14.4,25.1-12.6c2.2,0.6,5.8,1.2,5.6,5.6
|
|
29
|
+
C442.4,309,440.5,312.7,431.1,320.3z"/>
|
|
30
|
+
</svg>
|