@interopio/widget 1.1.0 → 2.0.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/widget",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "types": "./widget.d.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "./styles": "./dist/styles.css"
39
39
  },
40
- "devDependencies": {
41
- "@interopio/components-react": "^0.2.1"
42
- },
43
40
  "publishConfig": {
44
41
  "@interopio:registry": "https://registry.npmjs.org",
45
42
  "access": "public"
46
43
  },
47
- "gitHead": "6ee88fcb1b67936de846ba07537d66df4ff5735e"
44
+ "devDependencies": {
45
+ "@interopio/workspaces-api": "^3.5.0"
46
+ },
47
+ "gitHead": "ee100c8ae59637c175db4df74cb7d243cb159520"
48
48
  }
package/widget.d.ts CHANGED
@@ -1,17 +1,15 @@
1
- import { IOConnectBrowser } from "../browser/browser";
2
-
3
1
  /**
4
2
  * Factory function that appends a widget component to the html body of your IOConnectBrowser-enabled app
5
3
  */
6
- export type IOBrowserWidgetFactoryFunction = (io: IOConnectBrowser.API, config?: IOConnectBrowser.Config) => Promise<void>;
4
+ export type IOBrowserWidgetFactoryFunction = (io: any, config: IOBrowserWidget.Config) => Promise<void>;
7
5
 
8
6
  declare const IOBrowserWidgetFactory: IOBrowserWidgetFactoryFunction;
9
7
 
10
- export default IOBrowserWidgetFactory;
11
-
12
8
  export namespace IOBrowserWidget {
13
9
  export interface Config {
14
- channelSelector?: ChannelSelectorConfig;
10
+ enable: boolean;
11
+
12
+ channels?: Channels;
15
13
 
16
14
  /**
17
15
  * Starting position
@@ -42,9 +40,20 @@ export namespace IOBrowserWidget {
42
40
  type?: ChannelSelectorType;
43
41
  }
44
42
 
43
+ export interface Channels {
44
+ selector?: ChannelSelectorConfig;
45
+ /**
46
+ * Configure whether to show only fdc3-enabled channels or all
47
+         * @default all
48
+ */
49
+ displayMode?: ChannelsDisplayMode;
50
+ }
51
+
45
52
  export type ChannelSelectorType = "directional" | "default";
46
53
 
47
54
  export type Position = "top" | "bottom" | "left" | "right";
48
55
 
49
56
  export type Mode = "compact" | "default";
50
- }
57
+
58
+ export type ChannelsDisplayMode = "all" | "fdc3";
59
+ }