narrat 2.6.3 → 2.7.0

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 (128) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +128 -128
  3. package/dist/app.vue.d.ts +79 -79
  4. package/dist/blue-pattern.webp +0 -0
  5. package/dist/components/MainMenu.vue.d.ts +7 -7
  6. package/dist/components/SkillsWindow.vue.d.ts +22 -22
  7. package/dist/components/StartMenu.vue.d.ts +46 -46
  8. package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +46 -0
  9. package/dist/components/debug/debug-menu.vue.d.ts +49 -49
  10. package/dist/components/dialog-picture.vue.d.ts +11 -11
  11. package/dist/components/engine-splash/engine-splash.vue.d.ts +54 -54
  12. package/dist/components/game-dialog.vue.d.ts +65 -65
  13. package/dist/components/game-splash/game-splash.vue.d.ts +46 -46
  14. package/dist/components/hud.vue.d.ts +14 -14
  15. package/dist/components/in-game.vue.d.ts +46 -46
  16. package/dist/components/inventory/inventory-section.vue.d.ts +61 -0
  17. package/dist/components/inventory/item-details.vue.d.ts +76 -0
  18. package/dist/components/inventory-ui.vue.d.ts +28 -30
  19. package/dist/components/loading-bar.vue.d.ts +10 -10
  20. package/dist/components/menu-buttons.vue.d.ts +46 -54
  21. package/dist/components/notification-toast.vue.d.ts +6 -6
  22. package/dist/components/quests/QuestDetails.vue.d.ts +64 -0
  23. package/dist/components/quests/QuestDisplay.vue.d.ts +64 -0
  24. package/dist/components/quests/quests-list-section.vue.d.ts +70 -0
  25. package/dist/components/quests-ui.vue.d.ts +22 -20
  26. package/dist/components/save-slots.vue.d.ts +79 -79
  27. package/dist/components/saves/save-slot-ui.vue.d.ts +108 -108
  28. package/dist/components/screen-layer.vue.d.ts +76 -76
  29. package/dist/components/screens.vue.d.ts +46 -46
  30. package/dist/components/tabs/TabsController.vue.d.ts +72 -0
  31. package/dist/components/tabs/tab-selector.vue.d.ts +82 -0
  32. package/dist/components/transitions/NarratTransition.vue.d.ts +97 -97
  33. package/dist/components/utils/alert-modal.vue.d.ts +82 -82
  34. package/dist/components/utils/modal-window.vue.d.ts +18 -18
  35. package/dist/components/utils/yes-no.vue.d.ts +106 -106
  36. package/dist/components/volume-controls.vue.d.ts +18 -18
  37. package/dist/config.d.ts +244 -227
  38. package/dist/constants.d.ts +10 -10
  39. package/dist/defaultConfig.d.ts +2 -2
  40. package/dist/demo/demo.d.ts +1 -1
  41. package/dist/dialog-box.vue.d.ts +71 -42
  42. package/dist/exports/components.d.ts +2 -2
  43. package/dist/exports/config.d.ts +1 -1
  44. package/dist/exports/display.d.ts +2 -2
  45. package/dist/exports/events.d.ts +1 -1
  46. package/dist/exports/others.d.ts +1 -1
  47. package/dist/exports/plugins.d.ts +38 -38
  48. package/dist/exports/stores.d.ts +11 -11
  49. package/dist/favicon.svg +30 -30
  50. package/dist/gamepad/gamepad.d.ts +1 -0
  51. package/dist/lib.d.ts +18 -18
  52. package/dist/main.d.ts +7 -7
  53. package/dist/menu-buttons/menu-buttons.d.ts +7 -4
  54. package/dist/narrat.es.js +12134 -11710
  55. package/dist/narrat.es.js.map +1 -1
  56. package/dist/narrat.umd.js +98 -98
  57. package/dist/narrat.umd.js.map +1 -1
  58. package/dist/plugins/NarratPlugin.d.ts +11 -11
  59. package/dist/stores/audio-store.d.ts +56 -56
  60. package/dist/stores/dialog-store.d.ts +35 -32
  61. package/dist/stores/hud-stats-store.d.ts +22 -22
  62. package/dist/stores/inventory-store.d.ts +38 -37
  63. package/dist/stores/main-store.d.ts +929 -927
  64. package/dist/stores/menu-store.d.ts +45 -36
  65. package/dist/stores/notification-store.d.ts +15 -15
  66. package/dist/stores/quest-log.d.ts +39 -39
  67. package/dist/stores/rendering-store.d.ts +19 -18
  68. package/dist/stores/screens-store.d.ts +33 -33
  69. package/dist/stores/skills.d.ts +41 -40
  70. package/dist/stores/sprites-store.d.ts +48 -48
  71. package/dist/stores/vm-store.d.ts +180 -180
  72. package/dist/style.css +1 -1
  73. package/dist/types/app-types.d.ts +9 -9
  74. package/dist/types/character-types.d.ts +27 -27
  75. package/dist/types/dialog-box-types.d.ts +11 -11
  76. package/dist/types/game-save.d.ts +40 -40
  77. package/dist/types/parser.d.ts +93 -93
  78. package/dist/types/state.d.ts +3 -3
  79. package/dist/utils/InputsListener.d.ts +9 -9
  80. package/dist/utils/ajax.d.ts +2 -2
  81. package/dist/utils/audio-loader.d.ts +10 -10
  82. package/dist/utils/characters.d.ts +5 -5
  83. package/dist/utils/data-helpers.d.ts +29 -29
  84. package/dist/utils/debounce.d.ts +14 -14
  85. package/dist/utils/error-handling.d.ts +4 -4
  86. package/dist/utils/helpers.d.ts +6 -6
  87. package/dist/utils/images-loader.d.ts +7 -7
  88. package/dist/utils/logger.d.ts +11 -11
  89. package/dist/utils/object-iterators.d.ts +8 -8
  90. package/dist/utils/promises.d.ts +1 -1
  91. package/dist/utils/randomId.d.ts +1 -1
  92. package/dist/utils/save-helpers.d.ts +16 -16
  93. package/dist/utils/skillchecks.d.ts +17 -17
  94. package/dist/utils/string-helpers.d.ts +4 -3
  95. package/dist/utils/time-helpers.d.ts +2 -2
  96. package/dist/utils/transition.d.ts +21 -21
  97. package/dist/utils/type-utils.d.ts +2 -2
  98. package/dist/utils/typed-emitter.d.ts +18 -18
  99. package/dist/utils/vue-directives.d.ts +2 -0
  100. package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
  101. package/dist/vm/commands/audio-commands.d.ts +15 -15
  102. package/dist/vm/commands/choice.d.ts +38 -37
  103. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  104. package/dist/vm/commands/command-helpers.d.ts +3 -3
  105. package/dist/vm/commands/command-plugin.d.ts +43 -43
  106. package/dist/vm/commands/flow-commands.d.ts +24 -24
  107. package/dist/vm/commands/if.d.ts +10 -10
  108. package/dist/vm/commands/index.d.ts +2 -2
  109. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  110. package/dist/vm/commands/logic-command.d.ts +42 -42
  111. package/dist/vm/commands/math-commands.d.ts +30 -30
  112. package/dist/vm/commands/notify.d.ts +6 -6
  113. package/dist/vm/commands/quest-commands.d.ts +30 -30
  114. package/dist/vm/commands/random-commands.d.ts +10 -10
  115. package/dist/vm/commands/screen-commands.d.ts +18 -18
  116. package/dist/vm/commands/set.d.ts +6 -6
  117. package/dist/vm/commands/skill-commands.d.ts +33 -30
  118. package/dist/vm/commands/sprite-commands.d.ts +9 -9
  119. package/dist/vm/commands/stats-commands.d.ts +12 -12
  120. package/dist/vm/commands/string-commands.d.ts +9 -9
  121. package/dist/vm/commands/text-field.d.ts +7 -7
  122. package/dist/vm/commands/text.d.ts +14 -14
  123. package/dist/vm/commands/wait.d.ts +4 -4
  124. package/dist/vm/vm-helpers.d.ts +19 -18
  125. package/dist/vm/vm-parser.d.ts +19 -19
  126. package/dist/vm/vm-parser.test.d.ts +1 -1
  127. package/dist/vm/vm.d.ts +21 -21
  128. package/package.json +1 -1
