@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/browser.d.ts +8 -1
- package/changelog.md +5 -0
- package/dist/browser.es.js +2743 -345
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +2747 -345
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +14 -1
- package/package.json +32 -8
- package/readme.md +28 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/browser",
|
|
3
|
-
"version": "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.
|
|
44
|
-
"@interopio/desktop": "^6.
|
|
45
|
-
"@interopio/
|
|
46
|
-
"@interopio/
|
|
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/
|
|
51
|
-
"@interopio/utils": "^2.2.0"
|
|
51
|
+
"@interopio/utils": "^2.3.0"
|
|
52
52
|
},
|
|
53
|
-
"
|
|
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
|
-
#
|
|
1
|
+
# @interopio/browser
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Overview
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
```
|