@vnejs/plugins.views.screens.loading 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.screens.loading",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,13 +3,7 @@ import { ModuleCore } from "@vnejs/module.core";
3
3
  import type { LoadingPluginConstants, LoadingPluginEvents, LoadingPluginParams, LoadingPluginSettings } from "../types.js";
4
4
  import type { LoadingEmitPayload, LoadingPluginState } from "../utils/loading.js";
5
5
 
6
- export class Loading extends ModuleCore<
7
- LoadingPluginEvents,
8
- LoadingPluginConstants,
9
- LoadingPluginSettings,
10
- LoadingPluginParams,
11
- LoadingPluginState
12
- > {
6
+ export class Loading extends ModuleCore<LoadingPluginEvents, LoadingPluginConstants, LoadingPluginSettings, LoadingPluginParams, LoadingPluginState> {
13
7
  name = "loading";
14
8
 
15
9
  subscribe = () => {
@@ -4,13 +4,7 @@ import { render } from "../view/index.js";
4
4
  import type { LoadingPluginConstants, LoadingPluginEvents, LoadingPluginParams, LoadingPluginSettings } from "../types.js";
5
5
  import type { LoadingPluginState } from "../utils/loading.js";
6
6
 
7
- export class LoadingView extends ModuleView<
8
- LoadingPluginEvents,
9
- LoadingPluginConstants,
10
- LoadingPluginSettings,
11
- LoadingPluginParams,
12
- LoadingPluginState
13
- > {
7
+ export class LoadingView extends ModuleView<LoadingPluginEvents, LoadingPluginConstants, LoadingPluginSettings, LoadingPluginParams, LoadingPluginState> {
14
8
  name = "loading.view";
15
9
 
16
10
  locLabel = this.PARAMS.LOADING.LOC_LABEL;
@@ -1,10 +1,5 @@
1
1
  import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.views.screens.loading";
2
- import {
3
- createTestModule as baseCreateTestModule,
4
- registerCoreVne,
5
- registerVnePlugin,
6
- stubSilentEvent,
7
- } from "@vnejs/test-utils";
2
+ import { createTestModule as baseCreateTestModule, registerCoreVne, registerVnePlugin, stubSilentEvent } from "@vnejs/test-utils";
8
3
 
9
4
  export const registerLoadingPluginVne = () => {
10
5
  registerCoreVne();
@@ -5,13 +5,7 @@ import { PositionBox, Screen, Text, createRenderFunc, useMemo, useStoreState } f
5
5
  import type { LoadingPluginConstants, LoadingPluginEvents, LoadingPluginParams, LoadingPluginSettings } from "../types.js";
6
6
  import type { LoadingPluginState } from "../utils/loading.js";
7
7
 
8
- type LoadingComponentProps = ReactComponentProps<
9
- LoadingPluginEvents,
10
- LoadingPluginConstants,
11
- LoadingPluginSettings,
12
- LoadingPluginParams,
13
- LoadingPluginState
14
- >;
8
+ type LoadingComponentProps = ReactComponentProps<LoadingPluginEvents, LoadingPluginConstants, LoadingPluginSettings, LoadingPluginParams, LoadingPluginState>;
15
9
 
16
10
  const Loading = ({ store, onMount, PARAMS }: LoadingComponentProps) => {
17
11
  const { isShow = false, isForce = false, bgSrc = "", locs = {} } = useStoreState<LoadingPluginState>(store, onMount);