@interopio/widget 1.0.4 → 1.1.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.0.4",
3
+ "version": "1.1.0",
4
4
  "types": "./widget.d.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -41,7 +41,8 @@
41
41
  "@interopio/components-react": "^0.2.1"
42
42
  },
43
43
  "publishConfig": {
44
+ "@interopio:registry": "https://registry.npmjs.org",
44
45
  "access": "public"
45
46
  },
46
- "gitHead": "4067b8b6190b3598dd7953e8370f26fb333a22d6"
47
+ "gitHead": "6ee88fcb1b67936de846ba07537d66df4ff5735e"
47
48
  }
package/widget.d.ts CHANGED
@@ -1,7 +1,9 @@
1
+ import { IOConnectBrowser } from "../browser/browser";
2
+
1
3
  /**
2
4
  * Factory function that appends a widget component to the html body of your IOConnectBrowser-enabled app
3
5
  */
4
- export type IOBrowserWidgetFactoryFunction = (config?: IOBrowserWidget.Config) => Promise<void>;
6
+ export type IOBrowserWidgetFactoryFunction = (io: IOConnectBrowser.API, config?: IOConnectBrowser.Config) => Promise<void>;
5
7
 
6
8
  declare const IOBrowserWidgetFactory: IOBrowserWidgetFactoryFunction;
7
9
 
@@ -22,6 +24,12 @@ export namespace IOBrowserWidget {
22
24
  * @default default
23
25
  */
24
26
  mode?: Mode;
27
+
28
+ /**
29
+ * If `true`, the widget will be visible in the app even if the app is currently in a Workspace.
30
+ * @default false
31
+ */
32
+ displayInWorkspace?: boolean;
25
33
  }
26
34
 
27
35
  export interface ChannelSelectorConfig {