@openfin/remote-adapter 36.78.14 → 36.79.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/LICENSE.md +3 -0
- package/README.md +62 -0
- package/out/backchannel.js +17 -4
- package/out/remote-adapter-alpha.d.ts +18763 -26
- package/out/remote-adapter-beta.d.ts +18763 -26
- package/out/remote-adapter-public.d.ts +18763 -26
- package/out/remote-adapter.d.ts +19210 -26
- package/out/remote-adapter.js +58 -47
- package/package.json +6 -6
- package/out/backchannel-e240e597.js +0 -500
package/out/remote-adapter.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var require$$0 = require('events');
|
|
4
4
|
var bridge = require('./bridge-ef11968f.js');
|
|
5
5
|
var require$$3 = require('lodash');
|
|
6
6
|
var crypto = require('crypto');
|
|
7
|
+
var backchannel = require('./backchannel.js');
|
|
7
8
|
var constants = require('./constants.js');
|
|
8
9
|
|
|
9
10
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -209,7 +210,7 @@ var emitterMap = {};
|
|
|
209
210
|
|
|
210
211
|
Object.defineProperty(emitterMap, "__esModule", { value: true });
|
|
211
212
|
emitterMap.EmitterMap = void 0;
|
|
212
|
-
const events_1$6 =
|
|
213
|
+
const events_1$6 = require$$0;
|
|
213
214
|
class EmitterMap {
|
|
214
215
|
constructor() {
|
|
215
216
|
this.storage = new Map();
|
|
@@ -956,7 +957,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
|
956
957
|
};
|
|
957
958
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
958
959
|
__exportStar(channelsConsumer, exports);
|
|
959
|
-
__exportStar(channelsExposer, exports);
|
|
960
|
+
__exportStar(channelsExposer, exports);
|
|
960
961
|
} (openfinChannels));
|
|
961
962
|
|
|
962
963
|
(function (exports) {
|
|
@@ -975,7 +976,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
|
975
976
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
976
977
|
};
|
|
977
978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
978
|
-
__exportStar(openfinChannels, exports);
|
|
979
|
+
__exportStar(openfinChannels, exports);
|
|
979
980
|
} (strategies));
|
|
980
981
|
|
|
981
982
|
(function (exports) {
|
|
@@ -997,7 +998,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
|
997
998
|
__exportStar(apiConsumer, exports);
|
|
998
999
|
__exportStar(apiExposer, exports);
|
|
999
1000
|
__exportStar(strategies, exports);
|
|
1000
|
-
__exportStar(decorators, exports);
|
|
1001
|
+
__exportStar(decorators, exports);
|
|
1001
1002
|
} (apiExposer$1));
|
|
1002
1003
|
|
|
1003
1004
|
var channelApiRelay = {};
|
|
@@ -3658,8 +3659,8 @@ function requireApplication () {
|
|
|
3658
3659
|
* @packageDocumentation
|
|
3659
3660
|
*/
|
|
3660
3661
|
__exportStar(requireFactory$2(), exports);
|
|
3661
|
-
__exportStar(requireInstance$2(), exports);
|
|
3662
|
-
} (application));
|
|
3662
|
+
__exportStar(requireInstance$2(), exports);
|
|
3663
|
+
} (application));
|
|
3663
3664
|
return application;
|
|
3664
3665
|
}
|
|
3665
3666
|
|
|
@@ -4807,7 +4808,7 @@ function requireInstance$1 () {
|
|
|
4807
4808
|
* })
|
|
4808
4809
|
* ```
|
|
4809
4810
|
*
|
|
4810
|
-
* Overriding the built in context menu (
|
|
4811
|
+
* Overriding the built in context menu (note: that this can be done per element or document wide):
|
|
4811
4812
|
* ```js
|
|
4812
4813
|
* document.addEventListener('contextmenu', e => {
|
|
4813
4814
|
* e.preventDefault();
|
|
@@ -5122,8 +5123,8 @@ function requireWindow () {
|
|
|
5122
5123
|
* @packageDocumentation
|
|
5123
5124
|
*/
|
|
5124
5125
|
__exportStar(requireFactory$1(), exports);
|
|
5125
|
-
__exportStar(requireInstance$1(), exports);
|
|
5126
|
-
} (window$1));
|
|
5126
|
+
__exportStar(requireInstance$1(), exports);
|
|
5127
|
+
} (window$1));
|
|
5127
5128
|
return window$1;
|
|
5128
5129
|
}
|
|
5129
5130
|
|
|
@@ -5727,8 +5728,8 @@ function requireView () {
|
|
|
5727
5728
|
* @packageDocumentation
|
|
5728
5729
|
*/
|
|
5729
5730
|
__exportStar(requireFactory$3(), exports);
|
|
5730
|
-
__exportStar(requireInstance(), exports);
|
|
5731
|
-
} (view));
|
|
5731
|
+
__exportStar(requireInstance(), exports);
|
|
5732
|
+
} (view));
|
|
5732
5733
|
return view;
|
|
5733
5734
|
}
|
|
5734
5735
|
|
|
@@ -5920,7 +5921,7 @@ Factory$5._FrameModule = _FrameModule;
|
|
|
5920
5921
|
};
|
|
5921
5922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5922
5923
|
__exportStar(Factory$5, exports);
|
|
5923
|
-
__exportStar(Instance$4, exports);
|
|
5924
|
+
__exportStar(Instance$4, exports);
|
|
5924
5925
|
} (frame));
|
|
5925
5926
|
|
|
5926
5927
|
var externalApplication = {};
|
|
@@ -6046,7 +6047,7 @@ Factory$4.ExternalApplicationModule = ExternalApplicationModule;
|
|
|
6046
6047
|
* @packageDocumentation
|
|
6047
6048
|
*/
|
|
6048
6049
|
__exportStar(Factory$4, exports);
|
|
6049
|
-
__exportStar(Instance$3, exports);
|
|
6050
|
+
__exportStar(Instance$3, exports);
|
|
6050
6051
|
} (externalApplication));
|
|
6051
6052
|
|
|
6052
6053
|
(function (exports) {
|
|
@@ -6182,7 +6183,7 @@ Factory$4.ExternalApplicationModule = ExternalApplicationModule;
|
|
|
6182
6183
|
};
|
|
6183
6184
|
}
|
|
6184
6185
|
}
|
|
6185
|
-
exports.getMe = getMe;
|
|
6186
|
+
exports.getMe = getMe;
|
|
6186
6187
|
} (me));
|
|
6187
6188
|
|
|
6188
6189
|
var errors = {};
|
|
@@ -6214,7 +6215,7 @@ var __classPrivateFieldGet$d = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
6214
6215
|
var _Transport_wire, _Transport_fin;
|
|
6215
6216
|
Object.defineProperty(transport, "__esModule", { value: true });
|
|
6216
6217
|
var Transport_1 = transport.Transport = void 0;
|
|
6217
|
-
const events_1$5 =
|
|
6218
|
+
const events_1$5 = require$$0;
|
|
6218
6219
|
const wire_1 = wire;
|
|
6219
6220
|
const transport_errors_1$2 = transportErrors;
|
|
6220
6221
|
const eventAggregator_1 = eventAggregator;
|
|
@@ -6431,7 +6432,7 @@ _Transport_wire = new WeakMap(), _Transport_fin = new WeakMap();
|
|
|
6431
6432
|
var websocket = {};
|
|
6432
6433
|
|
|
6433
6434
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
|
6434
|
-
const events_1$4 =
|
|
6435
|
+
const events_1$4 = require$$0;
|
|
6435
6436
|
const transport_errors_1$1 = transportErrors;
|
|
6436
6437
|
const messageReceiver_1 = bridge.messageReceiver;
|
|
6437
6438
|
/* `READY_STATE` is an instance var set by `constructor` to reference the `WebTransportSocket.READY_STATE` enum.
|
|
@@ -6508,7 +6509,7 @@ system.System = void 0;
|
|
|
6508
6509
|
const base_1$f = base;
|
|
6509
6510
|
const transport_errors_1 = transportErrors;
|
|
6510
6511
|
const window_1 = requireWindow();
|
|
6511
|
-
const events_1$3 =
|
|
6512
|
+
const events_1$3 = require$$0;
|
|
6512
6513
|
/**
|
|
6513
6514
|
* An object representing the core of OpenFin Runtime. Allows the developer
|
|
6514
6515
|
* to perform system-level actions, such as accessing logs, viewing processes,
|
|
@@ -10209,7 +10210,7 @@ var _Channel_connectionManager, _Channel_internalEmitter, _Channel_readyToConnec
|
|
|
10209
10210
|
Object.defineProperty(channel$1, "__esModule", { value: true });
|
|
10210
10211
|
channel$1.Channel = void 0;
|
|
10211
10212
|
/* eslint-disable no-console */
|
|
10212
|
-
const events_1$2 =
|
|
10213
|
+
const events_1$2 = require$$0;
|
|
10213
10214
|
const lazy_1$1 = lazy;
|
|
10214
10215
|
const base_1$b = base;
|
|
10215
10216
|
const client_1 = client;
|
|
@@ -10536,7 +10537,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
|
|
|
10536
10537
|
*
|
|
10537
10538
|
* @packageDocumentation
|
|
10538
10539
|
*/
|
|
10539
|
-
const events_1$1 =
|
|
10540
|
+
const events_1$1 = require$$0;
|
|
10540
10541
|
const base_1$a = base;
|
|
10541
10542
|
const ref_counter_1 = refCounter;
|
|
10542
10543
|
const index_1$2 = channel$1;
|
|
@@ -12325,7 +12326,7 @@ var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
12325
12326
|
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");
|
|
12326
12327
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12327
12328
|
};
|
|
12328
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager,
|
|
12329
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_waitForBackCompatLayoutManager, _LayoutModule_getSafeLayoutManager;
|
|
12329
12330
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
|
12330
12331
|
Factory$2.LayoutModule = void 0;
|
|
12331
12332
|
const base_1$5 = base;
|
|
@@ -12389,12 +12390,17 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12389
12390
|
}
|
|
12390
12391
|
__classPrivateFieldSet$3(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
12391
12392
|
__classPrivateFieldSet$3(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
|
12393
|
+
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
12394
|
+
let backCompatLayoutPromise;
|
|
12395
|
+
if (!options.layoutManagerOverride) {
|
|
12396
|
+
backCompatLayoutPromise = __classPrivateFieldGet$3(this, _LayoutModule_waitForBackCompatLayoutManager, "f").call(this, this.fin);
|
|
12397
|
+
}
|
|
12392
12398
|
// apply the initial snapshot which in turn will call fin.Platform.Layout.create()
|
|
12393
12399
|
const platformClient = await this.fin.Platform.getCurrentSync().getClient();
|
|
12394
12400
|
const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
|
|
12395
12401
|
await __classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
|
|
12396
|
-
if (
|
|
12397
|
-
return
|
|
12402
|
+
if (backCompatLayoutPromise) {
|
|
12403
|
+
return backCompatLayoutPromise;
|
|
12398
12404
|
}
|
|
12399
12405
|
// warn user if they do not call create() in the next 30 seconds
|
|
12400
12406
|
setTimeout(() => {
|
|
@@ -12405,7 +12411,8 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12405
12411
|
}, 30000);
|
|
12406
12412
|
return this.wrapSync(this.fin.me.identity);
|
|
12407
12413
|
};
|
|
12408
|
-
|
|
12414
|
+
// deprecate with CORE-1081
|
|
12415
|
+
_LayoutModule_waitForBackCompatLayoutManager.set(this, async (fin) => {
|
|
12409
12416
|
let layoutManager;
|
|
12410
12417
|
let resolve;
|
|
12411
12418
|
const layoutResolved = new Promise((r) => {
|
|
@@ -12530,7 +12537,7 @@ class LayoutModule extends base_1$5.Base {
|
|
|
12530
12537
|
}
|
|
12531
12538
|
}
|
|
12532
12539
|
Factory$2.LayoutModule = LayoutModule;
|
|
12533
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(),
|
|
12540
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_waitForBackCompatLayoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
|
12534
12541
|
if (!__classPrivateFieldGet$3(this, _LayoutModule_layoutManager, "f")) {
|
|
12535
12542
|
throw new Error(`You must call init before using the API ${method}`);
|
|
12536
12543
|
}
|
|
@@ -12566,7 +12573,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
|
|
|
12566
12573
|
};
|
|
12567
12574
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12568
12575
|
__exportStar(Factory$2, exports);
|
|
12569
|
-
__exportStar(Instance$1, exports);
|
|
12576
|
+
__exportStar(Instance$1, exports);
|
|
12570
12577
|
} (layout));
|
|
12571
12578
|
|
|
12572
12579
|
Object.defineProperty(Factory$3, "__esModule", { value: true });
|
|
@@ -12831,7 +12838,7 @@ Factory$3.PlatformModule = PlatformModule;
|
|
|
12831
12838
|
* @packageDocumentation
|
|
12832
12839
|
*/
|
|
12833
12840
|
__exportStar(Factory$3, exports);
|
|
12834
|
-
__exportStar(Instance$2, exports);
|
|
12841
|
+
__exportStar(Instance$2, exports);
|
|
12835
12842
|
} (platform));
|
|
12836
12843
|
|
|
12837
12844
|
var interop = {};
|
|
@@ -13069,7 +13076,7 @@ var utils$1 = {};
|
|
|
13069
13076
|
}
|
|
13070
13077
|
};
|
|
13071
13078
|
};
|
|
13072
|
-
exports.wrapIntentHandler = wrapIntentHandler;
|
|
13079
|
+
exports.wrapIntentHandler = wrapIntentHandler;
|
|
13073
13080
|
} (utils$1));
|
|
13074
13081
|
|
|
13075
13082
|
var PrivateChannelProvider = {};
|
|
@@ -15320,29 +15327,33 @@ function requireOverrideCheck () {
|
|
|
15320
15327
|
if (hasRequiredOverrideCheck) return overrideCheck;
|
|
15321
15328
|
hasRequiredOverrideCheck = 1;
|
|
15322
15329
|
Object.defineProperty(overrideCheck, "__esModule", { value: true });
|
|
15323
|
-
overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
|
15330
|
+
overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
|
15324
15331
|
const InteropBroker_1 = requireInteropBroker();
|
|
15325
15332
|
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
|
15326
15333
|
const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
|
15327
15334
|
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
|
15328
15335
|
}
|
|
15329
15336
|
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
|
15330
|
-
|
|
15337
|
+
function checkFDC32Overrides(overriddenBroker) {
|
|
15338
|
+
// These are the APIs that must be overridden for FDC3 2.0 compliance
|
|
15339
|
+
const mustOverrideAPIs = [
|
|
15340
|
+
'fdc3HandleFindInstances',
|
|
15341
|
+
'handleInfoForIntent',
|
|
15342
|
+
'handleInfoForIntentsByContext',
|
|
15343
|
+
'fdc3HandleGetAppMetadata',
|
|
15344
|
+
'fdc3HandleGetInfo',
|
|
15345
|
+
'fdc3HandleOpen',
|
|
15346
|
+
'handleFiredIntent',
|
|
15347
|
+
'handleFiredIntentForContext'
|
|
15348
|
+
];
|
|
15349
|
+
return mustOverrideAPIs.filter((api) => {
|
|
15350
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
|
15351
|
+
});
|
|
15352
|
+
}
|
|
15353
|
+
overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
|
|
15331
15354
|
function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
|
|
15332
15355
|
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
|
15333
|
-
const
|
|
15334
|
-
'fdc3HandleFindInstances',
|
|
15335
|
-
'handleInfoForIntent',
|
|
15336
|
-
'handleInfoForIntentsByContext',
|
|
15337
|
-
'fdc3HandleGetAppMetadata',
|
|
15338
|
-
'fdc3HandleGetInfo',
|
|
15339
|
-
'fdc3HandleOpen',
|
|
15340
|
-
'handleFiredIntent',
|
|
15341
|
-
'handleFiredIntentForContext'
|
|
15342
|
-
];
|
|
15343
|
-
const notOverridden = mustOverrideAPIs.filter((api) => {
|
|
15344
|
-
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
|
15345
|
-
});
|
|
15356
|
+
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
|
15346
15357
|
if (notOverridden.length > 0) {
|
|
15347
15358
|
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')}`);
|
|
15348
15359
|
}
|
|
@@ -15487,8 +15498,8 @@ function requireInterop () {
|
|
|
15487
15498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15488
15499
|
__exportStar(requireFactory(), exports);
|
|
15489
15500
|
__exportStar(InteropClient$1, exports);
|
|
15490
|
-
__exportStar(requireInteropBroker(), exports);
|
|
15491
|
-
} (interop));
|
|
15501
|
+
__exportStar(requireInteropBroker(), exports);
|
|
15502
|
+
} (interop));
|
|
15492
15503
|
return interop;
|
|
15493
15504
|
}
|
|
15494
15505
|
|
|
@@ -15773,12 +15784,12 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
|
15773
15784
|
};
|
|
15774
15785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15775
15786
|
__exportStar(Factory, exports);
|
|
15776
|
-
__exportStar(Instance, exports);
|
|
15787
|
+
__exportStar(Instance, exports);
|
|
15777
15788
|
} (snapshotSource));
|
|
15778
15789
|
|
|
15779
15790
|
Object.defineProperty(fin, "__esModule", { value: true });
|
|
15780
15791
|
var Fin_1 = fin.Fin = void 0;
|
|
15781
|
-
const events_1 =
|
|
15792
|
+
const events_1 = require$$0;
|
|
15782
15793
|
// Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
|
|
15783
15794
|
const index_1 = system;
|
|
15784
15795
|
const index_2 = requireWindow();
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.79.3",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
|
-
"license": "SEE LICENSE IN LICENSE.
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|
|
8
8
|
"./out/*"
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"author": "OpenFin",
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@openfin/core-ci-tools": "0.0.1",
|
|
20
|
-
"@rollup/plugin-commonjs": "
|
|
21
|
-
"@rollup/plugin-node-resolve": "
|
|
22
|
-
"@rollup/plugin-typescript": "
|
|
20
|
+
"@rollup/plugin-commonjs": "25.0.2",
|
|
21
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
22
|
+
"@rollup/plugin-typescript": "11.1.1",
|
|
23
23
|
"@types/node": "^20.9.0",
|
|
24
|
-
"rollup": "
|
|
24
|
+
"rollup": "3.24.1",
|
|
25
25
|
"typescript": "4.9.5"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|