@vnejs/compatibility.views.scenario.point_and_click-with-views.scenario.interface 0.2.1 → 0.2.3
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 +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/tests/point_and_click.interface.test.ts +3 -3
- package/src/types.ts +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface extends ModuleCore<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
|
|
4
4
|
name: string;
|
|
5
5
|
subscribe: () => void;
|
|
6
6
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import { regModule } from "@vnejs/shared";
|
|
3
|
-
export class
|
|
3
|
+
export class CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface extends ModuleCore {
|
|
4
4
|
name = "compatibility.views.scenario.point_and_click-with-views.scenario.interface";
|
|
5
5
|
subscribe = () => {
|
|
6
6
|
this.on(this.EVENTS.POINT_AND_CLICK_VIEW.SHOW_BEFORE, () => void this.emit(this.EVENTS.INTERFACE.HIDE));
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
regModule(
|
|
9
|
+
regModule(CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { regModule } from "@vnejs/shared";
|
|
|
3
3
|
|
|
4
4
|
import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface extends ModuleCore<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
|
|
7
7
|
name = "compatibility.views.scenario.point_and_click-with-views.scenario.interface";
|
|
8
8
|
|
|
9
9
|
subscribe = () => {
|
|
@@ -11,4 +11,4 @@ export class CompatibilityPointAndClickInterface extends ModuleCore<PluginEvents
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
regModule(
|
|
14
|
+
regModule(CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface);
|
|
@@ -2,14 +2,14 @@ import { beforeEach, describe, expect, it } from "vitest";
|
|
|
2
2
|
|
|
3
3
|
import { spyEvent } from "@vnejs/test-utils";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface } from "../index.js";
|
|
6
6
|
import { createCompatibilityTestModule, INTERFACE_EVENTS, PAC_EVENTS, registerCompatibilityVne } from "./setup.js";
|
|
7
7
|
|
|
8
|
-
describe("
|
|
8
|
+
describe("CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface", () => {
|
|
9
9
|
beforeEach(() => registerCompatibilityVne());
|
|
10
10
|
|
|
11
11
|
it("POINT_AND_CLICK_VIEW.SHOW_BEFORE emits INTERFACE.HIDE", async () => {
|
|
12
|
-
const { observer } = createCompatibilityTestModule(
|
|
12
|
+
const { observer } = createCompatibilityTestModule(CompatibilityViewsScenarioPointAndClickWithViewsScenarioInterface);
|
|
13
13
|
const hide = spyEvent(observer, INTERFACE_EVENTS.HIDE);
|
|
14
14
|
|
|
15
15
|
await observer.emit(PAC_EVENTS.SHOW_BEFORE);
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
PluginName as PointAndClickViewPluginName,
|
|
4
|
+
SubscribeEvents as PointAndClickViewSubscribeEvents,
|
|
5
|
+
} from "@vnejs/contracts.views.scenario.point_and_click";
|
|
3
6
|
import type { PluginName as InterfacePluginName, SubscribeEvents as InterfaceSubscribeEvents } from "@vnejs/contracts.views.scenario.interface";
|
|
4
7
|
|
|
5
8
|
export type PluginEvents = ModuleCoreEvents &
|