@@ -1,38 +1,38 @@
1
- import { NarratPlugin } from '../plugins/NarratPlugin';
2
- import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
3
- import type { CommandRunner } from '../vm/commands/command-plugin';
4
- import { StoreDefinition } from 'pinia';
5
- import { MenuButtonState } from '../stores/menu-store';
6
- export declare type NarratLifecycleHook = <T extends [...any[]]>(...args: T) => void;
7
- export interface NarratCustomStoreActions {
8
- save?: () => any;
9
- load?: (data: any) => void;
10
- setup?: () => Promise<void>;
11
- start?: () => void;
12
- reset: () => void;
13
- }
14
- export declare type UseCustomStore = StoreDefinition<string, any, any, NarratCustomStoreActions>;
15
- export interface CustomStores {
16
- [key: string]: UseCustomStore;
17
- }
18
- export interface CustomMenuButton {
19
- config: MenuButtonState;
20
- component: any;
21
- }
22
- export declare type NarratPluginObject<T> = {
23
- onPageLoaded?: NarratLifecycleHook;
24
- onNarratSetup?: NarratLifecycleHook;
25
- onAppMounted?: NarratLifecycleHook;
26
- onAssetsLoaded?: NarratLifecycleHook;
27
- onGameSetup?: NarratLifecycleHook;
28
- onGameStart?: NarratLifecycleHook;
29
- onGameMounted?: NarratLifecycleHook;
30
- onGameUnmounted?: NarratLifecycleHook;
31
- customCommands?: CommandPlugin<T>[];
32
- customStores?: CustomStores;
33
- customMenuButtons?: CustomMenuButton[];
34
- };
35
- declare function registerPlugin<T>(plugin: NarratPluginObject<T>): void;
36
- declare function addCommand<T>(command: CommandPlugin<T>): void;
37
- export { CommandRunner };
38
- export { CommandPlugin, NarratPlugin, registerPlugin, addCommand, generateParser, };
1
+ import { NarratPlugin } from '../plugins/NarratPlugin';
2
+ import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
3
+ import type { CommandRunner } from '../vm/commands/command-plugin';
4
+ import { StoreDefinition } from 'pinia';
5
+ import { MenuState } from '../stores/menu-store';
6
+ export declare type NarratLifecycleHook = <T extends [...any[]]>(...args: T) => void;
7
+ export interface NarratCustomStoreActions {
8
+ save?: () => any;
9
+ load?: (data: any) => void;
10
+ setup?: () => Promise<void>;
11
+ start?: () => void;
12
+ reset: () => void;
13
+ }
14
+ export declare type UseCustomStore = StoreDefinition<string, any, any, NarratCustomStoreActions>;
15
+ export interface CustomStores {
16
+ [key: string]: UseCustomStore;
17
+ }
18
+ export interface CustomMenuButton {
19
+ config: MenuState;
20
+ component: any;
21
+ }
22
+ export declare type NarratPluginObject<T> = {
23
+ onPageLoaded?: NarratLifecycleHook;
24
+ onNarratSetup?: NarratLifecycleHook;
25
+ onAppMounted?: NarratLifecycleHook;
26
+ onAssetsLoaded?: NarratLifecycleHook;
27
+ onGameSetup?: NarratLifecycleHook;
28
+ onGameStart?: NarratLifecycleHook;
29
+ onGameMounted?: NarratLifecycleHook;
30
+ onGameUnmounted?: NarratLifecycleHook;
31
+ customCommands?: CommandPlugin<T>[];
32
+ customStores?: CustomStores;
33
+ customMenuButtons?: CustomMenuButton[];
34
+ };
35
+ declare function registerPlugin<T>(plugin: NarratPluginObject<T>): void;
36
+ declare function addCommand<T>(command: CommandPlugin<T>): void;
37
+ export { CommandRunner };
38
+ export { CommandPlugin, NarratPlugin, registerPlugin, addCommand, generateParser, };
@@ -1,11 +1,11 @@
1
- export { useMain } from '../stores/main-store';
2
- export { useAudio } from '../stores/audio-store';
3
- export { useDialogStore } from '../stores/dialog-store';
4
- export { useHud } from '../stores/hud-stats-store';
5
- export { useInventory } from '../stores/inventory-store';
6
- export { useNotifications } from '../stores/notification-store';
7
- export { useQuests } from '../stores/quest-log';
8
- export { useRenderingStore } from '../stores/rendering-store';
9
- export { useScreens } from '../stores/screens-store';
10
- export { useSkills } from '../stores/skills';
11
- export { useVM } from '../stores/vm-store';
1
+ export { useMain } from '../stores/main-store';
2
+ export { useAudio } from '../stores/audio-store';
3
+ export { useDialogStore } from '../stores/dialog-store';
4
+ export { useHud } from '../stores/hud-stats-store';
5
+ export { useInventory } from '../stores/inventory-store';
6
+ export { useNotifications } from '../stores/notification-store';
7
+ export { useQuests } from '../stores/quest-log';
8
+ export { useRenderingStore } from '../stores/rendering-store';
9
+ export { useScreens } from '../stores/screens-store';
10
+ export { useSkills } from '../stores/skills';
11
+ export { useVM } from '../stores/vm-store';
package/dist/favicon.svg CHANGED
@@ -1,30 +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>
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>
@@ -0,0 +1 @@
1
+ export declare function getGamepad(): Gamepad | null;
package/dist/lib.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { App } from 'vue';
2
- import 'es6-promise/auto';
3
- export * from './main';
4
- export declare type Narrat = {
5
- app: App;
6
- };
7
- declare global {
8
- export interface Window {
9
- narrat: Narrat;
10
- }
11
- }
12
- export * from './exports/plugins';
13
- export * from './exports/display';
14
- export * from './exports/config';
15
- export * from './exports/events';
16
- export * from './exports/stores';
17
- export * from './exports/others';
18
- export * from './exports/components';
1
+ import { App } from 'vue';
2
+ import 'es6-promise/auto';
3
+ export * from './main';
4
+ export declare type Narrat = {
5
+ app: App;
6
+ };
7
+ declare global {
8
+ export interface Window {
9
+ narrat: Narrat;
10
+ }
11
+ }
12
+ export * from './exports/plugins';
13
+ export * from './exports/display';
14
+ export * from './exports/config';
15
+ export * from './exports/events';
16
+ export * from './exports/stores';
17
+ export * from './exports/others';
18
+ export * from './exports/components';
package/dist/main.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import 'es6-promise/auto';
2
- import 'virtual:windi.css';
3
- import './css/main.css';
4
- import { AppOptionsInput } from './types/app-types';
5
- import { AppOptionsDeprecated } from './config';
6
- export declare function startApp(optionsInput: AppOptionsInput, optionsOld?: AppOptionsDeprecated): Promise<any>;
7
- export declare function registerComponent(name: string, component: any): void;
1
+ import 'es6-promise/auto';
2
+ import 'virtual:windi.css';
3
+ import './css/main.css';
4
+ import { AppOptionsInput } from './types/app-types';
5
+ import { AppOptionsDeprecated } from './config';
6
+ export declare function startApp(optionsInput: AppOptionsInput, optionsOld?: AppOptionsDeprecated): Promise<any>;
7
+ export declare function registerComponent(name: string, component: any): void;
@@ -1,4 +1,7 @@
1
- import { MenuButtonState } from '../stores/menu-store';
2
- export declare function registerDefaultMenuButtons(app: any): void;
3
- export declare function registerMenuButton(config: MenuButtonState, component: any): void;
4
- export declare function addMenuButtonsFromPlugins(): void;
1
+ import { MenuState, MenuTabState } from '../stores/menu-store';
2
+ export declare function registerDefaultMenuButtons(app: any): void;
3
+ export declare function registerMenuButton(id: string, config: MenuState, components: {
4
+ [key: string]: any;
5
+ }): void;
6
+ export declare function registerMenuTab(id: string, config: MenuTabState, component: any): void;
7
+ export declare function addMenuButtonsFromPlugins(): void;