@compass-framework/plugin 1.3.5 → 1.3.6

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,9 @@
1
1
  import { Environment } from "./PluginRuntime";
2
+ import { PluginSetup } from "./PluginSetup";
2
3
  import { PluginIdentifier } from "./PluginIdentifier";
3
4
 
4
- export declare abstract class BasePlugin<Arguments = {}> {
5
- public abstract onCreated(args: Arguments): Promise<PluginIdentifier>;
5
+ export declare abstract class BasePlugin<Setup extends PluginSetup> {
6
+ public abstract onCreated(setup: Setup): Promise<PluginIdentifier>;
6
7
 
7
8
  public abstract onMounted(env: Environment): Promise<void>;
8
9
 
@@ -1,7 +1,5 @@
1
- import { Context, ViewGroup } from "@compass-framework/core";
1
+ import { Context } from "@compass-framework/core";
2
2
 
3
3
  export interface PluginSetup {
4
4
  getContext(global?: boolean): Context;
5
-
6
- getContainer(): ViewGroup;
7
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/plugin",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "@compass-framework/plugin public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",