@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.
@@ -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
  };
@@ -936,7 +945,7 @@ declare namespace ApplicationEvents {
936
945
  PropagatedApplicationEvent,
937
946
  PropagatedEventType_3 as PropagatedEventType,
938
947
  PropagatedApplicationEventType,
939
- Payload_4 as Payload,
948
+ Payload_5 as Payload,
940
949
  ByType_3 as ByType
941
950
  }
942
951
  }
@@ -1775,7 +1784,7 @@ declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
1775
1784
  * A base Channel event.
1776
1785
  * @interface
1777
1786
  */
1778
- declare type BaseEvent_2 = NamedEvent & {
1787
+ declare type BaseEvent_2 = BaseEvents.NamedEvent & {
1779
1788
  channelName: string;
1780
1789
  channelId: string;
1781
1790
  };
@@ -1845,6 +1854,7 @@ declare namespace BaseEvents {
1845
1854
  NotCloseRequested,
1846
1855
  PropagatedEventType,
1847
1856
  PropagatedEvent,
1857
+ Payload_2 as Payload,
1848
1858
  EventHandler,
1849
1859
  BaseEvent,
1850
1860
  IdentityEvent,
@@ -1985,7 +1995,7 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1985
1995
  *
1986
1996
  * @typeParam Type String key specifying the event to extract
1987
1997
  */
1988
- declare type ByType<Type extends EventType> = Payload_2<Type>;
1998
+ declare type ByType<Type extends EventType> = Payload_3<Type>;
1989
1999
 
1990
2000
  /**
1991
2001
  * Extracts a single event type matching the given key from the Window {@link Event} union.
@@ -1994,7 +2004,7 @@ declare type ByType<Type extends EventType> = Payload_2<Type>;
1994
2004
  *
1995
2005
  * @typeParam Type String key specifying the event to extract
1996
2006
  */
1997
- declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
2007
+ declare type ByType_2<Type extends EventType_2> = Payload_4<Type>;
1998
2008
 
1999
2009
  /**
2000
2010
  * Extracts a single event type matching the given key from the Application {@link Event} union.
@@ -2003,7 +2013,7 @@ declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
2003
2013
  *
2004
2014
  * @typeParam Type String key specifying the event to extract
2005
2015
  */
2006
- declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
2016
+ declare type ByType_3<Type extends EventType_3> = Payload_5<Type>;
2007
2017
 
2008
2018
  /**
2009
2019
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
@@ -2012,7 +2022,7 @@ declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
2012
2022
  *
2013
2023
  * @typeParam Type String key specifying the event to extract
2014
2024
  */
2015
- declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
2025
+ declare type ByType_4<Type extends EventType_4> = Payload_6<Type>;
2016
2026
 
2017
2027
  /**
2018
2028
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
@@ -2021,7 +2031,7 @@ declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
2021
2031
  *
2022
2032
  * @typeParam Type String key specifying the event to extract
2023
2033
  */
2024
- declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
2034
+ declare type ByType_5<Type extends EventType_5> = Payload_7<Type>;
2025
2035
 
2026
2036
  /**
2027
2037
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
@@ -2030,7 +2040,7 @@ declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
2030
2040
  *
2031
2041
  * @typeParam Type String key specifying the event to extract
2032
2042
  */
2033
- declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
2043
+ declare type ByType_6<Type extends EventType_6> = Payload_8<Type>;
2034
2044
 
2035
2045
  /**
2036
2046
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
@@ -2039,7 +2049,7 @@ declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
2039
2049
  *
2040
2050
  * @typeParam Type String key specifying the event to extract
2041
2051
  */
2042
- declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
2052
+ declare type ByType_7<Type extends EventType_7> = Payload_9<Type>;
2043
2053
 
2044
2054
  /**
2045
2055
  * Extracts a single event type matching the given key from the System {@link Event} union.
@@ -2048,7 +2058,7 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
2048
2058
  *
2049
2059
  * @typeParam Type String key specifying the event to extract
2050
2060
  */
2051
- declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
2061
+ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
2052
2062
 
2053
2063
  /**
2054
2064
  * Configuration for page capture.
@@ -3684,7 +3694,9 @@ declare type ConstWindowOptions = {
3684
3694
  */
3685
3695
  preloadScripts: PreloadScript[];
3686
3696
  /**
3687
- * String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
3697
+ * String tag that attempts to group like-tagged renderers together.
3698
+ * 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.
3699
+ * @remarks Will only be used if pages are on the same origin.
3688
3700
  */
3689
3701
  processAffinity: string;
3690
3702
  /**
@@ -4883,7 +4895,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4883
4895
  */
4884
4896
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4885
4897
  target: OpenFin.Identity;
4886
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4898
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4887
4899
 
4888
4900
  /**
4889
4901
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -4932,9 +4944,7 @@ declare class EventAggregator extends EmitterMap {
4932
4944
  * @remarks Selects the correct type for the event
4933
4945
  * payload from the provided union based on the provided string literal type.
4934
4946
  */
4935
- declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
4936
- type: EventType;
4937
- }>, ...args: any[]) => void;
4947
+ declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
4938
4948
 
