@vnejs/plugins.views.screens.disclaimer 0.2.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.screens.disclaimer",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,11 +1,6 @@
1
1
  import { CONSTANTS as CONTROLS_CONST, PLUGIN_NAME as CONTROLS, SUBSCRIBE_EVENTS as CONTROLS_EVENTS } from "@vnejs/contracts.controls";
2
2
  import { CONSTANTS, PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.views.screens.disclaimer";
3
- import {
4
- createTestModule as baseCreateTestModule,
5
- registerCoreVne,
6
- registerVnePlugin,
7
- stubSilentEvent,
8
- } from "@vnejs/test-utils";
3
+ import { createTestModule as baseCreateTestModule, registerCoreVne, registerVnePlugin, stubSilentEvent } from "@vnejs/test-utils";
9
4
 
10
5
  export const registerDisclaimerPluginVne = () => {
11
6
  registerCoreVne();
package/src/types.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import type { ModuleComponentsConstants, ModuleComponentsEvents, ModuleComponentsParams, ModuleComponentsSettings } from "@vnejs/module.components";
2
2
  import type { Constants as ControlsConstants, PluginName as ControlsPluginName } from "@vnejs/contracts.controls";
3
- import type { Constants as ScenarioConstants, PluginName as ScenarioPluginName, SubscribeEvents as ScenarioSubscribeEvents } from "@vnejs/contracts.core.scenario";
3
+ import type {
4
+ Constants as ScenarioConstants,
5
+ PluginName as ScenarioPluginName,
6
+ SubscribeEvents as ScenarioSubscribeEvents,
7
+ } from "@vnejs/contracts.core.scenario";
4
8
  import type { PluginName as LogsPluginName, SubscribeEvents as LogsSubscribeEvents } from "@vnejs/contracts.core.logs";
5
9
  import type { PluginName as LocsPluginName, SubscribeEvents as LocsSubscribeEvents } from "@vnejs/contracts.text.locs";
6
10
  import type { Constants, Params, PluginName, SubscribeEvents } from "@vnejs/contracts.views.screens.disclaimer";
@@ -41,10 +41,7 @@ const DisclaimerScreen = ({ store, onMount, PARAMS, emit, EVENTS }: DisclaimerCo
41
41
 
42
42
  const propsScreen = useMemo(() => ({ ...propsByView.screen, isShow, isForce }), [isShow, isForce, propsByView.screen]);
43
43
  const propsTitle = useMemo(() => ({ ...propsByView.title, text: title }), [title, propsByView.title]);
44
- const propsControls = useMemo(
45
- () => ({ ...propsByView.controls, texts: buttonTexts, onClick }),
46
- [propsByView.controls, buttonTexts, onClick],
47
- );
44
+ const propsControls = useMemo(() => ({ ...propsByView.controls, texts: buttonTexts, onClick }), [propsByView.controls, buttonTexts, onClick]);
48
45
 
49
46
  return (
50
47
  <Screen {...propsScreen}>