@openfin/node-adapter 34.78.3 → 34.78.5
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 +14 -153
- package/out/node-adapter-beta.d.ts +14 -153
- package/out/node-adapter-public.d.ts +14 -153
- package/out/node-adapter.d.ts +14 -153
- package/out/node-adapter.js +33 -175
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -941,7 +941,6 @@ function requireFactory$3 () {
|
|
941
941
|
* ```
|
942
942
|
* Note that created views needs to navigate somewhere for them to actually render a website.
|
943
943
|
* @experimental
|
944
|
-
* @static
|
945
944
|
*/
|
946
945
|
async create(options) {
|
947
946
|
const { uuid } = this.wire.me;
|
@@ -961,7 +960,6 @@ function requireFactory$3 () {
|
|
961
960
|
}
|
962
961
|
/**
|
963
962
|
* Asynchronously returns a View object that represents an existing view.
|
964
|
-
* @param identity
|
965
963
|
*
|
966
964
|
* @example
|
967
965
|
* ```js
|
@@ -970,7 +968,6 @@ function requireFactory$3 () {
|
|
970
968
|
* .catch(err => console.log(err));
|
971
969
|
* ```
|
972
970
|
* @experimental
|
973
|
-
* @static
|
974
971
|
*/
|
975
972
|
async wrap(identity) {
|
976
973
|
this.wire.sendAction('view-wrap');
|
@@ -982,7 +979,6 @@ function requireFactory$3 () {
|
|
982
979
|
}
|
983
980
|
/**
|
984
981
|
* Synchronously returns a View object that represents an existing view.
|
985
|
-
* @param identity
|
986
982
|
*
|
987
983
|
* @example
|
988
984
|
* ```js
|
@@ -990,7 +986,6 @@ function requireFactory$3 () {
|
|
990
986
|
* await view.hide();
|
991
987
|
* ```
|
992
988
|
* @experimental
|
993
|
-
* @static
|
994
989
|
*/
|
995
990
|
wrapSync(identity) {
|
996
991
|
this.wire.sendAction('view-wrap-sync').catch((e) => {
|
@@ -1013,7 +1008,6 @@ function requireFactory$3 () {
|
|
1013
1008
|
*
|
1014
1009
|
* ```
|
1015
1010
|
* @experimental
|
1016
|
-
* @static
|
1017
1011
|
*/
|
1018
1012
|
getCurrent() {
|
1019
1013
|
this.wire.sendAction('view-get-current').catch((e) => {
|
@@ -1035,7 +1029,6 @@ function requireFactory$3 () {
|
|
1035
1029
|
*
|
1036
1030
|
* ```
|
1037
1031
|
* @experimental
|
1038
|
-
* @static
|
1039
1032
|
*/
|
1040
1033
|
getCurrentSync() {
|
1041
1034
|
this.wire.sendAction('view-get-current-sync').catch((e) => {
|
@@ -1887,10 +1880,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1887
1880
|
}
|
1888
1881
|
/**
|
1889
1882
|
* Gets a base64 encoded image of all or part of the WebContents.
|
1890
|
-
* @function capturePage
|
1891
1883
|
* @param options Options for the capturePage call.
|
1892
|
-
* @memberOf View
|
1893
|
-
* @instance
|
1894
1884
|
*
|
1895
1885
|
* @example
|
1896
1886
|
*
|
@@ -1943,9 +1933,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1943
1933
|
* Executes Javascript on the WebContents, restricted to contents you own or contents owned by
|
1944
1934
|
* applications you have created.
|
1945
1935
|
* @param code JavaScript code to be executed on the view.
|
1946
|
-
* @function executeJavaScript
|
1947
|
-
* @memberOf View
|
1948
|
-
* @instance
|
1949
1936
|
*
|
1950
1937
|
* @example
|
1951
1938
|
* View:
|
@@ -1981,9 +1968,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1981
1968
|
}
|
1982
1969
|
/**
|
1983
1970
|
* Returns the zoom level of the WebContents.
|
1984
|
-
* @function getZoomLevel
|
1985
|
-
* @memberOf View
|
1986
|
-
* @instance
|
1987
1971
|
*
|
1988
1972
|
* @example
|
1989
1973
|
* View:
|
@@ -2022,9 +2006,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2022
2006
|
/**
|
2023
2007
|
* Sets the zoom level of the WebContents.
|
2024
2008
|
* @param level The zoom level
|
2025
|
-
* @function setZoomLevel
|
2026
|
-
* @memberOf View
|
2027
|
-
* @instance
|
2028
2009
|
*
|
2029
2010
|
* @example
|
2030
2011
|
* View:
|
@@ -2066,9 +2047,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2066
2047
|
* @remarks The url must contain the protocol prefix such as http:// or https://.
|
2067
2048
|
* @param url - The URL to navigate the WebContents to.
|
2068
2049
|
*
|
2069
|
-
* @function navigate
|
2070
|
-
* @memberof View
|
2071
|
-
* @instance
|
2072
2050
|
* @example
|
2073
2051
|
* View:
|
2074
2052
|
* ```js
|
@@ -2102,9 +2080,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2102
2080
|
}
|
2103
2081
|
/**
|
2104
2082
|
* Navigates the WebContents back one page.
|
2105
|
-
* @function navigateBack
|
2106
|
-
* @memberOf View
|
2107
|
-
* @instance
|
2108
2083
|
*
|
2109
2084
|
* @example
|
2110
2085
|
* View:
|
@@ -2132,9 +2107,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2132
2107
|
}
|
2133
2108
|
/**
|
2134
2109
|
* Navigates the WebContents forward one page.
|
2135
|
-
* @function navigateForward
|
2136
|
-
* @memberOf View
|
2137
|
-
* @instance
|
2138
2110
|
*
|
2139
2111
|
* @example
|
2140
2112
|
* View:
|
@@ -2164,9 +2136,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2164
2136
|
}
|
2165
2137
|
/**
|
2166
2138
|
* Stops any current navigation the WebContents is performing.
|
2167
|
-
* @function stopNavigation
|
2168
|
-
* @memberOf View
|
2169
|
-
* @instance
|
2170
2139
|
*
|
2171
2140
|
* @example
|
2172
2141
|
* View:
|
@@ -2194,9 +2163,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2194
2163
|
}
|
2195
2164
|
/**
|
2196
2165
|
* Reloads the WebContents
|
2197
|
-
* @function reload
|
2198
|
-
* @memberOf View
|
2199
|
-
* @instance
|
2200
2166
|
*
|
2201
2167
|
* @example
|
2202
2168
|
* View:
|
@@ -2240,9 +2206,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2240
2206
|
/**
|
2241
2207
|
* Prints the WebContents.
|
2242
2208
|
* @param options Printer Options
|
2243
|
-
* @function print
|
2244
|
-
* @memberOf View
|
2245
|
-
* @instance
|
2246
2209
|
*
|
2247
2210
|
* @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
|
2248
2211
|
* is empty and the default settings for printing.
|
@@ -2265,9 +2228,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2265
2228
|
* Find and highlight text on a page.
|
2266
2229
|
* @param searchTerm Term to find in page
|
2267
2230
|
* @param options Search options
|
2268
|
-
* @function findInPage
|
2269
|
-
* @memberOf View
|
2270
|
-
* @instance
|
2271
2231
|
*
|
2272
2232
|
* @remarks By default, each subsequent call will highlight the next text that matches the search term.
|
2273
2233
|
*
|
@@ -2354,9 +2314,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2354
2314
|
/**
|
2355
2315
|
* Returns an array with all system printers
|
2356
2316
|
* @deprecated use System.getPrinters instead
|
2357
|
-
* @function getPrinters
|
2358
|
-
* @memberOf View
|
2359
|
-
* @instance
|
2360
2317
|
*
|
2361
2318
|
* @example
|
2362
2319
|
* View:
|
@@ -2399,10 +2356,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2399
2356
|
/**
|
2400
2357
|
* Gives focus to the WebContents.
|
2401
2358
|
*
|
2402
|
-
* @function focus
|
2403
|
-
* @emits focused
|
2404
|
-
* @memberOf Window
|
2405
|
-
* @instance
|
2406
2359
|
* @example
|
2407
2360
|
* ```js
|
2408
2361
|
* async function focusWindow() {
|
@@ -2424,9 +2377,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2424
2377
|
}
|
2425
2378
|
/**
|
2426
2379
|
* Shows the Chromium Developer Tools
|
2427
|
-
* @function showDeveloperTools
|
2428
|
-
* @memberOf View
|
2429
|
-
* @instance
|
2430
2380
|
*
|
2431
2381
|
* @example
|
2432
2382
|
* View:
|
@@ -2462,10 +2412,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2462
2412
|
*
|
2463
2413
|
* @remarks This includes any iframes associated with the WebContents
|
2464
2414
|
*
|
2465
|
-
* @function getProcessInfo
|
2466
|
-
* @memberOf View
|
2467
|
-
* @instance
|
2468
|
-
*
|
2469
2415
|
* @example
|
2470
2416
|
* View:
|
2471
2417
|
* ```js
|
@@ -2485,9 +2431,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2485
2431
|
}
|
2486
2432
|
/**
|
2487
2433
|
* Retrieves information on all Shared Workers.
|
2488
|
-
* @function getSharedWorkers
|
2489
|
-
* @memberOf View
|
2490
|
-
* @instance
|
2491
2434
|
*
|
2492
2435
|
* @example
|
2493
2436
|
* View:
|
@@ -2522,9 +2465,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2522
2465
|
}
|
2523
2466
|
/**
|
2524
2467
|
* Opens the developer tools for the shared worker context.
|
2525
|
-
* @function inspectSharedWorker
|
2526
|
-
* @memberOf View
|
2527
|
-
* @instance
|
2528
2468
|
*
|
2529
2469
|
* @example
|
2530
2470
|
* View:
|
@@ -2560,9 +2500,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2560
2500
|
/**
|
2561
2501
|
* Inspects the shared worker based on its ID.
|
2562
2502
|
* @param workerId - The id of the shared worker.
|
2563
|
-
* @function inspectSharedWorkerById
|
2564
|
-
* @memberOf View
|
2565
|
-
* @instance
|
2566
2503
|
*
|
2567
2504
|
* @example
|
2568
2505
|
* View:
|
@@ -2599,9 +2536,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2599
2536
|
}
|
2600
2537
|
/**
|
2601
2538
|
* Opens the developer tools for the service worker context.
|
2602
|
-
* @function inspectServiceWorker
|
2603
|
-
* @memberOf View
|
2604
|
-
* @instance
|
2605
2539
|
*
|
2606
2540
|
* @example
|
2607
2541
|
* View:
|
@@ -2840,11 +2774,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2840
2774
|
* onPopupReady: popupWindowCallback;
|
2841
2775
|
* });
|
2842
2776
|
* ```
|
2843
|
-
* @function showPopupWindow
|
2844
|
-
* @memberOf View
|
2845
|
-
* @instance
|
2846
|
-
* @param options
|
2847
|
-
*
|
2848
2777
|
*/
|
2849
2778
|
async showPopupWindow(options) {
|
2850
2779
|
this.wire.sendAction(`${this.entityType}-show-popup-window`, this.identity).catch(() => {
|
@@ -3421,7 +3350,6 @@ function requireInstance$2 () {
|
|
3421
3350
|
};
|
3422
3351
|
/**
|
3423
3352
|
* Updates the view's options.
|
3424
|
-
* @param options
|
3425
3353
|
*
|
3426
3354
|
* @example
|
3427
3355
|
* ```js
|
@@ -3462,7 +3390,6 @@ function requireInstance$2 () {
|
|
3462
3390
|
/**
|
3463
3391
|
* Retrieves the window the view is currently attached to.
|
3464
3392
|
*
|
3465
|
-
* @experimental
|
3466
3393
|
* @example
|
3467
3394
|
* ```js
|
3468
3395
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
@@ -3470,6 +3397,7 @@ function requireInstance$2 () {
|
|
3470
3397
|
* .then(win => console.log('current window', win))
|
3471
3398
|
* .catch(err => console.log(err));)
|
3472
3399
|
* ```
|
3400
|
+
* @experimental
|
3473
3401
|
*/
|
3474
3402
|
this.getCurrentWindow = async () => {
|
3475
3403
|
const { payload: { data } } = await this.wire.sendAction('get-view-window', { ...this.identity });
|
@@ -3575,10 +3503,6 @@ function requireInstance$2 () {
|
|
3575
3503
|
/**
|
3576
3504
|
* Focuses the view
|
3577
3505
|
*
|
3578
|
-
* @function focus
|
3579
|
-
* @memberof View
|
3580
|
-
* @emits focused
|
3581
|
-
* @instance
|
3582
3506
|
* @example
|
3583
3507
|
* ```js
|
3584
3508
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
@@ -4477,7 +4401,6 @@ function requireFactory$2 () {
|
|
4477
4401
|
class ApplicationModule extends base_1.Base {
|
4478
4402
|
/**
|
4479
4403
|
* Asynchronously returns an Application object that represents an existing application.
|
4480
|
-
* @param identity
|
4481
4404
|
*
|
4482
4405
|
* @example
|
4483
4406
|
*
|
@@ -4488,7 +4411,6 @@ function requireFactory$2 () {
|
|
4488
4411
|
* .catch(err => console.log(err));
|
4489
4412
|
* ```
|
4490
4413
|
*
|
4491
|
-
* @static
|
4492
4414
|
*/
|
4493
4415
|
async wrap(identity) {
|
4494
4416
|
this.wire.sendAction('wrap-application').catch((e) => {
|
@@ -4502,7 +4424,6 @@ function requireFactory$2 () {
|
|
4502
4424
|
}
|
4503
4425
|
/**
|
4504
4426
|
* Synchronously returns an Application object that represents an existing application.
|
4505
|
-
* @param identity
|
4506
4427
|
*
|
4507
4428
|
* @example
|
4508
4429
|
*
|
@@ -4511,7 +4432,6 @@ function requireFactory$2 () {
|
|
4511
4432
|
* await app.close();
|
4512
4433
|
* ```
|
4513
4434
|
*
|
4514
|
-
* @static
|
4515
4435
|
*/
|
4516
4436
|
wrapSync(identity) {
|
4517
4437
|
this.wire.sendAction('wrap-application-sync').catch((e) => {
|
@@ -4536,8 +4456,6 @@ function requireFactory$2 () {
|
|
4536
4456
|
}
|
4537
4457
|
/**
|
4538
4458
|
* DEPRECATED method to create a new Application. Use {@link Application.ApplicationModule.start Application.start} instead.
|
4539
|
-
* @param appOptions
|
4540
|
-
*
|
4541
4459
|
*
|
4542
4460
|
* @example
|
4543
4461
|
*
|
@@ -4566,7 +4484,6 @@ function requireFactory$2 () {
|
|
4566
4484
|
}
|
4567
4485
|
/**
|
4568
4486
|
* Creates and starts a new Application.
|
4569
|
-
* @param appOptions
|
4570
4487
|
*
|
4571
4488
|
* @example
|
4572
4489
|
*
|
@@ -4582,8 +4499,6 @@ function requireFactory$2 () {
|
|
4582
4499
|
* start().then(() => console.log('Application is running')).catch(err => console.log(err));
|
4583
4500
|
* ```
|
4584
4501
|
*
|
4585
|
-
*
|
4586
|
-
* @static
|
4587
4502
|
*/
|
4588
4503
|
async start(appOptions) {
|
4589
4504
|
this.wire.sendAction('start-application').catch((e) => {
|
@@ -4596,10 +4511,8 @@ function requireFactory$2 () {
|
|
4596
4511
|
/**
|
4597
4512
|
* Asynchronously starts a batch of applications given an array of application identifiers and manifestUrls.
|
4598
4513
|
* Returns once the RVM is finished attempting to launch the applications.
|
4599
|
-
* @param applications
|
4600
4514
|
* @param opts - Parameters that the RVM will use.
|
4601
4515
|
*
|
4602
|
-
* @static
|
4603
4516
|
* @example
|
4604
4517
|
*
|
4605
4518
|
* ```js
|
@@ -4651,8 +4564,6 @@ function requireFactory$2 () {
|
|
4651
4564
|
* });
|
4652
4565
|
*
|
4653
4566
|
* ```
|
4654
|
-
*
|
4655
|
-
* @static
|
4656
4567
|
*/
|
4657
4568
|
getCurrent() {
|
4658
4569
|
this.wire.sendAction('get-current-application').catch((e) => {
|
@@ -4678,8 +4589,6 @@ function requireFactory$2 () {
|
|
4678
4589
|
* });
|
4679
4590
|
*
|
4680
4591
|
* ```
|
4681
|
-
*
|
4682
|
-
* @static
|
4683
4592
|
*/
|
4684
4593
|
getCurrentSync() {
|
4685
4594
|
this.wire.sendAction('get-current-application-sync').catch((e) => {
|
@@ -4700,8 +4609,6 @@ function requireFactory$2 () {
|
|
4700
4609
|
* // For a local manifest file:
|
4701
4610
|
* fin.Application.startFromManifest('file:///C:/somefolder/app.json').then(app => console.log('App is running')).catch(err => console.log(err));
|
4702
4611
|
* ```
|
4703
|
-
*
|
4704
|
-
* @static
|
4705
4612
|
*/
|
4706
4613
|
async startFromManifest(manifestUrl, opts) {
|
4707
4614
|
this.wire.sendAction('application-start-from-manifest').catch((e) => {
|
@@ -6663,7 +6570,6 @@ function requireFactory$1 () {
|
|
6663
6570
|
class _WindowModule extends base_1.Base {
|
6664
6571
|
/**
|
6665
6572
|
* Asynchronously returns a Window object that represents an existing window.
|
6666
|
-
* @param identity
|
6667
6573
|
*
|
6668
6574
|
* @example
|
6669
6575
|
* ```js
|
@@ -6680,7 +6586,6 @@ function requireFactory$1 () {
|
|
6680
6586
|
* .then(win => console.log('wrapped window'))
|
6681
6587
|
* .catch(err => console.log(err));
|
6682
6588
|
* ```
|
6683
|
-
* @static
|
6684
6589
|
*/
|
6685
6590
|
async wrap(identity) {
|
6686
6591
|
this.wire.sendAction('window-wrap').catch((e) => {
|
@@ -6694,7 +6599,6 @@ function requireFactory$1 () {
|
|
6694
6599
|
}
|
6695
6600
|
/**
|
6696
6601
|
* Synchronously returns a Window object that represents an existing window.
|
6697
|
-
* @param identity
|
6698
6602
|
*
|
6699
6603
|
* @example
|
6700
6604
|
* ```js
|
@@ -6710,7 +6614,6 @@ function requireFactory$1 () {
|
|
6710
6614
|
* await createWin();
|
6711
6615
|
* let win = fin.Window.wrapSync({ uuid: 'app-1', name: 'myApp' });
|
6712
6616
|
* ```
|
6713
|
-
* @static
|
6714
6617
|
*/
|
6715
6618
|
wrapSync(identity) {
|
6716
6619
|
this.wire.sendAction('window-wrap-sync').catch((e) => {
|
@@ -6742,7 +6645,6 @@ function requireFactory$1 () {
|
|
6742
6645
|
*
|
6743
6646
|
* createWindow().then(() => console.log('Window is created')).catch(err => console.log(err));
|
6744
6647
|
* ```
|
6745
|
-
* @static
|
6746
6648
|
*/
|
6747
6649
|
create(options) {
|
6748
6650
|
this.wire.sendAction('create-window').catch((e) => {
|
@@ -6761,7 +6663,6 @@ function requireFactory$1 () {
|
|
6761
6663
|
* .catch(err => console.log(err));
|
6762
6664
|
*
|
6763
6665
|
* ```
|
6764
|
-
* @static
|
6765
6666
|
*/
|
6766
6667
|
getCurrent() {
|
6767
6668
|
this.wire.sendAction('get-current-window').catch((e) => {
|
@@ -6783,7 +6684,6 @@ function requireFactory$1 () {
|
|
6783
6684
|
* console.log(info);
|
6784
6685
|
*
|
6785
6686
|
* ```
|
6786
|
-
* @static
|
6787
6687
|
*/
|
6788
6688
|
getCurrentSync() {
|
6789
6689
|
this.wire.sendAction('get-current-window-sync').catch((e) => {
|
@@ -7157,7 +7057,6 @@ class System extends base_1$j.EmitterBase {
|
|
7157
7057
|
* ```js
|
7158
7058
|
* fin.System.getUniqueUserId().then(id => console.log(id)).catch(err => console.log(err));
|
7159
7059
|
* ```
|
7160
|
-
* @static
|
7161
7060
|
*/
|
7162
7061
|
getUniqueUserId() {
|
7163
7062
|
return this.wire.sendAction('get-unique-user-id').then(({ payload }) => payload.data);
|
@@ -8428,7 +8327,6 @@ class System extends base_1$j.EmitterBase {
|
|
8428
8327
|
* }
|
8429
8328
|
* });
|
8430
8329
|
* ```
|
8431
|
-
* @static
|
8432
8330
|
*/
|
8433
8331
|
async launchManifest(manifestUrl, opts = {}) {
|
8434
8332
|
const { subscribe, ..._sendOpts } = opts;
|
@@ -11435,7 +11333,6 @@ class ExternalApplicationModule extends base_1$b.Base {
|
|
11435
11333
|
* .then(extApp => console.log('wrapped external application'))
|
11436
11334
|
* .catch(err => console.log(err));
|
11437
11335
|
* ```
|
11438
|
-
* @static
|
11439
11336
|
*/
|
11440
11337
|
wrap(uuid) {
|
11441
11338
|
this.wire.sendAction('external-application-wrap').catch((e) => {
|
@@ -11455,7 +11352,6 @@ class ExternalApplicationModule extends base_1$b.Base {
|
|
11455
11352
|
* const info = await extApp.getInfo();
|
11456
11353
|
* console.log(info);
|
11457
11354
|
* ```
|
11458
|
-
* @static
|
11459
11355
|
*/
|
11460
11356
|
wrapSync(uuid) {
|
11461
11357
|
this.wire.sendAction('external-application-wrap-sync').catch((e) => {
|
@@ -11662,7 +11558,6 @@ class _FrameModule extends base_1$9.Base {
|
|
11662
11558
|
* .then(frm => console.log('wrapped frame'))
|
11663
11559
|
* .catch(err => console.log(err));
|
11664
11560
|
* ```
|
11665
|
-
* @static
|
11666
11561
|
*/
|
11667
11562
|
async wrap(identity) {
|
11668
11563
|
this.wire.sendAction('frame-wrap').catch((e) => {
|
@@ -11684,7 +11579,6 @@ class _FrameModule extends base_1$9.Base {
|
|
11684
11579
|
* const info = await frm.getInfo();
|
11685
11580
|
* console.log(info);
|
11686
11581
|
* ```
|
11687
|
-
* @static
|
11688
11582
|
*/
|
11689
11583
|
wrapSync(identity) {
|
11690
11584
|
this.wire.sendAction('frame-wrap-sync').catch((e) => {
|
@@ -11705,7 +11599,6 @@ class _FrameModule extends base_1$9.Base {
|
|
11705
11599
|
* .then(frm => console.log('current frame'))
|
11706
11600
|
* .catch(err => console.log(err));
|
11707
11601
|
* ```
|
11708
|
-
* @static
|
11709
11602
|
*/
|
11710
11603
|
getCurrent() {
|
11711
11604
|
this.wire.sendAction('frame-get-current').catch((e) => {
|
@@ -11722,7 +11615,6 @@ class _FrameModule extends base_1$9.Base {
|
|
11722
11615
|
* const info = await frm.getInfo();
|
11723
11616
|
* console.log(info);
|
11724
11617
|
* ```
|
11725
|
-
* @static
|
11726
11618
|
*/
|
11727
11619
|
getCurrentSync() {
|
11728
11620
|
this.wire.sendAction('frame-get-current-sync').catch((e) => {
|
@@ -13051,7 +12943,6 @@ class LayoutModule extends base_1$5.Base {
|
|
13051
12943
|
* // the window must have been created with a layout in its window options
|
13052
12944
|
* const layout = await fin.Platform.Layout.init({ containerId });
|
13053
12945
|
* ```
|
13054
|
-
* @static
|
13055
12946
|
*/
|
13056
12947
|
this.init = async (options = {}) => {
|
13057
12948
|
this.wire.sendAction('layout-init').catch((e) => {
|
@@ -13069,7 +12960,6 @@ class LayoutModule extends base_1$5.Base {
|
|
13069
12960
|
}
|
13070
12961
|
/**
|
13071
12962
|
* Asynchronously returns a Layout object that represents a Window's layout.
|
13072
|
-
* @param identity
|
13073
12963
|
*
|
13074
12964
|
* @example
|
13075
12965
|
* ```js
|
@@ -13086,9 +12976,7 @@ class LayoutModule extends base_1$5.Base {
|
|
13086
12976
|
* // Use wrapped instance to control layout, e.g.:
|
13087
12977
|
* const layoutConfig = await layout.getConfig();
|
13088
12978
|
* ```
|
13089
|
-
* @static
|
13090
12979
|
*/
|
13091
|
-
// eslint-disable-next-line class-methods-use-this
|
13092
12980
|
async wrap(identity) {
|
13093
12981
|
this.wire.sendAction('layout-wrap').catch((e) => {
|
13094
12982
|
// don't expose
|
@@ -13097,7 +12985,6 @@ class LayoutModule extends base_1$5.Base {
|
|
13097
12985
|
}
|
13098
12986
|
/**
|
13099
12987
|
* Synchronously returns a Layout object that represents a Window's layout.
|
13100
|
-
* @param identity
|
13101
12988
|
*
|
13102
12989
|
* @example
|
13103
12990
|
* ```js
|
@@ -13114,9 +13001,7 @@ class LayoutModule extends base_1$5.Base {
|
|
13114
13001
|
* // Use wrapped instance to control layout, e.g.:
|
13115
13002
|
* const layoutConfig = await layout.getConfig();
|
13116
13003
|
* ```
|
13117
|
-
* @static
|
13118
13004
|
*/
|
13119
|
-
// eslint-disable-next-line class-methods-use-this
|
13120
13005
|
wrapSync(identity) {
|
13121
13006
|
this.wire.sendAction('layout-wrap-sync').catch((e) => {
|
13122
13007
|
// don't expose
|
@@ -13132,7 +13017,6 @@ class LayoutModule extends base_1$5.Base {
|
|
13132
13017
|
* // Use wrapped instance to control layout, e.g.:
|
13133
13018
|
* const layoutConfig = await layout.getConfig();
|
13134
13019
|
* ```
|
13135
|
-
* @static
|
13136
13020
|
*/
|
13137
13021
|
async getCurrent() {
|
13138
13022
|
this.wire.sendAction('layout-get-current').catch((e) => {
|
@@ -13156,7 +13040,6 @@ class LayoutModule extends base_1$5.Base {
|
|
13156
13040
|
* // Use wrapped instance to control layout, e.g.:
|
13157
13041
|
* const layoutConfig = await layout.getConfig();
|
13158
13042
|
* ```
|
13159
|
-
* @static
|
13160
13043
|
*/
|
13161
13044
|
getCurrentSync() {
|
13162
13045
|
this.wire.sendAction('layout-get-current-sync').catch((e) => {
|
@@ -13397,14 +13280,12 @@ class PlatformModule extends base_1$4.Base {
|
|
13397
13280
|
* fin.Platform.init({overrideCallback});
|
13398
13281
|
* ```
|
13399
13282
|
* @experimental
|
13400
|
-
* @static
|
13401
13283
|
*/
|
13402
13284
|
async init(options) {
|
13403
13285
|
return this.wire.environment.initPlatform(this.fin, options);
|
13404
13286
|
}
|
13405
13287
|
/**
|
13406
13288
|
* Asynchronously returns a Platform object that represents an existing platform.
|
13407
|
-
* @param identity
|
13408
13289
|
*
|
13409
13290
|
* @example
|
13410
13291
|
* ```js
|
@@ -13413,7 +13294,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13413
13294
|
* // Use wrapped instance to control layout, e.g.:
|
13414
13295
|
* const snapshot = await platform.getSnapshot();
|
13415
13296
|
* ```
|
13416
|
-
* @static
|
13417
13297
|
*/
|
13418
13298
|
async wrap(identity) {
|
13419
13299
|
this.wire.sendAction('platform-wrap').catch((e) => {
|
@@ -13423,7 +13303,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13423
13303
|
}
|
13424
13304
|
/**
|
13425
13305
|
* Synchronously returns a Platform object that represents an existing platform.
|
13426
|
-
* @param identity
|
13427
13306
|
*
|
13428
13307
|
* @example
|
13429
13308
|
* ```js
|
@@ -13432,7 +13311,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13432
13311
|
* // Use wrapped instance to control layout, e.g.:
|
13433
13312
|
* const snapshot = await platform.getSnapshot();
|
13434
13313
|
* ```
|
13435
|
-
* @static
|
13436
13314
|
*/
|
13437
13315
|
wrapSync(identity) {
|
13438
13316
|
this.wire.sendAction('platform-wrap-sync').catch((e) => {
|
@@ -13449,7 +13327,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13449
13327
|
* // Use wrapped instance to control layout, e.g.:
|
13450
13328
|
* const snapshot = await platform.getSnapshot();
|
13451
13329
|
* ```
|
13452
|
-
* @static
|
13453
13330
|
*/
|
13454
13331
|
async getCurrent() {
|
13455
13332
|
this.wire.sendAction('platform-get-current').catch((e) => {
|
@@ -13466,7 +13343,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13466
13343
|
* // Use wrapped instance to control layout, e.g.:
|
13467
13344
|
* const snapshot = await platform.getSnapshot();
|
13468
13345
|
* ```
|
13469
|
-
* @static
|
13470
13346
|
*/
|
13471
13347
|
getCurrentSync() {
|
13472
13348
|
this.wire.sendAction('platform-get-current-sync').catch((e) => {
|
@@ -13477,7 +13353,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13477
13353
|
/**
|
13478
13354
|
* Creates and starts a Platform and returns a wrapped and running Platform instance. The wrapped Platform methods can
|
13479
13355
|
* be used to launch content into the platform. Promise will reject if the platform is already running.
|
13480
|
-
* @param platformOptions
|
13481
13356
|
*
|
13482
13357
|
* @example
|
13483
13358
|
* ```js
|
@@ -13498,7 +13373,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13498
13373
|
* console.error(e);
|
13499
13374
|
* }
|
13500
13375
|
* ```
|
13501
|
-
* @static
|
13502
13376
|
*/
|
13503
13377
|
start(platformOptions) {
|
13504
13378
|
this.wire.sendAction('platform-start').catch((e) => {
|
@@ -13543,7 +13417,6 @@ class PlatformModule extends base_1$4.Base {
|
|
13543
13417
|
* console.error(e);
|
13544
13418
|
* }
|
13545
13419
|
* ```
|
13546
|
-
* @static
|
13547
13420
|
*/
|
13548
13421
|
startFromManifest(manifestUrl, opts) {
|
13549
13422
|
this.wire.sendAction('platform-start-from-manifest').catch((e) => {
|
@@ -16354,46 +16227,39 @@ class InteropClient extends base_1$2.Base {
|
|
16354
16227
|
InteropClient$1.InteropClient = InteropClient;
|
16355
16228
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
16356
16229
|
|
16357
|
-
var overrideCheck = {};
|
16358
|
-
|
16359
|
-
var hasRequiredOverrideCheck;
|
16230
|
+
var overrideCheck$1 = {};
|
16360
16231
|
|
16361
|
-
|
16362
|
-
|
16363
|
-
|
16364
|
-
|
16365
|
-
|
16366
|
-
|
16367
|
-
|
16368
|
-
|
16369
|
-
|
16370
|
-
|
16371
|
-
|
16372
|
-
|
16373
|
-
|
16374
|
-
|
16375
|
-
|
16376
|
-
|
16377
|
-
|
16378
|
-
|
16379
|
-
|
16380
|
-
|
16381
|
-
|
16382
|
-
|
16383
|
-
|
16384
|
-
|
16385
|
-
|
16386
|
-
|
16387
|
-
|
16388
|
-
|
16389
|
-
|
16390
|
-
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
16391
|
-
}
|
16392
|
-
}
|
16393
|
-
}
|
16394
|
-
overrideCheck.overrideCheck = overrideCheck$1;
|
16395
|
-
return overrideCheck;
|
16232
|
+
Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
|
16233
|
+
overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
16234
|
+
const InteropBroker_1 = requireInteropBroker();
|
16235
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
16236
|
+
var _a, _b, _c, _d;
|
16237
|
+
const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
|
16238
|
+
return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
|
16239
|
+
}
|
16240
|
+
overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
16241
|
+
// TODO: Unit test this
|
16242
|
+
function overrideCheck(overriddenBroker, fdc3InteropApi) {
|
16243
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
16244
|
+
const mustOverrideAPIs = [
|
16245
|
+
'fdc3HandleFindInstances',
|
16246
|
+
'handleInfoForIntent',
|
16247
|
+
'handleInfoForIntentsByContext',
|
16248
|
+
'fdc3HandleGetAppMetadata',
|
16249
|
+
'fdc3HandleGetInfo',
|
16250
|
+
'fdc3HandleOpen',
|
16251
|
+
'handleFiredIntent',
|
16252
|
+
'handleFiredIntentForContext'
|
16253
|
+
];
|
16254
|
+
const notOverridden = mustOverrideAPIs.filter((api) => {
|
16255
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
16256
|
+
});
|
16257
|
+
if (notOverridden.length > 0) {
|
16258
|
+
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
16259
|
+
}
|
16260
|
+
}
|
16396
16261
|
}
|
16262
|
+
overrideCheck$1.overrideCheck = overrideCheck;
|
16397
16263
|
|
16398
16264
|
var hasRequiredFactory;
|
16399
16265
|
|
@@ -16407,7 +16273,7 @@ function requireFactory () {
|
|
16407
16273
|
const base_1 = base;
|
16408
16274
|
const InteropBroker_1 = requireInteropBroker();
|
16409
16275
|
const InteropClient_1 = InteropClient$1;
|
16410
|
-
const overrideCheck_1 =
|
16276
|
+
const overrideCheck_1 = overrideCheck$1;
|
16411
16277
|
const common_utils_1 = commonUtils;
|
16412
16278
|
const defaultOverride = (Class) => new Class();
|
16413
16279
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|
@@ -16438,7 +16304,6 @@ function requireFactory () {
|
|
16438
16304
|
* const contextGroups = await interopBroker.getContextGroups();
|
16439
16305
|
* console.log(contextGroups);
|
16440
16306
|
* ```
|
16441
|
-
* @static
|
16442
16307
|
*/
|
16443
16308
|
async init(name, override = defaultOverride) {
|
16444
16309
|
var _a;
|
@@ -16496,7 +16361,6 @@ function requireFactory () {
|
|
16496
16361
|
* const contextGroupInfo = await client.getInfoForContextGroup();
|
16497
16362
|
* console.log(contextGroupInfo);
|
16498
16363
|
* ```
|
16499
|
-
* @static
|
16500
16364
|
*/
|
16501
16365
|
connectSync(name, interopConfig) {
|
16502
16366
|
this.wire.sendAction('interop-connect-sync').catch(() => {
|
@@ -16721,7 +16585,6 @@ const utils_1 = utils;
|
|
16721
16585
|
class SnapshotSourceModule extends base_1.Base {
|
16722
16586
|
/**
|
16723
16587
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
16724
|
-
* @param provider
|
16725
16588
|
*
|
16726
16589
|
* @example
|
16727
16590
|
* ```js
|
@@ -16738,7 +16601,6 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16738
16601
|
*
|
16739
16602
|
* await fin.SnapshotSource.init(snapshotProvider);
|
16740
16603
|
* ```
|
16741
|
-
* @static
|
16742
16604
|
*/
|
16743
16605
|
async init(provider) {
|
16744
16606
|
this.wire.sendAction('snapshot-source-init').catch((e) => {
|
@@ -16758,7 +16620,6 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16758
16620
|
}
|
16759
16621
|
/**
|
16760
16622
|
* Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
16761
|
-
* @param identity
|
16762
16623
|
*
|
16763
16624
|
* @example
|
16764
16625
|
* ```js
|
@@ -16766,7 +16627,6 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16766
16627
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
16767
16628
|
* const snapshot = await snapshotSource.getSnapshot();
|
16768
16629
|
* ```
|
16769
|
-
* @static
|
16770
16630
|
*/
|
16771
16631
|
wrapSync(identity) {
|
16772
16632
|
this.wire.sendAction('snapshot-source-wrap-sync').catch((e) => {
|
@@ -16776,7 +16636,6 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16776
16636
|
}
|
16777
16637
|
/**
|
16778
16638
|
* Asynchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
16779
|
-
* @param identity
|
16780
16639
|
*
|
16781
16640
|
* @example
|
16782
16641
|
* ```js
|
@@ -16784,7 +16643,6 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16784
16643
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
16785
16644
|
* const snapshot = await snapshotSource.getSnapshot();
|
16786
16645
|
* ```
|
16787
|
-
* @static
|
16788
16646
|
*/
|
16789
16647
|
async wrap(identity) {
|
16790
16648
|
this.wire.sendAction('snapshot-source-wrap').catch((e) => {
|