@vnejs/plugins.settings.textsize 0.2.2 → 0.2.4

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@vnejs/contracts.settings.textsize";
2
- import { regPlugin } from "@vnejs/shared";
2
+ import { regPlugin } from "@vnejs/registry";
3
3
  import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.textsize";
4
4
  import { Textsize } from "./modules/textsize.js";
5
5
  regPlugin(PLUGIN_NAME, { settings: SETTINGS_KEYS }, [Textsize]);
@@ -1,10 +1,10 @@
1
1
  import { ModuleCore } from "@vnejs/module.core";
2
- import type { TextSizePluginConstants, TextSizePluginEvents, TextSizePluginParams, TextSizePluginSettings } from "../types.js";
3
2
  import type { SettingsChangedResult } from "@vnejs/module.core";
3
+ import type { TextSizePluginConstants, TextSizePluginEvents, TextSizePluginParams, TextSizePluginSettings } from "../types.js";
4
4
  export declare class Textsize extends ModuleCore<TextSizePluginEvents, TextSizePluginConstants, TextSizePluginSettings, TextSizePluginParams> {
5
5
  name: string;
6
6
  subscribe: () => void;
7
- setup: () => Promise<unknown[]> | undefined;
7
+ setup: () => Promise<import("@vnejs/registry").EmitResults<"vne:settings:init">> | undefined;
8
8
  init: () => void;
9
9
  onSettingChange: ({ name, value }: SettingsChangedResult) => void | false;
10
10
  setTextSize: (value: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.settings.textsize",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@vnejs/module.core": "~0.2.0",
37
- "@vnejs/shared": "~0.2.0"
37
+ "@vnejs/registry": "~0.2.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@vnejs/configs.ts-common": "~0.2.0",
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "@vnejs/contracts.settings.textsize";
2
2
 
3
- import { regPlugin } from "@vnejs/shared";
3
+ import { regPlugin } from "@vnejs/registry";
4
+
4
5
  import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.textsize";
5
6
 
6
7
  import { Textsize } from "./modules/textsize.js";
@@ -1,8 +1,9 @@
1
1
  import { ModuleCore } from "@vnejs/module.core";
2
2
 
3
- import type { TextSizePluginConstants, TextSizePluginEvents, TextSizePluginParams, TextSizePluginSettings } from "../types.js";
4
3
  import type { SettingsChangedResult } from "@vnejs/module.core";
5
4
 
5
+ import type { TextSizePluginConstants, TextSizePluginEvents, TextSizePluginParams, TextSizePluginSettings } from "../types.js";
6
+
6
7
  export class Textsize extends ModuleCore<TextSizePluginEvents, TextSizePluginConstants, TextSizePluginSettings, TextSizePluginParams> {
7
8
  name = "textsize";
8
9
 
@@ -1,6 +1,7 @@
1
- import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.textsize";
2
1
  import { createTestModule as baseCreateTestModule, registerCoreVne, registerVnePlugin } from "@vnejs/test-utils";
3
2
 
3
+ import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.textsize";
4
+
4
5
  export const registerTextSizePluginVne = () => {
5
6
  registerCoreVne();
6
7
  registerVnePlugin(PLUGIN_NAME, { settings: SETTINGS_KEYS });
@@ -3,6 +3,7 @@ import { beforeEach, describe, expect, it } from "vitest";
3
3
  import { SUBSCRIBE_EVENTS as SETTINGS_EVENTS } from "@vnejs/contracts.core.settings";
4
4
 
5
5
  import { Textsize } from "../modules/textsize.js";
6
+
6
7
  import { createTextSizeTestModule, registerTextSizePluginVne, SETTINGS_KEYS } from "./setup.js";
7
8
 
8
9
  describe("Textsize", () => {
package/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
+
2
3
  import type { PluginName, SettingsKeys } from "@vnejs/contracts.settings.textsize";
3
4
 
4
5
  export type TextSizePluginEvents = ModuleCoreEvents;