@vnejs/plugins.scenario.autoread 0.1.9 → 0.1.11
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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/modules/autoread.d.ts +1 -1
- package/dist/modules/autoread.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/autoread.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -2
- package/src/modules/autoread.ts +2 -2
- package/src/types.ts +1 -1
- package/src/utils/autoread.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.scenario.autoread";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.scenario.autoread";
|
|
2
2
|
import { regPlugin } from "@vnejs/shared";
|
|
3
|
-
import { PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/
|
|
3
|
+
import { PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/contracts.scenario.autoread";
|
|
4
4
|
import { Autoread } from "./modules/autoread.js";
|
|
5
5
|
regPlugin(PLUGIN_NAME, { events: SUBSCRIBE_EVENTS, params: PARAMS, settings: SETTINGS_KEYS }, [Autoread]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleCore } from "@vnejs/module.core";
|
|
2
|
-
import type { AutoreadSourcePayload } from "@vnejs/
|
|
2
|
+
import type { AutoreadSourcePayload } from "@vnejs/contracts.scenario.autoread";
|
|
3
3
|
import type { AutoreadPluginConstants, AutoreadPluginEvents, AutoreadPluginParams, AutoreadPluginSettings } from "../types.js";
|
|
4
4
|
import type { SettingsChangedResult } from "@vnejs/module.core";
|
|
5
5
|
export declare class Autoread extends ModuleCore<AutoreadPluginEvents, AutoreadPluginConstants, AutoreadPluginSettings, AutoreadPluginParams> {
|
package/dist/modules/autoread.js
CHANGED
|
@@ -16,7 +16,7 @@ export class Autoread extends ModuleCore {
|
|
|
16
16
|
this.emit(this.EVENTS.SETTINGS.INIT, { name: this.SETTINGS.AUTOREAD.DELAY, value: this.PARAMS.AUTOREAD.DEFAULT_DELAY }),
|
|
17
17
|
]);
|
|
18
18
|
onTry = async () => {
|
|
19
|
-
this.
|
|
19
|
+
this.emitLog({ action: "try" });
|
|
20
20
|
if (!this.shared.settings[this.SETTINGS.AUTOREAD.ENABLED] || this.disableSources.length)
|
|
21
21
|
return;
|
|
22
22
|
await this.waitRerender();
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
-
import type { Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/
|
|
2
|
+
import type { Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/contracts.scenario.autoread";
|
|
3
3
|
export type AutoreadPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents>;
|
|
4
4
|
export type AutoreadPluginConstants = ModuleCoreConstants;
|
|
5
5
|
export type AutoreadPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
package/dist/utils/autoread.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AutoreadSourcePayload } from "@vnejs/
|
|
1
|
+
import type { AutoreadSourcePayload } from "@vnejs/contracts.scenario.autoread";
|
|
2
2
|
export type { AutoreadSourcePayload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.scenario.autoread",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vnejs/
|
|
33
|
+
"@vnejs/contracts.scenario.autoread": "~0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@vnejs/module.core": "~0.1.0",
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.scenario.autoread";
|
|
2
2
|
|
|
3
3
|
import { regPlugin } from "@vnejs/shared";
|
|
4
|
-
import { PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/
|
|
4
|
+
import { PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/contracts.scenario.autoread";
|
|
5
5
|
|
|
6
6
|
import { Autoread } from "./modules/autoread.js";
|
|
7
7
|
|
package/src/modules/autoread.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleCore } from "@vnejs/module.core";
|
|
2
|
-
import type { AutoreadSourcePayload } from "@vnejs/
|
|
2
|
+
import type { AutoreadSourcePayload } from "@vnejs/contracts.scenario.autoread";
|
|
3
3
|
|
|
4
4
|
import type { AutoreadPluginConstants, AutoreadPluginEvents, AutoreadPluginParams, AutoreadPluginSettings } from "../types.js";
|
|
5
5
|
import type { SettingsChangedResult } from "@vnejs/module.core";
|
|
@@ -28,7 +28,7 @@ export class Autoread extends ModuleCore<AutoreadPluginEvents, AutoreadPluginCon
|
|
|
28
28
|
]);
|
|
29
29
|
|
|
30
30
|
onTry = async () => {
|
|
31
|
-
this.
|
|
31
|
+
this.emitLog({ action: "try" });
|
|
32
32
|
|
|
33
33
|
if (!this.shared.settings[this.SETTINGS.AUTOREAD.ENABLED] || this.disableSources.length) return;
|
|
34
34
|
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
-
import type { Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/
|
|
2
|
+
import type { Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/contracts.scenario.autoread";
|
|
3
3
|
|
|
4
4
|
export type AutoreadPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents>;
|
|
5
5
|
|
package/src/utils/autoread.ts
CHANGED