@openfin/fdc3-api 36.80.23 → 36.80.26

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/fdc3-api.d.ts CHANGED
@@ -42,6 +42,15 @@ declare type Accelerator = {
42
42
  zoom: boolean;
43
43
  };
44
44
 
45
+ /**
46
+ * Generated when a View is added to a layout.
47
+ * @interface
48
+ */
49
+ declare type AddedToLayoutEvent = BaseEvent_4 & {
50
+ type: 'added-to-layout';
51
+ layoutIdentity: OpenFin.LayoutIdentity;
52
+ };
53
+
45
54
  /**
46
55
  * Options to use when adding a view to a {@link TabStack}.
47
56
  *
@@ -99,7 +108,7 @@ declare type ApiInjection = DomainApiSettings;
99
108
  * Generated when a new Platform's API becomes responsive.
100
109
  * @interface
101
110
  */
102
- declare type ApiReadyEvent = BaseEvent & {
111
+ declare type ApiReadyEvent = BaseEvents.BaseEvent & {
103
112
  topic: 'application';
104
113
  type: 'platform-api-ready';
105
114
  };
@@ -942,7 +951,7 @@ declare namespace ApplicationEvents {
942
951
  PropagatedApplicationEvent,
943
952
  PropagatedEventType_3 as PropagatedEventType,
944
953
  PropagatedApplicationEventType,
945
- Payload_4 as Payload,
954
+ Payload_5 as Payload,
946
955
  ByType_3 as ByType
947
956
  }
948
957
  }
@@ -1807,7 +1816,7 @@ declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
1807
1816
  * A base Channel event.
1808
1817
  * @interface
1809
1818
  */
1810
- declare type BaseEvent_2 = NamedEvent & {
1819
+ declare type BaseEvent_2 = BaseEvents.NamedEvent & {
1811
1820
  channelName: string;
1812
1821
  channelId: string;
1813
1822
  };
@@ -1877,6 +1886,7 @@ declare namespace BaseEvents {
1877
1886
  NotCloseRequested,
1878
1887
  PropagatedEventType,
1879
1888
  PropagatedEvent,
1889
+ Payload_2 as Payload,
1880
1890
  EventHandler,
1881
1891
  BaseEvent,
1882
1892
  IdentityEvent,
@@ -2017,7 +2027,7 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
2017
2027
  *
2018
2028
  * @typeParam Type String key specifying the event to extract
2019
2029
  */
2020
- declare type ByType<Type extends EventType> = Payload_2<Type>;
2030
+ declare type ByType<Type extends EventType> = Payload_3<Type>;
2021
2031
 
2022
2032
  /**
2023
2033
  * Extracts a single event type matching the given key from the Window {@link Event} union.
@@ -2026,7 +2036,7 @@ declare type ByType<Type extends EventType> = Payload_2<Type>;
2026
2036
  *
2027
2037
  * @typeParam Type String key specifying the event to extract
2028
2038
  */
2029
- declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
2039
+ declare type ByType_2<Type extends EventType_2> = Payload_4<Type>;
2030
2040
 
2031
2041
  /**
2032
2042
  * Extracts a single event type matching the given key from the Application {@link Event} union.
@@ -2035,7 +2045,7 @@ declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
2035
2045
  *
2036
2046
  * @typeParam Type String key specifying the event to extract
2037
2047
  */
2038
- declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
2048
+ declare type ByType_3<Type extends EventType_3> = Payload_5<Type>;
2039
2049
 
2040
2050
  /**
2041
2051
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
@@ -2044,7 +2054,7 @@ declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
2044
2054
  *
2045
2055
  * @typeParam Type String key specifying the event to extract
2046
2056
  */
2047
- declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
2057
+ declare type ByType_4<Type extends EventType_4> = Payload_6<Type>;
2048
2058
 
2049
2059
  /**
2050
2060
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
@@ -2053,7 +2063,7 @@ declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
2053
2063
  *
2054
2064
  * @typeParam Type String key specifying the event to extract
2055
2065
  */
2056
- declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
2066
+ declare type ByType_5<Type extends EventType_5> = Payload_7<Type>;
2057
2067
 
2058
2068
  /**
2059
2069
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
@@ -2062,7 +2072,7 @@ declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
2062
2072
  *
2063
2073
  * @typeParam Type String key specifying the event to extract
2064
2074
  */
2065
- declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
2075
+ declare type ByType_6<Type extends EventType_6> = Payload_8<Type>;
2066
2076
 
2067
2077
  /**
2068
2078
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
@@ -2071,7 +2081,7 @@ declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
2071
2081
  *
2072
2082
  * @typeParam Type String key specifying the event to extract
2073
2083
  */
2074
- declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
2084
+ declare type ByType_7<Type extends EventType_7> = Payload_9<Type>;
2075
2085
 
2076
2086
  /**
2077
2087
  * Extracts a single event type matching the given key from the System {@link Event} union.
@@ -2080,7 +2090,7 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
2080
2090
  *
2081
2091
  * @typeParam Type String key specifying the event to extract
2082
2092
  */
2083
- declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
2093
+ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
2084
2094
 
2085
2095
  /**
2086
2096
  * Configuration for page capture.
@@ -3739,7 +3749,9 @@ declare type ConstWindowOptions = {
3739
3749
  */
3740
3750
  preloadScripts: PreloadScript[];
3741
3751
  /**
3742
- * String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
3752
+ * String tag that attempts to group like-tagged renderers together.
3753
+ * However, there is no guarantee that a different affinity value will create a different process, under the hood Chromium can enforce its own process management under certain circumstances.
3754
+ * @remarks Will only be used if pages are on the same origin.
3743
3755
  */
3744
3756
  processAffinity: string;
3745
3757
  /**
@@ -4943,7 +4955,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4943
4955
  */
4944
4956
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4945
4957
  target: OpenFin.Identity;
4946
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4958
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4947
4959
 
4948
4960
  /**
4949
4961
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -4992,9 +5004,7 @@ declare class EventAggregator extends EmitterMap {
4992
5004
  * @remarks Selects the correct type for the event
4993
5005
  * payload from the provided union based on the provided string literal type.
4994
5006
  */
4995
- declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
4996
- type: EventType;
4997
- }>, ...args: any[]) => void;
5007
+ declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
4998
5008
 
