@vnejs/plugins.views.scenario.interface 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.scenario.interface",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,13 +3,7 @@ import { SUBSCRIBE_EVENTS as SCENARIO_EVENTS } from "@vnejs/contracts.core.scena
3
3
  import { SUBSCRIBE_EVENTS as TEXT_EVENTS, PLUGIN_NAME as TEXT } from "@vnejs/contracts.text";
4
4
  import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.views.scenario.interface";
5
5
  import { SourcesSet } from "@vnejs/sources-set";
6
- import {
7
- createTestModule as baseCreateTestModule,
8
- registerCoreVne,
9
- registerVnePlugin,
10
- stubEvent,
11
- stubSilentEvent,
12
- } from "@vnejs/test-utils";
6
+ import { createTestModule as baseCreateTestModule, registerCoreVne, registerVnePlugin, stubEvent, stubSilentEvent } from "@vnejs/test-utils";
13
7
 
14
8
  export const registerInterfacePluginVne = () => {
15
9
  registerCoreVne();
@@ -9,7 +9,10 @@ export const InterfaceViewDialog = (props: InterfaceViewProps) => {
9
9
 
10
10
  const propsByView = PARAMS.INTERFACE.VIEW_PROPS.adv;
11
11
 
12
- const propsPosition = useMemo(() => ({ ...propsByView.position, opacity: isViewActive ? 1 : 0, transition }), [isViewActive, transition, propsByView.position]);
12
+ const propsPosition = useMemo(
13
+ () => ({ ...propsByView.position, opacity: isViewActive ? 1 : 0, transition }),
14
+ [isViewActive, transition, propsByView.position],
15
+ );
13
16
 
14
17
  const speakerOpacity = speakerName ? 1 : 0;
15
18
  const speakerTransition = speakerName ? transition : 0;
@@ -15,7 +15,10 @@ export const InterfaceViewLine = (props: InterfaceViewProps) => {
15
15
  () => ({ ...propsByView.text, opacity, color, transition, ...propsTextTokens }),
16
16
  [opacity, color, transition, propsTextTokens, propsByView.text],
17
17
  );
18
- const propsPosition = useMemo(() => ({ ...propsByView.position, opacity: isViewActive ? 1 : 0, transition }), [isViewActive, transition, propsByView.position]);
18
+ const propsPosition = useMemo(
19
+ () => ({ ...propsByView.position, opacity: isViewActive ? 1 : 0, transition }),
20
+ [isViewActive, transition, propsByView.position],
21
+ );
19
22
 
20
23
  return (
21
24
  <PositionBox {...propsPosition}>
package/tsconfig.json CHANGED
@@ -5,13 +5,6 @@
5
5
  "outDir": "dist",
6
6
  "jsx": "react-jsx"
7
7
  },
8
- "include": [
9
- "src/**/*.ts",
10
- "src/**/*.tsx"
11
- ],
12
- "exclude": [
13
- "dist",
14
- "node_modules",
15
- "src/tests"
16
- ]
8
+ "include": ["src/**/*.ts", "src/**/*.tsx"],
9
+ "exclude": ["dist", "node_modules", "src/tests"]
17
10
  }