@vnejs/plugins.compatibility.choose.fastforward 0.1.0 → 0.1.1
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 +6 -0
- package/dist/index.js +9 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.js +4 -0
- package/package.json +29 -6
- package/{index.js → src/index.ts} +3 -1
- package/src/types.ts +16 -0
- package/tsconfig.json +6 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Module } from "@vnejs/module";
|
|
2
|
+
import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
|
|
3
|
+
export declare class CompatibilityChooseFastforward extends Module<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
|
|
4
|
+
name: string;
|
|
5
|
+
subscribe: () => void;
|
|
6
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Module } from "@vnejs/module";
|
|
2
|
+
import { regModule } from "@vnejs/shared";
|
|
3
|
+
export class CompatibilityChooseFastforward extends Module {
|
|
4
|
+
name = "compatibility.choose.fastforward";
|
|
5
|
+
subscribe = () => {
|
|
6
|
+
this.on(this.EVENTS.CHOOSE.OPTION, () => this.emit(this.EVENTS.FASTFORWARD.CHECK));
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
regModule(CompatibilityChooseFastforward);
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
|
|
2
|
+
import type { PluginName as FastforwardPluginName, SubscribeEvents as FastforwardSubscribeEvents } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
3
|
+
declare const CHOOSE_EVENTS: {
|
|
4
|
+
readonly OPTION: "vne:choose:option";
|
|
5
|
+
};
|
|
6
|
+
export type PluginEvents = VnePluginEventsMapRegistry & Record<"CHOOSE", typeof CHOOSE_EVENTS> & Record<FastforwardPluginName, FastforwardSubscribeEvents>;
|
|
7
|
+
export type PluginConstants = VnePluginConstantsMapRegistry;
|
|
8
|
+
export type PluginSettings = VnePluginSettingsMapRegistry;
|
|
9
|
+
export type PluginParams = VnePluginParamsMapRegistry;
|
|
10
|
+
export {};
|
package/dist/types.js
ADDED
package/package.json
CHANGED
|
@@ -1,17 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.compatibility.choose.fastforward",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "",
|
|
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
|
+
],
|
|
5
20
|
"scripts": {
|
|
6
21
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
22
|
+
"build": "npx @vnejs/monorepo package",
|
|
7
23
|
"publish:major:plugin": "npm run publish:major",
|
|
8
24
|
"publish:minor:plugin": "npm run publish:minor",
|
|
9
25
|
"publish:patch:plugin": "npm run publish:patch",
|
|
10
|
-
"publish:major": "
|
|
11
|
-
"publish:minor": "
|
|
12
|
-
"publish:patch": "
|
|
26
|
+
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
27
|
+
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
28
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
13
29
|
},
|
|
14
30
|
"author": "",
|
|
15
31
|
"license": "ISC",
|
|
16
|
-
"
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@vnejs/module": "~0.0.1",
|
|
34
|
+
"@vnejs/plugins.scenario.fastforward.contract": "~0.0.1",
|
|
35
|
+
"@vnejs/shared": "~0.0.9"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@vnejs/configs.ts-common": "~0.0.1"
|
|
39
|
+
}
|
|
17
40
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Module } from "@vnejs/module";
|
|
2
2
|
import { regModule } from "@vnejs/shared";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
|
|
5
|
+
|
|
6
|
+
export class CompatibilityChooseFastforward extends Module<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
|
|
5
7
|
name = "compatibility.choose.fastforward";
|
|
6
8
|
|
|
7
9
|
subscribe = () => {
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
|
|
2
|
+
import type { PluginName as FastforwardPluginName, SubscribeEvents as FastforwardSubscribeEvents } from "@vnejs/plugins.scenario.fastforward.contract";
|
|
3
|
+
|
|
4
|
+
const CHOOSE_EVENTS = {
|
|
5
|
+
OPTION: "vne:choose:option",
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type PluginEvents = VnePluginEventsMapRegistry &
|
|
9
|
+
Record<"CHOOSE", typeof CHOOSE_EVENTS> &
|
|
10
|
+
Record<FastforwardPluginName, FastforwardSubscribeEvents>;
|
|
11
|
+
|
|
12
|
+
export type PluginConstants = VnePluginConstantsMapRegistry;
|
|
13
|
+
|
|
14
|
+
export type PluginSettings = VnePluginSettingsMapRegistry;
|
|
15
|
+
|
|
16
|
+
export type PluginParams = VnePluginParamsMapRegistry;
|