@vnejs/plugins.settings.potato 0.1.11 → 0.1.13

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.
@@ -1,8 +1,8 @@
1
- import { Module } from "@vnejs/module";
2
- import type { SettingsChangedResult } from "@vnejs/plugins.core.settings.contract";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
+ import type { SettingsChangedResult } from "@vnejs/module.core";
3
3
  import type { PotatoEmitPayload } from "@vnejs/plugins.settings.potato.contract";
4
4
  import type { PotatoPluginConstants, PotatoPluginEvents, PotatoPluginParams, PotatoPluginSettings } from "../types.js";
5
- export declare class Potato extends Module<PotatoPluginEvents, PotatoPluginConstants, PotatoPluginSettings, PotatoPluginParams> {
5
+ export declare class Potato extends ModuleCore<PotatoPluginEvents, PotatoPluginConstants, PotatoPluginSettings, PotatoPluginParams> {
6
6
  name: string;
7
7
  styleElement?: HTMLStyleElement;
8
8
  subscribe: () => void;
@@ -1,5 +1,5 @@
1
- import { Module } from "@vnejs/module";
2
- export class Potato extends Module {
1
+ import { ModuleCore } from "@vnejs/module.core";
2
+ export class Potato extends ModuleCore {
3
3
  name = "potato";
4
4
  styleElement;
5
5
  subscribe = () => {
package/dist/types.d.ts CHANGED
@@ -1,10 +1,7 @@
1
- import "@vnejs/plugins.core.components.contract";
2
- import "@vnejs/plugins.core.media.contract";
3
1
  import "@vnejs/plugins.settings.potato.contract";
4
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
5
- import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
6
- import type { Constants as PotatoConstants, PluginName, SettingsKeys, SubscribeEvents as PotatoSubscribeEvents } from "@vnejs/plugins.settings.potato.contract";
7
- export type PotatoPluginEvents = VnePluginEventsMapRegistry & Record<SettingsPluginName, SettingsSubscribeEvents> & Record<PluginName, PotatoSubscribeEvents>;
8
- export type PotatoPluginConstants = VnePluginConstantsMapRegistry & Record<PluginName, PotatoConstants>;
9
- export type PotatoPluginSettings = VnePluginSettingsMapRegistry & Record<PluginName, SettingsKeys>;
10
- export type PotatoPluginParams = VnePluginParamsMapRegistry;
2
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
3
+ import type { Constants, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/plugins.settings.potato.contract";
4
+ export type PotatoPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents>;
5
+ export type PotatoPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
6
+ export type PotatoPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
7
+ export type PotatoPluginParams = ModuleCoreParams;
package/dist/types.js CHANGED
@@ -1,3 +1 @@
1
- import "@vnejs/plugins.core.components.contract";
2
- import "@vnejs/plugins.core.media.contract";
3
1
  import "@vnejs/plugins.settings.potato.contract";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.settings.potato",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,13 +30,10 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
- "@vnejs/plugins.settings.potato.contract": "~0.0.1"
33
+ "@vnejs/plugins.settings.potato.contract": "~0.1.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@vnejs/module": "~0.1.0",
37
- "@vnejs/plugins.core.components.contract": "~0.0.1",
38
- "@vnejs/plugins.core.media.contract": "~0.0.1",
39
- "@vnejs/plugins.core.settings.contract": "~0.0.1",
36
+ "@vnejs/module.core": "~0.1.0",
40
37
  "@vnejs/shared": "~0.1.0"
41
38
  },
42
39
  "devDependencies": {
@@ -1,10 +1,10 @@
1
- import { Module } from "@vnejs/module";
2
- import type { SettingsChangedResult } from "@vnejs/plugins.core.settings.contract";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
+ import type { SettingsChangedResult } from "@vnejs/module.core";
3
3
  import type { PotatoEmitPayload } from "@vnejs/plugins.settings.potato.contract";
4
4
 
5
5
  import type { PotatoPluginConstants, PotatoPluginEvents, PotatoPluginParams, PotatoPluginSettings } from "../types.js";
6
6
 
7
- export class Potato extends Module<PotatoPluginEvents, PotatoPluginConstants, PotatoPluginSettings, PotatoPluginParams> {
7
+ export class Potato extends ModuleCore<PotatoPluginEvents, PotatoPluginConstants, PotatoPluginSettings, PotatoPluginParams> {
8
8
  name = "potato";
9
9
 
10
10
  styleElement?: HTMLStyleElement;
package/src/types.ts CHANGED
@@ -1,22 +1,12 @@
1
- import "@vnejs/plugins.core.components.contract";
2
- import "@vnejs/plugins.core.media.contract";
3
1
  import "@vnejs/plugins.settings.potato.contract";
4
2
 
5
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
6
- import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
7
- import type {
8
- Constants as PotatoConstants,
9
- PluginName,
10
- SettingsKeys,
11
- SubscribeEvents as PotatoSubscribeEvents,
12
- } from "@vnejs/plugins.settings.potato.contract";
3
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
4
+ import type { Constants, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/plugins.settings.potato.contract";
13
5
 
14
- export type PotatoPluginEvents = VnePluginEventsMapRegistry &
15
- Record<SettingsPluginName, SettingsSubscribeEvents> &
16
- Record<PluginName, PotatoSubscribeEvents>;
6
+ export type PotatoPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents>;
17
7
 
18
- export type PotatoPluginConstants = VnePluginConstantsMapRegistry & Record<PluginName, PotatoConstants>;
8
+ export type PotatoPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
19
9
 
20
- export type PotatoPluginSettings = VnePluginSettingsMapRegistry & Record<PluginName, SettingsKeys>;
10
+ export type PotatoPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
21
11
 
22
- export type PotatoPluginParams = VnePluginParamsMapRegistry;
12
+ export type PotatoPluginParams = ModuleCoreParams;