4939
4949
  declare namespace Events {
4940
4950
  export {
@@ -5065,7 +5075,7 @@ declare namespace ExternalApplicationEvents {
5065
5075
  ExternalApplicationEvent,
5066
5076
  EventType_4 as EventType,
5067
5077
  ExternalApplicationEventType,
5068
- Payload_5 as Payload,
5078
+ Payload_6 as Payload,
5069
5079
  ByType_4 as ByType
5070
5080
  }
5071
5081
  }
@@ -5845,7 +5855,7 @@ declare namespace FrameEvents {
5845
5855
  FrameEvent,
5846
5856
  EventType_5 as EventType,
5847
5857
  FrameEventType,
5848
- Payload_6 as Payload,
5858
+ Payload_7 as Payload,
5849
5859
  ByType_5 as ByType
5850
5860
  }
5851
5861
  }
@@ -6087,7 +6097,7 @@ declare namespace GlobalHotkeyEvents {
6087
6097
  GlobalHotkeyEvent,
6088
6098
  EventType_6 as EventType,
6089
6099
  GlobalHotkeyEventType,
6090
- Payload_7 as Payload,
6100
+ Payload_8 as Payload,
6091
6101
  ByType_6 as ByType
6092
6102
  }
6093
6103
  }
@@ -9862,76 +9872,100 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
9862
9872
  };
9863
9873
 
9864
9874
  /**
9865
- * Extracts a single event type matching the given key from the View {@link Event} union.
9875
+ * Extracts a single event type matching the given key from the System {@link Event} union.
9876
+ *
9877
+ * @see {@link ByType}
9866
9878
  *
9867
9879
  * @typeParam Type String key specifying the event to extract
9868
9880
  */
9869
- declare type Payload_2<Type extends EventType> = Extract<Event_4, {
9870
- type: Type;
9881
+ declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
9882
+
9883
+ /**
9884
+ * Extracts a single event type matching the given type key from the provided EmitterEvent union.
9885
+ *
9886
+ * @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
9887
+ * the appropriate payload union for that namespace.
9888
+ *
9889
+ * @typeParam Event Union of payloads for events on the given emitter
9890
+ * @see {@link ByType}
9891
+ *
9892
+ * @typeParam Type String key specifying the event to extract from the union
9893
+ *
9894
+ * @see {@link OpenFin.Events.ApplicationEvents.Payload}
9895
+ * @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
9896
+ * @see {@link OpenFin.Events.FrameEvents.Payload}
9897
+ * @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
9898
+ * @see {@link OpenFin.Events.PlatformEvents.Payload}
9899
+ * @see {@link OpenFin.Events.SystemEvents.Payload}
9900
+ * @see {@link OpenFin.Events.ViewEvents.Payload}
9901
+ * @see {@link OpenFin.Events.WindowEvents.Payload}
9902
+ */
9903
+ declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
9904
+ type: EventType;
9871
9905
  }>;
9872
9906
 
9907
+ /**
9908
+ * Extracts a single event type matching the given key from the View {@link Event} union.
9909
+ *
9910
+ * @see {@link ByType}
9911
+ *
9912
+ * @typeParam Type String key specifying the event to extract
9913
+ */
9914
+ declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
9915
+
9873
9916
  /**
9874
9917
  * Extracts a single event type matching the given key from the Window {@link Event} union.
9875
9918
  *
9919
+ * @see {@link ByType}
9920
+ *
9876
9921
  * @typeParam Type String key specifying the event to extract
9877
9922
  */
9878
- declare type Payload_3<Type extends EventType_2> = Extract<Event_6, {
9879
- type: Type;
9880
- }>;
9923
+ declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
9881
9924
 
9882
9925
  /**
9883
9926
  * Extracts a single event type matching the given key from the Application {@link Event} union.
9884
9927
  *
9928
+ * @see {@link ByType}
9929
+ *
9885
9930
  * @typeParam Type String key specifying the event to extract
9886
9931
  */
9887
- declare type Payload_4<Type extends EventType_3> = Extract<Event_3, {
9888
- type: Type;
9889
- }>;
9932
+ declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
9890
9933
 
