@openfin/core 46.100.83 → 46.100.85

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.
@@ -0,0 +1,71 @@
1
+ export declare type DefaultColorChannelId = keyof typeof defaultColorChannels;
2
+
3
+ /**
4
+ * The default FDC3 user channels advertised by the Interop Broker.
5
+ */
6
+ export declare const defaultColorChannels: {
7
+ readonly 'fdc3.channel.1': {
8
+ readonly name: "Channel 1";
9
+ readonly color: "red";
10
+ readonly glyph: "1";
11
+ };
12
+ readonly 'fdc3.channel.2': {
13
+ readonly name: "Channel 2";
14
+ readonly color: "orange";
15
+ readonly glyph: "2";
16
+ };
17
+ readonly 'fdc3.channel.3': {
18
+ readonly name: "Channel 3";
19
+ readonly color: "yellow";
20
+ readonly glyph: "3";
21
+ };
22
+ readonly 'fdc3.channel.4': {
23
+ readonly name: "Channel 4";
24
+ readonly color: "green";
25
+ readonly glyph: "4";
26
+ };
27
+ readonly 'fdc3.channel.5': {
28
+ readonly name: "Channel 5";
29
+ readonly color: "cyan";
30
+ readonly glyph: "5";
31
+ };
32
+ readonly 'fdc3.channel.6': {
33
+ readonly name: "Channel 6";
34
+ readonly color: "blue";
35
+ readonly glyph: "6";
36
+ };
37
+ readonly 'fdc3.channel.7': {
38
+ readonly name: "Channel 7";
39
+ readonly color: "magenta";
40
+ readonly glyph: "7";
41
+ };
42
+ readonly 'fdc3.channel.8': {
43
+ readonly name: "Channel 8";
44
+ readonly color: "purple";
45
+ readonly glyph: "8";
46
+ };
47
+ };
48
+
49
+ declare type LegacyColorChannelId = keyof typeof legacyColorChannelIds;
50
+
51
+ declare const legacyColorChannelIds: {
52
+ readonly red: "fdc3.channel.1";
53
+ readonly orange: "fdc3.channel.2";
54
+ readonly yellow: "fdc3.channel.3";
55
+ readonly green: "fdc3.channel.4";
56
+ readonly teal: "fdc3.channel.5";
57
+ readonly blue: "fdc3.channel.6";
58
+ readonly pink: "fdc3.channel.7";
59
+ readonly indigo: "fdc3.channel.8";
60
+ readonly purple: "fdc3.channel.8";
61
+ };
62
+
63
+ /**
64
+ * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
65
+ * The removed legacy gray channel resolves to no channel.
66
+ */
67
+ export declare function normalizeColorChannelId<T extends string>(colorChannelId: T): NormalizedColorChannelId<T>;
68
+
69
+ declare type NormalizedColorChannelId<T extends string> = string extends T ? string | undefined : T extends 'gray' ? undefined : T extends LegacyColorChannelId ? (typeof legacyColorChannelIds)[T] : T;
70
+
71
+ export { }
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * The default FDC3 user channels advertised by the Interop Broker.
5
+ */
6
+ const defaultColorChannels = {
7
+ 'fdc3.channel.1': { name: 'Channel 1', color: 'red', glyph: '1' },
8
+ 'fdc3.channel.2': { name: 'Channel 2', color: 'orange', glyph: '2' },
9
+ 'fdc3.channel.3': { name: 'Channel 3', color: 'yellow', glyph: '3' },
10
+ 'fdc3.channel.4': { name: 'Channel 4', color: 'green', glyph: '4' },
11
+ 'fdc3.channel.5': { name: 'Channel 5', color: 'cyan', glyph: '5' },
12
+ 'fdc3.channel.6': { name: 'Channel 6', color: 'blue', glyph: '6' },
13
+ 'fdc3.channel.7': { name: 'Channel 7', color: 'magenta', glyph: '7' },
14
+ 'fdc3.channel.8': { name: 'Channel 8', color: 'purple', glyph: '8' }
15
+ };
16
+ const legacyColorChannelIds = {
17
+ red: 'fdc3.channel.1',
18
+ orange: 'fdc3.channel.2',
19
+ yellow: 'fdc3.channel.3',
20
+ green: 'fdc3.channel.4',
21
+ teal: 'fdc3.channel.5',
22
+ blue: 'fdc3.channel.6',
23
+ pink: 'fdc3.channel.7',
24
+ // Legacy indigo (workspace) and purple (core) intentionally converge on the same FDC3 purple channel.
25
+ indigo: 'fdc3.channel.8',
26
+ purple: 'fdc3.channel.8'
27
+ };
28
+ /**
29
+ * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
30
+ * The removed legacy gray channel resolves to no channel.
31
+ */
32
+ function normalizeColorChannelId(colorChannelId) {
33
+ if (colorChannelId === 'gray') {
34
+ return undefined;
35
+ }
36
+ if (Object.prototype.hasOwnProperty.call(legacyColorChannelIds, colorChannelId)) {
37
+ return legacyColorChannelIds[colorChannelId];
38
+ }
39
+ return colorChannelId;
40
+ }
41
+
42
+ exports.defaultColorChannels = defaultColorChannels;
43
+ exports.normalizeColorChannelId = normalizeColorChannelId;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The default FDC3 user channels advertised by the Interop Broker.
3
+ */
4
+ const defaultColorChannels = {
5
+ 'fdc3.channel.1': { name: 'Channel 1', color: 'red', glyph: '1' },
6
+ 'fdc3.channel.2': { name: 'Channel 2', color: 'orange', glyph: '2' },
7
+ 'fdc3.channel.3': { name: 'Channel 3', color: 'yellow', glyph: '3' },
8
+ 'fdc3.channel.4': { name: 'Channel 4', color: 'green', glyph: '4' },
9
+ 'fdc3.channel.5': { name: 'Channel 5', color: 'cyan', glyph: '5' },
10
+ 'fdc3.channel.6': { name: 'Channel 6', color: 'blue', glyph: '6' },
11
+ 'fdc3.channel.7': { name: 'Channel 7', color: 'magenta', glyph: '7' },
12
+ 'fdc3.channel.8': { name: 'Channel 8', color: 'purple', glyph: '8' }
13
+ };
14
+ const legacyColorChannelIds = {
15
+ red: 'fdc3.channel.1',
16
+ orange: 'fdc3.channel.2',
17
+ yellow: 'fdc3.channel.3',
18
+ green: 'fdc3.channel.4',
19
+ teal: 'fdc3.channel.5',
20
+ blue: 'fdc3.channel.6',
21
+ pink: 'fdc3.channel.7',
22
+ // Legacy indigo (workspace) and purple (core) intentionally converge on the same FDC3 purple channel.
23
+ indigo: 'fdc3.channel.8',
24
+ purple: 'fdc3.channel.8'
25
+ };
26
+ /**
27
+ * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
28
+ * The removed legacy gray channel resolves to no channel.
29
+ */
30
+ function normalizeColorChannelId(colorChannelId) {
31
+ if (colorChannelId === 'gray') {
32
+ return undefined;
33
+ }
34
+ if (Object.prototype.hasOwnProperty.call(legacyColorChannelIds, colorChannelId)) {
35
+ return legacyColorChannelIds[colorChannelId];
36
+ }
37
+ return colorChannelId;
38
+ }
39
+
40
+ export { defaultColorChannels, normalizeColorChannelId };
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import { EventEmitter } from 'events';
4
2
  import { v1_2 } from '@openfin/fdc3';
