@openfin/core 45.102.9 → 45.102.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
|
@@ -7117,16 +7117,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7117
7117
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7118
7118
|
* @param source This object is described in the Identity in the typedef
|
|
7119
7119
|
* @param topic The topic on which the message is sent
|
|
7120
|
-
* @param listener A function that is called when a message has
|
|
7121
|
-
*
|
|
7120
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7121
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7122
7122
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7123
7123
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7124
7124
|
* data types
|
|
7125
7125
|
*
|
|
7126
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7127
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7128
|
+
*
|
|
7126
7129
|
* @example
|
|
7127
7130
|
* ```js
|
|
7128
7131
|
* // subscribe to a specified application
|
|
7129
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7132
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7133
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7134
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7130
7135
|
*
|
|
7131
7136
|
* // subscribe to wildcard
|
|
7132
7137
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20176,6 +20181,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
20176
20181
|
/**
|
|
20177
20182
|
* Removes focus from the window.
|
|
20178
20183
|
*
|
|
20184
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20185
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20186
|
+
*
|
|
20179
20187
|
* @example
|
|
20180
20188
|
* ```js
|
|
20181
20189
|
* async function blurWindow() {
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -7117,16 +7117,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7117
7117
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7118
7118
|
* @param source This object is described in the Identity in the typedef
|
|
7119
7119
|
* @param topic The topic on which the message is sent
|
|
7120
|
-
* @param listener A function that is called when a message has
|
|
7121
|
-
*
|
|
7120
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7121
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7122
7122
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7123
7123
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7124
7124
|
* data types
|
|
7125
7125
|
*
|
|
7126
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7127
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7128
|
+
*
|
|
7126
7129
|
* @example
|
|
7127
7130
|
* ```js
|
|
7128
7131
|
* // subscribe to a specified application
|
|
7129
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7132
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7133
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7134
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7130
7135
|
*
|
|
7131
7136
|
* // subscribe to wildcard
|
|
7132
7137
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20176,6 +20181,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
20176
20181
|
/**
|
|
20177
20182
|
* Removes focus from the window.
|
|
20178
20183
|
*
|
|
20184
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20185
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20186
|
+
*
|
|
20179
20187
|
* @example
|
|
20180
20188
|
* ```js
|
|
20181
20189
|
* async function blurWindow() {
|
package/out/mock-public.d.ts
CHANGED
|
@@ -7117,16 +7117,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7117
7117
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7118
7118
|
* @param source This object is described in the Identity in the typedef
|
|
7119
7119
|
* @param topic The topic on which the message is sent
|
|
7120
|
-
* @param listener A function that is called when a message has
|
|
7121
|
-
*
|
|
7120
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7121
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7122
7122
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7123
7123
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7124
7124
|
* data types
|
|
7125
7125
|
*
|
|
7126
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7127
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7128
|
+
*
|
|
7126
7129
|
* @example
|
|
7127
7130
|
* ```js
|
|
7128
7131
|
* // subscribe to a specified application
|
|
7129
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7132
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7133
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7134
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7130
7135
|
*
|
|
7131
7136
|
* // subscribe to wildcard
|
|
7132
7137
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20176,6 +20181,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
20176
20181
|
/**
|
|
20177
20182
|
* Removes focus from the window.
|
|
20178
20183
|
*
|
|
20184
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20185
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20186
|
+
*
|
|
20179
20187
|
* @example
|
|
20180
20188
|
* ```js
|
|
20181
20189
|
* async function blurWindow() {
|
package/out/stub.d.ts
CHANGED
|
@@ -7267,16 +7267,21 @@ declare class InterApplicationBus extends Base {
|
|
|
7267
7267
|
* Subscribes to messages from the specified application on the specified topic.
|
|
7268
7268
|
* @param source This object is described in the Identity in the typedef
|
|
7269
7269
|
* @param topic The topic on which the message is sent
|
|
7270
|
-
* @param listener A function that is called when a message has
|
|
7271
|
-
*
|
|
7270
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
7271
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
7272
7272
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
7273
7273
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
7274
7274
|
* data types
|
|
7275
7275
|
*
|
|
7276
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
7277
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
7278
|
+
*
|
|
7276
7279
|
* @example
|
|
7277
7280
|
* ```js
|
|
7278
7281
|
* // subscribe to a specified application
|
|
7279
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
7282
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
7283
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
7284
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
7280
7285
|
*
|
|
7281
7286
|
* // subscribe to wildcard
|
|
7282
7287
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -20704,6 +20709,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
20704
20709
|
/**
|
|
20705
20710
|
* Removes focus from the window.
|
|
20706
20711
|
*
|
|
20712
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
20713
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
20714
|
+
*
|
|
20707
20715
|
* @example
|
|
20708
20716
|
* ```js
|
|
20709
20717
|
* async function blurWindow() {
|
package/out/stub.js
CHANGED
|
@@ -3814,6 +3814,9 @@ class _Window extends WebContents {
|
|
|
3814
3814
|
/**
|
|
3815
3815
|
* Removes focus from the window.
|
|
3816
3816
|
*
|
|
3817
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
3818
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
3819
|
+
*
|
|
3817
3820
|
* @example
|
|
3818
3821
|
* ```js
|
|
3819
3822
|
* async function blurWindow() {
|
|
@@ -9626,16 +9629,21 @@ class InterApplicationBus extends Base {
|
|
|
9626
9629
|
* Subscribes to messages from the specified application on the specified topic.
|
|
9627
9630
|
* @param source This object is described in the Identity in the typedef
|
|
9628
9631
|
* @param topic The topic on which the message is sent
|
|
9629
|
-
* @param listener A function that is called when a message has
|
|
9630
|
-
*
|
|
9632
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
9633
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
9631
9634
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
9632
9635
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
9633
9636
|
* data types
|
|
9634
9637
|
*
|
|
9638
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
9639
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
9640
|
+
*
|
|
9635
9641
|
* @example
|
|
9636
9642
|
* ```js
|
|
9637
9643
|
* // subscribe to a specified application
|
|
9638
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
9644
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
9645
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
9646
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
9639
9647
|
*
|
|
9640
9648
|
* // subscribe to wildcard
|
|
9641
9649
|
* 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
|
@@ -3811,6 +3811,9 @@ class _Window extends WebContents {
|
|
|
3811
3811
|
/**
|
|
3812
3812
|
* Removes focus from the window.
|
|
3813
3813
|
*
|
|
3814
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
3815
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
3816
|
+
*
|
|
3814
3817
|
* @example
|
|
3815
3818
|
* ```js
|
|
3816
3819
|
* async function blurWindow() {
|
|
@@ -9623,16 +9626,21 @@ class InterApplicationBus extends Base {
|
|
|
9623
9626
|
* Subscribes to messages from the specified application on the specified topic.
|
|
9624
9627
|
* @param source This object is described in the Identity in the typedef
|
|
9625
9628
|
* @param topic The topic on which the message is sent
|
|
9626
|
-
* @param listener A function that is called when a message has
|
|
9627
|
-
*
|
|
9629
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
9630
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
9628
9631
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
9629
9632
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
9630
9633
|
* data types
|
|
9631
9634
|
*
|
|
9635
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
9636
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
9637
|
+
*
|
|
9632
9638
|
* @example
|
|
9633
9639
|
* ```js
|
|
9634
9640
|
* // subscribe to a specified application
|
|
9635
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
9641
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
9642
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
9643
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
9636
9644
|
*
|
|
9637
9645
|
* // subscribe to wildcard
|
|
9638
9646
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|