9891
9934
  /**
9892
9935
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
9893
9936
  *
9937
+ * @see {@link ByType}
9938
+ *
9894
9939
  * @typeParam Type String key specifying the event to extract
9895
9940
  */
9896
- declare type Payload_5<Type extends EventType_4> = Extract<Event_7, {
9897
- type: Type;
9898
- }>;
9941
+ declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
9899
9942
 
9900
9943
  /**
9901
9944
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
9902
9945
  *
9946
+ * @see {@link ByType}
9947
+ *
9903
9948
  * @typeParam Type String key specifying the event to extract
9904
9949
  */
9905
- declare type Payload_6<Type extends EventType_5> = Extract<Event_8, {
9906
- type: Type;
9907
- }>;
9950
+ declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
9908
9951
 
9909
9952
  /**
9910
9953
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
9911
9954
  *
9955
+ * @see {@link ByType}
9956
+ *
9912
9957
  * @typeParam Type String key specifying the event to extract
9913
9958
  */
9914
- declare type Payload_7<Type extends EventType_6> = Extract<Event_9, {
9915
- type: Type;
9916
- }>;
9959
+ declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
9917
9960
 
9918
9961
  /**
9919
9962
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
9920
9963
  *
9921
- * @typeParam Type String key specifying the event to extract
9922
- */
9923
- declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
9924
- type: Type;
9925
- }>;
9926
-
9927
- /**
9928
- * Extracts a single event type matching the given key from the System {@link Event} union.
9964
+ * @see {@link ByType}
9929
9965
  *
9930
9966
  * @typeParam Type String key specifying the event to extract
9931
9967
  */
9932
- declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
9933
- type: Type;
9934
- }>;
9968
+ declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
9935
9969
 
9936
9970
  declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
9937
9971
 
@@ -10595,7 +10629,7 @@ declare namespace PlatformEvents {
10595
10629
  PlatformEvent,
10596
10630
  EventType_7 as EventType,
10597
10631
  PlatformEventType,
10598
- Payload_8 as Payload,
10632
+ Payload_9 as Payload,
10599
10633
  ByType_7 as ByType
10600
10634
  }
10601
10635
  }
@@ -12266,6 +12300,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
12266
12300
  token: string;
12267
12301
  }
12268
12302
 
12303
+ /**
12304
+ * Generated when a View is removed from a layout.
12305
+ * @interface
12306
+ */
12307
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
12308
+ type: 'removed-from-layout';
12309
+ layoutIdentity: OpenFin.LayoutIdentity;
12310
+ };
12311
+
12269
12312
  /**
12270
12313
  * @interface
12271
12314
  */
@@ -12908,7 +12951,7 @@ declare type Snapshot = {
12908
12951
  * _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.
12909
12952
  * @interface
12910
12953
  */
12911
- declare type SnapshotAppliedEvent = BaseEvent & {
12954
+ declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
12912
12955
  topic: 'application';
12913
12956
  type: 'platform-snapshot-applied';
12914
12957
  };
@@ -14514,7 +14557,7 @@ declare namespace SystemEvents {
14514
14557
  SystemEvent,
14515
14558
  EventType_8 as EventType,
14516
14559
  SystemEventType,
14517
- Payload_9 as Payload,
14560
+ Payload_10 as Payload,
14518
14561
  ByType_8 as ByType
14519
14562
  }
14520
14563
  }
@@ -15520,6 +15563,8 @@ declare namespace ViewEvents {
15520
15563
  BaseEvent_4 as BaseEvent,
15521
15564
  BaseViewEvent,
15522
15565
  TargetChangedEvent,
15566
+ AddedToLayoutEvent,
15567
+ RemovedFromLayoutEvent,
15523
15568
  NonPropagatedViewEvent,
15524
15569
  CreatedEvent,
15525
15570
  DestroyedEvent,
@@ -15536,7 +15581,7 @@ declare namespace ViewEvents {
15536
15581
  PropagatedViewEvent,
15537
15582
  PropagatedEventType_2 as PropagatedEventType,
15538
15583
  PropagatedViewEventType,
15539
- Payload_2 as Payload,
15584
+ Payload_3 as Payload,
15540
15585
  ByType
15541
15586
  }
15542
15587
  }
@@ -18012,7 +18057,7 @@ declare namespace WindowEvents {
18012
18057
  PropagatedEvent_3 as PropagatedEvent,
18013
18058
  PropagatedWindowEvent,
18014
18059
  PropagatedWindowEventType,
18015
- Payload_3 as Payload,
18060
+ Payload_4 as Payload,
18016
18061
  ByType_2 as ByType
18017
18062
  }
18018
18063
  }