@openfin/fdc3-api 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.
@@ -7408,16 +7408,21 @@ declare class InterApplicationBus extends Base {
7408
7408
  * Subscribes to messages from the specified application on the specified topic.
7409
7409
  * @param source This object is described in the Identity in the typedef
7410
7410
  * @param topic The topic on which the message is sent
7411
- * @param listener A function that is called when a message has
7412
- * been received. It is passed the message, uuid and name of the sending application.
7411
+ * @param listener A function that is called when a message has been received. It is passed
7412
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7413
7413
  * The message can be either a primitive data type (string, number, or boolean) or
7414
7414
  * composite data type (object, array) that is composed of other primitive or composite
7415
7415
  * data types
7416
7416
  *
7417
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7418
+ * which passes `(message, uuid, name)` as separate arguments.
7419
+ *
7417
7420
  * @example
7418
7421
  * ```js
7419
7422
  * // subscribe to a specified application
7420
- * fin.InterApplicationBus.subscribe(fin.me, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7423
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7424
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7425
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7421
7426
  *
7422
7427
  * // subscribe to wildcard
7423
7428
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20538,6 +20543,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
20538
20543
  /**
20539
20544
  * Removes focus from the window.
20540
20545
  *
20546
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20547
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20548
+ *
20541
20549
  * @example
20542
20550
  * ```js
20543
20551
  * async function blurWindow() {
@@ -7408,16 +7408,21 @@ declare class InterApplicationBus extends Base {
7408
7408
  * Subscribes to messages from the specified application on the specified topic.
7409
7409
  * @param source This object is described in the Identity in the typedef
7410
7410
  * @param topic The topic on which the message is sent
7411
- * @param listener A function that is called when a message has
7412
- * been received. It is passed the message, uuid and name of the sending application.
7411
+ * @param listener A function that is called when a message has been received. It is passed
7412
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7413
7413
  * The message can be either a primitive data type (string, number, or boolean) or
7414
7414
  * composite data type (object, array) that is composed of other primitive or composite
7415
7415
  * data types
7416
7416
  *
7417
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7418
+ * which passes `(message, uuid, name)` as separate arguments.
7419
+ *
7417
7420
  * @example
7418
7421
  * ```js
7419
7422
  * // subscribe to a specified application
7420
- * fin.InterApplicationBus.subscribe(fin.me, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7423
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7424
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7425
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7421
7426
  *
7422
7427
  * // subscribe to wildcard
7423
7428
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20538,6 +20543,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
20538
20543
  /**
20539
20544
  * Removes focus from the window.
20540
20545
  *
20546
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20547
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20548
+ *
20541
20549
  * @example
20542
20550
  * ```js
20543
20551
  * async function blurWindow() {
@@ -7408,16 +7408,21 @@ declare class InterApplicationBus extends Base {
7408
7408
  * Subscribes to messages from the specified application on the specified topic.
7409
7409
  * @param source This object is described in the Identity in the typedef
7410
7410
  * @param topic The topic on which the message is sent
7411
- * @param listener A function that is called when a message has
7412
- * been received. It is passed the message, uuid and name of the sending application.
7411
+ * @param listener A function that is called when a message has been received. It is passed
7412
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7413
7413
  * The message can be either a primitive data type (string, number, or boolean) or
7414
7414
  * composite data type (object, array) that is composed of other primitive or composite
7415
7415
  * data types
7416
7416
  *
7417
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7418
+ * which passes `(message, uuid, name)` as separate arguments.
7419
+ *
7417
7420
  * @example
7418
7421
  * ```js
7419
7422
  * // subscribe to a specified application
7420
- * fin.InterApplicationBus.subscribe(fin.me, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7423
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7424
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7425
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7421
7426
  *
7422
7427
  * // subscribe to wildcard
7423
7428
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20538,6 +20543,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
20538
20543
  /**
20539
20544
  * Removes focus from the window.
20540
20545
  *
20546
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20547
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20548
+ *
20541
20549
  * @example
20542
20550
  * ```js
20543
20551
  * async function blurWindow() {
package/out/fdc3-api.d.ts CHANGED
@@ -7559,16 +7559,21 @@ declare class InterApplicationBus extends Base {
7559
7559
  * Subscribes to messages from the specified application on the specified topic.
7560
7560
  * @param source This object is described in the Identity in the typedef
7561
7561
  * @param topic The topic on which the message is sent
7562
- * @param listener A function that is called when a message has
7563
- * been received. It is passed the message, uuid and name of the sending application.
7562
+ * @param listener A function that is called when a message has been received. It is passed
7563
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7564
7564
  * The message can be either a primitive data type (string, number, or boolean) or
7565
7565
  * composite data type (object, array) that is composed of other primitive or composite
7566
7566
  * data types
7567
7567
  *
7568
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7569
+ * which passes `(message, uuid, name)` as separate arguments.
7570
+ *
7568
7571
  * @example
7569
7572
  * ```js
7570
7573
  * // subscribe to a specified application
7571
- * fin.InterApplicationBus.subscribe(fin.me, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7574
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7575
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7576
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7572
7577
  *
7573
7578
  * // subscribe to wildcard
7574
7579
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -21077,6 +21082,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
21077
21082
  /**
21078
21083
  * Removes focus from the window.
21079
21084
  *
21085
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
21086
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
21087
+ *
21080
21088
  * @example
21081
21089
  * ```js
21082
21090
  * async function blurWindow() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "46.100.87",
3
+ "version": "46.100.88",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,