@openfin/core 46.100.87 → 46.100.89

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.
@@ -7114,16 +7114,21 @@ declare class InterApplicationBus extends Base {
7114
7114
  * Subscribes to messages from the specified application on the specified topic.
7115
7115
  * @param source This object is described in the Identity in the typedef
7116
7116
  * @param topic The topic on which the message is sent
7117
- * @param listener A function that is called when a message has
7118
- * been received. It is passed the message, uuid and name of the sending application.
7117
+ * @param listener A function that is called when a message has been received. It is passed
7118
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7119
7119
  * The message can be either a primitive data type (string, number, or boolean) or
7120
7120
  * composite data type (object, array) that is composed of other primitive or composite
7121
7121
  * data types
7122
7122
  *
7123
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7124
+ * which passes `(message, uuid, name)` as separate arguments.
7125
+ *
7123
7126
  * @example
7124
7127
  * ```js
7125
7128
  * // subscribe to a specified application
7126
- * 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));
7129
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7130
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7131
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7127
7132
  *
7128
7133
  * // subscribe to wildcard
7129
7134
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20162,6 +20167,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
20162
20167
  /**
20163
20168
  * Removes focus from the window.
20164
20169
  *
20170
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20171
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20172
+ *
20165
20173
  * @example
20166
20174
  * ```js
20167
20175
  * async function blurWindow() {
@@ -7114,16 +7114,21 @@ declare class InterApplicationBus extends Base {
7114
7114
  * Subscribes to messages from the specified application on the specified topic.
7115
7115
  * @param source This object is described in the Identity in the typedef
7116
7116
  * @param topic The topic on which the message is sent
7117
- * @param listener A function that is called when a message has
7118
- * been received. It is passed the message, uuid and name of the sending application.
7117
+ * @param listener A function that is called when a message has been received. It is passed
7118
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7119
7119
  * The message can be either a primitive data type (string, number, or boolean) or
7120
7120
  * composite data type (object, array) that is composed of other primitive or composite
7121
7121
  * data types
7122
7122
  *
7123
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7124
+ * which passes `(message, uuid, name)` as separate arguments.
7125
+ *
7123
7126
  * @example
7124
7127
  * ```js
7125
7128
  * // subscribe to a specified application
7126
- * 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));
7129
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7130
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7131
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7127
7132
  *
7128
7133
  * // subscribe to wildcard
7129
7134
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20162,6 +20167,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
20162
20167
  /**
20163
20168
  * Removes focus from the window.
20164
20169
  *
20170
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20171
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20172
+ *
20165
20173
  * @example
20166
20174
  * ```js
20167
20175
  * async function blurWindow() {
@@ -7114,16 +7114,21 @@ declare class InterApplicationBus extends Base {
7114
7114
  * Subscribes to messages from the specified application on the specified topic.
7115
7115
  * @param source This object is described in the Identity in the typedef
7116
7116
  * @param topic The topic on which the message is sent
7117
- * @param listener A function that is called when a message has
7118
- * been received. It is passed the message, uuid and name of the sending application.
7117
+ * @param listener A function that is called when a message has been received. It is passed
7118
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7119
7119
  * The message can be either a primitive data type (string, number, or boolean) or
7120
7120
  * composite data type (object, array) that is composed of other primitive or composite
7121
7121
  * data types
7122
7122
  *
7123
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7124
+ * which passes `(message, uuid, name)` as separate arguments.
7125
+ *
7123
7126
  * @example
7124
7127
  * ```js
7125
7128
  * // subscribe to a specified application
7126
- * 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));
7129
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7130
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7131
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7127
7132
  *
7128
7133
  * // subscribe to wildcard
7129
7134
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20162,6 +20167,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
20162
20167
  /**
20163
20168
  * Removes focus from the window.
20164
20169
  *
20170
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20171
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20172
+ *
20165
20173
  * @example
20166
20174
  * ```js
20167
20175
  * async function blurWindow() {
package/out/stub.d.ts CHANGED
@@ -7265,16 +7265,21 @@ declare class InterApplicationBus extends Base {
7265
7265
  * Subscribes to messages from the specified application on the specified topic.
7266
7266
  * @param source This object is described in the Identity in the typedef
7267
7267
  * @param topic The topic on which the message is sent
7268
- * @param listener A function that is called when a message has
7269
- * been received. It is passed the message, uuid and name of the sending application.
7268
+ * @param listener A function that is called when a message has been received. It is passed
7269
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
7270
7270
  * The message can be either a primitive data type (string, number, or boolean) or
7271
7271
  * composite data type (object, array) that is composed of other primitive or composite
7272
7272
  * data types
7273
7273
  *
7274
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
7275
+ * which passes `(message, uuid, name)` as separate arguments.
7276
+ *
7274
7277
  * @example
7275
7278
  * ```js
7276
7279
  * // subscribe to a specified application
7277
- * 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));
7280
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
7281
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
7282
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
7278
7283
  *
7279
7284
  * // subscribe to wildcard
7280
7285
  * fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
@@ -20701,6 +20706,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
20701
20706
  /**
20702
20707
  * Removes focus from the window.
20703
20708
  *
20709
+ * @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
20710
+ * moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
20711
+ *
20704
20712
  * @example
20705
20713
  * ```js
20706
20714
  * 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() {
@@ -9625,16 +9628,21 @@ class InterApplicationBus extends Base {
9625
9628
  * Subscribes to messages from the specified application on the specified topic.
9626
9629
  * @param source This object is described in the Identity in the typedef
9627
9630
  * @param topic The topic on which the message is sent
9628
- * @param listener A function that is called when a message has
9629
- * been received. It is passed the message, uuid and name of the sending application.
9631
+ * @param listener A function that is called when a message has been received. It is passed
9632
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
9630
9633
  * The message can be either a primitive data type (string, number, or boolean) or
9631
9634
  * composite data type (object, array) that is composed of other primitive or composite
9632
9635
  * data types
9633
9636
  *
9637
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
9638
+ * which passes `(message, uuid, name)` as separate arguments.
9639
+ *
9634
9640
  * @example
9635
9641
  * ```js
9636
9642
  * // subscribe to a specified application
9637
- * 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));
9643
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
9644
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
9645
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
9638
9646
  *
9639
9647
  * // subscribe to wildcard
9640
9648
  * 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() {
@@ -9622,16 +9625,21 @@ class InterApplicationBus extends Base {
9622
9625
  * Subscribes to messages from the specified application on the specified topic.
9623
9626
  * @param source This object is described in the Identity in the typedef
9624
9627
  * @param topic The topic on which the message is sent
9625
- * @param listener A function that is called when a message has
9626
- * been received. It is passed the message, uuid and name of the sending application.
9628
+ * @param listener A function that is called when a message has been received. It is passed
9629
+ * two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
9627
9630
  * The message can be either a primitive data type (string, number, or boolean) or
9628
9631
  * composite data type (object, array) that is composed of other primitive or composite
9629
9632
  * data types
9630
9633
  *
9634
+ * @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
9635
+ * which passes `(message, uuid, name)` as separate arguments.
9636
+ *
9631
9637
  * @example
9632
9638
  * ```js
9633
9639
  * // subscribe to a specified application
9634
- * 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));
9640
+ * fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
9641
+ * console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
9642
+ * }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
9635
9643
  *
9636
9644
  * // subscribe to wildcard
9637
9645
  * 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/core",
3
- "version": "46.100.87",
3
+ "version": "46.100.89",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "author": "OpenFin",
38
38
  "dependencies": {
39
- "@types/node": "^20.14.2",
39
+ "@types/node": "^24.19.2",
40
40
  "events": "^3.0.0",
41
41
  "es-toolkit": "^1.39.3",
42
42
  "ws": "^7.5.11",