@zenflux/core 0.0.0-abc.2 → 0.0.0-abc.24
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/cjs/zenflux-core.js +1989 -874
- package/dist/es/src/exports.d.ts +1 -0
- package/dist/es/src/globals.d.ts +3 -0
- package/dist/es/src/index.d.ts +1 -1
- package/dist/es/src/initializer.d.ts +2 -1
- package/dist/es/src/interfaces/managers.d.ts +13 -0
- package/dist/es/src/manager-bases/commands.d.ts +2 -1
- package/dist/es/src/manager-bases/controllers.d.ts +2 -1
- package/dist/es/src/managers/index.d.ts +12 -8
- package/dist/es/zenflux-core.js +1984 -870
- package/dist/es/zenflux-core.mjs +1 -12
- package/dist/umd/zenflux-core.js +1 -12
- package/package.json +22 -29
- package/src/command-bases/command-data.ts +1 -1
- package/src/core/controller.ts +1 -1
- package/src/exports.ts +1 -1
- package/src/index.ts +2 -1
- package/src/initializer.ts +7 -14
- package/src/interfaces/managers.ts +16 -0
- package/src/manager-bases/commands.ts +3 -1
- package/src/manager-bases/controllers.ts +2 -1
- package/src/managers/index.ts +24 -7
- package/types/index.d.ts +5 -1
package/dist/es/src/exports.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export * as commandBases from "./command-bases";
|
|
5
5
|
export * as core from "./core";
|
|
6
6
|
export * as errors from "./errors";
|
|
7
|
+
export * as managers from "./managers";
|
|
7
8
|
export * as managerBases from "./manager-bases";
|
|
8
9
|
export * as modules from "./modules";
|
|
9
10
|
export * as utils from "./utils";
|
package/dist/es/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as exported from './exports';
|
|
2
1
|
import { IAPIConfig } from "./interfaces/config";
|
|
2
|
+
import * as exported from './exports';
|
|
3
3
|
declare global {
|
|
4
4
|
var ZenCore: any;
|
|
5
5
|
}
|
|
@@ -8,6 +8,7 @@ export declare const CoreAPI: {
|
|
|
8
8
|
commandBases: typeof exported.commandBases;
|
|
9
9
|
core: typeof exported.core;
|
|
10
10
|
errors: typeof exported.errors;
|
|
11
|
+
managers: typeof exported.managers;
|
|
11
12
|
managerBases: typeof exported.managerBases;
|
|
12
13
|
modules: typeof exported.modules;
|
|
13
14
|
utils: typeof exported.utils;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Commands from "../manager-bases/commands";
|
|
2
|
+
import Controllers from "../manager-bases/controllers";
|
|
3
|
+
import Data from "../manager-bases/data";
|
|
4
|
+
import Internal from "../manager-bases/internal";
|
|
5
|
+
import { IAPIConfig } from "./config";
|
|
6
|
+
export interface IManagers {
|
|
7
|
+
initialize: (config: IAPIConfig) => void;
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
commands: Commands;
|
|
10
|
+
controllers: Controllers;
|
|
11
|
+
data: Data;
|
|
12
|
+
internal: Internal;
|
|
13
|
+
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Logger } from "../modules/";
|
|
6
6
|
import { CommandBase } from "../command-bases";
|
|
7
|
-
import
|
|
7
|
+
import ObjectBase from "../core/object-base";
|
|
8
|
+
import Controller from "../core/controller";
|
|
8
9
|
import { ICommandArgsInterface, CommandCallbackType, IOnHookAffectInterface, IOnHookInterface } from "../interfaces/commands";
|
|
9
10
|
export declare class Commands extends ObjectBase {
|
|
10
11
|
static readonly trace: string[];
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @author: Leonid Vinikov <leonidvinikov@gmail.com>
|
|
3
3
|
* @description: Responsible for manging controllers, each controller is global singleton instance.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import ObjectBase from "../core/object-base";
|
|
6
|
+
import Controller from "../core/controller";
|
|
6
7
|
export declare class Controllers extends ObjectBase {
|
|
7
8
|
controllers: {
|
|
8
9
|
[key: string]: Controller;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author: Leonid Vinikov <leonidvinikov@gmail.com>
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
4
|
+
import Commands from "../manager-bases/commands";
|
|
5
|
+
import Controllers from "../manager-bases/controllers";
|
|
6
|
+
import Data from "../manager-bases/data";
|
|
7
|
+
import Internal from "../manager-bases/internal";
|
|
8
|
+
import { IAPIConfig } from "../interfaces/config";
|
|
9
|
+
export declare const afterInitializeCallbacks: (() => void)[];
|
|
10
|
+
export declare function initialize(config: IAPIConfig): void;
|
|
11
|
+
export declare function destroy(): void;
|
|
12
|
+
export declare var commands: Commands;
|
|
13
|
+
export declare var controllers: Controllers;
|
|
14
|
+
export declare var data: Data;
|
|
15
|
+
export declare var internal: Internal;
|