@rws-framework/client 2.10.13 → 2.10.15

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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.15",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@microsoft/fast-element": "^1.12.0",
30
30
  "@microsoft/fast-foundation": "^2.46.2",
31
- "@rws-framework/console": "^0.3.15",
31
+ "@rws-framework/console": "^0.3.16",
32
32
  "@types/moment": "^2.13.0",
33
33
  "deepmerge": "^4.3.1",
34
34
  "dragula": "^3.7.3",
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');
@@ -25,7 +25,7 @@ export default interface IRWSConfig {
25
25
  rwsDefines?: {[key: string]: any}
26
26
  partedFileDir?: string
27
27
  partedPrefix?: string
28
- plugins?: IStaticRWSPlugin[]
28
+ plugins?: IStaticRWSPlugin<DefaultRWSPluginOptionsType>[]
29
29
  routing_enabled?: boolean
30
30
  _noLoad?: boolean
31
31
  }
@@ -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]