@openfin/core 44.101.9 → 44.101.11
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/mock-alpha.d.ts +11 -3
- package/out/mock-beta.d.ts +11 -3
- package/out/mock-public.d.ts +11 -3
- package/out/stub.d.ts +11 -3
- package/out/stub.js +11 -3
- package/out/stub.mjs +11 -3
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -6763,16 +6763,21 @@ declare class InterApplicationBus extends Base {
|
|
|
6763
6763
|
* Subscribes to messages from the specified application on the specified topic.
|
|
6764
6764
|
* @param source This object is described in the Identity in the typedef
|
|
6765
6765
|
* @param topic The topic on which the message is sent
|
|
6766
|
-
* @param listener A function that is called when a message has
|
|
6767
|
-
*
|
|
6766
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
6767
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
6768
6768
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
6769
6769
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
6770
6770
|
* data types
|
|
6771
6771
|
*
|
|
6772
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
6773
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
6774
|
+
*
|
|
6772
6775
|
* @example
|
|
6773
6776
|
* ```js
|
|
6774
6777
|
* // subscribe to a specified application
|
|
6775
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
6778
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
6779
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
6780
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
6776
6781
|
*
|
|
6777
6782
|
* // subscribe to wildcard
|
|
6778
6783
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -19514,6 +19519,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
19514
19519
|
/**
|
|
19515
19520
|
* Removes focus from the window.
|
|
19516
19521
|
*
|
|
19522
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
19523
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
19524
|
+
*
|
|
19517
19525
|
* @example
|
|
19518
19526
|
* ```js
|
|
19519
19527
|
* async function blurWindow() {
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -6763,16 +6763,21 @@ declare class InterApplicationBus extends Base {
|
|
|
6763
6763
|
* Subscribes to messages from the specified application on the specified topic.
|
|
6764
6764
|
* @param source This object is described in the Identity in the typedef
|
|
6765
6765
|
* @param topic The topic on which the message is sent
|
|
6766
|
-
* @param listener A function that is called when a message has
|
|
6767
|
-
*
|
|
6766
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
6767
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
6768
6768
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
6769
6769
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
6770
6770
|
* data types
|
|
6771
6771
|
*
|
|
6772
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
6773
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
6774
|
+
*
|
|
6772
6775
|
* @example
|
|
6773
6776
|
* ```js
|
|
6774
6777
|
* // subscribe to a specified application
|
|
6775
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
6778
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
6779
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
6780
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
6776
6781
|
*
|
|
6777
6782
|
* // subscribe to wildcard
|
|
6778
6783
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -19514,6 +19519,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
19514
19519
|
/**
|
|
19515
19520
|
* Removes focus from the window.
|
|
19516
19521
|
*
|
|
19522
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
19523
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
19524
|
+
*
|
|
19517
19525
|
* @example
|
|
19518
19526
|
* ```js
|
|
19519
19527
|
* async function blurWindow() {
|
package/out/mock-public.d.ts
CHANGED
|
@@ -6763,16 +6763,21 @@ declare class InterApplicationBus extends Base {
|
|
|
6763
6763
|
* Subscribes to messages from the specified application on the specified topic.
|
|
6764
6764
|
* @param source This object is described in the Identity in the typedef
|
|
6765
6765
|
* @param topic The topic on which the message is sent
|
|
6766
|
-
* @param listener A function that is called when a message has
|
|
6767
|
-
*
|
|
6766
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
6767
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
6768
6768
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
6769
6769
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
6770
6770
|
* data types
|
|
6771
6771
|
*
|
|
6772
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
6773
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
6774
|
+
*
|
|
6772
6775
|
* @example
|
|
6773
6776
|
* ```js
|
|
6774
6777
|
* // subscribe to a specified application
|
|
6775
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
6778
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
6779
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
6780
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
6776
6781
|
*
|
|
6777
6782
|
* // subscribe to wildcard
|
|
6778
6783
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -19514,6 +19519,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
19514
19519
|
/**
|
|
19515
19520
|
* Removes focus from the window.
|
|
19516
19521
|
*
|
|
19522
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
19523
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
19524
|
+
*
|
|
19517
19525
|
* @example
|
|
19518
19526
|
* ```js
|
|
19519
19527
|
* async function blurWindow() {
|
package/out/stub.d.ts
CHANGED
|
@@ -6860,16 +6860,21 @@ declare class InterApplicationBus extends Base {
|
|
|
6860
6860
|
* Subscribes to messages from the specified application on the specified topic.
|
|
6861
6861
|
* @param source This object is described in the Identity in the typedef
|
|
6862
6862
|
* @param topic The topic on which the message is sent
|
|
6863
|
-
* @param listener A function that is called when a message has
|
|
6864
|
-
*
|
|
6863
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
6864
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
6865
6865
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
6866
6866
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
6867
6867
|
* data types
|
|
6868
6868
|
*
|
|
6869
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
6870
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
6871
|
+
*
|
|
6869
6872
|
* @example
|
|
6870
6873
|
* ```js
|
|
6871
6874
|
* // subscribe to a specified application
|
|
6872
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
6875
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
6876
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
6877
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
6873
6878
|
*
|
|
6874
6879
|
* // subscribe to wildcard
|
|
6875
6880
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -19984,6 +19989,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
19984
19989
|
/**
|
|
19985
19990
|
* Removes focus from the window.
|
|
19986
19991
|
*
|
|
19992
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
19993
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
19994
|
+
*
|
|
19987
19995
|
* @example
|
|
19988
19996
|
* ```js
|
|
19989
19997
|
* async function blurWindow() {
|
package/out/stub.js
CHANGED
|
@@ -3749,6 +3749,9 @@ class _Window extends WebContents {
|
|
|
3749
3749
|
/**
|
|
3750
3750
|
* Removes focus from the window.
|
|
3751
3751
|
*
|
|
3752
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
3753
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
3754
|
+
*
|
|
3752
3755
|
* @example
|
|
3753
3756
|
* ```js
|
|
3754
3757
|
* async function blurWindow() {
|
|
@@ -9456,16 +9459,21 @@ class InterApplicationBus extends Base {
|
|
|
9456
9459
|
* Subscribes to messages from the specified application on the specified topic.
|
|
9457
9460
|
* @param source This object is described in the Identity in the typedef
|
|
9458
9461
|
* @param topic The topic on which the message is sent
|
|
9459
|
-
* @param listener A function that is called when a message has
|
|
9460
|
-
*
|
|
9462
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
9463
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
9461
9464
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
9462
9465
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
9463
9466
|
* data types
|
|
9464
9467
|
*
|
|
9468
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
9469
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
9470
|
+
*
|
|
9465
9471
|
* @example
|
|
9466
9472
|
* ```js
|
|
9467
9473
|
* // subscribe to a specified application
|
|
9468
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
9474
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
9475
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
9476
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
9469
9477
|
*
|
|
9470
9478
|
* // subscribe to wildcard
|
|
9471
9479
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
package/out/stub.mjs
CHANGED
|
@@ -3745,6 +3745,9 @@ class _Window extends WebContents {
|
|
|
3745
3745
|
/**
|
|
3746
3746
|
* Removes focus from the window.
|
|
3747
3747
|
*
|
|
3748
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
3749
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
3750
|
+
*
|
|
3748
3751
|
* @example
|
|
3749
3752
|
* ```js
|
|
3750
3753
|
* async function blurWindow() {
|
|
@@ -9452,16 +9455,21 @@ class InterApplicationBus extends Base {
|
|
|
9452
9455
|
* Subscribes to messages from the specified application on the specified topic.
|
|
9453
9456
|
* @param source This object is described in the Identity in the typedef
|
|
9454
9457
|
* @param topic The topic on which the message is sent
|
|
9455
|
-
* @param listener A function that is called when a message has
|
|
9456
|
-
*
|
|
9458
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
9459
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
9457
9460
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
9458
9461
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
9459
9462
|
* data types
|
|
9460
9463
|
*
|
|
9464
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
9465
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
9466
|
+
*
|
|
9461
9467
|
* @example
|
|
9462
9468
|
* ```js
|
|
9463
9469
|
* // subscribe to a specified application
|
|
9464
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
9470
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
9471
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
9472
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
9465
9473
|
*
|
|
9466
9474
|
* // subscribe to wildcard
|
|
9467
9475
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|