@vnejs/core 0.2.20 → 0.2.22

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 CHANGED
@@ -1,5 +1,3 @@
1
- import "@vnejs/plugins.core.storage.contract";
2
- import "@vnejs/plugins.core.system.contract";
3
1
  import { Observer } from "@vnejs/observer";
4
2
  import { type ModuleGlobalStateRegistry } from "@vnejs/module";
5
3
  import type { VneModuleClass } from "@vnejs/shared";
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import "@vnejs/plugins.core.storage.contract";
2
- import "@vnejs/plugins.core.system.contract";
3
1
  import { Observer } from "@vnejs/observer";
4
2
  import { VNE, VNE_MODULES } from "@vnejs/shared";
5
3
  import { toJson } from "@vnejs/helpers";
package/dist/types.d.ts CHANGED
@@ -1,15 +1,13 @@
1
1
  import type { Module, ModuleMedia, ModuleShared } from "@vnejs/module";
2
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry } from "@vnejs/shared";
3
- import type { PluginName as StoragePluginName, SubscribeEvents as StorageSubscribeEvents } from "@vnejs/plugins.core.storage.contract";
4
- import type { Constants as SystemConstants, PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/plugins.core.system.contract";
2
+ import type { ModuleCoreConstants, ModuleCoreEvents } from "@vnejs/module.core";
5
3
  export type VneCoreModules = Record<string, Module | undefined>;
6
4
  export type { ModuleMedia, ModuleShared };
7
5
  export type ModInfo = Record<string, unknown> & {
8
6
  hasMediaDir: boolean;
9
7
  hasPublicDir: boolean;
10
8
  };
11
- export type CorePluginConstants = VnePluginConstantsMapRegistry & Record<SystemPluginName, SystemConstants>;
12
- export type CorePluginEvents = VnePluginEventsMapRegistry & Record<SystemPluginName, SystemSubscribeEvents> & Record<StoragePluginName, StorageSubscribeEvents>;
9
+ export type CorePluginConstants = ModuleCoreConstants;
10
+ export type CorePluginEvents = ModuleCoreEvents;
13
11
  declare global {
14
12
  interface Window {
15
13
  uninitedModules: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/core",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,11 +31,10 @@
31
31
  "@vnejs/build": "~0.0.1",
32
32
  "@vnejs/desktop": "~0.0.1",
33
33
  "@vnejs/module": "~0.1.0",
34
+ "@vnejs/module.core": "~0.1.0",
34
35
  "@vnejs/module.components": "~0.1.0",
35
36
  "@vnejs/observer": "~0.1.0",
36
- "@vnejs/helpers": "~0.1.0",
37
- "@vnejs/plugins.core.storage.contract": "~0.1.0",
38
- "@vnejs/plugins.core.system.contract": "~0.1.0"
37
+ "@vnejs/helpers": "~0.1.0"
39
38
  },
40
39
  "devDependencies": {
41
40
  "@vnejs/configs.ts-common": "~0.1.0"
package/src/index.ts CHANGED
@@ -1,6 +1,3 @@
1
- import "@vnejs/plugins.core.storage.contract";
2
- import "@vnejs/plugins.core.system.contract";
3
-
4
1
  import { Observer } from "@vnejs/observer";
5
2
  import { Module, type ModuleGlobalStateRegistry, type ModuleInject } from "@vnejs/module";
6
3
  import { VNE, VNE_MODULES } from "@vnejs/shared";
@@ -16,7 +13,7 @@ export class VneCore {
16
13
  observer = new Observer();
17
14
  modules: VneCoreModules = {};
18
15
  state: ModuleGlobalStateRegistry = {} as ModuleGlobalStateRegistry;
19
- shared: ModuleShared = {};
16
+ shared: ModuleShared = {} as ModuleShared;
20
17
 
21
18
  constructor() {
22
19
  VNE_MODULES.forEach(this.addModule);
package/src/types.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import type { Module, ModuleMedia, ModuleShared } from "@vnejs/module";
2
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry } from "@vnejs/shared";
3
- import type { PluginName as StoragePluginName, SubscribeEvents as StorageSubscribeEvents } from "@vnejs/plugins.core.storage.contract";
4
- import type { Constants as SystemConstants, PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/plugins.core.system.contract";
2
+ import type { ModuleCoreConstants, ModuleCoreEvents } from "@vnejs/module.core";
5
3
 
6
4
  export type VneCoreModules = Record<string, Module | undefined>;
7
5
 
@@ -12,11 +10,9 @@ export type ModInfo = Record<string, unknown> & {
12
10
  hasPublicDir: boolean;
13
11
  };
14
12
 
15
- export type CorePluginConstants = VnePluginConstantsMapRegistry & Record<SystemPluginName, SystemConstants>;
13
+ export type CorePluginConstants = ModuleCoreConstants;
16
14
 
17
- export type CorePluginEvents = VnePluginEventsMapRegistry &
18
- Record<SystemPluginName, SystemSubscribeEvents> &
19
- Record<StoragePluginName, StorageSubscribeEvents>;
15
+ export type CorePluginEvents = ModuleCoreEvents;
20
16
 
21
17
  declare global {
22
18
  interface Window {