@interopio/browser 4.2.4 → 4.3.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/browser",
3
- "version": "4.2.4",
3
+ "version": "4.3.0",
4
4
  "description": "IOConnect Browser client application package",
5
5
  "main": "dist/browser.umd.js",
6
6
  "module": "dist/browser.es.js",
@@ -40,15 +40,39 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@interopio/core": "^6.8.1",
44
- "@interopio/desktop": "^6.14.0",
45
- "@interopio/search-api": "^3.2.1",
46
- "@interopio/workspaces-api": "^4.2.3",
43
+ "@interopio/core": "^6.10.0",
44
+ "@interopio/desktop": "^6.18.0",
45
+ "@interopio/modals-api": "^4.3.0",
46
+ "@interopio/search-api": "^3.3.0",
47
+ "@interopio/workspaces-api": "^4.3.0",
47
48
  "callback-registry": "^2.7.2"
48
49
  },
49
50
  "devDependencies": {
50
- "@interopio/modals-api": "^1.2.1",
51
- "@interopio/utils": "^2.2.0"
51
+ "@interopio/utils": "^2.3.0"
52
52
  },
53
- "gitHead": "cd8bec6c31acddd1478d6cc185641a16b8e60af4"
53
+ "peerDependencies": {
54
+ "@interopio/insights-base": "0.0.*",
55
+ "@interopio/insights-instrumentations-web": "0.0.*",
56
+ "@interopio/insights-logs": "0.0.*",
57
+ "@interopio/insights-metrics": "0.0.*",
58
+ "@interopio/insights-traces": "0.0.*"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "@interopio/insights-base": {
62
+ "optional": true
63
+ },
64
+ "@interopio/insights-instrumentations-web": {
65
+ "optional": true
66
+ },
67
+ "@interopio/insights-logs": {
68
+ "optional": true
69
+ },
70
+ "@interopio/insights-metrics": {
71
+ "optional": true
72
+ },
73
+ "@interopio/insights-traces": {
74
+ "optional": true
75
+ }
76
+ },
77
+ "gitHead": "41c6ecb07b59a228eecc8597d7bd4862a0c1dfa0"
54
78
  }
package/readme.md CHANGED
@@ -1,9 +1,31 @@
1
- # IO Connect Browser
1
+ # @interopio/browser
2
2
 
3
- The [**IO Connect Browser**](https://core-docs.glue42.com/reference/core/latest/glue42%20web/index.html) library is used in a [**IO Connect Browser**](https://core-docs.glue42.com/getting-started/what-is-glue42-core/index.html) project to connect the [IO Connect Browser Client](https://core-docs.glue42.com/developers/core-concepts/glue42-client/overview/index.html) applications to the [IO Connect Browser Environment](https://core-docs.glue42.com/developers/core-concepts/environment/overview/index.html). It offer sets of APIs through which the connected applications can share data and control window behavior.
3
+ ## Overview
4
4
 
5
- For more information on the IO Connect Browser library and **IO Connect Browser**, see:
5
+ The [`@interopio/browser`](https://www.npmjs.com/package/@interopio/browser) library provides access to the io.Connect APIs for Browser Client apps that are part of **io.Connect Browser** projects.
6
6
 
7
- - [IO Connect Browser API](https://core-docs.glue42.com/reference/core/latest/glue42%20web/index.html) - reference documentation for the IO Connect Browser APIs;
8
- - [IO Connect Browser Client](https://core-docs.glue42.com/developers/core-concepts/glue42-client/overview/index.html) - information on what a IO Connect Browser Client is and how to create and set up one;
9
- - [Quick Start](https://core-docs.glue42.com/getting-started/quick-start/index.html) - a quick walk-through on how to create your first **IO Connect Browser** project using the IO Connect Browser library;
7
+ ## Installation
8
+
9
+ To install the library, execute the following command:
10
+
11
+ ```cmd
12
+ npm install @interopio/browser
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ The following example demonstrates basic initialization of the `@interopio/browser` library in a Browser Client app.
18
+
19
+ > ℹ️ *For more details on using the `@interopio/browser` library, see the **io.Connect Browser** [official documentation](https://docs.interop.io/browser/developers/browser-client/javascript/index.html).*
20
+
21
+ ```javascript
22
+ import IOBrowser from "@interopio/browser";
23
+
24
+ // Use the initialized API object returned by the factory function to access the io.Connect APIs.
25
+ const io = await IOBrowser();
26
+
27
+ // Using the io.Connect APIs.
28
+ await io.interop.register("myApp", () => {
29
+ console.log("Hello from myApp!");
30
+ });
31
+ ```