@openfin/remote-adapter 37.80.21 → 37.80.24
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/remote-adapter-alpha.d.ts +8 -101
- package/out/remote-adapter-beta.d.ts +8 -101
- package/out/remote-adapter-public.d.ts +8 -101
- package/out/remote-adapter.d.ts +9 -102
- package/out/remote-adapter.js +73 -51
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2383
2383
|
|
|
2384
2384
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2385
2385
|
|
|
2386
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2386
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2387
2387
|
|
|
2388
2388
|
declare class ChannelBase {
|
|
2389
2389
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2797
2797
|
|
|
2798
2798
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2799
2799
|
|
|
2800
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2800
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2801
2801
|
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2994
2994
|
private static clientIsMultiRuntime;
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
2997
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
2998
2998
|
|
|
2999
2999
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3000
3000
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3056
3056
|
type: 'classic';
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3060
|
-
#private;
|
|
3061
|
-
private messageReceiver;
|
|
3062
|
-
private endpointId;
|
|
3063
|
-
private providerIdentity;
|
|
3064
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3065
|
-
providerIdentity: ProviderIdentity_4);
|
|
3066
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3067
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3068
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3069
|
-
close: () => Promise<void>;
|
|
3070
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3071
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3072
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3073
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
3059
|
/**
|
|
3077
3060
|
* @interface
|
|
3078
3061
|
*/
|
|
@@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3428
3411
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3429
3412
|
}
|
|
3430
3413
|
|
|
3431
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3432
|
-
private primary;
|
|
3433
|
-
private secondary;
|
|
3434
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3435
|
-
private constructor();
|
|
3436
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3437
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3438
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3439
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3440
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3441
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3442
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3443
|
-
close(): Promise<void>;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
3414
|
declare interface ComponentConfig extends ItemConfig {
|
|
3447
3415
|
/**
|
|
3448
3416
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5146,12 +5114,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5146
5114
|
isMain: boolean;
|
|
5147
5115
|
};
|
|
5148
5116
|
|
|
5149
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5150
|
-
|
|
5151
|
-
declare type EndpointPayload = {
|
|
5152
|
-
endpointIdentity: EndpointIdentity;
|
|
5153
|
-
};
|
|
5154
|
-
|
|
5155
5117
|
/**
|
|
5156
5118
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5157
5119
|
* @interface
|
|
@@ -5253,7 +5215,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5253
5215
|
|
|
5254
5216
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5255
5217
|
|
|
5256
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5218
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5257
5219
|
|
|
5258
5220
|
/**
|
|
5259
5221
|
* This function converts JS errors into plain objects
|
|
@@ -9414,17 +9376,6 @@ declare interface MessageReceiver {
|
|
|
9414
9376
|
readyState: FlexReadyState;
|
|
9415
9377
|
}
|
|
9416
9378
|
|
|
9417
|
-
declare class MessageReceiver_2 extends Base {
|
|
9418
|
-
private endpointMap;
|
|
9419
|
-
private latestEndpointIdByChannelId;
|
|
9420
|
-
constructor(wire: Transport);
|
|
9421
|
-
private processChannelMessage;
|
|
9422
|
-
private onmessage;
|
|
9423
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9424
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9425
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9426
|
-
}
|
|
9427
|
-
|
|
9428
9379
|
/**
|
|
9429
9380
|
* Protocol values for determining channel messaging strategy.
|
|
9430
9381
|
*/
|
|
@@ -9930,8 +9881,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
9930
9881
|
type: 'not-responding';
|
|
9931
9882
|
};
|
|
9932
9883
|
|
|
9933
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
9934
|
-
|
|
9935
9884
|
/**
|
|
9936
9885
|
* @interface
|
|
9937
9886
|
*/
|
|
@@ -10209,7 +10158,7 @@ declare namespace OpenFin {
|
|
|
10209
10158
|
ContextForIntent,
|
|
10210
10159
|
InfoForIntentOptions,
|
|
10211
10160
|
FindIntentsByContextOptions,
|
|
10212
|
-
|
|
10161
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10213
10162
|
RegisterUsageData,
|
|
10214
10163
|
ViewsPreventingUnloadPayload,
|
|
10215
10164
|
BeforeUnloadUserDecision,
|
|
@@ -10310,10 +10259,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10310
10259
|
diff: OpenFin.WindowOptionDiff;
|
|
10311
10260
|
};
|
|
10312
10261
|
|
|
10313
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10314
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10315
|
-
};
|
|
10316
|
-
|
|
10317
10262
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10318
10263
|
|
|
10319
10264
|
/**
|
|
@@ -10414,8 +10359,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10414
10359
|
type: Type;
|
|
10415
10360
|
}>;
|
|
10416
10361
|
|
|
10417
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10418
|
-
|
|
10419
10362
|
/**
|
|
10420
10363
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10421
10364
|
* @interface
|
|
@@ -12562,17 +12505,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12562
12505
|
|
|
12563
12506
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12564
12507
|
|
|
12565
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12566
|
-
|
|
12567
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12568
|
-
|
|
12569
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12570
|
-
|
|
12571
12508
|
/**
|
|
12572
12509
|
* Identity of a channel provider.
|
|
12573
12510
|
* @interface
|
|
12574
12511
|
*/
|
|
12575
|
-
declare type
|
|
12512
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12576
12513
|
/**
|
|
12577
12514
|
* Identifier of the channel.
|
|
12578
12515
|
*/
|
|
@@ -12904,21 +12841,10 @@ declare type RGB = {
|
|
|
12904
12841
|
/**
|
|
12905
12842
|
* @interface
|
|
12906
12843
|
*/
|
|
12907
|
-
declare type RoutingInfo =
|
|
12844
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
12908
12845
|
endpointId: string;
|
|
12909
12846
|
};
|
|
12910
12847
|
|
|
12911
|
-
declare interface RTCEndpointChannels {
|
|
12912
|
-
request: RTCDataChannel;
|
|
12913
|
-
response: RTCDataChannel;
|
|
12914
|
-
}
|
|
12915
|
-
|
|
12916
|
-
declare interface RTCPacket {
|
|
12917
|
-
rtcClient: RTCPeerConnection;
|
|
12918
|
-
channels: RTCEndpointChannels;
|
|
12919
|
-
channelsOpened: Promise<void>;
|
|
12920
|
-
}
|
|
12921
|
-
|
|
12922
12848
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
12923
12849
|
type: 'rtc';
|
|
12924
12850
|
payload: {
|
|
@@ -12927,25 +12853,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
12927
12853
|
};
|
|
12928
12854
|
}
|
|
12929
12855
|
|
|
12930
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
12931
|
-
#private;
|
|
12932
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
12933
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
12934
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
12935
|
-
close: () => Promise<void>;
|
|
12936
|
-
private getEndpointById;
|
|
12937
|
-
get connected(): boolean;
|
|
12938
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
12939
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
12940
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
12941
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
12942
|
-
}
|
|
12943
|
-
|
|
12944
|
-
declare interface RTCStrategyEndpointPayload {
|
|
12945
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
12946
|
-
rtc: RTCPacket;
|
|
12947
|
-
}
|
|
12948
|
-
|
|
12949
12856
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
12950
12857
|
|
|
12951
12858
|
/**
|
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2383
2383
|
|
|
2384
2384
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2385
2385
|
|
|
2386
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2386
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2387
2387
|
|
|
2388
2388
|
declare class ChannelBase {
|
|
2389
2389
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2797
2797
|
|
|
2798
2798
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2799
2799
|
|
|
2800
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2800
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2801
2801
|
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2994
2994
|
private static clientIsMultiRuntime;
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
2997
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
2998
2998
|
|
|
2999
2999
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3000
3000
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3056
3056
|
type: 'classic';
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3060
|
-
#private;
|
|
3061
|
-
private messageReceiver;
|
|
3062
|
-
private endpointId;
|
|
3063
|
-
private providerIdentity;
|
|
3064
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3065
|
-
providerIdentity: ProviderIdentity_4);
|
|
3066
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3067
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3068
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3069
|
-
close: () => Promise<void>;
|
|
3070
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3071
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3072
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3073
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
3059
|
/**
|
|
3077
3060
|
* @interface
|
|
3078
3061
|
*/
|
|
@@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3428
3411
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3429
3412
|
}
|
|
3430
3413
|
|
|
3431
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3432
|
-
private primary;
|
|
3433
|
-
private secondary;
|
|
3434
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3435
|
-
private constructor();
|
|
3436
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3437
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3438
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3439
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3440
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3441
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3442
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3443
|
-
close(): Promise<void>;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
3414
|
declare interface ComponentConfig extends ItemConfig {
|
|
3447
3415
|
/**
|
|
3448
3416
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5146,12 +5114,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5146
5114
|
isMain: boolean;
|
|
5147
5115
|
};
|
|
5148
5116
|
|
|
5149
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5150
|
-
|
|
5151
|
-
declare type EndpointPayload = {
|
|
5152
|
-
endpointIdentity: EndpointIdentity;
|
|
5153
|
-
};
|
|
5154
|
-
|
|
5155
5117
|
/**
|
|
5156
5118
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5157
5119
|
* @interface
|
|
@@ -5253,7 +5215,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5253
5215
|
|
|
5254
5216
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5255
5217
|
|
|
5256
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5218
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5257
5219
|
|
|
5258
5220
|
/**
|
|
5259
5221
|
* This function converts JS errors into plain objects
|
|
@@ -9414,17 +9376,6 @@ declare interface MessageReceiver {
|
|
|
9414
9376
|
readyState: FlexReadyState;
|
|
9415
9377
|
}
|
|
9416
9378
|
|
|
9417
|
-
declare class MessageReceiver_2 extends Base {
|
|
9418
|
-
private endpointMap;
|
|
9419
|
-
private latestEndpointIdByChannelId;
|
|
9420
|
-
constructor(wire: Transport);
|
|
9421
|
-
private processChannelMessage;
|
|
9422
|
-
private onmessage;
|
|
9423
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9424
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9425
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9426
|
-
}
|
|
9427
|
-
|
|
9428
9379
|
/**
|
|
9429
9380
|
* Protocol values for determining channel messaging strategy.
|
|
9430
9381
|
*/
|
|
@@ -9930,8 +9881,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
9930
9881
|
type: 'not-responding';
|
|
9931
9882
|
};
|
|
9932
9883
|
|
|
9933
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
9934
|
-
|
|
9935
9884
|
/**
|
|
9936
9885
|
* @interface
|
|
9937
9886
|
*/
|
|
@@ -10209,7 +10158,7 @@ declare namespace OpenFin {
|
|
|
10209
10158
|
ContextForIntent,
|
|
10210
10159
|
InfoForIntentOptions,
|
|
10211
10160
|
FindIntentsByContextOptions,
|
|
10212
|
-
|
|
10161
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10213
10162
|
RegisterUsageData,
|
|
10214
10163
|
ViewsPreventingUnloadPayload,
|
|
10215
10164
|
BeforeUnloadUserDecision,
|
|
@@ -10310,10 +10259,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10310
10259
|
diff: OpenFin.WindowOptionDiff;
|
|
10311
10260
|
};
|
|
10312
10261
|
|
|
10313
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10314
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10315
|
-
};
|
|
10316
|
-
|
|
10317
10262
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10318
10263
|
|
|
10319
10264
|
/**
|
|
@@ -10414,8 +10359,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10414
10359
|
type: Type;
|
|
10415
10360
|
}>;
|
|
10416
10361
|
|
|
10417
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10418
|
-
|
|
10419
10362
|
/**
|
|
10420
10363
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10421
10364
|
* @interface
|
|
@@ -12562,17 +12505,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12562
12505
|
|
|
12563
12506
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12564
12507
|
|
|
12565
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12566
|
-
|
|
12567
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12568
|
-
|
|
12569
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12570
|
-
|
|
12571
12508
|
/**
|
|
12572
12509
|
* Identity of a channel provider.
|
|
12573
12510
|
* @interface
|
|
12574
12511
|
*/
|
|
12575
|
-
declare type
|
|
12512
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12576
12513
|
/**
|
|
12577
12514
|
* Identifier of the channel.
|
|
12578
12515
|
*/
|
|
@@ -12904,21 +12841,10 @@ declare type RGB = {
|
|
|
12904
12841
|
/**
|
|
12905
12842
|
* @interface
|
|
12906
12843
|
*/
|
|
12907
|
-
declare type RoutingInfo =
|
|
12844
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
12908
12845
|
endpointId: string;
|
|
12909
12846
|
};
|
|
12910
12847
|
|
|
12911
|
-
declare interface RTCEndpointChannels {
|
|
12912
|
-
request: RTCDataChannel;
|
|
12913
|
-
response: RTCDataChannel;
|
|
12914
|
-
}
|
|
12915
|
-
|
|
12916
|
-
declare interface RTCPacket {
|
|
12917
|
-
rtcClient: RTCPeerConnection;
|
|
12918
|
-
channels: RTCEndpointChannels;
|
|
12919
|
-
channelsOpened: Promise<void>;
|
|
12920
|
-
}
|
|
12921
|
-
|
|
12922
12848
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
12923
12849
|
type: 'rtc';
|
|
12924
12850
|
payload: {
|
|
@@ -12927,25 +12853,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
12927
12853
|
};
|
|
12928
12854
|
}
|
|
12929
12855
|
|
|
12930
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
12931
|
-
#private;
|
|
12932
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
12933
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
12934
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
12935
|
-
close: () => Promise<void>;
|
|
12936
|
-
private getEndpointById;
|
|
12937
|
-
get connected(): boolean;
|
|
12938
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
12939
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
12940
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
12941
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
12942
|
-
}
|
|
12943
|
-
|
|
12944
|
-
declare interface RTCStrategyEndpointPayload {
|
|
12945
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
12946
|
-
rtc: RTCPacket;
|
|
12947
|
-
}
|
|
12948
|
-
|
|
12949
12856
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
12950
12857
|
|
|
12951
12858
|
/**
|
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2383
2383
|
|
|
2384
2384
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2385
2385
|
|
|
2386
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2386
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2387
2387
|
|
|
2388
2388
|
declare class ChannelBase {
|
|
2389
2389
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2797
2797
|
|
|
2798
2798
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2799
2799
|
|
|
2800
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2800
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2801
2801
|
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2994
2994
|
private static clientIsMultiRuntime;
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
2997
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
2998
2998
|
|
|
2999
2999
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3000
3000
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3056
3056
|
type: 'classic';
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3060
|
-
#private;
|
|
3061
|
-
private messageReceiver;
|
|
3062
|
-
private endpointId;
|
|
3063
|
-
private providerIdentity;
|
|
3064
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3065
|
-
providerIdentity: ProviderIdentity_4);
|
|
3066
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3067
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3068
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3069
|
-
close: () => Promise<void>;
|
|
3070
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3071
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3072
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3073
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
3059
|
/**
|
|
3077
3060
|
* @interface
|
|
3078
3061
|
*/
|
|
@@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3428
3411
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3429
3412
|
}
|
|
3430
3413
|
|
|
3431
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3432
|
-
private primary;
|
|
3433
|
-
private secondary;
|
|
3434
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3435
|
-
private constructor();
|
|
3436
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3437
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3438
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3439
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3440
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3441
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3442
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3443
|
-
close(): Promise<void>;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
3414
|
declare interface ComponentConfig extends ItemConfig {
|
|
3447
3415
|
/**
|
|
3448
3416
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5146,12 +5114,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5146
5114
|
isMain: boolean;
|
|
5147
5115
|
};
|
|
5148
5116
|
|
|
5149
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5150
|
-
|
|
5151
|
-
declare type EndpointPayload = {
|
|
5152
|
-
endpointIdentity: EndpointIdentity;
|
|
5153
|
-
};
|
|
5154
|
-
|
|
5155
5117
|
/**
|
|
5156
5118
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5157
5119
|
* @interface
|
|
@@ -5253,7 +5215,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5253
5215
|
|
|
5254
5216
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5255
5217
|
|
|
5256
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5218
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5257
5219
|
|
|
5258
5220
|
/**
|
|
5259
5221
|
* This function converts JS errors into plain objects
|
|
@@ -9414,17 +9376,6 @@ declare interface MessageReceiver {
|
|
|
9414
9376
|
readyState: FlexReadyState;
|
|
9415
9377
|
}
|
|
9416
9378
|
|
|
9417
|
-
declare class MessageReceiver_2 extends Base {
|
|
9418
|
-
private endpointMap;
|
|
9419
|
-
private latestEndpointIdByChannelId;
|
|
9420
|
-
constructor(wire: Transport);
|
|
9421
|
-
private processChannelMessage;
|
|
9422
|
-
private onmessage;
|
|
9423
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9424
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9425
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9426
|
-
}
|
|
9427
|
-
|
|
9428
9379
|
/**
|
|
9429
9380
|
* Protocol values for determining channel messaging strategy.
|
|
9430
9381
|
*/
|
|
@@ -9930,8 +9881,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
9930
9881
|
type: 'not-responding';
|
|
9931
9882
|
};
|
|
9932
9883
|
|
|
9933
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
9934
|
-
|
|
9935
9884
|
/**
|
|
9936
9885
|
* @interface
|
|
9937
9886
|
*/
|
|
@@ -10209,7 +10158,7 @@ declare namespace OpenFin {
|
|
|
10209
10158
|
ContextForIntent,
|
|
10210
10159
|
InfoForIntentOptions,
|
|
10211
10160
|
FindIntentsByContextOptions,
|
|
10212
|
-
|
|
10161
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10213
10162
|
RegisterUsageData,
|
|
10214
10163
|
ViewsPreventingUnloadPayload,
|
|
10215
10164
|
BeforeUnloadUserDecision,
|
|
@@ -10310,10 +10259,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10310
10259
|
diff: OpenFin.WindowOptionDiff;
|
|
10311
10260
|
};
|
|
10312
10261
|
|
|
10313
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10314
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10315
|
-
};
|
|
10316
|
-
|
|
10317
10262
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10318
10263
|
|
|
10319
10264
|
/**
|
|
@@ -10414,8 +10359,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10414
10359
|
type: Type;
|
|
10415
10360
|
}>;
|
|
10416
10361
|
|
|
10417
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10418
|
-
|
|
10419
10362
|
/**
|
|
10420
10363
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10421
10364
|
* @interface
|
|
@@ -12562,17 +12505,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12562
12505
|
|
|
12563
12506
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12564
12507
|
|
|
12565
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12566
|
-
|
|
12567
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12568
|
-
|
|
12569
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12570
|
-
|
|
12571
12508
|
/**
|
|
12572
12509
|
* Identity of a channel provider.
|
|
12573
12510
|
* @interface
|
|
12574
12511
|
*/
|
|
12575
|
-
declare type
|
|
12512
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12576
12513
|
/**
|
|
12577
12514
|
* Identifier of the channel.
|
|
12578
12515
|
*/
|
|
@@ -12904,21 +12841,10 @@ declare type RGB = {
|
|
|
12904
12841
|
/**
|
|
12905
12842
|
* @interface
|
|
12906
12843
|
*/
|
|
12907
|
-
declare type RoutingInfo =
|
|
12844
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
12908
12845
|
endpointId: string;
|
|
12909
12846
|
};
|
|
12910
12847
|
|
|
12911
|
-
declare interface RTCEndpointChannels {
|
|
12912
|
-
request: RTCDataChannel;
|
|
12913
|
-
response: RTCDataChannel;
|
|
12914
|
-
}
|
|
12915
|
-
|
|
12916
|
-
declare interface RTCPacket {
|
|
12917
|
-
rtcClient: RTCPeerConnection;
|
|
12918
|
-
channels: RTCEndpointChannels;
|
|
12919
|
-
channelsOpened: Promise<void>;
|
|
12920
|
-
}
|
|
12921
|
-
|
|
12922
12848
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
12923
12849
|
type: 'rtc';
|
|
12924
12850
|
payload: {
|
|
@@ -12927,25 +12853,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
12927
12853
|
};
|
|
12928
12854
|
}
|
|
12929
12855
|
|
|
12930
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
12931
|
-
#private;
|
|
12932
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
12933
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
12934
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
12935
|
-
close: () => Promise<void>;
|
|
12936
|
-
private getEndpointById;
|
|
12937
|
-
get connected(): boolean;
|
|
12938
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
12939
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
12940
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
12941
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
12942
|
-
}
|
|
12943
|
-
|
|
12944
|
-
declare interface RTCStrategyEndpointPayload {
|
|
12945
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
12946
|
-
rtc: RTCPacket;
|
|
12947
|
-
}
|
|
12948
|
-
|
|
12949
12856
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
12950
12857
|
|
|
12951
12858
|
/**
|
package/out/remote-adapter.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2422,7 +2422,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2422
2422
|
|
|
2423
2423
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2424
2424
|
|
|
2425
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2425
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2426
2426
|
|
|
2427
2427
|
declare class ChannelBase {
|
|
2428
2428
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2846,7 +2846,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2846
2846
|
|
|
2847
2847
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2848
2848
|
|
|
2849
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2849
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2850
2850
|
|
|
2851
2851
|
/**
|
|
2852
2852
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2888,7 +2888,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2888
2888
|
/**
|
|
2889
2889
|
* @internal
|
|
2890
2890
|
*/
|
|
2891
|
-
constructor(providerIdentity:
|
|
2891
|
+
constructor(providerIdentity: ProviderIdentity_3, wire: Transport, strategy: AnyStrategy);
|
|
2892
2892
|
/**
|
|
2893
2893
|
* Dispatch an action to a specified client. Returns a promise for the result of executing that action on the client side.
|
|
2894
2894
|
*
|
|
@@ -3046,7 +3046,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
3046
3046
|
private static clientIsMultiRuntime;
|
|
3047
3047
|
}
|
|
3048
3048
|
|
|
3049
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
3049
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
3050
3050
|
|
|
3051
3051
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3052
3052
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3108,23 +3108,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3108
3108
|
type: 'classic';
|
|
3109
3109
|
}
|
|
3110
3110
|
|
|
3111
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3112
|
-
#private;
|
|
3113
|
-
private messageReceiver;
|
|
3114
|
-
private endpointId;
|
|
3115
|
-
private providerIdentity;
|
|
3116
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3117
|
-
providerIdentity: ProviderIdentity_4);
|
|
3118
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3119
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3120
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3121
|
-
close: () => Promise<void>;
|
|
3122
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3123
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3124
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3125
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
3111
|
/**
|
|
3129
3112
|
* @interface
|
|
3130
3113
|
*/
|
|
@@ -3483,21 +3466,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3483
3466
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3484
3467
|
}
|
|
3485
3468
|
|
|
3486
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3487
|
-
private primary;
|
|
3488
|
-
private secondary;
|
|
3489
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3490
|
-
private constructor();
|
|
3491
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3492
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3493
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3494
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3495
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3496
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3497
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3498
|
-
close(): Promise<void>;
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
3469
|
declare interface ComponentConfig extends ItemConfig {
|
|
3502
3470
|
/**
|
|
3503
3471
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5206,12 +5174,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5206
5174
|
isMain: boolean;
|
|
5207
5175
|
};
|
|
5208
5176
|
|
|
5209
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5210
|
-
|
|
5211
|
-
declare type EndpointPayload = {
|
|
5212
|
-
endpointIdentity: EndpointIdentity;
|
|
5213
|
-
};
|
|
5214
|
-
|
|
5215
5177
|
/**
|
|
5216
5178
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5217
5179
|
* @interface
|
|
@@ -5313,7 +5275,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5313
5275
|
|
|
5314
5276
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5315
5277
|
|
|
5316
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5278
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5317
5279
|
|
|
5318
5280
|
/**
|
|
5319
5281
|
* This function converts JS errors into plain objects
|
|
@@ -9703,17 +9665,6 @@ declare interface MessageReceiver {
|
|
|
9703
9665
|
readyState: FlexReadyState;
|
|
9704
9666
|
}
|
|
9705
9667
|
|
|
9706
|
-
declare class MessageReceiver_2 extends Base {
|
|
9707
|
-
private endpointMap;
|
|
9708
|
-
private latestEndpointIdByChannelId;
|
|
9709
|
-
constructor(wire: Transport);
|
|
9710
|
-
private processChannelMessage;
|
|
9711
|
-
private onmessage;
|
|
9712
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9713
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9714
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9715
|
-
}
|
|
9716
|
-
|
|
9717
9668
|
/**
|
|
9718
9669
|
* Protocol values for determining channel messaging strategy.
|
|
9719
9670
|
*/
|
|
@@ -10241,8 +10192,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
10241
10192
|
type: 'not-responding';
|
|
10242
10193
|
};
|
|
10243
10194
|
|
|
10244
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
10245
|
-
|
|
10246
10195
|
/**
|
|
10247
10196
|
* @interface
|
|
10248
10197
|
*/
|
|
@@ -10520,7 +10469,7 @@ declare namespace OpenFin {
|
|
|
10520
10469
|
ContextForIntent,
|
|
10521
10470
|
InfoForIntentOptions,
|
|
10522
10471
|
FindIntentsByContextOptions,
|
|
10523
|
-
|
|
10472
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10524
10473
|
RegisterUsageData,
|
|
10525
10474
|
ViewsPreventingUnloadPayload,
|
|
10526
10475
|
BeforeUnloadUserDecision,
|
|
@@ -10621,10 +10570,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10621
10570
|
diff: OpenFin.WindowOptionDiff;
|
|
10622
10571
|
};
|
|
10623
10572
|
|
|
10624
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10625
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10626
|
-
};
|
|
10627
|
-
|
|
10628
10573
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10629
10574
|
|
|
10630
10575
|
/**
|
|
@@ -10725,8 +10670,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10725
10670
|
type: Type;
|
|
10726
10671
|
}>;
|
|
10727
10672
|
|
|
10728
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10729
|
-
|
|
10730
10673
|
/**
|
|
10731
10674
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10732
10675
|
* @interface
|
|
@@ -12951,17 +12894,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12951
12894
|
|
|
12952
12895
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12953
12896
|
|
|
12954
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12955
|
-
|
|
12956
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12957
|
-
|
|
12958
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12959
|
-
|
|
12960
12897
|
/**
|
|
12961
12898
|
* Identity of a channel provider.
|
|
12962
12899
|
* @interface
|
|
12963
12900
|
*/
|
|
12964
|
-
declare type
|
|
12901
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12965
12902
|
/**
|
|
12966
12903
|
* Identifier of the channel.
|
|
12967
12904
|
*/
|
|
@@ -13293,21 +13230,10 @@ declare type RGB = {
|
|
|
13293
13230
|
/**
|
|
13294
13231
|
* @interface
|
|
13295
13232
|
*/
|
|
13296
|
-
declare type RoutingInfo =
|
|
13233
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
13297
13234
|
endpointId: string;
|
|
13298
13235
|
};
|
|
13299
13236
|
|
|
13300
|
-
declare interface RTCEndpointChannels {
|
|
13301
|
-
request: RTCDataChannel;
|
|
13302
|
-
response: RTCDataChannel;
|
|
13303
|
-
}
|
|
13304
|
-
|
|
13305
|
-
declare interface RTCPacket {
|
|
13306
|
-
rtcClient: RTCPeerConnection;
|
|
13307
|
-
channels: RTCEndpointChannels;
|
|
13308
|
-
channelsOpened: Promise<void>;
|
|
13309
|
-
}
|
|
13310
|
-
|
|
13311
13237
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
13312
13238
|
type: 'rtc';
|
|
13313
13239
|
payload: {
|
|
@@ -13316,25 +13242,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
13316
13242
|
};
|
|
13317
13243
|
}
|
|
13318
13244
|
|
|
13319
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
13320
|
-
#private;
|
|
13321
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
13322
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
13323
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
13324
|
-
close: () => Promise<void>;
|
|
13325
|
-
private getEndpointById;
|
|
13326
|
-
get connected(): boolean;
|
|
13327
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
13328
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
13329
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
13330
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
13331
|
-
}
|
|
13332
|
-
|
|
13333
|
-
declare interface RTCStrategyEndpointPayload {
|
|
13334
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
13335
|
-
rtc: RTCPacket;
|
|
13336
|
-
}
|
|
13337
|
-
|
|
13338
13245
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
13339
13246
|
|
|
13340
13247
|
/**
|
package/out/remote-adapter.js
CHANGED
|
@@ -11679,7 +11679,7 @@ function exhaustiveCheck(value, allowed) {
|
|
|
11679
11679
|
}
|
|
11680
11680
|
exhaustive.exhaustiveCheck = exhaustiveCheck;
|
|
11681
11681
|
|
|
11682
|
-
var strategy$
|
|
11682
|
+
var strategy$3 = {};
|
|
11683
11683
|
|
|
11684
11684
|
var __classPrivateFieldSet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11685
11685
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
@@ -11693,8 +11693,8 @@ var __classPrivateFieldGet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
11693
11693
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11694
11694
|
};
|
|
11695
11695
|
var _ClassicStrategy_wire, _ClassicStrategy_endpointIdentityMap, _ClassicStrategy_pendingMessagesByEndpointId;
|
|
11696
|
-
Object.defineProperty(strategy$
|
|
11697
|
-
strategy$
|
|
11696
|
+
Object.defineProperty(strategy$3, "__esModule", { value: true });
|
|
11697
|
+
strategy$3.ClassicInfo = strategy$3.ClassicStrategy = void 0;
|
|
11698
11698
|
/*
|
|
11699
11699
|
This is used to abstract out ipc messaging from the channels implementation. It is only concerned with sending messages and registration with the MessageReceiver
|
|
11700
11700
|
*/
|
|
@@ -11774,12 +11774,12 @@ class ClassicStrategy {
|
|
|
11774
11774
|
typeof payload?.endpointIdentity?.channelId === 'string');
|
|
11775
11775
|
}
|
|
11776
11776
|
}
|
|
11777
|
-
strategy$
|
|
11777
|
+
strategy$3.ClassicStrategy = ClassicStrategy;
|
|
11778
11778
|
_ClassicStrategy_wire = new WeakMap(), _ClassicStrategy_endpointIdentityMap = new WeakMap(), _ClassicStrategy_pendingMessagesByEndpointId = new WeakMap();
|
|
11779
11779
|
// Arbitrarily starting at 5 to leave the door open to backfilling pre endpointId etc.
|
|
11780
|
-
strategy$
|
|
11780
|
+
strategy$3.ClassicInfo = { version: 5, minimumVersion: 0, type: 'classic' };
|
|
11781
11781
|
|
|
11782
|
-
var strategy$
|
|
11782
|
+
var strategy$2 = {};
|
|
11783
11783
|
|
|
11784
11784
|
var endpoint = {};
|
|
11785
11785
|
|
|
@@ -11803,9 +11803,19 @@ const errors_1 = errors;
|
|
|
11803
11803
|
This handles sending RTC messages between RTC connections over the request and response data channels.
|
|
11804
11804
|
*/
|
|
11805
11805
|
class RTCEndpoint {
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11806
|
+
static isValidEndpointPayload(payload) {
|
|
11807
|
+
const isObject = (x) => {
|
|
11808
|
+
return typeof x === 'object' && x !== null;
|
|
11809
|
+
};
|
|
11810
|
+
return (
|
|
11811
|
+
// TODO in factory PR:
|
|
11812
|
+
// payload.type === 'rtc' &&
|
|
11813
|
+
isObject(payload) &&
|
|
11814
|
+
isObject(payload.endpointIdentity) &&
|
|
11815
|
+
isObject(payload.rtc) &&
|
|
11816
|
+
typeof payload.endpointIdentity.endpointId === 'string');
|
|
11817
|
+
}
|
|
11818
|
+
constructor({ rtc, endpointIdentity }) {
|
|
11809
11819
|
this.responseMap = new Map();
|
|
11810
11820
|
_RTCEndpoint_processAction.set(this, null);
|
|
11811
11821
|
_RTCEndpoint_disconnectListener.set(this, void 0);
|
|
@@ -11833,6 +11843,8 @@ class RTCEndpoint {
|
|
|
11833
11843
|
this.rtc.channels.response.close();
|
|
11834
11844
|
this.rtc.rtcClient.close();
|
|
11835
11845
|
};
|
|
11846
|
+
this.rtc = rtc;
|
|
11847
|
+
this.endpointIdentity = endpointIdentity;
|
|
11836
11848
|
this.rtc.channels.response.addEventListener('message', (e) => {
|
|
11837
11849
|
let { data } = e;
|
|
11838
11850
|
if (e.data instanceof ArrayBuffer) {
|
|
@@ -11923,6 +11935,8 @@ class RTCEndpoint {
|
|
|
11923
11935
|
endpoint.RTCEndpoint = RTCEndpoint;
|
|
11924
11936
|
_RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = new WeakMap();
|
|
11925
11937
|
|
|
11938
|
+
var strategy$1 = {};
|
|
11939
|
+
|
|
11926
11940
|
var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
11927
11941
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
11928
11942
|
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");
|
|
@@ -11934,79 +11948,87 @@ var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
11934
11948
|
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");
|
|
11935
11949
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11936
11950
|
};
|
|
11937
|
-
var
|
|
11951
|
+
var _EndpointStrategy_processAction, _EndpointStrategy_endpointMap, _EndpointStrategy_connected;
|
|
11938
11952
|
Object.defineProperty(strategy$1, "__esModule", { value: true });
|
|
11939
|
-
strategy$1.
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
_RTCStrategy_connected.set(this, true);
|
|
11953
|
+
strategy$1.EndpointStrategy = void 0;
|
|
11954
|
+
class EndpointStrategy {
|
|
11955
|
+
// Need to pass in validate endpoint separately from constructor because ts interfaces don't do well with static methods
|
|
11956
|
+
constructor(EndpointType, validateEndpoint, StrategyName) {
|
|
11957
|
+
this.EndpointType = EndpointType;
|
|
11958
|
+
this.StrategyName = StrategyName;
|
|
11959
|
+
_EndpointStrategy_processAction.set(this, null);
|
|
11960
|
+
_EndpointStrategy_endpointMap.set(this, new Map());
|
|
11961
|
+
_EndpointStrategy_connected.set(this, true);
|
|
11949
11962
|
this.send = async (endpointId, action, payload) => {
|
|
11950
11963
|
return this.getEndpointById(endpointId).send(action, payload);
|
|
11951
11964
|
};
|
|
11952
11965
|
this.close = async () => {
|
|
11953
|
-
if (__classPrivateFieldGet$7(this,
|
|
11954
|
-
__classPrivateFieldGet$7(this,
|
|
11955
|
-
__classPrivateFieldSet$5(this,
|
|
11966
|
+
if (__classPrivateFieldGet$7(this, _EndpointStrategy_connected, "f")) {
|
|
11967
|
+
__classPrivateFieldGet$7(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
|
|
11968
|
+
__classPrivateFieldSet$5(this, _EndpointStrategy_endpointMap, new Map(), "f");
|
|
11956
11969
|
}
|
|
11957
|
-
__classPrivateFieldSet$5(this,
|
|
11970
|
+
__classPrivateFieldSet$5(this, _EndpointStrategy_connected, false, "f");
|
|
11958
11971
|
};
|
|
11972
|
+
this.isValidEndpointPayload = validateEndpoint;
|
|
11959
11973
|
}
|
|
11960
11974
|
onEndpointDisconnect(endpointId, listener) {
|
|
11961
11975
|
this.getEndpointById(endpointId).onDisconnect(listener);
|
|
11962
11976
|
}
|
|
11963
11977
|
receive(listener) {
|
|
11964
|
-
if (__classPrivateFieldGet$7(this,
|
|
11965
|
-
throw new Error(
|
|
11978
|
+
if (__classPrivateFieldGet$7(this, _EndpointStrategy_processAction, "f")) {
|
|
11979
|
+
throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
|
|
11966
11980
|
}
|
|
11967
|
-
__classPrivateFieldSet$5(this,
|
|
11968
|
-
|
|
11981
|
+
__classPrivateFieldSet$5(this, _EndpointStrategy_processAction, listener, "f");
|
|
11982
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11983
|
+
__classPrivateFieldGet$7(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$7(this, _EndpointStrategy_processAction, "f")));
|
|
11969
11984
|
}
|
|
11970
11985
|
getEndpointById(endpointId) {
|
|
11971
|
-
const endpoint = __classPrivateFieldGet$7(this,
|
|
11986
|
+
const endpoint = __classPrivateFieldGet$7(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
|
|
11972
11987
|
if (!endpoint) {
|
|
11973
11988
|
throw new Error(`Client with endpoint id ${endpointId} is not connected`);
|
|
11974
11989
|
}
|
|
11975
11990
|
return endpoint;
|
|
11976
11991
|
}
|
|
11977
11992
|
get connected() {
|
|
11978
|
-
return __classPrivateFieldGet$7(this,
|
|
11993
|
+
return __classPrivateFieldGet$7(this, _EndpointStrategy_connected, "f");
|
|
11979
11994
|
}
|
|
11980
11995
|
isEndpointConnected(endpointId) {
|
|
11981
|
-
return __classPrivateFieldGet$7(this,
|
|
11996
|
+
return __classPrivateFieldGet$7(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
|
|
11982
11997
|
}
|
|
11983
11998
|
addEndpoint(endpointId, payload) {
|
|
11984
|
-
if (!__classPrivateFieldGet$7(this,
|
|
11985
|
-
console.warn(
|
|
11999
|
+
if (!__classPrivateFieldGet$7(this, _EndpointStrategy_connected, "f")) {
|
|
12000
|
+
console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
|
|
11986
12001
|
return;
|
|
11987
12002
|
}
|
|
11988
|
-
const clientStrat = new
|
|
11989
|
-
if (__classPrivateFieldGet$7(this,
|
|
11990
|
-
clientStrat.receive(__classPrivateFieldGet$7(this,
|
|
12003
|
+
const clientStrat = new this.EndpointType(payload);
|
|
12004
|
+
if (__classPrivateFieldGet$7(this, _EndpointStrategy_processAction, "f")) {
|
|
12005
|
+
clientStrat.receive(__classPrivateFieldGet$7(this, _EndpointStrategy_processAction, "f"));
|
|
11991
12006
|
}
|
|
11992
|
-
__classPrivateFieldGet$7(this,
|
|
12007
|
+
__classPrivateFieldGet$7(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
|
|
11993
12008
|
}
|
|
11994
12009
|
async closeEndpoint(endpointId) {
|
|
11995
|
-
__classPrivateFieldGet$7(this,
|
|
12010
|
+
__classPrivateFieldGet$7(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
|
|
11996
12011
|
}
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12012
|
+
}
|
|
12013
|
+
strategy$1.EndpointStrategy = EndpointStrategy;
|
|
12014
|
+
_EndpointStrategy_processAction = new WeakMap(), _EndpointStrategy_endpointMap = new WeakMap(), _EndpointStrategy_connected = new WeakMap();
|
|
12015
|
+
|
|
12016
|
+
Object.defineProperty(strategy$2, "__esModule", { value: true });
|
|
12017
|
+
strategy$2.RTCInfo = strategy$2.RTCStrategy = void 0;
|
|
12018
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
12019
|
+
/* eslint-disable class-methods-use-this */
|
|
12020
|
+
const endpoint_1 = endpoint;
|
|
12021
|
+
const strategy_1$1 = strategy$1;
|
|
12022
|
+
/*
|
|
12023
|
+
This is used to abstract out rtc messaging from the channels implementation using RTCEndpoints.
|
|
12024
|
+
*/
|
|
12025
|
+
class RTCStrategy extends strategy_1$1.EndpointStrategy {
|
|
12026
|
+
constructor() {
|
|
12027
|
+
super(endpoint_1.RTCEndpoint, endpoint_1.RTCEndpoint.isValidEndpointPayload, 'RTC');
|
|
12005
12028
|
}
|
|
12006
12029
|
}
|
|
12007
|
-
strategy$
|
|
12008
|
-
|
|
12009
|
-
strategy$1.RTCInfo = { version: 2, minimumVersion: 0, type: 'rtc' };
|
|
12030
|
+
strategy$2.RTCStrategy = RTCStrategy;
|
|
12031
|
+
strategy$2.RTCInfo = { version: 2, minimumVersion: 0, type: 'rtc' };
|
|
12010
12032
|
|
|
12011
12033
|
var iceManager = {};
|
|
12012
12034
|
|
|
@@ -12697,8 +12719,8 @@ Object.defineProperty(connectionManager, "__esModule", { value: true });
|
|
|
12697
12719
|
connectionManager.ConnectionManager = void 0;
|
|
12698
12720
|
const exhaustive_1 = exhaustive;
|
|
12699
12721
|
const base_1$a = base;
|
|
12700
|
-
const strategy_1 = strategy$
|
|
12701
|
-
const strategy_2 = strategy$
|
|
12722
|
+
const strategy_1 = strategy$3;
|
|
12723
|
+
const strategy_2 = strategy$2;
|
|
12702
12724
|
const ice_manager_1 = iceManager;
|
|
12703
12725
|
const provider_1$1 = provider;
|
|
12704
12726
|
const message_receiver_1 = messageReceiver;
|