@vnejs/plugins.scenario.fastforward 0.1.11 → 0.1.12
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.
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/modules/fastforward.d.ts +2 -2
- package/dist/modules/fastforward.js +2 -2
- package/dist/modules/visits.d.ts +2 -3
- package/dist/modules/visits.js +2 -3
- package/dist/types.d.ts +5 -11
- package/package.json +2 -11
- package/src/index.ts +0 -2
- package/src/modules/fastforward.ts +2 -2
- package/src/modules/visits.ts +2 -3
- package/src/types.ts +5 -19
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "@vnejs/plugins.core.components.contract";
|
|
2
|
-
import "@vnejs/plugins.core.media.contract";
|
|
3
1
|
import "@vnejs/plugins.scenario.fastforward.contract";
|
|
4
2
|
import { regPlugin } from "@vnejs/shared";
|
|
5
3
|
import { CONSTANTS, PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import type { FastforwardPluginConstants, FastforwardPluginEvents, FastforwardPluginParams, FastforwardPluginSettings } from "../types.js";
|
|
3
|
-
export declare class Fastforward extends
|
|
3
|
+
export declare class Fastforward extends ModuleCore<FastforwardPluginEvents, FastforwardPluginConstants, FastforwardPluginSettings, FastforwardPluginParams> {
|
|
4
4
|
name: string;
|
|
5
5
|
emitStop: () => Promise<unknown[]> | undefined;
|
|
6
6
|
emitFastforwardEmit: () => Promise<unknown[]> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class Fastforward extends
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
|
+
export class Fastforward extends ModuleCore {
|
|
3
3
|
name = "fastforward";
|
|
4
4
|
emitStop = () => this.emit(this.EVENTS.FASTFORWARD.STOP);
|
|
5
5
|
emitFastforwardEmit = () => this.emit(this.EVENTS.FASTFORWARD.EMIT);
|
package/dist/modules/visits.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "@vnejs/plugins.core.scenario.contract";
|
|
2
1
|
import "@vnejs/plugins.text.contract";
|
|
3
|
-
import {
|
|
2
|
+
import { ModuleCore, type ModuleGlobalStateRegistry } from "@vnejs/module.core";
|
|
4
3
|
import type { TextEmitPayload } from "@vnejs/plugins.text.contract";
|
|
5
4
|
import type { ModuleGlobalStateFastforwardVisits } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
6
5
|
import type { FastforwardPluginConstants, FastforwardPluginEvents, FastforwardPluginParams, FastforwardPluginSettings } from "../types.js";
|
|
7
|
-
export declare class FastforwardVisits extends
|
|
6
|
+
export declare class FastforwardVisits extends ModuleCore<FastforwardPluginEvents, FastforwardPluginConstants, FastforwardPluginSettings, FastforwardPluginParams, ModuleGlobalStateFastforwardVisits> {
|
|
8
7
|
name: string;
|
|
9
8
|
visits: Record<string, number>;
|
|
10
9
|
subscribe: () => void;
|
package/dist/modules/visits.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "@vnejs/plugins.core.scenario.contract";
|
|
2
1
|
import "@vnejs/plugins.text.contract";
|
|
3
|
-
import {
|
|
4
|
-
export class FastforwardVisits extends
|
|
2
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
3
|
+
export class FastforwardVisits extends ModuleCore {
|
|
5
4
|
name = "fastforward.visits";
|
|
6
5
|
visits = {};
|
|
7
6
|
subscribe = () => {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { PluginName as InteractPluginName, SubscribeEvents as InteractSubscribeEvents } from "@vnejs/plugins.core.interact.contract";
|
|
3
|
-
import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
|
|
4
|
-
import type { PluginName as StatePluginName, SubscribeEvents as StateSubscribeEvents } from "@vnejs/plugins.core.state.contract";
|
|
5
|
-
import type { PluginName as StoragePluginName, SubscribeEvents as StorageSubscribeEvents } from "@vnejs/plugins.core.storage.contract";
|
|
6
|
-
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/plugins.core.system.contract";
|
|
7
|
-
import type { PluginName as VendorsPluginName, SubscribeEvents as VendorsSubscribeEvents } from "@vnejs/plugins.core.vendors.contract";
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
8
2
|
import type { PluginName as TextPluginName, SubscribeEvents as TextSubscribeEvents } from "@vnejs/plugins.text.contract";
|
|
9
3
|
import type { Constants, Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
10
|
-
export type FastforwardPluginEvents =
|
|
11
|
-
export type FastforwardPluginConstants =
|
|
12
|
-
export type FastforwardPluginSettings =
|
|
13
|
-
export type FastforwardPluginParams =
|
|
4
|
+
export type FastforwardPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents> & Record<TextPluginName, TextSubscribeEvents>;
|
|
5
|
+
export type FastforwardPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
|
|
6
|
+
export type FastforwardPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
7
|
+
export type FastforwardPluginParams = ModuleCoreParams & Record<PluginName, Params>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.scenario.fastforward",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,17 +33,8 @@
|
|
|
33
33
|
"@vnejs/plugins.scenario.fastforward.contract": "~0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@vnejs/module": "~0.1.0",
|
|
36
|
+
"@vnejs/module.core": "~0.1.0",
|
|
37
37
|
"@vnejs/shared": "~0.1.0",
|
|
38
|
-
"@vnejs/plugins.core.components.contract": "~0.1.0",
|
|
39
|
-
"@vnejs/plugins.core.media.contract": "~0.1.0",
|
|
40
|
-
"@vnejs/plugins.core.interact.contract": "~0.1.0",
|
|
41
|
-
"@vnejs/plugins.core.scenario.contract": "~0.1.0",
|
|
42
|
-
"@vnejs/plugins.core.settings.contract": "~0.1.0",
|
|
43
|
-
"@vnejs/plugins.core.state.contract": "~0.1.0",
|
|
44
|
-
"@vnejs/plugins.core.storage.contract": "~0.1.0",
|
|
45
|
-
"@vnejs/plugins.core.system.contract": "~0.1.0",
|
|
46
|
-
"@vnejs/plugins.core.vendors.contract": "~0.1.0",
|
|
47
38
|
"@vnejs/plugins.text.contract": "~0.1.0"
|
|
48
39
|
},
|
|
49
40
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
|
|
3
3
|
import type { FastforwardChangedPayload, FastforwardCheckResult } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
4
4
|
|
|
5
5
|
import type { FastforwardPluginConstants, FastforwardPluginEvents, FastforwardPluginParams, FastforwardPluginSettings } from "../types.js";
|
|
6
6
|
|
|
7
|
-
export class Fastforward extends
|
|
7
|
+
export class Fastforward extends ModuleCore<FastforwardPluginEvents, FastforwardPluginConstants, FastforwardPluginSettings, FastforwardPluginParams> {
|
|
8
8
|
name = "fastforward";
|
|
9
9
|
|
|
10
10
|
emitStop = () => this.emit(this.EVENTS.FASTFORWARD.STOP);
|
package/src/modules/visits.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "@vnejs/plugins.core.scenario.contract";
|
|
2
1
|
import "@vnejs/plugins.text.contract";
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import { ModuleCore, type ModuleGlobalStateRegistry } from "@vnejs/module.core";
|
|
5
4
|
import type { TextEmitPayload } from "@vnejs/plugins.text.contract";
|
|
6
5
|
import type { FastforwardCheckResult, ModuleGlobalStateFastforwardVisits } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
7
6
|
|
|
8
7
|
import type { FastforwardPluginConstants, FastforwardPluginEvents, FastforwardPluginParams, FastforwardPluginSettings } from "../types.js";
|
|
9
8
|
|
|
10
|
-
export class FastforwardVisits extends
|
|
9
|
+
export class FastforwardVisits extends ModuleCore<
|
|
11
10
|
FastforwardPluginEvents,
|
|
12
11
|
FastforwardPluginConstants,
|
|
13
12
|
FastforwardPluginSettings,
|
package/src/types.ts
CHANGED
|
@@ -1,25 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { PluginName as InteractPluginName, SubscribeEvents as InteractSubscribeEvents } from "@vnejs/plugins.core.interact.contract";
|
|
3
|
-
import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
|
|
4
|
-
import type { PluginName as StatePluginName, SubscribeEvents as StateSubscribeEvents } from "@vnejs/plugins.core.state.contract";
|
|
5
|
-
import type { PluginName as StoragePluginName, SubscribeEvents as StorageSubscribeEvents } from "@vnejs/plugins.core.storage.contract";
|
|
6
|
-
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/plugins.core.system.contract";
|
|
7
|
-
import type { PluginName as VendorsPluginName, SubscribeEvents as VendorsSubscribeEvents } from "@vnejs/plugins.core.vendors.contract";
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
8
2
|
import type { PluginName as TextPluginName, SubscribeEvents as TextSubscribeEvents } from "@vnejs/plugins.text.contract";
|
|
9
3
|
import type { Constants, Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
10
4
|
|
|
11
|
-
export type FastforwardPluginEvents =
|
|
12
|
-
Record<PluginName, SubscribeEvents> &
|
|
13
|
-
Record<InteractPluginName, InteractSubscribeEvents> &
|
|
14
|
-
Record<SettingsPluginName, SettingsSubscribeEvents> &
|
|
15
|
-
Record<StatePluginName, StateSubscribeEvents> &
|
|
16
|
-
Record<StoragePluginName, StorageSubscribeEvents> &
|
|
17
|
-
Record<SystemPluginName, SystemSubscribeEvents> &
|
|
18
|
-
Record<TextPluginName, TextSubscribeEvents> &
|
|
19
|
-
Record<VendorsPluginName, VendorsSubscribeEvents>;
|
|
5
|
+
export type FastforwardPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents> & Record<TextPluginName, TextSubscribeEvents>;
|
|
20
6
|
|
|
21
|
-
export type FastforwardPluginConstants =
|
|
7
|
+
export type FastforwardPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
|
|
22
8
|
|
|
23
|
-
export type FastforwardPluginSettings =
|
|
9
|
+
export type FastforwardPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
24
10
|
|
|
25
|
-
export type FastforwardPluginParams =
|
|
11
|
+
export type FastforwardPluginParams = ModuleCoreParams & Record<PluginName, Params>;
|