narrat 2.2.7 → 2.2.8

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.
Files changed (104) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +120 -120
  3. package/dist/app.vue.d.ts +92 -92
  4. package/dist/components/MainMenu.vue.d.ts +12 -12
  5. package/dist/components/Skills.vue.d.ts +22 -22
  6. package/dist/components/StartMenu.vue.d.ts +46 -46
  7. package/dist/components/debug/debug-menu.vue.d.ts +48 -48
  8. package/dist/components/dialog-picture.vue.d.ts +9 -9
  9. package/dist/components/game-dialog.vue.d.ts +65 -65
  10. package/dist/components/hud.vue.d.ts +14 -14
  11. package/dist/components/inventory-ui.vue.d.ts +30 -30
  12. package/dist/components/loading-bar.vue.d.ts +10 -10
  13. package/dist/components/menu-buttons.vue.d.ts +26 -26
  14. package/dist/components/notification-toast.vue.d.ts +6 -6
  15. package/dist/components/quests-ui.vue.d.ts +20 -20
  16. package/dist/components/save-slots.vue.d.ts +58 -58
  17. package/dist/components/screen-layer.vue.d.ts +54 -54
  18. package/dist/components/screens.vue.d.ts +46 -46
  19. package/dist/components/utils/modal.vue.d.ts +6 -6
  20. package/dist/components/volume-controls.vue.d.ts +18 -18
  21. package/dist/config.d.ts +174 -170
  22. package/dist/constants.d.ts +7 -7
  23. package/dist/defaultConfig.d.ts +2 -2
  24. package/dist/demo/demo.d.ts +1 -1
  25. package/dist/dialog-box.vue.d.ts +41 -41
  26. package/dist/exports/config.d.ts +1 -1
  27. package/dist/exports/display.d.ts +2 -2
  28. package/dist/exports/plugins.d.ts +20 -20
  29. package/dist/lib/lib.d.ts +15 -15
  30. package/dist/main.d.ts +5 -5
  31. package/dist/narrat.es.js +30997 -33786
  32. package/dist/narrat.es.js.map +1 -1
  33. package/dist/narrat.umd.js +92 -105
  34. package/dist/narrat.umd.js.map +1 -1
  35. package/dist/plugins/NarratPlugin.d.ts +11 -11
  36. package/dist/stores/audio-store.d.ts +48 -48
  37. package/dist/stores/dialog-store.d.ts +32 -32
  38. package/dist/stores/hud-stats-store.d.ts +22 -22
  39. package/dist/stores/inventory-store.d.ts +37 -37
  40. package/dist/stores/main-store.d.ts +391 -390
  41. package/dist/stores/notification-store.d.ts +15 -15
  42. package/dist/stores/quest-log.d.ts +39 -39
  43. package/dist/stores/rendering-store.d.ts +13 -13
  44. package/dist/stores/screens-store.d.ts +23 -23
  45. package/dist/stores/skills.d.ts +40 -40
  46. package/dist/stores/vm-store.d.ts +178 -177
  47. package/dist/types/app-types.d.ts +5 -5
  48. package/dist/types/character-types.d.ts +27 -27
  49. package/dist/types/dialog-box-types.d.ts +11 -11
  50. package/dist/types/game-save.d.ts +30 -30
  51. package/dist/types/parser.d.ts +93 -93
  52. package/dist/types/state.d.ts +3 -3
  53. package/dist/utils/InputsListener.d.ts +9 -9
  54. package/dist/utils/ajax.d.ts +1 -1
  55. package/dist/utils/audio-loader.d.ts +10 -10
  56. package/dist/utils/characters.d.ts +5 -5
  57. package/dist/utils/data-helpers.d.ts +25 -25
  58. package/dist/utils/debounce.d.ts +14 -14
  59. package/dist/utils/error-handling.d.ts +3 -3
  60. package/dist/utils/helpers.d.ts +6 -6
  61. package/dist/utils/images-loader.d.ts +6 -6
  62. package/dist/utils/logger.d.ts +11 -11
  63. package/dist/utils/object-iterators.d.ts +8 -8
  64. package/dist/utils/promises.d.ts +1 -1
  65. package/dist/utils/randomId.d.ts +1 -1
  66. package/dist/utils/save-helpers.d.ts +15 -15
  67. package/dist/utils/skillchecks.d.ts +17 -17
  68. package/dist/utils/string-helpers.d.ts +3 -3
  69. package/dist/utils/time-helpers.d.ts +2 -2
  70. package/dist/utils/type-utils.d.ts +1 -1
  71. package/dist/utils/typed-emitter.d.ts +18 -18
  72. package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
  73. package/dist/vm/commands/audio-commands.d.ts +15 -15
  74. package/dist/vm/commands/choice.d.ts +37 -37
  75. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  76. package/dist/vm/commands/command-helpers.d.ts +3 -3
  77. package/dist/vm/commands/command-plugin.d.ts +43 -43
  78. package/dist/vm/commands/flow-commands.d.ts +17 -17
  79. package/dist/vm/commands/if.d.ts +10 -10
  80. package/dist/vm/commands/index.d.ts +2 -2
  81. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  82. package/dist/vm/commands/logic-command.d.ts +42 -42
  83. package/dist/vm/commands/math-commands.d.ts +30 -30
  84. package/dist/vm/commands/notify.d.ts +6 -6
  85. package/dist/vm/commands/quest-commands.d.ts +30 -30
  86. package/dist/vm/commands/random-commands.d.ts +10 -10
  87. package/dist/vm/commands/screen-commands.d.ts +12 -12
  88. package/dist/vm/commands/set.d.ts +6 -6
  89. package/dist/vm/commands/skill-commands.d.ts +30 -30
  90. package/dist/vm/commands/stats-commands.d.ts +12 -12
  91. package/dist/vm/commands/string-commands.d.ts +9 -9
  92. package/dist/vm/commands/text-field.d.ts +7 -7
  93. package/dist/vm/commands/text.d.ts +14 -14
  94. package/dist/vm/commands/wait.d.ts +4 -4
  95. package/dist/vm/vm-helpers.d.ts +18 -18
  96. package/dist/vm/vm-parser.d.ts +19 -19
  97. package/dist/vm/vm-parser.test.d.ts +1 -1
  98. package/dist/vm/vm.d.ts +18 -18
  99. package/package.json +87 -87
  100. package/CHANGELOG.md +0 -1081
  101. package/dist/.DS_Store +0 -0
  102. package/dist/img/.DS_Store +0 -0
  103. package/dist/music/.DS_Store +0 -0
  104. package/dist/sounds/.DS_Store +0 -0
