@openfin/remote-adapter 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.
@@ -3708,7 +3718,9 @@ declare type ConstWindowOptions = {
3708
3718
  */
3709
3719
  preloadScripts: PreloadScript[];
3710
3720
  /**
3711
- * String tag that attempts to group like-tagged renderers together. Will only be used if pages are on the same origin.
3721
+ * String tag that attempts to group like-tagged renderers together.
3722
+ * 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.
3723
+ * @remarks Will only be used if pages are on the same origin.
3712
3724
  */
3713
3725
  processAffinity: string;
3714
3726
  /**
@@ -4907,7 +4919,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
4907
4919
  */
4908
4920
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
4909
4921
  target: OpenFin.Identity;
4910
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
4922
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
4911
4923
 
4912
4924
  /**
4913
4925
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -4956,9 +4968,7 @@ declare class EventAggregator extends EmitterMap {
4956
4968
  * @remarks Selects the correct type for the event
4957
4969
  * payload from the provided union based on the provided string literal type.
4958
4970
  */
4959
- declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
4960
- type: EventType;
4961
- }>, ...args: any[]) => void;
4971
+ declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
4962
4972
 
4963
4973
  declare namespace Events {
4964
4974
  export {
@@ -5089,7 +5099,7 @@ declare namespace ExternalApplicationEvents {
5089
5099
  ExternalApplicationEvent,
5090
5100
  EventType_4 as EventType,
5091
5101
  ExternalApplicationEventType,
5092
- Payload_5 as Payload,
5102
+ Payload_6 as Payload,
5093
5103
  ByType_4 as ByType
5094
5104
  }
5095
5105
  }
@@ -5533,7 +5543,7 @@ declare namespace FrameEvents {
5533
5543
  FrameEvent,
5534
5544
  EventType_5 as EventType,
5535
5545
  FrameEventType,
5536
- Payload_6 as Payload,
5546
+ Payload_7 as Payload,
5537
5547
  ByType_5 as ByType
5538
5548
  }
5539
5549
  }
@@ -5775,7 +5785,7 @@ declare namespace GlobalHotkeyEvents {
5775
5785
  GlobalHotkeyEvent,
5776
5786
  EventType_6 as EventType,
5777
5787
  GlobalHotkeyEventType,
5778
- Payload_7 as Payload,
5788
+ Payload_8 as Payload,
5779
5789
  ByType_6 as ByType
5780
5790
  }
5781
5791
  }
@@ -9571,76 +9581,100 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
9571
9581
  };
9572
9582
 
9573
9583
  /**
9574
- * Extracts a single event type matching the given key from the View {@link Event} union.
9584
+ * Extracts a single event type matching the given key from the System {@link Event} union.
9585
+ *
9586
+ * @see {@link ByType}
9575
9587
  *
9576
9588
  * @typeParam Type String key specifying the event to extract
9577
9589
  */
9578
- declare type Payload_2<Type extends EventType> = Extract<Event_4, {
9579
- type: Type;
9590
+ declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
9591
+
9592
+ /**
9593
+ * Extracts a single event type matching the given type key from the provided EmitterEvent union.
9594
+ *
9595
+ * @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
9596
+ * the appropriate payload union for that namespace.
9597
+ *
9598
+ * @typeParam Event Union of payloads for events on the given emitter
9599
+ * @see {@link ByType}
9600
+ *
9601
+ * @typeParam Type String key specifying the event to extract from the union
9602
+ *
9603
+ * @see {@link OpenFin.Events.ApplicationEvents.Payload}
9604
+ * @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
9605
+ * @see {@link OpenFin.Events.FrameEvents.Payload}
9606
+ * @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
9607
+ * @see {@link OpenFin.Events.PlatformEvents.Payload}
9608
+ * @see {@link OpenFin.Events.SystemEvents.Payload}
9609
+ * @see {@link OpenFin.Events.ViewEvents.Payload}
9610
+ * @see {@link OpenFin.Events.WindowEvents.Payload}
9611
+ */
9612
+ declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
9613
+ type: EventType;
9580
9614
  }>;
9581
9615
 
9616
+ /**
9617
+ * Extracts a single event type matching the given key from the View {@link Event} union.
9618
+ *
9619
+ * @see {@link ByType}
9620
+ *
9621
+ * @typeParam Type String key specifying the event to extract
9622
+ */
9623
+ declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
9624
+
9582
9625
  /**
9583
9626
  * Extracts a single event type matching the given key from the Window {@link Event} union.
9584
9627
  *
9628
+ * @see {@link ByType}
9629
+ *
9585
9630
  * @typeParam Type String key specifying the event to extract
9586
9631
  */
9587
- declare type Payload_3<Type extends EventType_2> = Extract<Event_6, {
9588
- type: Type;
9589
- }>;
9632
+ declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
9590
9633
 
9591
9634
  /**
9592
9635
  * Extracts a single event type matching the given key from the Application {@link Event} union.
9593
9636
  *
9637
+ * @see {@link ByType}
9638
+ *
9594
9639
  * @typeParam Type String key specifying the event to extract
9595
9640
  */
