narrat 2.8.1 → 2.9.1
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/inventory-ui.vue.d.ts +1 -0
- package/dist/components/quests/quests-list-section.vue.d.ts +5 -0
- package/dist/components/tooltips/tooltips-ui.vue.d.ts +46 -0
- package/dist/components/utils/floating-tooltip.vue.d.ts +62 -0
- package/dist/config/config-input.d.ts +18 -0
- package/dist/config/config-output.d.ts +28 -1
- package/dist/config/items-config.d.ts +4 -0
- package/dist/config/quests-config.d.ts +12 -0
- package/dist/config/tooltips-config.d.ts +15 -0
- package/dist/config.d.ts +25 -0
- package/dist/narrat.es.js +11170 -10804
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +104 -102
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/inventory-store.d.ts +1 -0
- package/dist/stores/main-store.d.ts +6 -0
- package/dist/stores/tooltip-store.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/utils/data-helpers.d.ts +5 -2
- package/dist/utils/data-helpers.test.d.ts +1 -0
- package/dist/utils/getWindow.d.ts +1 -0
- package/dist/utils/string-helpers.d.ts +1 -0
- package/dist/utils/tooltip-utils.d.ts +2 -0
- package/dist/vm/commands/array-commands.d.ts +38 -0
- package/dist/vm/commands/command-plugin.d.ts +1 -1
- package/dist/vm/commands/flow-commands.d.ts +3 -0
- package/dist/vm/commands/random-commands.d.ts +3 -0
- package/dist/vm/commands/util-commands.d.ts +4 -0
- package/package.json +2 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuestCategory } from '../../config/quests-config';
|
|
1
2
|
import { QuestState } from '../../stores/quest-log';
|
|
2
3
|
export interface QuestListSectionProps {
|
|
3
4
|
quests: QuestState[];
|
|
@@ -5,6 +6,10 @@ export interface QuestListSectionProps {
|
|
|
5
6
|
title: string;
|
|
6
7
|
fallbackText: string;
|
|
7
8
|
}
|
|
9
|
+
export interface QuestCategoryProps {
|
|
10
|
+
category: QuestCategory;
|
|
11
|
+
quests: QuestState[];
|
|
12
|
+
}
|
|
8
13
|
declare const _default: {
|
|
9
14
|
new (...args: any[]): {
|
|
10
15
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -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;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface FloatingTooltipProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
text: string;
|
|
4
|
+
width: number;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$: import("vue").ComponentInternalInstance;
|
|
11
|
+
$data: {};
|
|
12
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FloatingTooltipProps>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
13
|
+
$attrs: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
$refs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
$slots: Readonly<{
|
|
20
|
+
[name: string]: import("vue").Slot | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
23
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
24
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
25
|
+
$el: any;
|
|
26
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FloatingTooltipProps>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
27
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
40
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
41
|
+
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;
|
|
42
|
+
};
|
|
43
|
+
$forceUpdate: () => void;
|
|
44
|
+
$nextTick: typeof import("vue").nextTick;
|
|
45
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
46
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FloatingTooltipProps>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
47
|
+
__isFragment?: undefined;
|
|
48
|
+
__isTeleport?: undefined;
|
|
49
|
+
__isSuspense?: undefined;
|
|
50
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FloatingTooltipProps>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
51
|
+
$slots: {};
|
|
52
|
+
});
|
|
53
|
+
export default _default;
|
|
54
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
56
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
57
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
58
|
+
} : {
|
|
59
|
+
type: import('vue').PropType<T[K]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -140,6 +140,18 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TObject<{
|
|
|
140
140
|
timeOnScreen: import("@sinclair/typebox").TNumber;
|
|
141
141
|
alsoPrintInDialogue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
142
142
|
}>>;
|
|
143
|
+
tooltips: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
144
|
+
options: import("@sinclair/typebox").TObject<{
|
|
145
|
+
delay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
146
|
+
width: import("@sinclair/typebox").TNumber;
|
|
147
|
+
keywordsPrefix: import("@sinclair/typebox").TString;
|
|
148
|
+
}>;
|
|
149
|
+
tooltips: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
150
|
+
keywords: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
151
|
+
title: import("@sinclair/typebox").TString;
|
|
152
|
+
description: import("@sinclair/typebox").TString;
|
|
153
|
+
}>>;
|
|
154
|
+
}>]>>;
|
|
143
155
|
hudStats: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
144
156
|
name: import("@sinclair/typebox").TString;
|
|
145
157
|
icon: import("@sinclair/typebox").TString;
|
|
@@ -162,6 +174,7 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TObject<{
|
|
|
162
174
|
}>>;
|
|
163
175
|
tag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
164
176
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
177
|
+
showIfEmpty: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
165
178
|
}>>>;
|
|
166
179
|
}>]>>;
|
|
167
180
|
interactionTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
@@ -175,6 +188,11 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TObject<{
|
|
|
175
188
|
description: import("@sinclair/typebox").TString;
|
|
176
189
|
hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
177
190
|
}>>;
|
|
191
|
+
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
192
|
+
}>>;
|
|
193
|
+
categories: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
194
|
+
id: import("@sinclair/typebox").TString;
|
|
195
|
+
title: import("@sinclair/typebox").TString;
|
|
178
196
|
}>>;
|
|
179
197
|
}>]>>;
|
|
180
198
|
transitions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
@@ -6,6 +6,7 @@ import { ScreensConfig } from '../config/screens-config';
|
|
|
6
6
|
import { SkillsConfig } from '../config/skills-config';
|
|
7
7
|
import { ButtonsConfig } from './buttons-config';
|
|
8
8
|
import { LayoutConfig } from './layout-config';
|
|
9
|
+
import { TooltipsConfig } from './tooltips-config';
|
|
9
10
|
export interface Config {
|
|
10
11
|
baseAssetsPath: string;
|
|
11
12
|
baseDataPath: string;
|
|
@@ -25,6 +26,7 @@ export interface Config {
|
|
|
25
26
|
scripts: string[];
|
|
26
27
|
audio: AudioConfig;
|
|
27
28
|
notifications: NotificationsConfig;
|
|
29
|
+
tooltips: TooltipsConfig;
|
|
28
30
|
hudStats: HudStatsConfig;
|
|
29
31
|
items: ItemsConfig;
|
|
30
32
|
interactionTags: InteractionTagsConfig;
|
|
@@ -146,6 +148,18 @@ export declare const defaultConfig: {
|
|
|
146
148
|
timeOnScreen: number;
|
|
147
149
|
alsoPrintInDialogue: boolean;
|
|
148
150
|
};
|
|
151
|
+
tooltips: {
|
|
152
|
+
options: {
|
|
153
|
+
delay?: number | undefined;
|
|
154
|
+
width: number;
|
|
155
|
+
keywordsPrefix: string;
|
|
156
|
+
};
|
|
157
|
+
tooltips: {
|
|
158
|
+
title: string;
|
|
159
|
+
description: string;
|
|
160
|
+
keywords: string[];
|
|
161
|
+
}[];
|
|
162
|
+
};
|
|
149
163
|
hudStats: {};
|
|
150
164
|
items: {
|
|
151
165
|
items: Record<string, {
|
|
@@ -155,6 +169,7 @@ export declare const defaultConfig: {
|
|
|
155
169
|
} | undefined;
|
|
156
170
|
tag?: string | undefined;
|
|
157
171
|
category?: string | undefined;
|
|
172
|
+
showIfEmpty?: boolean | undefined;
|
|
158
173
|
description: string;
|
|
159
174
|
name: string;
|
|
160
175
|
icon: string;
|
|
@@ -170,7 +185,19 @@ export declare const defaultConfig: {
|
|
|
170
185
|
};
|
|
171
186
|
};
|
|
172
187
|
quests: {
|
|
173
|
-
quests: {
|
|
188
|
+
quests: Record<string, {
|
|
189
|
+
category?: string | undefined;
|
|
190
|
+
title: string;
|
|
191
|
+
description: string;
|
|
192
|
+
objectives: Record<string, {
|
|
193
|
+
hidden?: boolean | undefined;
|
|
194
|
+
description: string;
|
|
195
|
+
}>;
|
|
196
|
+
}>;
|
|
197
|
+
categories: {
|
|
198
|
+
title: string;
|
|
199
|
+
id: string;
|
|
200
|
+
}[];
|
|
174
201
|
};
|
|
175
202
|
transitions: {};
|
|
176
203
|
menuButtons: {};
|
|
@@ -9,6 +9,7 @@ export declare const ItemConfigSchema: import("@sinclair/typebox").TObject<{
|
|
|
9
9
|
}>>;
|
|
10
10
|
tag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
11
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
showIfEmpty: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
12
13
|
}>;
|
|
13
14
|
export declare type ItemConfig = Static<typeof ItemConfigSchema>;
|
|
14
15
|
export declare const ItemCategorySchema: import("@sinclair/typebox").TObject<{
|
|
@@ -26,6 +27,7 @@ export declare const ItemsListSchema: import("@sinclair/typebox").TRecord<import
|
|
|
26
27
|
}>>;
|
|
27
28
|
tag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
29
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
|
+
showIfEmpty: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
29
31
|
}>>;
|
|
30
32
|
export declare type ItemsList = Static<typeof ItemsListSchema>;
|
|
31
33
|
export declare const ItemsConfigSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -43,6 +45,7 @@ export declare const ItemsConfigSchema: import("@sinclair/typebox").TObject<{
|
|
|
43
45
|
}>>;
|
|
44
46
|
tag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
47
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
48
|
+
showIfEmpty: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
46
49
|
}>>;
|
|
47
50
|
}>;
|
|
48
51
|
export declare type ItemsConfig = Static<typeof ItemsConfigSchema>;
|
|
@@ -61,6 +64,7 @@ export declare const ItemsInputConfigSchema: import("@sinclair/typebox").TObject
|
|
|
61
64
|
}>>;
|
|
62
65
|
tag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
66
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
67
|
+
showIfEmpty: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
64
68
|
}>>>;
|
|
65
69
|
}>;
|
|
66
70
|
export declare type ItemsInputConfig = Static<typeof ItemsInputConfigSchema>;
|
|
@@ -11,8 +11,14 @@ export declare const QuestDataSchema: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
description: import("@sinclair/typebox").TString;
|
|
12
12
|
hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13
13
|
}>>;
|
|
14
|
+
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
15
|
}>;
|
|
15
16
|
export declare type QuestData = Static<typeof QuestDataSchema>;
|
|
17
|
+
export declare const QuestCategorySchema: import("@sinclair/typebox").TObject<{
|
|
18
|
+
id: import("@sinclair/typebox").TString;
|
|
19
|
+
title: import("@sinclair/typebox").TString;
|
|
20
|
+
}>;
|
|
21
|
+
export declare type QuestCategory = Static<typeof QuestCategorySchema>;
|
|
16
22
|
export declare const QuestsListSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
17
23
|
title: import("@sinclair/typebox").TString;
|
|
18
24
|
description: import("@sinclair/typebox").TString;
|
|
@@ -20,6 +26,7 @@ export declare const QuestsListSchema: import("@sinclair/typebox").TRecord<impor
|
|
|
20
26
|
description: import("@sinclair/typebox").TString;
|
|
21
27
|
hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
22
28
|
}>>;
|
|
29
|
+
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
30
|
}>>;
|
|
24
31
|
export declare type QuestsList = Static<typeof QuestsListSchema>;
|
|
25
32
|
export declare const QuestsConfigSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -30,6 +37,11 @@ export declare const QuestsConfigSchema: import("@sinclair/typebox").TObject<{
|
|
|
30
37
|
description: import("@sinclair/typebox").TString;
|
|
31
38
|
hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32
39
|
}>>;
|
|
40
|
+
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
41
|
+
}>>;
|
|
42
|
+
categories: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
43
|
+
id: import("@sinclair/typebox").TString;
|
|
44
|
+
title: import("@sinclair/typebox").TString;
|
|
33
45
|
}>>;
|
|
34
46
|
}>;
|
|
35
47
|
export declare type QuestsConfig = Static<typeof QuestsConfigSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const TooltipsConfigSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
options: import("@sinclair/typebox").TObject<{
|
|
4
|
+
delay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
5
|
+
width: import("@sinclair/typebox").TNumber;
|
|
6
|
+
keywordsPrefix: import("@sinclair/typebox").TString;
|
|
7
|
+
}>;
|
|
8
|
+
tooltips: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
9
|
+
keywords: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
10
|
+
title: import("@sinclair/typebox").TString;
|
|
11
|
+
description: import("@sinclair/typebox").TString;
|
|
12
|
+
}>>;
|
|
13
|
+
}>;
|
|
14
|
+
export declare type TooltipsConfig = Static<typeof TooltipsConfigSchema>;
|
|
15
|
+
export declare const defaultTooltipsConfig: TooltipsConfig;
|
package/dist/config.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare function itemsConfig(): {
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
tag?: string | undefined;
|
|
36
36
|
category?: string | undefined;
|
|
37
|
+
showIfEmpty?: boolean | undefined;
|
|
37
38
|
description: string;
|
|
38
39
|
name: string;
|
|
39
40
|
icon: string;
|
|
@@ -45,6 +46,7 @@ export declare function itemsConfig(): {
|
|
|
45
46
|
};
|
|
46
47
|
export declare function questsConfig(): {
|
|
47
48
|
quests: Record<string, {
|
|
49
|
+
category?: string | undefined;
|
|
48
50
|
title: string;
|
|
49
51
|
description: string;
|
|
50
52
|
objectives: Record<string, {
|
|
@@ -52,6 +54,10 @@ export declare function questsConfig(): {
|
|
|
52
54
|
description: string;
|
|
53
55
|
}>;
|
|
54
56
|
}>;
|
|
57
|
+
categories: {
|
|
58
|
+
title: string;
|
|
59
|
+
id: string;
|
|
60
|
+
}[];
|
|
55
61
|
};
|
|
56
62
|
export declare function screensConfig(): {
|
|
57
63
|
screens: Record<string, {
|
|
@@ -100,6 +106,23 @@ export declare function buttonsConfig(): {
|
|
|
100
106
|
};
|
|
101
107
|
}>;
|
|
102
108
|
};
|
|
109
|
+
export declare function tooltipsConfig(): {
|
|
110
|
+
options: {
|
|
111
|
+
delay?: number | undefined;
|
|
112
|
+
width: number;
|
|
113
|
+
keywordsPrefix: string;
|
|
114
|
+
};
|
|
115
|
+
tooltips: {
|
|
116
|
+
title: string;
|
|
117
|
+
description: string;
|
|
118
|
+
keywords: string[];
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
export declare function getTooltipConfig(keyword: string): {
|
|
122
|
+
title: string;
|
|
123
|
+
description: string;
|
|
124
|
+
keywords: string[];
|
|
125
|
+
} | null;
|
|
103
126
|
export declare function getSkillConfig(id: string): {
|
|
104
127
|
hidden?: boolean | undefined;
|
|
105
128
|
description: string;
|
|
@@ -120,11 +143,13 @@ export declare function getItemConfig(id: string): {
|
|
|
120
143
|
} | undefined;
|
|
121
144
|
tag?: string | undefined;
|
|
122
145
|
category?: string | undefined;
|
|
146
|
+
showIfEmpty?: boolean | undefined;
|
|
123
147
|
description: string;
|
|
124
148
|
name: string;
|
|
125
149
|
icon: string;
|
|
126
150
|
};
|
|
127
151
|
export declare function getQuestConfig(questId: string): {
|
|
152
|
+
category?: string | undefined;
|
|
128
153
|
title: string;
|
|
129
154
|
description: string;
|
|
130
155
|
objectives: Record<string, {
|