@vnejs/plugins.compatibility.choose.interface.fastforward 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 +10 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +1 -0
- package/package.json +41 -0
- package/src/index.ts +15 -0
- 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 CompatibilityChooseInterfaceFastforward extends Module<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
|
|
4
|
+
name: string;
|
|
5
|
+
subscribe: () => void;
|
|
6
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Module } from "@vnejs/module";
|
|
2
|
+
import { regModule } from "@vnejs/shared";
|
|
3
|
+
export class CompatibilityChooseInterfaceFastforward extends Module {
|
|
4
|
+
name = "compatibility.choose.interface.fastforward";
|
|
5
|
+
subscribe = () => {
|
|
6
|
+
this.on(this.EVENTS.CHOOSE.SHOW, () => void this.emit(this.EVENTS.INTERFACE_FASTFORWARD_VIEW.DISABLE_ANIMATION, { isDisabled: true }));
|
|
7
|
+
this.on(this.EVENTS.CHOOSE.HIDE, () => void this.emit(this.EVENTS.INTERFACE_FASTFORWARD_VIEW.DISABLE_ANIMATION, { isDisabled: false }));
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
regModule(CompatibilityChooseInterfaceFastforward);
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
|
|
2
|
+
import type { PluginName as ChoosePluginName, SubscribeEvents as ChooseSubscribeEvents } from "@vnejs/plugins.views.scenario.choose.contract";
|
|
3
|
+
import type { PluginName as InterfaceFastforwardPluginName, SubscribeEvents as InterfaceFastforwardSubscribeEvents } from "@vnejs/plugins.views.scenario.interface.fastforward.contract";
|
|
4
|
+
export type PluginEvents = VnePluginEventsMapRegistry & Record<ChoosePluginName, Pick<ChooseSubscribeEvents, "SHOW" | "HIDE">> & Record<InterfaceFastforwardPluginName, Pick<InterfaceFastforwardSubscribeEvents, "DISABLE_ANIMATION">>;
|
|
5
|
+
export type PluginConstants = VnePluginConstantsMapRegistry;
|
|
6
|
+
export type PluginSettings = VnePluginSettingsMapRegistry;
|
|
7
|
+
export type PluginParams = VnePluginParamsMapRegistry;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/plugins.compatibility.choose.interface.fastforward",
|
|
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
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
22
|
+
"build": "npx @vnejs/monorepo package",
|
|
23
|
+
"publish:major:plugin": "npm run publish:major",
|
|
24
|
+
"publish:minor:plugin": "npm run publish:minor",
|
|
25
|
+
"publish:patch:plugin": "npm run 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"
|
|
29
|
+
},
|
|
30
|
+
"author": "",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@vnejs/module": "~0.0.1",
|
|
34
|
+
"@vnejs/plugins.views.scenario.choose.contract": "~0.0.1",
|
|
35
|
+
"@vnejs/plugins.views.scenario.interface.fastforward.contract": "~0.0.1",
|
|
36
|
+
"@vnejs/shared": "~0.0.9"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@vnejs/configs.ts-common": "~0.0.1"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Module } from "@vnejs/module";
|
|
2
|
+
import { regModule } from "@vnejs/shared";
|
|
3
|
+
|
|
4
|
+
import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
|
|
5
|
+
|
|
6
|
+
export class CompatibilityChooseInterfaceFastforward extends Module<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
|
|
7
|
+
name = "compatibility.choose.interface.fastforward";
|
|
8
|
+
|
|
9
|
+
subscribe = () => {
|
|
10
|
+
this.on(this.EVENTS.CHOOSE.SHOW, () => void this.emit(this.EVENTS.INTERFACE_FASTFORWARD_VIEW.DISABLE_ANIMATION, { isDisabled: true }));
|
|
11
|
+
this.on(this.EVENTS.CHOOSE.HIDE, () => void this.emit(this.EVENTS.INTERFACE_FASTFORWARD_VIEW.DISABLE_ANIMATION, { isDisabled: false }));
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
regModule(CompatibilityChooseInterfaceFastforward);
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
|
|
2
|
+
import type { PluginName as ChoosePluginName, SubscribeEvents as ChooseSubscribeEvents } from "@vnejs/plugins.views.scenario.choose.contract";
|
|
3
|
+
import type {
|
|
4
|
+
PluginName as InterfaceFastforwardPluginName,
|
|
5
|
+
SubscribeEvents as InterfaceFastforwardSubscribeEvents,
|
|
6
|
+
} from "@vnejs/plugins.views.scenario.interface.fastforward.contract";
|
|
7
|
+
|
|
8
|
+
export type PluginEvents = VnePluginEventsMapRegistry &
|
|
9
|
+
Record<ChoosePluginName, Pick<ChooseSubscribeEvents, "SHOW" | "HIDE">> &
|
|
10
|
+
Record<InterfaceFastforwardPluginName, Pick<InterfaceFastforwardSubscribeEvents, "DISABLE_ANIMATION">>;
|
|
11
|
+
|
|
12
|
+
export type PluginConstants = VnePluginConstantsMapRegistry;
|
|
13
|
+
|
|
14
|
+
export type PluginSettings = VnePluginSettingsMapRegistry;
|
|
15
|
+
|
|
16
|
+
export type PluginParams = VnePluginParamsMapRegistry;
|