@openfin/remote-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/remote-adapter.js +51 -3
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -6277,6 +6277,38 @@ function requireInstance$1 () {
|
|
|
6277
6277
|
return undefined;
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
|
+
/**
|
|
6281
|
+
* Displays the download bubble UI. If an anchor is provided, the bubble
|
|
6282
|
+
* will be positioned according to the specified rectangle and anchor point.
|
|
6283
|
+
*
|
|
6284
|
+
* @param {OpenFin.Anchor} options
|
|
6285
|
+
* Anchor configuration used to position the download bubble. This includes
|
|
6286
|
+
* the bounding rectangle and the anchor location within that rectangle.
|
|
6287
|
+
*
|
|
6288
|
+
* @returns {Promise<void>}
|
|
6289
|
+
* A promise that resolves once the request to show the download bubble
|
|
6290
|
+
* has been processed.
|
|
6291
|
+
*/
|
|
6292
|
+
async showDownloadBubble(options) {
|
|
6293
|
+
return this.wire.sendAction('show-download-bubble', { ...this.identity, options }).then(() => undefined);
|
|
6294
|
+
}
|
|
6295
|
+
/**
|
|
6296
|
+
* Updates the anchor used for positioning the download bubble. This allows
|
|
6297
|
+
* moving the bubble reactively—for example, in response to window resizes,
|
|
6298
|
+
* layout changes, or DOM element repositioning.
|
|
6299
|
+
*
|
|
6300
|
+
* @param {OpenFin.Anchor} options
|
|
6301
|
+
* New anchor configuration describing the updated position and anchor
|
|
6302
|
+
* location for the download bubble.
|
|
6303
|
+
*
|
|
6304
|
+
* @returns {Promise<void>}
|
|
6305
|
+
* A promise that resolves once the anchor update has been applied.
|
|
6306
|
+
*/
|
|
6307
|
+
async updateDownloadBubbleAnchor(options) {
|
|
6308
|
+
return this.wire
|
|
6309
|
+
.sendAction('update-download-bubble-anchor', { ...this.identity, options })
|
|
6310
|
+
.then(() => undefined);
|
|
6311
|
+
}
|
|
6280
6312
|
}
|
|
6281
6313
|
Instance$6._Window = _Window;
|
|
6282
6314
|
return Instance$6;
|
|
@@ -8734,14 +8766,15 @@ class System extends base_1$h.EmitterBase {
|
|
|
8734
8766
|
* Writes the passed message into both the log file and the console.
|
|
8735
8767
|
* @param level The log level for the entry. Can be either "info", "warning" or "error"
|
|
8736
8768
|
* @param message The log message text
|
|
8769
|
+
* @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.
|
|
8737
8770
|
*
|
|
8738
8771
|
* @example
|
|
8739
8772
|
* ```js
|
|
8740
|
-
* fin.System.log("info", "An example log message").then(() => console.log('Log info message')).catch(err => console.log(err));
|
|
8773
|
+
* fin.System.log("info", "An example log message", { type: 'debug.log' }).then(() => console.log('Log info message')).catch(err => console.log(err));
|
|
8741
8774
|
* ```
|
|
8742
8775
|
*/
|
|
8743
|
-
log(level, message) {
|
|
8744
|
-
return this.wire.sendAction('write-to-log', { level, message }).then(() => undefined);
|
|
8776
|
+
log(level, message, { type = 'debug.log' } = {}) {
|
|
8777
|
+
return this.wire.sendAction('write-to-log', { level, message, target: { type } }).then(() => undefined);
|
|
8745
8778
|
}
|
|
8746
8779
|
/**
|
|
8747
8780
|
* Opens the passed URL in the default web browser.
|
|
@@ -9846,6 +9879,21 @@ class System extends base_1$h.EmitterBase {
|
|
|
9846
9879
|
async launchLogUploader(options) {
|
|
9847
9880
|
return (await this.wire.sendAction('launch-log-uploader', { options })).payload.data;
|
|
9848
9881
|
}
|
|
9882
|
+
/**
|
|
9883
|
+
* Overrides original Chromium theme color providers matching key (currently except high contrast ones). Only colors passed in the map will be overridden.
|
|
9884
|
+
* @param overrides - Array of ColorProviderOverrides objects
|
|
9885
|
+
*/
|
|
9886
|
+
async setThemePalette(themePalette) {
|
|
9887
|
+
return (await this.wire.sendAction('set-theme-palette', { themePalette })).payload.data;
|
|
9888
|
+
}
|
|
9889
|
+
/**
|
|
9890
|
+
* Retrieves currently used color overrides
|
|
9891
|
+
* @returns Array of ColorProviderOverrides objects
|
|
9892
|
+
*/
|
|
9893
|
+
async getThemePalette() {
|
|
9894
|
+
const { payload } = await this.wire.sendAction('get-theme-palette');
|
|
9895
|
+
return payload.data;
|
|
9896
|
+
}
|
|
9849
9897
|
}
|
|
9850
9898
|
system.System = System;
|
|
9851
9899
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "44.100.
|
|
3
|
+
"version": "44.100.51",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"author": "OpenFin",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
|
-
"@openfin/core": "44.100.
|
|
23
|
+
"@openfin/core": "44.100.51"
|
|
24
24
|
}
|
|
25
25
|
}
|