@openfin/node-adapter 44.100.49 → 44.100.51
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/node-adapter.js +52 -4
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -4891,6 +4891,38 @@ function requireInstance () {
|
|
|
4891
4891
|
return undefined;
|
|
4892
4892
|
}
|
|
4893
4893
|
}
|
|
4894
|
+
/**
|
|
4895
|
+
* Displays the download bubble UI. If an anchor is provided, the bubble
|
|
4896
|
+
* will be positioned according to the specified rectangle and anchor point.
|
|
4897
|
+
*
|
|
4898
|
+
* @param {OpenFin.Anchor} options
|
|
4899
|
+
* Anchor configuration used to position the download bubble. This includes
|
|
4900
|
+
* the bounding rectangle and the anchor location within that rectangle.
|
|
4901
|
+
*
|
|
4902
|
+
* @returns {Promise<void>}
|
|
4903
|
+
* A promise that resolves once the request to show the download bubble
|
|
4904
|
+
* has been processed.
|
|
4905
|
+
*/
|
|
4906
|
+
async showDownloadBubble(options) {
|
|
4907
|
+
return this.wire.sendAction('show-download-bubble', { ...this.identity, options }).then(() => undefined);
|
|
4908
|
+
}
|
|
4909
|
+
/**
|
|
4910
|
+
* Updates the anchor used for positioning the download bubble. This allows
|
|
4911
|
+
* moving the bubble reactively—for example, in response to window resizes,
|
|
4912
|
+
* layout changes, or DOM element repositioning.
|
|
4913
|
+
*
|
|
4914
|
+
* @param {OpenFin.Anchor} options
|
|
4915
|
+
* New anchor configuration describing the updated position and anchor
|
|
4916
|
+
* location for the download bubble.
|
|
4917
|
+
*
|
|
4918
|
+
* @returns {Promise<void>}
|
|
4919
|
+
* A promise that resolves once the anchor update has been applied.
|
|
4920
|
+
*/
|
|
4921
|
+
async updateDownloadBubbleAnchor(options) {
|
|
4922
|
+
return this.wire
|
|
4923
|
+
.sendAction('update-download-bubble-anchor', { ...this.identity, options })
|
|
4924
|
+
.then(() => undefined);
|
|
4925
|
+
}
|
|
4894
4926
|
}
|
|
4895
4927
|
Instance$7._Window = _Window;
|
|
4896
4928
|
return Instance$7;
|
|
@@ -5976,14 +6008,15 @@ class System extends base_1$m.EmitterBase {
|
|
|
5976
6008
|
* Writes the passed message into both the log file and the console.
|
|
5977
6009
|
* @param level The log level for the entry. Can be either "info", "warning" or "error"
|
|
5978
6010
|
* @param message The log message text
|
|
6011
|
+
* @param target.type Optional. The the log stream this message will be sent to, defaults to 'debug.log'. Specify 'app.log' to log to the app log of the sending View / Window. Note, when using `app.log`, it will always log to app.log irrespective of the `enableAppLogging` setting for the sender. This is particularly useful if you wish to log certain things from a View / Window but ignore generic console logs.
|
|
5979
6012
|
*
|
|
5980
6013
|
* @example
|
|
5981
6014
|
* ```js
|
|
5982
|
-
* fin.System.log("info", "An example log message").then(() => console.log('Log info message')).catch(err => console.log(err));
|
|
6015
|
+
* fin.System.log("info", "An example log message", { type: 'debug.log' }).then(() => console.log('Log info message')).catch(err => console.log(err));
|
|
5983
6016
|
* ```
|
|
5984
6017
|
*/
|
|
5985
|
-
log(level, message) {
|
|
5986
|
-
return this.wire.sendAction('write-to-log', { level, message }).then(() => undefined);
|
|
6018
|
+
log(level, message, { type = 'debug.log' } = {}) {
|
|
6019
|
+
return this.wire.sendAction('write-to-log', { level, message, target: { type } }).then(() => undefined);
|
|
5987
6020
|
}
|
|
5988
6021
|
/**
|
|
5989
6022
|
* Opens the passed URL in the default web browser.
|
|
@@ -7088,6 +7121,21 @@ class System extends base_1$m.EmitterBase {
|
|
|
7088
7121
|
async launchLogUploader(options) {
|
|
7089
7122
|
return (await this.wire.sendAction('launch-log-uploader', { options })).payload.data;
|
|
7090
7123
|
}
|
|
7124
|
+
/**
|
|
7125
|
+
* Overrides original Chromium theme color providers matching key (currently except high contrast ones). Only colors passed in the map will be overridden.
|
|
7126
|
+
* @param overrides - Array of ColorProviderOverrides objects
|
|
7127
|
+
*/
|
|
7128
|
+
async setThemePalette(themePalette) {
|
|
7129
|
+
return (await this.wire.sendAction('set-theme-palette', { themePalette })).payload.data;
|
|
7130
|
+
}
|
|
7131
|
+
/**
|
|
7132
|
+
* Retrieves currently used color overrides
|
|
7133
|
+
* @returns Array of ColorProviderOverrides objects
|
|
7134
|
+
*/
|
|
7135
|
+
async getThemePalette() {
|
|
7136
|
+
const { payload } = await this.wire.sendAction('get-theme-palette');
|
|
7137
|
+
return payload.data;
|
|
7138
|
+
}
|
|
7091
7139
|
}
|
|
7092
7140
|
system.System = System;
|
|
7093
7141
|
|
|
@@ -18108,7 +18156,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
|
18108
18156
|
};
|
|
18109
18157
|
}
|
|
18110
18158
|
getAdapterVersionSync() {
|
|
18111
|
-
return "44.100.
|
|
18159
|
+
return "44.100.51";
|
|
18112
18160
|
}
|
|
18113
18161
|
observeBounds(element, onChange) {
|
|
18114
18162
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "44.100.
|
|
3
|
+
"version": "44.100.51",
|
|
4
4
|
"description": "See README.md",
|
|
5
5
|
"main": "out/node-adapter.js",
|
|
6
6
|
"types": "out/node-adapter.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"author": "OpenFin",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/node": "^20.14.2",
|
|
27
|
-
"@openfin/core": "44.100.
|
|
27
|
+
"@openfin/core": "44.100.51",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"ws": "^7.3.0"
|
|
30
30
|
}
|