@vnejs/plugins.settings.textsize 0.1.7 → 0.1.9
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/modules/size.d.ts +3 -3
- package/dist/modules/size.js +2 -2
- package/dist/types.d.ts +5 -6
- package/package.json +3 -4
- package/src/modules/size.ts +3 -3
- package/src/types.ts +5 -6
package/dist/modules/size.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import type { TextSizePluginConstants, TextSizePluginEvents, TextSizePluginParams, TextSizePluginSettings } from "../types.js";
|
|
3
|
-
import type { SettingsChangedResult } from "@vnejs/
|
|
4
|
-
export declare class TextSize extends
|
|
3
|
+
import type { SettingsChangedResult } from "@vnejs/module.core";
|
|
4
|
+
export declare class TextSize extends ModuleCore<TextSizePluginEvents, TextSizePluginConstants, TextSizePluginSettings, TextSizePluginParams> {
|
|
5
5
|
name: string;
|
|
6
6
|
subscribe: () => void;
|
|
7
7
|
init: () => Promise<void>;
|
package/dist/modules/size.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class TextSize extends
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
|
+
export class TextSize extends ModuleCore {
|
|
3
3
|
name = "textsize";
|
|
4
4
|
subscribe = () => {
|
|
5
5
|
this.on(this.EVENTS.SETTINGS.CHANGED, this.onSettingChange);
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
3
2
|
import type { PluginName, SettingsKeys } from "@vnejs/plugins.settings.textsize.contract";
|
|
4
|
-
export type TextSizePluginEvents =
|
|
5
|
-
export type TextSizePluginConstants =
|
|
6
|
-
export type TextSizePluginSettings =
|
|
7
|
-
export type TextSizePluginParams =
|
|
3
|
+
export type TextSizePluginEvents = ModuleCoreEvents;
|
|
4
|
+
export type TextSizePluginConstants = ModuleCoreConstants;
|
|
5
|
+
export type TextSizePluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
6
|
+
export type TextSizePluginParams = ModuleCoreParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.settings.textsize",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,11 +30,10 @@
|
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vnejs/plugins.settings.textsize.contract": "~0.0
|
|
33
|
+
"@vnejs/plugins.settings.textsize.contract": "~0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@vnejs/module": "~0.1.0",
|
|
37
|
-
"@vnejs/plugins.core.settings.contract": "~0.0.1",
|
|
36
|
+
"@vnejs/module.core": "~0.1.0",
|
|
38
37
|
"@vnejs/shared": "~0.1.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
package/src/modules/size.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
|
|
3
3
|
import type { TextSizePluginConstants, TextSizePluginEvents, TextSizePluginParams, TextSizePluginSettings } from "../types.js";
|
|
4
|
-
import type { SettingsChangedResult } from "@vnejs/
|
|
4
|
+
import type { SettingsChangedResult } from "@vnejs/module.core";
|
|
5
5
|
|
|
6
|
-
export class TextSize extends
|
|
6
|
+
export class TextSize extends ModuleCore<TextSizePluginEvents, TextSizePluginConstants, TextSizePluginSettings, TextSizePluginParams> {
|
|
7
7
|
name = "textsize";
|
|
8
8
|
|
|
9
9
|
subscribe = () => {
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
3
2
|
import type { PluginName, SettingsKeys } from "@vnejs/plugins.settings.textsize.contract";
|
|
4
3
|
|
|
5
|
-
export type TextSizePluginEvents =
|
|
4
|
+
export type TextSizePluginEvents = ModuleCoreEvents;
|
|
6
5
|
|
|
7
|
-
export type TextSizePluginConstants =
|
|
6
|
+
export type TextSizePluginConstants = ModuleCoreConstants;
|
|
8
7
|
|
|
9
|
-
export type TextSizePluginSettings =
|
|
8
|
+
export type TextSizePluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
10
9
|
|
|
11
|
-
export type TextSizePluginParams =
|
|
10
|
+
export type TextSizePluginParams = ModuleCoreParams;
|