@openfin/core 42.100.90 → 42.100.93
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 +95 -0
- package/out/mock-beta.d.ts +95 -0
- package/out/mock-public.d.ts +95 -0
- package/out/stub.d.ts +95 -0
- package/out/stub.js +409 -265
- package/package.json +1 -1
package/out/stub.js
CHANGED
@@ -361,13 +361,13 @@ async function promiseMapSerial(arr, func) {
|
|
361
361
|
}
|
362
362
|
promises.promiseMapSerial = promiseMapSerial;
|
363
363
|
|
364
|
-
var __classPrivateFieldSet$
|
364
|
+
var __classPrivateFieldSet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
365
365
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
366
366
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
367
367
|
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");
|
368
368
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
369
369
|
};
|
370
|
-
var __classPrivateFieldGet$
|
370
|
+
var __classPrivateFieldGet$i = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
371
371
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
372
372
|
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");
|
373
373
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -452,7 +452,7 @@ class EmitterBase extends Base {
|
|
452
452
|
this.emit = (eventType, payload, ...args) => {
|
453
453
|
return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
|
454
454
|
};
|
455
|
-
this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$
|
455
|
+
this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
456
456
|
/**
|
457
457
|
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
458
458
|
* `once` subscription.
|
@@ -462,14 +462,14 @@ class EmitterBase extends Base {
|
|
462
462
|
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
463
463
|
*/
|
464
464
|
this.cleanUpRemovedListener = (eventType, listener) => {
|
465
|
-
const deregister = __classPrivateFieldGet$
|
465
|
+
const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
466
466
|
if (deregister) {
|
467
|
-
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$
|
467
|
+
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
468
468
|
emitter.removeListener(eventType, deregister);
|
469
469
|
}
|
470
470
|
};
|
471
471
|
this.getOrCreateEmitter = () => {
|
472
|
-
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$
|
472
|
+
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
473
473
|
if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
|
474
474
|
emitter.on('removeListener', this.cleanUpRemovedListener);
|
475
475
|
}
|
@@ -511,8 +511,8 @@ class EmitterBase extends Base {
|
|
511
511
|
// This will only be reached if unsubscribe from event that does not exist but do not want to error here
|
512
512
|
return Promise.resolve();
|
513
513
|
};
|
514
|
-
__classPrivateFieldSet$
|
515
|
-
__classPrivateFieldSet$
|
514
|
+
__classPrivateFieldSet$h(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
|
515
|
+
__classPrivateFieldSet$h(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
|
516
516
|
this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
|
517
517
|
}
|
518
518
|
/**
|
@@ -541,7 +541,7 @@ class EmitterBase extends Base {
|
|
541
541
|
*/
|
542
542
|
async once(eventType, listener, options) {
|
543
543
|
const deregister = () => this.deregisterEventListener(eventType);
|
544
|
-
__classPrivateFieldGet$
|
544
|
+
__classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
|
545
545
|
await this.registerEventListener(eventType, options, (emitter) => {
|
546
546
|
emitter.once(eventType, deregister);
|
547
547
|
emitter.once(eventType, listener);
|
@@ -572,7 +572,7 @@ class EmitterBase extends Base {
|
|
572
572
|
*/
|
573
573
|
async prependOnceListener(eventType, listener, options) {
|
574
574
|
const deregister = () => this.deregisterEventListener(eventType);
|
575
|
-
__classPrivateFieldGet$
|
575
|
+
__classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
|
576
576
|
await this.registerEventListener(eventType, options, (emitter) => {
|
577
577
|
emitter.prependOnceListener(eventType, listener);
|
578
578
|
emitter.once(eventType, deregister);
|
@@ -632,7 +632,7 @@ class EmitterBase extends Base {
|
|
632
632
|
}
|
633
633
|
deleteEmitterIfNothingRegistered(emitter) {
|
634
634
|
if (emitter.eventNames().every((type) => type === 'removeListener')) {
|
635
|
-
this.wire.eventAggregator.delete(__classPrivateFieldGet$
|
635
|
+
this.wire.eventAggregator.delete(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
636
636
|
}
|
637
637
|
}
|
638
638
|
}
|
@@ -1083,8 +1083,8 @@ var main = {};
|
|
1083
1083
|
|
1084
1084
|
Object.defineProperty(main, "__esModule", { value: true });
|
1085
1085
|
main.WebContents = void 0;
|
1086
|
-
const base_1$
|
1087
|
-
class WebContents extends base_1$
|
1086
|
+
const base_1$n = base;
|
1087
|
+
class WebContents extends base_1$n.EmitterBase {
|
1088
1088
|
/**
|
1089
1089
|
* @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
|
1090
1090
|
* @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
|
@@ -4044,6 +4044,37 @@ function requireInstance () {
|
|
4044
4044
|
getAllFrames() {
|
4045
4045
|
return this.wire.sendAction('get-all-frames', this.identity).then(({ payload }) => payload.data);
|
4046
4046
|
}
|
4047
|
+
/**
|
4048
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
4049
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
4050
|
+
* it will return false.
|
4051
|
+
*
|
4052
|
+
* @example
|
4053
|
+
* ```js
|
4054
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
4055
|
+
*
|
4056
|
+
* win.getCurrentViews()
|
4057
|
+
* .then(([view1]) => {
|
4058
|
+
* return win.activateAndFocus(view1.identity);
|
4059
|
+
* })
|
4060
|
+
* .then(success => {
|
4061
|
+
* if (success) {
|
4062
|
+
* console.log('Window activated and child focused');
|
4063
|
+
* } else {
|
4064
|
+
* console.log('Window activation failed, focus state unchanged');
|
4065
|
+
* }
|
4066
|
+
* })
|
4067
|
+
* .catch(console.error);
|
4068
|
+
* ```
|
4069
|
+
*/
|
4070
|
+
activateAndFocus(childIdentityToFocus) {
|
4071
|
+
return this.wire
|
4072
|
+
.sendAction('activate-window-and-focus', {
|
4073
|
+
winIdentity: this.identity,
|
4074
|
+
focusIdentity: childIdentityToFocus
|
4075
|
+
})
|
4076
|
+
.then(({ payload }) => payload.data);
|
4077
|
+
}
|
4047
4078
|
/**
|
4048
4079
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
4049
4080
|
*
|
@@ -4995,6 +5026,9 @@ function requireInstance () {
|
|
4995
5026
|
* ```
|
4996
5027
|
*/
|
4997
5028
|
updateOptions(options) {
|
5029
|
+
if ('frame' in options) {
|
5030
|
+
console.warn(`Deprecation Warning: Starting with version 45 it will not be possible to change the frame value after window has been created.`);
|
5031
|
+
}
|
4998
5032
|
return this.wire.sendAction('update-window-options', { options, ...this.identity }).then(() => undefined);
|
4999
5033
|
}
|
5000
5034
|
/**
|
@@ -5398,7 +5432,7 @@ function requireWindow () {
|
|
5398
5432
|
*/
|
5399
5433
|
Object.defineProperty(system, "__esModule", { value: true });
|
5400
5434
|
system.System = void 0;
|
5401
|
-
const base_1$
|
5435
|
+
const base_1$m = base;
|
5402
5436
|
const transport_errors_1$5 = transportErrors;
|
5403
5437
|
const window_1 = requireWindow();
|
5404
5438
|
const events_1$6 = require$$0;
|
@@ -5408,7 +5442,7 @@ const events_1$6 = require$$0;
|
|
5408
5442
|
* clearing the cache and exiting the runtime as well as listen to {@link OpenFin.SystemEvents system events}.
|
5409
5443
|
*
|
5410
5444
|
*/
|
5411
|
-
class System extends base_1$
|
5445
|
+
class System extends base_1$m.EmitterBase {
|
5412
5446
|
/**
|
5413
5447
|
* @internal
|
5414
5448
|
*/
|
@@ -7719,12 +7753,12 @@ class ChannelError extends Error {
|
|
7719
7753
|
}
|
7720
7754
|
channelError.ChannelError = ChannelError;
|
7721
7755
|
|
7722
|
-
var __classPrivateFieldGet$
|
7756
|
+
var __classPrivateFieldGet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
7723
7757
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
7724
7758
|
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");
|
7725
7759
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
7726
7760
|
};
|
7727
|
-
var __classPrivateFieldSet$
|
7761
|
+
var __classPrivateFieldSet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
7728
7762
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
7729
7763
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
7730
7764
|
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");
|
@@ -7768,7 +7802,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
|
|
7768
7802
|
static closeChannelByEndpointId(id) {
|
7769
7803
|
const channel = channelClientsByEndpointId.get(id);
|
7770
7804
|
if (channel) {
|
7771
|
-
__classPrivateFieldGet$
|
7805
|
+
__classPrivateFieldGet$h(channel, _ChannelClient_close, "f").call(channel);
|
7772
7806
|
}
|
7773
7807
|
}
|
7774
7808
|
/**
|
@@ -7779,7 +7813,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
|
|
7779
7813
|
for (const channelClient of channelClientsByEndpointId.values()) {
|
7780
7814
|
if (channelClient.providerIdentity.channelId === eventPayload.channelId) {
|
7781
7815
|
channelClient.disconnectListener(eventPayload);
|
7782
|
-
__classPrivateFieldGet$
|
7816
|
+
__classPrivateFieldGet$h(channelClient, _ChannelClient_close, "f").call(channelClient);
|
7783
7817
|
}
|
7784
7818
|
}
|
7785
7819
|
}
|
@@ -7794,12 +7828,12 @@ class ChannelClient extends channel_1$1.ChannelBase {
|
|
7794
7828
|
this.processAction = (action, payload, senderIdentity) => super.processAction(action, payload, senderIdentity);
|
7795
7829
|
_ChannelClient_close.set(this, () => {
|
7796
7830
|
channelClientsByEndpointId.delete(this.endpointId);
|
7797
|
-
__classPrivateFieldGet$
|
7831
|
+
__classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").close();
|
7798
7832
|
});
|
7799
|
-
__classPrivateFieldSet$
|
7833
|
+
__classPrivateFieldSet$g(this, _ChannelClient_protectedObj, new channel_1$1.ProtectedItems(routingInfo, close), "f");
|
7800
7834
|
this.disconnectListener = () => undefined;
|
7801
7835
|
this.endpointId = routingInfo.endpointId;
|
7802
|
-
__classPrivateFieldSet$
|
7836
|
+
__classPrivateFieldSet$g(this, _ChannelClient_strategy, strategy, "f");
|
7803
7837
|
channelClientsByEndpointId.set(this.endpointId, this);
|
7804
7838
|
strategy.receive(this.processAction);
|
7805
7839
|
}
|
@@ -7807,7 +7841,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
|
|
7807
7841
|
* a read-only provider identity
|
7808
7842
|
*/
|
7809
7843
|
get providerIdentity() {
|
7810
|
-
const protectedObj = __classPrivateFieldGet$
|
7844
|
+
const protectedObj = __classPrivateFieldGet$h(this, _ChannelClient_protectedObj, "f");
|
7811
7845
|
return protectedObj.providerIdentity;
|
7812
7846
|
}
|
7813
7847
|
/**
|
@@ -7836,9 +7870,9 @@ class ChannelClient extends channel_1$1.ChannelBase {
|
|
7836
7870
|
* ```
|
7837
7871
|
*/
|
7838
7872
|
async dispatch(action, payload) {
|
7839
|
-
if (__classPrivateFieldGet$
|
7873
|
+
if (__classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
|
7840
7874
|
const callSites = transport_errors_1$2.RuntimeError.getCallSite();
|
7841
|
-
return __classPrivateFieldGet$
|
7875
|
+
return __classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
|
7842
7876
|
throw new channel_error_1$1.ChannelError(e, action, payload, callSites);
|
7843
7877
|
});
|
7844
7878
|
}
|
@@ -7890,10 +7924,10 @@ class ChannelClient extends channel_1$1.ChannelBase {
|
|
7890
7924
|
*/
|
7891
7925
|
async disconnect() {
|
7892
7926
|
await this.sendDisconnectAction();
|
7893
|
-
__classPrivateFieldGet$
|
7927
|
+
__classPrivateFieldGet$h(this, _ChannelClient_close, "f").call(this);
|
7894
7928
|
}
|
7895
7929
|
async sendDisconnectAction() {
|
7896
|
-
const protectedObj = __classPrivateFieldGet$
|
7930
|
+
const protectedObj = __classPrivateFieldGet$h(this, _ChannelClient_protectedObj, "f");
|
7897
7931
|
await protectedObj.close();
|
7898
7932
|
}
|
7899
7933
|
/**
|
@@ -7926,13 +7960,13 @@ exhaustive.exhaustiveCheck = exhaustiveCheck;
|
|
7926
7960
|
|
7927
7961
|
var strategy$3 = {};
|
7928
7962
|
|
7929
|
-
var __classPrivateFieldSet$
|
7963
|
+
var __classPrivateFieldSet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
7930
7964
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
7931
7965
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
7932
7966
|
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");
|
7933
7967
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
7934
7968
|
};
|
7935
|
-
var __classPrivateFieldGet$
|
7969
|
+
var __classPrivateFieldGet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
7936
7970
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
7937
7971
|
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");
|
7938
7972
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -7957,7 +7991,7 @@ class ClassicStrategy {
|
|
7957
7991
|
// connection problems occur
|
7958
7992
|
_ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map());
|
7959
7993
|
this.send = async (endpointId, action, payload) => {
|
7960
|
-
const to = __classPrivateFieldGet$
|
7994
|
+
const to = __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
|
7961
7995
|
if (!to) {
|
7962
7996
|
throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
|
7963
7997
|
}
|
@@ -7969,13 +8003,13 @@ class ClassicStrategy {
|
|
7969
8003
|
}
|
7970
8004
|
delete cleanId.isLocalEndpointId;
|
7971
8005
|
// grab the promise before awaiting it to save in our pending messages map
|
7972
|
-
const p = __classPrivateFieldGet$
|
8006
|
+
const p = __classPrivateFieldGet$g(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
|
7973
8007
|
...cleanId,
|
7974
8008
|
providerIdentity: this.providerIdentity,
|
7975
8009
|
action,
|
7976
8010
|
payload
|
7977
8011
|
});
|
7978
|
-
__classPrivateFieldGet$
|
8012
|
+
__classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
|
7979
8013
|
const raw = await p
|
7980
8014
|
.catch((error) => {
|
7981
8015
|
if ('cause' in error) {
|
@@ -7985,16 +8019,16 @@ class ClassicStrategy {
|
|
7985
8019
|
})
|
7986
8020
|
.finally(() => {
|
7987
8021
|
// clean up the pending promise
|
7988
|
-
__classPrivateFieldGet$
|
8022
|
+
__classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
|
7989
8023
|
});
|
7990
8024
|
return raw.payload.data.result;
|
7991
8025
|
};
|
7992
8026
|
this.close = async () => {
|
7993
8027
|
this.messageReceiver.removeEndpoint(this.providerIdentity.channelId, this.endpointId);
|
7994
|
-
[...__classPrivateFieldGet$
|
7995
|
-
__classPrivateFieldSet$
|
8028
|
+
[...__classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
|
8029
|
+
__classPrivateFieldSet$f(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
|
7996
8030
|
};
|
7997
|
-
__classPrivateFieldSet$
|
8031
|
+
__classPrivateFieldSet$f(this, _ClassicStrategy_wire, wire, "f");
|
7998
8032
|
}
|
7999
8033
|
onEndpointDisconnect(endpointId, listener) {
|
8000
8034
|
// Never fires for 'classic'.
|
@@ -8003,20 +8037,20 @@ class ClassicStrategy {
|
|
8003
8037
|
this.messageReceiver.addEndpoint(listener, this.providerIdentity.channelId, this.endpointId);
|
8004
8038
|
}
|
8005
8039
|
async closeEndpoint(endpointId) {
|
8006
|
-
const id = __classPrivateFieldGet$
|
8007
|
-
__classPrivateFieldGet$
|
8008
|
-
const pendingSet = __classPrivateFieldGet$
|
8040
|
+
const id = __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
|
8041
|
+
__classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
|
8042
|
+
const pendingSet = __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
|
8009
8043
|
pendingSet?.forEach((p) => {
|
8010
8044
|
const errorMsg = `Channel connection with identity uuid: ${id?.uuid} / name: ${id?.name} / endpointId: ${endpointId} no longer connected.`;
|
8011
8045
|
p.cancel(new Error(errorMsg));
|
8012
8046
|
});
|
8013
8047
|
}
|
8014
8048
|
isEndpointConnected(endpointId) {
|
8015
|
-
return __classPrivateFieldGet$
|
8049
|
+
return __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
|
8016
8050
|
}
|
8017
8051
|
addEndpoint(endpointId, payload) {
|
8018
|
-
__classPrivateFieldGet$
|
8019
|
-
__classPrivateFieldGet$
|
8052
|
+
__classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
|
8053
|
+
__classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
|
8020
8054
|
}
|
8021
8055
|
isValidEndpointPayload(payload) {
|
8022
8056
|
return (typeof payload?.endpointIdentity?.endpointId === 'string' ||
|
@@ -8051,12 +8085,12 @@ function errorToPOJO(error) {
|
|
8051
8085
|
}
|
8052
8086
|
errors.errorToPOJO = errorToPOJO;
|
8053
8087
|
|
8054
|
-
var __classPrivateFieldGet$
|
8088
|
+
var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8055
8089
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
8056
8090
|
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");
|
8057
8091
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
8058
8092
|
};
|
8059
|
-
var __classPrivateFieldSet$
|
8093
|
+
var __classPrivateFieldSet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
8060
8094
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
8061
8095
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
8062
8096
|
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");
|
@@ -8091,8 +8125,8 @@ class RTCEndpoint {
|
|
8091
8125
|
if (this.rtc.rtcClient.connectionState !== 'connected') {
|
8092
8126
|
this.rtc.rtcClient.removeEventListener('connectionstatechange', this.connectionStateChangeHandler);
|
8093
8127
|
this.close();
|
8094
|
-
if (__classPrivateFieldGet$
|
8095
|
-
__classPrivateFieldGet$
|
8128
|
+
if (__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
|
8129
|
+
__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f").call(this);
|
8096
8130
|
}
|
8097
8131
|
}
|
8098
8132
|
};
|
@@ -8140,9 +8174,9 @@ class RTCEndpoint {
|
|
8140
8174
|
data = new TextDecoder().decode(e.data);
|
8141
8175
|
}
|
8142
8176
|
const { messageId, action, payload } = JSON.parse(data);
|
8143
|
-
if (__classPrivateFieldGet$
|
8177
|
+
if (__classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f")) {
|
8144
8178
|
try {
|
8145
|
-
const res = await __classPrivateFieldGet$
|
8179
|
+
const res = await __classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
|
8146
8180
|
this.rtc.channels.response.send(JSON.stringify({
|
8147
8181
|
messageId,
|
8148
8182
|
payload: res,
|
@@ -8176,25 +8210,25 @@ class RTCEndpoint {
|
|
8176
8210
|
datachannel.onclose = (e) => {
|
8177
8211
|
[...this.responseMap.values()].forEach((promise) => promise.reject(new Error('RTCDataChannel closed unexpectedly, this is most commonly caused by message size. Note: RTC Channels have a message size limit of ~255kB.')));
|
8178
8212
|
this.close();
|
8179
|
-
if (__classPrivateFieldGet$
|
8180
|
-
__classPrivateFieldGet$
|
8213
|
+
if (__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
|
8214
|
+
__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f").call(this);
|
8181
8215
|
}
|
8182
8216
|
};
|
8183
8217
|
});
|
8184
8218
|
}
|
8185
8219
|
onDisconnect(listener) {
|
8186
|
-
if (!__classPrivateFieldGet$
|
8187
|
-
__classPrivateFieldSet$
|
8220
|
+
if (!__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
|
8221
|
+
__classPrivateFieldSet$e(this, _RTCEndpoint_disconnectListener, listener, "f");
|
8188
8222
|
}
|
8189
8223
|
else {
|
8190
8224
|
throw new Error('RTCEndpoint disconnectListener cannot be set twice.');
|
8191
8225
|
}
|
8192
8226
|
}
|
8193
8227
|
receive(listener) {
|
8194
|
-
if (__classPrivateFieldGet$
|
8228
|
+
if (__classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f")) {
|
8195
8229
|
throw new Error('You have already set a listener for this RTC Endpoint.');
|
8196
8230
|
}
|
8197
|
-
__classPrivateFieldSet$
|
8231
|
+
__classPrivateFieldSet$e(this, _RTCEndpoint_processAction, listener, "f");
|
8198
8232
|
}
|
8199
8233
|
get connected() {
|
8200
8234
|
return this.rtc.rtcClient.connectionState === 'connected';
|
@@ -8205,12 +8239,12 @@ _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = ne
|
|
8205
8239
|
|
8206
8240
|
var strategy$1 = {};
|
8207
8241
|
|
8208
|
-
var __classPrivateFieldGet$
|
8242
|
+
var __classPrivateFieldGet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8209
8243
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
8210
8244
|
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");
|
8211
8245
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
8212
8246
|
};
|
8213
|
-
var __classPrivateFieldSet$
|
8247
|
+
var __classPrivateFieldSet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
8214
8248
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
8215
8249
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
8216
8250
|
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");
|
@@ -8231,11 +8265,11 @@ class EndpointStrategy {
|
|
8231
8265
|
return this.getEndpointById(endpointId).send(action, payload);
|
8232
8266
|
};
|
8233
8267
|
this.close = async () => {
|
8234
|
-
if (__classPrivateFieldGet$
|
8235
|
-
__classPrivateFieldGet$
|
8236
|
-
__classPrivateFieldSet$
|
8268
|
+
if (__classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f")) {
|
8269
|
+
__classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
|
8270
|
+
__classPrivateFieldSet$d(this, _EndpointStrategy_endpointMap, new Map(), "f");
|
8237
8271
|
}
|
8238
|
-
__classPrivateFieldSet$
|
8272
|
+
__classPrivateFieldSet$d(this, _EndpointStrategy_connected, false, "f");
|
8239
8273
|
};
|
8240
8274
|
this.isValidEndpointPayload = validateEndpoint;
|
8241
8275
|
}
|
@@ -8243,39 +8277,39 @@ class EndpointStrategy {
|
|
8243
8277
|
this.getEndpointById(endpointId).onDisconnect(listener);
|
8244
8278
|
}
|
8245
8279
|
receive(listener) {
|
8246
|
-
if (__classPrivateFieldGet$
|
8280
|
+
if (__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")) {
|
8247
8281
|
throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
|
8248
8282
|
}
|
8249
|
-
__classPrivateFieldSet$
|
8283
|
+
__classPrivateFieldSet$d(this, _EndpointStrategy_processAction, listener, "f");
|
8250
8284
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
8251
|
-
__classPrivateFieldGet$
|
8285
|
+
__classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")));
|
8252
8286
|
}
|
8253
8287
|
getEndpointById(endpointId) {
|
8254
|
-
const endpoint = __classPrivateFieldGet$
|
8288
|
+
const endpoint = __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
|
8255
8289
|
if (!endpoint) {
|
8256
8290
|
throw new Error(`Client with endpoint id ${endpointId} is not connected`);
|
8257
8291
|
}
|
8258
8292
|
return endpoint;
|
8259
8293
|
}
|
8260
8294
|
get connected() {
|
8261
|
-
return __classPrivateFieldGet$
|
8295
|
+
return __classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f");
|
8262
8296
|
}
|
8263
8297
|
isEndpointConnected(endpointId) {
|
8264
|
-
return __classPrivateFieldGet$
|
8298
|
+
return __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
|
8265
8299
|
}
|
8266
8300
|
addEndpoint(endpointId, payload) {
|
8267
|
-
if (!__classPrivateFieldGet$
|
8301
|
+
if (!__classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f")) {
|
8268
8302
|
console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
|
8269
8303
|
return;
|
8270
8304
|
}
|
8271
8305
|
const clientStrat = new this.EndpointType(payload);
|
8272
|
-
if (__classPrivateFieldGet$
|
8273
|
-
clientStrat.receive(__classPrivateFieldGet$
|
8306
|
+
if (__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")) {
|
8307
|
+
clientStrat.receive(__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f"));
|
8274
8308
|
}
|
8275
|
-
__classPrivateFieldGet$
|
8309
|
+
__classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
|
8276
8310
|
}
|
8277
8311
|
async closeEndpoint(endpointId) {
|
8278
|
-
__classPrivateFieldGet$
|
8312
|
+
__classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
|
8279
8313
|
}
|
8280
8314
|
}
|
8281
8315
|
strategy$1.EndpointStrategy = EndpointStrategy;
|
@@ -8302,11 +8336,11 @@ var iceManager = {};
|
|
8302
8336
|
|
8303
8337
|
Object.defineProperty(iceManager, "__esModule", { value: true });
|
8304
8338
|
iceManager.RTCICEManager = void 0;
|
8305
|
-
const base_1$
|
8339
|
+
const base_1$l = base;
|
8306
8340
|
/*
|
8307
8341
|
Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
|
8308
8342
|
*/
|
8309
|
-
class RTCICEManager extends base_1$
|
8343
|
+
class RTCICEManager extends base_1$l.EmitterBase {
|
8310
8344
|
constructor(wire) {
|
8311
8345
|
super(wire, 'channel');
|
8312
8346
|
this.ensureChannelOpened = (channel) => {
|
@@ -8457,12 +8491,12 @@ function runtimeUuidMeetsMinimumRuntimeVersion(runtimeUuid, minVersion) {
|
|
8457
8491
|
}
|
8458
8492
|
runtimeVersioning.runtimeUuidMeetsMinimumRuntimeVersion = runtimeUuidMeetsMinimumRuntimeVersion;
|
8459
8493
|
|
8460
|
-
var __classPrivateFieldGet$
|
8494
|
+
var __classPrivateFieldGet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8461
8495
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
8462
8496
|
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");
|
8463
8497
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
8464
8498
|
};
|
8465
|
-
var __classPrivateFieldSet$
|
8499
|
+
var __classPrivateFieldSet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
8466
8500
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
8467
8501
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
8468
8502
|
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");
|
@@ -8506,19 +8540,19 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8506
8540
|
* a read-only array containing all the identities of connecting clients.
|
8507
8541
|
*/
|
8508
8542
|
get connections() {
|
8509
|
-
return [...__classPrivateFieldGet$
|
8543
|
+
return [...__classPrivateFieldGet$d(this, _ChannelProvider_connections, "f")];
|
8510
8544
|
}
|
8511
8545
|
static handleClientDisconnection(channel, payload) {
|
8512
8546
|
if (payload?.endpointId) {
|
8513
8547
|
const { uuid, name, endpointId, isLocalEndpointId } = payload;
|
8514
|
-
__classPrivateFieldGet$
|
8548
|
+
__classPrivateFieldGet$d(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
|
8515
8549
|
}
|
8516
8550
|
else {
|
8517
8551
|
// this is here to support older runtimes that did not have endpointId
|
8518
8552
|
const multipleRemoves = channel.connections.filter((identity) => {
|
8519
8553
|
return identity.uuid === payload.uuid && identity.name === payload.name;
|
8520
8554
|
});
|
8521
|
-
multipleRemoves.forEach(__classPrivateFieldGet$
|
8555
|
+
multipleRemoves.forEach(__classPrivateFieldGet$d(channel, _ChannelProvider_removeEndpoint, "f"));
|
8522
8556
|
}
|
8523
8557
|
channel.disconnectListener(payload);
|
8524
8558
|
}
|
@@ -8535,8 +8569,8 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8535
8569
|
_ChannelProvider_strategy.set(this, void 0);
|
8536
8570
|
_ChannelProvider_removeEndpoint.set(this, (identity) => {
|
8537
8571
|
const remainingConnections = this.connections.filter((clientIdentity) => clientIdentity.endpointId !== identity.endpointId);
|
8538
|
-
__classPrivateFieldGet$
|
8539
|
-
__classPrivateFieldSet$
|
8572
|
+
__classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
|
8573
|
+
__classPrivateFieldSet$c(this, _ChannelProvider_connections, remainingConnections, "f");
|
8540
8574
|
});
|
8541
8575
|
// Must be bound.
|
8542
8576
|
this.processAction = async (action, payload, senderIdentity) => {
|
@@ -8550,17 +8584,17 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8550
8584
|
return super.processAction(action, payload, senderIdentity);
|
8551
8585
|
};
|
8552
8586
|
_ChannelProvider_close.set(this, () => {
|
8553
|
-
__classPrivateFieldGet$
|
8587
|
+
__classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").close();
|
8554
8588
|
const remove = ChannelProvider.removalMap.get(this);
|
8555
8589
|
if (remove) {
|
8556
8590
|
remove();
|
8557
8591
|
}
|
8558
8592
|
});
|
8559
|
-
__classPrivateFieldSet$
|
8593
|
+
__classPrivateFieldSet$c(this, _ChannelProvider_protectedObj, new channel_1.ProtectedItems(providerIdentity, close), "f");
|
8560
8594
|
this.connectListener = () => undefined;
|
8561
8595
|
this.disconnectListener = () => undefined;
|
8562
|
-
__classPrivateFieldSet$
|
8563
|
-
__classPrivateFieldSet$
|
8596
|
+
__classPrivateFieldSet$c(this, _ChannelProvider_connections, [], "f");
|
8597
|
+
__classPrivateFieldSet$c(this, _ChannelProvider_strategy, strategy, "f");
|
8564
8598
|
strategy.receive(this.processAction);
|
8565
8599
|
}
|
8566
8600
|
/**
|
@@ -8591,16 +8625,16 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8591
8625
|
*/
|
8592
8626
|
dispatch(to, action, payload) {
|
8593
8627
|
const endpointId = to.endpointId ?? this.getEndpointIdForOpenFinId(to, action);
|
8594
|
-
if (endpointId && __classPrivateFieldGet$
|
8628
|
+
if (endpointId && __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
|
8595
8629
|
const callSites = transport_errors_1$1.RuntimeError.getCallSite();
|
8596
|
-
return __classPrivateFieldGet$
|
8630
|
+
return __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
|
8597
8631
|
throw new channel_error_1.ChannelError(e, action, payload, callSites);
|
8598
8632
|
});
|
8599
8633
|
}
|
8600
8634
|
return Promise.reject(new Error(`Client connection with identity uuid: ${to.uuid} / name: ${to.name} / endpointId: ${endpointId} no longer connected.`));
|
8601
8635
|
}
|
8602
8636
|
async processConnection(senderId, payload) {
|
8603
|
-
__classPrivateFieldGet$
|
8637
|
+
__classPrivateFieldGet$d(this, _ChannelProvider_connections, "f").push(senderId);
|
8604
8638
|
return this.connectListener(senderId, payload);
|
8605
8639
|
}
|
8606
8640
|
/**
|
@@ -8623,7 +8657,7 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8623
8657
|
* ```
|
8624
8658
|
*/
|
8625
8659
|
publish(action, payload) {
|
8626
|
-
return this.connections.map((to) => __classPrivateFieldGet$
|
8660
|
+
return this.connections.map((to) => __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
|
8627
8661
|
}
|
8628
8662
|
/**
|
8629
8663
|
* Register a listener that is called on every new client connection.
|
@@ -8697,11 +8731,11 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8697
8731
|
* ```
|
8698
8732
|
*/
|
8699
8733
|
async destroy() {
|
8700
|
-
const protectedObj = __classPrivateFieldGet$
|
8734
|
+
const protectedObj = __classPrivateFieldGet$d(this, _ChannelProvider_protectedObj, "f");
|
8701
8735
|
protectedObj.providerIdentity;
|
8702
|
-
__classPrivateFieldSet$
|
8736
|
+
__classPrivateFieldSet$c(this, _ChannelProvider_connections, [], "f");
|
8703
8737
|
await protectedObj.close();
|
8704
|
-
__classPrivateFieldGet$
|
8738
|
+
__classPrivateFieldGet$d(this, _ChannelProvider_close, "f").call(this);
|
8705
8739
|
}
|
8706
8740
|
/**
|
8707
8741
|
* Returns an array with info on every Client connected to the Provider
|
@@ -8771,7 +8805,7 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8771
8805
|
getEndpointIdForOpenFinId(clientIdentity, action) {
|
8772
8806
|
const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
|
8773
8807
|
if (matchingConnections.length >= 2) {
|
8774
|
-
const protectedObj = __classPrivateFieldGet$
|
8808
|
+
const protectedObj = __classPrivateFieldGet$d(this, _ChannelProvider_protectedObj, "f");
|
8775
8809
|
const { uuid, name } = clientIdentity;
|
8776
8810
|
const providerUuid = protectedObj?.providerIdentity.uuid;
|
8777
8811
|
const providerName = protectedObj?.providerIdentity.name;
|
@@ -8807,14 +8841,14 @@ var messageReceiver = {};
|
|
8807
8841
|
Object.defineProperty(messageReceiver, "__esModule", { value: true });
|
8808
8842
|
messageReceiver.MessageReceiver = void 0;
|
8809
8843
|
const client_1$1 = client;
|
8810
|
-
const base_1$
|
8844
|
+
const base_1$k = base;
|
8811
8845
|
const errors_1$1 = errors;
|
8812
8846
|
/*
|
8813
8847
|
This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
|
8814
8848
|
It needs to be a singleton because there can only be one per wire. It tracks both clients and providers' processAction passed in via the strategy.
|
8815
8849
|
If functionality is not about receiving messages, it does not belong here.
|
8816
8850
|
*/
|
8817
|
-
class MessageReceiver extends base_1$
|
8851
|
+
class MessageReceiver extends base_1$k.Base {
|
8818
8852
|
constructor(wire) {
|
8819
8853
|
super(wire);
|
8820
8854
|
this.onmessage = (msg) => {
|
@@ -8983,13 +9017,13 @@ class CombinedStrategy {
|
|
8983
9017
|
}
|
8984
9018
|
strategy.default = CombinedStrategy;
|
8985
9019
|
|
8986
|
-
var __classPrivateFieldSet$
|
9020
|
+
var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
8987
9021
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
8988
9022
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
8989
9023
|
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");
|
8990
9024
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
8991
9025
|
};
|
8992
|
-
var __classPrivateFieldGet$
|
9026
|
+
var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8993
9027
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
8994
9028
|
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");
|
8995
9029
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -9001,7 +9035,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
|
|
9001
9035
|
Object.defineProperty(connectionManager, "__esModule", { value: true });
|
9002
9036
|
connectionManager.ConnectionManager = void 0;
|
9003
9037
|
const exhaustive_1 = exhaustive;
|
9004
|
-
const base_1$
|
9038
|
+
const base_1$j = base;
|
9005
9039
|
const strategy_1 = strategy$3;
|
9006
9040
|
const strategy_2 = strategy$2;
|
9007
9041
|
const ice_manager_1 = iceManager;
|
@@ -9009,7 +9043,7 @@ const provider_1$1 = provider;
|
|
9009
9043
|
const message_receiver_1 = messageReceiver;
|
9010
9044
|
const protocol_manager_1 = protocolManager;
|
9011
9045
|
const strategy_3 = __importDefault$5(strategy);
|
9012
|
-
class ConnectionManager extends base_1$
|
9046
|
+
class ConnectionManager extends base_1$j.Base {
|
9013
9047
|
static getProtocolOptionsFromStrings(protocols) {
|
9014
9048
|
return protocols.map((protocol) => {
|
9015
9049
|
switch (protocol) {
|
@@ -9038,8 +9072,8 @@ class ConnectionManager extends base_1$i.Base {
|
|
9038
9072
|
};
|
9039
9073
|
this.providerMap = new Map();
|
9040
9074
|
this.protocolManager = new protocol_manager_1.ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
|
9041
|
-
__classPrivateFieldSet$
|
9042
|
-
__classPrivateFieldSet$
|
9075
|
+
__classPrivateFieldSet$b(this, _ConnectionManager_messageReceiver, new message_receiver_1.MessageReceiver(wire), "f");
|
9076
|
+
__classPrivateFieldSet$b(this, _ConnectionManager_rtcConnectionManager, new ice_manager_1.RTCICEManager(wire), "f");
|
9043
9077
|
wire.registerMessageHandler(this.onmessage.bind(this));
|
9044
9078
|
}
|
9045
9079
|
createProvider(options, providerIdentity) {
|
@@ -9050,7 +9084,7 @@ class ConnectionManager extends base_1$i.Base {
|
|
9050
9084
|
case 'rtc':
|
9051
9085
|
return new strategy_2.RTCStrategy();
|
9052
9086
|
case 'classic':
|
9053
|
-
return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$
|
9087
|
+
return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f"),
|
9054
9088
|
// Providers do not have an endpointId, use channelId as endpointId in the strategy.
|
9055
9089
|
providerIdentity.channelId, providerIdentity);
|
9056
9090
|
default:
|
@@ -9086,7 +9120,7 @@ class ConnectionManager extends base_1$i.Base {
|
|
9086
9120
|
const supportedProtocols = await Promise.all(protocols.map(async (type) => {
|
9087
9121
|
switch (type) {
|
9088
9122
|
case 'rtc': {
|
9089
|
-
const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$
|
9123
|
+
const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
|
9090
9124
|
rtcPacket = { rtcClient, channels, channelsOpened };
|
9091
9125
|
return {
|
9092
9126
|
type: 'rtc',
|
@@ -9113,18 +9147,18 @@ class ConnectionManager extends base_1$i.Base {
|
|
9113
9147
|
routingInfo.endpointId = this.wire.environment.getNextMessageId();
|
9114
9148
|
// For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
|
9115
9149
|
// clients that are in the same context as the newly-connected client.
|
9116
|
-
__classPrivateFieldGet$
|
9150
|
+
__classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
|
9117
9151
|
}
|
9118
9152
|
const answer = routingInfo.answer ?? {
|
9119
9153
|
supportedProtocols: [{ type: 'classic', version: 1 }]
|
9120
9154
|
};
|
9121
9155
|
const createStrategyFromAnswer = async (protocol) => {
|
9122
9156
|
if (protocol.type === 'rtc' && rtcPacket) {
|
9123
|
-
await __classPrivateFieldGet$
|
9157
|
+
await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
|
9124
9158
|
return new strategy_2.RTCStrategy();
|
9125
9159
|
}
|
9126
9160
|
if (protocol.type === 'classic') {
|
9127
|
-
return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$
|
9161
|
+
return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
|
9128
9162
|
}
|
9129
9163
|
return null;
|
9130
9164
|
};
|
@@ -9192,7 +9226,7 @@ class ConnectionManager extends base_1$i.Base {
|
|
9192
9226
|
clientAnswer = await overlappingProtocols.reduce(async (accumP, protocolToUse) => {
|
9193
9227
|
const answer = await accumP;
|
9194
9228
|
if (protocolToUse.type === 'rtc') {
|
9195
|
-
const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$
|
9229
|
+
const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
|
9196
9230
|
answer.supportedProtocols.push({
|
9197
9231
|
type: 'rtc',
|
9198
9232
|
version: strategy_2.RTCInfo.version,
|
@@ -9240,13 +9274,13 @@ _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnec
|
|
9240
9274
|
*
|
9241
9275
|
* @packageDocumentation
|
9242
9276
|
*/
|
9243
|
-
var __classPrivateFieldSet$
|
9277
|
+
var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
9244
9278
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
9245
9279
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
9246
9280
|
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");
|
9247
9281
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
9248
9282
|
};
|
9249
|
-
var __classPrivateFieldGet$
|
9283
|
+
var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
9250
9284
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
9251
9285
|
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");
|
9252
9286
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -9256,8 +9290,8 @@ Object.defineProperty(channel$1, "__esModule", { value: true });
|
|
9256
9290
|
channel$1.Channel = void 0;
|
9257
9291
|
/* eslint-disable no-console */
|
9258
9292
|
const events_1$5 = require$$0;
|
9259
|
-
const lazy_1$
|
9260
|
-
const base_1$
|
9293
|
+
const lazy_1$3 = lazy;
|
9294
|
+
const base_1$i = base;
|
9261
9295
|
const client_1 = client;
|
9262
9296
|
const connection_manager_1 = connectionManager;
|
9263
9297
|
const provider_1 = provider;
|
@@ -9288,7 +9322,7 @@ function retryDelay(count) {
|
|
9288
9322
|
* * {@link Channel.onChannelConnect onChannelConnect(listener)}
|
9289
9323
|
* * {@link Channel.onChannelDisconnect onChannelDisconnect(listener)}
|
9290
9324
|
*/
|
9291
|
-
class Channel extends base_1$
|
9325
|
+
class Channel extends base_1$i.EmitterBase {
|
9292
9326
|
/**
|
9293
9327
|
* @internal
|
9294
9328
|
*/
|
@@ -9297,17 +9331,17 @@ class Channel extends base_1$h.EmitterBase {
|
|
9297
9331
|
_Channel_connectionManager.set(this, void 0);
|
9298
9332
|
_Channel_internalEmitter.set(this, new events_1$5.EventEmitter());
|
9299
9333
|
// OpenFin API has not been injected at construction time, *must* wait for API to be ready.
|
9300
|
-
_Channel_readyToConnect.set(this, new lazy_1$
|
9334
|
+
_Channel_readyToConnect.set(this, new lazy_1$3.AsyncRetryableLazy(async () => {
|
9301
9335
|
await Promise.all([
|
9302
9336
|
this.on('disconnected', (eventPayload) => {
|
9303
9337
|
client_1.ChannelClient.handleProviderDisconnect(eventPayload);
|
9304
9338
|
}),
|
9305
9339
|
this.on('connected', (...args) => {
|
9306
|
-
__classPrivateFieldGet$
|
9340
|
+
__classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").emit('connected', ...args);
|
9307
9341
|
})
|
9308
9342
|
]).catch(() => new Error('error setting up channel connection listeners'));
|
9309
9343
|
}));
|
9310
|
-
__classPrivateFieldSet$
|
9344
|
+
__classPrivateFieldSet$a(this, _Channel_connectionManager, new connection_manager_1.ConnectionManager(wire), "f");
|
9311
9345
|
}
|
9312
9346
|
/**
|
9313
9347
|
*
|
@@ -9382,7 +9416,7 @@ class Channel extends base_1$h.EmitterBase {
|
|
9382
9416
|
resolve(true);
|
9383
9417
|
}
|
9384
9418
|
};
|
9385
|
-
__classPrivateFieldGet$
|
9419
|
+
__classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
|
9386
9420
|
});
|
9387
9421
|
try {
|
9388
9422
|
if (retryInfo.count > 0) {
|
@@ -9414,7 +9448,7 @@ class Channel extends base_1$h.EmitterBase {
|
|
9414
9448
|
finally {
|
9415
9449
|
retryInfo.count += 1;
|
9416
9450
|
// in case of other errors, remove our listener
|
9417
|
-
__classPrivateFieldGet$
|
9451
|
+
__classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
|
9418
9452
|
}
|
9419
9453
|
} while (shouldWait); // If we're waiting we retry the above loop
|
9420
9454
|
// Should wait was false, no channel was found.
|
@@ -9473,12 +9507,12 @@ class Channel extends base_1$h.EmitterBase {
|
|
9473
9507
|
async connect(channelName, options = {}) {
|
9474
9508
|
// Make sure we don't connect before listeners are set up
|
9475
9509
|
// This also errors if we're not in OpenFin, ensuring we don't run unnecessary code
|
9476
|
-
await __classPrivateFieldGet$
|
9510
|
+
await __classPrivateFieldGet$b(this, _Channel_readyToConnect, "f").getValue();
|
9477
9511
|
if (!channelName || typeof channelName !== 'string') {
|
9478
9512
|
throw new Error('Please provide a channelName string to connect to a channel.');
|
9479
9513
|
}
|
9480
9514
|
const opts = { wait: true, ...this.wire.environment.getDefaultChannelOptions().connect, ...options };
|
9481
|
-
const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$
|
9515
|
+
const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createClientOffer(opts);
|
9482
9516
|
let connectionUrl;
|
9483
9517
|
if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
|
9484
9518
|
connectionUrl = (await this.fin.me.getInfo()).url;
|
@@ -9490,7 +9524,7 @@ class Channel extends base_1$h.EmitterBase {
|
|
9490
9524
|
connectionUrl
|
9491
9525
|
};
|
9492
9526
|
const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
|
9493
|
-
const strategy = await __classPrivateFieldGet$
|
9527
|
+
const strategy = await __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
|
9494
9528
|
const channel = new client_1.ChannelClient(routingInfo, () => client_1.ChannelClient.wireClose(this.wire, routingInfo, routingInfo.endpointId), strategy);
|
9495
9529
|
// It is the client's responsibility to handle endpoint disconnection to the provider.
|
9496
9530
|
// If the endpoint dies, the client will force a disconnection through the core.
|
@@ -9559,7 +9593,7 @@ class Channel extends base_1$h.EmitterBase {
|
|
9559
9593
|
throw new Error('Please provide a channelName to create a channel');
|
9560
9594
|
}
|
9561
9595
|
const { payload: { data: providerIdentity } } = await this.wire.sendAction('create-channel', { channelName });
|
9562
|
-
const channel = __classPrivateFieldGet$
|
9596
|
+
const channel = __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
|
9563
9597
|
// TODO: fix typing (internal)
|
9564
9598
|
// @ts-expect-error
|
9565
9599
|
this.on('client-disconnected', (eventPayload) => {
|
@@ -9583,7 +9617,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
|
|
9583
9617
|
* @packageDocumentation
|
9584
9618
|
*/
|
9585
9619
|
const events_1$4 = require$$0;
|
9586
|
-
const base_1$
|
9620
|
+
const base_1$h = base;
|
9587
9621
|
const ref_counter_1 = refCounter;
|
9588
9622
|
const index_1$2 = channel$1;
|
9589
9623
|
const validate_1$3 = validate;
|
@@ -9591,7 +9625,7 @@ const validate_1$3 = validate;
|
|
9591
9625
|
* A messaging bus that allows for pub/sub messaging between different applications.
|
9592
9626
|
*
|
9593
9627
|
*/
|
9594
|
-
class InterApplicationBus extends base_1$
|
9628
|
+
class InterApplicationBus extends base_1$h.Base {
|
9595
9629
|
/**
|
9596
9630
|
* @internal
|
9597
9631
|
*/
|
@@ -9797,12 +9831,12 @@ var clipboard = {};
|
|
9797
9831
|
*/
|
9798
9832
|
Object.defineProperty(clipboard, "__esModule", { value: true });
|
9799
9833
|
clipboard.Clipboard = void 0;
|
9800
|
-
const base_1$
|
9834
|
+
const base_1$g = base;
|
9801
9835
|
/**
|
9802
9836
|
* The Clipboard API allows reading and writing to the clipboard in multiple formats.
|
9803
9837
|
*
|
9804
9838
|
*/
|
9805
|
-
class Clipboard extends base_1$
|
9839
|
+
class Clipboard extends base_1$g.Base {
|
9806
9840
|
/**
|
9807
9841
|
* Writes data into the clipboard as plain text
|
9808
9842
|
* @param writeObj The object for writing data into the clipboard
|
@@ -9991,7 +10025,7 @@ var Instance$4 = {};
|
|
9991
10025
|
Object.defineProperty(Instance$4, "__esModule", { value: true });
|
9992
10026
|
Instance$4.ExternalApplication = void 0;
|
9993
10027
|
/* eslint-disable import/prefer-default-export */
|
9994
|
-
const base_1$
|
10028
|
+
const base_1$f = base;
|
9995
10029
|
/**
|
9996
10030
|
* An ExternalApplication object representing native language adapter connections to the runtime. Allows
|
9997
10031
|
* the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
|
@@ -10002,7 +10036,7 @@ const base_1$e = base;
|
|
10002
10036
|
* - Processes started via `System.launchExternalApplication`
|
10003
10037
|
* - Processes monitored via `System.monitorExternalProcess`
|
10004
10038
|
*/
|
10005
|
-
class ExternalApplication extends base_1$
|
10039
|
+
class ExternalApplication extends base_1$f.EmitterBase {
|
10006
10040
|
/**
|
10007
10041
|
* @internal
|
10008
10042
|
*/
|
@@ -10030,12 +10064,12 @@ Instance$4.ExternalApplication = ExternalApplication;
|
|
10030
10064
|
|
10031
10065
|
Object.defineProperty(Factory$5, "__esModule", { value: true });
|
10032
10066
|
Factory$5.ExternalApplicationModule = void 0;
|
10033
|
-
const base_1$
|
10067
|
+
const base_1$e = base;
|
10034
10068
|
const Instance_1$4 = Instance$4;
|
10035
10069
|
/**
|
10036
10070
|
* Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
|
10037
10071
|
*/
|
10038
|
-
class ExternalApplicationModule extends base_1$
|
10072
|
+
class ExternalApplicationModule extends base_1$e.Base {
|
10039
10073
|
/**
|
10040
10074
|
* Asynchronously returns an External Application object that represents an external application.
|
10041
10075
|
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
@@ -10117,7 +10151,7 @@ var Instance$3 = {};
|
|
10117
10151
|
Object.defineProperty(Instance$3, "__esModule", { value: true });
|
10118
10152
|
Instance$3._Frame = void 0;
|
10119
10153
|
/* eslint-disable import/prefer-default-export */
|
10120
|
-
const base_1$
|
10154
|
+
const base_1$d = base;
|
10121
10155
|
/**
|
10122
10156
|
* An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
|
10123
10157
|
* has its own DOM and global JS context (which may or may not be linked to that of the parent depending
|
@@ -10138,7 +10172,7 @@ const base_1$c = base;
|
|
10138
10172
|
* The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
|
10139
10173
|
* (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
|
10140
10174
|
*/
|
10141
|
-
class _Frame extends base_1$
|
10175
|
+
class _Frame extends base_1$d.EmitterBase {
|
10142
10176
|
/**
|
10143
10177
|
* @internal
|
10144
10178
|
*/
|
@@ -10184,13 +10218,13 @@ Instance$3._Frame = _Frame;
|
|
10184
10218
|
|
10185
10219
|
Object.defineProperty(Factory$4, "__esModule", { value: true });
|
10186
10220
|
Factory$4._FrameModule = void 0;
|
10187
|
-
const base_1$
|
10221
|
+
const base_1$c = base;
|
10188
10222
|
const validate_1$2 = validate;
|
10189
10223
|
const Instance_1$3 = Instance$3;
|
10190
10224
|
/**
|
10191
10225
|
* Static namespace for OpenFin API methods that interact with the {@link _Frame} class, available under `fin.Frame`.
|
10192
10226
|
*/
|
10193
|
-
class _FrameModule extends base_1$
|
10227
|
+
class _FrameModule extends base_1$c.Base {
|
10194
10228
|
/**
|
10195
10229
|
* Asynchronously returns an API handle for the given Frame identity.
|
10196
10230
|
*
|
@@ -10311,12 +10345,12 @@ var globalHotkey = {};
|
|
10311
10345
|
|
10312
10346
|
Object.defineProperty(globalHotkey, "__esModule", { value: true });
|
10313
10347
|
globalHotkey.GlobalHotkey = void 0;
|
10314
|
-
const base_1$
|
10348
|
+
const base_1$b = base;
|
10315
10349
|
/**
|
10316
10350
|
* The GlobalHotkey module can register/unregister a global hotkeys.
|
10317
10351
|
*
|
10318
10352
|
*/
|
10319
|
-
class GlobalHotkey extends base_1$
|
10353
|
+
class GlobalHotkey extends base_1$b.EmitterBase {
|
10320
10354
|
/**
|
10321
10355
|
* @internal
|
10322
10356
|
*/
|
@@ -10450,13 +10484,13 @@ var Factory$3 = {};
|
|
10450
10484
|
|
10451
10485
|
var Instance$2 = {};
|
10452
10486
|
|
10453
|
-
var __classPrivateFieldSet$
|
10487
|
+
var __classPrivateFieldSet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
10454
10488
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
10455
10489
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
10456
10490
|
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");
|
10457
10491
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
10458
10492
|
};
|
10459
|
-
var __classPrivateFieldGet$
|
10493
|
+
var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
10460
10494
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
10461
10495
|
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");
|
10462
10496
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -10465,14 +10499,14 @@ var _Platform_channelName, _Platform_connectToProvider;
|
|
10465
10499
|
Object.defineProperty(Instance$2, "__esModule", { value: true });
|
10466
10500
|
Instance$2.Platform = void 0;
|
10467
10501
|
/* eslint-disable import/prefer-default-export, no-undef */
|
10468
|
-
const base_1$
|
10502
|
+
const base_1$a = base;
|
10469
10503
|
const validate_1$1 = validate;
|
10470
10504
|
/** Manages the life cycle of windows and views in the application.
|
10471
10505
|
*
|
10472
10506
|
* Enables taking snapshots of itself and applying them to restore a previous configuration
|
10473
10507
|
* as well as listen to {@link OpenFin.PlatformEvents platform events}.
|
10474
10508
|
*/
|
10475
|
-
class Platform extends base_1$
|
10509
|
+
class Platform extends base_1$a.EmitterBase {
|
10476
10510
|
/**
|
10477
10511
|
* @internal
|
10478
10512
|
*/
|
@@ -10493,24 +10527,24 @@ class Platform extends base_1$9.EmitterBase {
|
|
10493
10527
|
this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
|
10494
10528
|
// don't expose
|
10495
10529
|
});
|
10496
|
-
if (!Platform.clientMap.has(__classPrivateFieldGet$
|
10497
|
-
const clientPromise = __classPrivateFieldGet$
|
10498
|
-
Platform.clientMap.set(__classPrivateFieldGet$
|
10530
|
+
if (!Platform.clientMap.has(__classPrivateFieldGet$a(this, _Platform_channelName, "f"))) {
|
10531
|
+
const clientPromise = __classPrivateFieldGet$a(this, _Platform_connectToProvider, "f").call(this);
|
10532
|
+
Platform.clientMap.set(__classPrivateFieldGet$a(this, _Platform_channelName, "f"), clientPromise);
|
10499
10533
|
}
|
10500
10534
|
// we set it above
|
10501
10535
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
10502
|
-
return Platform.clientMap.get(__classPrivateFieldGet$
|
10536
|
+
return Platform.clientMap.get(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
|
10503
10537
|
};
|
10504
10538
|
_Platform_connectToProvider.set(this, async () => {
|
10505
10539
|
try {
|
10506
|
-
const client = await this._channel.connect(__classPrivateFieldGet$
|
10540
|
+
const client = await this._channel.connect(__classPrivateFieldGet$a(this, _Platform_channelName, "f"), { wait: false });
|
10507
10541
|
client.onDisconnection(() => {
|
10508
|
-
Platform.clientMap.delete(__classPrivateFieldGet$
|
10542
|
+
Platform.clientMap.delete(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
|
10509
10543
|
});
|
10510
10544
|
return client;
|
10511
10545
|
}
|
10512
10546
|
catch (e) {
|
10513
|
-
Platform.clientMap.delete(__classPrivateFieldGet$
|
10547
|
+
Platform.clientMap.delete(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
|
10514
10548
|
throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
|
10515
10549
|
}
|
10516
10550
|
});
|
@@ -10523,7 +10557,7 @@ class Platform extends base_1$9.EmitterBase {
|
|
10523
10557
|
if (errorMsg) {
|
10524
10558
|
throw new Error(errorMsg);
|
10525
10559
|
}
|
10526
|
-
__classPrivateFieldSet$
|
10560
|
+
__classPrivateFieldSet$9(this, _Platform_channelName, channelName, "f");
|
10527
10561
|
this._channel = this.fin.InterApplicationBus.Channel;
|
10528
10562
|
this.identity = { uuid: identity.uuid };
|
10529
10563
|
this.Layout = this.fin.Platform.Layout;
|
@@ -11579,13 +11613,13 @@ const createRelayedDispatch = (client, target, relayId, relayErrorMsg) => async
|
|
11579
11613
|
};
|
11580
11614
|
channelApiRelay.createRelayedDispatch = createRelayedDispatch;
|
11581
11615
|
|
11582
|
-
var __classPrivateFieldSet$
|
11616
|
+
var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
11583
11617
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
11584
11618
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
11585
11619
|
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");
|
11586
11620
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
11587
11621
|
};
|
11588
|
-
var __classPrivateFieldGet$
|
11622
|
+
var __classPrivateFieldGet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
11589
11623
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
11590
11624
|
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");
|
11591
11625
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -11639,7 +11673,7 @@ class LayoutNode {
|
|
11639
11673
|
* console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
|
11640
11674
|
* ```
|
11641
11675
|
*/
|
11642
|
-
this.isRoot = () => __classPrivateFieldGet$
|
11676
|
+
this.isRoot = () => __classPrivateFieldGet$9(this, _LayoutNode_client, "f").isRoot(this.entityId);
|
11643
11677
|
/**
|
11644
11678
|
* Checks if the TabStack or ColumnOrRow exists
|
11645
11679
|
*
|
@@ -11659,7 +11693,7 @@ class LayoutNode {
|
|
11659
11693
|
* console.log(`The entity exists: ${exists}`);
|
11660
11694
|
* ```
|
11661
11695
|
*/
|
11662
|
-
this.exists = () => __classPrivateFieldGet$
|
11696
|
+
this.exists = () => __classPrivateFieldGet$9(this, _LayoutNode_client, "f").exists(this.entityId);
|
11663
11697
|
/**
|
11664
11698
|
* Retrieves the parent of the TabStack or ColumnOrRow
|
11665
11699
|
*
|
@@ -11680,11 +11714,11 @@ class LayoutNode {
|
|
11680
11714
|
* ```
|
11681
11715
|
*/
|
11682
11716
|
this.getParent = async () => {
|
11683
|
-
const parent = await __classPrivateFieldGet$
|
11717
|
+
const parent = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").getParent(this.entityId);
|
11684
11718
|
if (!parent) {
|
11685
11719
|
return undefined;
|
11686
11720
|
}
|
11687
|
-
return LayoutNode.getEntity(parent, __classPrivateFieldGet$
|
11721
|
+
return LayoutNode.getEntity(parent, __classPrivateFieldGet$9(this, _LayoutNode_client, "f"));
|
11688
11722
|
};
|
11689
11723
|
/**
|
11690
11724
|
* Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
|
@@ -11735,8 +11769,8 @@ class LayoutNode {
|
|
11735
11769
|
* @experimental
|
11736
11770
|
*/
|
11737
11771
|
this.createAdjacentStack = async (views, options) => {
|
11738
|
-
const entityId = await __classPrivateFieldGet$
|
11739
|
-
return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$
|
11772
|
+
const entityId = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
|
11773
|
+
return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$9(this, _LayoutNode_client, "f"));
|
11740
11774
|
};
|
11741
11775
|
/**
|
11742
11776
|
* Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
|
@@ -11764,16 +11798,16 @@ class LayoutNode {
|
|
11764
11798
|
* @experimental
|
11765
11799
|
*/
|
11766
11800
|
this.getAdjacentStacks = async (edge) => {
|
11767
|
-
const adjacentStacks = await __classPrivateFieldGet$
|
11801
|
+
const adjacentStacks = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").getAdjacentStacks({
|
11768
11802
|
targetId: this.entityId,
|
11769
11803
|
edge
|
11770
11804
|
});
|
11771
11805
|
return adjacentStacks.map((stack) => LayoutNode.getEntity({
|
11772
11806
|
type: 'stack',
|
11773
11807
|
entityId: stack.entityId
|
11774
|
-
}, __classPrivateFieldGet$
|
11808
|
+
}, __classPrivateFieldGet$9(this, _LayoutNode_client, "f")));
|
11775
11809
|
};
|
11776
|
-
__classPrivateFieldSet$
|
11810
|
+
__classPrivateFieldSet$8(this, _LayoutNode_client, client, "f");
|
11777
11811
|
this.entityId = entityId;
|
11778
11812
|
}
|
11779
11813
|
}
|
@@ -11846,7 +11880,7 @@ class TabStack extends LayoutNode {
|
|
11846
11880
|
* ```
|
11847
11881
|
* @experimental
|
11848
11882
|
*/
|
11849
|
-
this.getViews = () => __classPrivateFieldGet$
|
11883
|
+
this.getViews = () => __classPrivateFieldGet$9(this, _TabStack_client, "f").getStackViews(this.entityId);
|
11850
11884
|
/**
|
11851
11885
|
* Adds or creates a view in this {@link TabStack}.
|
11852
11886
|
*
|
@@ -11876,7 +11910,7 @@ class TabStack extends LayoutNode {
|
|
11876
11910
|
* ```
|
11877
11911
|
* @experimental
|
11878
11912
|
*/
|
11879
|
-
this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$
|
11913
|
+
this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$9(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
|
11880
11914
|
/**
|
11881
11915
|
* Removes a view from this {@link TabStack}.
|
11882
11916
|
*
|
@@ -11906,7 +11940,7 @@ class TabStack extends LayoutNode {
|
|
11906
11940
|
* ```
|
11907
11941
|
*/
|
11908
11942
|
this.removeView = async (view) => {
|
11909
|
-
await __classPrivateFieldGet$
|
11943
|
+
await __classPrivateFieldGet$9(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
|
11910
11944
|
};
|
11911
11945
|
/**
|
11912
11946
|
* Sets the active view of the {@link TabStack} without focusing it.
|
@@ -11930,9 +11964,9 @@ class TabStack extends LayoutNode {
|
|
11930
11964
|
* @experimental
|
11931
11965
|
*/
|
11932
11966
|
this.setActiveView = async (view) => {
|
11933
|
-
await __classPrivateFieldGet$
|
11967
|
+
await __classPrivateFieldGet$9(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
|
11934
11968
|
};
|
11935
|
-
__classPrivateFieldSet$
|
11969
|
+
__classPrivateFieldSet$8(this, _TabStack_client, client, "f");
|
11936
11970
|
}
|
11937
11971
|
}
|
11938
11972
|
layoutEntities.TabStack = TabStack;
|
@@ -11971,10 +12005,10 @@ class ColumnOrRow extends LayoutNode {
|
|
11971
12005
|
* ```
|
11972
12006
|
*/
|
11973
12007
|
this.getContent = async () => {
|
11974
|
-
const contentItemEntities = await __classPrivateFieldGet$
|
11975
|
-
return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$
|
12008
|
+
const contentItemEntities = await __classPrivateFieldGet$9(this, _ColumnOrRow_client, "f").getContent(this.entityId);
|
12009
|
+
return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$9(this, _ColumnOrRow_client, "f")));
|
11976
12010
|
};
|
11977
|
-
__classPrivateFieldSet$
|
12011
|
+
__classPrivateFieldSet$8(this, _ColumnOrRow_client, client, "f");
|
11978
12012
|
this.type = type;
|
11979
12013
|
}
|
11980
12014
|
}
|
@@ -11989,7 +12023,7 @@ layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
|
|
11989
12023
|
// TODO: eventually export this somehow
|
11990
12024
|
layout_constants.DEFAULT_LAYOUT_KEY = '__default__';
|
11991
12025
|
|
11992
|
-
var __classPrivateFieldGet$
|
12026
|
+
var __classPrivateFieldGet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
11993
12027
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
11994
12028
|
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");
|
11995
12029
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -11997,9 +12031,9 @@ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
11997
12031
|
var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
|
11998
12032
|
Object.defineProperty(Instance$1, "__esModule", { value: true });
|
11999
12033
|
Instance$1.Layout = void 0;
|
12000
|
-
const lazy_1$
|
12034
|
+
const lazy_1$2 = lazy;
|
12001
12035
|
const validate_1 = validate;
|
12002
|
-
const base_1$
|
12036
|
+
const base_1$9 = base;
|
12003
12037
|
const common_utils_1$1 = commonUtils;
|
12004
12038
|
const layout_entities_1 = layoutEntities;
|
12005
12039
|
const layout_constants_1$1 = layout_constants;
|
@@ -12135,12 +12169,12 @@ const layout_constants_1$1 = layout_constants;
|
|
12135
12169
|
* }
|
12136
12170
|
* ```
|
12137
12171
|
*/
|
12138
|
-
class Layout extends base_1$
|
12172
|
+
class Layout extends base_1$9.Base {
|
12139
12173
|
/**
|
12140
12174
|
* @internal
|
12141
12175
|
*/
|
12142
12176
|
static getClient(layout) {
|
12143
|
-
return __classPrivateFieldGet$
|
12177
|
+
return __classPrivateFieldGet$8(layout, _Layout_layoutClient, "f").getValue();
|
12144
12178
|
}
|
12145
12179
|
/**
|
12146
12180
|
* @internal
|
@@ -12154,7 +12188,7 @@ class Layout extends base_1$8.Base {
|
|
12154
12188
|
* Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
|
12155
12189
|
* The client is for {@link LayoutEntitiesController}
|
12156
12190
|
*/
|
12157
|
-
_Layout_layoutClient.set(this, new lazy_1$
|
12191
|
+
_Layout_layoutClient.set(this, new lazy_1$2.Lazy(async () => layout_entities_1.LayoutNode.newLayoutEntitiesClient(await this.platform.getClient(), layout_constants_1$1.LAYOUT_CONTROLLER_ID, this.identity)));
|
12158
12192
|
/**
|
12159
12193
|
* Replaces a Platform window's layout with a new layout.
|
12160
12194
|
*
|
@@ -12363,7 +12397,7 @@ class Layout extends base_1$8.Base {
|
|
12363
12397
|
this.wire.sendAction('layout-get-root-item').catch(() => {
|
12364
12398
|
// don't expose
|
12365
12399
|
});
|
12366
|
-
const client = await __classPrivateFieldGet$
|
12400
|
+
const client = await __classPrivateFieldGet$8(this, _Layout_layoutClient, "f").getValue();
|
12367
12401
|
const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
|
12368
12402
|
return layout_entities_1.LayoutNode.getEntity(root, client);
|
12369
12403
|
}
|
@@ -12381,7 +12415,7 @@ class Layout extends base_1$8.Base {
|
|
12381
12415
|
this.wire.sendAction('layout-get-stack-by-view').catch(() => {
|
12382
12416
|
// don't expose
|
12383
12417
|
});
|
12384
|
-
const client = await __classPrivateFieldGet$
|
12418
|
+
const client = await __classPrivateFieldGet$8(this, _Layout_layoutClient, "f").getValue();
|
12385
12419
|
const stack = await client.getStackByView(identity);
|
12386
12420
|
if (!stack) {
|
12387
12421
|
throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
|
@@ -12401,7 +12435,7 @@ class Layout extends base_1$8.Base {
|
|
12401
12435
|
this.wire.sendAction('layout-add-view').catch((e) => {
|
12402
12436
|
// don't expose
|
12403
12437
|
});
|
12404
|
-
const { identity } = await __classPrivateFieldGet$
|
12438
|
+
const { identity } = await __classPrivateFieldGet$8(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
|
12405
12439
|
viewOptions,
|
12406
12440
|
location,
|
12407
12441
|
targetView
|
@@ -12419,7 +12453,7 @@ class Layout extends base_1$8.Base {
|
|
12419
12453
|
this.wire.sendAction('layout-close-view').catch((e) => {
|
12420
12454
|
// don't expose
|
12421
12455
|
});
|
12422
|
-
await __classPrivateFieldGet$
|
12456
|
+
await __classPrivateFieldGet$8(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
|
12423
12457
|
}
|
12424
12458
|
}
|
12425
12459
|
Instance$1.Layout = Layout;
|
@@ -12433,12 +12467,12 @@ async function _Layout_forwardLayoutAction(action, payload) {
|
|
12433
12467
|
return client.dispatch(action, { target: this.identity, opts: payload });
|
12434
12468
|
};
|
12435
12469
|
|
12436
|
-
var __classPrivateFieldGet$
|
12470
|
+
var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
12437
12471
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
12438
12472
|
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");
|
12439
12473
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
12440
12474
|
};
|
12441
|
-
var __classPrivateFieldSet$
|
12475
|
+
var __classPrivateFieldSet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
12442
12476
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
12443
12477
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
12444
12478
|
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");
|
@@ -12447,13 +12481,13 @@ var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
12447
12481
|
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
|
12448
12482
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
12449
12483
|
Factory$2.LayoutModule = void 0;
|
12450
|
-
const base_1$
|
12484
|
+
const base_1$8 = base;
|
12451
12485
|
const Instance_1$2 = Instance$1;
|
12452
12486
|
const layout_constants_1 = layout_constants;
|
12453
12487
|
/**
|
12454
12488
|
* Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
|
12455
12489
|
*/
|
12456
|
-
class LayoutModule extends base_1$
|
12490
|
+
class LayoutModule extends base_1$8.Base {
|
12457
12491
|
constructor() {
|
12458
12492
|
super(...arguments);
|
12459
12493
|
_LayoutModule_instances.add(this);
|
@@ -12504,23 +12538,23 @@ class LayoutModule extends base_1$7.Base {
|
|
12504
12538
|
if (!this.wire.environment.layoutAllowedInContext(this.fin)) {
|
12505
12539
|
throw new Error('Layout.init can only be called from a Window context.');
|
12506
12540
|
}
|
12507
|
-
if (__classPrivateFieldGet$
|
12541
|
+
if (__classPrivateFieldGet$7(this, _LayoutModule_layoutInitializationAttempted, "f")) {
|
12508
12542
|
throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
|
12509
12543
|
}
|
12510
12544
|
if (this.wire.environment.type === 'openfin') {
|
12511
12545
|
// preload the client
|
12512
12546
|
await this.fin.Platform.getCurrentSync().getClient();
|
12513
12547
|
}
|
12514
|
-
__classPrivateFieldSet$
|
12548
|
+
__classPrivateFieldSet$7(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
12515
12549
|
// TODO: rename to createLayoutManager
|
12516
|
-
__classPrivateFieldSet$
|
12517
|
-
await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$
|
12550
|
+
__classPrivateFieldSet$7(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
12551
|
+
await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f"), options);
|
12518
12552
|
const meIdentity = { name: this.fin.me.name, uuid: this.fin.me.uuid };
|
12519
12553
|
if (!options.layoutManagerOverride) {
|
12520
12554
|
// CORE-1081 to be removed when we actually delete the `layoutManager` prop
|
12521
12555
|
// in single-layout case, we return the undocumented layoutManager type
|
12522
12556
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...meIdentity };
|
12523
|
-
return __classPrivateFieldGet$
|
12557
|
+
return __classPrivateFieldGet$7(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
|
12524
12558
|
}
|
12525
12559
|
return this.wrapSync(meIdentity);
|
12526
12560
|
};
|
@@ -12549,13 +12583,13 @@ class LayoutModule extends base_1$7.Base {
|
|
12549
12583
|
* @returns
|
12550
12584
|
*/
|
12551
12585
|
this.getCurrentLayoutManagerSync = () => {
|
12552
|
-
return __classPrivateFieldGet$
|
12586
|
+
return __classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
|
12553
12587
|
};
|
12554
12588
|
this.create = async (options) => {
|
12555
|
-
return this.wire.environment.createLayout(__classPrivateFieldGet$
|
12589
|
+
return this.wire.environment.createLayout(__classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
|
12556
12590
|
};
|
12557
12591
|
this.destroy = async (layoutIdentity) => {
|
12558
|
-
return this.wire.environment.destroyLayout(__classPrivateFieldGet$
|
12592
|
+
return this.wire.environment.destroyLayout(__classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
|
12559
12593
|
};
|
12560
12594
|
}
|
12561
12595
|
/**
|
@@ -12696,10 +12730,10 @@ class LayoutModule extends base_1$7.Base {
|
|
12696
12730
|
}
|
12697
12731
|
Factory$2.LayoutModule = LayoutModule;
|
12698
12732
|
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
12699
|
-
if (!__classPrivateFieldGet$
|
12733
|
+
if (!__classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f")) {
|
12700
12734
|
throw new Error(`You must call init before using the API ${method}`);
|
12701
12735
|
}
|
12702
|
-
return __classPrivateFieldGet$
|
12736
|
+
return __classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f");
|
12703
12737
|
};
|
12704
12738
|
|
12705
12739
|
(function (exports) {
|
@@ -12736,13 +12770,13 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
|
|
12736
12770
|
|
12737
12771
|
Object.defineProperty(Factory$3, "__esModule", { value: true });
|
12738
12772
|
Factory$3.PlatformModule = void 0;
|
12739
|
-
const base_1$
|
12773
|
+
const base_1$7 = base;
|
12740
12774
|
const Instance_1$1 = Instance$2;
|
12741
12775
|
const index_1$1 = layout;
|
12742
12776
|
/**
|
12743
12777
|
* Static namespace for OpenFin API methods that interact with the {@link Platform} class, available under `fin.Platform`.
|
12744
12778
|
*/
|
12745
|
-
class PlatformModule extends base_1$
|
12779
|
+
class PlatformModule extends base_1$7.Base {
|
12746
12780
|
/**
|
12747
12781
|
* @internal
|
12748
12782
|
*/
|
@@ -13662,13 +13696,13 @@ class PrivateChannelProvider {
|
|
13662
13696
|
}
|
13663
13697
|
PrivateChannelProvider$1.PrivateChannelProvider = PrivateChannelProvider;
|
13664
13698
|
|
13665
|
-
var __classPrivateFieldSet$
|
13699
|
+
var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
13666
13700
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
13667
13701
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
13668
13702
|
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");
|
13669
13703
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
13670
13704
|
};
|
13671
|
-
var __classPrivateFieldGet$
|
13705
|
+
var __classPrivateFieldGet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
13672
13706
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
13673
13707
|
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");
|
13674
13708
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -13679,12 +13713,12 @@ var __importDefault$4 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
13679
13713
|
var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
|
13680
13714
|
Object.defineProperty(InteropBroker$1, "__esModule", { value: true });
|
13681
13715
|
InteropBroker$1.InteropBroker = void 0;
|
13682
|
-
const base_1$
|
13716
|
+
const base_1$6 = base;
|
13683
13717
|
const SessionContextGroupBroker_1 = __importDefault$4(SessionContextGroupBroker$1);
|
13684
13718
|
const utils_1$7 = utils$3;
|
13685
13719
|
const isEqual_1$1 = __importDefault$4(require$$3);
|
13686
13720
|
const PrivateChannelProvider_1 = PrivateChannelProvider$1;
|
13687
|
-
const lazy_1 = lazy;
|
13721
|
+
const lazy_1$1 = lazy;
|
13688
13722
|
const defaultContextGroups = [
|
13689
13723
|
{
|
13690
13724
|
id: 'green',
|
@@ -13848,7 +13882,7 @@ const defaultContextGroups = [
|
|
13848
13882
|
* ---
|
13849
13883
|
*
|
13850
13884
|
*/
|
13851
|
-
class InteropBroker extends base_1$
|
13885
|
+
class InteropBroker extends base_1$6.Base {
|
13852
13886
|
/**
|
13853
13887
|
* @internal
|
13854
13888
|
*/
|
@@ -13859,19 +13893,19 @@ class InteropBroker extends base_1$5.Base {
|
|
13859
13893
|
_InteropBroker_contextGroups.set(this, void 0);
|
13860
13894
|
_InteropBroker_providerPromise.set(this, void 0);
|
13861
13895
|
this.getProvider = () => {
|
13862
|
-
return __classPrivateFieldGet$
|
13896
|
+
return __classPrivateFieldGet$6(this, _InteropBroker_providerPromise, "f").getValue();
|
13863
13897
|
};
|
13864
13898
|
this.interopClients = new Map();
|
13865
13899
|
this.contextGroupsById = new Map();
|
13866
|
-
__classPrivateFieldSet$
|
13867
|
-
__classPrivateFieldSet$
|
13900
|
+
__classPrivateFieldSet$6(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
|
13901
|
+
__classPrivateFieldSet$6(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
|
13868
13902
|
if (options?.logging) {
|
13869
13903
|
this.logging = options.logging;
|
13870
13904
|
}
|
13871
13905
|
this.intentClientMap = new Map();
|
13872
13906
|
this.lastContextMap = new Map();
|
13873
13907
|
this.sessionContextGroupMap = new Map();
|
13874
|
-
__classPrivateFieldSet$
|
13908
|
+
__classPrivateFieldSet$6(this, _InteropBroker_providerPromise, new lazy_1$1.Lazy(createProvider), "f");
|
13875
13909
|
this.setContextGroupMap();
|
13876
13910
|
this.setupChannelProvider();
|
13877
13911
|
}
|
@@ -14139,7 +14173,7 @@ class InteropBroker extends base_1$5.Base {
|
|
14139
14173
|
// don't expose, analytics-only call
|
14140
14174
|
});
|
14141
14175
|
// Create copy for immutability
|
14142
|
-
return __classPrivateFieldGet$
|
14176
|
+
return __classPrivateFieldGet$6(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
|
14143
14177
|
return { ...contextGroup };
|
14144
14178
|
});
|
14145
14179
|
}
|
@@ -14550,7 +14584,7 @@ class InteropBroker extends base_1$5.Base {
|
|
14550
14584
|
const { fdc3Version } = payload;
|
14551
14585
|
return {
|
14552
14586
|
fdc3Version,
|
14553
|
-
...__classPrivateFieldGet$
|
14587
|
+
...__classPrivateFieldGet$6(this, _InteropBroker_fdc3Info, "f"),
|
14554
14588
|
optionalFeatures: {
|
14555
14589
|
OriginatingAppMetadata: false,
|
14556
14590
|
UserChannelMembershipAPIs: true
|
@@ -14927,27 +14961,27 @@ var InteropClient$1 = {};
|
|
14927
14961
|
|
14928
14962
|
var SessionContextGroupClient$1 = {};
|
14929
14963
|
|
14930
|
-
var __classPrivateFieldSet$
|
14964
|
+
var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
14931
14965
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
14932
14966
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
14933
14967
|
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");
|
14934
14968
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
14935
14969
|
};
|
14936
|
-
var __classPrivateFieldGet$
|
14970
|
+
var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
14937
14971
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
14938
14972
|
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");
|
14939
14973
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
14940
14974
|
};
|
14941
14975
|
var _SessionContextGroupClient_clientPromise;
|
14942
14976
|
Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
|
14943
|
-
const base_1$
|
14977
|
+
const base_1$5 = base;
|
14944
14978
|
const utils_1$6 = utils$3;
|
14945
|
-
class SessionContextGroupClient extends base_1$
|
14979
|
+
class SessionContextGroupClient extends base_1$5.Base {
|
14946
14980
|
constructor(wire, client, id) {
|
14947
14981
|
super(wire);
|
14948
14982
|
_SessionContextGroupClient_clientPromise.set(this, void 0);
|
14949
14983
|
this.id = id;
|
14950
|
-
__classPrivateFieldSet$
|
14984
|
+
__classPrivateFieldSet$5(this, _SessionContextGroupClient_clientPromise, client, "f");
|
14951
14985
|
}
|
14952
14986
|
/**
|
14953
14987
|
* Sets a context for the session context group.
|
@@ -14959,7 +14993,7 @@ class SessionContextGroupClient extends base_1$4.Base {
|
|
14959
14993
|
this.wire.sendAction('interop-session-context-group-set-context').catch((e) => {
|
14960
14994
|
// don't expose, analytics-only call
|
14961
14995
|
});
|
14962
|
-
const client = await __classPrivateFieldGet$
|
14996
|
+
const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
|
14963
14997
|
return client.dispatch(`sessionContextGroup:setContext-${this.id}`, {
|
14964
14998
|
sessionContextGroupId: this.id,
|
14965
14999
|
context
|
@@ -14969,7 +15003,7 @@ class SessionContextGroupClient extends base_1$4.Base {
|
|
14969
15003
|
this.wire.sendAction('interop-session-context-group-get-context').catch((e) => {
|
14970
15004
|
// don't expose, analytics-only call
|
14971
15005
|
});
|
14972
|
-
const client = await __classPrivateFieldGet$
|
15006
|
+
const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
|
14973
15007
|
return client.dispatch(`sessionContextGroup:getContext-${this.id}`, {
|
14974
15008
|
sessionContextGroupId: this.id,
|
14975
15009
|
type
|
@@ -14982,7 +15016,7 @@ class SessionContextGroupClient extends base_1$4.Base {
|
|
14982
15016
|
if (typeof contextHandler !== 'function') {
|
14983
15017
|
throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
|
14984
15018
|
}
|
14985
|
-
const client = await __classPrivateFieldGet$
|
15019
|
+
const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
|
14986
15020
|
let handlerId;
|
14987
15021
|
if (contextType) {
|
14988
15022
|
handlerId = `sessionContextHandler:invoke-${this.id}-${contextType}-${(0, utils_1$6.generateId)()}`;
|
@@ -14995,7 +15029,7 @@ class SessionContextGroupClient extends base_1$4.Base {
|
|
14995
15029
|
return { unsubscribe: await this.createUnsubscribeCb(handlerId) };
|
14996
15030
|
}
|
14997
15031
|
async createUnsubscribeCb(handlerId) {
|
14998
|
-
const client = await __classPrivateFieldGet$
|
15032
|
+
const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
|
14999
15033
|
return async () => {
|
15000
15034
|
client.remove(handlerId);
|
15001
15035
|
await client.dispatch(`sessionContextGroup:handlerRemoved-${this.id}`, { handlerId });
|
@@ -15013,13 +15047,13 @@ class SessionContextGroupClient extends base_1$4.Base {
|
|
15013
15047
|
SessionContextGroupClient$1.default = SessionContextGroupClient;
|
15014
15048
|
_SessionContextGroupClient_clientPromise = new WeakMap();
|
15015
15049
|
|
15016
|
-
var __classPrivateFieldSet$
|
15050
|
+
var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
15017
15051
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
15018
15052
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
15019
15053
|
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");
|
15020
15054
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
15021
15055
|
};
|
15022
|
-
var __classPrivateFieldGet$
|
15056
|
+
var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
15023
15057
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
15024
15058
|
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");
|
15025
15059
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -15030,7 +15064,7 @@ var __importDefault$3 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
15030
15064
|
var _InteropClient_clientPromise, _InteropClient_sessionContextGroups, _InteropClient_fdc3Factory;
|
15031
15065
|
Object.defineProperty(InteropClient$1, "__esModule", { value: true });
|
15032
15066
|
InteropClient$1.InteropClient = void 0;
|
15033
|
-
const base_1$
|
15067
|
+
const base_1$4 = base;
|
15034
15068
|
const SessionContextGroupClient_1 = __importDefault$3(SessionContextGroupClient$1);
|
15035
15069
|
const utils_1$5 = utils$3;
|
15036
15070
|
/**
|
@@ -15082,7 +15116,7 @@ const utils_1$5 = utils$3;
|
|
15082
15116
|
* * {@link InteropClient#getAllClientsInContextGroup getAllClientsInContextGroup(contextGroupId)}
|
15083
15117
|
*
|
15084
15118
|
*/
|
15085
|
-
class InteropClient extends base_1$
|
15119
|
+
class InteropClient extends base_1$4.Base {
|
15086
15120
|
/**
|
15087
15121
|
* @internal
|
15088
15122
|
*/
|
@@ -15091,9 +15125,9 @@ class InteropClient extends base_1$3.Base {
|
|
15091
15125
|
_InteropClient_clientPromise.set(this, void 0);
|
15092
15126
|
_InteropClient_sessionContextGroups.set(this, void 0);
|
15093
15127
|
_InteropClient_fdc3Factory.set(this, void 0);
|
15094
|
-
__classPrivateFieldSet$
|
15095
|
-
__classPrivateFieldSet$
|
15096
|
-
__classPrivateFieldSet$
|
15128
|
+
__classPrivateFieldSet$4(this, _InteropClient_sessionContextGroups, new Map(), "f");
|
15129
|
+
__classPrivateFieldSet$4(this, _InteropClient_clientPromise, clientPromise, "f");
|
15130
|
+
__classPrivateFieldSet$4(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
|
15097
15131
|
}
|
15098
15132
|
/*
|
15099
15133
|
Client APIs
|
@@ -15121,7 +15155,7 @@ class InteropClient extends base_1$3.Base {
|
|
15121
15155
|
this.wire.sendAction('interop-client-set-context').catch((e) => {
|
15122
15156
|
// don't expose, analytics-only call
|
15123
15157
|
});
|
15124
|
-
const client = await __classPrivateFieldGet$
|
15158
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15125
15159
|
return client.dispatch('setContext', { context });
|
15126
15160
|
}
|
15127
15161
|
/**
|
@@ -15188,7 +15222,7 @@ class InteropClient extends base_1$3.Base {
|
|
15188
15222
|
if (typeof handler !== 'function') {
|
15189
15223
|
throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
|
15190
15224
|
}
|
15191
|
-
const client = await __classPrivateFieldGet$
|
15225
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15192
15226
|
let handlerId;
|
15193
15227
|
if (contextType) {
|
15194
15228
|
handlerId = `invokeContextHandler-${contextType}-${(0, utils_1$5.generateId)()}`;
|
@@ -15228,7 +15262,7 @@ class InteropClient extends base_1$3.Base {
|
|
15228
15262
|
this.wire.sendAction('interop-client-get-context-groups').catch((e) => {
|
15229
15263
|
// don't expose, analytics-only call
|
15230
15264
|
});
|
15231
|
-
const client = await __classPrivateFieldGet$
|
15265
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15232
15266
|
return client.dispatch('getContextGroups');
|
15233
15267
|
}
|
15234
15268
|
/**
|
@@ -15259,7 +15293,7 @@ class InteropClient extends base_1$3.Base {
|
|
15259
15293
|
this.wire.sendAction('interop-client-join-context-group').catch((e) => {
|
15260
15294
|
// don't expose, analytics-only call
|
15261
15295
|
});
|
15262
|
-
const client = await __classPrivateFieldGet$
|
15296
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15263
15297
|
if (!contextGroupId) {
|
15264
15298
|
throw new Error('No contextGroupId specified for joinContextGroup.');
|
15265
15299
|
}
|
@@ -15288,7 +15322,7 @@ class InteropClient extends base_1$3.Base {
|
|
15288
15322
|
this.wire.sendAction('interop-client-remove-from-context-group').catch((e) => {
|
15289
15323
|
// don't expose, analytics-only call
|
15290
15324
|
});
|
15291
|
-
const client = await __classPrivateFieldGet$
|
15325
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15292
15326
|
return client.dispatch('removeFromContextGroup', { target });
|
15293
15327
|
}
|
15294
15328
|
/**
|
@@ -15311,7 +15345,7 @@ class InteropClient extends base_1$3.Base {
|
|
15311
15345
|
this.wire.sendAction('interop-client-get-all-clients-in-context-group').catch((e) => {
|
15312
15346
|
// don't expose, analytics-only call
|
15313
15347
|
});
|
15314
|
-
const client = await __classPrivateFieldGet$
|
15348
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15315
15349
|
if (!contextGroupId) {
|
15316
15350
|
throw new Error('No contextGroupId specified for getAllClientsInContextGroup.');
|
15317
15351
|
}
|
@@ -15336,7 +15370,7 @@ class InteropClient extends base_1$3.Base {
|
|
15336
15370
|
this.wire.sendAction('interop-client-get-info-for-context-group').catch((e) => {
|
15337
15371
|
// don't expose, analytics-only call
|
15338
15372
|
});
|
15339
|
-
const client = await __classPrivateFieldGet$
|
15373
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15340
15374
|
if (!contextGroupId) {
|
15341
15375
|
throw new Error('No contextGroupId specified for getInfoForContextGroup.');
|
15342
15376
|
}
|
@@ -15364,7 +15398,7 @@ class InteropClient extends base_1$3.Base {
|
|
15364
15398
|
this.wire.sendAction('interop-client-fire-intent').catch((e) => {
|
15365
15399
|
// don't expose, this is only for api analytics purposes
|
15366
15400
|
});
|
15367
|
-
const client = await __classPrivateFieldGet$
|
15401
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15368
15402
|
return client.dispatch('fireIntent', intent);
|
15369
15403
|
}
|
15370
15404
|
/**
|
@@ -15391,7 +15425,7 @@ class InteropClient extends base_1$3.Base {
|
|
15391
15425
|
this.wire.sendAction('interop-client-register-intent-handler').catch((e) => {
|
15392
15426
|
// don't expose, this is only for api analytics purposes
|
15393
15427
|
});
|
15394
|
-
const client = await __classPrivateFieldGet$
|
15428
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15395
15429
|
const handlerId = `intent-handler-${intentName}`;
|
15396
15430
|
const wrappedHandler = (0, utils_1$5.wrapIntentHandler)(handler, handlerId);
|
15397
15431
|
try {
|
@@ -15429,7 +15463,7 @@ class InteropClient extends base_1$3.Base {
|
|
15429
15463
|
this.wire.sendAction('interop-client-get-current-context').catch((e) => {
|
15430
15464
|
// don't expose, analytics-only call
|
15431
15465
|
});
|
15432
|
-
const client = await __classPrivateFieldGet$
|
15466
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15433
15467
|
return client.dispatch('getCurrentContext', { contextType });
|
15434
15468
|
}
|
15435
15469
|
/**
|
@@ -15449,7 +15483,7 @@ class InteropClient extends base_1$3.Base {
|
|
15449
15483
|
this.wire.sendAction('interop-client-get-info-for-intent').catch((e) => {
|
15450
15484
|
// don't expose, analytics-only call
|
15451
15485
|
});
|
15452
|
-
const client = await __classPrivateFieldGet$
|
15486
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15453
15487
|
return client.dispatch('getInfoForIntent', options);
|
15454
15488
|
}
|
15455
15489
|
/**
|
@@ -15480,7 +15514,7 @@ class InteropClient extends base_1$3.Base {
|
|
15480
15514
|
this.wire.sendAction('interop-client-get-info-for-intents-by-context').catch((e) => {
|
15481
15515
|
// don't expose, analytics-only call
|
15482
15516
|
});
|
15483
|
-
const client = await __classPrivateFieldGet$
|
15517
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15484
15518
|
return client.dispatch('getInfoForIntentsByContext', context);
|
15485
15519
|
}
|
15486
15520
|
/**
|
@@ -15512,7 +15546,7 @@ class InteropClient extends base_1$3.Base {
|
|
15512
15546
|
this.wire.sendAction('interop-client-fire-intent-for-context').catch((e) => {
|
15513
15547
|
// don't expose, analytics-only call
|
15514
15548
|
});
|
15515
|
-
const client = await __classPrivateFieldGet$
|
15549
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15516
15550
|
return client.dispatch('fireIntentForContext', context);
|
15517
15551
|
}
|
15518
15552
|
/**
|
@@ -15549,19 +15583,19 @@ class InteropClient extends base_1$3.Base {
|
|
15549
15583
|
*/
|
15550
15584
|
async joinSessionContextGroup(sessionContextGroupId) {
|
15551
15585
|
try {
|
15552
|
-
const currentSessionContextGroup = __classPrivateFieldGet$
|
15586
|
+
const currentSessionContextGroup = __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
|
15553
15587
|
if (currentSessionContextGroup) {
|
15554
15588
|
return currentSessionContextGroup.getUserInstance();
|
15555
15589
|
}
|
15556
|
-
const client = await __classPrivateFieldGet$
|
15590
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15557
15591
|
const { hasConflict } = await client.dispatch('sessionContextGroup:createIfNeeded', {
|
15558
15592
|
sessionContextGroupId
|
15559
15593
|
});
|
15560
15594
|
if (hasConflict) {
|
15561
15595
|
console.warn(`A (non-session) context group with the name "${sessionContextGroupId}" already exists. If you are trying to join a Context Group, call joinContextGroup instead.`);
|
15562
15596
|
}
|
15563
|
-
const newSessionContextGroup = new SessionContextGroupClient_1.default(this.wire, __classPrivateFieldGet$
|
15564
|
-
__classPrivateFieldGet$
|
15597
|
+
const newSessionContextGroup = new SessionContextGroupClient_1.default(this.wire, __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
|
15598
|
+
__classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
|
15565
15599
|
return newSessionContextGroup.getUserInstance();
|
15566
15600
|
}
|
15567
15601
|
catch (error) {
|
@@ -15588,14 +15622,14 @@ class InteropClient extends base_1$3.Base {
|
|
15588
15622
|
this.wire.sendAction('interop-client-add-ondisconnection-listener').catch((e) => {
|
15589
15623
|
// don't expose, analytics-only call
|
15590
15624
|
});
|
15591
|
-
const client = await __classPrivateFieldGet$
|
15625
|
+
const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
|
15592
15626
|
return client.onDisconnection((event) => {
|
15593
15627
|
const { uuid } = event;
|
15594
15628
|
listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
|
15595
15629
|
});
|
15596
15630
|
}
|
15597
15631
|
getFDC3Sync(version) {
|
15598
|
-
return __classPrivateFieldGet$
|
15632
|
+
return __classPrivateFieldGet$4(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
|
15599
15633
|
}
|
15600
15634
|
async getFDC3(version) {
|
15601
15635
|
return this.getFDC3Sync(version);
|
@@ -15606,7 +15640,7 @@ class InteropClient extends base_1$3.Base {
|
|
15606
15640
|
* Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
|
15607
15641
|
*/
|
15608
15642
|
static async ferryFdc3Call(interopClient, action, payload) {
|
15609
|
-
const client = await __classPrivateFieldGet$
|
15643
|
+
const client = await __classPrivateFieldGet$4(interopClient, _InteropClient_clientPromise, "f");
|
15610
15644
|
return client.dispatch(action, payload || null);
|
15611
15645
|
}
|
15612
15646
|
}
|
@@ -16021,12 +16055,12 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
16021
16055
|
exports.getIntentResolution = getIntentResolution;
|
16022
16056
|
} (utils$2));
|
16023
16057
|
|
16024
|
-
var __classPrivateFieldGet$
|
16058
|
+
var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
16025
16059
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
16026
16060
|
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");
|
16027
16061
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
16028
16062
|
};
|
16029
|
-
var __classPrivateFieldSet$
|
16063
|
+
var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
16030
16064
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
16031
16065
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
16032
16066
|
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");
|
@@ -16044,7 +16078,7 @@ const InteropClient_1$2 = InteropClient$1;
|
|
16044
16078
|
const isEqual_1 = __importDefault$2(require$$3);
|
16045
16079
|
class FDC3ModuleBase {
|
16046
16080
|
get client() {
|
16047
|
-
return __classPrivateFieldGet$
|
16081
|
+
return __classPrivateFieldGet$3(this, _FDC3ModuleBase_producer, "f").call(this);
|
16048
16082
|
}
|
16049
16083
|
get fin() {
|
16050
16084
|
return this.wire.getFin();
|
@@ -16053,7 +16087,7 @@ class FDC3ModuleBase {
|
|
16053
16087
|
constructor(producer, wire) {
|
16054
16088
|
this.wire = wire;
|
16055
16089
|
_FDC3ModuleBase_producer.set(this, void 0);
|
16056
|
-
__classPrivateFieldSet$
|
16090
|
+
__classPrivateFieldSet$3(this, _FDC3ModuleBase_producer, producer, "f");
|
16057
16091
|
}
|
16058
16092
|
/**
|
16059
16093
|
* Broadcasts a context for the channel of the current entity.
|
@@ -16834,7 +16868,7 @@ Object.defineProperty(Factory$1, "__esModule", { value: true });
|
|
16834
16868
|
Factory$1.InteropModule = void 0;
|
16835
16869
|
const cloneDeep_1 = __importDefault$1(require$$0$1);
|
16836
16870
|
const inaccessibleObject_1 = inaccessibleObject;
|
16837
|
-
const base_1$
|
16871
|
+
const base_1$3 = base;
|
16838
16872
|
const InteropBroker_1 = InteropBroker$1;
|
16839
16873
|
const InteropClient_1 = InteropClient$1;
|
16840
16874
|
const overrideCheck_1 = overrideCheck$1;
|
@@ -16846,7 +16880,7 @@ const BrokerParamAccessError = 'You have attempted to use or modify InteropBroke
|
|
16846
16880
|
* Manages creation of Interop Brokers and Interop Clients. These APIs are called under-the-hood in Platforms.
|
16847
16881
|
*
|
16848
16882
|
*/
|
16849
|
-
class InteropModule extends base_1$
|
16883
|
+
class InteropModule extends base_1$3.Base {
|
16850
16884
|
/**
|
16851
16885
|
* Initializes an Interop Broker. This is called under-the-hood for Platforms.
|
16852
16886
|
*
|
@@ -16970,13 +17004,13 @@ const channelPrefix = 'snapshot-source-provider-';
|
|
16970
17004
|
const getSnapshotSourceChannelName = (id) => `${channelPrefix}${id.uuid}`;
|
16971
17005
|
utils.getSnapshotSourceChannelName = getSnapshotSourceChannelName;
|
16972
17006
|
|
16973
|
-
var __classPrivateFieldSet$
|
17007
|
+
var __classPrivateFieldSet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
16974
17008
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
16975
17009
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
16976
17010
|
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");
|
16977
17011
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
16978
17012
|
};
|
16979
|
-
var __classPrivateFieldGet$
|
17013
|
+
var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
16980
17014
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
16981
17015
|
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");
|
16982
17016
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
@@ -16985,7 +17019,7 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
|
|
16985
17019
|
Object.defineProperty(Instance, "__esModule", { value: true });
|
16986
17020
|
Instance.SnapshotSource = void 0;
|
16987
17021
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
16988
|
-
const base_1$
|
17022
|
+
const base_1$2 = base;
|
16989
17023
|
const utils_1$1 = utils;
|
16990
17024
|
const connectionMap = new Map();
|
16991
17025
|
/**
|
@@ -16994,7 +17028,7 @@ const connectionMap = new Map();
|
|
16994
17028
|
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
16995
17029
|
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
16996
17030
|
*/
|
16997
|
-
class SnapshotSource extends base_1$
|
17031
|
+
class SnapshotSource extends base_1$2.Base {
|
16998
17032
|
/**
|
16999
17033
|
* @internal
|
17000
17034
|
*/
|
@@ -17008,26 +17042,26 @@ class SnapshotSource extends base_1$1.Base {
|
|
17008
17042
|
return connectionMap.get(this.identity.uuid);
|
17009
17043
|
});
|
17010
17044
|
_SnapshotSource_getClient.set(this, () => {
|
17011
|
-
if (!__classPrivateFieldGet$
|
17012
|
-
__classPrivateFieldGet$
|
17045
|
+
if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
|
17046
|
+
__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$2(this, _SnapshotSource_startConnection, "f").call(this);
|
17013
17047
|
}
|
17014
|
-
return __classPrivateFieldGet$
|
17048
|
+
return __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
|
17015
17049
|
});
|
17016
17050
|
_SnapshotSource_startConnection.set(this, async () => {
|
17017
17051
|
const channelName = (0, utils_1$1.getSnapshotSourceChannelName)(this.identity);
|
17018
17052
|
try {
|
17019
|
-
if (!__classPrivateFieldGet$
|
17020
|
-
await __classPrivateFieldGet$
|
17053
|
+
if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
|
17054
|
+
await __classPrivateFieldGet$2(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
|
17021
17055
|
}
|
17022
17056
|
const client = await this.fin.InterApplicationBus.Channel.connect(channelName, { wait: false });
|
17023
17057
|
client.onDisconnection(() => {
|
17024
|
-
__classPrivateFieldGet$
|
17025
|
-
__classPrivateFieldGet$
|
17058
|
+
__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
|
17059
|
+
__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
|
17026
17060
|
});
|
17027
17061
|
return client;
|
17028
17062
|
}
|
17029
17063
|
catch (e) {
|
17030
|
-
__classPrivateFieldGet$
|
17064
|
+
__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
|
17031
17065
|
throw new Error("The targeted SnapshotSource is not currently initialized. Await this object's ready() method.");
|
17032
17066
|
}
|
17033
17067
|
});
|
@@ -17039,7 +17073,7 @@ class SnapshotSource extends base_1$1.Base {
|
|
17039
17073
|
resolve = y;
|
17040
17074
|
reject = n;
|
17041
17075
|
});
|
17042
|
-
__classPrivateFieldGet$
|
17076
|
+
__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
|
17043
17077
|
const listener = async (e) => {
|
17044
17078
|
try {
|
17045
17079
|
if (e.channelName === channelName) {
|
@@ -17053,10 +17087,10 @@ class SnapshotSource extends base_1$1.Base {
|
|
17053
17087
|
};
|
17054
17088
|
await this.fin.InterApplicationBus.Channel.on('connected', listener);
|
17055
17089
|
});
|
17056
|
-
__classPrivateFieldSet$
|
17090
|
+
__classPrivateFieldSet$2(this, _SnapshotSource_identity, id, "f");
|
17057
17091
|
}
|
17058
17092
|
get identity() {
|
17059
|
-
return __classPrivateFieldGet$
|
17093
|
+
return __classPrivateFieldGet$2(this, _SnapshotSource_identity, "f");
|
17060
17094
|
}
|
17061
17095
|
/**
|
17062
17096
|
* Method to determine if the SnapshotSource has been initialized.
|
@@ -17092,11 +17126,11 @@ class SnapshotSource extends base_1$1.Base {
|
|
17092
17126
|
// eslint-disable-next-line no-async-promise-executor
|
17093
17127
|
try {
|
17094
17128
|
// If getClient was already called before this, do we have a timing issue where the channel might have been created but we missed the event but this still fails?
|
17095
|
-
await __classPrivateFieldGet$
|
17129
|
+
await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
|
17096
17130
|
}
|
17097
17131
|
catch (e) {
|
17098
17132
|
// it was not running.
|
17099
|
-
await __classPrivateFieldGet$
|
17133
|
+
await __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
|
17100
17134
|
}
|
17101
17135
|
}
|
17102
17136
|
/**
|
@@ -17107,7 +17141,7 @@ class SnapshotSource extends base_1$1.Base {
|
|
17107
17141
|
this.wire.sendAction('snapshot-source-get-snapshot').catch((e) => {
|
17108
17142
|
// don't expose, analytics-only call
|
17109
17143
|
});
|
17110
|
-
const client = await __classPrivateFieldGet$
|
17144
|
+
const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
|
17111
17145
|
const response = (await client.dispatch('get-snapshot'));
|
17112
17146
|
return (await response).snapshot;
|
17113
17147
|
}
|
@@ -17119,7 +17153,7 @@ class SnapshotSource extends base_1$1.Base {
|
|
17119
17153
|
this.wire.sendAction('snapshot-source-apply-snapshot').catch((e) => {
|
17120
17154
|
// don't expose, analytics-only call
|
17121
17155
|
});
|
17122
|
-
const client = await __classPrivateFieldGet$
|
17156
|
+
const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
|
17123
17157
|
return client.dispatch('apply-snapshot', { snapshot });
|
17124
17158
|
}
|
17125
17159
|
}
|
@@ -17128,13 +17162,13 @@ _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new We
|
|
17128
17162
|
|
17129
17163
|
Object.defineProperty(Factory, "__esModule", { value: true });
|
17130
17164
|
Factory.SnapshotSourceModule = void 0;
|
17131
|
-
const base_1 = base;
|
17165
|
+
const base_1$1 = base;
|
17132
17166
|
const Instance_1 = Instance;
|
17133
17167
|
const utils_1 = utils;
|
17134
17168
|
/**
|
17135
17169
|
* Static namespace for OpenFin API methods that interact with the {@link SnapshotSource} class, available under `fin.SnapshotSource`.
|
17136
17170
|
*/
|
17137
|
-
class SnapshotSourceModule extends base_1.Base {
|
17171
|
+
class SnapshotSourceModule extends base_1$1.Base {
|
17138
17172
|
/**
|
17139
17173
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
17140
17174
|
*
|
@@ -17240,6 +17274,114 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
17240
17274
|
__exportStar(Instance, exports);
|
17241
17275
|
} (snapshotSource));
|
17242
17276
|
|
17277
|
+
var notificationManager = {};
|
17278
|
+
|
17279
|
+
var factory = {};
|
17280
|
+
|
17281
|
+
var instance = {};
|
17282
|
+
|
17283
|
+
var __classPrivateFieldSet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
17284
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
17285
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
17286
|
+
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");
|
17287
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
17288
|
+
};
|
17289
|
+
var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
17290
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
17291
|
+
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");
|
17292
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
17293
|
+
};
|
17294
|
+
var _NotificationManagerInstance_wire, _NotificationManagerInstance_handler, _NotificationManagerInstance_id, _NotificationManagerInstance_isReceivingNotifications;
|
17295
|
+
Object.defineProperty(instance, "__esModule", { value: true });
|
17296
|
+
instance.NotificationManagerInstance = void 0;
|
17297
|
+
const lazy_1 = lazy;
|
17298
|
+
class NotificationManagerInstance {
|
17299
|
+
constructor(wire, id) {
|
17300
|
+
_NotificationManagerInstance_wire.set(this, void 0);
|
17301
|
+
_NotificationManagerInstance_handler.set(this, void 0);
|
17302
|
+
_NotificationManagerInstance_id.set(this, void 0);
|
17303
|
+
_NotificationManagerInstance_isReceivingNotifications.set(this, new lazy_1.Lazy(async () => {
|
17304
|
+
await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
|
17305
|
+
if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f")) {
|
17306
|
+
const { notificationId, properties, documentUrl: url, notificationIcon: icon, badge, image } = message.payload;
|
17307
|
+
try {
|
17308
|
+
__classPrivateFieldGet$1(this, _NotificationManagerInstance_handler, "f")?.call(this, {
|
17309
|
+
properties,
|
17310
|
+
images: {
|
17311
|
+
image,
|
17312
|
+
icon,
|
17313
|
+
badge
|
17314
|
+
},
|
17315
|
+
url,
|
17316
|
+
notificationId
|
17317
|
+
});
|
17318
|
+
}
|
17319
|
+
catch (error) {
|
17320
|
+
console.error('Failed to handle notification', error);
|
17321
|
+
}
|
17322
|
+
return true;
|
17323
|
+
}
|
17324
|
+
return false;
|
17325
|
+
});
|
17326
|
+
return true;
|
17327
|
+
}));
|
17328
|
+
this.setNotificationHandler = async (handler) => {
|
17329
|
+
await __classPrivateFieldGet$1(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
|
17330
|
+
__classPrivateFieldSet$1(this, _NotificationManagerInstance_handler, handler, "f");
|
17331
|
+
};
|
17332
|
+
this.destroy = async () => {
|
17333
|
+
await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f") });
|
17334
|
+
};
|
17335
|
+
this.dispatch = async (event) => {
|
17336
|
+
const { notificationId, type } = event;
|
17337
|
+
await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
|
17338
|
+
notificationId,
|
17339
|
+
type
|
17340
|
+
});
|
17341
|
+
};
|
17342
|
+
__classPrivateFieldSet$1(this, _NotificationManagerInstance_wire, wire, "f");
|
17343
|
+
__classPrivateFieldSet$1(this, _NotificationManagerInstance_id, id, "f");
|
17344
|
+
}
|
17345
|
+
}
|
17346
|
+
instance.NotificationManagerInstance = NotificationManagerInstance;
|
17347
|
+
_NotificationManagerInstance_wire = new WeakMap(), _NotificationManagerInstance_handler = new WeakMap(), _NotificationManagerInstance_id = new WeakMap(), _NotificationManagerInstance_isReceivingNotifications = new WeakMap();
|
17348
|
+
|
17349
|
+
Object.defineProperty(factory, "__esModule", { value: true });
|
17350
|
+
factory.NotificationManagerModule = void 0;
|
17351
|
+
const base_1 = base;
|
17352
|
+
const instance_1 = instance;
|
17353
|
+
class NotificationManagerModule extends base_1.Base {
|
17354
|
+
constructor() {
|
17355
|
+
super(...arguments);
|
17356
|
+
this.init = async () => {
|
17357
|
+
const { payload: { data: { managerId } } } = await this.wire.sendAction('init-notification-manager');
|
17358
|
+
const manager = new instance_1.NotificationManagerInstance(this.wire, managerId);
|
17359
|
+
return manager;
|
17360
|
+
};
|
17361
|
+
}
|
17362
|
+
}
|
17363
|
+
factory.NotificationManagerModule = NotificationManagerModule;
|
17364
|
+
|
17365
|
+
(function (exports) {
|
17366
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
17367
|
+
if (k2 === undefined) k2 = k;
|
17368
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
17369
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
17370
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
17371
|
+
}
|
17372
|
+
Object.defineProperty(o, k2, desc);
|
17373
|
+
}) : (function(o, m, k, k2) {
|
17374
|
+
if (k2 === undefined) k2 = k;
|
17375
|
+
o[k2] = m[k];
|
17376
|
+
}));
|
17377
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
17378
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
17379
|
+
};
|
17380
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17381
|
+
__exportStar(factory, exports);
|
17382
|
+
__exportStar(instance, exports);
|
17383
|
+
} (notificationManager));
|
17384
|
+
|
17243
17385
|
Object.defineProperty(fin$2, "__esModule", { value: true });
|
17244
17386
|
var Fin_1 = fin$2.Fin = void 0;
|
17245
17387
|
const events_1$3 = require$$0;
|
@@ -17257,6 +17399,7 @@ const index_10 = platform;
|
|
17257
17399
|
const me_1$2 = me;
|
17258
17400
|
const interop_1 = interop;
|
17259
17401
|
const snapshot_source_1 = snapshotSource;
|
17402
|
+
const notification_manager_1 = notificationManager;
|
17260
17403
|
/**
|
17261
17404
|
* @internal
|
17262
17405
|
*/
|
@@ -17279,6 +17422,7 @@ class Fin extends events_1$3.EventEmitter {
|
|
17279
17422
|
this.View = new index_9.ViewModule(wire);
|
17280
17423
|
this.Interop = new interop_1.InteropModule(wire);
|
17281
17424
|
this.SnapshotSource = new snapshot_source_1.SnapshotSourceModule(wire);
|
17425
|
+
this.NotificationManager = new notification_manager_1.NotificationManagerModule(wire);
|
17282
17426
|
wire.registerFin(this);
|
17283
17427
|
this.me = (0, me_1$2.getMe)(wire);
|
17284
17428
|
// Handle disconnect events
|