@vnejs/compatibility.text-with-scenario.autoread 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 +1 -1
- package/src/tests/setup.ts +13 -2
- package/src/types.ts +1 -3
package/package.json
CHANGED
package/src/tests/setup.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
PARAMS as AUTOREAD_PARAMS,
|
|
3
|
+
PLUGIN_NAME as AUTOREAD,
|
|
4
|
+
SETTINGS_KEYS as AUTOREAD_SETTINGS,
|
|
5
|
+
SUBSCRIBE_EVENTS as AUTOREAD_EVENTS,
|
|
6
|
+
} from "@vnejs/contracts.scenario.autoread";
|
|
7
|
+
import {
|
|
8
|
+
CONSTANTS as TEXT_CONST,
|
|
9
|
+
PARAMS as TEXT_PARAMS,
|
|
10
|
+
PLUGIN_NAME as TEXT,
|
|
11
|
+
SETTINGS_KEYS as TEXT_SETTINGS,
|
|
12
|
+
SUBSCRIBE_EVENTS as TEXT_EVENTS,
|
|
13
|
+
} from "@vnejs/contracts.text";
|
|
3
14
|
import { createTestModule as baseCreateTestModule, registerCoreVne, registerVnePlugin } from "@vnejs/test-utils";
|
|
4
15
|
|
|
5
16
|
export const registerCompatibilityVne = () => {
|
package/src/types.ts
CHANGED
|
@@ -2,9 +2,7 @@ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCor
|
|
|
2
2
|
import type { PluginName as AutoreadPluginName, SubscribeEvents as AutoreadSubscribeEvents } from "@vnejs/contracts.scenario.autoread";
|
|
3
3
|
import type { Constants as TextConstants, PluginName as TextPluginName, SubscribeEvents as TextSubscribeEvents } from "@vnejs/contracts.text";
|
|
4
4
|
|
|
5
|
-
export type PluginEvents = ModuleCoreEvents &
|
|
6
|
-
Record<TextPluginName, TextSubscribeEvents> &
|
|
7
|
-
Record<AutoreadPluginName, AutoreadSubscribeEvents>;
|
|
5
|
+
export type PluginEvents = ModuleCoreEvents & Record<TextPluginName, TextSubscribeEvents> & Record<AutoreadPluginName, AutoreadSubscribeEvents>;
|
|
8
6
|
|
|
9
7
|
export type PluginConstants = ModuleCoreConstants & Record<TextPluginName, TextConstants>;
|
|
10
8
|
|