@openfin/node-adapter 34.78.13 → 34.78.15
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 +123 -63
- package/out/node-adapter-beta.d.ts +123 -63
- package/out/node-adapter-public.d.ts +123 -63
- package/out/node-adapter.d.ts +124 -64
- package/out/node-adapter.js +86 -2
- package/package.json +3 -2
- package/resources/win/OpenFinRVM.exe +0 -0
package/out/node-adapter.js
CHANGED
@@ -1444,6 +1444,11 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1444
1444
|
* }
|
1445
1445
|
* console.log(await wnd.capturePage(options));
|
1446
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}.
|
1447
1452
|
*/
|
1448
1453
|
capturePage(options) {
|
1449
1454
|
return this.wire.sendAction('capture-page', { options, ...this.identity }).then(({ payload }) => payload.data);
|
@@ -1479,6 +1484,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1479
1484
|
*
|
1480
1485
|
* executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
|
1481
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}.
|
1482
1491
|
*/
|
1483
1492
|
executeJavaScript(code) {
|
1484
1493
|
return this.wire
|
@@ -1518,6 +1527,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1518
1527
|
*
|
1519
1528
|
* getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
|
1520
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}.
|
1521
1534
|
*/
|
1522
1535
|
getZoomLevel() {
|
1523
1536
|
return this.wire.sendAction('get-zoom-level', this.identity).then(({ payload }) => payload.data);
|
@@ -1556,6 +1569,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1556
1569
|
*
|
1557
1570
|
* setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
|
1558
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}.
|
1559
1576
|
*/
|
1560
1577
|
setZoomLevel(level) {
|
1561
1578
|
return this.wire.sendAction('set-zoom-level', { ...this.identity, level }).then(() => undefined);
|
@@ -1593,6 +1610,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1593
1610
|
* navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
|
1594
1611
|
* ```
|
1595
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}.
|
1596
1617
|
*/
|
1597
1618
|
navigate(url) {
|
1598
1619
|
return this.wire.sendAction('navigate-window', { ...this.identity, url }).then(() => undefined);
|
@@ -1620,6 +1641,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1620
1641
|
* }
|
1621
1642
|
* navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
|
1622
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}.
|
1623
1648
|
*/
|
1624
1649
|
navigateBack() {
|
1625
1650
|
return this.wire.sendAction('navigate-window-back', { ...this.identity }).then(() => undefined);
|
@@ -1649,6 +1674,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1649
1674
|
* }
|
1650
1675
|
* navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
|
1651
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}.
|
1652
1681
|
*/
|
1653
1682
|
async navigateForward() {
|
1654
1683
|
await this.wire.sendAction('navigate-window-forward', { ...this.identity });
|
@@ -1676,6 +1705,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1676
1705
|
* }
|
1677
1706
|
* stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
|
1678
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}.
|
1679
1712
|
*/
|
1680
1713
|
stopNavigation() {
|
1681
1714
|
return this.wire.sendAction('stop-window-navigation', { ...this.identity }).then(() => undefined);
|
@@ -1713,6 +1746,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1713
1746
|
* console.log('Reloaded window')
|
1714
1747
|
* }).catch(err => console.log(err));
|
1715
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}.
|
1716
1753
|
*/
|
1717
1754
|
reload(ignoreCache = false) {
|
1718
1755
|
return this.wire
|
@@ -1739,6 +1776,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1739
1776
|
* console.log('print call has been sent to the system');
|
1740
1777
|
* });
|
1741
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}.
|
1742
1783
|
*/
|
1743
1784
|
print(options = {}) {
|
1744
1785
|
return this.wire.sendAction('print', { ...this.identity, options }).then(() => undefined);
|
@@ -1783,6 +1824,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1783
1824
|
* console.log(result)
|
1784
1825
|
* });
|
1785
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}.
|
1786
1831
|
*/
|
1787
1832
|
findInPage(searchTerm, options) {
|
1788
1833
|
return this.wire
|
@@ -1826,6 +1871,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1826
1871
|
* console.log(results);
|
1827
1872
|
* });
|
1828
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}.
|
1829
1878
|
*/
|
1830
1879
|
stopFindInPage(action) {
|
1831
1880
|
return this.wire.sendAction('stop-find-in-page', { ...this.identity, action }).then(() => undefined);
|
@@ -1868,6 +1917,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1868
1917
|
* console.log(err);
|
1869
1918
|
* });
|
1870
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}.
|
1871
1924
|
*/
|
1872
1925
|
getPrinters() {
|
1873
1926
|
return this.wire.sendAction('get-printers', { ...this.identity }).then(({ payload }) => payload.data);
|
@@ -1890,6 +1943,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1890
1943
|
*
|
1891
1944
|
* focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
|
1892
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}.
|
1893
1950
|
*/
|
1894
1951
|
async focus({ emitSynthFocused } = { emitSynthFocused: true }) {
|
1895
1952
|
await this.wire.sendAction('focus-window', { emitSynthFocused, ...this.identity });
|
@@ -1921,6 +1978,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1921
1978
|
* .then(() => console.log('Showing dev tools'))
|
1922
1979
|
* .catch(err => console.error(err));
|
1923
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}.
|
1924
1985
|
*/
|
1925
1986
|
async showDeveloperTools() {
|
1926
1987
|
// Note this hits the system action map in core state for legacy reasons.
|
@@ -1943,6 +2004,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1943
2004
|
* const win = await fin.Window.getCurrent();
|
1944
2005
|
* const processInfo = await win.getProcessInfo();
|
1945
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}.
|
1946
2011
|
*/
|
1947
2012
|
async getProcessInfo() {
|
1948
2013
|
const { payload: { data } } = await this.wire.sendAction('get-process-info', this.identity);
|
@@ -1978,6 +2043,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1978
2043
|
* const win = await fin.Window.create(winOption);
|
1979
2044
|
* const sharedWorkers = await win.getSharedWorkers();
|
1980
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}.
|
1981
2050
|
*/
|
1982
2051
|
async getSharedWorkers() {
|
1983
2052
|
return this.wire.sendAction('get-shared-workers', this.identity).then(({ payload }) => payload.data);
|
@@ -2012,6 +2081,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2012
2081
|
* const win = await fin.Window.create(winOption);
|
2013
2082
|
* await win.inspectSharedWorker();
|
2014
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}.
|
2015
2088
|
*/
|
2016
2089
|
async inspectSharedWorker() {
|
2017
2090
|
await this.wire.sendAction('inspect-shared-worker', { ...this.identity });
|
@@ -2049,6 +2122,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2049
2122
|
* const sharedWorkers = await win.getSharedWorkers();
|
2050
2123
|
* await win.inspectSharedWorkerById(sharedWorkers[0].id);
|
2051
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}.
|
2052
2129
|
*/
|
2053
2130
|
async inspectSharedWorkerById(workerId) {
|
2054
2131
|
await this.wire.sendAction('inspect-shared-worker-by-id', { ...this.identity, workerId });
|
@@ -2083,6 +2160,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2083
2160
|
* const win = await fin.Window.create(winOption);
|
2084
2161
|
* await win.inspectServiceWorker();
|
2085
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}.
|
2086
2167
|
*/
|
2087
2168
|
async inspectServiceWorker() {
|
2088
2169
|
await this.wire.sendAction('inspect-service-worker', { ...this.identity });
|
@@ -2293,6 +2374,10 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2293
2374
|
* onPopupReady: popupWindowCallback;
|
2294
2375
|
* });
|
2295
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}.
|
2296
2381
|
*/
|
2297
2382
|
async showPopupWindow(options) {
|
2298
2383
|
this.wire.sendAction(`${this.entityType}-show-popup-window`, this.identity).catch(() => {
|
@@ -4715,7 +4800,6 @@ function requireInstance () {
|
|
4715
4800
|
*/
|
4716
4801
|
constructor(wire, identity) {
|
4717
4802
|
super(wire, identity, 'window');
|
4718
|
-
this.identity = identity;
|
4719
4803
|
}
|
4720
4804
|
/**
|
4721
4805
|
* Adds a listener to the end of the listeners array for the specified event.
|
@@ -16613,7 +16697,7 @@ function launchRVM(config, manifestLocation, namedPipeName, rvm) {
|
|
16613
16697
|
async function checkRvmPath() {
|
16614
16698
|
let rvmPath = path.resolve(process.env.LOCALAPPDATA, 'OpenFin', 'OpenFinRVM.exe');
|
16615
16699
|
if (!(await (0, util_1.exists)(rvmPath))) {
|
16616
|
-
rvmPath = path.join(__dirname, '..', '
|
16700
|
+
rvmPath = path.join(__dirname, '..', 'resources', 'win', 'OpenFinRVM.exe');
|
16617
16701
|
}
|
16618
16702
|
return rvmPath;
|
16619
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.15",
|
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
|