@openfin/core 46.100.64 → 46.100.66
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 +152 -16
- package/out/mock-beta.d.ts +152 -16
- package/out/mock-public.d.ts +152 -16
- package/out/stub.d.ts +152 -16
- package/out/stub.js +192 -99
- package/out/stub.mjs +191 -100
- package/package.json +1 -1
package/out/mock-public.d.ts
CHANGED
|
@@ -2166,6 +2166,15 @@ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
|
|
|
2166
2166
|
*/
|
|
2167
2167
|
declare type ByType_9<Type extends EventType_9> = Payload_11<Type>;
|
|
2168
2168
|
|
|
2169
|
+
/** Minimal V8 CallSite shape — js-adapter does not include @types/node. */
|
|
2170
|
+
declare interface CallSite {
|
|
2171
|
+
getFileName(): string | null;
|
|
2172
|
+
toString(): string;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/** V8 CallSite objects, or native stack-frame strings from browsers that ignore Error.prepareStackTrace. */
|
|
2176
|
+
declare type CapturedStack = CallSite[] | string[];
|
|
2177
|
+
|
|
2169
2178
|
/**
|
|
2170
2179
|
* Configuration for page capture.
|
|
2171
2180
|
*
|
|
@@ -4667,6 +4676,54 @@ declare type CustomRequestHeaders = {
|
|
|
4667
4676
|
|
|
4668
4677
|
declare type DataChannelReadyState = RTCDataChannel['readyState'];
|
|
4669
4678
|
|
|
4679
|
+
export declare type DefaultColorChannelId = keyof typeof defaultColorChannels;
|
|
4680
|
+
|
|
4681
|
+
/**
|
|
4682
|
+
* The default FDC3 user channels advertised by the Interop Broker.
|
|
4683
|
+
*/
|
|
4684
|
+
export declare const defaultColorChannels: {
|
|
4685
|
+
readonly 'fdc3.channel.1': {
|
|
4686
|
+
readonly name: "Channel 1";
|
|
4687
|
+
readonly color: "red";
|
|
4688
|
+
readonly glyph: "1";
|
|
4689
|
+
};
|
|
4690
|
+
readonly 'fdc3.channel.2': {
|
|
4691
|
+
readonly name: "Channel 2";
|
|
4692
|
+
readonly color: "orange";
|
|
4693
|
+
readonly glyph: "2";
|
|
4694
|
+
};
|
|
4695
|
+
readonly 'fdc3.channel.3': {
|
|
4696
|
+
readonly name: "Channel 3";
|
|
4697
|
+
readonly color: "yellow";
|
|
4698
|
+
readonly glyph: "3";
|
|
4699
|
+
};
|
|
4700
|
+
readonly 'fdc3.channel.4': {
|
|
4701
|
+
readonly name: "Channel 4";
|
|
4702
|
+
readonly color: "green";
|
|
4703
|
+
readonly glyph: "4";
|
|
4704
|
+
};
|
|
4705
|
+
readonly 'fdc3.channel.5': {
|
|
4706
|
+
readonly name: "Channel 5";
|
|
4707
|
+
readonly color: "cyan";
|
|
4708
|
+
readonly glyph: "5";
|
|
4709
|
+
};
|
|
4710
|
+
readonly 'fdc3.channel.6': {
|
|
4711
|
+
readonly name: "Channel 6";
|
|
4712
|
+
readonly color: "blue";
|
|
4713
|
+
readonly glyph: "6";
|
|
4714
|
+
};
|
|
4715
|
+
readonly 'fdc3.channel.7': {
|
|
4716
|
+
readonly name: "Channel 7";
|
|
4717
|
+
readonly color: "magenta";
|
|
4718
|
+
readonly glyph: "7";
|
|
4719
|
+
};
|
|
4720
|
+
readonly 'fdc3.channel.8': {
|
|
4721
|
+
readonly name: "Channel 8";
|
|
4722
|
+
readonly color: "purple";
|
|
4723
|
+
readonly glyph: "8";
|
|
4724
|
+
};
|
|
4725
|
+
};
|
|
4726
|
+
|
|
4670
4727
|
/**
|
|
4671
4728
|
* @deprecated Use {@link OpenFin.DomainSettings} instead.
|
|
4672
4729
|
* @interface
|
|
@@ -7039,17 +7096,19 @@ declare type InteropActionLoggingOption = {
|
|
|
7039
7096
|
* "interopBrokerConfiguration": {
|
|
7040
7097
|
* "contextGroups": [
|
|
7041
7098
|
* {
|
|
7042
|
-
* "id": "
|
|
7099
|
+
* "id": "fdc3.channel.4",
|
|
7043
7100
|
* "displayMetadata": {
|
|
7044
|
-
* "color": "
|
|
7045
|
-
* "name": "
|
|
7101
|
+
* "color": "green",
|
|
7102
|
+
* "name": "Channel 4",
|
|
7103
|
+
* "glyph": "4"
|
|
7046
7104
|
* }
|
|
7047
7105
|
* },
|
|
7048
7106
|
* {
|
|
7049
|
-
* "id": "
|
|
7107
|
+
* "id": "fdc3.channel.8",
|
|
7050
7108
|
* "displayMetadata": {
|
|
7051
|
-
* "color": "
|
|
7052
|
-
* "name": "
|
|
7109
|
+
* "color": "purple",
|
|
7110
|
+
* "name": "Channel 8",
|
|
7111
|
+
* "glyph": "8"
|
|
7053
7112
|
* }
|
|
7054
7113
|
* },
|
|
7055
7114
|
* ]
|
|
@@ -7183,7 +7242,7 @@ declare class InteropBroker extends Base {
|
|
|
7183
7242
|
* @param joinContextGroupOptions - Id of the Context Group and identity of the entity to join to the group.
|
|
7184
7243
|
* @param senderIdentity - Identity of the client sender.
|
|
7185
7244
|
*/
|
|
7186
|
-
joinContextGroup({ contextGroupId, target }: {
|
|
7245
|
+
joinContextGroup({ contextGroupId: requestedContextGroupId, target }: {
|
|
7187
7246
|
contextGroupId: string;
|
|
7188
7247
|
target?: OpenFin_2.ClientIdentity | OpenFin_2.Identity;
|
|
7189
7248
|
}, senderIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
@@ -7194,7 +7253,7 @@ declare class InteropBroker extends Base {
|
|
|
7194
7253
|
* @param addClientToContextGroupOptions - Contains the contextGroupId
|
|
7195
7254
|
* @param clientIdentity - Identity of the client sender.
|
|
7196
7255
|
*/
|
|
7197
|
-
addClientToContextGroup({ contextGroupId }: {
|
|
7256
|
+
addClientToContextGroup({ contextGroupId: requestedContextGroupId }: {
|
|
7198
7257
|
contextGroupId: string;
|
|
7199
7258
|
}, clientIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
7200
7259
|
/**
|
|
@@ -7607,6 +7666,8 @@ declare class InteropBroker extends Base {
|
|
|
7607
7666
|
};
|
|
7608
7667
|
private getClientState;
|
|
7609
7668
|
private static toObject;
|
|
7669
|
+
private normalizeContextGroupStates;
|
|
7670
|
+
private normalizeContextGroupId;
|
|
7610
7671
|
static checkContextIntegrity: (context: OpenFin_2.Context) => {
|
|
7611
7672
|
isValid: true;
|
|
7612
7673
|
} | {
|
|
@@ -7834,7 +7895,7 @@ declare class InteropClient extends Base {
|
|
|
7834
7895
|
*
|
|
7835
7896
|
* getLastFocusedView()
|
|
7836
7897
|
* .then(lastFocusedViewIdentity => {
|
|
7837
|
-
* joinViewToContextGroup('
|
|
7898
|
+
* joinViewToContextGroup('fdc3.channel.1', lastFocusedViewIdentity)
|
|
7838
7899
|
* })
|
|
7839
7900
|
* ```
|
|
7840
7901
|
*/
|
|
@@ -7869,7 +7930,7 @@ declare class InteropClient extends Base {
|
|
|
7869
7930
|
*
|
|
7870
7931
|
* @example
|
|
7871
7932
|
* ```js
|
|
7872
|
-
* fin.me.interop.getAllClientsInContextGroup('
|
|
7933
|
+
* fin.me.interop.getAllClientsInContextGroup('fdc3.channel.1')
|
|
7873
7934
|
* .then(clientsInContextGroup => {
|
|
7874
7935
|
* console.log(clientsInContextGroup)
|
|
7875
7936
|
* })
|
|
@@ -7884,7 +7945,7 @@ declare class InteropClient extends Base {
|
|
|
7884
7945
|
*
|
|
7885
7946
|
* @example
|
|
7886
7947
|
* ```js
|
|
7887
|
-
* fin.me.interop.getInfoForContextGroup('
|
|
7948
|
+
* fin.me.interop.getInfoForContextGroup('fdc3.channel.1')
|
|
7888
7949
|
* .then(contextGroupInfo => {
|
|
7889
7950
|
* console.log(contextGroupInfo.displayMetadata.name)
|
|
7890
7951
|
* console.log(contextGroupInfo.displayMetadata.color)
|
|
@@ -7941,12 +8002,12 @@ declare class InteropClient extends Base {
|
|
|
7941
8002
|
*
|
|
7942
8003
|
* @example
|
|
7943
8004
|
* ```js
|
|
7944
|
-
* await fin.me.interop.joinContextGroup('
|
|
8005
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
7945
8006
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
7946
8007
|
* const currentContext = await fin.me.interop.getCurrentContext();
|
|
7947
8008
|
*
|
|
7948
8009
|
* // with a specific context
|
|
7949
|
-
* await fin.me.interop.joinContextGroup('
|
|
8010
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
7950
8011
|
* await fin.me.interop.setContext({ type: 'country', id: { ISOALPHA3: 'US' }});
|
|
7951
8012
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
7952
8013
|
* const currentContext = await fin.me.interop.getCurrentContext('country');
|
|
@@ -8108,7 +8169,7 @@ declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionE
|
|
|
8108
8169
|
*/
|
|
8109
8170
|
declare type InteropConfig = {
|
|
8110
8171
|
/**
|
|
8111
|
-
* Context Group for the client
|
|
8172
|
+
* Context Group ID for the client (for example, `fdc3.channel.4`).
|
|
8112
8173
|
*/
|
|
8113
8174
|
currentContextGroup?: string | null;
|
|
8114
8175
|
/**
|
|
@@ -8157,7 +8218,7 @@ declare class InteropModule extends Base {
|
|
|
8157
8218
|
* @example
|
|
8158
8219
|
* ```js
|
|
8159
8220
|
* const interopConfig = {
|
|
8160
|
-
* currentContextGroup: '
|
|
8221
|
+
* currentContextGroup: 'fdc3.channel.4'
|
|
8161
8222
|
* }
|
|
8162
8223
|
*
|
|
8163
8224
|
* const interopBroker = await fin.Interop.init('openfin');
|
|
@@ -9261,6 +9322,20 @@ declare type LayoutSyncApi = {
|
|
|
9261
9322
|
updateAccessibilityOptions(options: Partial<LayoutAccessibilityOptions>): void;
|
|
9262
9323
|
};
|
|
9263
9324
|
|
|
9325
|
+
declare type LegacyColorChannelId = keyof typeof legacyColorChannelIds;
|
|
9326
|
+
|
|
9327
|
+
declare const legacyColorChannelIds: {
|
|
9328
|
+
readonly red: "fdc3.channel.1";
|
|
9329
|
+
readonly orange: "fdc3.channel.2";
|
|
9330
|
+
readonly yellow: "fdc3.channel.3";
|
|
9331
|
+
readonly green: "fdc3.channel.4";
|
|
9332
|
+
readonly teal: "fdc3.channel.5";
|
|
9333
|
+
readonly blue: "fdc3.channel.6";
|
|
9334
|
+
readonly pink: "fdc3.channel.7";
|
|
9335
|
+
readonly indigo: "fdc3.channel.8";
|
|
9336
|
+
readonly purple: "fdc3.channel.8";
|
|
9337
|
+
};
|
|
9338
|
+
|
|
9264
9339
|
/**
|
|
9265
9340
|
* @interface
|
|
9266
9341
|
*/
|
|
@@ -9445,6 +9520,10 @@ declare type Manifest = {
|
|
|
9445
9520
|
experimentalExtensionPolicyBlockedHosts?: {
|
|
9446
9521
|
hosts: string[];
|
|
9447
9522
|
};
|
|
9523
|
+
/**
|
|
9524
|
+
* Chromium extensions to install and enable for this application.
|
|
9525
|
+
*/
|
|
9526
|
+
extensions?: ManifestExtension[];
|
|
9448
9527
|
licenseKey: string;
|
|
9449
9528
|
offlineAccess?: boolean;
|
|
9450
9529
|
platform?: PlatformOptions;
|
|
@@ -9498,6 +9577,27 @@ declare type ManifestChangedEvent = BaseEvents.IdentityEvent & {
|
|
|
9498
9577
|
type: 'manifest-changed';
|
|
9499
9578
|
};
|
|
9500
9579
|
|
|
9580
|
+
/**
|
|
9581
|
+
* Chromium extension entry in an application configuration.
|
|
9582
|
+
*
|
|
9583
|
+
* @interface
|
|
9584
|
+
*/
|
|
9585
|
+
declare type ManifestExtension = {
|
|
9586
|
+
/** Chromium extension ID. */
|
|
9587
|
+
id: string;
|
|
9588
|
+
/** Extension server URL used to install the extension. */
|
|
9589
|
+
serverURL: string;
|
|
9590
|
+
/**
|
|
9591
|
+
* Rules declaring where this extension may inject content scripts into
|
|
9592
|
+
* non-tab surfaces (for example the AI Center). Omit or leave empty to keep
|
|
9593
|
+
* the extension restricted to browser tabs — identical to historic
|
|
9594
|
+
* behavior. A wildcard pattern in `match` grants blanket coverage.
|
|
9595
|
+
* `matchOptions` behaves as it does for domain settings. Intended for
|
|
9596
|
+
* security extensions rather than extensions that add visible UI.
|
|
9597
|
+
*/
|
|
9598
|
+
nonTabInjections?: NonTabInjectionRule[];
|
|
9599
|
+
};
|
|
9600
|
+
|
|
9501
9601
|
/**
|
|
9502
9602
|
* @interface
|
|
9503
9603
|
*/
|
|
@@ -10288,6 +10388,40 @@ declare type NonPropagatedWebContentsEvent = never;
|
|
|
10288
10388
|
*/
|
|
10289
10389
|
declare type NonPropagatedWindowEvent = never;
|
|
10290
10390
|
|
|
10391
|
+
/**
|
|
10392
|
+
* Rule permitting a Chromium extension to inject content scripts into non-tab
|
|
10393
|
+
* web content whose URL matches the given patterns.
|
|
10394
|
+
*
|
|
10395
|
+
* Match patterns use the same Chromium
|
|
10396
|
+
* [match pattern](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns)
|
|
10397
|
+
* syntax as {@link DomainSettingsRule}. Omitting `matchOptions` uses the same
|
|
10398
|
+
* default scheme-matching behavior as domain settings.
|
|
10399
|
+
*
|
|
10400
|
+
* @interface
|
|
10401
|
+
*/
|
|
10402
|
+
declare type NonTabInjectionRule = {
|
|
10403
|
+
/**
|
|
10404
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns)
|
|
10405
|
+
* specifying the content locations where the extension may inject outside
|
|
10406
|
+
* browser tabs. An empty array grants no permission. A wildcard grants
|
|
10407
|
+
* blanket coverage of all content locations.
|
|
10408
|
+
*/
|
|
10409
|
+
match: string[];
|
|
10410
|
+
/**
|
|
10411
|
+
* Options to use when comparing URIs to the `match` patterns. Behaves as
|
|
10412
|
+
* {@link DomainSettingsRule.matchOptions} / {@link RuleMatchOptions}.
|
|
10413
|
+
*/
|
|
10414
|
+
matchOptions?: RuleMatchOptions;
|
|
10415
|
+
};
|
|
10416
|
+
|
|
10417
|
+
/**
|
|
10418
|
+
* Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
|
|
10419
|
+
* The removed legacy gray channel resolves to no channel.
|
|
10420
|
+
*/
|
|
10421
|
+
export declare function normalizeColorChannelId<T extends string>(colorChannelId: T): NormalizedColorChannelId<T>;
|
|
10422
|
+
|
|
10423
|
+
declare type NormalizedColorChannelId<T extends string> = string extends T ? string | undefined : T extends 'gray' ? undefined : T extends LegacyColorChannelId ? (typeof legacyColorChannelIds)[T] : T;
|
|
10424
|
+
|
|
10291
10425
|
/* Excluded from this release type: NotCloseRequested */
|
|
10292
10426
|
|
|
10293
10427
|
declare type NotificationEvent = {
|
|
@@ -10596,6 +10730,8 @@ declare namespace OpenFin_2 {
|
|
|
10596
10730
|
ThemeColorsMap,
|
|
10597
10731
|
ThemeColorId,
|
|
10598
10732
|
ThemePalette,
|
|
10733
|
+
NonTabInjectionRule,
|
|
10734
|
+
ManifestExtension,
|
|
10599
10735
|
Manifest,
|
|
10600
10736
|
LayoutContent,
|
|
10601
10737
|
LayoutItemConfig,
|
|
@@ -17567,7 +17703,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
|
17567
17703
|
connectByPort(config: ExistingConnectConfig): Promise<void>;
|
|
17568
17704
|
private authorize;
|
|
17569
17705
|
sendAction<T extends keyof ProtocolMap>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
|
|
17570
|
-
protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?:
|
|
17706
|
+
protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?: CapturedStack): void;
|
|
17571
17707
|
ferryAction(origData: any): Promise<Message<any>>;
|
|
17572
17708
|
registerMessageHandler(handler: MessageHandler): void;
|
|
17573
17709
|
protected addWireListener(id: number, resolve: Function, handleNack: NackHandler, uncorrelated: boolean): void;
|
package/out/stub.d.ts
CHANGED
|
@@ -2198,6 +2198,15 @@ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
|
|
|
2198
2198
|
*/
|
|
2199
2199
|
declare type ByType_9<Type extends EventType_9> = Payload_11<Type>;
|
|
2200
2200
|
|
|
2201
|
+
/** Minimal V8 CallSite shape — js-adapter does not include @types/node. */
|
|
2202
|
+
declare interface CallSite {
|
|
2203
|
+
getFileName(): string | null;
|
|
2204
|
+
toString(): string;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
/** V8 CallSite objects, or native stack-frame strings from browsers that ignore Error.prepareStackTrace. */
|
|
2208
|
+
declare type CapturedStack = CallSite[] | string[];
|
|
2209
|
+
|
|
2201
2210
|
/**
|
|
2202
2211
|
* Configuration for page capture.
|
|
2203
2212
|
*
|
|
@@ -4795,6 +4804,54 @@ declare type CustomRequestHeaders = {
|
|
|
4795
4804
|
|
|
4796
4805
|
declare type DataChannelReadyState = RTCDataChannel['readyState'];
|
|
4797
4806
|
|
|
4807
|
+
export declare type DefaultColorChannelId = keyof typeof defaultColorChannels;
|
|
4808
|
+
|
|
4809
|
+
/**
|
|
4810
|
+
* The default FDC3 user channels advertised by the Interop Broker.
|
|
4811
|
+
*/
|
|
4812
|
+
export declare const defaultColorChannels: {
|
|
4813
|
+
readonly 'fdc3.channel.1': {
|
|
4814
|
+
readonly name: "Channel 1";
|
|
4815
|
+
readonly color: "red";
|
|
4816
|
+
readonly glyph: "1";
|
|
4817
|
+
};
|
|
4818
|
+
readonly 'fdc3.channel.2': {
|
|
4819
|
+
readonly name: "Channel 2";
|
|
4820
|
+
readonly color: "orange";
|
|
4821
|
+
readonly glyph: "2";
|
|
4822
|
+
};
|
|
4823
|
+
readonly 'fdc3.channel.3': {
|
|
4824
|
+
readonly name: "Channel 3";
|
|
4825
|
+
readonly color: "yellow";
|
|
4826
|
+
readonly glyph: "3";
|
|
4827
|
+
};
|
|
4828
|
+
readonly 'fdc3.channel.4': {
|
|
4829
|
+
readonly name: "Channel 4";
|
|
4830
|
+
readonly color: "green";
|
|
4831
|
+
readonly glyph: "4";
|
|
4832
|
+
};
|
|
4833
|
+
readonly 'fdc3.channel.5': {
|
|
4834
|
+
readonly name: "Channel 5";
|
|
4835
|
+
readonly color: "cyan";
|
|
4836
|
+
readonly glyph: "5";
|
|
4837
|
+
};
|
|
4838
|
+
readonly 'fdc3.channel.6': {
|
|
4839
|
+
readonly name: "Channel 6";
|
|
4840
|
+
readonly color: "blue";
|
|
4841
|
+
readonly glyph: "6";
|
|
4842
|
+
};
|
|
4843
|
+
readonly 'fdc3.channel.7': {
|
|
4844
|
+
readonly name: "Channel 7";
|
|
4845
|
+
readonly color: "magenta";
|
|
4846
|
+
readonly glyph: "7";
|
|
4847
|
+
};
|
|
4848
|
+
readonly 'fdc3.channel.8': {
|
|
4849
|
+
readonly name: "Channel 8";
|
|
4850
|
+
readonly color: "purple";
|
|
4851
|
+
readonly glyph: "8";
|
|
4852
|
+
};
|
|
4853
|
+
};
|
|
4854
|
+
|
|
4798
4855
|
/**
|
|
4799
4856
|
* @deprecated Use {@link OpenFin.DomainSettings} instead.
|
|
4800
4857
|
* @interface
|
|
@@ -7220,17 +7277,19 @@ declare type InteropActionLoggingOption = {
|
|
|
7220
7277
|
* "interopBrokerConfiguration": {
|
|
7221
7278
|
* "contextGroups": [
|
|
7222
7279
|
* {
|
|
7223
|
-
* "id": "
|
|
7280
|
+
* "id": "fdc3.channel.4",
|
|
7224
7281
|
* "displayMetadata": {
|
|
7225
|
-
* "color": "
|
|
7226
|
-
* "name": "
|
|
7282
|
+
* "color": "green",
|
|
7283
|
+
* "name": "Channel 4",
|
|
7284
|
+
* "glyph": "4"
|
|
7227
7285
|
* }
|
|
7228
7286
|
* },
|
|
7229
7287
|
* {
|
|
7230
|
-
* "id": "
|
|
7288
|
+
* "id": "fdc3.channel.8",
|
|
7231
7289
|
* "displayMetadata": {
|
|
7232
|
-
* "color": "
|
|
7233
|
-
* "name": "
|
|
7290
|
+
* "color": "purple",
|
|
7291
|
+
* "name": "Channel 8",
|
|
7292
|
+
* "glyph": "8"
|
|
7234
7293
|
* }
|
|
7235
7294
|
* },
|
|
7236
7295
|
* ]
|
|
@@ -7367,7 +7426,7 @@ declare class InteropBroker extends Base {
|
|
|
7367
7426
|
* @param joinContextGroupOptions - Id of the Context Group and identity of the entity to join to the group.
|
|
7368
7427
|
* @param senderIdentity - Identity of the client sender.
|
|
7369
7428
|
*/
|
|
7370
|
-
joinContextGroup({ contextGroupId, target }: {
|
|
7429
|
+
joinContextGroup({ contextGroupId: requestedContextGroupId, target }: {
|
|
7371
7430
|
contextGroupId: string;
|
|
7372
7431
|
target?: OpenFin_2.ClientIdentity | OpenFin_2.Identity;
|
|
7373
7432
|
}, senderIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
@@ -7378,7 +7437,7 @@ declare class InteropBroker extends Base {
|
|
|
7378
7437
|
* @param addClientToContextGroupOptions - Contains the contextGroupId
|
|
7379
7438
|
* @param clientIdentity - Identity of the client sender.
|
|
7380
7439
|
*/
|
|
7381
|
-
addClientToContextGroup({ contextGroupId }: {
|
|
7440
|
+
addClientToContextGroup({ contextGroupId: requestedContextGroupId }: {
|
|
7382
7441
|
contextGroupId: string;
|
|
7383
7442
|
}, clientIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
7384
7443
|
/**
|
|
@@ -7791,6 +7850,8 @@ declare class InteropBroker extends Base {
|
|
|
7791
7850
|
};
|
|
7792
7851
|
private getClientState;
|
|
7793
7852
|
private static toObject;
|
|
7853
|
+
private normalizeContextGroupStates;
|
|
7854
|
+
private normalizeContextGroupId;
|
|
7794
7855
|
static checkContextIntegrity: (context: OpenFin_2.Context) => {
|
|
7795
7856
|
isValid: true;
|
|
7796
7857
|
} | {
|
|
@@ -8021,7 +8082,7 @@ declare class InteropClient extends Base {
|
|
|
8021
8082
|
*
|
|
8022
8083
|
* getLastFocusedView()
|
|
8023
8084
|
* .then(lastFocusedViewIdentity => {
|
|
8024
|
-
* joinViewToContextGroup('
|
|
8085
|
+
* joinViewToContextGroup('fdc3.channel.1', lastFocusedViewIdentity)
|
|
8025
8086
|
* })
|
|
8026
8087
|
* ```
|
|
8027
8088
|
*/
|
|
@@ -8056,7 +8117,7 @@ declare class InteropClient extends Base {
|
|
|
8056
8117
|
*
|
|
8057
8118
|
* @example
|
|
8058
8119
|
* ```js
|
|
8059
|
-
* fin.me.interop.getAllClientsInContextGroup('
|
|
8120
|
+
* fin.me.interop.getAllClientsInContextGroup('fdc3.channel.1')
|
|
8060
8121
|
* .then(clientsInContextGroup => {
|
|
8061
8122
|
* console.log(clientsInContextGroup)
|
|
8062
8123
|
* })
|
|
@@ -8071,7 +8132,7 @@ declare class InteropClient extends Base {
|
|
|
8071
8132
|
*
|
|
8072
8133
|
* @example
|
|
8073
8134
|
* ```js
|
|
8074
|
-
* fin.me.interop.getInfoForContextGroup('
|
|
8135
|
+
* fin.me.interop.getInfoForContextGroup('fdc3.channel.1')
|
|
8075
8136
|
* .then(contextGroupInfo => {
|
|
8076
8137
|
* console.log(contextGroupInfo.displayMetadata.name)
|
|
8077
8138
|
* console.log(contextGroupInfo.displayMetadata.color)
|
|
@@ -8128,12 +8189,12 @@ declare class InteropClient extends Base {
|
|
|
8128
8189
|
*
|
|
8129
8190
|
* @example
|
|
8130
8191
|
* ```js
|
|
8131
|
-
* await fin.me.interop.joinContextGroup('
|
|
8192
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
8132
8193
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
8133
8194
|
* const currentContext = await fin.me.interop.getCurrentContext();
|
|
8134
8195
|
*
|
|
8135
8196
|
* // with a specific context
|
|
8136
|
-
* await fin.me.interop.joinContextGroup('
|
|
8197
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
8137
8198
|
* await fin.me.interop.setContext({ type: 'country', id: { ISOALPHA3: 'US' }});
|
|
8138
8199
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
8139
8200
|
* const currentContext = await fin.me.interop.getCurrentContext('country');
|
|
@@ -8300,7 +8361,7 @@ declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionE
|
|
|
8300
8361
|
*/
|
|
8301
8362
|
declare type InteropConfig = {
|
|
8302
8363
|
/**
|
|
8303
|
-
* Context Group for the client
|
|
8364
|
+
* Context Group ID for the client (for example, `fdc3.channel.4`).
|
|
8304
8365
|
*/
|
|
8305
8366
|
currentContextGroup?: string | null;
|
|
8306
8367
|
/**
|
|
@@ -8349,7 +8410,7 @@ declare class InteropModule extends Base {
|
|
|
8349
8410
|
* @example
|
|
8350
8411
|
* ```js
|
|
8351
8412
|
* const interopConfig = {
|
|
8352
|
-
* currentContextGroup: '
|
|
8413
|
+
* currentContextGroup: 'fdc3.channel.4'
|
|
8353
8414
|
* }
|
|
8354
8415
|
*
|
|
8355
8416
|
* const interopBroker = await fin.Interop.init('openfin');
|
|
@@ -9645,6 +9706,20 @@ declare type LayoutSyncApi = {
|
|
|
9645
9706
|
updateAccessibilityOptions(options: Partial<LayoutAccessibilityOptions>): void;
|
|
9646
9707
|
};
|
|
9647
9708
|
|
|
9709
|
+
declare type LegacyColorChannelId = keyof typeof legacyColorChannelIds;
|
|
9710
|
+
|
|
9711
|
+
declare const legacyColorChannelIds: {
|
|
9712
|
+
readonly red: "fdc3.channel.1";
|
|
9713
|
+
readonly orange: "fdc3.channel.2";
|
|
9714
|
+
readonly yellow: "fdc3.channel.3";
|
|
9715
|
+
readonly green: "fdc3.channel.4";
|
|
9716
|
+
readonly teal: "fdc3.channel.5";
|
|
9717
|
+
readonly blue: "fdc3.channel.6";
|
|
9718
|
+
readonly pink: "fdc3.channel.7";
|
|
9719
|
+
readonly indigo: "fdc3.channel.8";
|
|
9720
|
+
readonly purple: "fdc3.channel.8";
|
|
9721
|
+
};
|
|
9722
|
+
|
|
9648
9723
|
/**
|
|
9649
9724
|
* @interface
|
|
9650
9725
|
*/
|
|
@@ -9829,6 +9904,10 @@ declare type Manifest = {
|
|
|
9829
9904
|
experimentalExtensionPolicyBlockedHosts?: {
|
|
9830
9905
|
hosts: string[];
|
|
9831
9906
|
};
|
|
9907
|
+
/**
|
|
9908
|
+
* Chromium extensions to install and enable for this application.
|
|
9909
|
+
*/
|
|
9910
|
+
extensions?: ManifestExtension[];
|
|
9832
9911
|
licenseKey: string;
|
|
9833
9912
|
offlineAccess?: boolean;
|
|
9834
9913
|
platform?: PlatformOptions;
|
|
@@ -9882,6 +9961,27 @@ declare type ManifestChangedEvent = BaseEvents.IdentityEvent & {
|
|
|
9882
9961
|
type: 'manifest-changed';
|
|
9883
9962
|
};
|
|
9884
9963
|
|
|
9964
|
+
/**
|
|
9965
|
+
* Chromium extension entry in an application configuration.
|
|
9966
|
+
*
|
|
9967
|
+
* @interface
|
|
9968
|
+
*/
|
|
9969
|
+
declare type ManifestExtension = {
|
|
9970
|
+
/** Chromium extension ID. */
|
|
9971
|
+
id: string;
|
|
9972
|
+
/** Extension server URL used to install the extension. */
|
|
9973
|
+
serverURL: string;
|
|
9974
|
+
/**
|
|
9975
|
+
* Rules declaring where this extension may inject content scripts into
|
|
9976
|
+
* non-tab surfaces (for example the AI Center). Omit or leave empty to keep
|
|
9977
|
+
* the extension restricted to browser tabs — identical to historic
|
|
9978
|
+
* behavior. A wildcard pattern in `match` grants blanket coverage.
|
|
9979
|
+
* `matchOptions` behaves as it does for domain settings. Intended for
|
|
9980
|
+
* security extensions rather than extensions that add visible UI.
|
|
9981
|
+
*/
|
|
9982
|
+
nonTabInjections?: NonTabInjectionRule[];
|
|
9983
|
+
};
|
|
9984
|
+
|
|
9885
9985
|
/**
|
|
9886
9986
|
* @interface
|
|
9887
9987
|
*/
|
|
@@ -10684,6 +10784,40 @@ declare type NonPropagatedWebContentsEvent = never;
|
|
|
10684
10784
|
*/
|
|
10685
10785
|
declare type NonPropagatedWindowEvent = never;
|
|
10686
10786
|
|
|
10787
|
+
/**
|
|
10788
|
+
* Rule permitting a Chromium extension to inject content scripts into non-tab
|
|
10789
|
+
* web content whose URL matches the given patterns.
|
|
10790
|
+
*
|
|
10791
|
+
* Match patterns use the same Chromium
|
|
10792
|
+
* [match pattern](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns)
|
|
10793
|
+
* syntax as {@link DomainSettingsRule}. Omitting `matchOptions` uses the same
|
|
10794
|
+
* default scheme-matching behavior as domain settings.
|
|
10795
|
+
*
|
|
10796
|
+
* @interface
|
|
10797
|
+
*/
|
|
10798
|
+
declare type NonTabInjectionRule = {
|
|
10799
|
+
/**
|
|
10800
|
+
* Array of [match patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns)
|
|
10801
|
+
* specifying the content locations where the extension may inject outside
|
|
10802
|
+
* browser tabs. An empty array grants no permission. A wildcard grants
|
|
10803
|
+
* blanket coverage of all content locations.
|
|
10804
|
+
*/
|
|
10805
|
+
match: string[];
|
|
10806
|
+
/**
|
|
10807
|
+
* Options to use when comparing URIs to the `match` patterns. Behaves as
|
|
10808
|
+
* {@link DomainSettingsRule.matchOptions} / {@link RuleMatchOptions}.
|
|
10809
|
+
*/
|
|
10810
|
+
matchOptions?: RuleMatchOptions;
|
|
10811
|
+
};
|
|
10812
|
+
|
|
10813
|
+
/**
|
|
10814
|
+
* Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
|
|
10815
|
+
* The removed legacy gray channel resolves to no channel.
|
|
10816
|
+
*/
|
|
10817
|
+
export declare function normalizeColorChannelId<T extends string>(colorChannelId: T): NormalizedColorChannelId<T>;
|
|
10818
|
+
|
|
10819
|
+
declare type NormalizedColorChannelId<T extends string> = string extends T ? string | undefined : T extends 'gray' ? undefined : T extends LegacyColorChannelId ? (typeof legacyColorChannelIds)[T] : T;
|
|
10820
|
+
|
|
10687
10821
|
/**
|
|
10688
10822
|
* @internal
|
|
10689
10823
|
*
|
|
@@ -11005,6 +11139,8 @@ declare namespace OpenFin_2 {
|
|
|
11005
11139
|
ThemeColorsMap,
|
|
11006
11140
|
ThemeColorId,
|
|
11007
11141
|
ThemePalette,
|
|
11142
|
+
NonTabInjectionRule,
|
|
11143
|
+
ManifestExtension,
|
|
11008
11144
|
Manifest,
|
|
11009
11145
|
LayoutContent,
|
|
11010
11146
|
LayoutItemConfig,
|
|
@@ -18072,7 +18208,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
|
18072
18208
|
connectByPort(config: ExistingConnectConfig): Promise<void>;
|
|
18073
18209
|
private authorize;
|
|
18074
18210
|
sendAction<T extends keyof ProtocolMap>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
|
|
18075
|
-
protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?:
|
|
18211
|
+
protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?: CapturedStack): void;
|
|
18076
18212
|
ferryAction(origData: any): Promise<Message<any>>;
|
|
18077
18213
|
registerMessageHandler(handler: MessageHandler): void;
|
|
18078
18214
|
protected addWireListener(id: number, resolve: Function, handleNack: NackHandler, uncorrelated: boolean): void;
|