@openfin/core 46.100.65 → 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 +142 -15
- package/out/mock-beta.d.ts +142 -15
- package/out/mock-public.d.ts +142 -15
- package/out/stub.d.ts +142 -15
- package/out/stub.js +130 -73
- package/out/stub.mjs +129 -74
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -4676,6 +4676,54 @@ declare type CustomRequestHeaders = {
|
|
|
4676
4676
|
|
|
4677
4677
|
declare type DataChannelReadyState = RTCDataChannel['readyState'];
|
|
4678
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
|
+
|
|
4679
4727
|
/**
|
|
4680
4728
|
* @deprecated Use {@link OpenFin.DomainSettings} instead.
|
|
4681
4729
|
* @interface
|
|
@@ -7048,17 +7096,19 @@ declare type InteropActionLoggingOption = {
|
|
|
7048
7096
|
* "interopBrokerConfiguration": {
|
|
7049
7097
|
* "contextGroups": [
|
|
7050
7098
|
* {
|
|
7051
|
-
* "id": "
|
|
7099
|
+
* "id": "fdc3.channel.4",
|
|
7052
7100
|
* "displayMetadata": {
|
|
7053
|
-
* "color": "
|
|
7054
|
-
* "name": "
|
|
7101
|
+
* "color": "green",
|
|
7102
|
+
* "name": "Channel 4",
|
|
7103
|
+
* "glyph": "4"
|
|
7055
7104
|
* }
|
|
7056
7105
|
* },
|
|
7057
7106
|
* {
|
|
7058
|
-
* "id": "
|
|
7107
|
+
* "id": "fdc3.channel.8",
|
|
7059
7108
|
* "displayMetadata": {
|
|
7060
|
-
* "color": "
|
|
7061
|
-
* "name": "
|
|
7109
|
+
* "color": "purple",
|
|
7110
|
+
* "name": "Channel 8",
|
|
7111
|
+
* "glyph": "8"
|
|
7062
7112
|
* }
|
|
7063
7113
|
* },
|
|
7064
7114
|
* ]
|
|
@@ -7192,7 +7242,7 @@ declare class InteropBroker extends Base {
|
|
|
7192
7242
|
* @param joinContextGroupOptions - Id of the Context Group and identity of the entity to join to the group.
|
|
7193
7243
|
* @param senderIdentity - Identity of the client sender.
|
|
7194
7244
|
*/
|
|
7195
|
-
joinContextGroup({ contextGroupId, target }: {
|
|
7245
|
+
joinContextGroup({ contextGroupId: requestedContextGroupId, target }: {
|
|
7196
7246
|
contextGroupId: string;
|
|
7197
7247
|
target?: OpenFin_2.ClientIdentity | OpenFin_2.Identity;
|
|
7198
7248
|
}, senderIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
@@ -7203,7 +7253,7 @@ declare class InteropBroker extends Base {
|
|
|
7203
7253
|
* @param addClientToContextGroupOptions - Contains the contextGroupId
|
|
7204
7254
|
* @param clientIdentity - Identity of the client sender.
|
|
7205
7255
|
*/
|
|
7206
|
-
addClientToContextGroup({ contextGroupId }: {
|
|
7256
|
+
addClientToContextGroup({ contextGroupId: requestedContextGroupId }: {
|
|
7207
7257
|
contextGroupId: string;
|
|
7208
7258
|
}, clientIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
7209
7259
|
/**
|
|
@@ -7616,6 +7666,8 @@ declare class InteropBroker extends Base {
|
|
|
7616
7666
|
};
|
|
7617
7667
|
private getClientState;
|
|
7618
7668
|
private static toObject;
|
|
7669
|
+
private normalizeContextGroupStates;
|
|
7670
|
+
private normalizeContextGroupId;
|
|
7619
7671
|
static checkContextIntegrity: (context: OpenFin_2.Context) => {
|
|
7620
7672
|
isValid: true;
|
|
7621
7673
|
} | {
|
|
@@ -7843,7 +7895,7 @@ declare class InteropClient extends Base {
|
|
|
7843
7895
|
*
|
|
7844
7896
|
* getLastFocusedView()
|
|
7845
7897
|
* .then(lastFocusedViewIdentity => {
|
|
7846
|
-
* joinViewToContextGroup('
|
|
7898
|
+
* joinViewToContextGroup('fdc3.channel.1', lastFocusedViewIdentity)
|
|
7847
7899
|
* })
|
|
7848
7900
|
* ```
|
|
7849
7901
|
*/
|
|
@@ -7878,7 +7930,7 @@ declare class InteropClient extends Base {
|
|
|
7878
7930
|
*
|
|
7879
7931
|
* @example
|
|
7880
7932
|
* ```js
|
|
7881
|
-
* fin.me.interop.getAllClientsInContextGroup('
|
|
7933
|
+
* fin.me.interop.getAllClientsInContextGroup('fdc3.channel.1')
|
|
7882
7934
|
* .then(clientsInContextGroup => {
|
|
7883
7935
|
* console.log(clientsInContextGroup)
|
|
7884
7936
|
* })
|
|
@@ -7893,7 +7945,7 @@ declare class InteropClient extends Base {
|
|
|
7893
7945
|
*
|
|
7894
7946
|
* @example
|
|
7895
7947
|
* ```js
|
|
7896
|
-
* fin.me.interop.getInfoForContextGroup('
|
|
7948
|
+
* fin.me.interop.getInfoForContextGroup('fdc3.channel.1')
|
|
7897
7949
|
* .then(contextGroupInfo => {
|
|
7898
7950
|
* console.log(contextGroupInfo.displayMetadata.name)
|
|
7899
7951
|
* console.log(contextGroupInfo.displayMetadata.color)
|
|
@@ -7950,12 +8002,12 @@ declare class InteropClient extends Base {
|
|
|
7950
8002
|
*
|
|
7951
8003
|
* @example
|
|
7952
8004
|
* ```js
|
|
7953
|
-
* await fin.me.interop.joinContextGroup('
|
|
8005
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
7954
8006
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
7955
8007
|
* const currentContext = await fin.me.interop.getCurrentContext();
|
|
7956
8008
|
*
|
|
7957
8009
|
* // with a specific context
|
|
7958
|
-
* await fin.me.interop.joinContextGroup('
|
|
8010
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
7959
8011
|
* await fin.me.interop.setContext({ type: 'country', id: { ISOALPHA3: 'US' }});
|
|
7960
8012
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
7961
8013
|
* const currentContext = await fin.me.interop.getCurrentContext('country');
|
|
@@ -8117,7 +8169,7 @@ declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionE
|
|
|
8117
8169
|
*/
|
|
8118
8170
|
declare type InteropConfig = {
|
|
8119
8171
|
/**
|
|
8120
|
-
* Context Group for the client
|
|
8172
|
+
* Context Group ID for the client (for example, `fdc3.channel.4`).
|
|
8121
8173
|
*/
|
|
8122
8174
|
currentContextGroup?: string | null;
|
|
8123
8175
|
/**
|
|
@@ -8166,7 +8218,7 @@ declare class InteropModule extends Base {
|
|
|
8166
8218
|
* @example
|
|
8167
8219
|
* ```js
|
|
8168
8220
|
* const interopConfig = {
|
|
8169
|
-
* currentContextGroup: '
|
|
8221
|
+
* currentContextGroup: 'fdc3.channel.4'
|
|
8170
8222
|
* }
|
|
8171
8223
|
*
|
|
8172
8224
|
* const interopBroker = await fin.Interop.init('openfin');
|
|
@@ -9270,6 +9322,20 @@ declare type LayoutSyncApi = {
|
|
|
9270
9322
|
updateAccessibilityOptions(options: Partial<LayoutAccessibilityOptions>): void;
|
|
9271
9323
|
};
|
|
9272
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
|
+
|
|
9273
9339
|
/**
|
|
9274
9340
|
* @interface
|
|
9275
9341
|
*/
|
|
@@ -9454,6 +9520,10 @@ declare type Manifest = {
|
|
|
9454
9520
|
experimentalExtensionPolicyBlockedHosts?: {
|
|
9455
9521
|
hosts: string[];
|
|
9456
9522
|
};
|
|
9523
|
+
/**
|
|
9524
|
+
* Chromium extensions to install and enable for this application.
|
|
9525
|
+
*/
|
|
9526
|
+
extensions?: ManifestExtension[];
|
|
9457
9527
|
licenseKey: string;
|
|
9458
9528
|
offlineAccess?: boolean;
|
|
9459
9529
|
platform?: PlatformOptions;
|
|
@@ -9507,6 +9577,27 @@ declare type ManifestChangedEvent = BaseEvents.IdentityEvent & {
|
|
|
9507
9577
|
type: 'manifest-changed';
|
|
9508
9578
|
};
|
|
9509
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
|
+
|
|
9510
9601
|
/**
|
|
9511
9602
|
* @interface
|
|
9512
9603
|
*/
|
|
@@ -10297,6 +10388,40 @@ declare type NonPropagatedWebContentsEvent = never;
|
|
|
10297
10388
|
*/
|
|
10298
10389
|
declare type NonPropagatedWindowEvent = never;
|
|
10299
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
|
+
|
|
10300
10425
|
/* Excluded from this release type: NotCloseRequested */
|
|
10301
10426
|
|
|
10302
10427
|
declare type NotificationEvent = {
|
|
@@ -10605,6 +10730,8 @@ declare namespace OpenFin_2 {
|
|
|
10605
10730
|
ThemeColorsMap,
|
|
10606
10731
|
ThemeColorId,
|
|
10607
10732
|
ThemePalette,
|
|
10733
|
+
NonTabInjectionRule,
|
|
10734
|
+
ManifestExtension,
|
|
10608
10735
|
Manifest,
|
|
10609
10736
|
LayoutContent,
|
|
10610
10737
|
LayoutItemConfig,
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -4676,6 +4676,54 @@ declare type CustomRequestHeaders = {
|
|
|
4676
4676
|
|
|
4677
4677
|
declare type DataChannelReadyState = RTCDataChannel['readyState'];
|
|
4678
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
|
+
|
|
4679
4727
|
/**
|
|
4680
4728
|
* @deprecated Use {@link OpenFin.DomainSettings} instead.
|
|
4681
4729
|
* @interface
|
|
@@ -7048,17 +7096,19 @@ declare type InteropActionLoggingOption = {
|
|
|
7048
7096
|
* "interopBrokerConfiguration": {
|
|
7049
7097
|
* "contextGroups": [
|
|
7050
7098
|
* {
|
|
7051
|
-
* "id": "
|
|
7099
|
+
* "id": "fdc3.channel.4",
|
|
7052
7100
|
* "displayMetadata": {
|
|
7053
|
-
* "color": "
|
|
7054
|
-
* "name": "
|
|
7101
|
+
* "color": "green",
|
|
7102
|
+
* "name": "Channel 4",
|
|
7103
|
+
* "glyph": "4"
|
|
7055
7104
|
* }
|
|
7056
7105
|
* },
|
|
7057
7106
|
* {
|
|
7058
|
-
* "id": "
|
|
7107
|
+
* "id": "fdc3.channel.8",
|
|
7059
7108
|
* "displayMetadata": {
|
|
7060
|
-
* "color": "
|
|
7061
|
-
* "name": "
|
|
7109
|
+
* "color": "purple",
|
|
7110
|
+
* "name": "Channel 8",
|
|
7111
|
+
* "glyph": "8"
|
|
7062
7112
|
* }
|
|
7063
7113
|
* },
|
|
7064
7114
|
* ]
|
|
@@ -7192,7 +7242,7 @@ declare class InteropBroker extends Base {
|
|
|
7192
7242
|
* @param joinContextGroupOptions - Id of the Context Group and identity of the entity to join to the group.
|
|
7193
7243
|
* @param senderIdentity - Identity of the client sender.
|
|
7194
7244
|
*/
|
|
7195
|
-
joinContextGroup({ contextGroupId, target }: {
|
|
7245
|
+
joinContextGroup({ contextGroupId: requestedContextGroupId, target }: {
|
|
7196
7246
|
contextGroupId: string;
|
|
7197
7247
|
target?: OpenFin_2.ClientIdentity | OpenFin_2.Identity;
|
|
7198
7248
|
}, senderIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
@@ -7203,7 +7253,7 @@ declare class InteropBroker extends Base {
|
|
|
7203
7253
|
* @param addClientToContextGroupOptions - Contains the contextGroupId
|
|
7204
7254
|
* @param clientIdentity - Identity of the client sender.
|
|
7205
7255
|
*/
|
|
7206
|
-
addClientToContextGroup({ contextGroupId }: {
|
|
7256
|
+
addClientToContextGroup({ contextGroupId: requestedContextGroupId }: {
|
|
7207
7257
|
contextGroupId: string;
|
|
7208
7258
|
}, clientIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
7209
7259
|
/**
|
|
@@ -7616,6 +7666,8 @@ declare class InteropBroker extends Base {
|
|
|
7616
7666
|
};
|
|
7617
7667
|
private getClientState;
|
|
7618
7668
|
private static toObject;
|
|
7669
|
+
private normalizeContextGroupStates;
|
|
7670
|
+
private normalizeContextGroupId;
|
|
7619
7671
|
static checkContextIntegrity: (context: OpenFin_2.Context) => {
|
|
7620
7672
|
isValid: true;
|
|
7621
7673
|
} | {
|
|
@@ -7843,7 +7895,7 @@ declare class InteropClient extends Base {
|
|
|
7843
7895
|
*
|
|
7844
7896
|
* getLastFocusedView()
|
|
7845
7897
|
* .then(lastFocusedViewIdentity => {
|
|
7846
|
-
* joinViewToContextGroup('
|
|
7898
|
+
* joinViewToContextGroup('fdc3.channel.1', lastFocusedViewIdentity)
|
|
7847
7899
|
* })
|
|
7848
7900
|
* ```
|
|
7849
7901
|
*/
|
|
@@ -7878,7 +7930,7 @@ declare class InteropClient extends Base {
|
|
|
7878
7930
|
*
|
|
7879
7931
|
* @example
|
|
7880
7932
|
* ```js
|
|
7881
|
-
* fin.me.interop.getAllClientsInContextGroup('
|
|
7933
|
+
* fin.me.interop.getAllClientsInContextGroup('fdc3.channel.1')
|
|
7882
7934
|
* .then(clientsInContextGroup => {
|
|
7883
7935
|
* console.log(clientsInContextGroup)
|
|
7884
7936
|
* })
|
|
@@ -7893,7 +7945,7 @@ declare class InteropClient extends Base {
|
|
|
7893
7945
|
*
|
|
7894
7946
|
* @example
|
|
7895
7947
|
* ```js
|
|
7896
|
-
* fin.me.interop.getInfoForContextGroup('
|
|
7948
|
+
* fin.me.interop.getInfoForContextGroup('fdc3.channel.1')
|
|
7897
7949
|
* .then(contextGroupInfo => {
|
|
7898
7950
|
* console.log(contextGroupInfo.displayMetadata.name)
|
|
7899
7951
|
* console.log(contextGroupInfo.displayMetadata.color)
|
|
@@ -7950,12 +8002,12 @@ declare class InteropClient extends Base {
|
|
|
7950
8002
|
*
|
|
7951
8003
|
* @example
|
|
7952
8004
|
* ```js
|
|
7953
|
-
* await fin.me.interop.joinContextGroup('
|
|
8005
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
7954
8006
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
7955
8007
|
* const currentContext = await fin.me.interop.getCurrentContext();
|
|
7956
8008
|
*
|
|
7957
8009
|
* // with a specific context
|
|
7958
|
-
* await fin.me.interop.joinContextGroup('
|
|
8010
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
7959
8011
|
* await fin.me.interop.setContext({ type: 'country', id: { ISOALPHA3: 'US' }});
|
|
7960
8012
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
7961
8013
|
* const currentContext = await fin.me.interop.getCurrentContext('country');
|
|
@@ -8117,7 +8169,7 @@ declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionE
|
|
|
8117
8169
|
*/
|
|
8118
8170
|
declare type InteropConfig = {
|
|
8119
8171
|
/**
|
|
8120
|
-
* Context Group for the client
|
|
8172
|
+
* Context Group ID for the client (for example, `fdc3.channel.4`).
|
|
8121
8173
|
*/
|
|
8122
8174
|
currentContextGroup?: string | null;
|
|
8123
8175
|
/**
|
|
@@ -8166,7 +8218,7 @@ declare class InteropModule extends Base {
|
|
|
8166
8218
|
* @example
|
|
8167
8219
|
* ```js
|
|
8168
8220
|
* const interopConfig = {
|
|
8169
|
-
* currentContextGroup: '
|
|
8221
|
+
* currentContextGroup: 'fdc3.channel.4'
|
|
8170
8222
|
* }
|
|
8171
8223
|
*
|
|
8172
8224
|
* const interopBroker = await fin.Interop.init('openfin');
|
|
@@ -9270,6 +9322,20 @@ declare type LayoutSyncApi = {
|
|
|
9270
9322
|
updateAccessibilityOptions(options: Partial<LayoutAccessibilityOptions>): void;
|
|
9271
9323
|
};
|
|
9272
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
|
+
|
|
9273
9339
|
/**
|
|
9274
9340
|
* @interface
|
|
9275
9341
|
*/
|
|
@@ -9454,6 +9520,10 @@ declare type Manifest = {
|
|
|
9454
9520
|
experimentalExtensionPolicyBlockedHosts?: {
|
|
9455
9521
|
hosts: string[];
|
|
9456
9522
|
};
|
|
9523
|
+
/**
|
|
9524
|
+
* Chromium extensions to install and enable for this application.
|
|
9525
|
+
*/
|
|
9526
|
+
extensions?: ManifestExtension[];
|
|
9457
9527
|
licenseKey: string;
|
|
9458
9528
|
offlineAccess?: boolean;
|
|
9459
9529
|
platform?: PlatformOptions;
|
|
@@ -9507,6 +9577,27 @@ declare type ManifestChangedEvent = BaseEvents.IdentityEvent & {
|
|
|
9507
9577
|
type: 'manifest-changed';
|
|
9508
9578
|
};
|
|
9509
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
|
+
|
|
9510
9601
|
/**
|
|
9511
9602
|
* @interface
|
|
9512
9603
|
*/
|
|
@@ -10297,6 +10388,40 @@ declare type NonPropagatedWebContentsEvent = never;
|
|
|
10297
10388
|
*/
|
|
10298
10389
|
declare type NonPropagatedWindowEvent = never;
|
|
10299
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
|
+
|
|
10300
10425
|
/* Excluded from this release type: NotCloseRequested */
|
|
10301
10426
|
|
|
10302
10427
|
declare type NotificationEvent = {
|
|
@@ -10605,6 +10730,8 @@ declare namespace OpenFin_2 {
|
|
|
10605
10730
|
ThemeColorsMap,
|
|
10606
10731
|
ThemeColorId,
|
|
10607
10732
|
ThemePalette,
|
|
10733
|
+
NonTabInjectionRule,
|
|
10734
|
+
ManifestExtension,
|
|
10608
10735
|
Manifest,
|
|
10609
10736
|
LayoutContent,
|
|
10610
10737
|
LayoutItemConfig,
|