@@ -1,12 +1,12 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export declare const setScreenCommand: CommandPlugin<{
3
- screen: string;
4
- layer: number;
5
- }, {}>;
6
- export declare const emptyLayerCommand: CommandPlugin<{
7
- layer: number;
8
- }, {}>;
9
- export declare const setButtonCommand: CommandPlugin<{
10
- buttonId: string;
11
- state: any;
12
- }, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const setScreenCommand: CommandPlugin<{
3
+ screen: string;
4
+ layer: number;
5
+ }, {}>;
6
+ export declare const emptyLayerCommand: CommandPlugin<{
7
+ layer: number;
8
+ }, {}>;
9
+ export declare const setButtonCommand: CommandPlugin<{
10
+ buttonId: string;
11
+ state: any;
12
+ }, {}>;
@@ -1,6 +1,6 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export declare const setCommand: CommandPlugin<any, {}>;
3
- export declare const addPlugin: CommandPlugin<{
4
- key: any;
5
- value: number;
6
- }, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const setCommand: CommandPlugin<any, {}>;
3
+ export declare const addPlugin: CommandPlugin<{
4
+ key: any;
5
+ value: number;
6
+ }, {}>;
@@ -1,30 +1,30 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export interface AddLevelArgs {
3
- skillKey: string;
4
- amount: number;
5
- }
6
- export declare const addLevelPlugin: CommandPlugin<AddLevelArgs, {}>;
7
- export declare const setLevelPlugin: CommandPlugin<{
8
- skill: string;
9
- level: number;
10
- }, {}>;
11
- export interface AddXpArgs {
12
- xpKey: string;
13
- xpToAdd: number;
14
- }
15
- export declare const addXpPlugin: CommandPlugin<AddXpArgs, {}>;
16
- export interface GetLevelArgs {
17
- skillKey: string;
18
- }
19
- export declare const getLevelPlugin: CommandPlugin<GetLevelArgs, {}>;
20
- export interface GetXpArgs {
21
- xpKey: string;
22
- }
23
- export declare const getXpPlugin: CommandPlugin<GetXpArgs, {}>;
24
- export interface RollArgs {
25
- id: string;
26
- skill: string;
27
- value: number;
28
- hideAfterRoll?: boolean;
29
- }
30
- export declare const rollPlugin: CommandPlugin<RollArgs, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export interface AddLevelArgs {
3
+ skillKey: string;
4
+ amount: number;
5
+ }
6
+ export declare const addLevelPlugin: CommandPlugin<AddLevelArgs, {}>;
7
+ export declare const setLevelPlugin: CommandPlugin<{
8
+ skill: string;
9
+ level: number;
10
+ }, {}>;
11
+ export interface AddXpArgs {
12
+ xpKey: string;
13
+ xpToAdd: number;
14
+ }
15
+ export declare const addXpPlugin: CommandPlugin<AddXpArgs, {}>;
16
+ export interface GetLevelArgs {
17
+ skillKey: string;
18
+ }
19
+ export declare const getLevelPlugin: CommandPlugin<GetLevelArgs, {}>;
20
+ export interface GetXpArgs {
21
+ xpKey: string;
22
+ }
23
+ export declare const getXpPlugin: CommandPlugin<GetXpArgs, {}>;
24
+ export interface RollArgs {
25
+ id: string;
26
+ skill: string;
27
+ value: number;
28
+ hideAfterRoll?: boolean;
29
+ }
30
+ export declare const rollPlugin: CommandPlugin<RollArgs, {}>;
@@ -1,12 +1,12 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export declare const addStatPlugin: CommandPlugin<{
3
- statKey: string;
4
- amountToAdd: number;
5
- }, {}>;
6
- export declare const setStatPlugin: CommandPlugin<{
7
- statKey: string;
8
- value: number;
9
- }, {}>;
10
- export declare const getStatPlugin: CommandPlugin<{
11
- statKey: string;
12
- }, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const addStatPlugin: CommandPlugin<{
3
+ statKey: string;
4
+ amountToAdd: number;
5
+ }, {}>;
6
+ export declare const setStatPlugin: CommandPlugin<{
7
+ statKey: string;
8
+ value: number;
9
+ }, {}>;
10
+ export declare const getStatPlugin: CommandPlugin<{
11
+ statKey: string;
12
+ }, {}>;
@@ -1,9 +1,9 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export declare const stringConcatPlugin: CommandPlugin<{
3
- a: number;
4
- b: number;
5
- }, {}>;
6
- export declare const stringJoinPlugin: CommandPlugin<{
7
- a: number;
8
- b: number;
9
- }, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const stringConcatPlugin: CommandPlugin<{
3
+ a: number;
4
+ b: number;
5
+ }, {}>;
6
+ export declare const stringJoinPlugin: CommandPlugin<{
7
+ a: number;
8
+ b: number;
9
+ }, {}>;
@@ -1,7 +1,7 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export declare const textFieldPlugin: CommandPlugin<{
3
- prompt: string;
4
- }, {}>;
5
- export declare const textFieldPromptPlugin: CommandPlugin<{
6
- prompt: string;
7
- }, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const textFieldPlugin: CommandPlugin<{
3
+ prompt: string;
4
+ }, {}>;
5
+ export declare const textFieldPromptPlugin: CommandPlugin<{
6
+ prompt: string;
7
+ }, {}>;
@@ -1,14 +1,14 @@
1
- import { CommandParserFunction, CommandPlugin } from './command-plugin';
2
- export interface TalkArgs {
3
- speaker: string;
4
- pose: string;
5
- text: string;
6
- }
7
- export declare const talkCommand: CommandPlugin<TalkArgs, {}>;
8
- export declare const thinkCommand: CommandPlugin<TalkArgs, {}>;
9
- export declare const textParser: () => CommandParserFunction<{}, {
10
- text: string;
11
- }>;
12
- export declare const textCommandPlugin: CommandPlugin<{}, {
13
- text: string;
14
- }>;
1
+ import { CommandParserFunction, CommandPlugin } from './command-plugin';
2
+ export interface TalkArgs {
3
+ speaker: string;
4
+ pose: string;
5
+ text: string;
6
+ }
7
+ export declare const talkCommand: CommandPlugin<TalkArgs, {}>;
8
+ export declare const thinkCommand: CommandPlugin<TalkArgs, {}>;
9
+ export declare const textParser: () => CommandParserFunction<{}, {
10
+ text: string;
11
+ }>;
12
+ export declare const textCommandPlugin: CommandPlugin<{}, {
13
+ text: string;
14
+ }>;
@@ -1,4 +1,4 @@
1
- import { CommandPlugin } from './command-plugin';
2
- export declare const waitCommand: CommandPlugin<{
3
- duration: number;
4
- }, {}>;
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const waitCommand: CommandPlugin<{
3
+ duration: number;
4
+ }, {}>;
@@ -1,18 +1,18 @@
1
- import { AddDialogParams } from '../stores/dialog-store';
2
- import { SkillCheckState } from '../stores/skills';
3
- import { Parser } from '../types/parser';
4
- import { IfOptions, IfStaticOptions } from './commands/if';
5
- export interface SkillCheckParams {
6
- skill: string;
7
- value: number;
8
- id: string;
9
- hideAfterRoll?: boolean;
10
- }
11
- export declare function runSkillCheck(params: SkillCheckParams): SkillCheckState;
12
- export declare function runConditionCommand(command: Parser.Command<IfOptions, IfStaticOptions>): Parser.Branch | undefined;
13
- export declare function isExpression(arg: Parser.Arg): arg is Parser.ParsedExpression;
14
- export declare type Variable = string | number | boolean | undefined | null;
15
- export declare function isVariable(arg: Parser.Arg): arg is Variable;
16
- export declare function writeText(text: string): void;
17
- export declare function textCommand(dialog: AddDialogParams): Promise<void>;
18
- export declare function getLine(lines: Parser.Line[], index: number): Parser.Line | undefined;
1
+ import { AddDialogParams } from '../stores/dialog-store';
2
+ import { SkillCheckState } from '../stores/skills';
3
+ import { Parser } from '../types/parser';
4
+ import { IfOptions, IfStaticOptions } from './commands/if';
5
+ export interface SkillCheckParams {
6
+ skill: string;
7
+ value: number;
8
+ id: string;
9
+ hideAfterRoll?: boolean;
10
+ }
11
+ export declare function runSkillCheck(params: SkillCheckParams): SkillCheckState;
12
+ export declare function runConditionCommand(command: Parser.Command<IfOptions, IfStaticOptions>): Parser.Branch | undefined;
13
+ export declare function isExpression(arg: Parser.Arg): arg is Parser.ParsedExpression;
14
+ export declare type Variable = string | number | boolean | undefined | null;
15
+ export declare function isVariable(arg: Parser.Arg): arg is Variable;
16
+ export declare function writeText(text: string): void;
17
+ export declare function textCommand(dialog: AddDialogParams): Promise<void>;
18
+ export declare function getLine(lines: Parser.Line[], index: number): Parser.Line | undefined;
@@ -1,19 +1,19 @@
1
- import { Parser } from '../types/parser';
2
- import { ProcessCommandsFunction } from './commands/command-plugin';
3
- export declare type ErrorFunction = (line: number, text: string) => void;
4
- export declare type ParserErrorHandler = (ctx: ParserContext, line: number, text: string) => void;
5
- export interface ParserContext {
6
- fileName: string;
7
- currentLine: number;
8
- error: ErrorFunction;
9
- processCommandsFunction: ProcessCommandsFunction;
10
- indentSize: number;
11
- }
12
- export declare function parseScript(errorHandler: ParserErrorHandler, code: string, fileName: string): Parser.ParsedScript;
13
- export declare function parseCodeLine(ctx: ParserContext, codeToProcess: string): Parser.Expression;
14
- export declare function parseCodeLineIntoTokens(code: string): Parser.Primitive[];
15
- export declare function splitIntoTokens(code: string): Parser.Primitive[];
16
- export declare function tokensToExpression(ctx: ParserContext, tokens: Parser.Primitive[]): [Parser.Expression, number];
17
- export declare function validateExpression(ctx: ParserContext, expression: Parser.Expression): void;
18
- export declare function findExpressionStart(tokens: Parser.Primitive[]): number;
19
- export declare function findExpressionEnd(tokens: Parser.Primitive[]): number;
1
+ import { Parser } from '../types/parser';
2
+ import { ProcessCommandsFunction } from './commands/command-plugin';
3
+ export declare type ErrorFunction = (line: number, text: string) => void;
4
+ export declare type ParserErrorHandler = (ctx: ParserContext, line: number, text: string) => void;
5
+ export interface ParserContext {
6
+ fileName: string;
7
+ currentLine: number;
8
+ error: ErrorFunction;
9
+ processCommandsFunction: ProcessCommandsFunction;
10
+ indentSize: number;
11
+ }
12
+ export declare function parseScript(errorHandler: ParserErrorHandler, code: string, fileName: string): Parser.ParsedScript;
13
+ export declare function parseCodeLine(ctx: ParserContext, codeToProcess: string): Parser.Expression;
14
+ export declare function parseCodeLineIntoTokens(code: string): Parser.Primitive[];
15
+ export declare function splitIntoTokens(code: string): Parser.Primitive[];
16
+ export declare function tokensToExpression(ctx: ParserContext, tokens: Parser.Primitive[]): [Parser.Expression, number];
17
+ export declare function validateExpression(ctx: ParserContext, expression: Parser.Expression): void;
18
+ export declare function findExpressionStart(tokens: Parser.Primitive[]): number;
19
+ export declare function findExpressionEnd(tokens: Parser.Primitive[]): number;
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/dist/vm/vm.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { CommandPlugin } from './commands/command-plugin';
2
- import { NarratPluginObject } from '../exports/plugins';
3
- import { Parser } from '../types/parser';
4
- import { DialogChoice } from '../stores/dialog-store';
5
- export declare class VM {
6
- plugins: NarratPluginObject<any>[];
7
- commands: {
8
- [key: string]: CommandPlugin<any>;
9
- };
10
- addCommand(command: CommandPlugin<any, any>): void;
11
- addPlugin(plugin: NarratPluginObject<any>): void;
12
- callHook(hookName: string, ...args: any[]): void;
13
- }
14
- export declare const vm: VM;
15
- export declare function runCommand(expression: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<any>;
16
- export declare function generateCommand(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<Parser.Command>;
17
- export declare function runExpression<ReturnType = any>(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<ReturnType>;
18
- export declare function playerAnswered(choice: string | number): Promise<any>;
1
+ import { CommandPlugin } from './commands/command-plugin';
2
+ import { NarratPluginObject } from '../exports/plugins';
3
+ import { Parser } from '../types/parser';
4
+ import { DialogChoice } from '../stores/dialog-store';
5
+ export declare class VM {
6
+ plugins: NarratPluginObject<any>[];
7
+ commands: {
8
+ [key: string]: CommandPlugin<any>;
9
+ };
10
+ addCommand(command: CommandPlugin<any, any>): void;
11
+ addPlugin(plugin: NarratPluginObject<any>): void;
12
+ callHook(hookName: string, ...args: any[]): void;
13
+ }
14
+ export declare const vm: VM;
15
+ export declare function runCommand(expression: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<any>;
16
+ export declare function generateCommand(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<Parser.Command>;
17
+ export declare function runExpression<ReturnType = any>(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<ReturnType>;
18
+ export declare function playerAnswered(choice: string | number): Promise<any>;
package/package.json CHANGED
@@ -1,87 +1,87 @@
1
- {
2
- "name": "narrat",
3
- "version": "2.2.7",
4
- "description": "narrat narrative engine",
5
- "main": "dist/narrat.umd.js",
6
- "module": "dist/narrat.es.js",
7
- "types": "dist/lib/lib.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "git@github.com:liana-pigeot/narrat.git"
11
- },
12
- "engines": {
13
- "node": ">=18"
14
- },
15
- "homepage": "https://get-narrat.com",
16
- "files": [
17
- "dist/"
18
- ],
19
- "scripts": {
20
- "test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
21
- "start": "npm run dev",
22
- "rpg": "cross-env VITE_EXAMPLE=examples/rpg npx vite dev",
23
- "empty": "cross-env VITE_EXAMPLE=examples/empty npx vite dev",
24
- "test-game": "cross-env VITE_EXAMPLE=examples/test npx vite dev",
25
- "build-rpg": "cross-env VITE_DEMO_BUILD=rpg npx vite build && shx cp -r examples/rpg/* built-example/rpg",
26
- "dev": "vite",
27
- "generate-types": "vue-tsc --emitDeclarationOnly --outDir dist && npm run fix-type-aliases",
28
- "fix-type-aliases": "tsc-alias -p tsconfig.json",
29
- "build": "vue-tsc --noEmit && vite build && npm run generate-types",
30
- "preview": "vite preview",
31
- "lint": "eslint src --ext=.js,.jsx,.ts,.tsx",
32
- "preversion": "npm run build && npm run lint",
33
- "postversion": "git push && git push --tags",
34
- "check-types": "tsc --noEmit",
35
- "find-deadcode": "ts-prune"
36
- },
37
- "keywords": [
38
- "game"
39
- ],
40
- "author": "Liana Pigeot",
41
- "license": "MIT",
42
- "peerDependencies": {
43
- "es6-promise": "^4.2.8",
44
- "pinia": "^2.0.14",
45
- "vue": "^3.2.37"
46
- },
47
- "dependencies": {
48
- "deepmerge": "^4.2.2",
49
- "fuse.js": "^6.6.2",
50
- "howler": "^2.2.3",
51
- "svelte-jsoneditor": "^0.3.58",
52
- "vue3-mq": "^3.0.0"
53
- },
54
- "devDependencies": {
55
- "@types/howler": "^2.2.3",
56
- "@types/jest": "^28.1.3",
57
- "@typescript-eslint/eslint-plugin": "^5.30.0",
58
- "@typescript-eslint/parser": "^5.30.0",
59
- "@vitejs/plugin-vue": "^3.0.0",
60
- "autoprefixer": "^10.4.7",
61
- "cross-env": "^7.0.3",
62
- "es6-promise": "^4.2.8",
63
- "eslint": "^8.18.0",
64
- "eslint-config-prettier": "^8.5.0",
65
- "eslint-config-standard": "^17.0.0",
66
- "eslint-import-resolver-typescript": "^3.1.1",
67
- "eslint-plugin-import": "^2.26.0",
68
- "eslint-plugin-n": "^15.2.3",
69
- "eslint-plugin-node": "^11.1.0",
70
- "eslint-plugin-promise": "^6.0.0",
71
- "eslint-plugin-vue": "^9.1.1",
72
- "jest": "^28.1.2",
73
- "pinia": "^2.0.14",
74
- "postcss": "^8.4.14",
75
- "prettier": "^2.7.1",
76
- "shx": "^0.3.4",
77
- "tailwindcss": "^3.1.4",
78
- "ts-jest": "^28.0.5",
79
- "ts-prune": "^0.10.3",
80
- "tsc-alias": "^1.6.11",
81
- "tslib": "^2.4.0",
82
- "typescript": "^4.7.4",
83
- "vite": "^3.0.0",
84
- "vue": "^3.2.37",
85
- "vue-tsc": "^0.38.2"
86
- }
87
- }
1
+ {
2
+ "name": "narrat",
3
+ "version": "2.2.8",
4
+ "description": "narrat narrative engine",
5
+ "main": "dist/narrat.umd.js",
6
+ "module": "dist/narrat.es.js",
7
+ "types": "dist/lib/lib.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git@github.com:liana-pigeot/narrat.git"
11
+ },
12
+ "engines": {
13
+ "node": ">=18"
14
+ },
15
+ "homepage": "https://get-narrat.com",
16
+ "files": [
17
+ "dist/"
18
+ ],
19
+ "scripts": {
20
+ "test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
21
+ "start": "npm run dev",
22
+ "rpg": "cross-env VITE_EXAMPLE=examples/rpg npx vite dev",
23
+ "empty": "cross-env VITE_EXAMPLE=examples/empty npx vite dev",
24
+ "test-game": "cross-env VITE_EXAMPLE=examples/test npx vite dev",
25
+ "build-rpg": "cross-env VITE_DEMO_BUILD=rpg npx vite build && shx cp -r examples/rpg/* built-example/rpg",
26
+ "dev": "vite",
27
+ "generate-types": "vue-tsc --emitDeclarationOnly --outDir dist && npm run fix-type-aliases",
28
+ "fix-type-aliases": "tsc-alias -p tsconfig.json",
29
+ "build": "vue-tsc --noEmit && vite build && npm run generate-types",
30
+ "preview": "vite preview",
31
+ "lint": "eslint src --ext=.js,.jsx,.ts,.tsx",
32
+ "preversion": "npm run build && npm run lint",
33
+ "postversion": "git push && git push --tags",
34
+ "check-types": "tsc --noEmit",
35
+ "find-deadcode": "ts-prune"
36
+ },
37
+ "keywords": [
38
+ "game"
39
+ ],
40
+ "author": "Liana Pigeot",
41
+ "license": "MIT",
42
+ "peerDependencies": {
43
+ "es6-promise": "^4.2.8",
44
+ "pinia": "^2.0.14",
45
+ "vue": "^3.2.37"
46
+ },
47
+ "dependencies": {
48
+ "deepmerge": "^4.2.2",
49
+ "fuse.js": "^6.6.2",
50
+ "howler": "^2.2.3",
51
+ "svelte-jsoneditor": "^0.3.58",
52
+ "vue3-mq": "^3.0.0"
53
+ },
54
+ "devDependencies": {
55
+ "@types/howler": "^2.2.3",
56
+ "@types/jest": "^28.1.3",
57
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
58
+ "@typescript-eslint/parser": "^5.30.0",
59
+ "@vitejs/plugin-vue": "^3.0.0",
60
+ "autoprefixer": "^10.4.7",
61
+ "cross-env": "^7.0.3",
62
+ "es6-promise": "^4.2.8",
63
+ "eslint": "^8.18.0",
64
+ "eslint-config-prettier": "^8.5.0",
65
+ "eslint-config-standard": "^17.0.0",
66
+ "eslint-import-resolver-typescript": "^3.1.1",
67
+ "eslint-plugin-import": "^2.26.0",
68
+ "eslint-plugin-n": "^15.2.3",
69
+ "eslint-plugin-node": "^11.1.0",
70
+ "eslint-plugin-promise": "^6.0.0",
71
+ "eslint-plugin-vue": "^9.1.1",
72
+ "jest": "^28.1.2",
73
+ "pinia": "^2.0.14",
74
+ "postcss": "^8.4.14",
75
+ "prettier": "^2.7.1",
76
+ "shx": "^0.3.4",
77
+ "tailwindcss": "^3.1.4",
78
+ "ts-jest": "^28.0.5",
79
+ "ts-prune": "^0.10.3",
80
+ "tsc-alias": "^1.6.11",
81
+ "tslib": "^2.4.0",
82
+ "typescript": "^4.7.4",
83
+ "vite": "^3.0.0",
84
+ "vue": "^3.2.37",
85
+ "vue-tsc": "^0.38.2"
86
+ }
87
+ }