@rws-framework/client 2.10.13 → 2.10.14

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.10.13",
4
+ "version": "2.10.14",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
package/src/client.ts CHANGED
@@ -74,7 +74,7 @@ class RWSClient {
74
74
  }
75
75
  }
76
76
 
77
- addPlugin<T extends DefaultRWSPluginOptionsType>(pluginEntry: IStaticRWSPlugin)
77
+ addPlugin<T extends DefaultRWSPluginOptionsType>(pluginEntry: IStaticRWSPlugin<T>)
78
78
  {
79
79
  this.config.plugins.push(pluginEntry);
80
80
  }
@@ -70,8 +70,7 @@ abstract class RWSViewComponent extends FoundationElement implements IRWSViewCom
70
70
 
71
71
  constructor() {
72
72
  super();
73
- applyConstructor(this);
74
- console.log((this as any).constructor.definition)
73
+ applyConstructor(this);
75
74
  }
76
75
 
77
76
  connectedCallback() {
@@ -39,7 +39,6 @@ export function defineComponent<T extends RWSViewComponent>(element: IWithCompos
39
39
  styles: element.definition.styles
40
40
  }) as RWSWindowComponentInterface;
41
41
 
42
- console.log({eld: element.definition})
43
42
 
44
43
  if (!richWindow.RWS) {
45
44
  throw new Error('RWS client not initialized');
@@ -12,8 +12,10 @@ export interface IRWSPlugin {
12
12
  onSetUser(user: IRWSUser): Promise<void>
13
13
  }
14
14
 
15
- export interface IStaticRWSPlugin<PluginOptions extends DefaultRWSPluginOptionsType = DefaultRWSPluginOptionsType> {
15
+ type IStaticRWSPluginEntry<PluginOptions extends DefaultRWSPluginOptionsType = DefaultRWSPluginOptionsType> = {
16
16
  new (...args: any[]): IRWSPlugin;
17
17
  container: Container;
18
18
  window: RWSWindow;
19
- }
19
+ }
20
+
21
+ export type IStaticRWSPlugin<PluginOptions extends DefaultRWSPluginOptionsType> = IStaticRWSPluginEntry<PluginOptions> | [IStaticRWSPluginEntry<PluginOptions>, PluginOptions]