@openfin/core 36.79.15 → 36.79.17
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 +30 -3
- package/out/mock-beta.d.ts +30 -3
- package/out/mock-public.d.ts +30 -3
- package/out/mock.d.ts +40 -1
- package/out/mock.js +72 -44
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -88,12 +88,21 @@ declare type Api = {
|
|
88
88
|
iframe?: {
|
89
89
|
/**
|
90
90
|
* Inject OpenFin API into cross-origin iframes
|
91
|
+
*
|
92
|
+
* @defaultValue false
|
91
93
|
*/
|
92
94
|
crossOriginInjection?: boolean;
|
93
95
|
/**
|
94
96
|
* Inject OpenFin API into same-origin iframes
|
97
|
+
*
|
98
|
+
* @defaultValue true
|
95
99
|
*/
|
96
100
|
sameOriginInjection?: boolean;
|
101
|
+
/**
|
102
|
+
* @deprecated Shared names should not be used; support is provided purely for back-compat reasons.
|
103
|
+
*
|
104
|
+
* When `true`, iframes will have the same name as their parent WebContents.
|
105
|
+
*/
|
97
106
|
enableDeprecatedSharedName?: boolean;
|
98
107
|
};
|
99
108
|
/**
|
@@ -1668,9 +1677,9 @@ declare class Base {
|
|
1668
1677
|
* on the context in which the devtools panel was opened.
|
1669
1678
|
*/
|
1670
1679
|
get me(): Identity;
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1680
|
+
/* Excluded from this release type: isNodeEnvironment */
|
1681
|
+
/* Excluded from this release type: isOpenFinEnvironment */
|
1682
|
+
/* Excluded from this release type: isBrowserEnvironment */
|
1674
1683
|
}
|
1675
1684
|
|
1676
1685
|
/**
|
@@ -5202,8 +5211,14 @@ declare interface Environment {
|
|
5202
5211
|
getRtcPeer(): RTCPeerConnection;
|
5203
5212
|
getWsConstructor(): typeof WebSocket;
|
5204
5213
|
whenReady(): Promise<void>;
|
5214
|
+
getInteropInfo(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): Promise<InternalInteropBrokerOptions & {
|
5215
|
+
fdc3Version?: Fdc3Version;
|
5216
|
+
}>;
|
5217
|
+
readonly type: EnvironmentType;
|
5205
5218
|
}
|
5206
5219
|
|
5220
|
+
declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
5221
|
+
|
5207
5222
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5208
5223
|
|
5209
5224
|
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
|
@@ -5607,6 +5622,8 @@ declare namespace FDC3 {
|
|
5607
5622
|
}
|
5608
5623
|
}
|
5609
5624
|
|
5625
|
+
declare type Fdc3Version = '1.2' | '2.0';
|
5626
|
+
|
5610
5627
|
/**
|
5611
5628
|
* @interface
|
5612
5629
|
*/
|
@@ -6986,6 +7003,15 @@ declare class InterApplicationBus extends Base {
|
|
6986
7003
|
|
6987
7004
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
6988
7005
|
|
7006
|
+
declare type InternalFDC3Info = {
|
7007
|
+
providerVersion: string;
|
7008
|
+
provider: string;
|
7009
|
+
};
|
7010
|
+
|
7011
|
+
declare type InternalInteropBrokerOptions = OpenFin_2.InteropBrokerOptions & {
|
7012
|
+
fdc3Info: InternalFDC3Info;
|
7013
|
+
};
|
7014
|
+
|
6989
7015
|
/**
|
6990
7016
|
* Define whether to enable interop action logging.
|
6991
7017
|
*
|
@@ -7114,6 +7140,7 @@ declare type InteropActionLoggingOption = {
|
|
7114
7140
|
*
|
7115
7141
|
*/
|
7116
7142
|
declare class InteropBroker extends Base {
|
7143
|
+
#private;
|
7117
7144
|
private getProvider;
|
7118
7145
|
private interopClients;
|
7119
7146
|
private contextGroupsById;
|
package/out/mock-beta.d.ts
CHANGED
@@ -88,12 +88,21 @@ declare type Api = {
|
|
88
88
|
iframe?: {
|
89
89
|
/**
|
90
90
|
* Inject OpenFin API into cross-origin iframes
|
91
|
+
*
|
92
|
+
* @defaultValue false
|
91
93
|
*/
|
92
94
|
crossOriginInjection?: boolean;
|
93
95
|
/**
|
94
96
|
* Inject OpenFin API into same-origin iframes
|
97
|
+
*
|
98
|
+
* @defaultValue true
|
95
99
|
*/
|
96
100
|
sameOriginInjection?: boolean;
|
101
|
+
/**
|
102
|
+
* @deprecated Shared names should not be used; support is provided purely for back-compat reasons.
|
103
|
+
*
|
104
|
+
* When `true`, iframes will have the same name as their parent WebContents.
|
105
|
+
*/
|
97
106
|
enableDeprecatedSharedName?: boolean;
|
98
107
|
};
|
99
108
|
/**
|
@@ -1668,9 +1677,9 @@ declare class Base {
|
|
1668
1677
|
* on the context in which the devtools panel was opened.
|
1669
1678
|
*/
|
1670
1679
|
get me(): Identity;
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1680
|
+
/* Excluded from this release type: isNodeEnvironment */
|
1681
|
+
/* Excluded from this release type: isOpenFinEnvironment */
|
1682
|
+
/* Excluded from this release type: isBrowserEnvironment */
|
1674
1683
|
}
|
1675
1684
|
|
1676
1685
|
/**
|
@@ -5202,8 +5211,14 @@ declare interface Environment {
|
|
5202
5211
|
getRtcPeer(): RTCPeerConnection;
|
5203
5212
|
getWsConstructor(): typeof WebSocket;
|
5204
5213
|
whenReady(): Promise<void>;
|
5214
|
+
getInteropInfo(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): Promise<InternalInteropBrokerOptions & {
|
5215
|
+
fdc3Version?: Fdc3Version;
|
5216
|
+
}>;
|
5217
|
+
readonly type: EnvironmentType;
|
5205
5218
|
}
|
5206
5219
|
|
5220
|
+
declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
5221
|
+
|
5207
5222
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5208
5223
|
|
5209
5224
|
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
|
@@ -5607,6 +5622,8 @@ declare namespace FDC3 {
|
|
5607
5622
|
}
|
5608
5623
|
}
|
5609
5624
|
|
5625
|
+
declare type Fdc3Version = '1.2' | '2.0';
|
5626
|
+
|
5610
5627
|
/**
|
5611
5628
|
* @interface
|
5612
5629
|
*/
|
@@ -6986,6 +7003,15 @@ declare class InterApplicationBus extends Base {
|
|
6986
7003
|
|
6987
7004
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
6988
7005
|
|
7006
|
+
declare type InternalFDC3Info = {
|
7007
|
+
providerVersion: string;
|
7008
|
+
provider: string;
|
7009
|
+
};
|
7010
|
+
|
7011
|
+
declare type InternalInteropBrokerOptions = OpenFin_2.InteropBrokerOptions & {
|
7012
|
+
fdc3Info: InternalFDC3Info;
|
7013
|
+
};
|
7014
|
+
|
6989
7015
|
/**
|
6990
7016
|
* Define whether to enable interop action logging.
|
6991
7017
|
*
|
@@ -7114,6 +7140,7 @@ declare type InteropActionLoggingOption = {
|
|
7114
7140
|
*
|
7115
7141
|
*/
|
7116
7142
|
declare class InteropBroker extends Base {
|
7143
|
+
#private;
|
7117
7144
|
private getProvider;
|
7118
7145
|
private interopClients;
|
7119
7146
|
private contextGroupsById;
|
package/out/mock-public.d.ts
CHANGED
@@ -88,12 +88,21 @@ declare type Api = {
|
|
88
88
|
iframe?: {
|
89
89
|
/**
|
90
90
|
* Inject OpenFin API into cross-origin iframes
|
91
|
+
*
|
92
|
+
* @defaultValue false
|
91
93
|
*/
|
92
94
|
crossOriginInjection?: boolean;
|
93
95
|
/**
|
94
96
|
* Inject OpenFin API into same-origin iframes
|
97
|
+
*
|
98
|
+
* @defaultValue true
|
95
99
|
*/
|
96
100
|
sameOriginInjection?: boolean;
|
101
|
+
/**
|
102
|
+
* @deprecated Shared names should not be used; support is provided purely for back-compat reasons.
|
103
|
+
*
|
104
|
+
* When `true`, iframes will have the same name as their parent WebContents.
|
105
|
+
*/
|
97
106
|
enableDeprecatedSharedName?: boolean;
|
98
107
|
};
|
99
108
|
/**
|
@@ -1668,9 +1677,9 @@ declare class Base {
|
|
1668
1677
|
* on the context in which the devtools panel was opened.
|
1669
1678
|
*/
|
1670
1679
|
get me(): Identity;
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1680
|
+
/* Excluded from this release type: isNodeEnvironment */
|
1681
|
+
/* Excluded from this release type: isOpenFinEnvironment */
|
1682
|
+
/* Excluded from this release type: isBrowserEnvironment */
|
1674
1683
|
}
|
1675
1684
|
|
1676
1685
|
/**
|
@@ -5202,8 +5211,14 @@ declare interface Environment {
|
|
5202
5211
|
getRtcPeer(): RTCPeerConnection;
|
5203
5212
|
getWsConstructor(): typeof WebSocket;
|
5204
5213
|
whenReady(): Promise<void>;
|
5214
|
+
getInteropInfo(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): Promise<InternalInteropBrokerOptions & {
|
5215
|
+
fdc3Version?: Fdc3Version;
|
5216
|
+
}>;
|
5217
|
+
readonly type: EnvironmentType;
|
5205
5218
|
}
|
5206
5219
|
|
5220
|
+
declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
5221
|
+
|
5207
5222
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5208
5223
|
|
5209
5224
|
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
|
@@ -5607,6 +5622,8 @@ declare namespace FDC3 {
|
|
5607
5622
|
}
|
5608
5623
|
}
|
5609
5624
|
|
5625
|
+
declare type Fdc3Version = '1.2' | '2.0';
|
5626
|
+
|
5610
5627
|
/**
|
5611
5628
|
* @interface
|
5612
5629
|
*/
|
@@ -6986,6 +7003,15 @@ declare class InterApplicationBus extends Base {
|
|
6986
7003
|
|
6987
7004
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
6988
7005
|
|
7006
|
+
declare type InternalFDC3Info = {
|
7007
|
+
providerVersion: string;
|
7008
|
+
provider: string;
|
7009
|
+
};
|
7010
|
+
|
7011
|
+
declare type InternalInteropBrokerOptions = OpenFin_2.InteropBrokerOptions & {
|
7012
|
+
fdc3Info: InternalFDC3Info;
|
7013
|
+
};
|
7014
|
+
|
6989
7015
|
/**
|
6990
7016
|
* Define whether to enable interop action logging.
|
6991
7017
|
*
|
@@ -7114,6 +7140,7 @@ declare type InteropActionLoggingOption = {
|
|
7114
7140
|
*
|
7115
7141
|
*/
|
7116
7142
|
declare class InteropBroker extends Base {
|
7143
|
+
#private;
|
7117
7144
|
private getProvider;
|
7118
7145
|
private interopClients;
|
7119
7146
|
private contextGroupsById;
|
package/out/mock.d.ts
CHANGED
@@ -88,12 +88,21 @@ declare type Api = {
|
|
88
88
|
iframe?: {
|
89
89
|
/**
|
90
90
|
* Inject OpenFin API into cross-origin iframes
|
91
|
+
*
|
92
|
+
* @defaultValue false
|
91
93
|
*/
|
92
94
|
crossOriginInjection?: boolean;
|
93
95
|
/**
|
94
96
|
* Inject OpenFin API into same-origin iframes
|
97
|
+
*
|
98
|
+
* @defaultValue true
|
95
99
|
*/
|
96
100
|
sameOriginInjection?: boolean;
|
101
|
+
/**
|
102
|
+
* @deprecated Shared names should not be used; support is provided purely for back-compat reasons.
|
103
|
+
*
|
104
|
+
* When `true`, iframes will have the same name as their parent WebContents.
|
105
|
+
*/
|
97
106
|
enableDeprecatedSharedName?: boolean;
|
98
107
|
};
|
99
108
|
/**
|
@@ -1688,8 +1697,20 @@ declare class Base {
|
|
1688
1697
|
* on the context in which the devtools panel was opened.
|
1689
1698
|
*/
|
1690
1699
|
get me(): Identity;
|
1700
|
+
/**
|
1701
|
+
* @internal
|
1702
|
+
* @deprecated
|
1703
|
+
*/
|
1691
1704
|
protected isNodeEnvironment: () => boolean;
|
1705
|
+
/**
|
1706
|
+
* @internal
|
1707
|
+
* @deprecated
|
1708
|
+
*/
|
1692
1709
|
protected isOpenFinEnvironment: () => boolean;
|
1710
|
+
/**
|
1711
|
+
* @internal
|
1712
|
+
* @deprecated
|
1713
|
+
*/
|
1693
1714
|
protected isBrowserEnvironment: () => boolean;
|
1694
1715
|
}
|
1695
1716
|
|
@@ -5250,8 +5271,14 @@ declare interface Environment {
|
|
5250
5271
|
getRtcPeer(): RTCPeerConnection;
|
5251
5272
|
getWsConstructor(): typeof WebSocket;
|
5252
5273
|
whenReady(): Promise<void>;
|
5274
|
+
getInteropInfo(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): Promise<InternalInteropBrokerOptions & {
|
5275
|
+
fdc3Version?: Fdc3Version;
|
5276
|
+
}>;
|
5277
|
+
readonly type: EnvironmentType;
|
5253
5278
|
}
|
5254
5279
|
|
5280
|
+
declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
5281
|
+
|
5255
5282
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5256
5283
|
|
5257
5284
|
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
|
@@ -5676,6 +5703,8 @@ declare namespace FDC3 {
|
|
5676
5703
|
}
|
5677
5704
|
}
|
5678
5705
|
|
5706
|
+
declare type Fdc3Version = '1.2' | '2.0';
|
5707
|
+
|
5679
5708
|
/**
|
5680
5709
|
* @interface
|
5681
5710
|
*/
|
@@ -7076,6 +7105,15 @@ declare class InterAppPayload {
|
|
7076
7105
|
|
7077
7106
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
7078
7107
|
|
7108
|
+
declare type InternalFDC3Info = {
|
7109
|
+
providerVersion: string;
|
7110
|
+
provider: string;
|
7111
|
+
};
|
7112
|
+
|
7113
|
+
declare type InternalInteropBrokerOptions = OpenFin_2.InteropBrokerOptions & {
|
7114
|
+
fdc3Info: InternalFDC3Info;
|
7115
|
+
};
|
7116
|
+
|
7079
7117
|
/**
|
7080
7118
|
* Define whether to enable interop action logging.
|
7081
7119
|
*
|
@@ -7204,6 +7242,7 @@ declare type InteropActionLoggingOption = {
|
|
7204
7242
|
*
|
7205
7243
|
*/
|
7206
7244
|
declare class InteropBroker extends Base {
|
7245
|
+
#private;
|
7207
7246
|
private getProvider;
|
7208
7247
|
private interopClients;
|
7209
7248
|
private contextGroupsById;
|
@@ -7215,7 +7254,7 @@ declare class InteropBroker extends Base {
|
|
7215
7254
|
/**
|
7216
7255
|
* @internal
|
7217
7256
|
*/
|
7218
|
-
constructor(wire: Transport, getProvider: () => Promise<OpenFin_2.ChannelProvider>, options
|
7257
|
+
constructor(wire: Transport, getProvider: () => Promise<OpenFin_2.ChannelProvider>, options: InternalInteropBrokerOptions);
|
7219
7258
|
static createClosedConstructor(...args: ConstructorParameters<typeof InteropBroker>): {
|
7220
7259
|
new (): InteropBroker;
|
7221
7260
|
};
|
package/out/mock.js
CHANGED
@@ -319,14 +319,26 @@ class Base {
|
|
319
319
|
* @internal
|
320
320
|
*/
|
321
321
|
constructor(wire) {
|
322
|
+
/**
|
323
|
+
* @internal
|
324
|
+
* @deprecated
|
325
|
+
*/
|
322
326
|
this.isNodeEnvironment = () => {
|
323
|
-
return this.wire.environment.
|
327
|
+
return this.wire.environment.type === 'node';
|
324
328
|
};
|
329
|
+
/**
|
330
|
+
* @internal
|
331
|
+
* @deprecated
|
332
|
+
*/
|
325
333
|
this.isOpenFinEnvironment = () => {
|
326
|
-
return this.wire.environment.
|
334
|
+
return this.wire.environment.type === 'openfin';
|
327
335
|
};
|
336
|
+
/**
|
337
|
+
* @internal
|
338
|
+
* @deprecated
|
339
|
+
*/
|
328
340
|
this.isBrowserEnvironment = () => {
|
329
|
-
return this.wire.environment.
|
341
|
+
return this.wire.environment.type === 'other';
|
330
342
|
};
|
331
343
|
this.wire = wire;
|
332
344
|
}
|
@@ -6888,7 +6900,7 @@ class System extends base_1$j.EmitterBase {
|
|
6888
6900
|
reject = n;
|
6889
6901
|
});
|
6890
6902
|
// node.js environment not supported
|
6891
|
-
if (this.wire.environment.
|
6903
|
+
if (this.wire.environment.type !== 'openfin') {
|
6892
6904
|
throw new transport_errors_1$1.NotSupportedError('downloadAsset only supported in an OpenFin Render process');
|
6893
6905
|
}
|
6894
6906
|
const callSite = transport_errors_1$1.RuntimeError.getCallSite();
|
@@ -6965,7 +6977,7 @@ class System extends base_1$j.EmitterBase {
|
|
6965
6977
|
const callsites = transport_errors_1$1.RuntimeError.getCallSite();
|
6966
6978
|
return new Promise((resolve, reject) => {
|
6967
6979
|
// node.js environment not supported
|
6968
|
-
if (this.wire.environment.
|
6980
|
+
if (this.wire.environment.type !== 'openfin') {
|
6969
6981
|
reject(new transport_errors_1$1.NotSupportedError('downloadRuntime only supported in an OpenFin Render process'));
|
6970
6982
|
return;
|
6971
6983
|
}
|
@@ -9311,7 +9323,7 @@ class ConnectionManager extends base_1$g.Base {
|
|
9311
9323
|
return false;
|
9312
9324
|
};
|
9313
9325
|
this.providerMap = new Map();
|
9314
|
-
this.protocolManager = new protocol_manager_1.ProtocolManager(this.
|
9326
|
+
this.protocolManager = new protocol_manager_1.ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
|
9315
9327
|
__classPrivateFieldSet$6(this, _ConnectionManager_messageReceiver, new message_receiver_1.MessageReceiver(wire), "f");
|
9316
9328
|
__classPrivateFieldSet$6(this, _ConnectionManager_rtcConnectionManager, new ice_manager_1.RTCICEManager(wire), "f");
|
9317
9329
|
wire.registerMessageHandler(this.onmessage.bind(this));
|
@@ -9895,14 +9907,12 @@ class InterApplicationBus extends base_1$e.Base {
|
|
9895
9907
|
* fin.InterApplicationBus.publish('topic', 'hello').then(() => console.log('Published')).catch(err => console.log(err));
|
9896
9908
|
* ```
|
9897
9909
|
*/
|
9898
|
-
publish(topic, message) {
|
9899
|
-
|
9900
|
-
.sendAction('publish-message', {
|
9910
|
+
async publish(topic, message) {
|
9911
|
+
await this.wire.sendAction('publish-message', {
|
9901
9912
|
topic,
|
9902
9913
|
message,
|
9903
9914
|
sourceWindowName: this.me.name
|
9904
|
-
})
|
9905
|
-
.then(() => undefined);
|
9915
|
+
});
|
9906
9916
|
}
|
9907
9917
|
/**
|
9908
9918
|
* Sends a message to a specific application on a specific topic.
|
@@ -9951,8 +9961,8 @@ class InterApplicationBus extends base_1$e.Base {
|
|
9951
9961
|
*/
|
9952
9962
|
subscribe(source, topic, listener) {
|
9953
9963
|
const subKey = this.createSubscriptionKey(source.uuid, source.name || '*', topic);
|
9954
|
-
const sendSubscription = () => {
|
9955
|
-
|
9964
|
+
const sendSubscription = async () => {
|
9965
|
+
await this.wire.sendAction('subscribe', {
|
9956
9966
|
sourceUuid: source.uuid,
|
9957
9967
|
sourceWindowName: source.name || '*',
|
9958
9968
|
topic,
|
@@ -9992,8 +10002,8 @@ class InterApplicationBus extends base_1$e.Base {
|
|
9992
10002
|
unsubscribe(source, topic, listener) {
|
9993
10003
|
const sourceWindowName = source.name || '*';
|
9994
10004
|
const subKey = this.createSubscriptionKey(source.uuid, sourceWindowName, topic);
|
9995
|
-
const sendUnsubscription = () => {
|
9996
|
-
|
10005
|
+
const sendUnsubscription = async () => {
|
10006
|
+
await this.wire.sendAction('unsubscribe', {
|
9997
10007
|
sourceUuid: source.uuid,
|
9998
10008
|
sourceWindowName,
|
9999
10009
|
topic,
|
@@ -13141,6 +13151,18 @@ var hasRequiredInteropBroker;
|
|
13141
13151
|
function requireInteropBroker () {
|
13142
13152
|
if (hasRequiredInteropBroker) return InteropBroker;
|
13143
13153
|
hasRequiredInteropBroker = 1;
|
13154
|
+
var __classPrivateFieldSet = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
13155
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
13156
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
13157
|
+
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");
|
13158
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
13159
|
+
};
|
13160
|
+
var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
13161
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
13162
|
+
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");
|
13163
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
13164
|
+
};
|
13165
|
+
var _InteropBroker_fdc3Info, _InteropBroker_contextGroups;
|
13144
13166
|
Object.defineProperty(InteropBroker, "__esModule", { value: true });
|
13145
13167
|
InteropBroker.InteropBroker = void 0;
|
13146
13168
|
const base_1 = base;
|
@@ -13148,7 +13170,7 @@ function requireInteropBroker () {
|
|
13148
13170
|
const utils_1 = utils$1;
|
13149
13171
|
const lodash_1 = require$$3;
|
13150
13172
|
const PrivateChannelProvider_1 = requirePrivateChannelProvider();
|
13151
|
-
|
13173
|
+
const defaultContextGroups = [
|
13152
13174
|
{
|
13153
13175
|
id: 'green',
|
13154
13176
|
displayMetadata: {
|
@@ -13319,11 +13341,12 @@ function requireInteropBroker () {
|
|
13319
13341
|
// Tip from Pierre and Michael from the overrideCheck work: Don't use bound methods for overrideable InteropBroker functions.
|
13320
13342
|
super(wire);
|
13321
13343
|
this.getProvider = getProvider;
|
13344
|
+
_InteropBroker_fdc3Info.set(this, void 0);
|
13345
|
+
_InteropBroker_contextGroups.set(this, void 0);
|
13322
13346
|
this.interopClients = new Map();
|
13323
13347
|
this.contextGroupsById = new Map();
|
13324
|
-
|
13325
|
-
|
13326
|
-
}
|
13348
|
+
__classPrivateFieldSet(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
|
13349
|
+
__classPrivateFieldSet(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
|
13327
13350
|
if (options?.logging) {
|
13328
13351
|
this.logging = options.logging;
|
13329
13352
|
}
|
@@ -13587,7 +13610,7 @@ function requireInteropBroker () {
|
|
13587
13610
|
// don't expose, analytics-only call
|
13588
13611
|
});
|
13589
13612
|
// Create copy for immutability
|
13590
|
-
return
|
13613
|
+
return __classPrivateFieldGet(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
|
13591
13614
|
return { ...contextGroup };
|
13592
13615
|
});
|
13593
13616
|
}
|
@@ -13998,8 +14021,7 @@ function requireInteropBroker () {
|
|
13998
14021
|
const { fdc3Version } = payload;
|
13999
14022
|
return {
|
14000
14023
|
fdc3Version,
|
14001
|
-
|
14002
|
-
providerVersion: await this.fin.System.getVersion(),
|
14024
|
+
...__classPrivateFieldGet(this, _InteropBroker_fdc3Info, "f"),
|
14003
14025
|
optionalFeatures: {
|
14004
14026
|
OriginatingAppMetadata: false,
|
14005
14027
|
UserChannelMembershipAPIs: true
|
@@ -14268,23 +14290,25 @@ function requireInteropBroker () {
|
|
14268
14290
|
}
|
14269
14291
|
}
|
14270
14292
|
async setCurrentContextGroupInClientOptions(clientIdentity, contextGroupId) {
|
14271
|
-
|
14272
|
-
|
14273
|
-
|
14274
|
-
|
14275
|
-
|
14276
|
-
|
14277
|
-
|
14278
|
-
|
14279
|
-
|
14280
|
-
|
14281
|
-
|
14282
|
-
|
14283
|
-
|
14284
|
-
|
14293
|
+
try {
|
14294
|
+
const entityInfo = await this.fin.System.getEntityInfo(clientIdentity.uuid, clientIdentity.name);
|
14295
|
+
let entity;
|
14296
|
+
if (entityInfo.entityType === 'view') {
|
14297
|
+
entity = await this.fin.View.wrap(clientIdentity);
|
14298
|
+
}
|
14299
|
+
else if (entityInfo.entityType === 'window') {
|
14300
|
+
entity = await this.fin.Window.wrap(clientIdentity);
|
14301
|
+
}
|
14302
|
+
if (entity) {
|
14303
|
+
await entity.updateOptions({
|
14304
|
+
interop: {
|
14305
|
+
currentContextGroup: contextGroupId
|
14306
|
+
}
|
14307
|
+
});
|
14308
|
+
}
|
14285
14309
|
}
|
14286
|
-
|
14287
|
-
|
14310
|
+
catch (error) {
|
14311
|
+
// May file in interop
|
14288
14312
|
}
|
14289
14313
|
}
|
14290
14314
|
async setupChannelProvider() {
|
@@ -14402,6 +14426,7 @@ function requireInteropBroker () {
|
|
14402
14426
|
}
|
14403
14427
|
};
|
14404
14428
|
InteropBroker.InteropBroker = InteropBroker$1;
|
14429
|
+
_InteropBroker_fdc3Info = new WeakMap(), _InteropBroker_contextGroups = new WeakMap();
|
14405
14430
|
return InteropBroker;
|
14406
14431
|
}
|
14407
14432
|
|
@@ -15102,7 +15127,7 @@ function requireOverrideCheck () {
|
|
15102
15127
|
overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
15103
15128
|
const InteropBroker_1 = requireInteropBroker();
|
15104
15129
|
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
15105
|
-
const setVersion = manifest
|
15130
|
+
const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
15106
15131
|
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
15107
15132
|
}
|
15108
15133
|
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
@@ -15177,10 +15202,9 @@ function requireFactory () {
|
|
15177
15202
|
// don't expose, analytics-only call
|
15178
15203
|
});
|
15179
15204
|
// Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
|
15180
|
-
const options = await this.
|
15181
|
-
const opts = options.initialOptions.interopBrokerConfiguration ?? {};
|
15205
|
+
const options = await this.wire.environment.getInteropInfo(this.wire.getFin());
|
15182
15206
|
const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
|
15183
|
-
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, lodash_1.cloneDeep)(
|
15207
|
+
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, lodash_1.cloneDeep)(options));
|
15184
15208
|
let provider;
|
15185
15209
|
const getProvider = () => {
|
15186
15210
|
if (!provider) {
|
@@ -15192,7 +15216,7 @@ function requireFactory () {
|
|
15192
15216
|
// eslint-disable-next-line no-console
|
15193
15217
|
throw new Error(BrokerParamAccessError);
|
15194
15218
|
};
|
15195
|
-
const OverrideableBroker = InteropBroker_1.InteropBroker.createClosedConstructor(this.wire, getProvider,
|
15219
|
+
const OverrideableBroker = InteropBroker_1.InteropBroker.createClosedConstructor(this.wire, getProvider, options);
|
15196
15220
|
let broker;
|
15197
15221
|
if (Array.isArray(override)) {
|
15198
15222
|
const BrokerConstructor = (0, common_utils_1.overrideFromComposables)(...override)(OverrideableBroker);
|
@@ -15205,7 +15229,7 @@ function requireFactory () {
|
|
15205
15229
|
// @ts-expect-error
|
15206
15230
|
broker = await override(OverrideableBroker, objectThatThrows, throwingGetProvider, warningOptsClone);
|
15207
15231
|
}
|
15208
|
-
(0, overrideCheck_1.overrideCheck)(broker,
|
15232
|
+
(0, overrideCheck_1.overrideCheck)(broker, options.fdc3Version);
|
15209
15233
|
return broker;
|
15210
15234
|
}
|
15211
15235
|
/**
|
@@ -15961,8 +15985,12 @@ mockEnvironment.MockEnvironment = void 0;
|
|
15961
15985
|
const me_1 = me;
|
15962
15986
|
class MockEnvironment {
|
15963
15987
|
constructor() {
|
15988
|
+
this.type = 'other';
|
15964
15989
|
this.childViews = true;
|
15965
15990
|
}
|
15991
|
+
async getInteropInfo() {
|
15992
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
15993
|
+
}
|
15966
15994
|
getDefaultChannelOptions() {
|
15967
15995
|
throw new Error(me_1.environmentUnsupportedMessage);
|
15968
15996
|
}
|