@interopio/intent-resolver-ui 1.2.6 → 4.2.8-next.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/README.md CHANGED
@@ -1 +1,65 @@
1
- Intent Resolver UI
1
+ # @interopio/intent-resolver-ui
2
+
3
+ ## Overview
4
+
5
+ The [`@interopio/intent-resolver-ui`](https://www.npmjs.com/package/@interopio/intent-resolver-ui) library provides a default implementation of the io.Connect Intent Resolver for **io.Connect Browser** projects and also enables you to create your own custom Intent Resolver app by extending the library configuration.
6
+
7
+ The io.Connect Intent Resolver app provides a UI which enables end-users to manually select an Intent handler when an Intent is raised and multiple apps or already running app instances are available to fulfill the request.
8
+
9
+ ## Installation
10
+
11
+ To install the library, execute the following command:
12
+
13
+ ```cmd
14
+ npm install @interopio/intent-resolver-ui
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ In an **io.Connect Browser** project, the Intent Resolver app is configured and initialized in the Main app, which then provides the Intent Resolver to all Browser Client apps that have enabled its usage.
20
+
21
+ > ℹ️ *For more details on using the `@interopio/intent-resolver-ui` library, see the **io.Connect Browser** [official documentation](https://docs.interop.io/browser/capabilities/data-sharing/intents/overview/index.html#intent_resolver)*
22
+
23
+ Configuring and initializing the Intent Resolver in the Main app:
24
+
25
+ ```javascript
26
+ import IOBrowserPlatform from "@interopio/browser-platform"
27
+
28
+ const config = {
29
+ licenseKey: "my-license-key",
30
+ // Settings for the Intent Resolver.
31
+ intentResolver: {
32
+ sources: {
33
+ // It's required to specify the locations of the bundle and styles for the Intent Resolver.
34
+ bundle: "https://my-intent-resolver/intent-resolver-bundle.js",
35
+ styles: ["https://my-intent-resolver/styles.css", "https://example.com/custom-styles.css"],
36
+ // It's required to specify the locations of the fonts when using the default Intent Resolver.
37
+ fonts: ["https://my-intent-resolver/fonts.css"]
38
+ }
39
+ },
40
+ browser: {
41
+ // Enabling the Main app to use the Intent Resolver.
42
+ intentResolver: {
43
+ enable: true
44
+ }
45
+ }
46
+ };
47
+
48
+ const { io } = await IOBrowserPlatform(config);
49
+ ```
50
+
51
+ Enabling the usage of the Intent Resolver in a Browser Client app:
52
+
53
+ ```javascript
54
+ import IOBrowser from "@interopio/browser";
55
+
56
+ const config = {
57
+ intentResolver: {
58
+ // Enabling the Intent Resolver for the current Browser Client app.
59
+ // It's required to specify this to be able to use the Intent Resolver.
60
+ enable: true
61
+ }
62
+ };
63
+
64
+ const io = await IOBrowser(config);
65
+ ```
package/changelog.md CHANGED
@@ -1,8 +1,14 @@
1
- 1.2.0
2
- feat: io.Connect Browser 4.2
3
- 1.1.2
4
- feat: extend Intent Resolver UI to support excludeList of handlerFilter
5
- 1.1.0
6
- feat: io.Connect Browser 4.1
7
- 1.0.0
8
- feat: initial release with io.Connect Browser 4.0
1
+ 1.2.0
2
+
3
+ ## 4.2.8-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ff2a338: chore: prerelease 4.3 snapshot
8
+ feat: io.Connect Browser 4.2
9
+ 1.1.2
10
+ feat: extend Intent Resolver UI to support excludeList of handlerFilter
11
+ 1.1.0
12
+ feat: io.Connect Browser 4.1
13
+ 1.0.0
14
+ feat: initial release with io.Connect Browser 4.0