9596
- declare type Payload_4<Type extends EventType_3> = Extract<Event_3, {
9597
- type: Type;
9598
- }>;
9641
+ declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
9599
9642
 
9600
9643
  /**
9601
9644
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
9602
9645
  *
9646
+ * @see {@link ByType}
9647
+ *
9603
9648
  * @typeParam Type String key specifying the event to extract
9604
9649
  */
9605
- declare type Payload_5<Type extends EventType_4> = Extract<Event_7, {
9606
- type: Type;
9607
- }>;
9650
+ declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
9608
9651
 
9609
9652
  /**
9610
9653
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
9611
9654
  *
9655
+ * @see {@link ByType}
9656
+ *
9612
9657
  * @typeParam Type String key specifying the event to extract
9613
9658
  */
9614
- declare type Payload_6<Type extends EventType_5> = Extract<Event_8, {
9615
- type: Type;
9616
- }>;
9659
+ declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
9617
9660
 
9618
9661
  /**
9619
9662
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
9620
9663
  *
9664
+ * @see {@link ByType}
9665
+ *
9621
9666
  * @typeParam Type String key specifying the event to extract
9622
9667
  */
9623
- declare type Payload_7<Type extends EventType_6> = Extract<Event_9, {
9624
- type: Type;
9625
- }>;
9668
+ declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
9626
9669
 
9627
9670
  /**
9628
9671
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
9629
9672
  *
9630
- * @typeParam Type String key specifying the event to extract
9631
- */
9632
- declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
9633
- type: Type;
9634
- }>;
9635
-
9636
- /**
9637
- * Extracts a single event type matching the given key from the System {@link Event} union.
9673
+ * @see {@link ByType}
9638
9674
  *
9639
9675
  * @typeParam Type String key specifying the event to extract
9640
9676
  */
9641
- declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
9642
- type: Type;
9643
- }>;
9677
+ declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
9644
9678
 
9645
9679
  declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
9646
9680
 
@@ -10304,7 +10338,7 @@ declare namespace PlatformEvents {
10304
10338
  PlatformEvent,
10305
10339
  EventType_7 as EventType,
10306
10340
  PlatformEventType,
10307
- Payload_8 as Payload,
10341
+ Payload_9 as Payload,
10308
10342
  ByType_7 as ByType
10309
10343
  }
10310
10344
  }
@@ -11975,6 +12009,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
11975
12009
  token: string;
11976
12010
  }
11977
12011
 
12012
+ /**
12013
+ * Generated when a View is removed from a layout.
12014
+ * @interface
12015
+ */
12016
+ declare type RemovedFromLayoutEvent = BaseEvent_4 & {
12017
+ type: 'removed-from-layout';
12018
+ layoutIdentity: OpenFin.LayoutIdentity;
12019
+ };
12020
+
11978
12021
  /**
11979
12022
  * @interface
11980
12023
  */
@@ -12617,7 +12660,7 @@ declare type Snapshot = {
12617
12660
  * _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.
12618
12661
  * @interface
12619
12662
  */
12620
- declare type SnapshotAppliedEvent = BaseEvent & {
12663
+ declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
12621
12664
  topic: 'application';
12622
12665
  type: 'platform-snapshot-applied';
12623
12666
  };
@@ -14223,7 +14266,7 @@ declare namespace SystemEvents {
14223
14266
  SystemEvent,
14224
14267
  EventType_8 as EventType,
14225
14268
  SystemEventType,
14226
- Payload_9 as Payload,
14269
+ Payload_10 as Payload,
14227
14270
  ByType_8 as ByType
14228
14271
  }
14229
14272
  }
@@ -15229,6 +15272,8 @@ declare namespace ViewEvents {
15229
15272
  BaseEvent_4 as BaseEvent,
15230
15273
  BaseViewEvent,
15231
15274
  TargetChangedEvent,
15275
+ AddedToLayoutEvent,
15276
+ RemovedFromLayoutEvent,
15232
15277
  NonPropagatedViewEvent,
15233
15278
  CreatedEvent,
15234
15279
  DestroyedEvent,
@@ -15245,7 +15290,7 @@ declare namespace ViewEvents {
15245
15290
  PropagatedViewEvent,
15246
15291
  PropagatedEventType_2 as PropagatedEventType,
15247
15292
  PropagatedViewEventType,
15248
- Payload_2 as Payload,
15293
+ Payload_3 as Payload,
15249
15294
  ByType
15250
15295
  }
15251
15296
  }
@@ -17721,7 +17766,7 @@ declare namespace WindowEvents {
17721
17766
  PropagatedEvent_3 as PropagatedEvent,
17722
17767
  PropagatedWindowEvent,
17723
17768
  PropagatedWindowEventType,
17724
- Payload_3 as Payload,
17769
+ Payload_4 as Payload,
17725
17770
  ByType_2 as ByType
17726
17771
  }
17727
17772
  }