@vnejs/plugins.views.screens.credits 0.2.1 → 0.2.2
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 +1 -1
- package/src/modules/hide.state.ts +1 -6
- package/src/modules/view.ts +1 -7
- package/src/tests/setup.ts +1 -6
- package/src/view/index.tsx +1 -7
package/package.json
CHANGED
|
@@ -2,12 +2,7 @@ import { ModuleControllerHideOnState } from "@vnejs/module.controller.hide.on.st
|
|
|
2
2
|
|
|
3
3
|
import type { CreditsPluginConstants, CreditsPluginEvents, CreditsPluginParams, CreditsPluginSettings } from "../types.js";
|
|
4
4
|
|
|
5
|
-
export class CreditsHideOnState extends ModuleControllerHideOnState<
|
|
6
|
-
CreditsPluginEvents,
|
|
7
|
-
CreditsPluginConstants,
|
|
8
|
-
CreditsPluginSettings,
|
|
9
|
-
CreditsPluginParams
|
|
10
|
-
> {
|
|
5
|
+
export class CreditsHideOnState extends ModuleControllerHideOnState<CreditsPluginEvents, CreditsPluginConstants, CreditsPluginSettings, CreditsPluginParams> {
|
|
11
6
|
name = "credits.hide.state";
|
|
12
7
|
|
|
13
8
|
EVENT_HIDE = this.EVENTS.CREDITS.HIDE;
|
package/src/modules/view.ts
CHANGED
|
@@ -4,13 +4,7 @@ import { render } from "../view/index.js";
|
|
|
4
4
|
import type { CreditsPluginConstants, CreditsPluginEvents, CreditsPluginParams, CreditsPluginSettings } from "../types.js";
|
|
5
5
|
import type { CreditsPluginState } from "../utils/credits.js";
|
|
6
6
|
|
|
7
|
-
export class CreditsView extends ModuleView<
|
|
8
|
-
CreditsPluginEvents,
|
|
9
|
-
CreditsPluginConstants,
|
|
10
|
-
CreditsPluginSettings,
|
|
11
|
-
CreditsPluginParams,
|
|
12
|
-
CreditsPluginState
|
|
13
|
-
> {
|
|
7
|
+
export class CreditsView extends ModuleView<CreditsPluginEvents, CreditsPluginConstants, CreditsPluginSettings, CreditsPluginParams, CreditsPluginState> {
|
|
14
8
|
name = "credits.view";
|
|
15
9
|
|
|
16
10
|
animationTime = this.PARAMS.CREDITS.TRANSITION;
|
package/src/tests/setup.ts
CHANGED
|
@@ -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 { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.views.screens.credits";
|
|
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 registerCreditsPluginVne = () => {
|
|
11
6
|
registerCoreVne();
|
package/src/view/index.tsx
CHANGED
|
@@ -5,13 +5,7 @@ import { Flex, Screen, ScrollContent, Text, createRenderFunc, useCallback, useMe
|
|
|
5
5
|
import type { CreditsPluginConstants, CreditsPluginEvents, CreditsPluginParams, CreditsPluginSettings } from "../types.js";
|
|
6
6
|
import type { CreditsPluginState } from "../utils/credits.js";
|
|
7
7
|
|
|
8
|
-
type CreditsComponentProps = ReactComponentProps<
|
|
9
|
-
CreditsPluginEvents,
|
|
10
|
-
CreditsPluginConstants,
|
|
11
|
-
CreditsPluginSettings,
|
|
12
|
-
CreditsPluginParams,
|
|
13
|
-
CreditsPluginState
|
|
14
|
-
>;
|
|
8
|
+
type CreditsComponentProps = ReactComponentProps<CreditsPluginEvents, CreditsPluginConstants, CreditsPluginSettings, CreditsPluginParams, CreditsPluginState>;
|
|
15
9
|
|
|
16
10
|
const renderLine = ({ text, props }: { text: string; props: Record<string, unknown> }, i: number) => (
|
|
17
11
|
<Text
|