@openfin/node-adapter 34.78.12 → 34.78.14
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-alpha.d.ts +330 -70
- package/out/node-adapter-beta.d.ts +330 -70
- package/out/node-adapter-public.d.ts +330 -70
- package/out/node-adapter.d.ts +331 -71
- package/out/node-adapter.js +101 -3
- package/package.json +3 -2
- package/resources/win/OpenFinRVM.exe +0 -0
package/out/node-adapter.js
CHANGED
@@ -102,6 +102,13 @@ class Base {
|
|
102
102
|
get fin() {
|
103
103
|
return this.wire.getFin();
|
104
104
|
}
|
105
|
+
/**
|
106
|
+
* Provides access to the OpenFin representation of the current code context (usually a document
|
107
|
+
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
108
|
+
*
|
109
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
110
|
+
* on the context in which the devtools panel was opened.
|
111
|
+
*/
|
105
112
|
get me() {
|
106
113
|
return this.wire.me;
|
107
114
|
}
|
@@ -1381,6 +1388,10 @@ Object.defineProperty(main, "__esModule", { value: true });
|
|
1381
1388
|
main.WebContents = void 0;
|
1382
1389
|
const base_1$k = base;
|
1383
1390
|
class WebContents extends base_1$k.EmitterBase {
|
1391
|
+
/**
|
1392
|
+
* @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
|
1393
|
+
* @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
|
1394
|
+
*/
|
1384
1395
|
constructor(wire, identity, entityType) {
|
1385
1396
|
super(wire, entityType, identity.uuid, identity.name);
|
1386
1397
|
this.identity = identity;
|
@@ -1433,6 +1444,11 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1433
1444
|
* }
|
1434
1445
|
* console.log(await wnd.capturePage(options));
|
1435
1446
|
* ```
|
1447
|
+
*
|
1448
|
+
* @remarks
|
1449
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1450
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1451
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1436
1452
|
*/
|
1437
1453
|
capturePage(options) {
|
1438
1454
|
return this.wire.sendAction('capture-page', { options, ...this.identity }).then(({ payload }) => payload.data);
|
@@ -1468,6 +1484,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1468
1484
|
*
|
1469
1485
|
* executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
|
1470
1486
|
* ```
|
1487
|
+
* @remarks
|
1488
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1489
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1490
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1471
1491
|
*/
|
1472
1492
|
executeJavaScript(code) {
|
1473
1493
|
return this.wire
|
@@ -1507,6 +1527,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1507
1527
|
*
|
1508
1528
|
* getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
|
1509
1529
|
* ```
|
1530
|
+
* @remarks
|
1531
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1532
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1533
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1510
1534
|
*/
|
1511
1535
|
getZoomLevel() {
|
1512
1536
|
return this.wire.sendAction('get-zoom-level', this.identity).then(({ payload }) => payload.data);
|
@@ -1545,6 +1569,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1545
1569
|
*
|
1546
1570
|
* setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
|
1547
1571
|
* ```
|
1572
|
+
* @remarks
|
1573
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1574
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1575
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1548
1576
|
*/
|
1549
1577
|
setZoomLevel(level) {
|
1550
1578
|
return this.wire.sendAction('set-zoom-level', { ...this.identity, level }).then(() => undefined);
|
@@ -1582,6 +1610,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1582
1610
|
* navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
|
1583
1611
|
* ```
|
1584
1612
|
* @experimental
|
1613
|
+
* @remarks
|
1614
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1615
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1616
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1585
1617
|
*/
|
1586
1618
|
navigate(url) {
|
1587
1619
|
return this.wire.sendAction('navigate-window', { ...this.identity, url }).then(() => undefined);
|
@@ -1609,6 +1641,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1609
1641
|
* }
|
1610
1642
|
* navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
|
1611
1643
|
* ```
|
1644
|
+
* @remarks
|
1645
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1646
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1647
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1612
1648
|
*/
|
1613
1649
|
navigateBack() {
|
1614
1650
|
return this.wire.sendAction('navigate-window-back', { ...this.identity }).then(() => undefined);
|
@@ -1638,6 +1674,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1638
1674
|
* }
|
1639
1675
|
* navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
|
1640
1676
|
* ```
|
1677
|
+
* @remarks
|
1678
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1679
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1680
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1641
1681
|
*/
|
1642
1682
|
async navigateForward() {
|
1643
1683
|
await this.wire.sendAction('navigate-window-forward', { ...this.identity });
|
@@ -1665,6 +1705,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1665
1705
|
* }
|
1666
1706
|
* stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
|
1667
1707
|
* ```
|
1708
|
+
* @remarks
|
1709
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1710
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1711
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1668
1712
|
*/
|
1669
1713
|
stopNavigation() {
|
1670
1714
|
return this.wire.sendAction('stop-window-navigation', { ...this.identity }).then(() => undefined);
|
@@ -1702,6 +1746,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1702
1746
|
* console.log('Reloaded window')
|
1703
1747
|
* }).catch(err => console.log(err));
|
1704
1748
|
* ```
|
1749
|
+
* @remarks
|
1750
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1751
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1752
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1705
1753
|
*/
|
1706
1754
|
reload(ignoreCache = false) {
|
1707
1755
|
return this.wire
|
@@ -1728,6 +1776,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1728
1776
|
* console.log('print call has been sent to the system');
|
1729
1777
|
* });
|
1730
1778
|
* ```
|
1779
|
+
* @remarks
|
1780
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1781
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1782
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1731
1783
|
*/
|
1732
1784
|
print(options = {}) {
|
1733
1785
|
return this.wire.sendAction('print', { ...this.identity, options }).then(() => undefined);
|
@@ -1772,6 +1824,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1772
1824
|
* console.log(result)
|
1773
1825
|
* });
|
1774
1826
|
* ```
|
1827
|
+
* @remarks
|
1828
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1829
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1830
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1775
1831
|
*/
|
1776
1832
|
findInPage(searchTerm, options) {
|
1777
1833
|
return this.wire
|
@@ -1815,6 +1871,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1815
1871
|
* console.log(results);
|
1816
1872
|
* });
|
1817
1873
|
* ```
|
1874
|
+
* @remarks
|
1875
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1876
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1877
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1818
1878
|
*/
|
1819
1879
|
stopFindInPage(action) {
|
1820
1880
|
return this.wire.sendAction('stop-find-in-page', { ...this.identity, action }).then(() => undefined);
|
@@ -1857,6 +1917,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1857
1917
|
* console.log(err);
|
1858
1918
|
* });
|
1859
1919
|
* ```
|
1920
|
+
* @remarks
|
1921
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1922
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1923
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1860
1924
|
*/
|
1861
1925
|
getPrinters() {
|
1862
1926
|
return this.wire.sendAction('get-printers', { ...this.identity }).then(({ payload }) => payload.data);
|
@@ -1879,6 +1943,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1879
1943
|
*
|
1880
1944
|
* focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
|
1881
1945
|
* ```
|
1946
|
+
* @remarks
|
1947
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1948
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1949
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1882
1950
|
*/
|
1883
1951
|
async focus({ emitSynthFocused } = { emitSynthFocused: true }) {
|
1884
1952
|
await this.wire.sendAction('focus-window', { emitSynthFocused, ...this.identity });
|
@@ -1910,6 +1978,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1910
1978
|
* .then(() => console.log('Showing dev tools'))
|
1911
1979
|
* .catch(err => console.error(err));
|
1912
1980
|
* ```
|
1981
|
+
* @remarks
|
1982
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1983
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1984
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1913
1985
|
*/
|
1914
1986
|
async showDeveloperTools() {
|
1915
1987
|
// Note this hits the system action map in core state for legacy reasons.
|
@@ -1932,6 +2004,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1932
2004
|
* const win = await fin.Window.getCurrent();
|
1933
2005
|
* const processInfo = await win.getProcessInfo();
|
1934
2006
|
* ```
|
2007
|
+
* @remarks
|
2008
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2009
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2010
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1935
2011
|
*/
|
1936
2012
|
async getProcessInfo() {
|
1937
2013
|
const { payload: { data } } = await this.wire.sendAction('get-process-info', this.identity);
|
@@ -1967,6 +2043,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1967
2043
|
* const win = await fin.Window.create(winOption);
|
1968
2044
|
* const sharedWorkers = await win.getSharedWorkers();
|
1969
2045
|
* ```
|
2046
|
+
* @remarks
|
2047
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2048
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2049
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
1970
2050
|
*/
|
1971
2051
|
async getSharedWorkers() {
|
1972
2052
|
return this.wire.sendAction('get-shared-workers', this.identity).then(({ payload }) => payload.data);
|
@@ -2001,6 +2081,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2001
2081
|
* const win = await fin.Window.create(winOption);
|
2002
2082
|
* await win.inspectSharedWorker();
|
2003
2083
|
* ```
|
2084
|
+
* @remarks
|
2085
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2086
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2087
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
2004
2088
|
*/
|
2005
2089
|
async inspectSharedWorker() {
|
2006
2090
|
await this.wire.sendAction('inspect-shared-worker', { ...this.identity });
|
@@ -2038,6 +2122,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2038
2122
|
* const sharedWorkers = await win.getSharedWorkers();
|
2039
2123
|
* await win.inspectSharedWorkerById(sharedWorkers[0].id);
|
2040
2124
|
* ```
|
2125
|
+
* @remarks
|
2126
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2127
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2128
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
2041
2129
|
*/
|
2042
2130
|
async inspectSharedWorkerById(workerId) {
|
2043
2131
|
await this.wire.sendAction('inspect-shared-worker-by-id', { ...this.identity, workerId });
|
@@ -2072,6 +2160,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2072
2160
|
* const win = await fin.Window.create(winOption);
|
2073
2161
|
* await win.inspectServiceWorker();
|
2074
2162
|
* ```
|
2163
|
+
* @remarks
|
2164
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2165
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2166
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
2075
2167
|
*/
|
2076
2168
|
async inspectServiceWorker() {
|
2077
2169
|
await this.wire.sendAction('inspect-service-worker', { ...this.identity });
|
@@ -2282,6 +2374,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2282
2374
|
* onPopupReady: popupWindowCallback;
|
2283
2375
|
* });
|
2284
2376
|
* ```
|
2377
|
+
* @remarks
|
2378
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2379
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2380
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
2285
2381
|
*/
|
2286
2382
|
async showPopupWindow(options) {
|
2287
2383
|
this.wire.sendAction(`${this.entityType}-show-popup-window`, this.identity).catch(() => {
|
@@ -4704,7 +4800,6 @@ function requireInstance () {
|
|
4704
4800
|
*/
|
4705
4801
|
constructor(wire, identity) {
|
4706
4802
|
super(wire, identity, 'window');
|
4707
|
-
this.identity = identity;
|
4708
4803
|
}
|
4709
4804
|
/**
|
4710
4805
|
* Adds a listener to the end of the listeners array for the specified event.
|
@@ -5883,7 +5978,10 @@ function requireInstance () {
|
|
5883
5978
|
* Calling this method will close previously opened menus.
|
5884
5979
|
* @experimental
|
5885
5980
|
* @param options
|
5886
|
-
*
|
5981
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
5982
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
5983
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
5984
|
+
* these with a "reducer" pattern.
|
5887
5985
|
* @example
|
5888
5986
|
* This could be used to show a drop down menu over views in a platform window:
|
5889
5987
|
* ```js
|
@@ -16599,7 +16697,7 @@ function launchRVM(config, manifestLocation, namedPipeName, rvm) {
|
|
16599
16697
|
async function checkRvmPath() {
|
16600
16698
|
let rvmPath = path.resolve(process.env.LOCALAPPDATA, 'OpenFin', 'OpenFinRVM.exe');
|
16601
16699
|
if (!(await (0, util_1.exists)(rvmPath))) {
|
16602
|
-
rvmPath = path.join(__dirname, '..', '
|
16700
|
+
rvmPath = path.join(__dirname, '..', 'resources', 'win', 'OpenFinRVM.exe');
|
16603
16701
|
}
|
16604
16702
|
return rvmPath;
|
16605
16703
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openfin/node-adapter",
|
3
|
-
"version": "34.78.
|
3
|
+
"version": "34.78.14",
|
4
4
|
"description": "See README.md",
|
5
5
|
"main": "out/node-adapter.js",
|
6
6
|
"types": "out/node-adapter.d.ts",
|
@@ -11,7 +11,8 @@
|
|
11
11
|
"build": "rollup --config"
|
12
12
|
},
|
13
13
|
"files": [
|
14
|
-
"out/*"
|
14
|
+
"out/*",
|
15
|
+
"resources/**"
|
15
16
|
],
|
16
17
|
"author": "OpenFin",
|
17
18
|
"devDependencies": {
|
Binary file
|