@vnejs/contracts.views.screens.credits 0.1.1 → 0.2.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.
@@ -0,0 +1,12 @@
1
+ /** Commands owned by plugins.views.screens.credits */
2
+ export declare const SCENARIO_COMMANDS: {
3
+ readonly modules: {
4
+ readonly credits: {
5
+ readonly actions: {
6
+ readonly SHOW: "show";
7
+ readonly HIDE: "hide";
8
+ };
9
+ };
10
+ };
11
+ };
12
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
@@ -0,0 +1,9 @@
1
+ import { EXEC_ACTIONS } from "./const.js";
2
+ /** Commands owned by plugins.views.screens.credits */
3
+ export const SCENARIO_COMMANDS = {
4
+ modules: {
5
+ credits: {
6
+ actions: EXEC_ACTIONS,
7
+ },
8
+ },
9
+ };
@@ -0,0 +1,11 @@
1
+ export declare const EXEC_ACTIONS: {
2
+ readonly SHOW: "show";
3
+ readonly HIDE: "hide";
4
+ };
5
+ export declare const CONSTANTS: {
6
+ readonly EXEC_ACTIONS: {
7
+ readonly SHOW: "show";
8
+ readonly HIDE: "hide";
9
+ };
10
+ };
11
+ export type Constants = typeof CONSTANTS;
package/dist/const.js ADDED
@@ -0,0 +1,7 @@
1
+ export const EXEC_ACTIONS = {
2
+ SHOW: "show",
3
+ HIDE: "hide",
4
+ };
5
+ export const CONSTANTS = {
6
+ EXEC_ACTIONS,
7
+ };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,14 @@
1
1
  import "@vnejs/shared";
2
+ import { SCENARIO_COMMANDS } from "./commands.js";
3
+ import { CONSTANTS } from "./const.js";
2
4
  import { SUBSCRIBE_EVENTS } from "./events.js";
3
5
  import { PARAMS } from "./params.js";
4
6
  export declare const PLUGIN_NAME: "CREDITS";
5
7
  export type PluginName = typeof PLUGIN_NAME;
8
+ export { SCENARIO_COMMANDS };
9
+ export type { ScenarioCommands } from "./commands.js";
10
+ export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
11
+ export type { Constants } from "./const.js";
6
12
  export { SUBSCRIBE_EVENTS };
7
13
  export type { SubscribeEvents } from "./events.js";
8
14
  export { PARAMS };
@@ -10,6 +16,8 @@ export type { Params, ViewProps } from "./params.js";
10
16
  declare module "@vnejs/shared" {
11
17
  interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
12
18
  }
19
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
20
+ }
13
21
  interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
14
22
  }
15
23
  }
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import "@vnejs/shared";
2
+ import { SCENARIO_COMMANDS } from "./commands.js";
2
3
  import { SUBSCRIBE_EVENTS } from "./events.js";
3
4
  import { PARAMS } from "./params.js";
4
5
  export const PLUGIN_NAME = "CREDITS";
6
+ export { SCENARIO_COMMANDS };
7
+ export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
5
8
  export { SUBSCRIBE_EVENTS };
6
9
  export { PARAMS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/contracts.views.screens.credits",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Contracts for @vnejs/plugins.views.screens.credits",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,9 +26,11 @@
26
26
  "author": "",
27
27
  "license": "ISC",
28
28
  "peerDependencies": {
29
- "@vnejs/shared": "~0.1.0"
29
+ "@vnejs/shared": "~0.2.0",
30
+ "@vnejs/contracts.core.scenario": "~0.2.0"
30
31
  },
31
32
  "devDependencies": {
32
- "@vnejs/configs.ts-common": "~0.1.0"
33
+ "@vnejs/configs.ts-common": "~0.2.0",
34
+ "@vnejs/contracts.core.scenario": "~0.2.0"
33
35
  }
34
36
  }
@@ -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.screens.credits */
6
+ export const SCENARIO_COMMANDS = {
7
+ modules: {
8
+ credits: {
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,10 @@
1
+ export const EXEC_ACTIONS = {
2
+ SHOW: "show",
3
+ HIDE: "hide",
4
+ } as const;
5
+
6
+ export const CONSTANTS = {
7
+ EXEC_ACTIONS,
8
+ } as const;
9
+
10
+ export type Constants = typeof CONSTANTS;
package/src/index.ts CHANGED
@@ -1,9 +1,16 @@
1
1
  import "@vnejs/shared";
2
+ import { SCENARIO_COMMANDS } from "./commands.js";
3
+ import { CONSTANTS } from "./const.js";
2
4
  import { SUBSCRIBE_EVENTS } from "./events.js";
3
5
  import { PARAMS } from "./params.js";
4
6
 
5
7
  export const PLUGIN_NAME = "CREDITS" as const;
6
8
  export type PluginName = typeof PLUGIN_NAME;
9
+
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";
7
14
  export { SUBSCRIBE_EVENTS };
8
15
  export type { SubscribeEvents } from "./events.js";
9
16
  export { PARAMS };
@@ -11,5 +18,6 @@ export type { Params, ViewProps } from "./params.js";
11
18
 
12
19
  declare module "@vnejs/shared" {
13
20
  interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
21
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {}
14
22
  interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
15
23
  }