@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-public.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/stub.d.ts
CHANGED
|
@@ -4804,6 +4804,54 @@ declare type CustomRequestHeaders = {
|
|
|
4804
4804
|
|
|
4805
4805
|
declare type DataChannelReadyState = RTCDataChannel['readyState'];
|
|
4806
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
|
+
|
|
4807
4855
|
/**
|
|
4808
4856
|
* @deprecated Use {@link OpenFin.DomainSettings} instead.
|
|
4809
4857
|
* @interface
|
|
@@ -7229,17 +7277,19 @@ declare type InteropActionLoggingOption = {
|
|
|
7229
7277
|
* "interopBrokerConfiguration": {
|
|
7230
7278
|
* "contextGroups": [
|
|
7231
7279
|
* {
|
|
7232
|
-
* "id": "
|
|
7280
|
+
* "id": "fdc3.channel.4",
|
|
7233
7281
|
* "displayMetadata": {
|
|
7234
|
-
* "color": "
|
|
7235
|
-
* "name": "
|
|
7282
|
+
* "color": "green",
|
|
7283
|
+
* "name": "Channel 4",
|
|
7284
|
+
* "glyph": "4"
|
|
7236
7285
|
* }
|
|
7237
7286
|
* },
|
|
7238
7287
|
* {
|
|
7239
|
-
* "id": "
|
|
7288
|
+
* "id": "fdc3.channel.8",
|
|
7240
7289
|
* "displayMetadata": {
|
|
7241
|
-
* "color": "
|
|
7242
|
-
* "name": "
|
|
7290
|
+
* "color": "purple",
|
|
7291
|
+
* "name": "Channel 8",
|
|
7292
|
+
* "glyph": "8"
|
|
7243
7293
|
* }
|
|
7244
7294
|
* },
|
|
7245
7295
|
* ]
|
|
@@ -7376,7 +7426,7 @@ declare class InteropBroker extends Base {
|
|
|
7376
7426
|
* @param joinContextGroupOptions - Id of the Context Group and identity of the entity to join to the group.
|
|
7377
7427
|
* @param senderIdentity - Identity of the client sender.
|
|
7378
7428
|
*/
|
|
7379
|
-
joinContextGroup({ contextGroupId, target }: {
|
|
7429
|
+
joinContextGroup({ contextGroupId: requestedContextGroupId, target }: {
|
|
7380
7430
|
contextGroupId: string;
|
|
7381
7431
|
target?: OpenFin_2.ClientIdentity | OpenFin_2.Identity;
|
|
7382
7432
|
}, senderIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
@@ -7387,7 +7437,7 @@ declare class InteropBroker extends Base {
|
|
|
7387
7437
|
* @param addClientToContextGroupOptions - Contains the contextGroupId
|
|
7388
7438
|
* @param clientIdentity - Identity of the client sender.
|
|
7389
7439
|
*/
|
|
7390
|
-
addClientToContextGroup({ contextGroupId }: {
|
|
7440
|
+
addClientToContextGroup({ contextGroupId: requestedContextGroupId }: {
|
|
7391
7441
|
contextGroupId: string;
|
|
7392
7442
|
}, clientIdentity: OpenFin_2.ClientIdentity): Promise<void>;
|
|
7393
7443
|
/**
|
|
@@ -7800,6 +7850,8 @@ declare class InteropBroker extends Base {
|
|
|
7800
7850
|
};
|
|
7801
7851
|
private getClientState;
|
|
7802
7852
|
private static toObject;
|
|
7853
|
+
private normalizeContextGroupStates;
|
|
7854
|
+
private normalizeContextGroupId;
|
|
7803
7855
|
static checkContextIntegrity: (context: OpenFin_2.Context) => {
|
|
7804
7856
|
isValid: true;
|
|
7805
7857
|
} | {
|
|
@@ -8030,7 +8082,7 @@ declare class InteropClient extends Base {
|
|
|
8030
8082
|
*
|
|
8031
8083
|
* getLastFocusedView()
|
|
8032
8084
|
* .then(lastFocusedViewIdentity => {
|
|
8033
|
-
* joinViewToContextGroup('
|
|
8085
|
+
* joinViewToContextGroup('fdc3.channel.1', lastFocusedViewIdentity)
|
|
8034
8086
|
* })
|
|
8035
8087
|
* ```
|
|
8036
8088
|
*/
|
|
@@ -8065,7 +8117,7 @@ declare class InteropClient extends Base {
|
|
|
8065
8117
|
*
|
|
8066
8118
|
* @example
|
|
8067
8119
|
* ```js
|
|
8068
|
-
* fin.me.interop.getAllClientsInContextGroup('
|
|
8120
|
+
* fin.me.interop.getAllClientsInContextGroup('fdc3.channel.1')
|
|
8069
8121
|
* .then(clientsInContextGroup => {
|
|
8070
8122
|
* console.log(clientsInContextGroup)
|
|
8071
8123
|
* })
|
|
@@ -8080,7 +8132,7 @@ declare class InteropClient extends Base {
|
|
|
8080
8132
|
*
|
|
8081
8133
|
* @example
|
|
8082
8134
|
* ```js
|
|
8083
|
-
* fin.me.interop.getInfoForContextGroup('
|
|
8135
|
+
* fin.me.interop.getInfoForContextGroup('fdc3.channel.1')
|
|
8084
8136
|
* .then(contextGroupInfo => {
|
|
8085
8137
|
* console.log(contextGroupInfo.displayMetadata.name)
|
|
8086
8138
|
* console.log(contextGroupInfo.displayMetadata.color)
|
|
@@ -8137,12 +8189,12 @@ declare class InteropClient extends Base {
|
|
|
8137
8189
|
*
|
|
8138
8190
|
* @example
|
|
8139
8191
|
* ```js
|
|
8140
|
-
* await fin.me.interop.joinContextGroup('
|
|
8192
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
8141
8193
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
8142
8194
|
* const currentContext = await fin.me.interop.getCurrentContext();
|
|
8143
8195
|
*
|
|
8144
8196
|
* // with a specific context
|
|
8145
|
-
* await fin.me.interop.joinContextGroup('
|
|
8197
|
+
* await fin.me.interop.joinContextGroup('fdc3.channel.3');
|
|
8146
8198
|
* await fin.me.interop.setContext({ type: 'country', id: { ISOALPHA3: 'US' }});
|
|
8147
8199
|
* await fin.me.interop.setContext({ type: 'instrument', id: { ticker: 'FOO' }});
|
|
8148
8200
|
* const currentContext = await fin.me.interop.getCurrentContext('country');
|
|
@@ -8309,7 +8361,7 @@ declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionE
|
|
|
8309
8361
|
*/
|
|
8310
8362
|
declare type InteropConfig = {
|
|
8311
8363
|
/**
|
|
8312
|
-
* Context Group for the client
|
|
8364
|
+
* Context Group ID for the client (for example, `fdc3.channel.4`).
|
|
8313
8365
|
*/
|
|
8314
8366
|
currentContextGroup?: string | null;
|
|
8315
8367
|
/**
|
|
@@ -8358,7 +8410,7 @@ declare class InteropModule extends Base {
|
|
|
8358
8410
|
* @example
|
|
8359
8411
|
* ```js
|
|
8360
8412
|
* const interopConfig = {
|
|
8361
|
-
* currentContextGroup: '
|
|
8413
|
+
* currentContextGroup: 'fdc3.channel.4'
|
|
8362
8414
|
* }
|
|
8363
8415
|
*
|
|
8364
8416
|
* const interopBroker = await fin.Interop.init('openfin');
|
|
@@ -9654,6 +9706,20 @@ declare type LayoutSyncApi = {
|
|
|
9654
9706
|
updateAccessibilityOptions(options: Partial<LayoutAccessibilityOptions>): void;
|
|
9655
9707
|
};
|
|
9656
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
|
+
|
|
9657
9723
|
/**
|
|
9658
9724
|
* @interface
|
|
9659
9725
|
*/
|
|
@@ -9838,6 +9904,10 @@ declare type Manifest = {
|
|
|
9838
9904
|
experimentalExtensionPolicyBlockedHosts?: {
|
|
9839
9905
|
hosts: string[];
|
|
9840
9906
|
};
|
|
9907
|
+
/**
|
|
9908
|
+
* Chromium extensions to install and enable for this application.
|
|
9909
|
+
*/
|
|
9910
|
+
extensions?: ManifestExtension[];
|
|
9841
9911
|
licenseKey: string;
|
|
9842
9912
|
offlineAccess?: boolean;
|
|
9843
9913
|
platform?: PlatformOptions;
|
|
@@ -9891,6 +9961,27 @@ declare type ManifestChangedEvent = BaseEvents.IdentityEvent & {
|
|
|
9891
9961
|
type: 'manifest-changed';
|
|
9892
9962
|
};
|
|
9893
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
|
+
|
|
9894
9985
|
/**
|
|
9895
9986
|
* @interface
|
|
9896
9987
|
*/
|
|
@@ -10693,6 +10784,40 @@ declare type NonPropagatedWebContentsEvent = never;
|
|
|
10693
10784
|
*/
|
|
10694
10785
|
declare type NonPropagatedWindowEvent = never;
|
|
10695
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
|
+
|
|
10696
10821
|
/**
|
|
10697
10822
|
* @internal
|
|
10698
10823
|
*
|
|
@@ -11014,6 +11139,8 @@ declare namespace OpenFin_2 {
|
|
|
11014
11139
|
ThemeColorsMap,
|
|
11015
11140
|
ThemeColorId,
|
|
11016
11141
|
ThemePalette,
|
|
11142
|
+
NonTabInjectionRule,
|
|
11143
|
+
ManifestExtension,
|
|
11017
11144
|
Manifest,
|
|
11018
11145
|
LayoutContent,
|
|
11019
11146
|
LayoutItemConfig,
|