@vnejs/plugins.scenario.pause.contract 0.0.2

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,5 @@
1
+ export declare const SUBSCRIBE_EVENTS: {
2
+ readonly START: "vne:pause:start";
3
+ readonly END: "vne:pause:end";
4
+ };
5
+ export type SubscribeEvents = typeof SUBSCRIBE_EVENTS;
package/dist/events.js ADDED
@@ -0,0 +1,4 @@
1
+ export const SUBSCRIBE_EVENTS = {
2
+ START: "vne:pause:start",
3
+ END: "vne:pause:end",
4
+ };
@@ -0,0 +1,20 @@
1
+ import "@vnejs/module";
2
+ import "@vnejs/shared";
3
+ import { SUBSCRIBE_EVENTS } from "./events.js";
4
+ export declare const PLUGIN_NAME: "PAUSE";
5
+ export type PluginName = typeof PLUGIN_NAME;
6
+ export { SUBSCRIBE_EVENTS };
7
+ export type { SubscribeEvents } from "./events.js";
8
+ export type PauseStartPayload = {
9
+ time?: number;
10
+ };
11
+ declare module "@vnejs/module" {
12
+ interface ModuleShared {
13
+ /** Set by @vnejs/plugins.scenario.fastforward when installed. */
14
+ isFastforwardOn?: boolean;
15
+ }
16
+ }
17
+ declare module "@vnejs/shared" {
18
+ interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
19
+ }
20
+ }
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import "@vnejs/module";
2
+ import "@vnejs/shared";
3
+ import { SUBSCRIBE_EVENTS } from "./events.js";
4
+ export const PLUGIN_NAME = "PAUSE";
5
+ export { SUBSCRIBE_EVENTS };
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@vnejs/plugins.scenario.pause.contract",
3
+ "version": "0.0.2",
4
+ "description": "Contracts for @vnejs/plugins.scenario.pause",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "tsconfig.json"
19
+ ],
20
+ "scripts": {
21
+ "build": "npx @vnejs/monorepo package",
22
+ "publish:major": "npx @vnejs/monorepo publish major --access public",
23
+ "publish:minor": "npx @vnejs/monorepo publish minor --access public",
24
+ "publish:patch": "npx @vnejs/monorepo publish patch --access public"
25
+ },
26
+ "author": "",
27
+ "license": "ISC",
28
+ "peerDependencies": {
29
+ "@vnejs/module": "~0.0.1",
30
+ "@vnejs/shared": "~0.0.9"
31
+ },
32
+ "devDependencies": {
33
+ "@vnejs/configs.ts-common": "~0.0.1"
34
+ }
35
+ }
package/src/events.ts ADDED
@@ -0,0 +1,6 @@
1
+ export const SUBSCRIBE_EVENTS = {
2
+ START: "vne:pause:start",
3
+ END: "vne:pause:end",
4
+ } as const;
5
+
6
+ export type SubscribeEvents = typeof SUBSCRIBE_EVENTS;
package/src/index.ts ADDED
@@ -0,0 +1,25 @@
1
+ import "@vnejs/module";
2
+ import "@vnejs/shared";
3
+
4
+ import { SUBSCRIBE_EVENTS } from "./events.js";
5
+
6
+ export const PLUGIN_NAME = "PAUSE" as const;
7
+ export type PluginName = typeof PLUGIN_NAME;
8
+
9
+ export { SUBSCRIBE_EVENTS };
10
+ export type { SubscribeEvents } from "./events.js";
11
+
12
+ export type PauseStartPayload = {
13
+ time?: number;
14
+ };
15
+
16
+ declare module "@vnejs/module" {
17
+ interface ModuleShared {
18
+ /** Set by @vnejs/plugins.scenario.fastforward when installed. */
19
+ isFastforwardOn?: boolean;
20
+ }
21
+ }
22
+
23
+ declare module "@vnejs/shared" {
24
+ interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
25
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist"
6
+ },
7
+ "include": ["src/**/*.ts"],
8
+ "exclude": ["dist", "node_modules"]
9
+ }