@openfin/core 37.80.21 → 37.80.23
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 +8 -101
- package/out/mock-beta.d.ts +8 -101
- package/out/mock-public.d.ts +8 -101
- package/out/mock.d.ts +9 -102
- package/out/mock.js +115 -86
- package/package.json +1 -1
package/out/mock-alpha.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.
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin_2.Fin['InterApplicationBus']['Channel'];
|
|
2383
2383
|
|
2384
2384
|
declare type ChannelAction = OpenFin_2.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_2.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_2.ClientIdentity | OpenFin_2.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'.
|
@@ -5122,12 +5090,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
5122
5090
|
isMain: boolean;
|
5123
5091
|
};
|
5124
5092
|
|
5125
|
-
declare type EndpointIdentity = OpenFin_2.ClientIdentity | ProviderIdentity_3;
|
5126
|
-
|
5127
|
-
declare type EndpointPayload = {
|
5128
|
-
endpointIdentity: EndpointIdentity;
|
5129
|
-
};
|
5130
|
-
|
5131
5093
|
/**
|
5132
5094
|
* Generated at the end of a user-driven change to a window's size or position.
|
5133
5095
|
* @interface
|
@@ -5229,7 +5191,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
5229
5191
|
|
5230
5192
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5231
5193
|
|
5232
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
5194
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
5233
5195
|
|
5234
5196
|
/**
|
5235
5197
|
* This function converts JS errors into plain objects
|
@@ -9371,17 +9333,6 @@ declare interface MessageReceiver {
|
|
9371
9333
|
readyState: FlexReadyState;
|
9372
9334
|
}
|
9373
9335
|
|
9374
|
-
declare class MessageReceiver_2 extends Base {
|
9375
|
-
private endpointMap;
|
9376
|
-
private latestEndpointIdByChannelId;
|
9377
|
-
constructor(wire: Transport);
|
9378
|
-
private processChannelMessage;
|
9379
|
-
private onmessage;
|
9380
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
9381
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
9382
|
-
checkForPreviousClientConnection(channelId: string): void;
|
9383
|
-
}
|
9384
|
-
|
9385
9336
|
/**
|
9386
9337
|
* Protocol values for determining channel messaging strategy.
|
9387
9338
|
*/
|
@@ -9887,8 +9838,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
9887
9838
|
type: 'not-responding';
|
9888
9839
|
};
|
9889
9840
|
|
9890
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
9891
|
-
|
9892
9841
|
/**
|
9893
9842
|
* @interface
|
9894
9843
|
*/
|
@@ -10166,7 +10115,7 @@ declare namespace OpenFin_2 {
|
|
10166
10115
|
ContextForIntent,
|
10167
10116
|
InfoForIntentOptions,
|
10168
10117
|
FindIntentsByContextOptions,
|
10169
|
-
|
10118
|
+
ProviderIdentity_4 as ProviderIdentity,
|
10170
10119
|
RegisterUsageData,
|
10171
10120
|
ViewsPreventingUnloadPayload,
|
10172
10121
|
BeforeUnloadUserDecision,
|
@@ -10268,10 +10217,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
10268
10217
|
diff: OpenFin_2.WindowOptionDiff;
|
10269
10218
|
};
|
10270
10219
|
|
10271
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
10272
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
10273
|
-
};
|
10274
|
-
|
10275
10220
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
10276
10221
|
|
10277
10222
|
/**
|
@@ -10372,8 +10317,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
10372
10317
|
type: Type;
|
10373
10318
|
}>;
|
10374
10319
|
|
10375
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
10376
|
-
|
10377
10320
|
/**
|
10378
10321
|
* Generated when window finishes loading. Provides performance and navigation data.
|
10379
10322
|
* @interface
|
@@ -12520,17 +12463,11 @@ declare type ProviderIdentity_2 = OpenFin_2.ProviderIdentity;
|
|
12520
12463
|
|
12521
12464
|
declare type ProviderIdentity_3 = OpenFin_2.ProviderIdentity;
|
12522
12465
|
|
12523
|
-
declare type ProviderIdentity_4 = OpenFin_2.ProviderIdentity;
|
12524
|
-
|
12525
|
-
declare type ProviderIdentity_5 = OpenFin_2.ProviderIdentity;
|
12526
|
-
|
12527
|
-
declare type ProviderIdentity_6 = OpenFin_2.ProviderIdentity;
|
12528
|
-
|
12529
12466
|
/**
|
12530
12467
|
* Identity of a channel provider.
|
12531
12468
|
* @interface
|
12532
12469
|
*/
|
12533
|
-
declare type
|
12470
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
12534
12471
|
/**
|
12535
12472
|
* Identifier of the channel.
|
12536
12473
|
*/
|
@@ -12862,21 +12799,10 @@ declare type RGB = {
|
|
12862
12799
|
/**
|
12863
12800
|
* @interface
|
12864
12801
|
*/
|
12865
|
-
declare type RoutingInfo =
|
12802
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
12866
12803
|
endpointId: string;
|
12867
12804
|
};
|
12868
12805
|
|
12869
|
-
declare interface RTCEndpointChannels {
|
12870
|
-
request: RTCDataChannel;
|
12871
|
-
response: RTCDataChannel;
|
12872
|
-
}
|
12873
|
-
|
12874
|
-
declare interface RTCPacket {
|
12875
|
-
rtcClient: RTCPeerConnection;
|
12876
|
-
channels: RTCEndpointChannels;
|
12877
|
-
channelsOpened: Promise<void>;
|
12878
|
-
}
|
12879
|
-
|
12880
12806
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
12881
12807
|
type: 'rtc';
|
12882
12808
|
payload: {
|
@@ -12885,25 +12811,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
12885
12811
|
};
|
12886
12812
|
}
|
12887
12813
|
|
12888
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
12889
|
-
#private;
|
12890
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
12891
|
-
receive(listener: (action: string, payload: any, identity: OpenFin_2.ClientIdentity | OpenFin_2.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
12892
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
12893
|
-
close: () => Promise<void>;
|
12894
|
-
private getEndpointById;
|
12895
|
-
get connected(): boolean;
|
12896
|
-
isEndpointConnected(endpointId: string): boolean;
|
12897
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
12898
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
12899
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
12900
|
-
}
|
12901
|
-
|
12902
|
-
declare interface RTCStrategyEndpointPayload {
|
12903
|
-
endpointIdentity: OpenFin_2.ClientIdentity | ProviderIdentity_5;
|
12904
|
-
rtc: RTCPacket;
|
12905
|
-
}
|
12906
|
-
|
12907
12814
|
declare type RunRequestedEvent = OpenFin_2.ApplicationEvents.RunRequestedEvent;
|
12908
12815
|
|
12909
12816
|
/**
|
package/out/mock-beta.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.
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin_2.Fin['InterApplicationBus']['Channel'];
|
|
2383
2383
|
|
2384
2384
|
declare type ChannelAction = OpenFin_2.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_2.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_2.ClientIdentity | OpenFin_2.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'.
|
@@ -5122,12 +5090,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
5122
5090
|
isMain: boolean;
|
5123
5091
|
};
|
5124
5092
|
|
5125
|
-
declare type EndpointIdentity = OpenFin_2.ClientIdentity | ProviderIdentity_3;
|
5126
|
-
|
5127
|
-
declare type EndpointPayload = {
|
5128
|
-
endpointIdentity: EndpointIdentity;
|
5129
|
-
};
|
5130
|
-
|
5131
5093
|
/**
|
5132
5094
|
* Generated at the end of a user-driven change to a window's size or position.
|
5133
5095
|
* @interface
|
@@ -5229,7 +5191,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
5229
5191
|
|
5230
5192
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5231
5193
|
|
5232
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
5194
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
5233
5195
|
|
5234
5196
|
/**
|
5235
5197
|
* This function converts JS errors into plain objects
|
@@ -9371,17 +9333,6 @@ declare interface MessageReceiver {
|
|
9371
9333
|
readyState: FlexReadyState;
|
9372
9334
|
}
|
9373
9335
|
|
9374
|
-
declare class MessageReceiver_2 extends Base {
|
9375
|
-
private endpointMap;
|
9376
|
-
private latestEndpointIdByChannelId;
|
9377
|
-
constructor(wire: Transport);
|
9378
|
-
private processChannelMessage;
|
9379
|
-
private onmessage;
|
9380
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
9381
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
9382
|
-
checkForPreviousClientConnection(channelId: string): void;
|
9383
|
-
}
|
9384
|
-
|
9385
9336
|
/**
|
9386
9337
|
* Protocol values for determining channel messaging strategy.
|
9387
9338
|
*/
|
@@ -9887,8 +9838,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
9887
9838
|
type: 'not-responding';
|
9888
9839
|
};
|
9889
9840
|
|
9890
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
9891
|
-
|
9892
9841
|
/**
|
9893
9842
|
* @interface
|
9894
9843
|
*/
|
@@ -10166,7 +10115,7 @@ declare namespace OpenFin_2 {
|
|
10166
10115
|
ContextForIntent,
|
10167
10116
|
InfoForIntentOptions,
|
10168
10117
|
FindIntentsByContextOptions,
|
10169
|
-
|
10118
|
+
ProviderIdentity_4 as ProviderIdentity,
|
10170
10119
|
RegisterUsageData,
|
10171
10120
|
ViewsPreventingUnloadPayload,
|
10172
10121
|
BeforeUnloadUserDecision,
|
@@ -10268,10 +10217,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
10268
10217
|
diff: OpenFin_2.WindowOptionDiff;
|
10269
10218
|
};
|
10270
10219
|
|
10271
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
10272
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
10273
|
-
};
|
10274
|
-
|
10275
10220
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
10276
10221
|
|
10277
10222
|
/**
|
@@ -10372,8 +10317,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
10372
10317
|
type: Type;
|
10373
10318
|
}>;
|
10374
10319
|
|
10375
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
10376
|
-
|
10377
10320
|
/**
|
10378
10321
|
* Generated when window finishes loading. Provides performance and navigation data.
|
10379
10322
|
* @interface
|
@@ -12520,17 +12463,11 @@ declare type ProviderIdentity_2 = OpenFin_2.ProviderIdentity;
|
|
12520
12463
|
|
12521
12464
|
declare type ProviderIdentity_3 = OpenFin_2.ProviderIdentity;
|
12522
12465
|
|
12523
|
-
declare type ProviderIdentity_4 = OpenFin_2.ProviderIdentity;
|
12524
|
-
|
12525
|
-
declare type ProviderIdentity_5 = OpenFin_2.ProviderIdentity;
|
12526
|
-
|
12527
|
-
declare type ProviderIdentity_6 = OpenFin_2.ProviderIdentity;
|
12528
|
-
|
12529
12466
|
/**
|
12530
12467
|
* Identity of a channel provider.
|
12531
12468
|
* @interface
|
12532
12469
|
*/
|
12533
|
-
declare type
|
12470
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
12534
12471
|
/**
|
12535
12472
|
* Identifier of the channel.
|
12536
12473
|
*/
|
@@ -12862,21 +12799,10 @@ declare type RGB = {
|
|
12862
12799
|
/**
|
12863
12800
|
* @interface
|
12864
12801
|
*/
|
12865
|
-
declare type RoutingInfo =
|
12802
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
12866
12803
|
endpointId: string;
|
12867
12804
|
};
|
12868
12805
|
|
12869
|
-
declare interface RTCEndpointChannels {
|
12870
|
-
request: RTCDataChannel;
|
12871
|
-
response: RTCDataChannel;
|
12872
|
-
}
|
12873
|
-
|
12874
|
-
declare interface RTCPacket {
|
12875
|
-
rtcClient: RTCPeerConnection;
|
12876
|
-
channels: RTCEndpointChannels;
|
12877
|
-
channelsOpened: Promise<void>;
|
12878
|
-
}
|
12879
|
-
|
12880
12806
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
12881
12807
|
type: 'rtc';
|
12882
12808
|
payload: {
|
@@ -12885,25 +12811,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
12885
12811
|
};
|
12886
12812
|
}
|
12887
12813
|
|
12888
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
12889
|
-
#private;
|
12890
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
12891
|
-
receive(listener: (action: string, payload: any, identity: OpenFin_2.ClientIdentity | OpenFin_2.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
12892
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
12893
|
-
close: () => Promise<void>;
|
12894
|
-
private getEndpointById;
|
12895
|
-
get connected(): boolean;
|
12896
|
-
isEndpointConnected(endpointId: string): boolean;
|
12897
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
12898
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
12899
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
12900
|
-
}
|
12901
|
-
|
12902
|
-
declare interface RTCStrategyEndpointPayload {
|
12903
|
-
endpointIdentity: OpenFin_2.ClientIdentity | ProviderIdentity_5;
|
12904
|
-
rtc: RTCPacket;
|
12905
|
-
}
|
12906
|
-
|
12907
12814
|
declare type RunRequestedEvent = OpenFin_2.ApplicationEvents.RunRequestedEvent;
|
12908
12815
|
|
12909
12816
|
/**
|
package/out/mock-public.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.
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin_2.Fin['InterApplicationBus']['Channel'];
|
|
2383
2383
|
|
2384
2384
|
declare type ChannelAction = OpenFin_2.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_2.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_2.ClientIdentity | OpenFin_2.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'.
|
@@ -5122,12 +5090,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
5122
5090
|
isMain: boolean;
|
5123
5091
|
};
|
5124
5092
|
|
5125
|
-
declare type EndpointIdentity = OpenFin_2.ClientIdentity | ProviderIdentity_3;
|
5126
|
-
|
5127
|
-
declare type EndpointPayload = {
|
5128
|
-
endpointIdentity: EndpointIdentity;
|
5129
|
-
};
|
5130
|
-
|
5131
5093
|
/**
|
5132
5094
|
* Generated at the end of a user-driven change to a window's size or position.
|
5133
5095
|
* @interface
|
@@ -5229,7 +5191,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
5229
5191
|
|
5230
5192
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5231
5193
|
|
5232
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
5194
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
5233
5195
|
|
5234
5196
|
/**
|
5235
5197
|
* This function converts JS errors into plain objects
|
@@ -9371,17 +9333,6 @@ declare interface MessageReceiver {
|
|
9371
9333
|
readyState: FlexReadyState;
|
9372
9334
|
}
|
9373
9335
|
|
9374
|
-
declare class MessageReceiver_2 extends Base {
|
9375
|
-
private endpointMap;
|
9376
|
-
private latestEndpointIdByChannelId;
|
9377
|
-
constructor(wire: Transport);
|
9378
|
-
private processChannelMessage;
|
9379
|
-
private onmessage;
|
9380
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
9381
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
9382
|
-
checkForPreviousClientConnection(channelId: string): void;
|
9383
|
-
}
|
9384
|
-
|
9385
9336
|
/**
|
9386
9337
|
* Protocol values for determining channel messaging strategy.
|
9387
9338
|
*/
|
@@ -9887,8 +9838,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
9887
9838
|
type: 'not-responding';
|
9888
9839
|
};
|
9889
9840
|
|
9890
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
9891
|
-
|
9892
9841
|
/**
|
9893
9842
|
* @interface
|
9894
9843
|
*/
|
@@ -10166,7 +10115,7 @@ declare namespace OpenFin_2 {
|
|
10166
10115
|
ContextForIntent,
|
10167
10116
|
InfoForIntentOptions,
|
10168
10117
|
FindIntentsByContextOptions,
|
10169
|
-
|
10118
|
+
ProviderIdentity_4 as ProviderIdentity,
|
10170
10119
|
RegisterUsageData,
|
10171
10120
|
ViewsPreventingUnloadPayload,
|
10172
10121
|
BeforeUnloadUserDecision,
|
@@ -10268,10 +10217,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
10268
10217
|
diff: OpenFin_2.WindowOptionDiff;
|
10269
10218
|
};
|
10270
10219
|
|
10271
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
10272
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
10273
|
-
};
|
10274
|
-
|
10275
10220
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
10276
10221
|
|
10277
10222
|
/**
|
@@ -10372,8 +10317,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
10372
10317
|
type: Type;
|
10373
10318
|
}>;
|
10374
10319
|
|
10375
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
10376
|
-
|
10377
10320
|
/**
|
10378
10321
|
* Generated when window finishes loading. Provides performance and navigation data.
|
10379
10322
|
* @interface
|
@@ -12520,17 +12463,11 @@ declare type ProviderIdentity_2 = OpenFin_2.ProviderIdentity;
|
|
12520
12463
|
|
12521
12464
|
declare type ProviderIdentity_3 = OpenFin_2.ProviderIdentity;
|
12522
12465
|
|
12523
|
-
declare type ProviderIdentity_4 = OpenFin_2.ProviderIdentity;
|
12524
|
-
|
12525
|
-
declare type ProviderIdentity_5 = OpenFin_2.ProviderIdentity;
|
12526
|
-
|
12527
|
-
declare type ProviderIdentity_6 = OpenFin_2.ProviderIdentity;
|
12528
|
-
|
12529
12466
|
/**
|
12530
12467
|
* Identity of a channel provider.
|
12531
12468
|
* @interface
|
12532
12469
|
*/
|
12533
|
-
declare type
|
12470
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
12534
12471
|
/**
|
12535
12472
|
* Identifier of the channel.
|
12536
12473
|
*/
|
@@ -12862,21 +12799,10 @@ declare type RGB = {
|
|
12862
12799
|
/**
|
12863
12800
|
* @interface
|
12864
12801
|
*/
|
12865
|
-
declare type RoutingInfo =
|
12802
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
12866
12803
|
endpointId: string;
|
12867
12804
|
};
|
12868
12805
|
|
12869
|
-
declare interface RTCEndpointChannels {
|
12870
|
-
request: RTCDataChannel;
|
12871
|
-
response: RTCDataChannel;
|
12872
|
-
}
|
12873
|
-
|
12874
|
-
declare interface RTCPacket {
|
12875
|
-
rtcClient: RTCPeerConnection;
|
12876
|
-
channels: RTCEndpointChannels;
|
12877
|
-
channelsOpened: Promise<void>;
|
12878
|
-
}
|
12879
|
-
|
12880
12806
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
12881
12807
|
type: 'rtc';
|
12882
12808
|
payload: {
|
@@ -12885,25 +12811,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
12885
12811
|
};
|
12886
12812
|
}
|
12887
12813
|
|
12888
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
12889
|
-
#private;
|
12890
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
12891
|
-
receive(listener: (action: string, payload: any, identity: OpenFin_2.ClientIdentity | OpenFin_2.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
12892
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
12893
|
-
close: () => Promise<void>;
|
12894
|
-
private getEndpointById;
|
12895
|
-
get connected(): boolean;
|
12896
|
-
isEndpointConnected(endpointId: string): boolean;
|
12897
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
12898
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
12899
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
12900
|
-
}
|
12901
|
-
|
12902
|
-
declare interface RTCStrategyEndpointPayload {
|
12903
|
-
endpointIdentity: OpenFin_2.ClientIdentity | ProviderIdentity_5;
|
12904
|
-
rtc: RTCPacket;
|
12905
|
-
}
|
12906
|
-
|
12907
12814
|
declare type RunRequestedEvent = OpenFin_2.ApplicationEvents.RunRequestedEvent;
|
12908
12815
|
|
12909
12816
|
/**
|
package/out/mock.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_2.Fin['InterApplicationBus']['Channel'];
|
|
2422
2422
|
|
2423
2423
|
declare type ChannelAction = OpenFin_2.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_2.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_2.ClientIdentity | OpenFin_2.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'.
|
@@ -5182,12 +5150,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
5182
5150
|
isMain: boolean;
|
5183
5151
|
};
|
5184
5152
|
|
5185
|
-
declare type EndpointIdentity = OpenFin_2.ClientIdentity | ProviderIdentity_3;
|
5186
|
-
|
5187
|
-
declare type EndpointPayload = {
|
5188
|
-
endpointIdentity: EndpointIdentity;
|
5189
|
-
};
|
5190
|
-
|
5191
5153
|
/**
|
5192
5154
|
* Generated at the end of a user-driven change to a window's size or position.
|
5193
5155
|
* @interface
|
@@ -5289,7 +5251,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
5289
5251
|
|
5290
5252
|
declare type ErrorMiddleware = OpenFin_2.ErrorMiddleware;
|
5291
5253
|
|
5292
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
5254
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
5293
5255
|
|
5294
5256
|
/**
|
5295
5257
|
* This function converts JS errors into plain objects
|
@@ -9660,17 +9622,6 @@ declare interface MessageReceiver {
|
|
9660
9622
|
readyState: FlexReadyState;
|
9661
9623
|
}
|
9662
9624
|
|
9663
|
-
declare class MessageReceiver_2 extends Base {
|
9664
|
-
private endpointMap;
|
9665
|
-
private latestEndpointIdByChannelId;
|
9666
|
-
constructor(wire: Transport);
|
9667
|
-
private processChannelMessage;
|
9668
|
-
private onmessage;
|
9669
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
9670
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
9671
|
-
checkForPreviousClientConnection(channelId: string): void;
|
9672
|
-
}
|
9673
|
-
|
9674
9625
|
/**
|
9675
9626
|
* Protocol values for determining channel messaging strategy.
|
9676
9627
|
*/
|
@@ -10198,8 +10149,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
10198
10149
|
type: 'not-responding';
|
10199
10150
|
};
|
10200
10151
|
|
10201
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
10202
|
-
|
10203
10152
|
/**
|
10204
10153
|
* @interface
|
10205
10154
|
*/
|
@@ -10477,7 +10426,7 @@ declare namespace OpenFin_2 {
|
|
10477
10426
|
ContextForIntent,
|
10478
10427
|
InfoForIntentOptions,
|
10479
10428
|
FindIntentsByContextOptions,
|
10480
|
-
|
10429
|
+
ProviderIdentity_4 as ProviderIdentity,
|
10481
10430
|
RegisterUsageData,
|
10482
10431
|
ViewsPreventingUnloadPayload,
|
10483
10432
|
BeforeUnloadUserDecision,
|
@@ -10579,10 +10528,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
10579
10528
|
diff: OpenFin_2.WindowOptionDiff;
|
10580
10529
|
};
|
10581
10530
|
|
10582
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
10583
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
10584
|
-
};
|
10585
|
-
|
10586
10531
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
10587
10532
|
|
10588
10533
|
/**
|
@@ -10683,8 +10628,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
10683
10628
|
type: Type;
|
10684
10629
|
}>;
|
10685
10630
|
|
10686
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
10687
|
-
|
10688
10631
|
/**
|
10689
10632
|
* Generated when window finishes loading. Provides performance and navigation data.
|
10690
10633
|
* @interface
|
@@ -12909,17 +12852,11 @@ declare type ProviderIdentity_2 = OpenFin_2.ProviderIdentity;
|
|
12909
12852
|
|
12910
12853
|
declare type ProviderIdentity_3 = OpenFin_2.ProviderIdentity;
|
12911
12854
|
|
12912
|
-
declare type ProviderIdentity_4 = OpenFin_2.ProviderIdentity;
|
12913
|
-
|
12914
|
-
declare type ProviderIdentity_5 = OpenFin_2.ProviderIdentity;
|
12915
|
-
|
12916
|
-
declare type ProviderIdentity_6 = OpenFin_2.ProviderIdentity;
|
12917
|
-
|
12918
12855
|
/**
|
12919
12856
|
* Identity of a channel provider.
|
12920
12857
|
* @interface
|
12921
12858
|
*/
|
12922
|
-
declare type
|
12859
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
12923
12860
|
/**
|
12924
12861
|
* Identifier of the channel.
|
12925
12862
|
*/
|
@@ -13251,21 +13188,10 @@ declare type RGB = {
|
|
13251
13188
|
/**
|
13252
13189
|
* @interface
|
13253
13190
|
*/
|
13254
|
-
declare type RoutingInfo =
|
13191
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
13255
13192
|
endpointId: string;
|
13256
13193
|
};
|
13257
13194
|
|
13258
|
-
declare interface RTCEndpointChannels {
|
13259
|
-
request: RTCDataChannel;
|
13260
|
-
response: RTCDataChannel;
|
13261
|
-
}
|
13262
|
-
|
13263
|
-
declare interface RTCPacket {
|
13264
|
-
rtcClient: RTCPeerConnection;
|
13265
|
-
channels: RTCEndpointChannels;
|
13266
|
-
channelsOpened: Promise<void>;
|
13267
|
-
}
|
13268
|
-
|
13269
13195
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
13270
13196
|
type: 'rtc';
|
13271
13197
|
payload: {
|
@@ -13274,25 +13200,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
13274
13200
|
};
|
13275
13201
|
}
|
13276
13202
|
|
13277
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
13278
|
-
#private;
|
13279
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
13280
|
-
receive(listener: (action: string, payload: any, identity: OpenFin_2.ClientIdentity | OpenFin_2.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
13281
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
13282
|
-
close: () => Promise<void>;
|
13283
|
-
private getEndpointById;
|
13284
|
-
get connected(): boolean;
|
13285
|
-
isEndpointConnected(endpointId: string): boolean;
|
13286
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
13287
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
13288
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
13289
|
-
}
|
13290
|
-
|
13291
|
-
declare interface RTCStrategyEndpointPayload {
|
13292
|
-
endpointIdentity: OpenFin_2.ClientIdentity | ProviderIdentity_5;
|
13293
|
-
rtc: RTCPacket;
|
13294
|
-
}
|
13295
|
-
|
13296
13203
|
declare type RunRequestedEvent = OpenFin_2.ApplicationEvents.RunRequestedEvent;
|
13297
13204
|
|
13298
13205
|
/**
|
package/out/mock.js
CHANGED
@@ -8255,7 +8255,7 @@ function exhaustiveCheck(value, allowed) {
|
|
8255
8255
|
}
|
8256
8256
|
exhaustive.exhaustiveCheck = exhaustiveCheck;
|
8257
8257
|
|
8258
|
-
var strategy$
|
8258
|
+
var strategy$3 = {};
|
8259
8259
|
|
8260
8260
|
var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
8261
8261
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
@@ -8269,8 +8269,8 @@ var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
8269
8269
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
8270
8270
|
};
|
8271
8271
|
var _ClassicStrategy_wire, _ClassicStrategy_endpointIdentityMap, _ClassicStrategy_pendingMessagesByEndpointId;
|
8272
|
-
Object.defineProperty(strategy$
|
8273
|
-
strategy$
|
8272
|
+
Object.defineProperty(strategy$3, "__esModule", { value: true });
|
8273
|
+
strategy$3.ClassicInfo = strategy$3.ClassicStrategy = void 0;
|
8274
8274
|
/*
|
8275
8275
|
This is used to abstract out ipc messaging from the channels implementation. It is only concerned with sending messages and registration with the MessageReceiver
|
8276
8276
|
*/
|
@@ -8350,12 +8350,12 @@ class ClassicStrategy {
|
|
8350
8350
|
typeof payload?.endpointIdentity?.channelId === 'string');
|
8351
8351
|
}
|
8352
8352
|
}
|
8353
|
-
strategy$
|
8353
|
+
strategy$3.ClassicStrategy = ClassicStrategy;
|
8354
8354
|
_ClassicStrategy_wire = new WeakMap(), _ClassicStrategy_endpointIdentityMap = new WeakMap(), _ClassicStrategy_pendingMessagesByEndpointId = new WeakMap();
|
8355
8355
|
// Arbitrarily starting at 5 to leave the door open to backfilling pre endpointId etc.
|
8356
|
-
strategy$
|
8356
|
+
strategy$3.ClassicInfo = { version: 5, minimumVersion: 0, type: 'classic' };
|
8357
8357
|
|
8358
|
-
var strategy$
|
8358
|
+
var strategy$2 = {};
|
8359
8359
|
|
8360
8360
|
var endpoint = {};
|
8361
8361
|
|
@@ -8394,9 +8394,19 @@ const errors_1$1 = errors;
|
|
8394
8394
|
This handles sending RTC messages between RTC connections over the request and response data channels.
|
8395
8395
|
*/
|
8396
8396
|
class RTCEndpoint {
|
8397
|
-
|
8398
|
-
|
8399
|
-
|
8397
|
+
static isValidEndpointPayload(payload) {
|
8398
|
+
const isObject = (x) => {
|
8399
|
+
return typeof x === 'object' && x !== null;
|
8400
|
+
};
|
8401
|
+
return (
|
8402
|
+
// TODO in factory PR:
|
8403
|
+
// payload.type === 'rtc' &&
|
8404
|
+
isObject(payload) &&
|
8405
|
+
isObject(payload.endpointIdentity) &&
|
8406
|
+
isObject(payload.rtc) &&
|
8407
|
+
typeof payload.endpointIdentity.endpointId === 'string');
|
8408
|
+
}
|
8409
|
+
constructor({ rtc, endpointIdentity }) {
|
8400
8410
|
this.responseMap = new Map();
|
8401
8411
|
_RTCEndpoint_processAction.set(this, null);
|
8402
8412
|
_RTCEndpoint_disconnectListener.set(this, void 0);
|
@@ -8424,6 +8434,8 @@ class RTCEndpoint {
|
|
8424
8434
|
this.rtc.channels.response.close();
|
8425
8435
|
this.rtc.rtcClient.close();
|
8426
8436
|
};
|
8437
|
+
this.rtc = rtc;
|
8438
|
+
this.endpointIdentity = endpointIdentity;
|
8427
8439
|
this.rtc.channels.response.addEventListener('message', (e) => {
|
8428
8440
|
let { data } = e;
|
8429
8441
|
if (e.data instanceof ArrayBuffer) {
|
@@ -8514,6 +8526,8 @@ class RTCEndpoint {
|
|
8514
8526
|
endpoint.RTCEndpoint = RTCEndpoint;
|
8515
8527
|
_RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = new WeakMap();
|
8516
8528
|
|
8529
|
+
var strategy$1 = {};
|
8530
|
+
|
8517
8531
|
var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8518
8532
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
8519
8533
|
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");
|
@@ -8525,79 +8539,87 @@ var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
8525
8539
|
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");
|
8526
8540
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
8527
8541
|
};
|
8528
|
-
var
|
8542
|
+
var _EndpointStrategy_processAction, _EndpointStrategy_endpointMap, _EndpointStrategy_connected;
|
8529
8543
|
Object.defineProperty(strategy$1, "__esModule", { value: true });
|
8530
|
-
strategy$1.
|
8531
|
-
|
8532
|
-
|
8533
|
-
|
8534
|
-
|
8535
|
-
|
8536
|
-
|
8537
|
-
|
8538
|
-
|
8539
|
-
_RTCStrategy_connected.set(this, true);
|
8544
|
+
strategy$1.EndpointStrategy = void 0;
|
8545
|
+
class EndpointStrategy {
|
8546
|
+
// Need to pass in validate endpoint separately from constructor because ts interfaces don't do well with static methods
|
8547
|
+
constructor(EndpointType, validateEndpoint, StrategyName) {
|
8548
|
+
this.EndpointType = EndpointType;
|
8549
|
+
this.StrategyName = StrategyName;
|
8550
|
+
_EndpointStrategy_processAction.set(this, null);
|
8551
|
+
_EndpointStrategy_endpointMap.set(this, new Map());
|
8552
|
+
_EndpointStrategy_connected.set(this, true);
|
8540
8553
|
this.send = async (endpointId, action, payload) => {
|
8541
8554
|
return this.getEndpointById(endpointId).send(action, payload);
|
8542
8555
|
};
|
8543
8556
|
this.close = async () => {
|
8544
|
-
if (__classPrivateFieldGet$a(this,
|
8545
|
-
__classPrivateFieldGet$a(this,
|
8546
|
-
__classPrivateFieldSet$8(this,
|
8557
|
+
if (__classPrivateFieldGet$a(this, _EndpointStrategy_connected, "f")) {
|
8558
|
+
__classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
|
8559
|
+
__classPrivateFieldSet$8(this, _EndpointStrategy_endpointMap, new Map(), "f");
|
8547
8560
|
}
|
8548
|
-
__classPrivateFieldSet$8(this,
|
8561
|
+
__classPrivateFieldSet$8(this, _EndpointStrategy_connected, false, "f");
|
8549
8562
|
};
|
8563
|
+
this.isValidEndpointPayload = validateEndpoint;
|
8550
8564
|
}
|
8551
8565
|
onEndpointDisconnect(endpointId, listener) {
|
8552
8566
|
this.getEndpointById(endpointId).onDisconnect(listener);
|
8553
8567
|
}
|
8554
8568
|
receive(listener) {
|
8555
|
-
if (__classPrivateFieldGet$a(this,
|
8556
|
-
throw new Error(
|
8569
|
+
if (__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f")) {
|
8570
|
+
throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
|
8557
8571
|
}
|
8558
|
-
__classPrivateFieldSet$8(this,
|
8559
|
-
|
8572
|
+
__classPrivateFieldSet$8(this, _EndpointStrategy_processAction, listener, "f");
|
8573
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
8574
|
+
__classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f")));
|
8560
8575
|
}
|
8561
8576
|
getEndpointById(endpointId) {
|
8562
|
-
const endpoint = __classPrivateFieldGet$a(this,
|
8577
|
+
const endpoint = __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
|
8563
8578
|
if (!endpoint) {
|
8564
8579
|
throw new Error(`Client with endpoint id ${endpointId} is not connected`);
|
8565
8580
|
}
|
8566
8581
|
return endpoint;
|
8567
8582
|
}
|
8568
8583
|
get connected() {
|
8569
|
-
return __classPrivateFieldGet$a(this,
|
8584
|
+
return __classPrivateFieldGet$a(this, _EndpointStrategy_connected, "f");
|
8570
8585
|
}
|
8571
8586
|
isEndpointConnected(endpointId) {
|
8572
|
-
return __classPrivateFieldGet$a(this,
|
8587
|
+
return __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
|
8573
8588
|
}
|
8574
8589
|
addEndpoint(endpointId, payload) {
|
8575
|
-
if (!__classPrivateFieldGet$a(this,
|
8576
|
-
console.warn(
|
8590
|
+
if (!__classPrivateFieldGet$a(this, _EndpointStrategy_connected, "f")) {
|
8591
|
+
console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
|
8577
8592
|
return;
|
8578
8593
|
}
|
8579
|
-
const clientStrat = new
|
8580
|
-
if (__classPrivateFieldGet$a(this,
|
8581
|
-
clientStrat.receive(__classPrivateFieldGet$a(this,
|
8594
|
+
const clientStrat = new this.EndpointType(payload);
|
8595
|
+
if (__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f")) {
|
8596
|
+
clientStrat.receive(__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f"));
|
8582
8597
|
}
|
8583
|
-
__classPrivateFieldGet$a(this,
|
8598
|
+
__classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
|
8584
8599
|
}
|
8585
8600
|
async closeEndpoint(endpointId) {
|
8586
|
-
__classPrivateFieldGet$a(this,
|
8601
|
+
__classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
|
8587
8602
|
}
|
8588
|
-
|
8589
|
-
|
8590
|
-
|
8591
|
-
|
8592
|
-
|
8593
|
-
|
8594
|
-
|
8595
|
-
|
8603
|
+
}
|
8604
|
+
strategy$1.EndpointStrategy = EndpointStrategy;
|
8605
|
+
_EndpointStrategy_processAction = new WeakMap(), _EndpointStrategy_endpointMap = new WeakMap(), _EndpointStrategy_connected = new WeakMap();
|
8606
|
+
|
8607
|
+
Object.defineProperty(strategy$2, "__esModule", { value: true });
|
8608
|
+
strategy$2.RTCInfo = strategy$2.RTCStrategy = void 0;
|
8609
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
8610
|
+
/* eslint-disable class-methods-use-this */
|
8611
|
+
const endpoint_1 = endpoint;
|
8612
|
+
const strategy_1$1 = strategy$1;
|
8613
|
+
/*
|
8614
|
+
This is used to abstract out rtc messaging from the channels implementation using RTCEndpoints.
|
8615
|
+
*/
|
8616
|
+
class RTCStrategy extends strategy_1$1.EndpointStrategy {
|
8617
|
+
constructor() {
|
8618
|
+
super(endpoint_1.RTCEndpoint, endpoint_1.RTCEndpoint.isValidEndpointPayload, 'RTC');
|
8596
8619
|
}
|
8597
8620
|
}
|
8598
|
-
strategy$
|
8599
|
-
|
8600
|
-
strategy$1.RTCInfo = { version: 2, minimumVersion: 0, type: 'rtc' };
|
8621
|
+
strategy$2.RTCStrategy = RTCStrategy;
|
8622
|
+
strategy$2.RTCInfo = { version: 2, minimumVersion: 0, type: 'rtc' };
|
8601
8623
|
|
8602
8624
|
var iceManager = {};
|
8603
8625
|
|
@@ -9288,8 +9310,8 @@ Object.defineProperty(connectionManager, "__esModule", { value: true });
|
|
9288
9310
|
connectionManager.ConnectionManager = void 0;
|
9289
9311
|
const exhaustive_1 = exhaustive;
|
9290
9312
|
const base_1$g = base;
|
9291
|
-
const strategy_1 = strategy$
|
9292
|
-
const strategy_2 = strategy$
|
9313
|
+
const strategy_1 = strategy$3;
|
9314
|
+
const strategy_2 = strategy$2;
|
9293
9315
|
const ice_manager_1 = iceManager;
|
9294
9316
|
const provider_1$1 = provider;
|
9295
9317
|
const message_receiver_1 = messageReceiver;
|
@@ -15115,42 +15137,49 @@ class InteropClient extends base_1$2.Base {
|
|
15115
15137
|
InteropClient$1.InteropClient = InteropClient;
|
15116
15138
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
15117
15139
|
|
15118
|
-
var overrideCheck
|
15140
|
+
var overrideCheck = {};
|
15119
15141
|
|
15120
|
-
|
15121
|
-
|
15122
|
-
|
15123
|
-
|
15124
|
-
|
15125
|
-
|
15126
|
-
|
15127
|
-
|
15128
|
-
function
|
15129
|
-
|
15130
|
-
|
15131
|
-
|
15132
|
-
|
15133
|
-
|
15134
|
-
|
15135
|
-
|
15136
|
-
|
15137
|
-
|
15138
|
-
|
15139
|
-
|
15140
|
-
|
15141
|
-
|
15142
|
-
|
15143
|
-
|
15144
|
-
|
15145
|
-
|
15146
|
-
|
15147
|
-
|
15148
|
-
|
15149
|
-
|
15150
|
-
|
15151
|
-
|
15142
|
+
var hasRequiredOverrideCheck;
|
15143
|
+
|
15144
|
+
function requireOverrideCheck () {
|
15145
|
+
if (hasRequiredOverrideCheck) return overrideCheck;
|
15146
|
+
hasRequiredOverrideCheck = 1;
|
15147
|
+
Object.defineProperty(overrideCheck, "__esModule", { value: true });
|
15148
|
+
overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
15149
|
+
const InteropBroker_1 = requireInteropBroker();
|
15150
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
15151
|
+
const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
15152
|
+
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
15153
|
+
}
|
15154
|
+
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
15155
|
+
function checkFDC32Overrides(overriddenBroker) {
|
15156
|
+
// These are the APIs that must be overridden for FDC3 2.0 compliance
|
15157
|
+
const mustOverrideAPIs = [
|
15158
|
+
'fdc3HandleFindInstances',
|
15159
|
+
'handleInfoForIntent',
|
15160
|
+
'handleInfoForIntentsByContext',
|
15161
|
+
'fdc3HandleGetAppMetadata',
|
15162
|
+
'fdc3HandleGetInfo',
|
15163
|
+
'fdc3HandleOpen',
|
15164
|
+
'handleFiredIntent',
|
15165
|
+
'handleFiredIntentForContext'
|
15166
|
+
];
|
15167
|
+
return mustOverrideAPIs.filter((api) => {
|
15168
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
15169
|
+
});
|
15170
|
+
}
|
15171
|
+
overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
|
15172
|
+
function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
|
15173
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
15174
|
+
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
15175
|
+
if (notOverridden.length > 0) {
|
15176
|
+
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
15177
|
+
}
|
15178
|
+
}
|
15179
|
+
}
|
15180
|
+
overrideCheck.overrideCheck = overrideCheck$1;
|
15181
|
+
return overrideCheck;
|
15152
15182
|
}
|
15153
|
-
overrideCheck$1.overrideCheck = overrideCheck;
|
15154
15183
|
|
15155
15184
|
var hasRequiredFactory;
|
15156
15185
|
|
@@ -15164,7 +15193,7 @@ function requireFactory () {
|
|
15164
15193
|
const base_1 = base;
|
15165
15194
|
const InteropBroker_1 = requireInteropBroker();
|
15166
15195
|
const InteropClient_1 = InteropClient$1;
|
15167
|
-
const overrideCheck_1 =
|
15196
|
+
const overrideCheck_1 = requireOverrideCheck();
|
15168
15197
|
const common_utils_1 = commonUtils;
|
15169
15198
|
const defaultOverride = (Class) => new Class();
|
15170
15199
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|