4999
5009
  declare namespace Events {
5000
5010
  export {
@@ -5146,7 +5156,7 @@ declare namespace ExternalApplicationEvents {
5146
5156
  ExternalApplicationEvent,
5147
5157
  EventType_4 as EventType,
5148
5158
  ExternalApplicationEventType,
5149
- Payload_5 as Payload,
5159
+ Payload_6 as Payload,
5150
5160
  ByType_4 as ByType
5151
5161
  }
5152
5162
  }
@@ -5929,7 +5939,7 @@ declare namespace FrameEvents {
5929
5939
  FrameEvent,
5930
5940
  EventType_5 as EventType,
5931
5941
  FrameEventType,
5932
- Payload_6 as Payload,
5942
+ Payload_7 as Payload,
5933
5943
  ByType_5 as ByType
5934
5944
  }
5935
5945
  }
@@ -6174,7 +6184,7 @@ declare namespace GlobalHotkeyEvents {
6174
6184
  GlobalHotkeyEvent,
6175
6185
  EventType_6 as EventType,
6176
6186
  GlobalHotkeyEventType,
6177
- Payload_7 as Payload,
6187
+ Payload_8 as Payload,
6178
6188
  ByType_6 as ByType
6179
6189
  }
6180
6190
  }
@@ -10173,76 +10183,100 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
10173
10183
  };
10174
10184
 
10175
10185
  /**
10176
- * Extracts a single event type matching the given key from the View {@link Event} union.
10186
+ * Extracts a single event type matching the given key from the System {@link Event} union.
10187
+ *
10188
+ * @see {@link ByType}
10177
10189
  *
10178
10190
  * @typeParam Type String key specifying the event to extract
10179
10191
  */
10180
- declare type Payload_2<Type extends EventType> = Extract<Event_4, {
10181
- type: Type;
10192
+ declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
10193
+
10194
+ /**
10195
+ * Extracts a single event type matching the given type key from the provided EmitterEvent union.
10196
+ *
10197
+ * @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
10198
+ * the appropriate payload union for that namespace.
10199
+ *
10200
+ * @typeParam Event Union of payloads for events on the given emitter
10201
+ * @see {@link ByType}
10202
+ *
10203
+ * @typeParam Type String key specifying the event to extract from the union
10204
+ *
10205
+ * @see {@link OpenFin.Events.ApplicationEvents.Payload}
10206
+ * @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
10207
+ * @see {@link OpenFin.Events.FrameEvents.Payload}
10208
+ * @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
10209
+ * @see {@link OpenFin.Events.PlatformEvents.Payload}
10210
+ * @see {@link OpenFin.Events.SystemEvents.Payload}
10211
+ * @see {@link OpenFin.Events.ViewEvents.Payload}
10212
+ * @see {@link OpenFin.Events.WindowEvents.Payload}
10213
+ */
10214
+ declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
10215
+ type: EventType;
10182
10216
  }>;
10183
10217
 
10218
+ /**
10219
+ * Extracts a single event type matching the given key from the View {@link Event} union.
10220
+ *
10221
+ * @see {@link ByType}
10222
+ *
10223
+ * @typeParam Type String key specifying the event to extract
10224
+ */
10225
+ declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
10226
+
10184
10227
  /**
10185
10228
  * Extracts a single event type matching the given key from the Window {@link Event} union.
10186
10229
  *
10230
+ * @see {@link ByType}
10231
+ *
10187
10232
  * @typeParam Type String key specifying the event to extract
10188
10233
  */
10189
- declare type Payload_3<Type extends EventType_2> = Extract<Event_6, {
10190
- type: Type;
10191
- }>;
10234
+ declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
10192
10235
 
10193
10236
  /**
10194
10237
  * Extracts a single event type matching the given key from the Application {@link Event} union.
10195
10238
  *
10239
+ * @see {@link ByType}
10240
+ *
10196
10241
  * @typeParam Type String key specifying the event to extract
10197
10242
  */
