@compass-framework/plugin
Advanced tools
| import { Context, ViewGroup } from "@compass-framework/core"; | ||
| export interface PluginSetup { | ||
| getContext(global?: boolean): Context; | ||
| getContainer(): ViewGroup; | ||
| } |
@@ -0,14 +1,16 @@ | ||
| import { ViewGroup } from "@compass-framework/core"; | ||
| import { PluginSetup } from "./PluginSetup"; | ||
| import { BasePlugin } from "./BasePlugin"; | ||
| import { Environment } from "./PluginRuntime"; | ||
| export declare abstract class BasePluginManager<Arguments = {}> { | ||
| protected constructor(); | ||
| export declare abstract class BasePluginManager<Setup extends PluginSetup> { | ||
| protected constructor(container: ViewGroup); | ||
| public abstract getArguments(): Arguments; | ||
| public installPlugin(plugin: BasePlugin<Setup>): Promise<void>; | ||
| public installPlugin(plugin: BasePlugin<Arguments>): Promise<void>; | ||
| public unInstallPlugin(plugin: BasePlugin<Setup>): void; | ||
| public unInstallPlugin(plugin: BasePlugin<Arguments>): void; | ||
| public abstract getPluginSetup(): Setup; | ||
| public getEnvironment(): Environment; | ||
| } |
+1
-0
| export * from "./@types/PluginRuntime"; | ||
| export * from "./@types/PluginPlatform"; | ||
| export * from "./@types/PluginIdentifier"; | ||
| export * from "./@types/PluginSetup"; | ||
| export * from "./@types/BasePlugin"; | ||
| export * from "./@types/BasePluginManager"; |
+4
-2
| { | ||
| "name": "@compass-framework/plugin", | ||
| "version": "1.3.4", | ||
| "version": "1.3.5", | ||
| "description": "@compass-framework/plugin public api", | ||
@@ -13,3 +13,5 @@ "types": "./index.d.ts", | ||
| }, | ||
| "dependencies": {} | ||
| "devDependencies": { | ||
| "@compass-framework/core": "1.2.48" | ||
| } | ||
| } |
3025
14.45%11
10%74
12.12%1
Infinity%