5
3
  import { v2_0 } from '@openfin/fdc3';
@@ -1933,7 +1931,6 @@ declare type BaseEvent_9 = BaseEvents.BaseEvent & {
1933
1931
 
1934
1932
  declare namespace BaseEvents {
1935
1933
  export {
1936
- NotCloseRequested,
1937
1934
  PropagatedEventType,
1938
1935
  PropagatedEvent,
1939
1936
  Payload_2 as Payload,
@@ -6054,7 +6051,7 @@ declare namespace FDC3 {
6054
6051
 
6055
6052
  declare type FDC3Factory = typeof fdc3Factory;
6056
6053
 
6057
- declare const fdc3Factory: (version: '1.2' | '2.0', interopClient: OpenFin_2.InteropClient, wire: Transport<'unknown'>) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6054
+ declare const fdc3Factory: (version: "1.2" | "2.0", interopClient: OpenFin_2.InteropClient, wire: Transport<"unknown">) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6058
6055
 
6059
6056
  /**
6060
6057
  * @interface
@@ -7883,14 +7880,14 @@ declare class InteropClient extends Base {
7883
7880
  * @param listener Callback invoked whenever the event occurs.
7884
7881
  * @returns Promise resolving with void once the listener is registered.
7885
7882
  */
7886
- addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7883
+ addListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
7887
7884
  /**
7888
7885
  * `removeListener` removes a registered event listener.
7889
7886
  * @param type The event type to subscribe to.
7890
7887
  * @param listener Callback to be removed.
7891
7888
  * @returns Promise resolving with void even if no callback was found.
7892
7889
  */
7893
- removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7890
+ removeListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
7894
7891
  /**
7895
7892
  * Sets a context for the context group of the current entity.
7896
7893
  *
@@ -10794,7 +10791,6 @@ declare namespace OpenFin_2 {
10794
10791
  LogPath,
10795
10792
  LogTarget,
10796
10793
  MutableWindowOptions,
10797
- WorkspacePlatformOptions,
10798
10794
  WebRequestHeader,
10799
10795
  CustomRequestHeaders,
10800
10796
  WindowOptionDiff,
@@ -17239,8 +17235,6 @@ declare type SystemEvent_2 = Events.SystemEvents.SystemEvent;
17239
17235
 
17240
17236
  declare namespace SystemEvents {
17241
17237
  export {
17242
- NotRequested,
17243
- ExcludeRequested,
17244
17238
  BaseEvent_9 as BaseEvent,
17245
17239
  IdleStateChangedEvent,
17246
17240
  IdleEvent,
@@ -17249,15 +17243,8 @@ declare namespace SystemEvents {
17249
17243
  SessionChangedEvent,
17250
17244
  AppVersionEvent,
17251
17245
  AppVersionEventType,
17252
- IdEventType,
17253
- WithId,
17254
- WithoutId,
17255
- AppVersionTypeFromIdEvent,
17256
- EventWithId,
17257
- AppVersionEventWithId,
17258
17246
  ApplicationCreatedEvent,
17259
17247
  DesktopIconClickedEvent,
17260
- SystemShutdownEvent,
17261
17248
  ExtensionsEnabledEvent,
17262
17249
  ExtensionsDisabledEvent,
17263
17250
  ExtensionsExcludedEvent,
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import { EventEmitter } from 'events';
4
2
  import { v1_2 } from '@openfin/fdc3';
5
3
  import { v2_0 } from '@openfin/fdc3';
@@ -1933,7 +1931,6 @@ declare type BaseEvent_9 = BaseEvents.BaseEvent & {
1933
1931
 
1934
1932
  declare namespace BaseEvents {
1935
1933
  export {
1936
- NotCloseRequested,
1937
1934
  PropagatedEventType,
1938
1935
  PropagatedEvent,
1939
1936
  Payload_2 as Payload,
@@ -6054,7 +6051,7 @@ declare namespace FDC3 {
6054
6051
 
6055
6052
  declare type FDC3Factory = typeof fdc3Factory;
6056
6053
 
6057
- declare const fdc3Factory: (version: '1.2' | '2.0', interopClient: OpenFin_2.InteropClient, wire: Transport<'unknown'>) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6054
+ declare const fdc3Factory: (version: "1.2" | "2.0", interopClient: OpenFin_2.InteropClient, wire: Transport<"unknown">) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6058
6055
 
6059
6056
  /**
6060
6057
  * @interface
@@ -7883,14 +7880,14 @@ declare class InteropClient extends Base {
7883
7880
  * @param listener Callback invoked whenever the event occurs.
7884
7881
  * @returns Promise resolving with void once the listener is registered.
7885
7882
  */
7886
- addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7883
+ addListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
7887
7884
  /**
7888
7885
  * `removeListener` removes a registered event listener.
7889
7886
  * @param type The event type to subscribe to.
7890
7887
  * @param listener Callback to be removed.
7891
7888
  * @returns Promise resolving with void even if no callback was found.
7892
7889
  */
7893
- removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7890
+ removeListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
7894
7891
  /**
7895
7892
  * Sets a context for the context group of the current entity.
7896
7893
  *
@@ -10794,7 +10791,6 @@ declare namespace OpenFin_2 {
10794
10791
  LogPath,
10795
10792
  LogTarget,
10796
10793
  MutableWindowOptions,
10797
- WorkspacePlatformOptions,
10798
10794
  WebRequestHeader,
10799
10795
  CustomRequestHeaders,
10800
10796
  WindowOptionDiff,
@@ -17239,8 +17235,6 @@ declare type SystemEvent_2 = Events.SystemEvents.SystemEvent;
17239
17235
 
17240
17236
  declare namespace SystemEvents {
17241
17237
  export {
17242
- NotRequested,
17243
- ExcludeRequested,
17244
17238
  BaseEvent_9 as BaseEvent,
17245
17239
  IdleStateChangedEvent,
17246
17240
  IdleEvent,
@@ -17249,15 +17243,8 @@ declare namespace SystemEvents {
17249
17243
  SessionChangedEvent,
17250
17244
  AppVersionEvent,
17251
17245
  AppVersionEventType,
17252
- IdEventType,
17253
- WithId,
17254
- WithoutId,
17255
- AppVersionTypeFromIdEvent,
17256
- EventWithId,
17257
- AppVersionEventWithId,
17258
17246
  ApplicationCreatedEvent,
17259
17247
  DesktopIconClickedEvent,
17260
- SystemShutdownEvent,
17261
17248
  ExtensionsEnabledEvent,
17262
17249
  ExtensionsDisabledEvent,
17263
17250
  ExtensionsExcludedEvent,
@@ -0,0 +1,71 @@
1
+ export declare type DefaultColorChannelId = keyof typeof defaultColorChannels;
2
+
3
+ /**
4
+ * The default FDC3 user channels advertised by the Interop Broker.
5
+ */
6
+ export declare const defaultColorChannels: {
7
+ readonly 'fdc3.channel.1': {
8
+ readonly name: "Channel 1";
9
+ readonly color: "red";
10
+ readonly glyph: "1";
11
+ };
12
+ readonly 'fdc3.channel.2': {
13
+ readonly name: "Channel 2";
14
+ readonly color: "orange";
15
+ readonly glyph: "2";
16
+ };
17
+ readonly 'fdc3.channel.3': {
18
+ readonly name: "Channel 3";
19
+ readonly color: "yellow";
20
+ readonly glyph: "3";
21
+ };
22
+ readonly 'fdc3.channel.4': {
23
+ readonly name: "Channel 4";
24
+ readonly color: "green";
25
+ readonly glyph: "4";
26
+ };
27
+ readonly 'fdc3.channel.5': {
28
+ readonly name: "Channel 5";
29
+ readonly color: "cyan";
30
+ readonly glyph: "5";
31
+ };
32
+ readonly 'fdc3.channel.6': {
33
+ readonly name: "Channel 6";
34
+ readonly color: "blue";
35
+ readonly glyph: "6";
36
+ };
37
+ readonly 'fdc3.channel.7': {
38
+ readonly name: "Channel 7";
39
+ readonly color: "magenta";
40
+ readonly glyph: "7";
41
+ };
42
+ readonly 'fdc3.channel.8': {
43
+ readonly name: "Channel 8";
44
+ readonly color: "purple";
45
+ readonly glyph: "8";
46
+ };
47
+ };
48
+
49
+ declare type LegacyColorChannelId = keyof typeof legacyColorChannelIds;
50
+
51
+ declare const legacyColorChannelIds: {
52
+ readonly red: "fdc3.channel.1";
53
+ readonly orange: "fdc3.channel.2";
54
+ readonly yellow: "fdc3.channel.3";
55
+ readonly green: "fdc3.channel.4";
56
+ readonly teal: "fdc3.channel.5";
57
+ readonly blue: "fdc3.channel.6";
58
+ readonly pink: "fdc3.channel.7";
59
+ readonly indigo: "fdc3.channel.8";
60
+ readonly purple: "fdc3.channel.8";
61
+ };
62
+
63
+ /**
64
+ * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
65
+ * The removed legacy gray channel resolves to no channel.
66
+ */
67
+ export declare function normalizeColorChannelId<T extends string>(colorChannelId: T): NormalizedColorChannelId<T>;
68
+
69
+ declare type NormalizedColorChannelId<T extends string> = string extends T ? string | undefined : T extends 'gray' ? undefined : T extends LegacyColorChannelId ? (typeof legacyColorChannelIds)[T] : T;
70
+
71
+ export { }
@@ -0,0 +1,71 @@
1
+ export declare type DefaultColorChannelId = keyof typeof defaultColorChannels;
2
+
3
+ /**
4
+ * The default FDC3 user channels advertised by the Interop Broker.
5
+ */
6
+ export declare const defaultColorChannels: {
7
+ readonly 'fdc3.channel.1': {
8
+ readonly name: "Channel 1";
9
+ readonly color: "red";
10
+ readonly glyph: "1";
11
+ };
12
+ readonly 'fdc3.channel.2': {
13
+ readonly name: "Channel 2";
14
+ readonly color: "orange";
15
+ readonly glyph: "2";
16
+ };
17
+ readonly 'fdc3.channel.3': {
18
+ readonly name: "Channel 3";
19
+ readonly color: "yellow";
20
+ readonly glyph: "3";
21
+ };
22
+ readonly 'fdc3.channel.4': {
23
+ readonly name: "Channel 4";
24
+ readonly color: "green";
25
+ readonly glyph: "4";
26
+ };
27
+ readonly 'fdc3.channel.5': {
28
+ readonly name: "Channel 5";
29
+ readonly color: "cyan";
30
+ readonly glyph: "5";
31
+ };
32
+ readonly 'fdc3.channel.6': {
33
+ readonly name: "Channel 6";
34
+ readonly color: "blue";
35
+ readonly glyph: "6";
36
+ };
37
+ readonly 'fdc3.channel.7': {
38
+ readonly name: "Channel 7";
39
+ readonly color: "magenta";
40
+ readonly glyph: "7";
41
+ };
42
+ readonly 'fdc3.channel.8': {
43
+ readonly name: "Channel 8";
44
+ readonly color: "purple";
45
+ readonly glyph: "8";
46
+ };
47
+ };
48
+
49
+ declare type LegacyColorChannelId = keyof typeof legacyColorChannelIds;
50
+
51
+ declare const legacyColorChannelIds: {
52
+ readonly red: "fdc3.channel.1";
53
+ readonly orange: "fdc3.channel.2";
54
+ readonly yellow: "fdc3.channel.3";
55
+ readonly green: "fdc3.channel.4";
56
+ readonly teal: "fdc3.channel.5";
57
+ readonly blue: "fdc3.channel.6";
58
+ readonly pink: "fdc3.channel.7";
59
+ readonly indigo: "fdc3.channel.8";
60
+ readonly purple: "fdc3.channel.8";
61
+ };
62
+
63
+ /**
64
+ * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
65
+ * The removed legacy gray channel resolves to no channel.
66
+ */
67
+ export declare function normalizeColorChannelId<T extends string>(colorChannelId: T): NormalizedColorChannelId<T>;
68
+
69
+ declare type NormalizedColorChannelId<T extends string> = string extends T ? string | undefined : T extends 'gray' ? undefined : T extends LegacyColorChannelId ? (typeof legacyColorChannelIds)[T] : T;
70
+
71
+ export { }
@@ -0,0 +1,71 @@
1
+ export declare type DefaultColorChannelId = keyof typeof defaultColorChannels;
2
+
3
+ /**
4
+ * The default FDC3 user channels advertised by the Interop Broker.
5
+ */
6
+ export declare const defaultColorChannels: {
7
+ readonly 'fdc3.channel.1': {
8
+ readonly name: "Channel 1";
9
+ readonly color: "red";
10
+ readonly glyph: "1";
11
+ };
12
+ readonly 'fdc3.channel.2': {
13
+ readonly name: "Channel 2";
14
+ readonly color: "orange";
15
+ readonly glyph: "2";
16
+ };
17
+ readonly 'fdc3.channel.3': {
18
+ readonly name: "Channel 3";
19
+ readonly color: "yellow";
20
+ readonly glyph: "3";
21
+ };
22
+ readonly 'fdc3.channel.4': {
23
+ readonly name: "Channel 4";
24
+ readonly color: "green";
25
+ readonly glyph: "4";
26
+ };
27
+ readonly 'fdc3.channel.5': {
28
+ readonly name: "Channel 5";
29
+ readonly color: "cyan";
30
+ readonly glyph: "5";
31
+ };
32
+ readonly 'fdc3.channel.6': {
33
+ readonly name: "Channel 6";
34
+ readonly color: "blue";
35
+ readonly glyph: "6";
36
+ };
37
+ readonly 'fdc3.channel.7': {
38
+ readonly name: "Channel 7";
39
+ readonly color: "magenta";
40
+ readonly glyph: "7";
41
+ };
42
+ readonly 'fdc3.channel.8': {
43
+ readonly name: "Channel 8";
44
+ readonly color: "purple";
45
+ readonly glyph: "8";
46
+ };
47
+ };
48
+
49
+ declare type LegacyColorChannelId = keyof typeof legacyColorChannelIds;
50
+
51
+ declare const legacyColorChannelIds: {
52
+ readonly red: "fdc3.channel.1";
53
+ readonly orange: "fdc3.channel.2";
54
+ readonly yellow: "fdc3.channel.3";
55
+ readonly green: "fdc3.channel.4";
56
+ readonly teal: "fdc3.channel.5";
57
+ readonly blue: "fdc3.channel.6";
58
+ readonly pink: "fdc3.channel.7";
59
+ readonly indigo: "fdc3.channel.8";
60
+ readonly purple: "fdc3.channel.8";
61
+ };
62
+
63
+ /**
64
+ * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
65
+ * The removed legacy gray channel resolves to no channel.
66
+ */
67
+ export declare function normalizeColorChannelId<T extends string>(colorChannelId: T): NormalizedColorChannelId<T>;
68
+
69
+ declare type NormalizedColorChannelId<T extends string> = string extends T ? string | undefined : T extends 'gray' ? undefined : T extends LegacyColorChannelId ? (typeof legacyColorChannelIds)[T] : T;
70
+
71
+ export { }
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import { EventEmitter } from 'events';
4
2
  import { v1_2 } from '@openfin/fdc3';
5
3
  import { v2_0 } from '@openfin/fdc3';
@@ -1933,7 +1931,6 @@ declare type BaseEvent_9 = BaseEvents.BaseEvent & {
1933
1931
 
1934
1932
  declare namespace BaseEvents {
1935
1933
  export {
1936
- NotCloseRequested,
1937
1934
  PropagatedEventType,
1938
1935
  PropagatedEvent,
1939
1936
  Payload_2 as Payload,
@@ -6054,7 +6051,7 @@ declare namespace FDC3 {
6054
6051
 
6055
6052
  declare type FDC3Factory = typeof fdc3Factory;
6056
6053
 
6057
- declare const fdc3Factory: (version: '1.2' | '2.0', interopClient: OpenFin_2.InteropClient, wire: Transport<'unknown'>) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6054
+ declare const fdc3Factory: (version: "1.2" | "2.0", interopClient: OpenFin_2.InteropClient, wire: Transport<"unknown">) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6058
6055
 
6059
6056
  /**
6060
6057
  * @interface
@@ -7883,14 +7880,14 @@ declare class InteropClient extends Base {
7883
7880
  * @param listener Callback invoked whenever the event occurs.
7884
7881
  * @returns Promise resolving with void once the listener is registered.
7885
7882
  */
7886
- addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7883
+ addListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
7887
7884
  /**
7888
7885
  * `removeListener` removes a registered event listener.
7889
7886
  * @param type The event type to subscribe to.
7890
7887
  * @param listener Callback to be removed.
7891
7888
  * @returns Promise resolving with void even if no callback was found.
7892
7889
  */
7893
- removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7890
+ removeListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
7894
7891
  /**
7895
7892
  * Sets a context for the context group of the current entity.
7896
7893
  *
@@ -10794,7 +10791,6 @@ declare namespace OpenFin_2 {
10794
10791
  LogPath,
10795
10792
  LogTarget,
10796
10793
  MutableWindowOptions,
10797
- WorkspacePlatformOptions,
10798
10794
  WebRequestHeader,
10799
10795
  CustomRequestHeaders,
10800
10796
  WindowOptionDiff,
@@ -17239,8 +17235,6 @@ declare type SystemEvent_2 = Events.SystemEvents.SystemEvent;
17239
17235
 
17240
17236
  declare namespace SystemEvents {
17241
17237
  export {
17242
- NotRequested,
17243
- ExcludeRequested,
17244
17238
  BaseEvent_9 as BaseEvent,
17245
17239
  IdleStateChangedEvent,
17246
17240
  IdleEvent,
@@ -17249,15 +17243,8 @@ declare namespace SystemEvents {
17249
17243
  SessionChangedEvent,
17250
17244
  AppVersionEvent,
17251
17245
  AppVersionEventType,
17252
- IdEventType,
17253
- WithId,
17254
- WithoutId,
17255
- AppVersionTypeFromIdEvent,
17256
- EventWithId,
17257
- AppVersionEventWithId,
17258
17246
  ApplicationCreatedEvent,
17259
17247
  DesktopIconClickedEvent,
17260
- SystemShutdownEvent,
17261
17248
  ExtensionsEnabledEvent,
17262
17249
  ExtensionsDisabledEvent,
17263
17250
  ExtensionsExcludedEvent,
package/out/stub.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import { EventEmitter } from 'events';
4
2
  import { v1_2 } from './fdc3';
5
3
  import { v2_0 } from './fdc3';
@@ -6186,7 +6184,7 @@ declare namespace FDC3 {
6186
6184
 
6187
6185
  declare type FDC3Factory = typeof fdc3Factory;
6188
6186
 
6189
- declare const fdc3Factory: (version: '1.2' | '2.0', interopClient: OpenFin_2.InteropClient, wire: Transport<'unknown'>) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6187
+ declare const fdc3Factory: (version: "1.2" | "2.0", interopClient: OpenFin_2.InteropClient, wire: Transport<"unknown">) => OpenFin_2.FDC3.v2_0.DesktopAgent | OpenFin_2.FDC3.v1_2.DesktopAgent;
6190
6188
 
6191
6189
  /**
6192
6190
  * @interface
@@ -8048,14 +8046,14 @@ declare class InteropClient extends Base {
8048
8046
  * @param listener Callback invoked whenever the event occurs.
8049
8047
  * @returns Promise resolving with void once the listener is registered.
8050
8048
  */
8051
- addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
8049
+ addListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
8052
8050
  /**
8053
8051
  * `removeListener` removes a registered event listener.
8054
8052
  * @param type The event type to subscribe to.
8055
8053
  * @param listener Callback to be removed.
8056
8054
  * @returns Promise resolving with void even if no callback was found.
8057
8055
  */
8058
- removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
8056
+ removeListener: (type: OpenFin_2.InteropClientEvents["type"], listener: (event: OpenFin_2.InteropClientEvents["event"]) => void) => Promise<void>;
8059
8057
  /**
8060
8058
  * Sets a context for the context group of the current entity.
8061
8059
  *
package/out/stub.js CHANGED
@@ -8458,7 +8458,7 @@ var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) |
8458
8458
  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");
8459
8459
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8460
8460
  };
8461
- var _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
8461
+ var _a$3, _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
8462
8462
  /**
8463
8463
  * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
8464
8464
  * a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
@@ -8506,7 +8506,7 @@ class ChannelProvider extends ChannelBase {
8506
8506
  channel.disconnectListener(payload);
8507
8507
  }
8508
8508
  static setProviderRemoval(provider, remove) {
8509
- ChannelProvider.removalMap.set(provider, remove);
8509
+ _a$3.removalMap.set(provider, remove);
8510
8510
  }
8511
8511
  /**
8512
8512
  * @internal
@@ -8523,7 +8523,7 @@ class ChannelProvider extends ChannelBase {
8523
8523
  });
8524
8524
  // Must be bound.
8525
8525
  this.processAction = async (action, payload, senderIdentity) => {
8526
- if (ChannelProvider.clientIsMultiRuntime(senderIdentity) &&
8526
+ if (_a$3.clientIsMultiRuntime(senderIdentity) &&
8527
8527
  !runtimeUuidMeetsMinimumRuntimeVersion(senderIdentity.runtimeUuid, '18.87.56.0')) {
8528
8528
  this.handleMultiRuntimeLegacyClient(senderIdentity);
8529
8529
  }
@@ -8534,7 +8534,7 @@ class ChannelProvider extends ChannelBase {
8534
8534
  };
8535
8535
  _ChannelProvider_close.set(this, () => {
8536
8536
  __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").close();
8537
- const remove = ChannelProvider.removalMap.get(this);
8537
+ const remove = _a$3.removalMap.get(this);
8538
8538
  if (remove) {
8539
8539
  remove();
8540
8540
  }
@@ -8730,7 +8730,7 @@ class ChannelProvider extends ChannelBase {
8730
8730
  }
8731
8731
  }
8732
8732
  isClientConnected(clientIdentity) {
8733
- if (ChannelProvider.clientIdentityIncludesEndpointId(clientIdentity)) {
8733
+ if (_a$3.clientIdentityIncludesEndpointId(clientIdentity)) {
8734
8734
  return this.connections.some((identity) => {
8735
8735
  return (
8736
8736
  // Might be redundant to check for uuid and name here after we get an endpointId match, but just in case
@@ -8780,7 +8780,7 @@ class ChannelProvider extends ChannelBase {
8780
8780
  await wire.sendAction('destroy-channel', { channelName });
8781
8781
  }
8782
8782
  }
8783
- _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
8783
+ _a$3 = ChannelProvider, _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
8784
8784
  // The following line should be changed following a typescript update.
8785
8785
  // static #removalMap = new WeakMap<ChannelProvider, Function>();
8786
8786
  ChannelProvider.removalMap = new WeakMap();
@@ -10292,7 +10292,7 @@ var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) |
10292
10292
  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");
10293
10293
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
10294
10294
  };
10295
- var _Platform_channelName, _Platform_connectToProvider;
10295
+ var _a$2, _Platform_channelName, _Platform_connectToProvider;
10296
10296
  /** Manages the life cycle of windows and views in the application.
10297
10297
  *
10298
10298
  * Enables taking snapshots of itself and applying them to restore a previous configuration
@@ -10314,29 +10314,29 @@ class Platform extends EmitterBase {
10314
10314
  if (identity.uuid !== this.identity.uuid) {
10315
10315
  // I have no idea why we allow passing in a different identity, but we do.
10316
10316
  // Doing this above the analytics call so we only register one call.
10317
- return new Platform(this.wire, identity).getClient();
10317
+ return new _a$2(this.wire, identity).getClient();
10318
10318
  }
10319
10319
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
10320
10320
  // don't expose
10321
10321
  });
10322
- if (!Platform.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10322
+ if (!_a$2.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10323
10323
  const clientPromise = __classPrivateFieldGet$d(this, _Platform_connectToProvider, "f").call(this);
10324
- Platform.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10324
+ _a$2.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10325
10325
  }
10326
10326
  // we set it above
10327
10327
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10328
- return Platform.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10328
+ return _a$2.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10329
10329
  };
10330
10330
  _Platform_connectToProvider.set(this, async () => {
10331
10331
  try {
10332
10332
  const client = await this._channel.connect(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), { wait: false });
10333
10333
  client.onDisconnection(() => {
10334
- Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10334
+ _a$2.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10335
10335
  });
10336
10336
  return client;
10337
10337
  }
10338
10338
  catch (e) {
10339
- Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10339
+ _a$2.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10340
10340
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
10341
10341
  }
10342
10342
  });
@@ -11114,7 +11114,7 @@ class Platform extends EmitterBase {
11114
11114
  return client.dispatch('close-window', { windowId, options });
11115
11115
  }
11116
11116
  }
11117
- _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
11117
+ _a$2 = Platform, _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
11118
11118
  /**
11119
11119
  * @internal
11120
11120
  * Reuse clients to avoid overwriting already-registered client in provider
@@ -11216,7 +11216,7 @@ var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) |
11216
11216
  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");
11217
11217
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11218
11218
  };
11219
- var _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
11219
+ var _a$1, _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
11220
11220
  /*
11221
11221
  This file includes LayoutNode, ColumnOrRow and TabStack classes, which are all closely
11222
11222
  intertwined, and share members via parent abstract class LayoutNode. To prevent circular
@@ -11306,7 +11306,7 @@ class LayoutNode {
11306
11306
  if (!parent) {
11307
11307
  return undefined;
11308
11308
  }
11309
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11309
+ return _a$1.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11310
11310
  };
11311
11311
  /**
11312
11312
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -11358,7 +11358,7 @@ class LayoutNode {
11358
11358
  */
11359
11359
  this.createAdjacentStack = async (views, options) => {
11360
11360
  const entityId = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11361
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11361
+ return _a$1.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11362
11362
  };
11363
11363
  /**
11364
11364
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -11390,7 +11390,7 @@ class LayoutNode {
11390
11390
  targetId: this.entityId,
11391
11391
  edge
11392
11392
  });
11393
- return adjacentStacks.map((stack) => LayoutNode.getEntity({
11393
+ return adjacentStacks.map((stack) => _a$1.getEntity({
11394
11394
  type: 'stack',
11395
11395
  entityId: stack.entityId
11396
11396
  }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f")));
@@ -11399,7 +11399,7 @@ class LayoutNode {
11399
11399
  this.entityId = entityId;
11400
11400
  }
11401
11401
  }
11402
- _LayoutNode_client = new WeakMap();
11402
+ _a$1 = LayoutNode, _LayoutNode_client = new WeakMap();
11403
11403
  /**
11404
11404
  * @ignore
11405
11405
  * @internal
@@ -14531,6 +14531,7 @@ class SessionContextGroupClient extends Base {
14531
14531
  }
14532
14532
  }
14533
14533
  _SessionContextGroupClient_clientPromise = new WeakMap();
14534
+ var SessionContextGroupClient$1 = SessionContextGroupClient;
14534
14535
 
14535
14536
  var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14536
14537
  if (kind === "m") throw new TypeError("Private method is not writable");
@@ -14557,10 +14558,10 @@ class ChannelEvents {
14557
14558
  _ChannelEvents_isChannelReady.set(this, false);
14558
14559
  _ChannelEvents_getActions.set(this, async () => {
14559
14560
  const channelClient = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14560
- let actions = __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14561
+ let actions = __classPrivateFieldGet$7(_a, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14561
14562
  if (!actions) {
14562
14563
  actions = {};
14563
- __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14564
+ __classPrivateFieldGet$7(_a, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14564
14565
  }
14565
14566
  return actions;
14566
14567
  });
@@ -15229,7 +15230,7 @@ class InteropClient extends Base {
15229
15230
  if (hasConflict) {
15230
15231
  console.warn(`A (non-session) context group with the name "${sessionContextGroupId}" already exists. If you are trying to join a Context Group, call joinContextGroup instead.`);
15231
15232
  }
15232
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15233
+ const newSessionContextGroup = new SessionContextGroupClient$1(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15233
15234
  __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15234
15235
  return newSessionContextGroup.getUserInstance();
15235
15236
  }
package/out/stub.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import { isEqual } from 'es-toolkit';
3
+ import { defaultColorChannels, normalizeColorChannelId } from './color-channels.mjs';
3
4
 
4
5
  /**
5
6
  * Namespace for events that can be emitted by an {@link OpenFin.Application}. Includes events
@@ -8454,7 +8455,7 @@ var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) |
8454
8455
  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");
8455
8456
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8456
8457
  };
8457
- var _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
8458
+ var _a$3, _ChannelProvider_connections, _ChannelProvider_protectedObj, _ChannelProvider_strategy, _ChannelProvider_removeEndpoint, _ChannelProvider_close;
8458
8459
  /**
8459
8460
  * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
8460
8461
  * a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
@@ -8502,7 +8503,7 @@ class ChannelProvider extends ChannelBase {
8502
8503
  channel.disconnectListener(payload);
8503
8504
  }
8504
8505
  static setProviderRemoval(provider, remove) {
8505
- ChannelProvider.removalMap.set(provider, remove);
8506
+ _a$3.removalMap.set(provider, remove);
8506
8507
  }
8507
8508
  /**
8508
8509
  * @internal
@@ -8519,7 +8520,7 @@ class ChannelProvider extends ChannelBase {
8519
8520
  });
8520
8521
  // Must be bound.
8521
8522
  this.processAction = async (action, payload, senderIdentity) => {
8522
- if (ChannelProvider.clientIsMultiRuntime(senderIdentity) &&
8523
+ if (_a$3.clientIsMultiRuntime(senderIdentity) &&
8523
8524
  !runtimeUuidMeetsMinimumRuntimeVersion(senderIdentity.runtimeUuid, '18.87.56.0')) {
8524
8525
  this.handleMultiRuntimeLegacyClient(senderIdentity);
8525
8526
  }
@@ -8530,7 +8531,7 @@ class ChannelProvider extends ChannelBase {
8530
8531
  };
8531
8532
  _ChannelProvider_close.set(this, () => {
8532
8533
  __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").close();
8533
- const remove = ChannelProvider.removalMap.get(this);
8534
+ const remove = _a$3.removalMap.get(this);
8534
8535
  if (remove) {
8535
8536
  remove();
8536
8537
  }
@@ -8726,7 +8727,7 @@ class ChannelProvider extends ChannelBase {
8726
8727
  }
8727
8728
  }
8728
8729
  isClientConnected(clientIdentity) {
8729
- if (ChannelProvider.clientIdentityIncludesEndpointId(clientIdentity)) {
8730
+ if (_a$3.clientIdentityIncludesEndpointId(clientIdentity)) {
8730
8731
  return this.connections.some((identity) => {
8731
8732
  return (
8732
8733
  // Might be redundant to check for uuid and name here after we get an endpointId match, but just in case
@@ -8776,7 +8777,7 @@ class ChannelProvider extends ChannelBase {
8776
8777
  await wire.sendAction('destroy-channel', { channelName });
8777
8778
  }
8778
8779
  }
8779
- _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
8780
+ _a$3 = ChannelProvider, _ChannelProvider_connections = new WeakMap(), _ChannelProvider_protectedObj = new WeakMap(), _ChannelProvider_strategy = new WeakMap(), _ChannelProvider_removeEndpoint = new WeakMap(), _ChannelProvider_close = new WeakMap();
8780
8781
  // The following line should be changed following a typescript update.
8781
8782
  // static #removalMap = new WeakMap<ChannelProvider, Function>();
8782
8783
  ChannelProvider.removalMap = new WeakMap();
@@ -10288,7 +10289,7 @@ var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) |
10288
10289
  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");
10289
10290
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
10290
10291
  };
10291
- var _Platform_channelName, _Platform_connectToProvider;
10292
+ var _a$2, _Platform_channelName, _Platform_connectToProvider;
10292
10293
  /** Manages the life cycle of windows and views in the application.
10293
10294
  *
10294
10295
  * Enables taking snapshots of itself and applying them to restore a previous configuration
@@ -10310,29 +10311,29 @@ class Platform extends EmitterBase {
10310
10311
  if (identity.uuid !== this.identity.uuid) {
10311
10312
  // I have no idea why we allow passing in a different identity, but we do.
10312
10313
  // Doing this above the analytics call so we only register one call.
10313
- return new Platform(this.wire, identity).getClient();
10314
+ return new _a$2(this.wire, identity).getClient();
10314
10315
  }
10315
10316
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
10316
10317
  // don't expose
10317
10318
  });
10318
- if (!Platform.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10319
+ if (!_a$2.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10319
10320
  const clientPromise = __classPrivateFieldGet$d(this, _Platform_connectToProvider, "f").call(this);
10320
- Platform.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10321
+ _a$2.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10321
10322
  }
10322
10323
  // we set it above
10323
10324
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10324
- return Platform.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10325
+ return _a$2.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10325
10326
  };
10326
10327
  _Platform_connectToProvider.set(this, async () => {
10327
10328
  try {
10328
10329
  const client = await this._channel.connect(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), { wait: false });
10329
10330
  client.onDisconnection(() => {
10330
- Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10331
+ _a$2.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10331
10332
  });
10332
10333
  return client;
10333
10334
  }
10334
10335
  catch (e) {
10335
- Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10336
+ _a$2.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10336
10337
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
10337
10338
  }
10338
10339
  });
@@ -11110,7 +11111,7 @@ class Platform extends EmitterBase {
11110
11111
  return client.dispatch('close-window', { windowId, options });
11111
11112
  }
11112
11113
  }
11113
- _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
11114
+ _a$2 = Platform, _Platform_channelName = new WeakMap(), _Platform_connectToProvider = new WeakMap();
11114
11115
  /**
11115
11116
  * @internal
11116
11117
  * Reuse clients to avoid overwriting already-registered client in provider
@@ -11212,7 +11213,7 @@ var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) |
11212
11213
  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");
11213
11214
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11214
11215
  };
11215
- var _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
11216
+ var _a$1, _LayoutNode_client, _TabStack_client, _ColumnOrRow_client;
11216
11217
  /*
11217
11218
  This file includes LayoutNode, ColumnOrRow and TabStack classes, which are all closely
11218
11219
  intertwined, and share members via parent abstract class LayoutNode. To prevent circular
@@ -11302,7 +11303,7 @@ class LayoutNode {
11302
11303
  if (!parent) {
11303
11304
  return undefined;
11304
11305
  }
11305
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11306
+ return _a$1.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11306
11307
  };
11307
11308
  /**
11308
11309
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -11354,7 +11355,7 @@ class LayoutNode {
11354
11355
  */
11355
11356
  this.createAdjacentStack = async (views, options) => {
11356
11357
  const entityId = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11357
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11358
+ return _a$1.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11358
11359
  };
11359
11360
  /**
11360
11361
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -11386,7 +11387,7 @@ class LayoutNode {
11386
11387
  targetId: this.entityId,
11387
11388
  edge
11388
11389
  });
11389
- return adjacentStacks.map((stack) => LayoutNode.getEntity({
11390
+ return adjacentStacks.map((stack) => _a$1.getEntity({
11390
11391
  type: 'stack',
11391
11392
  entityId: stack.entityId
11392
11393
  }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f")));
@@ -11395,7 +11396,7 @@ class LayoutNode {
11395
11396
  this.entityId = entityId;
11396
11397
  }
11397
11398
  }
11398
- _LayoutNode_client = new WeakMap();
11399
+ _a$1 = LayoutNode, _LayoutNode_client = new WeakMap();
11399
11400
  /**
11400
11401
  * @ignore
11401
11402
  * @internal
@@ -13121,45 +13122,6 @@ class PrivateChannelProvider {
13121
13122
  }
13122
13123
  }
13123
13124
 
13124
- /**
13125
- * The default FDC3 user channels advertised by the Interop Broker.
13126
- */
13127
- const defaultColorChannels = {
13128
- 'fdc3.channel.1': { name: 'Channel 1', color: 'red', glyph: '1' },
13129
- 'fdc3.channel.2': { name: 'Channel 2', color: 'orange', glyph: '2' },
13130
- 'fdc3.channel.3': { name: 'Channel 3', color: 'yellow', glyph: '3' },
13131
- 'fdc3.channel.4': { name: 'Channel 4', color: 'green', glyph: '4' },
13132
- 'fdc3.channel.5': { name: 'Channel 5', color: 'cyan', glyph: '5' },
13133
- 'fdc3.channel.6': { name: 'Channel 6', color: 'blue', glyph: '6' },
13134
- 'fdc3.channel.7': { name: 'Channel 7', color: 'magenta', glyph: '7' },
13135
- 'fdc3.channel.8': { name: 'Channel 8', color: 'purple', glyph: '8' }
13136
- };
13137
- const legacyColorChannelIds = {
13138
- red: 'fdc3.channel.1',
13139
- orange: 'fdc3.channel.2',
13140
- yellow: 'fdc3.channel.3',
13141
- green: 'fdc3.channel.4',
13142
- teal: 'fdc3.channel.5',
13143
- blue: 'fdc3.channel.6',
13144
- pink: 'fdc3.channel.7',
13145
- // Legacy indigo (workspace) and purple (core) intentionally converge on the same FDC3 purple channel.
13146
- indigo: 'fdc3.channel.8',
13147
- purple: 'fdc3.channel.8'
13148
- };
13149
- /**
13150
- * Converts a legacy color-named channel ID to its canonical FDC3 user-channel ID.
13151
- * The removed legacy gray channel resolves to no channel.
13152
- */
13153
- function normalizeColorChannelId(colorChannelId) {
13154
- if (colorChannelId === 'gray') {
13155
- return undefined;
13156
- }
13157
- if (Object.prototype.hasOwnProperty.call(legacyColorChannelIds, colorChannelId)) {
13158
- return legacyColorChannelIds[colorChannelId];
13159
- }
13160
- return colorChannelId;
13161
- }
13162
-
13163
13125
  var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13164
13126
  if (kind === "m") throw new TypeError("Private method is not writable");
13165
13127
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
@@ -14527,6 +14489,7 @@ class SessionContextGroupClient extends Base {
14527
14489
  }
14528
14490
  }
14529
14491
  _SessionContextGroupClient_clientPromise = new WeakMap();
14492
+ var SessionContextGroupClient$1 = SessionContextGroupClient;
14530
14493
 
14531
14494
  var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14532
14495
  if (kind === "m") throw new TypeError("Private method is not writable");
@@ -14553,10 +14516,10 @@ class ChannelEvents {
14553
14516
  _ChannelEvents_isChannelReady.set(this, false);
14554
14517
  _ChannelEvents_getActions.set(this, async () => {
14555
14518
  const channelClient = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14556
- let actions = __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14519
+ let actions = __classPrivateFieldGet$7(_a, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14557
14520
  if (!actions) {
14558
14521
  actions = {};
14559
- __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14522
+ __classPrivateFieldGet$7(_a, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14560
14523
  }
14561
14524
  return actions;
14562
14525
  });
@@ -15225,7 +15188,7 @@ class InteropClient extends Base {
15225
15188
  if (hasConflict) {
15226
15189
  console.warn(`A (non-session) context group with the name "${sessionContextGroupId}" already exists. If you are trying to join a Context Group, call joinContextGroup instead.`);
15227
15190
  }
15228
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15191
+ const newSessionContextGroup = new SessionContextGroupClient$1(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15229
15192
  __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15230
15193
  return newSessionContextGroup.getUserInstance();
15231
15194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "46.100.83",
3
+ "version": "46.100.85",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",
@@ -11,6 +11,11 @@
11
11
  "import": "./out/stub.mjs",
12
12
  "default": "./out/stub.js"
13
13
  },
14
+ "./color-channels": {
15
+ "types": "./out/color-channels.d.ts",
16
+ "import": "./out/color-channels.mjs",
17
+ "default": "./out/color-channels.js"
18
+ },
14
19
  "./OpenFin": {
15
20
  "types": "./OpenFin.d.ts"
16
21
  },