narrat 3.2.7 → 3.2.9
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/debug/debug-jumping.vue.d.ts +5 -0
- package/dist/components/debug/debug-menu.vue.d.ts +3 -8
- package/dist/components/game-dialog.vue.d.ts +26 -8
- package/dist/components/save-slots.vue.d.ts +2 -3
- package/dist/components/saves/save-slot-ui.vue.d.ts +23 -3
- package/dist/components/screen-layer.vue.d.ts +7 -0
- package/dist/components/screen-objects/screen-object.vue.d.ts +15 -0
- package/dist/components/screens/screen-types.d.ts +5 -0
- package/dist/components/screens/viewport-button.vue.d.ts +35 -0
- package/dist/components/screens.vue.d.ts +12 -1
- package/dist/components/start-menu/start-menu-button.vue.d.ts +15 -0
- package/dist/components/start-menu/start-menu-types.d.ts +5 -0
- package/dist/config/common-config.d.ts +2 -0
- package/dist/config/config-input.d.ts +1 -0
- package/dist/dialog-box.vue.d.ts +9 -0
- package/dist/inputs/Inputs.d.ts +1 -0
- package/dist/inputs/useNavigation.d.ts +12 -4
- package/dist/narrat.es.js +22421 -22044
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +111 -111
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/inputs-store.d.ts +4 -3
- package/dist/stores/main-store.d.ts +19 -2
- package/dist/stores/screen-objects-store.d.ts +1 -0
- package/dist/stores/screens-store.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/utils/math-utils.d.ts +1 -0
- package/dist/utils/viewport-utils.d.ts +2 -0
- package/package.json +11 -11
- package/dist/stores/gamepad-store.d.ts +0 -11
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "jump")[], "close" | "jump", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
onJump?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Parser } from '../../types/parser';
|
|
2
|
+
import { InputListener } from '../../stores/inputs-store';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
4
|
skills: import("vue").ComputedRef<import("../../stores/skills").SkillsState>;
|
|
4
5
|
skillChecks: import("vue").ComputedRef<{
|
|
@@ -7,9 +8,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
7
8
|
}, {
|
|
8
9
|
showDebug: boolean;
|
|
9
10
|
jumping: boolean;
|
|
10
|
-
|
|
11
|
-
matches: string[];
|
|
12
|
-
matchCursor: number;
|
|
11
|
+
inputListener: InputListener | null;
|
|
13
12
|
}, {
|
|
14
13
|
labels(): string[];
|
|
15
14
|
script(): Parser.ParsedScript;
|
|
@@ -28,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
28
27
|
flowState: () => "menu" | "engine-splash" | "game-splash" | "playing";
|
|
29
28
|
data: () => import("../../stores/vm-store").DataState;
|
|
30
29
|
}, {
|
|
31
|
-
|
|
30
|
+
closeJumping(): void;
|
|
32
31
|
labelSelected(event: any): void;
|
|
33
32
|
close(): void;
|
|
34
33
|
closeErrors(): void;
|
|
@@ -37,10 +36,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
37
36
|
startDebug(): void;
|
|
38
37
|
endDebug(): void;
|
|
39
38
|
jump(): void;
|
|
40
|
-
getMatchResultStyle(index: number): {
|
|
41
|
-
background: string;
|
|
42
|
-
} | undefined;
|
|
43
|
-
onSearchInput(): void;
|
|
44
39
|
save(): void;
|
|
45
40
|
resetSave(): void;
|
|
46
41
|
resetGlobalSave(): void;
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputListener } from '../stores/inputs-store';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
layoutMode:
|
|
4
|
-
|
|
3
|
+
layoutMode: {
|
|
4
|
+
type: import("vue").PropType<"horizontal" | "vertical">;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
inGame: {
|
|
8
|
+
type: import("vue").PropType<boolean>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
inputListener: {
|
|
12
|
+
type: import("vue").PropType<InputListener>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
5
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
-
layoutMode:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
layoutMode: {
|
|
17
|
+
type: import("vue").PropType<"horizontal" | "vertical">;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
inGame: {
|
|
21
|
+
type: import("vue").PropType<boolean>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
inputListener: {
|
|
25
|
+
type: import("vue").PropType<InputListener>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>>, {}, {}>;
|
|
11
29
|
export default _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
mode: {
|
|
4
|
-
type: PropType<"load" | "pick">;
|
|
3
|
+
type: import("vue").PropType<"load" | "pick">;
|
|
5
4
|
required: true;
|
|
6
5
|
};
|
|
7
6
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "chosen")[], "close" | "chosen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
7
|
mode: {
|
|
9
|
-
type: PropType<"load" | "pick">;
|
|
8
|
+
type: import("vue").PropType<"load" | "pick">;
|
|
10
9
|
required: true;
|
|
11
10
|
};
|
|
12
11
|
}>> & {
|
|
@@ -1,32 +1,52 @@
|
|
|
1
1
|
import { SaveSlot } from '../../types/game-save';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
+
import { InputListener } from '../../stores/inputs-store';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
saveSlot: {
|
|
5
6
|
type: PropType<SaveSlot>;
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
8
9
|
id: {
|
|
9
|
-
type:
|
|
10
|
+
type: PropType<string>;
|
|
10
11
|
required: true;
|
|
11
12
|
};
|
|
12
13
|
actions: {
|
|
13
14
|
type: PropType<string[]>;
|
|
14
15
|
required: true;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
selected: {
|
|
18
|
+
type: PropType<boolean>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
inputListener: {
|
|
22
|
+
type: PropType<InputListener | null>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
slotContainer: import("vue").Ref<HTMLElement | null>;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choice" | "cancel")[], "choice" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
28
|
saveSlot: {
|
|
18
29
|
type: PropType<SaveSlot>;
|
|
19
30
|
required: true;
|
|
20
31
|
};
|
|
21
32
|
id: {
|
|
22
|
-
type:
|
|
33
|
+
type: PropType<string>;
|
|
23
34
|
required: true;
|
|
24
35
|
};
|
|
25
36
|
actions: {
|
|
26
37
|
type: PropType<string[]>;
|
|
27
38
|
required: true;
|
|
28
39
|
};
|
|
40
|
+
selected: {
|
|
41
|
+
type: PropType<boolean>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
inputListener: {
|
|
45
|
+
type: PropType<InputListener | null>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
29
48
|
}>> & {
|
|
30
49
|
onChoice?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
31
51
|
}, {}, {}>;
|
|
32
52
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InteractiveScreenElement } from './screens/screen-types';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
layer: {
|
|
3
4
|
type: import("vue").PropType<string>;
|
|
@@ -11,6 +12,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
12
|
type: import("vue").PropType<boolean>;
|
|
12
13
|
required: true;
|
|
13
14
|
};
|
|
15
|
+
activeInteractive: {
|
|
16
|
+
type: import("vue").PropType<InteractiveScreenElement | null>;
|
|
17
|
+
};
|
|
14
18
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
19
|
layer: {
|
|
16
20
|
type: import("vue").PropType<string>;
|
|
@@ -24,5 +28,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
type: import("vue").PropType<boolean>;
|
|
25
29
|
required: true;
|
|
26
30
|
};
|
|
31
|
+
activeInteractive: {
|
|
32
|
+
type: import("vue").PropType<InteractiveScreenElement | null>;
|
|
33
|
+
};
|
|
27
34
|
}>>, {}, {}>;
|
|
28
35
|
export default _default;
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
import { ScreenObjectState } from '../../stores/screen-objects-store';
|
|
2
|
+
import { InteractiveScreenElement } from '../screens/screen-types';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
screenObject: {
|
|
4
5
|
type: import("vue").PropType<ScreenObjectState>;
|
|
5
6
|
required: true;
|
|
6
7
|
};
|
|
8
|
+
layerSelected: {
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
7
12
|
transitioning: {
|
|
8
13
|
type: import("vue").PropType<boolean>;
|
|
9
14
|
required: true;
|
|
10
15
|
};
|
|
16
|
+
activeInteractive: {
|
|
17
|
+
type: import("vue").PropType<InteractiveScreenElement | null>;
|
|
18
|
+
};
|
|
11
19
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
20
|
screenObject: {
|
|
13
21
|
type: import("vue").PropType<ScreenObjectState>;
|
|
14
22
|
required: true;
|
|
15
23
|
};
|
|
24
|
+
layerSelected: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
16
28
|
transitioning: {
|
|
17
29
|
type: import("vue").PropType<boolean>;
|
|
18
30
|
required: true;
|
|
19
31
|
};
|
|
32
|
+
activeInteractive: {
|
|
33
|
+
type: import("vue").PropType<InteractiveScreenElement | null>;
|
|
34
|
+
};
|
|
20
35
|
}>>, {}, {}>;
|
|
21
36
|
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InteractiveScreenElement } from './screen-types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
id: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
layerSelected: {
|
|
8
|
+
type: import("vue").PropType<boolean>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
transitioning: {
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
activeInteractive: {
|
|
16
|
+
type: import("vue").PropType<InteractiveScreenElement | null>;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
id: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
layerSelected: {
|
|
24
|
+
type: import("vue").PropType<boolean>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
transitioning: {
|
|
28
|
+
type: import("vue").PropType<boolean>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
activeInteractive: {
|
|
32
|
+
type: import("vue").PropType<InteractiveScreenElement | null>;
|
|
33
|
+
};
|
|
34
|
+
}>>, {}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { InputListener } from '../stores/inputs-store';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
inputListener: {
|
|
4
|
+
type: import("vue").PropType<InputListener | null>;
|
|
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
|
+
inputListener: {
|
|
9
|
+
type: import("vue").PropType<InputListener | null>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>>, {}, {}>;
|
|
2
13
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StartMenuButtonProps } from './start-menu-types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
button: {
|
|
4
|
+
type: import("vue").PropType<StartMenuButtonProps>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
button: {
|
|
9
|
+
type: import("vue").PropType<StartMenuButtonProps>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>> & {
|
|
13
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export default _default;
|
|
@@ -60,10 +60,12 @@ export declare const TransitionsConfigSchema: import("@sinclair/typebox").TRecor
|
|
|
60
60
|
export type TransitionsConfig = Static<typeof TransitionsConfigSchema>;
|
|
61
61
|
export declare const MenuButtonConfigSchema: import("@sinclair/typebox").TObject<{
|
|
62
62
|
text: import("@sinclair/typebox").TString;
|
|
63
|
+
cssClass: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
64
|
}>;
|
|
64
65
|
export type MenuButtonConfig = Static<typeof MenuButtonConfigSchema>;
|
|
65
66
|
export declare const MenuButtonsConfigSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
66
67
|
text: import("@sinclair/typebox").TString;
|
|
68
|
+
cssClass: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
67
69
|
}>>;
|
|
68
70
|
export type MenuButtonsConfig = Static<typeof MenuButtonsConfigSchema>;
|
|
69
71
|
export declare const DebuggingConfigSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -258,6 +258,7 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TObject<{
|
|
|
258
258
|
}>>>;
|
|
259
259
|
menuButtons: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
260
260
|
text: import("@sinclair/typebox").TString;
|
|
261
|
+
cssClass: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
261
262
|
}>>>;
|
|
262
263
|
debugging: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
263
264
|
showScriptFinishedMessage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
package/dist/dialog-box.vue.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
3
|
+
import { InputListener } from './stores/inputs-store';
|
|
3
4
|
export interface TextAnimation {
|
|
4
5
|
text: string;
|
|
5
6
|
index: number;
|
|
@@ -19,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
20
|
type: import("vue").PropType<boolean>;
|
|
20
21
|
required: true;
|
|
21
22
|
};
|
|
23
|
+
inputListener: {
|
|
24
|
+
type: import("vue").PropType<InputListener | null>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
22
27
|
}, {
|
|
23
28
|
keyboardEvent: typeof keyboardEvent;
|
|
24
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -30,5 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
35
|
type: import("vue").PropType<boolean>;
|
|
31
36
|
required: true;
|
|
32
37
|
};
|
|
38
|
+
inputListener: {
|
|
39
|
+
type: import("vue").PropType<InputListener | null>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
33
42
|
}>>, {}, {}>;
|
|
34
43
|
export default _default;
|
package/dist/inputs/Inputs.d.ts
CHANGED
|
@@ -9,14 +9,19 @@ export type ListNavigationOptions = {
|
|
|
9
9
|
};
|
|
10
10
|
export type NavigationOptions = {
|
|
11
11
|
mode: 'grid' | 'list';
|
|
12
|
-
container
|
|
13
|
-
|
|
12
|
+
container?: Ref<HTMLElement | null>;
|
|
13
|
+
elements?: Ref<(HTMLElement | null)[]>;
|
|
14
|
+
listener?: InputListener | null;
|
|
14
15
|
loopForbidden?: boolean;
|
|
16
|
+
onChosen?: (index: number) => void;
|
|
15
17
|
onSelected?: (index: number) => void;
|
|
18
|
+
onlyVertical?: boolean;
|
|
19
|
+
onlyHorizontal?: boolean;
|
|
20
|
+
noChoosing?: boolean;
|
|
16
21
|
} & (GridNavigationOptions | ListNavigationOptions);
|
|
17
22
|
export declare function useNavigation(options: NavigationOptions): {
|
|
18
23
|
selectedIndex: Ref<number>;
|
|
19
|
-
selectedElement: import("vue").ComputedRef<
|
|
24
|
+
selectedElement: import("vue").ComputedRef<HTMLElement | null>;
|
|
20
25
|
currentColumn: import("vue").ComputedRef<number>;
|
|
21
26
|
buttonDown: () => void;
|
|
22
27
|
buttonUp: () => void;
|
|
@@ -27,4 +32,7 @@ export declare function useNavigation(options: NavigationOptions): {
|
|
|
27
32
|
selectPrevious: () => void;
|
|
28
33
|
selectNext: () => void;
|
|
29
34
|
select: (index: number) => void;
|
|
30
|
-
|
|
35
|
+
disable: () => void;
|
|
36
|
+
mount: () => void;
|
|
37
|
+
} | null;
|
|
38
|
+
export type NavigationState = ReturnType<typeof useNavigation>;
|