10198
- declare type Payload_4<Type extends EventType_3> = Extract<Event_3, {
10199
- type: Type;
10200
- }>;
10243
+ declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
10201
10244
 
10202
10245
  /**
10203
10246
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
10204
10247
  *
10248
+ * @see {@link ByType}
10249
+ *
10205
10250
  * @typeParam Type String key specifying the event to extract
10206
10251
  */
10207
- declare type Payload_5<Type extends EventType_4> = Extract<Event_7, {
10208
- type: Type;
10209
- }>;
10252
+ declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
10210
10253
 
10211
10254
  /**
10212
10255
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
10213
10256
  *
10257
+ * @see {@link ByType}
10258
+ *
10214
10259
  * @typeParam Type String key specifying the event to extract
10215
10260
  */
10216
- declare type Payload_6<Type extends EventType_5> = Extract<Event_8, {
10217
- type: Type;
10218
- }>;
10261
+ declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
10219
10262
 
10220
10263
  /**
10221
10264
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
10222
10265
  *
10266
+ * @see {@link ByType}
10267
+ *
10223
10268
  * @typeParam Type String key specifying the event to extract
10224
10269
  */
10225
- declare type Payload_7<Type extends EventType_6> = Extract<Event_9, {
10226
- type: Type;
10227
- }>;
10270
+ declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
10228
10271
 
10229
10272
  /**
10230
10273
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
10231
10274
  *
10232
- * @typeParam Type String key specifying the event to extract
10233
- */
10234
- declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
10235
- type: Type;
10236
- }>;
10237
-
10238
- /**
10239
- * Extracts a single event type matching the given key from the System {@link Event} union.
10275
+ * @see {@link ByType}
10240
10276
  *
10241
10277
  * @typeParam Type String key specifying the event to extract
10242
10278
  */
10243
- declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
10244
- type: Type;
10245
- }>;
10279
+ declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
10246
10280
 
10247
10281
  declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
10248
10282
 
@@ -10936,7 +10970,7 @@ declare namespace PlatformEvents {
10936
10970
  PlatformEvent,
10937
10971
  EventType_7 as EventType,
10938
10972
  PlatformEventType,
10939
- Payload_8 as Payload,
10973
+ Payload_9 as Payload,
10940
10974
  ByType_7 as ByType
10941
10975
  }
10942
10976
  }
@@ -12655,6 +12689,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
12655
12689
  token: string;
12656
12690
  }
12657
12691
 
12692
+ /**
12693
+ * Generated when a View is removed from a layout.
12694
+ * @interface
12695
+ */
12696
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
12697
+ type: 'removed-from-layout';
12698
+ layoutIdentity: OpenFin.LayoutIdentity;
12699
+ };
12700
+
12658
12701
  /**
12659
12702
  * @interface
12660
12703
  */
@@ -13297,7 +13340,7 @@ declare type Snapshot = {
13297
13340
  * _Note_ - In the case of using a custom provider, if a window has a layout property but does not call _Layout.init_ this event may not fire.
13298
13341
  * @interface
13299
13342
  */
13300
- declare type SnapshotAppliedEvent = BaseEvent & {
13343
+ declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
13301
13344
  topic: 'application';
13302
13345
  type: 'platform-snapshot-applied';
13303
13346
  };
@@ -14909,7 +14952,7 @@ declare namespace SystemEvents {
14909
14952
  SystemEvent,
14910
14953
  EventType_8 as EventType,
14911
14954
  SystemEventType,
14912
- Payload_9 as Payload,
14955
+ Payload_10 as Payload,
14913
14956
  ByType_8 as ByType
14914
14957
  }
14915
14958
  }
@@ -15959,6 +16002,8 @@ declare namespace ViewEvents {
15959
16002
  BaseEvent_4 as BaseEvent,
15960
16003
  BaseViewEvent,
15961
16004
  TargetChangedEvent,
16005
+ AddedToLayoutEvent,
16006
+ RemovedFromLayoutEvent,
15962
16007
  NonPropagatedViewEvent,
15963
16008
  CreatedEvent,
15964
16009
  DestroyedEvent,
@@ -15975,7 +16020,7 @@ declare namespace ViewEvents {
15975
16020
  PropagatedViewEvent,
15976
16021
  PropagatedEventType_2 as PropagatedEventType,
15977
16022
  PropagatedViewEventType,
15978
- Payload_2 as Payload,
16023
+ Payload_3 as Payload,
15979
16024
  ByType
15980
16025
  }
15981
16026
  }
@@ -18454,7 +18499,7 @@ declare namespace WindowEvents {
18454
18499
  PropagatedEvent_3 as PropagatedEvent,
18455
18500
  PropagatedWindowEvent,
18456
18501
  PropagatedWindowEventType,
18457
- Payload_3 as Payload,
18502
+ Payload_4 as Payload,
18458
18503
  ByType_2 as ByType
18459
18504
  }
18460
18505
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "36.80.23",
3
+ "version": "36.80.26",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "private": false,