@vnejs/contracts.views.scenario.interface 0.1.4 → 0.1.5

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.
@@ -0,0 +1,13 @@
1
+ /** Commands owned by plugins.views.scenario.interface */
2
+ export declare const SCENARIO_COMMANDS: {
3
+ readonly modules: {
4
+ readonly interface: {
5
+ readonly actions: {
6
+ readonly SHOW: "show";
7
+ readonly HIDE: "hide";
8
+ readonly VIEW: "view";
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
@@ -0,0 +1,9 @@
1
+ import { EXEC_ACTIONS } from "./const.js";
2
+ /** Commands owned by plugins.views.scenario.interface */
3
+ export const SCENARIO_COMMANDS = {
4
+ modules: {
5
+ interface: {
6
+ actions: EXEC_ACTIONS,
7
+ },
8
+ },
9
+ };
@@ -0,0 +1,13 @@
1
+ export declare const EXEC_ACTIONS: {
2
+ readonly SHOW: "show";
3
+ readonly HIDE: "hide";
4
+ readonly VIEW: "view";
5
+ };
6
+ export declare const CONSTANTS: {
7
+ readonly EXEC_ACTIONS: {
8
+ readonly SHOW: "show";
9
+ readonly HIDE: "hide";
10
+ readonly VIEW: "view";
11
+ };
12
+ };
13
+ export type Constants = typeof CONSTANTS;
package/dist/const.js ADDED
@@ -0,0 +1,8 @@
1
+ export const EXEC_ACTIONS = {
2
+ SHOW: "show",
3
+ HIDE: "hide",
4
+ VIEW: "view",
5
+ };
6
+ export const CONSTANTS = {
7
+ EXEC_ACTIONS,
8
+ };
package/dist/events.d.ts CHANGED
@@ -5,7 +5,6 @@ export declare const SUBSCRIBE_EVENTS: {
5
5
  readonly VIEW_SHOW: "vne:interface:view_show";
6
6
  readonly VIEW_HIDE: "vne:interface:view_hide";
7
7
  readonly VIEW_UPDATE: "vne:interface:view_update";
8
- readonly TEXT: "vne:interface:text";
9
8
  readonly TEXT_HIDE: "vne:interface:text_hide";
10
9
  readonly TEXT_CHANGED: "vne:interface:text_changed";
11
10
  readonly VISIBLE_TOKENS_CHANGED: "vne:interface:visible_tokens_changed";
@@ -15,9 +14,6 @@ export declare const SUBSCRIBE_EVENTS: {
15
14
  readonly VISIBLE_CHANGED: "vne:interface:visible_changed";
16
15
  readonly VIEW: "vne:interface:view";
17
16
  readonly VIEW_CHANGED: "vne:interface:view_changed";
18
- readonly HISTORY: "vne:interface:history";
19
- readonly HISTORY_BACK: "vne:interface:history_back";
20
- readonly GAMEMENU: "vne:interface:gamemenu";
21
17
  readonly INTERACT: "vne:interface:interact";
22
18
  readonly STATE_CHANGED: "vne:interface:state_changed";
23
19
  };
package/dist/events.js CHANGED
@@ -5,7 +5,6 @@ export const SUBSCRIBE_EVENTS = {
5
5
  VIEW_SHOW: "vne:interface:view_show",
6
6
  VIEW_HIDE: "vne:interface:view_hide",
7
7
  VIEW_UPDATE: "vne:interface:view_update",
8
- TEXT: "vne:interface:text",
9
8
  TEXT_HIDE: "vne:interface:text_hide",
10
9
  TEXT_CHANGED: "vne:interface:text_changed",
11
10
  VISIBLE_TOKENS_CHANGED: "vne:interface:visible_tokens_changed",
@@ -15,9 +14,6 @@ export const SUBSCRIBE_EVENTS = {
15
14
  VISIBLE_CHANGED: "vne:interface:visible_changed",
16
15
  VIEW: "vne:interface:view",
17
16
  VIEW_CHANGED: "vne:interface:view_changed",
18
- HISTORY: "vne:interface:history",
19
- HISTORY_BACK: "vne:interface:history_back",
20
- GAMEMENU: "vne:interface:gamemenu",
21
17
  INTERACT: "vne:interface:interact",
22
18
  STATE_CHANGED: "vne:interface:state_changed",
23
19
  };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,16 @@
1
1
  import "@vnejs/module";
2
2
  import "@vnejs/shared";
3
+ import { SCENARIO_COMMANDS } from "./commands.js";
4
+ import { CONSTANTS } from "./const.js";
3
5
  import { SUBSCRIBE_EVENTS } from "./events.js";
4
6
  import type { InterfaceModuleState } from "./module-global-state.js";
5
7
  import { PARAMS } from "./params.js";
6
8
  export declare const PLUGIN_NAME: "INTERFACE";
7
9
  export type PluginName = typeof PLUGIN_NAME;
10
+ export { SCENARIO_COMMANDS };
11
+ export type { ScenarioCommands } from "./commands.js";
12
+ export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
13
+ export type { Constants } from "./const.js";
8
14
  export { SUBSCRIBE_EVENTS };
9
15
  export type { SubscribeEvents } from "./events.js";
10
16
  export { PARAMS };
@@ -22,6 +28,8 @@ declare module "@vnejs/module" {
22
28
  declare module "@vnejs/shared" {
23
29
  interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
24
30
  }
31
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
32
+ }
25
33
  interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
26
34
  }
27
35
  }
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  import "@vnejs/module";
2
2
  import "@vnejs/shared";
3
+ import { SCENARIO_COMMANDS } from "./commands.js";
3
4
  import { SUBSCRIBE_EVENTS } from "./events.js";
4
5
  import { PARAMS } from "./params.js";
5
6
  export const PLUGIN_NAME = "INTERFACE";
7
+ export { SCENARIO_COMMANDS };
8
+ export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
6
9
  export { SUBSCRIBE_EVENTS };
7
10
  export { PARAMS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/contracts.views.scenario.interface",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Contracts for @vnejs/plugins.views.scenario.interface",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,9 +30,11 @@
30
30
  "@vnejs/contracts.text.wall": "~0.1.0",
31
31
  "@vnejs/shared": "~0.1.0",
32
32
  "@vnejs/uis.react.position-box": "~0.1.0",
33
- "@vnejs/uis.utils": "~0.1.0"
33
+ "@vnejs/uis.utils": "~0.1.0",
34
+ "@vnejs/contracts.core.scenario": "~0.1.0"
34
35
  },
35
36
  "devDependencies": {
36
- "@vnejs/configs.ts-common": "~0.1.0"
37
+ "@vnejs/configs.ts-common": "~0.1.0",
38
+ "@vnejs/contracts.core.scenario": "~0.1.0"
37
39
  }
38
40
  }
@@ -0,0 +1,14 @@
1
+ import type { ScenarioCommandsManifest } from "@vnejs/contracts.core.scenario";
2
+
3
+ import { EXEC_ACTIONS } from "./const.js";
4
+
5
+ /** Commands owned by plugins.views.scenario.interface */
6
+ export const SCENARIO_COMMANDS = {
7
+ modules: {
8
+ interface: {
9
+ actions: EXEC_ACTIONS,
10
+ },
11
+ },
12
+ } as const satisfies ScenarioCommandsManifest;
13
+
14
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
package/src/const.ts ADDED
@@ -0,0 +1,11 @@
1
+ export const EXEC_ACTIONS = {
2
+ SHOW: "show",
3
+ HIDE: "hide",
4
+ VIEW: "view",
5
+ } as const;
6
+
7
+ export const CONSTANTS = {
8
+ EXEC_ACTIONS,
9
+ } as const;
10
+
11
+ export type Constants = typeof CONSTANTS;
package/src/events.ts CHANGED
@@ -8,7 +8,6 @@ export const SUBSCRIBE_EVENTS = {
8
8
  VIEW_HIDE: "vne:interface:view_hide",
9
9
  VIEW_UPDATE: "vne:interface:view_update",
10
10
 
11
- TEXT: "vne:interface:text",
12
11
  TEXT_HIDE: "vne:interface:text_hide",
13
12
  TEXT_CHANGED: "vne:interface:text_changed",
14
13
 
@@ -24,11 +23,6 @@ export const SUBSCRIBE_EVENTS = {
24
23
  VIEW: "vne:interface:view",
25
24
  VIEW_CHANGED: "vne:interface:view_changed",
26
25
 
27
- HISTORY: "vne:interface:history",
28
- HISTORY_BACK: "vne:interface:history_back",
29
-
30
- GAMEMENU: "vne:interface:gamemenu",
31
-
32
26
  INTERACT: "vne:interface:interact",
33
27
 
34
28
  STATE_CHANGED: "vne:interface:state_changed",
package/src/index.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import "@vnejs/module";
2
2
  import "@vnejs/shared";
3
3
 
4
+ import { SCENARIO_COMMANDS } from "./commands.js";
5
+ import { CONSTANTS } from "./const.js";
4
6
  import { SUBSCRIBE_EVENTS } from "./events.js";
5
7
  import type { InterfaceModuleState } from "./module-global-state.js";
6
8
  import { PARAMS } from "./params.js";
@@ -8,6 +10,11 @@ import { PARAMS } from "./params.js";
8
10
  export const PLUGIN_NAME = "INTERFACE" as const;
9
11
  export type PluginName = typeof PLUGIN_NAME;
10
12
 
13
+ export { SCENARIO_COMMANDS };
14
+ export type { ScenarioCommands } from "./commands.js";
15
+ export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
16
+ export type { Constants } from "./const.js";
17
+
11
18
  export { SUBSCRIBE_EVENTS };
12
19
  export type { SubscribeEvents } from "./events.js";
13
20
  export { PARAMS };
@@ -28,5 +35,7 @@ declare module "@vnejs/module" {
28
35
  declare module "@vnejs/shared" {
29
36
  interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
30
37
 
38
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {}
39
+
31
40
  interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
32
41
  }