@vnejs/plugins.views.screens.disclaimer 0.2.4 → 0.2.5
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/modules/controller.accept.d.ts +1 -1
- package/dist/modules/controller.d.ts +1 -1
- package/dist/modules/disclaimer.d.ts +2 -2
- package/dist/modules/view.d.ts +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/view/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/modules/controller.accept.ts +1 -2
- package/src/modules/controller.ts +2 -1
- package/src/modules/disclaimer.ts +1 -1
- package/src/modules/view.ts +1 -2
- package/src/types.ts +7 -0
- package/src/view/index.tsx +1 -2
- package/dist/utils/disclaimer.d.ts +0 -9
- package/dist/utils/disclaimer.js +0 -1
- package/src/utils/disclaimer.ts +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleControllerAccept } from "@vnejs/module.controller.accept";
|
|
2
2
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
3
|
-
import type { DisclaimerPluginState } from "../
|
|
3
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
4
4
|
export declare class DisclaimerControllerAccept extends ModuleControllerAccept<DisclaimerPluginEvents, DisclaimerPluginConstants, DisclaimerPluginSettings, DisclaimerPluginParams, DisclaimerPluginState> {
|
|
5
5
|
name: string;
|
|
6
6
|
EVENT_SHOW: "vne:disclaimer:show";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleController } from "@vnejs/module.components";
|
|
2
2
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
3
|
-
import type { DisclaimerPluginState } from "../
|
|
3
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
4
4
|
export declare class DisclaimerController extends ModuleController<DisclaimerPluginEvents, DisclaimerPluginConstants, DisclaimerPluginSettings, DisclaimerPluginParams, DisclaimerPluginState> {
|
|
5
5
|
name: string;
|
|
6
6
|
EVENT_UPDATE_VIEW: "vne:disclaimer:update";
|
|
@@ -3,6 +3,6 @@ import type { LineExecHandlerArg } from "@vnejs/module.core";
|
|
|
3
3
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
4
4
|
export declare class Disclaimer extends ModuleCore<DisclaimerPluginEvents, DisclaimerPluginConstants, DisclaimerPluginSettings, DisclaimerPluginParams> {
|
|
5
5
|
name: string;
|
|
6
|
-
init: () => Promise<
|
|
7
|
-
onLineExec: ({ line }?: LineExecHandlerArg) => Promise<
|
|
6
|
+
init: () => Promise<import("@vnejs/shared").EmitResults<"vne:scenario:line_exec_reg">> | undefined;
|
|
7
|
+
onLineExec: ({ line }?: LineExecHandlerArg) => Promise<import("@vnejs/shared").EmitResults<"vne:disclaimer:show">> | undefined;
|
|
8
8
|
}
|
package/dist/modules/view.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleView } from "@vnejs/module.components";
|
|
2
2
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
3
|
-
import type { DisclaimerPluginState } from "../
|
|
3
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
4
4
|
export declare class DisclaimerView extends ModuleView<DisclaimerPluginEvents, DisclaimerPluginConstants, DisclaimerPluginSettings, DisclaimerPluginParams, DisclaimerPluginState> {
|
|
5
5
|
name: string;
|
|
6
6
|
EVENT_UPDATE_VIEW: "vne:disclaimer:update";
|
package/dist/types.d.ts
CHANGED
|
@@ -8,3 +8,9 @@ export type DisclaimerPluginEvents = ModuleComponentsEvents & Record<PluginName,
|
|
|
8
8
|
export type DisclaimerPluginConstants = ModuleComponentsConstants & Record<PluginName, Constants> & Record<ControlsPluginName, ControlsConstants> & Record<ScenarioPluginName, ScenarioConstants>;
|
|
9
9
|
export type DisclaimerPluginSettings = ModuleComponentsSettings;
|
|
10
10
|
export type DisclaimerPluginParams = ModuleComponentsParams & Record<PluginName, Params>;
|
|
11
|
+
export type DisclaimerPluginState = {
|
|
12
|
+
isShow: boolean;
|
|
13
|
+
isForce: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
locs?: Record<string, string>;
|
|
16
|
+
};
|
package/dist/view/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModuleControllerAccept } from "@vnejs/module.controller.accept";
|
|
2
2
|
|
|
3
3
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
4
|
-
import type { DisclaimerPluginState } from "../
|
|
5
|
-
|
|
4
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
6
5
|
export class DisclaimerControllerAccept extends ModuleControllerAccept<
|
|
7
6
|
DisclaimerPluginEvents,
|
|
8
7
|
DisclaimerPluginConstants,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ModuleController } from "@vnejs/module.components";
|
|
2
2
|
|
|
3
3
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
4
|
-
import type { DisclaimerPluginState
|
|
4
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
5
|
+
import type { DisclaimerShowPayload } from "@vnejs/contracts.views.screens.disclaimer";
|
|
5
6
|
|
|
6
7
|
export class DisclaimerController extends ModuleController<
|
|
7
8
|
DisclaimerPluginEvents,
|
|
@@ -4,7 +4,7 @@ import { ModuleCore } from "@vnejs/module.core";
|
|
|
4
4
|
import type { LineExecHandlerArg } from "@vnejs/module.core";
|
|
5
5
|
|
|
6
6
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
7
|
-
import type { DisclaimerShowPayload } from "
|
|
7
|
+
import type { DisclaimerShowPayload } from "@vnejs/contracts.views.screens.disclaimer";
|
|
8
8
|
|
|
9
9
|
export class Disclaimer extends ModuleCore<DisclaimerPluginEvents, DisclaimerPluginConstants, DisclaimerPluginSettings, DisclaimerPluginParams> {
|
|
10
10
|
name = "disclaimer";
|
package/src/modules/view.ts
CHANGED
|
@@ -2,8 +2,7 @@ import { ModuleView } from "@vnejs/module.components";
|
|
|
2
2
|
|
|
3
3
|
import { render } from "../view/index.js";
|
|
4
4
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
5
|
-
import type { DisclaimerPluginState } from "../
|
|
6
|
-
|
|
5
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
7
6
|
export class DisclaimerView extends ModuleView<
|
|
8
7
|
DisclaimerPluginEvents,
|
|
9
8
|
DisclaimerPluginConstants,
|
package/src/types.ts
CHANGED
|
@@ -23,3 +23,10 @@ export type DisclaimerPluginConstants = ModuleComponentsConstants &
|
|
|
23
23
|
export type DisclaimerPluginSettings = ModuleComponentsSettings;
|
|
24
24
|
|
|
25
25
|
export type DisclaimerPluginParams = ModuleComponentsParams & Record<PluginName, Params>;
|
|
26
|
+
|
|
27
|
+
export type DisclaimerPluginState = {
|
|
28
|
+
isShow: boolean;
|
|
29
|
+
isForce: boolean;
|
|
30
|
+
id?: string;
|
|
31
|
+
locs?: Record<string, string>;
|
|
32
|
+
};
|
package/src/view/index.tsx
CHANGED
|
@@ -3,8 +3,7 @@ import type { ReactComponentProps } from "@vnejs/uis.react";
|
|
|
3
3
|
import { Flex, PositionBox, Screen, Text, TextControls, createRenderFunc, useCallback, useMemo, useStoreState } from "@vnejs/uis.react";
|
|
4
4
|
|
|
5
5
|
import type { DisclaimerPluginConstants, DisclaimerPluginEvents, DisclaimerPluginParams, DisclaimerPluginSettings } from "../types.js";
|
|
6
|
-
import type { DisclaimerPluginState } from "../
|
|
7
|
-
|
|
6
|
+
import type { DisclaimerPluginState } from "../types.js";
|
|
8
7
|
type DisclaimerComponentProps = ReactComponentProps<
|
|
9
8
|
DisclaimerPluginEvents,
|
|
10
9
|
DisclaimerPluginConstants,
|
package/dist/utils/disclaimer.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|