@openfin/core 38.82.63 → 38.82.65
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/mock-alpha.d.ts +680 -214
- package/out/mock-beta.d.ts +680 -214
- package/out/mock-public.d.ts +680 -214
- package/out/mock.d.ts +680 -214
- package/out/mock.js +102 -27
- package/package.json +1 -1
package/out/mock.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var require$$0 = require('events');
|
|
6
|
-
var require$$
|
|
6
|
+
var require$$0$1 = require('lodash/cloneDeep');
|
|
7
|
+
var require$$3 = require('lodash/isEqual');
|
|
7
8
|
|
|
8
9
|
function _mergeNamespaces(n, m) {
|
|
9
10
|
m.forEach(function (e) {
|
|
@@ -241,27 +242,50 @@ Object.defineProperty(window$2, "__esModule", { value: true });
|
|
|
241
242
|
*
|
|
242
243
|
* @packageDocumentation
|
|
243
244
|
*/
|
|
245
|
+
var __createBinding$1 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
246
|
+
if (k2 === undefined) k2 = k;
|
|
247
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
248
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
249
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
250
|
+
}
|
|
251
|
+
Object.defineProperty(o, k2, desc);
|
|
252
|
+
}) : (function(o, m, k, k2) {
|
|
253
|
+
if (k2 === undefined) k2 = k;
|
|
254
|
+
o[k2] = m[k];
|
|
255
|
+
}));
|
|
256
|
+
var __setModuleDefault$1 = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
257
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
258
|
+
}) : function(o, v) {
|
|
259
|
+
o["default"] = v;
|
|
260
|
+
});
|
|
261
|
+
var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
262
|
+
if (mod && mod.__esModule) return mod;
|
|
263
|
+
var result = {};
|
|
264
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$1(result, mod, k);
|
|
265
|
+
__setModuleDefault$1(result, mod);
|
|
266
|
+
return result;
|
|
267
|
+
};
|
|
244
268
|
Object.defineProperty(events, "__esModule", { value: true });
|
|
245
269
|
events.WindowEvents = events.WebContentsEvents = events.ViewEvents = events.SystemEvents = events.PlatformEvents = events.GlobalHotkeyEvents = events.FrameEvents = events.ExternalApplicationEvents = events.BaseEvents = events.ApplicationEvents = void 0;
|
|
246
|
-
const ApplicationEvents = application$1;
|
|
270
|
+
const ApplicationEvents = __importStar$1(application$1);
|
|
247
271
|
events.ApplicationEvents = ApplicationEvents;
|
|
248
|
-
const BaseEvents = base$1;
|
|
272
|
+
const BaseEvents = __importStar$1(base$1);
|
|
249
273
|
events.BaseEvents = BaseEvents;
|
|
250
|
-
const ExternalApplicationEvents = externalApplication$1;
|
|
274
|
+
const ExternalApplicationEvents = __importStar$1(externalApplication$1);
|
|
251
275
|
events.ExternalApplicationEvents = ExternalApplicationEvents;
|
|
252
|
-
const FrameEvents = frame$1;
|
|
276
|
+
const FrameEvents = __importStar$1(frame$1);
|
|
253
277
|
events.FrameEvents = FrameEvents;
|
|
254
|
-
const GlobalHotkeyEvents = globalHotkey$1;
|
|
278
|
+
const GlobalHotkeyEvents = __importStar$1(globalHotkey$1);
|
|
255
279
|
events.GlobalHotkeyEvents = GlobalHotkeyEvents;
|
|
256
|
-
const PlatformEvents = platform$1;
|
|
280
|
+
const PlatformEvents = __importStar$1(platform$1);
|
|
257
281
|
events.PlatformEvents = PlatformEvents;
|
|
258
|
-
const SystemEvents = system$1;
|
|
282
|
+
const SystemEvents = __importStar$1(system$1);
|
|
259
283
|
events.SystemEvents = SystemEvents;
|
|
260
|
-
const ViewEvents = view$1;
|
|
284
|
+
const ViewEvents = __importStar$1(view$1);
|
|
261
285
|
events.ViewEvents = ViewEvents;
|
|
262
|
-
const WebContentsEvents = webcontents;
|
|
286
|
+
const WebContentsEvents = __importStar$1(webcontents);
|
|
263
287
|
events.WebContentsEvents = WebContentsEvents;
|
|
264
|
-
const WindowEvents = window$2;
|
|
288
|
+
const WindowEvents = __importStar$1(window$2);
|
|
265
289
|
events.WindowEvents = WindowEvents;
|
|
266
290
|
|
|
267
291
|
(function (exports) {
|
|
@@ -796,7 +820,9 @@ function requireFactory$3 () {
|
|
|
796
820
|
* @experimental
|
|
797
821
|
*/
|
|
798
822
|
async wrap(identity) {
|
|
799
|
-
this.wire.sendAction('view-wrap')
|
|
823
|
+
this.wire.sendAction('view-wrap').catch((e) => {
|
|
824
|
+
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
825
|
+
});
|
|
800
826
|
const errorMsg = (0, validate_1.validateIdentity)(identity);
|
|
801
827
|
if (errorMsg) {
|
|
802
828
|
throw new Error(errorMsg);
|
|
@@ -3019,9 +3045,14 @@ function requireInstance$2 () {
|
|
|
3019
3045
|
// don't expose
|
|
3020
3046
|
});
|
|
3021
3047
|
const layoutWindow = await this.getCurrentWindow();
|
|
3048
|
+
let layoutWindowIdentity = layoutWindow.identity;
|
|
3049
|
+
// TODO: CORE-1857 - when we tearout active layout or drag a view out of a window, the above identity includes the whole window info.
|
|
3050
|
+
if (layoutWindowIdentity.identity) {
|
|
3051
|
+
layoutWindowIdentity = layoutWindowIdentity.identity;
|
|
3052
|
+
}
|
|
3022
3053
|
try {
|
|
3023
3054
|
const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
|
|
3024
|
-
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID,
|
|
3055
|
+
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindowIdentity);
|
|
3025
3056
|
const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
|
|
3026
3057
|
return this.fin.Platform.Layout.wrap(layoutIdentity);
|
|
3027
3058
|
}
|
|
@@ -3034,7 +3065,7 @@ function requireInstance$2 () {
|
|
|
3034
3065
|
throw e;
|
|
3035
3066
|
}
|
|
3036
3067
|
// fallback logic for missing endpoint
|
|
3037
|
-
return this.fin.Platform.Layout.wrap(
|
|
3068
|
+
return this.fin.Platform.Layout.wrap(layoutWindowIdentity);
|
|
3038
3069
|
}
|
|
3039
3070
|
};
|
|
3040
3071
|
/**
|
|
@@ -9420,6 +9451,9 @@ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
9420
9451
|
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");
|
|
9421
9452
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
9422
9453
|
};
|
|
9454
|
+
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9455
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9456
|
+
};
|
|
9423
9457
|
var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
|
|
9424
9458
|
Object.defineProperty(connectionManager, "__esModule", { value: true });
|
|
9425
9459
|
connectionManager.ConnectionManager = void 0;
|
|
@@ -9431,7 +9465,7 @@ const ice_manager_1 = iceManager;
|
|
|
9431
9465
|
const provider_1$1 = provider;
|
|
9432
9466
|
const message_receiver_1 = messageReceiver;
|
|
9433
9467
|
const protocol_manager_1 = protocolManager;
|
|
9434
|
-
const strategy_3 = strategy;
|
|
9468
|
+
const strategy_3 = __importDefault$1(strategy);
|
|
9435
9469
|
class ConnectionManager extends base_1$f.Base {
|
|
9436
9470
|
static getProtocolOptionsFromStrings(protocols) {
|
|
9437
9471
|
return protocols.map((protocol) => {
|
|
@@ -13310,13 +13344,16 @@ function requireInteropBroker () {
|
|
|
13310
13344
|
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");
|
|
13311
13345
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
13312
13346
|
};
|
|
13347
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
13348
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13349
|
+
};
|
|
13313
13350
|
var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
|
|
13314
13351
|
Object.defineProperty(InteropBroker, "__esModule", { value: true });
|
|
13315
13352
|
InteropBroker.InteropBroker = void 0;
|
|
13316
13353
|
const base_1 = base;
|
|
13317
|
-
const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
|
|
13354
|
+
const SessionContextGroupBroker_1 = __importDefault(requireSessionContextGroupBroker());
|
|
13318
13355
|
const utils_1 = utils$3;
|
|
13319
|
-
const
|
|
13356
|
+
const isEqual_1 = __importDefault(require$$3);
|
|
13320
13357
|
const PrivateChannelProvider_1 = requirePrivateChannelProvider();
|
|
13321
13358
|
const lazy_1 = lazy;
|
|
13322
13359
|
const defaultContextGroups = [
|
|
@@ -13514,7 +13551,7 @@ function requireInteropBroker () {
|
|
|
13514
13551
|
constructor(...unused) {
|
|
13515
13552
|
if (unused.length) {
|
|
13516
13553
|
const [_ignore1, ignore2, opts] = unused;
|
|
13517
|
-
if (opts && typeof opts === 'object' && !(0,
|
|
13554
|
+
if (opts && typeof opts === 'object' && !(0, isEqual_1.default)(opts, args[2])) {
|
|
13518
13555
|
// eslint-disable-next-line no-console
|
|
13519
13556
|
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.');
|
|
13520
13557
|
super(args[0], args[1], opts);
|
|
@@ -14691,9 +14728,32 @@ var utils$2 = {};
|
|
|
14691
14728
|
|
|
14692
14729
|
var PrivateChannelClient$1 = {};
|
|
14693
14730
|
|
|
14731
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14732
|
+
if (k2 === undefined) k2 = k;
|
|
14733
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14734
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14735
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14736
|
+
}
|
|
14737
|
+
Object.defineProperty(o, k2, desc);
|
|
14738
|
+
}) : (function(o, m, k, k2) {
|
|
14739
|
+
if (k2 === undefined) k2 = k;
|
|
14740
|
+
o[k2] = m[k];
|
|
14741
|
+
}));
|
|
14742
|
+
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14743
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14744
|
+
}) : function(o, v) {
|
|
14745
|
+
o["default"] = v;
|
|
14746
|
+
});
|
|
14747
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
14748
|
+
if (mod && mod.__esModule) return mod;
|
|
14749
|
+
var result = {};
|
|
14750
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
14751
|
+
__setModuleDefault(result, mod);
|
|
14752
|
+
return result;
|
|
14753
|
+
};
|
|
14694
14754
|
Object.defineProperty(PrivateChannelClient$1, "__esModule", { value: true });
|
|
14695
14755
|
PrivateChannelClient$1.PrivateChannelClient = void 0;
|
|
14696
|
-
const utils$1 = utils$3;
|
|
14756
|
+
const utils$1 = __importStar(utils$3);
|
|
14697
14757
|
class PrivateChannelClient {
|
|
14698
14758
|
constructor(client, id) {
|
|
14699
14759
|
this.id = id;
|
|
@@ -14782,11 +14842,14 @@ class PrivateChannelClient {
|
|
|
14782
14842
|
PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
14783
14843
|
|
|
14784
14844
|
(function (exports) {
|
|
14845
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
14846
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14847
|
+
};
|
|
14785
14848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14786
14849
|
exports.getIntentResolution = exports.isChannel = exports.isContext = exports.connectPrivateChannel = exports.buildAppChannelObject = exports.buildPrivateChannelObject = exports.ChannelError = exports.ResultError = exports.UnsupportedChannelApiError = exports.getUnsupportedChannelApis = void 0;
|
|
14787
14850
|
const utils_1 = utils$3;
|
|
14788
14851
|
const PrivateChannelClient_1 = PrivateChannelClient$1;
|
|
14789
|
-
const
|
|
14852
|
+
const isEqual_1 = __importDefault(require$$3);
|
|
14790
14853
|
const getUnsupportedChannelApis = (channelType) => {
|
|
14791
14854
|
return {
|
|
14792
14855
|
addContextListener: () => {
|
|
@@ -14914,7 +14977,7 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
|
14914
14977
|
const wrappedHandler = (context, contextMetadata) => {
|
|
14915
14978
|
if (first) {
|
|
14916
14979
|
first = false;
|
|
14917
|
-
if ((0,
|
|
14980
|
+
if ((0, isEqual_1.default)(currentContext, context)) {
|
|
14918
14981
|
return;
|
|
14919
14982
|
}
|
|
14920
14983
|
}
|
|
@@ -15036,13 +15099,16 @@ function requireFdc3Common () {
|
|
|
15036
15099
|
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");
|
|
15037
15100
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15038
15101
|
};
|
|
15102
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
15103
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15104
|
+
};
|
|
15039
15105
|
var _FDC3ModuleBase_producer;
|
|
15040
15106
|
Object.defineProperty(fdc3Common, "__esModule", { value: true });
|
|
15041
15107
|
fdc3Common.FDC3ModuleBase = void 0;
|
|
15042
15108
|
const utils_1 = utils$2;
|
|
15043
15109
|
const utils_2 = utils$3;
|
|
15044
15110
|
const InteropClient_1 = requireInteropClient();
|
|
15045
|
-
const
|
|
15111
|
+
const isEqual_1 = __importDefault(require$$3);
|
|
15046
15112
|
class FDC3ModuleBase {
|
|
15047
15113
|
get client() {
|
|
15048
15114
|
return __classPrivateFieldGet(this, _FDC3ModuleBase_producer, "f").call(this);
|
|
@@ -15231,7 +15297,7 @@ function requireFdc3Common () {
|
|
|
15231
15297
|
const wrappedHandler = (context, contextMetadata) => {
|
|
15232
15298
|
if (first) {
|
|
15233
15299
|
first = false;
|
|
15234
|
-
if ((0,
|
|
15300
|
+
if ((0, isEqual_1.default)(currentContext, context)) {
|
|
15235
15301
|
return;
|
|
15236
15302
|
}
|
|
15237
15303
|
}
|
|
@@ -15844,11 +15910,14 @@ function requireInteropClient () {
|
|
|
15844
15910
|
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");
|
|
15845
15911
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15846
15912
|
};
|
|
15913
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
15914
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15915
|
+
};
|
|
15847
15916
|
var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
|
|
15848
15917
|
Object.defineProperty(InteropClient, "__esModule", { value: true });
|
|
15849
15918
|
InteropClient.InteropClient = void 0;
|
|
15850
15919
|
const base_1 = base;
|
|
15851
|
-
const SessionContextGroupClient_1 = SessionContextGroupClient$1;
|
|
15920
|
+
const SessionContextGroupClient_1 = __importDefault(SessionContextGroupClient$1);
|
|
15852
15921
|
const fdc3_1_2_1 = requireFdc31_2();
|
|
15853
15922
|
const fdc3_2_0_1 = requireFdc32_0();
|
|
15854
15923
|
const utils_1 = utils$3;
|
|
@@ -16488,9 +16557,12 @@ var hasRequiredFactory;
|
|
|
16488
16557
|
function requireFactory () {
|
|
16489
16558
|
if (hasRequiredFactory) return Factory$1;
|
|
16490
16559
|
hasRequiredFactory = 1;
|
|
16560
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
16561
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16562
|
+
};
|
|
16491
16563
|
Object.defineProperty(Factory$1, "__esModule", { value: true });
|
|
16492
16564
|
Factory$1.InteropModule = void 0;
|
|
16493
|
-
const
|
|
16565
|
+
const cloneDeep_1 = __importDefault(require$$0$1);
|
|
16494
16566
|
const inaccessibleObject_1 = inaccessibleObject;
|
|
16495
16567
|
const base_1 = base;
|
|
16496
16568
|
const InteropBroker_1 = requireInteropBroker();
|
|
@@ -16527,7 +16599,7 @@ function requireFactory () {
|
|
|
16527
16599
|
// Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
|
|
16528
16600
|
const options = await this.wire.environment.getInteropInfo(this.wire.getFin());
|
|
16529
16601
|
const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
|
|
16530
|
-
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0,
|
|
16602
|
+
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, cloneDeep_1.default)(options));
|
|
16531
16603
|
const getProvider = () => {
|
|
16532
16604
|
return this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`);
|
|
16533
16605
|
};
|
|
@@ -17084,13 +17156,16 @@ var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFie
|
|
|
17084
17156
|
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");
|
|
17085
17157
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
17086
17158
|
};
|
|
17159
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17160
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17161
|
+
};
|
|
17087
17162
|
var _Transport_wire, _Transport_fin;
|
|
17088
17163
|
Object.defineProperty(transport, "__esModule", { value: true });
|
|
17089
17164
|
var Transport_1 = transport.Transport = void 0;
|
|
17090
17165
|
const events_1$1 = require$$0;
|
|
17091
17166
|
const wire_1 = wire;
|
|
17092
17167
|
const transport_errors_1 = transportErrors;
|
|
17093
|
-
const eventAggregator_1 = eventAggregator;
|
|
17168
|
+
const eventAggregator_1 = __importDefault(eventAggregator);
|
|
17094
17169
|
const me_1$1 = me;
|
|
17095
17170
|
const errors_1 = errors;
|
|
17096
17171
|
class Transport extends events_1$1.EventEmitter {
|