@openfin/remote-adapter 38.83.90 → 39.81.3
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/README.md +10 -0
- package/out/remote-adapter.js +47 -161
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,3 +49,13 @@ fin.me.interop = fin.Interop.connectSync('<HOST_APP_UUID>', {});
|
|
|
49
49
|
// Get an instance of fdc3 from using the getFDC3Sync api.
|
|
50
50
|
const fdc3 = fin.me.interop.getFDC3Sync('2.0');
|
|
51
51
|
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
Copyright 2020-2023 OpenFin
|
|
56
|
+
|
|
57
|
+
The code in this package is distributed under the Apache License, Version 2.0.
|
|
58
|
+
|
|
59
|
+
However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin's Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or email us at support@openfin.co with questions.
|
|
60
|
+
|
|
61
|
+
- [Developer agreement](https://openfin.co/developer-agreement/)
|
package/out/remote-adapter.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var require$$
|
|
4
|
-
var require$$
|
|
5
|
-
var require$$0$1 = require('events');
|
|
3
|
+
var require$$3 = require('lodash');
|
|
4
|
+
var require$$0 = require('events');
|
|
6
5
|
var bridge = require('./bridge-ef11968f.js');
|
|
7
6
|
var crypto = require('crypto');
|
|
8
7
|
var backchannel = require('./backchannel.js');
|
|
@@ -529,32 +528,9 @@ var utils$2 = {};
|
|
|
529
528
|
|
|
530
529
|
var PrivateChannelClient$1 = {};
|
|
531
530
|
|
|
532
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
533
|
-
if (k2 === undefined) k2 = k;
|
|
534
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
535
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
536
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
537
|
-
}
|
|
538
|
-
Object.defineProperty(o, k2, desc);
|
|
539
|
-
}) : (function(o, m, k, k2) {
|
|
540
|
-
if (k2 === undefined) k2 = k;
|
|
541
|
-
o[k2] = m[k];
|
|
542
|
-
}));
|
|
543
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
544
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
545
|
-
}) : function(o, v) {
|
|
546
|
-
o["default"] = v;
|
|
547
|
-
});
|
|
548
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
549
|
-
if (mod && mod.__esModule) return mod;
|
|
550
|
-
var result = {};
|
|
551
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
552
|
-
__setModuleDefault(result, mod);
|
|
553
|
-
return result;
|
|
554
|
-
};
|
|
555
531
|
Object.defineProperty(PrivateChannelClient$1, "__esModule", { value: true });
|
|
556
532
|
PrivateChannelClient$1.PrivateChannelClient = void 0;
|
|
557
|
-
const utils$1 =
|
|
533
|
+
const utils$1 = utils$3;
|
|
558
534
|
class PrivateChannelClient {
|
|
559
535
|
constructor(client, id) {
|
|
560
536
|
this.id = id;
|
|
@@ -643,14 +619,11 @@ class PrivateChannelClient {
|
|
|
643
619
|
PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
644
620
|
|
|
645
621
|
(function (exports) {
|
|
646
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
647
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
648
|
-
};
|
|
649
622
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
650
623
|
exports.getIntentResolution = exports.isChannel = exports.isContext = exports.connectPrivateChannel = exports.buildAppChannelObject = exports.buildPrivateChannelObject = exports.ChannelError = exports.ResultError = exports.UnsupportedChannelApiError = exports.getUnsupportedChannelApis = void 0;
|
|
651
624
|
const utils_1 = utils$3;
|
|
652
625
|
const PrivateChannelClient_1 = PrivateChannelClient$1;
|
|
653
|
-
const
|
|
626
|
+
const lodash_1 = require$$3;
|
|
654
627
|
const getUnsupportedChannelApis = (channelType) => {
|
|
655
628
|
return {
|
|
656
629
|
addContextListener: () => {
|
|
@@ -778,7 +751,7 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
|
778
751
|
const wrappedHandler = (context, contextMetadata) => {
|
|
779
752
|
if (first) {
|
|
780
753
|
first = false;
|
|
781
|
-
if ((0,
|
|
754
|
+
if ((0, lodash_1.isEqual)(currentContext, context)) {
|
|
782
755
|
return;
|
|
783
756
|
}
|
|
784
757
|
}
|
|
@@ -900,16 +873,13 @@ function requireFdc3Common () {
|
|
|
900
873
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
901
874
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
902
875
|
};
|
|
903
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
904
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
905
|
-
};
|
|
906
876
|
var _FDC3ModuleBase_producer;
|
|
907
877
|
Object.defineProperty(fdc3Common, "__esModule", { value: true });
|
|
908
878
|
fdc3Common.FDC3ModuleBase = void 0;
|
|
909
879
|
const utils_1 = utils$2;
|
|
910
880
|
const utils_2 = utils$3;
|
|
911
881
|
const InteropClient_1 = requireInteropClient();
|
|
912
|
-
const
|
|
882
|
+
const lodash_1 = require$$3;
|
|
913
883
|
class FDC3ModuleBase {
|
|
914
884
|
get client() {
|
|
915
885
|
return __classPrivateFieldGet(this, _FDC3ModuleBase_producer, "f").call(this);
|
|
@@ -1098,7 +1068,7 @@ function requireFdc3Common () {
|
|
|
1098
1068
|
const wrappedHandler = (context, contextMetadata) => {
|
|
1099
1069
|
if (first) {
|
|
1100
1070
|
first = false;
|
|
1101
|
-
if ((0,
|
|
1071
|
+
if ((0, lodash_1.isEqual)(currentContext, context)) {
|
|
1102
1072
|
return;
|
|
1103
1073
|
}
|
|
1104
1074
|
}
|
|
@@ -1330,11 +1300,14 @@ function requireFdc31_2 () {
|
|
|
1330
1300
|
this.wire.sendAction('fdc3-get-info').catch((e) => {
|
|
1331
1301
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
1332
1302
|
});
|
|
1333
|
-
|
|
1303
|
+
// @ts-expect-error
|
|
1304
|
+
const { uuid, fdc3InteropApi } = fin.__internal_.initialOptions;
|
|
1305
|
+
// @ts-expect-error
|
|
1306
|
+
const runtimeVersion = fin.desktop.getVersion();
|
|
1334
1307
|
return {
|
|
1335
|
-
|
|
1336
|
-
provider: `openfin-${
|
|
1337
|
-
|
|
1308
|
+
fdc3Version: fdc3InteropApi,
|
|
1309
|
+
provider: `openfin-${uuid}`,
|
|
1310
|
+
providerVersion: runtimeVersion
|
|
1338
1311
|
};
|
|
1339
1312
|
}
|
|
1340
1313
|
}
|
|
@@ -1711,14 +1684,11 @@ function requireInteropClient () {
|
|
|
1711
1684
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1712
1685
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1713
1686
|
};
|
|
1714
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
1715
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1716
|
-
};
|
|
1717
1687
|
var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
|
|
1718
1688
|
Object.defineProperty(InteropClient, "__esModule", { value: true });
|
|
1719
1689
|
InteropClient.InteropClient = void 0;
|
|
1720
1690
|
const base_1 = base;
|
|
1721
|
-
const SessionContextGroupClient_1 =
|
|
1691
|
+
const SessionContextGroupClient_1 = SessionContextGroupClient$1;
|
|
1722
1692
|
const fdc3_1_2_1 = requireFdc31_2();
|
|
1723
1693
|
const fdc3_2_0_1 = requireFdc32_0();
|
|
1724
1694
|
const utils_1 = utils$3;
|
|
@@ -2336,12 +2306,9 @@ var hasRequiredFactory$3;
|
|
|
2336
2306
|
function requireFactory$3 () {
|
|
2337
2307
|
if (hasRequiredFactory$3) return Factory$8;
|
|
2338
2308
|
hasRequiredFactory$3 = 1;
|
|
2339
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2340
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2341
|
-
};
|
|
2342
2309
|
Object.defineProperty(Factory$8, "__esModule", { value: true });
|
|
2343
2310
|
Factory$8.InteropModule = void 0;
|
|
2344
|
-
const
|
|
2311
|
+
const lodash_1 = require$$3;
|
|
2345
2312
|
const inaccessibleObject_1 = inaccessibleObject;
|
|
2346
2313
|
const base_1 = base;
|
|
2347
2314
|
const InteropBroker_1 = requireInteropBroker();
|
|
@@ -2378,7 +2345,7 @@ function requireFactory$3 () {
|
|
|
2378
2345
|
// Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
|
|
2379
2346
|
const options = await this.wire.environment.getInteropInfo(this.wire.getFin());
|
|
2380
2347
|
const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
|
|
2381
|
-
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0,
|
|
2348
|
+
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, lodash_1.cloneDeep)(options));
|
|
2382
2349
|
const getProvider = () => {
|
|
2383
2350
|
return this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`);
|
|
2384
2351
|
};
|
|
@@ -2944,16 +2911,13 @@ function requireInteropBroker () {
|
|
|
2944
2911
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2945
2912
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2946
2913
|
};
|
|
2947
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2948
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2949
|
-
};
|
|
2950
2914
|
var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
|
|
2951
2915
|
Object.defineProperty(InteropBroker, "__esModule", { value: true });
|
|
2952
2916
|
InteropBroker.InteropBroker = void 0;
|
|
2953
2917
|
const base_1 = base;
|
|
2954
|
-
const SessionContextGroupBroker_1 =
|
|
2918
|
+
const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
|
|
2955
2919
|
const utils_1 = utils$3;
|
|
2956
|
-
const
|
|
2920
|
+
const lodash_1 = require$$3;
|
|
2957
2921
|
const PrivateChannelProvider_1 = requirePrivateChannelProvider();
|
|
2958
2922
|
const lazy_1 = lazy;
|
|
2959
2923
|
const defaultContextGroups = [
|
|
@@ -3151,7 +3115,7 @@ function requireInteropBroker () {
|
|
|
3151
3115
|
constructor(...unused) {
|
|
3152
3116
|
if (unused.length) {
|
|
3153
3117
|
const [_ignore1, ignore2, opts] = unused;
|
|
3154
|
-
if (opts && typeof opts === 'object' && !(0,
|
|
3118
|
+
if (opts && typeof opts === 'object' && !(0, lodash_1.isEqual)(opts, args[2])) {
|
|
3155
3119
|
// eslint-disable-next-line no-console
|
|
3156
3120
|
console.warn('You have modified the parameters of the InteropOverride constructor. This behavior is deprecated and will be removed in a future version. You can modify these options in your manifest. Please consult our Interop docs for guidance on migrating to the new override scheme.');
|
|
3157
3121
|
super(args[0], args[1], opts);
|
|
@@ -4306,10 +4270,6 @@ class BrowserEnvironment extends base_env_1.BaseEnvironment {
|
|
|
4306
4270
|
return window.crypto.getRandomValues(intArray)[0].toString(32);
|
|
4307
4271
|
};
|
|
4308
4272
|
}
|
|
4309
|
-
getAdapterVersionSync() {
|
|
4310
|
-
// Since this is a sync method returning an empty string is safer than throwing.
|
|
4311
|
-
return '';
|
|
4312
|
-
}
|
|
4313
4273
|
observeBounds(element, onChange) {
|
|
4314
4274
|
throw new Error('Method not implemented.');
|
|
4315
4275
|
}
|
|
@@ -4506,7 +4466,7 @@ var emitterMap = {};
|
|
|
4506
4466
|
|
|
4507
4467
|
Object.defineProperty(emitterMap, "__esModule", { value: true });
|
|
4508
4468
|
emitterMap.EmitterMap = void 0;
|
|
4509
|
-
const events_1$6 = require$$0
|
|
4469
|
+
const events_1$6 = require$$0;
|
|
4510
4470
|
class EmitterMap {
|
|
4511
4471
|
constructor() {
|
|
4512
4472
|
this.storage = new Map();
|
|
@@ -4683,9 +4643,7 @@ function requireFactory$2 () {
|
|
|
4683
4643
|
* @experimental
|
|
4684
4644
|
*/
|
|
4685
4645
|
async wrap(identity) {
|
|
4686
|
-
this.wire.sendAction('view-wrap')
|
|
4687
|
-
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
4688
|
-
});
|
|
4646
|
+
this.wire.sendAction('view-wrap');
|
|
4689
4647
|
const errorMsg = (0, validate_1.validateIdentity)(identity);
|
|
4690
4648
|
if (errorMsg) {
|
|
4691
4649
|
throw new Error(errorMsg);
|
|
@@ -6073,7 +6031,7 @@ class WebContents extends base_1$i.EmitterBase {
|
|
|
6073
6031
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
|
6074
6032
|
* });
|
|
6075
6033
|
*
|
|
6076
|
-
* await view.navigate('
|
|
6034
|
+
* await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
|
|
6077
6035
|
*
|
|
6078
6036
|
* const sharedWorkers = await view.getSharedWorkers();
|
|
6079
6037
|
* ```
|
|
@@ -6084,7 +6042,7 @@ class WebContents extends base_1$i.EmitterBase {
|
|
|
6084
6042
|
* name:'child',
|
|
6085
6043
|
* defaultWidth: 300,
|
|
6086
6044
|
* defaultHeight: 300,
|
|
6087
|
-
* url: '
|
|
6045
|
+
* url: 'http://mdn.github.io/simple-shared-worker/index2.html',
|
|
6088
6046
|
* frame: true,
|
|
6089
6047
|
* autoShow: true
|
|
6090
6048
|
* };
|
|
@@ -6111,7 +6069,7 @@ class WebContents extends base_1$i.EmitterBase {
|
|
|
6111
6069
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
|
6112
6070
|
* });
|
|
6113
6071
|
*
|
|
6114
|
-
* await view.navigate('
|
|
6072
|
+
* await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
|
|
6115
6073
|
*
|
|
6116
6074
|
* await view.inspectSharedWorker();
|
|
6117
6075
|
* ```
|
|
@@ -6122,7 +6080,7 @@ class WebContents extends base_1$i.EmitterBase {
|
|
|
6122
6080
|
* name:'child',
|
|
6123
6081
|
* defaultWidth: 300,
|
|
6124
6082
|
* defaultHeight: 300,
|
|
6125
|
-
* url: '
|
|
6083
|
+
* url: 'http://mdn.github.io/simple-shared-worker/index2.html',
|
|
6126
6084
|
* frame: true,
|
|
6127
6085
|
* autoShow: true
|
|
6128
6086
|
* };
|
|
@@ -6150,7 +6108,7 @@ class WebContents extends base_1$i.EmitterBase {
|
|
|
6150
6108
|
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
|
6151
6109
|
* });
|
|
6152
6110
|
*
|
|
6153
|
-
* await view.navigate('
|
|
6111
|
+
* await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
|
|
6154
6112
|
*
|
|
6155
6113
|
* const sharedWorkers = await view.getSharedWorkers();
|
|
6156
6114
|
* await view.inspectSharedWorkerById(sharedWorkers[0].id);
|
|
@@ -6162,7 +6120,7 @@ class WebContents extends base_1$i.EmitterBase {
|
|
|
6162
6120
|
* name:'child',
|
|
6163
6121
|
* defaultWidth: 300,
|
|
6164
6122
|
* defaultHeight: 300,
|
|
6165
|
-
* url: '
|
|
6123
|
+
* url: 'http://mdn.github.io/simple-shared-worker/index2.html',
|
|
6166
6124
|
* frame: true,
|
|
6167
6125
|
* autoShow: true
|
|
6168
6126
|
* };
|
|
@@ -8155,7 +8113,7 @@ function requireInstance$1 () {
|
|
|
8155
8113
|
// don't expose
|
|
8156
8114
|
});
|
|
8157
8115
|
const opts = await this.getOptions();
|
|
8158
|
-
if (!opts.layout
|
|
8116
|
+
if (!opts.layout || !opts.layoutSnapshot) {
|
|
8159
8117
|
throw new Error('Window does not have a Layout');
|
|
8160
8118
|
}
|
|
8161
8119
|
return this.fin.Platform.Layout.wrap(layoutIdentity ?? this.identity);
|
|
@@ -9295,8 +9253,6 @@ function requireInstance () {
|
|
|
9295
9253
|
* left: 100,
|
|
9296
9254
|
* width: 300,
|
|
9297
9255
|
* height: 300
|
|
9298
|
-
* }, {
|
|
9299
|
-
* bringToFront : true
|
|
9300
9256
|
* });
|
|
9301
9257
|
* }
|
|
9302
9258
|
*
|
|
@@ -9306,18 +9262,8 @@ function requireInstance () {
|
|
|
9306
9262
|
* ```
|
|
9307
9263
|
* @experimental
|
|
9308
9264
|
*/
|
|
9309
|
-
this.showAt = async (bounds
|
|
9310
|
-
await this.wire.sendAction('show-view-at', { bounds, ...this.identity
|
|
9311
|
-
};
|
|
9312
|
-
/**
|
|
9313
|
-
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
|
9314
|
-
* which have overlapping bounds with it.
|
|
9315
|
-
*
|
|
9316
|
-
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
|
9317
|
-
* in the window that share bounds with it.
|
|
9318
|
-
*/
|
|
9319
|
-
this.bringToFront = async () => {
|
|
9320
|
-
await this.wire.sendAction('bring-view-to-front', { ...this.identity });
|
|
9265
|
+
this.showAt = async (bounds) => {
|
|
9266
|
+
await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
|
|
9321
9267
|
};
|
|
9322
9268
|
/**
|
|
9323
9269
|
* Hides the current view if it is currently visible.
|
|
@@ -9479,14 +9425,9 @@ function requireInstance () {
|
|
|
9479
9425
|
// don't expose
|
|
9480
9426
|
});
|
|
9481
9427
|
const layoutWindow = await this.getCurrentWindow();
|
|
9482
|
-
let layoutWindowIdentity = layoutWindow.identity;
|
|
9483
|
-
// TODO: CORE-1857 - when we tearout active layout or drag a view out of a window, the above identity includes the whole window info.
|
|
9484
|
-
if (layoutWindowIdentity.identity) {
|
|
9485
|
-
layoutWindowIdentity = layoutWindowIdentity.identity;
|
|
9486
|
-
}
|
|
9487
9428
|
try {
|
|
9488
9429
|
const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
|
|
9489
|
-
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID,
|
|
9430
|
+
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
|
|
9490
9431
|
const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
|
|
9491
9432
|
return this.fin.Platform.Layout.wrap(layoutIdentity);
|
|
9492
9433
|
}
|
|
@@ -9499,7 +9440,7 @@ function requireInstance () {
|
|
|
9499
9440
|
throw e;
|
|
9500
9441
|
}
|
|
9501
9442
|
// fallback logic for missing endpoint
|
|
9502
|
-
return this.fin.Platform.Layout.wrap(
|
|
9443
|
+
return this.fin.Platform.Layout.wrap(layoutWindow.identity);
|
|
9503
9444
|
}
|
|
9504
9445
|
};
|
|
9505
9446
|
/**
|
|
@@ -10237,16 +10178,13 @@ var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
10237
10178
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10238
10179
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
10239
10180
|
};
|
|
10240
|
-
var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10241
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10242
|
-
};
|
|
10243
10181
|
var _Transport_wire, _Transport_fin;
|
|
10244
10182
|
Object.defineProperty(transport, "__esModule", { value: true });
|
|
10245
10183
|
var Transport_1 = transport.Transport = void 0;
|
|
10246
|
-
const events_1$5 = require$$0
|
|
10184
|
+
const events_1$5 = require$$0;
|
|
10247
10185
|
const wire_1 = wire;
|
|
10248
10186
|
const transport_errors_1$2 = transportErrors;
|
|
10249
|
-
const eventAggregator_1 =
|
|
10187
|
+
const eventAggregator_1 = eventAggregator;
|
|
10250
10188
|
const me_1$1 = me;
|
|
10251
10189
|
const errors_1$1 = errors;
|
|
10252
10190
|
class Transport extends events_1$5.EventEmitter {
|
|
@@ -10460,7 +10398,7 @@ _Transport_wire = new WeakMap(), _Transport_fin = new WeakMap();
|
|
|
10460
10398
|
var websocket = {};
|
|
10461
10399
|
|
|
10462
10400
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
|
10463
|
-
const events_1$4 = require$$0
|
|
10401
|
+
const events_1$4 = require$$0;
|
|
10464
10402
|
const transport_errors_1$1 = transportErrors;
|
|
10465
10403
|
const messageReceiver_1 = bridge.messageReceiver;
|
|
10466
10404
|
/* `READY_STATE` is an instance var set by `constructor` to reference the `WebTransportSocket.READY_STATE` enum.
|
|
@@ -10537,7 +10475,7 @@ system.System = void 0;
|
|
|
10537
10475
|
const base_1$d = base;
|
|
10538
10476
|
const transport_errors_1 = transportErrors;
|
|
10539
10477
|
const window_1 = requireWindow();
|
|
10540
|
-
const events_1$3 = require$$0
|
|
10478
|
+
const events_1$3 = require$$0;
|
|
10541
10479
|
/**
|
|
10542
10480
|
* An object representing the core of OpenFin Runtime. Allows the developer
|
|
10543
10481
|
* to perform system-level actions, such as accessing logs, viewing processes,
|
|
@@ -10819,9 +10757,7 @@ class System extends base_1$d.EmitterBase {
|
|
|
10819
10757
|
.then(({ payload }) => payload.data);
|
|
10820
10758
|
}
|
|
10821
10759
|
/**
|
|
10822
|
-
* Get
|
|
10823
|
-
* If a View currently has focus, returns the identity of View's parent Window.
|
|
10824
|
-
* Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
|
|
10760
|
+
* Get current focused window.
|
|
10825
10761
|
*
|
|
10826
10762
|
* @example
|
|
10827
10763
|
* ```js
|
|
@@ -10831,17 +10767,6 @@ class System extends base_1$d.EmitterBase {
|
|
|
10831
10767
|
getFocusedWindow() {
|
|
10832
10768
|
return this.wire.sendAction('get-focused-window').then(({ payload }) => payload.data);
|
|
10833
10769
|
}
|
|
10834
|
-
/**
|
|
10835
|
-
* Get currently focused content. Returns identity of entity with `entityType`.
|
|
10836
|
-
*
|
|
10837
|
-
* @example
|
|
10838
|
-
* ```js
|
|
10839
|
-
* fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
|
|
10840
|
-
* ```
|
|
10841
|
-
*/
|
|
10842
|
-
getFocusedContent() {
|
|
10843
|
-
return this.wire.sendAction('get-focused-content').then(({ payload }) => payload.data);
|
|
10844
|
-
}
|
|
10845
10770
|
/**
|
|
10846
10771
|
* Returns information about the given app's certification status
|
|
10847
10772
|
*
|
|
@@ -11034,8 +10959,7 @@ class System extends base_1$d.EmitterBase {
|
|
|
11034
10959
|
return this.wire.sendAction('get-rvm-info').then(({ payload }) => payload.data);
|
|
11035
10960
|
}
|
|
11036
10961
|
/**
|
|
11037
|
-
* Retrieves
|
|
11038
|
-
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
|
10962
|
+
* Retrieves system information.
|
|
11039
10963
|
*
|
|
11040
10964
|
* @example
|
|
11041
10965
|
* ```js
|
|
@@ -11045,17 +10969,6 @@ class System extends base_1$d.EmitterBase {
|
|
|
11045
10969
|
getHostSpecs() {
|
|
11046
10970
|
return this.wire.sendAction('get-host-specs').then(({ payload }) => payload.data);
|
|
11047
10971
|
}
|
|
11048
|
-
/**
|
|
11049
|
-
* Retrieves information about the OS and the currently logged in user.
|
|
11050
|
-
*
|
|
11051
|
-
* @example
|
|
11052
|
-
* ```js
|
|
11053
|
-
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
|
11054
|
-
* ```
|
|
11055
|
-
*/
|
|
11056
|
-
getOSInfo() {
|
|
11057
|
-
return this.wire.sendAction('get-os-info').then(({ payload }) => payload.data);
|
|
11058
|
-
}
|
|
11059
10972
|
/**
|
|
11060
10973
|
* Runs an executable or batch file. A path to the file must be included in options.
|
|
11061
10974
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
|
@@ -12405,22 +12318,6 @@ class System extends base_1$d.EmitterBase {
|
|
|
12405
12318
|
async setDomainSettings(domainSettings) {
|
|
12406
12319
|
await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
|
|
12407
12320
|
}
|
|
12408
|
-
/**
|
|
12409
|
-
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
|
12410
|
-
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
|
12411
|
-
* will be installed/enabled.
|
|
12412
|
-
*/
|
|
12413
|
-
async refreshExtensions() {
|
|
12414
|
-
const { payload } = await this.wire.sendAction('refresh-extensions');
|
|
12415
|
-
return payload.data;
|
|
12416
|
-
}
|
|
12417
|
-
/**
|
|
12418
|
-
* Gets the currently-installed
|
|
12419
|
-
*/
|
|
12420
|
-
async getInstalledExtensions() {
|
|
12421
|
-
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
|
12422
|
-
return payload.data;
|
|
12423
|
-
}
|
|
12424
12321
|
}
|
|
12425
12322
|
system.System = System;
|
|
12426
12323
|
|
|
@@ -13581,12 +13478,11 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
|
13581
13478
|
return [...__classPrivateFieldGet$6(this, _ChannelProvider_connections, "f")];
|
|
13582
13479
|
}
|
|
13583
13480
|
static handleClientDisconnection(channel, payload) {
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
__classPrivateFieldGet$6(channel, _ChannelProvider_removeEndpoint, "f").call(channel,
|
|
13481
|
+
const removeById = channel.connections.find((identity) => identity.endpointId === payload.endpointId);
|
|
13482
|
+
if (removeById) {
|
|
13483
|
+
__classPrivateFieldGet$6(channel, _ChannelProvider_removeEndpoint, "f").call(channel, removeById);
|
|
13587
13484
|
}
|
|
13588
13485
|
else {
|
|
13589
|
-
// this is here to support older runtimes that did not have endpointId
|
|
13590
13486
|
const multipleRemoves = channel.connections.filter((identity) => {
|
|
13591
13487
|
return identity.uuid === payload.uuid && identity.name === payload.name;
|
|
13592
13488
|
});
|
|
@@ -14060,9 +13956,6 @@ var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
14060
13956
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14061
13957
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
14062
13958
|
};
|
|
14063
|
-
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
14064
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14065
|
-
};
|
|
14066
13959
|
var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
|
|
14067
13960
|
Object.defineProperty(connectionManager, "__esModule", { value: true });
|
|
14068
13961
|
connectionManager.ConnectionManager = void 0;
|
|
@@ -14074,7 +13967,7 @@ const ice_manager_1 = iceManager;
|
|
|
14074
13967
|
const provider_1$1 = provider;
|
|
14075
13968
|
const message_receiver_1 = messageReceiver;
|
|
14076
13969
|
const protocol_manager_1 = protocolManager;
|
|
14077
|
-
const strategy_3 =
|
|
13970
|
+
const strategy_3 = strategy;
|
|
14078
13971
|
class ConnectionManager extends base_1$a.Base {
|
|
14079
13972
|
static getProtocolOptionsFromStrings(protocols) {
|
|
14080
13973
|
return protocols.map((protocol) => {
|
|
@@ -14321,7 +14214,7 @@ var _Channel_connectionManager, _Channel_internalEmitter, _Channel_readyToConnec
|
|
|
14321
14214
|
Object.defineProperty(channel$1, "__esModule", { value: true });
|
|
14322
14215
|
channel$1.Channel = void 0;
|
|
14323
14216
|
/* eslint-disable no-console */
|
|
14324
|
-
const events_1$2 = require$$0
|
|
14217
|
+
const events_1$2 = require$$0;
|
|
14325
14218
|
const lazy_1$1 = lazy;
|
|
14326
14219
|
const base_1$9 = base;
|
|
14327
14220
|
const client_1 = client;
|
|
@@ -14648,7 +14541,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
|
|
|
14648
14541
|
*
|
|
14649
14542
|
* @packageDocumentation
|
|
14650
14543
|
*/
|
|
14651
|
-
const events_1$1 = require$$0
|
|
14544
|
+
const events_1$1 = require$$0;
|
|
14652
14545
|
const base_1$8 = base;
|
|
14653
14546
|
const ref_counter_1 = refCounter;
|
|
14654
14547
|
const index_1$2 = channel$1;
|
|
@@ -16476,10 +16369,6 @@ class LayoutModule extends base_1$3.Base {
|
|
|
16476
16369
|
if (__classPrivateFieldGet$1(this, _LayoutModule_layoutInitializationAttempted, "f")) {
|
|
16477
16370
|
throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
|
|
16478
16371
|
}
|
|
16479
|
-
if (this.wire.environment.type === 'openfin') {
|
|
16480
|
-
// preload the client
|
|
16481
|
-
await this.fin.Platform.getCurrentSync().getClient();
|
|
16482
|
-
}
|
|
16483
16372
|
__classPrivateFieldSet$1(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
16484
16373
|
// TODO: rename to createLayoutManager
|
|
16485
16374
|
__classPrivateFieldSet$1(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
|
@@ -17215,7 +17104,7 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
|
17215
17104
|
|
|
17216
17105
|
Object.defineProperty(fin$1, "__esModule", { value: true });
|
|
17217
17106
|
var Fin_1 = fin$1.Fin = void 0;
|
|
17218
|
-
const events_1 = require$$0
|
|
17107
|
+
const events_1 = require$$0;
|
|
17219
17108
|
// Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
|
|
17220
17109
|
const index_1 = system;
|
|
17221
17110
|
const index_2 = requireWindow();
|
|
@@ -17264,15 +17153,12 @@ Fin_1 = fin$1.Fin = Fin;
|
|
|
17264
17153
|
|
|
17265
17154
|
var browser = {};
|
|
17266
17155
|
|
|
17267
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17268
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17269
|
-
};
|
|
17270
17156
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
17271
17157
|
browser.remoteConnectInterop = browser.remoteConnect = getRemoteConnectionPayload_1 = browser.getRemoteConnectionPayload = void 0;
|
|
17272
17158
|
const fin_1 = fin$1;
|
|
17273
17159
|
const browser_1 = browser$1;
|
|
17274
17160
|
const transport_1 = transport;
|
|
17275
|
-
const websocket_1 =
|
|
17161
|
+
const websocket_1 = websocket;
|
|
17276
17162
|
async function getRemoteConnectionPayload(fin, uuid = `browser-connection-${Math.random().toString().slice(2)}`, interopProviderId = fin.me.uuid) {
|
|
17277
17163
|
const { token } = await fin.System.registerExternalConnection(uuid);
|
|
17278
17164
|
const { port } = await fin.System.getRuntimeInfo();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "39.81.3",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"author": "OpenFin",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"@openfin/core": "
|
|
22
|
+
"@openfin/core": "39.81.3"
|
|
23
23
|
}
|
|
24
24
|
}
|