@openfin/node-adapter 36.80.23 → 36.80.25
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/README.md +1 -1
- package/out/node-adapter-alpha.d.ts +98 -53
- package/out/node-adapter-beta.d.ts +98 -53
- package/out/node-adapter-public.d.ts +98 -53
- package/out/node-adapter.d.ts +98 -53
- package/out/node-adapter.js +22 -3
- package/package.json +2 -2
@@ -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
|
-
|
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> =
|
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> =
|
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> =
|
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> =
|
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> =
|
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> =
|
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> =
|
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> =
|
2061
|
+
declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
|
2052
2062
|
|
2053
2063
|
/**
|
2054
2064
|
* Configuration for page capture.
|
@@ -3688,7 +3698,9 @@ declare type ConstWindowOptions = {
|
|
3688
3698
|
*/
|
3689
3699
|
preloadScripts: PreloadScript[];
|
3690
3700
|
/**
|
3691
|
-
* String tag that attempts to group like-tagged renderers together.
|
3701
|
+
* String tag that attempts to group like-tagged renderers together.
|
3702
|
+
* 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.
|
3703
|
+
* @remarks Will only be used if pages are on the same origin.
|
3692
3704
|
*/
|
3693
3705
|
processAffinity: string;
|
3694
3706
|
/**
|
@@ -4887,7 +4899,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
4887
4899
|
*/
|
4888
4900
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
4889
4901
|
target: OpenFin.Identity;
|
4890
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent;
|
4902
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
4891
4903
|
|
4892
4904
|
/**
|
4893
4905
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
@@ -4936,9 +4948,7 @@ declare class EventAggregator extends EmitterMap {
|
|
4936
4948
|
* @remarks Selects the correct type for the event
|
4937
4949
|
* payload from the provided union based on the provided string literal type.
|
4938
4950
|
*/
|
4939
|
-
declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload:
|
4940
|
-
type: EventType;
|
4941
|
-
}>, ...args: any[]) => void;
|
4951
|
+
declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
|
4942
4952
|
|
4943
4953
|
declare namespace Events {
|
4944
4954
|
export {
|
@@ -5069,7 +5079,7 @@ declare namespace ExternalApplicationEvents {
|
|
5069
5079
|
ExternalApplicationEvent,
|
5070
5080
|
EventType_4 as EventType,
|
5071
5081
|
ExternalApplicationEventType,
|
5072
|
-
|
5082
|
+
Payload_6 as Payload,
|
5073
5083
|
ByType_4 as ByType
|
5074
5084
|
}
|
5075
5085
|
}
|
@@ -5519,7 +5529,7 @@ declare namespace FrameEvents {
|
|
5519
5529
|
FrameEvent,
|
5520
5530
|
EventType_5 as EventType,
|
5521
5531
|
FrameEventType,
|
5522
|
-
|
5532
|
+
Payload_7 as Payload,
|
5523
5533
|
ByType_5 as ByType
|
5524
5534
|
}
|
5525
5535
|
}
|
@@ -5761,7 +5771,7 @@ declare namespace GlobalHotkeyEvents {
|
|
5761
5771
|
GlobalHotkeyEvent,
|
5762
5772
|
EventType_6 as EventType,
|
5763
5773
|
GlobalHotkeyEventType,
|
5764
|
-
|
5774
|
+
Payload_8 as Payload,
|
5765
5775
|
ByType_6 as ByType
|
5766
5776
|
}
|
5767
5777
|
}
|
@@ -9539,76 +9549,100 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
|
|
9539
9549
|
};
|
9540
9550
|
|
9541
9551
|
/**
|
9542
|
-
* Extracts a single event type matching the given key from the
|
9552
|
+
* Extracts a single event type matching the given key from the System {@link Event} union.
|
9553
|
+
*
|
9554
|
+
* @see {@link ByType}
|
9543
9555
|
*
|
9544
9556
|
* @typeParam Type String key specifying the event to extract
|
9545
9557
|
*/
|
9546
|
-
declare type
|
9547
|
-
|
9558
|
+
declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
|
9559
|
+
|
9560
|
+
/**
|
9561
|
+
* Extracts a single event type matching the given type key from the provided EmitterEvent union.
|
9562
|
+
*
|
9563
|
+
* @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
|
9564
|
+
* the appropriate payload union for that namespace.
|
9565
|
+
*
|
9566
|
+
* @typeParam Event Union of payloads for events on the given emitter
|
9567
|
+
* @see {@link ByType}
|
9568
|
+
*
|
9569
|
+
* @typeParam Type String key specifying the event to extract from the union
|
9570
|
+
*
|
9571
|
+
* @see {@link OpenFin.Events.ApplicationEvents.Payload}
|
9572
|
+
* @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
|
9573
|
+
* @see {@link OpenFin.Events.FrameEvents.Payload}
|
9574
|
+
* @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
|
9575
|
+
* @see {@link OpenFin.Events.PlatformEvents.Payload}
|
9576
|
+
* @see {@link OpenFin.Events.SystemEvents.Payload}
|
9577
|
+
* @see {@link OpenFin.Events.ViewEvents.Payload}
|
9578
|
+
* @see {@link OpenFin.Events.WindowEvents.Payload}
|
9579
|
+
*/
|
9580
|
+
declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
|
9581
|
+
type: EventType;
|
9548
9582
|
}>;
|
9549
9583
|
|
9584
|
+
/**
|
9585
|
+
* Extracts a single event type matching the given key from the View {@link Event} union.
|
9586
|
+
*
|
9587
|
+
* @see {@link ByType}
|
9588
|
+
*
|
9589
|
+
* @typeParam Type String key specifying the event to extract
|
9590
|
+
*/
|
9591
|
+
declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
|
9592
|
+
|
9550
9593
|
/**
|
9551
9594
|
* Extracts a single event type matching the given key from the Window {@link Event} union.
|
9552
9595
|
*
|
9596
|
+
* @see {@link ByType}
|
9597
|
+
*
|
9553
9598
|
* @typeParam Type String key specifying the event to extract
|
9554
9599
|
*/
|
9555
|
-
declare type
|
9556
|
-
type: Type;
|
9557
|
-
}>;
|
9600
|
+
declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
|
9558
9601
|
|
9559
9602
|
/**
|
9560
9603
|
* Extracts a single event type matching the given key from the Application {@link Event} union.
|
9561
9604
|
*
|
9605
|
+
* @see {@link ByType}
|
9606
|
+
*
|
9562
9607
|
* @typeParam Type String key specifying the event to extract
|
9563
9608
|
*/
|
9564
|
-
declare type
|
9565
|
-
type: Type;
|
9566
|
-
}>;
|
9609
|
+
declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
|
9567
9610
|
|
9568
9611
|
/**
|
9569
9612
|
* Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
|
9570
9613
|
*
|
9614
|
+
* @see {@link ByType}
|
9615
|
+
*
|
9571
9616
|
* @typeParam Type String key specifying the event to extract
|
9572
9617
|
*/
|
9573
|
-
declare type
|
9574
|
-
type: Type;
|
9575
|
-
}>;
|
9618
|
+
declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
|
9576
9619
|
|
9577
9620
|
/**
|
9578
9621
|
* Extracts a single event type matching the given key from the Frame {@link Event} union.
|
9579
9622
|
*
|
9623
|
+
* @see {@link ByType}
|
9624
|
+
*
|
9580
9625
|
* @typeParam Type String key specifying the event to extract
|
9581
9626
|
*/
|
9582
|
-
declare type
|
9583
|
-
type: Type;
|
9584
|
-
}>;
|
9627
|
+
declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
|
9585
9628
|
|
9586
9629
|
/**
|
9587
9630
|
* Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
|
9588
9631
|
*
|
9632
|
+
* @see {@link ByType}
|
9633
|
+
*
|
9589
9634
|
* @typeParam Type String key specifying the event to extract
|
9590
9635
|
*/
|
9591
|
-
declare type
|
9592
|
-
type: Type;
|
9593
|
-
}>;
|
9636
|
+
declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
|
9594
9637
|
|
9595
9638
|
/**
|
9596
9639
|
* Extracts a single event type matching the given key from the Platform {@link Event} union.
|
9597
9640
|
*
|
9598
|
-
* @
|
9599
|
-
*/
|
9600
|
-
declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
|
9601
|
-
type: Type;
|
9602
|
-
}>;
|
9603
|
-
|
9604
|
-
/**
|
9605
|
-
* Extracts a single event type matching the given key from the System {@link Event} union.
|
9641
|
+
* @see {@link ByType}
|
9606
9642
|
*
|
9607
9643
|
* @typeParam Type String key specifying the event to extract
|
9608
9644
|
*/
|
9609
|
-
declare type Payload_9<Type extends
|
9610
|
-
type: Type;
|
9611
|
-
}>;
|
9645
|
+
declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
|
9612
9646
|
|
9613
9647
|
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
9614
9648
|
|
@@ -10272,7 +10306,7 @@ declare namespace PlatformEvents {
|
|
10272
10306
|
PlatformEvent,
|
10273
10307
|
EventType_7 as EventType,
|
10274
10308
|
PlatformEventType,
|
10275
|
-
|
10309
|
+
Payload_9 as Payload,
|
10276
10310
|
ByType_7 as ByType
|
10277
10311
|
}
|
10278
10312
|
}
|
@@ -11943,6 +11977,15 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
11943
11977
|
token: string;
|
11944
11978
|
}
|
11945
11979
|
|
11980
|
+
/**
|
11981
|
+
* Generated when a View is removed from a layout.
|
11982
|
+
* @interface
|
11983
|
+
*/
|
11984
|
+
declare type RemovedFromLayoutEvent = BaseEvent_4 & {
|
11985
|
+
type: 'removed-from-layout';
|
11986
|
+
layoutIdentity: OpenFin.LayoutIdentity;
|
11987
|
+
};
|
11988
|
+
|
11946
11989
|
/**
|
11947
11990
|
* @interface
|
11948
11991
|
*/
|
@@ -12585,7 +12628,7 @@ declare type Snapshot = {
|
|
12585
12628
|
* _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.
|
12586
12629
|
* @interface
|
12587
12630
|
*/
|
12588
|
-
declare type SnapshotAppliedEvent = BaseEvent & {
|
12631
|
+
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
12589
12632
|
topic: 'application';
|
12590
12633
|
type: 'platform-snapshot-applied';
|
12591
12634
|
};
|
@@ -14191,7 +14234,7 @@ declare namespace SystemEvents {
|
|
14191
14234
|
SystemEvent,
|
14192
14235
|
EventType_8 as EventType,
|
14193
14236
|
SystemEventType,
|
14194
|
-
|
14237
|
+
Payload_10 as Payload,
|
14195
14238
|
ByType_8 as ByType
|
14196
14239
|
}
|
14197
14240
|
}
|
@@ -15197,6 +15240,8 @@ declare namespace ViewEvents {
|
|
15197
15240
|
BaseEvent_4 as BaseEvent,
|
15198
15241
|
BaseViewEvent,
|
15199
15242
|
TargetChangedEvent,
|
15243
|
+
AddedToLayoutEvent,
|
15244
|
+
RemovedFromLayoutEvent,
|
15200
15245
|
NonPropagatedViewEvent,
|
15201
15246
|
CreatedEvent,
|
15202
15247
|
DestroyedEvent,
|
@@ -15213,7 +15258,7 @@ declare namespace ViewEvents {
|
|
15213
15258
|
PropagatedViewEvent,
|
15214
15259
|
PropagatedEventType_2 as PropagatedEventType,
|
15215
15260
|
PropagatedViewEventType,
|
15216
|
-
|
15261
|
+
Payload_3 as Payload,
|
15217
15262
|
ByType
|
15218
15263
|
}
|
15219
15264
|
}
|
@@ -17689,7 +17734,7 @@ declare namespace WindowEvents {
|
|
17689
17734
|
PropagatedEvent_3 as PropagatedEvent,
|
17690
17735
|
PropagatedWindowEvent,
|
17691
17736
|
PropagatedWindowEventType,
|
17692
|
-
|
17737
|
+
Payload_4 as Payload,
|
17693
17738
|
ByType_2 as ByType
|
17694
17739
|
}
|
17695
17740
|
}
|