@interopio/widget 2.0.2 → 2.0.4

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": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "types": "./widget.d.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -42,7 +42,7 @@
42
42
  "access": "public"
43
43
  },
44
44
  "devDependencies": {
45
- "@interopio/workspaces-api": "^3.5.2"
45
+ "@interopio/components-react": "^0.6.0"
46
46
  },
47
- "gitHead": "2b5dbbd9f57978f22008b6ba9db35dc751b1bee7"
47
+ "gitHead": "99945a6922f1dbf7330b361d501532f6421bbecc"
48
48
  }
package/widget.d.ts CHANGED
@@ -1,59 +1,7 @@
1
1
  /**
2
2
  * Factory function that appends a widget component to the html body of your IOConnectBrowser-enabled app
3
+ * The widget config typings are defined in @interopio/browser
3
4
  */
4
- export type IOBrowserWidgetFactoryFunction = (io: any, config: IOBrowserWidget.Config) => Promise<void>;
5
+ export type IOBrowserWidgetFactoryFunction = (io: any, config: any) => Promise<void>;
5
6
 
6
7
  declare const IOBrowserWidgetFactory: IOBrowserWidgetFactoryFunction;
7
-
8
- export namespace IOBrowserWidget {
9
- export interface Config {
10
- enable: boolean;
11
-
12
- channels?: Channels;
13
-
14
- /**
15
- * Starting position
16
- * @default bottom
17
- */
18
- position?: Position;
19
-
20
- /**
21
- * Widget mode
22
- * @default default
23
- */
24
- mode?: Mode;
25
-
26
- /**
27
- * If `true`, the widget will be visible in the app even if the app is currently in a Workspace.
28
- * @default false
29
- */
30
- displayInWorkspace?: boolean;
31
- }
32
-
33
- export interface ChannelSelectorConfig {
34
- /**
35
- * Configure whether Channel Selector will be added to the Widget component
36
- * @default true
37
- */
38
- enable?: boolean;
39
-
40
- type?: ChannelSelectorType;
41
- }
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
-
52
- export type ChannelSelectorType = "directional" | "default";
53
-
54
- export type Position = "top" | "bottom" | "left" | "right";
55
-
56
- export type Mode = "compact" | "default";
57
-
58
- export type ChannelsDisplayMode = "all" | "fdc3";
59
- }