@openfin/remote-adapter 46.100.87 → 46.100.88
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/out/remote-adapter.js +11 -3
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -5066,6 +5066,9 @@ class _Window extends WebContents {
|
|
|
5066
5066
|
/**
|
|
5067
5067
|
* Removes focus from the window.
|
|
5068
5068
|
*
|
|
5069
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
5070
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
5071
|
+
*
|
|
5069
5072
|
* @example
|
|
5070
5073
|
* ```js
|
|
5071
5074
|
* async function blurWindow() {
|
|
@@ -12072,16 +12075,21 @@ class InterApplicationBus extends Base {
|
|
|
12072
12075
|
* Subscribes to messages from the specified application on the specified topic.
|
|
12073
12076
|
* @param source This object is described in the Identity in the typedef
|
|
12074
12077
|
* @param topic The topic on which the message is sent
|
|
12075
|
-
* @param listener A function that is called when a message has
|
|
12076
|
-
*
|
|
12078
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
12079
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
12077
12080
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
12078
12081
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
12079
12082
|
* data types
|
|
12080
12083
|
*
|
|
12084
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
12085
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
12086
|
+
*
|
|
12081
12087
|
* @example
|
|
12082
12088
|
* ```js
|
|
12083
12089
|
* // subscribe to a specified application
|
|
12084
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
12090
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
12091
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
12092
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
12085
12093
|
*
|
|
12086
12094
|
* // subscribe to wildcard
|
|
12087
12095
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "46.100.
|
|
3
|
+
"version": "46.100.88",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"es-toolkit": "^1.39.3",
|
|
18
18
|
"tslib": "2.8.1",
|
|
19
|
-
"@openfin/core": "46.100.
|
|
19
|
+
"@openfin/core": "46.100.88"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"prebuild": "rimraf ./out",
|