@openfin/core 39.82.12 → 40.82.1

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/mock.d.ts CHANGED
@@ -102,7 +102,7 @@ declare type ApiInjection = DomainApiSettings;
102
102
  * Generated when a new Platform's API becomes responsive.
103
103
  * @interface
104
104
  */
105
- declare type ApiReadyEvent = BaseEvent & {
105
+ declare type ApiReadyEvent = BaseEvents.BaseEvent & {
106
106
  topic: 'application';
107
107
  type: 'platform-api-ready';
108
108
  };
@@ -920,7 +920,7 @@ declare namespace ApplicationEvents {
920
920
  PropagatedApplicationEvent,
921
921
  PropagatedEventType_3 as PropagatedEventType,
922
922
  PropagatedApplicationEventType,
923
- Payload_4 as Payload,
923
+ Payload_5 as Payload,
924
924
  ByType_3 as ByType
925
925
  }
926
926
  }
@@ -1739,7 +1739,7 @@ declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
1739
1739
  * A base Channel event.
1740
1740
  * @interface
1741
1741
  */
1742
- declare type BaseEvent_2 = NamedEvent & {
1742
+ declare type BaseEvent_2 = BaseEvents.NamedEvent & {
1743
1743
  channelName: string;
1744
1744
  channelId: string;
1745
1745
  };
@@ -1809,6 +1809,7 @@ declare namespace BaseEvents {
1809
1809
  NotCloseRequested,
1810
1810
  PropagatedEventType,
1811
1811
  PropagatedEvent,
1812
+ Payload_2 as Payload,
1812
1813
  EventHandler,
1813
1814
  BaseEvent,
1814
1815
  IdentityEvent,
@@ -1949,7 +1950,7 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1949
1950
  *
1950
1951
  * @typeParam Type String key specifying the event to extract
1951
1952
  */
1952
- declare type ByType<Type extends EventType> = Payload_2<Type>;
1953
+ declare type ByType<Type extends EventType> = Payload_3<Type>;
1953
1954
 
1954
1955
  /**
1955
1956
  * Extracts a single event type matching the given key from the Window {@link Event} union.
@@ -1958,7 +1959,7 @@ declare type ByType<Type extends EventType> = Payload_2<Type>;
1958
1959
  *
1959
1960
  * @typeParam Type String key specifying the event to extract
1960
1961
  */
1961
- declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
1962
+ declare type ByType_2<Type extends EventType_2> = Payload_4<Type>;
1962
1963
 
1963
1964
  /**
1964
1965
  * Extracts a single event type matching the given key from the Application {@link Event} union.
@@ -1967,7 +1968,7 @@ declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
1967
1968
  *
1968
1969
  * @typeParam Type String key specifying the event to extract
1969
1970
  */
1970
- declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
1971
+ declare type ByType_3<Type extends EventType_3> = Payload_5<Type>;
1971
1972
 
1972
1973
  /**
1973
1974
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
@@ -1976,7 +1977,7 @@ declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
1976
1977
  *
1977
1978
  * @typeParam Type String key specifying the event to extract
1978
1979
  */
1979
- declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
1980
+ declare type ByType_4<Type extends EventType_4> = Payload_6<Type>;
1980
1981
 
1981
1982
  /**
1982
1983
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
@@ -1985,7 +1986,7 @@ declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
1985
1986
  *
1986
1987
  * @typeParam Type String key specifying the event to extract
1987
1988
  */
1988
- declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
1989
+ declare type ByType_5<Type extends EventType_5> = Payload_7<Type>;
1989
1990
 
1990
1991
  /**
1991
1992
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
@@ -1994,7 +1995,7 @@ declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
1994
1995
  *
1995
1996
  * @typeParam Type String key specifying the event to extract
1996
1997
  */
1997
- declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
1998
+ declare type ByType_6<Type extends EventType_6> = Payload_8<Type>;
1998
1999
 
1999
2000
  /**
2000
2001
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
@@ -2003,7 +2004,7 @@ declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
2003
2004
  *
2004
2005
  * @typeParam Type String key specifying the event to extract
2005
2006
  */
2006
- declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
2007
+ declare type ByType_7<Type extends EventType_7> = Payload_9<Type>;
2007
2008
 
2008
2009
  /**
2009
2010
  * Extracts a single event type matching the given key from the System {@link Event} union.
@@ -2012,7 +2013,7 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
2012
2013
  *
2013
2014
  * @typeParam Type String key specifying the event to extract
2014
2015
  */
2015
- declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
2016
+ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
2016
2017
 
2017
2018
  /**
2018
2019
  * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
@@ -2021,7 +2022,7 @@ declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
2021
2022
  *
2022
2023
  * @typeParam Type String key specifying the event to extract
2023
2024
  */
2024
- declare type ByType_9<Type extends EventType_9> = Payload_10<Type>;
2025
+ declare type ByType_9<Type extends EventType_9> = Payload_11<Type>;
2025
2026
 
2026
2027
  /**
2027
2028
  * Configuration for page capture.
@@ -4416,6 +4417,10 @@ declare type DomainSettingsRule = {
4416
4417
  * Settings applied when a webcontents has been navigated to a matched domain.
4417
4418
  */
4418
4419
  options: PerDomainSettings;
4420
+ /**
4421
+ * Options to use when comparing URIs to the `match` patterns.
4422
+ */
4423
+ matchOptions?: RuleMatchOptions;
4419
4424
  };
4420
4425
 
4421
4426
  /**
@@ -4865,9 +4870,7 @@ declare class EventAggregator extends EmitterMap {
4865
4870
  * @remarks Selects the correct type for the event
4866
4871
  * payload from the provided union based on the provided string literal type.
4867
4872
  */
4868
- declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
4869
- type: EventType;
4870
- }>, ...args: any[]) => void;
4873
+ declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
4871
4874
 
4872
4875
  declare namespace Events {
4873
4876
  export {
@@ -5024,7 +5027,7 @@ declare namespace ExternalApplicationEvents {
5024
5027
  ExternalApplicationEvent,
5025
5028
  EventType_4 as EventType,
5026
5029
  ExternalApplicationEventType,
5027
- Payload_5 as Payload,
5030
+ Payload_6 as Payload,
5028
5031
  ByType_4 as ByType
5029
5032
  }
5030
5033
  }
@@ -5479,7 +5482,7 @@ declare namespace FrameEvents {
5479
5482
  FrameEvent,
5480
5483
  EventType_5 as EventType,
5481
5484
  FrameEventType,
5482
- Payload_6 as Payload,
5485
+ Payload_7 as Payload,
5483
5486
  ByType_5 as ByType
5484
5487
  }
5485
5488
  }
@@ -5722,7 +5725,7 @@ declare namespace GlobalHotkeyEvents {
5722
5725
  GlobalHotkeyEvent,
5723
5726
  EventType_6 as EventType,
5724
5727
  GlobalHotkeyEventType,
5725
- Payload_7 as Payload,
5728
+ Payload_8 as Payload,
5726
5729
  ByType_6 as ByType
5727
5730
  }
5728
5731
  }
@@ -7834,7 +7837,7 @@ declare namespace LayoutDOMEvents {
7834
7837
  LayoutStateChangedEvent,
7835
7838
  Event_12 as Event,
7836
7839
  EventType_9 as EventType,
7837
- Payload_10 as Payload,
7840
+ Payload_11 as Payload,
7838
7841
  ByType_9 as ByType
7839
7842
  }
7840
7843
  }
@@ -9203,6 +9206,10 @@ declare type NavigationRules = {
9203
9206
  allowlist?: string[];
9204
9207
  /** Forbidden URLs for navigation. */
9205
9208
  denylist?: string[];
9209
+ /**
9210
+ * Options to use when comparing URIs to the `allowlist` and `denylist` patterns.
9211
+ */
9212
+ matchOptions?: RuleMatchOptions;
9206
9213
  };
9207
9214
 
9208
9215
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
@@ -9362,6 +9369,7 @@ declare namespace OpenFin_2 {
9362
9369
  Api,
9363
9370
  ApiSettings,
9364
9371
  InjectionType,
9372
+ RuleMatchOptions,
9365
9373
  NavigationRules,
9366
9374
  ContentNavigation,
9367
9375
  ContentRedirect,
@@ -9682,86 +9690,110 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
9682
9690
  error?: Success extends false ? ErrorPlainObject | undefined : never;
9683
9691
  };
9684
9692
 
9693
+ /**
9694
+ * Extracts a single event type matching the given key from the System {@link Event} union.
9695
+ *
9696
+ * @see {@link ByType}
9697
+ *
9698
+ * @typeParam Type String key specifying the event to extract
9699
+ */
9700
+ declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
9701
+
9685
9702
  /**
9686
9703
  * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
9687
9704
  *
9688
9705
  * @typeParam Type String key specifying the event to extract
9689
9706
  */
9690
- declare type Payload_10<Type extends EventType_9> = Extract<Event_12, {
9707
+ declare type Payload_11<Type extends EventType_9> = Extract<Event_12, {
9691
9708
  type: Type;
9692
9709
  }>;
9693
9710
 
9711
+ /**
9712
+ * Extracts a single event type matching the given type key from the provided EmitterEvent union.
9713
+ *
9714
+ * @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
9715
+ * the appropriate payload union for that namespace.
9716
+ *
9717
+ * @typeParam Event Union of payloads for events on the given emitter
9718
+ * @see {@link ByType}
9719
+ *
9720
+ * @typeParam Type String key specifying the event to extract from the union
9721
+ *
9722
+ * @see {@link OpenFin.Events.ApplicationEvents.Payload}
9723
+ * @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
9724
+ * @see {@link OpenFin.Events.FrameEvents.Payload}
9725
+ * @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
9726
+ * @see {@link OpenFin.Events.PlatformEvents.Payload}
9727
+ * @see {@link OpenFin.Events.SystemEvents.Payload}
9728
+ * @see {@link OpenFin.Events.ViewEvents.Payload}
9729
+ * @see {@link OpenFin.Events.WindowEvents.Payload}
9730
+ */
9731
+ declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
9732
+ type: EventType;
9733
+ }>;
9734
+
9694
9735
  /**
9695
9736
  * Extracts a single event type matching the given key from the View {@link Event} union.
9696
9737
  *
9738
+ * @see {@link ByType}
9739
+ *
9697
9740
  * @typeParam Type String key specifying the event to extract
9698
9741
  */
9699
- declare type Payload_2<Type extends EventType> = Extract<Event_4, {
9700
- type: Type;
9701
- }>;
9742
+ declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
9702
9743
 
9703
9744
  /**
9704
9745
  * Extracts a single event type matching the given key from the Window {@link Event} union.
9705
9746
  *
9747
+ * @see {@link ByType}
9748
+ *
9706
9749
  * @typeParam Type String key specifying the event to extract
9707
9750
  */
9708
- declare type Payload_3<Type extends EventType_2> = Extract<Event_6, {
9709
- type: Type;
9710
- }>;
9751
+ declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
9711
9752
 
9712
9753
  /**
9713
9754
  * Extracts a single event type matching the given key from the Application {@link Event} union.
9714
9755
  *
9756
+ * @see {@link ByType}
9757
+ *
9715
9758
  * @typeParam Type String key specifying the event to extract
9716
9759
  */
9717
- declare type Payload_4<Type extends EventType_3> = Extract<Event_3, {
9718
- type: Type;
9719
- }>;
9760
+ declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
9720
9761
 
9721
9762
  /**
9722
9763
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
9723
9764
  *
9765
+ * @see {@link ByType}
9766
+ *
9724
9767
  * @typeParam Type String key specifying the event to extract
9725
9768
  */
9726
- declare type Payload_5<Type extends EventType_4> = Extract<Event_7, {
9727
- type: Type;
9728
- }>;
9769
+ declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
9729
9770
 
9730
9771
  /**
9731
9772
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
9732
9773
  *
9774
+ * @see {@link ByType}
9775
+ *
9733
9776
  * @typeParam Type String key specifying the event to extract
9734
9777
  */
9735
- declare type Payload_6<Type extends EventType_5> = Extract<Event_8, {
9736
- type: Type;
9737
- }>;
9778
+ declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
9738
9779
 
9739
9780
  /**
9740
9781
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
9741
9782
  *
9783
+ * @see {@link ByType}
9784
+ *
9742
9785
  * @typeParam Type String key specifying the event to extract
9743
9786
  */
9744
- declare type Payload_7<Type extends EventType_6> = Extract<Event_9, {
9745
- type: Type;
9746
- }>;
9787
+ declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
9747
9788
 
9748
9789
  /**
9749
9790
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
9750
9791
  *
9751
- * @typeParam Type String key specifying the event to extract
9752
- */
9753
- declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
9754
- type: Type;
9755
- }>;
9756
-
9757
- /**
9758
- * Extracts a single event type matching the given key from the System {@link Event} union.
9792
+ * @see {@link ByType}
9759
9793
  *
9760
9794
  * @typeParam Type String key specifying the event to extract
9761
9795
  */
9762
- declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
9763
- type: Type;
9764
- }>;
9796
+ declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
9765
9797
 
9766
9798
  /**
9767
9799
  * @interface
@@ -10486,7 +10518,7 @@ declare namespace PlatformEvents {
10486
10518
  PlatformEvent,
10487
10519
  EventType_7 as EventType,
10488
10520
  PlatformEventType,
10489
- Payload_8 as Payload,
10521
+ Payload_9 as Payload,
10490
10522
  ByType_7 as ByType
10491
10523
  }
10492
10524
  }
@@ -12362,6 +12394,17 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
12362
12394
  };
12363
12395
  }
12364
12396
 
12397
+ /**
12398
+ * Controls the behavior of the navigation URI pattern matching algorithm.
12399
+ */
12400
+ declare type RuleMatchOptions = {
12401
+ /**
12402
+ * Matches all schemes rather than just http and https when a wild card is specified. For example, `'*://*.site.com'` will
12403
+ * only match urls which begin with `'http:'` or `'https:'` unless this setting is `true`.
12404
+ */
12405
+ matchAllSchemes?: boolean;
12406
+ };
12407
+
12365
12408
  declare type RunRequestedEvent = OpenFin_2.ApplicationEvents.RunRequestedEvent;
12366
12409
 
12367
12410
  /**
@@ -12814,7 +12857,7 @@ declare type Snapshot = {
12814
12857
  * _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.
12815
12858
  * @interface
12816
12859
  */
12817
- declare type SnapshotAppliedEvent = BaseEvent & {
12860
+ declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
12818
12861
  topic: 'application';
12819
12862
  type: 'platform-snapshot-applied';
12820
12863
  };
@@ -14425,7 +14468,7 @@ declare namespace SystemEvents {
14425
14468
  SystemEvent,
14426
14469
  EventType_8 as EventType,
14427
14470
  SystemEventType,
14428
- Payload_9 as Payload,
14471
+ Payload_10 as Payload,
14429
14472
  ByType_8 as ByType
14430
14473
  }
14431
14474
  }
@@ -15490,7 +15533,7 @@ declare namespace ViewEvents {
15490
15533
  PropagatedViewEvent,
15491
15534
  PropagatedEventType_2 as PropagatedEventType,
15492
15535
  PropagatedViewEventType,
15493
- Payload_2 as Payload,
15536
+ Payload_3 as Payload,
15494
15537
  ByType
15495
15538
  }
15496
15539
  }
@@ -18014,7 +18057,7 @@ declare namespace WindowEvents {
18014
18057
  PropagatedEvent_3 as PropagatedEvent,
18015
18058
  PropagatedWindowEvent,
18016
18059
  PropagatedWindowEventType,
18017
- Payload_3 as Payload,
18060
+ Payload_4 as Payload,
18018
18061
  ByType_2 as ByType
18019
18062
  }
18020
18063
  }
package/out/mock.js CHANGED
@@ -38,6 +38,8 @@ var application$1 = {};
38
38
  * For example, a view's "attached" event will fire as 'window-view-attached' at the application level.
39
39
  *
40
40
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
41
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
42
+ * of an event as it would be raised on this emitter, use {@link Payload}.
41
43
  *
42
44
  * This namespace contains only payload shapes for events that are unique to `Application`. Events that propagate to `Application` from
43
45
  * child {@link OpenFin.Window windows} and {@link OpenFin.View views} are defined in the {@link OpenFin.WindowEvents} and
@@ -69,6 +71,8 @@ var externalApplication$1 = {};
69
71
  * Namespace for events that can be transmitted by an {@link OpenFin.ExternalApplication}.
70
72
  *
71
73
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
74
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
75
+ * of an event as it would be raised on this emitter, use {@link Payload}.
72
76
  *
73
77
  * For a list of valid string keys for external application events, see {@link ExternalApplication.on ExternalApplication.on}.
74
78
  *
@@ -87,6 +91,8 @@ var globalHotkey$1 = {};
87
91
  * Namespace for events that can be transmitted by {@link GlobalHotkey.GlobalHotkey}.
88
92
  *
89
93
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
94
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
95
+ * of an event as it would be raised on this emitter, use {@link Payload}.
90
96
  *
91
97
  * For a list of valid string keys for global hotkey events, see {@link GlobalHotkey.GlobalHotkey.on GlobalHotkey.on}.
92
98
  *
@@ -101,6 +107,8 @@ var platform$1 = {};
101
107
  * Namespace for events that can emitted by a {@link OpenFin.Platform}.
102
108
  *
103
109
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
110
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
111
+ * of an event as it would be raised on this emitter, use {@link Payload}.
104
112
  *
105
113
  * The Platform `EventEmitter` is a superset of the {@link OpenFin.Application} `EventEmitter`,
106
114
  * meaning it can listen to all {@link OpenFin.ApplicationEvents Application events} in addition to the
@@ -122,6 +130,8 @@ var system$1 = {};
122
130
  * will be visible as 'view-shown' at the system level, but *not* as `application-window-view-shown`.
123
131
  *
124
132
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
133
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
134
+ * of an event as it would be raised on this emitter, use {@link Payload}.
125
135
  *
126
136
  * This namespace contains only payload shapes for events that are unique to `System`. Events that propagate to `System` from
127
137
  * child {@link OpenFin.Application applications}, {@link OpenFin.Window windows}, and {@link OpenFin.View views} are defined in the
@@ -138,6 +148,8 @@ var view$1 = {};
138
148
  * Namespace for events that can be emitted by a {@link OpenFin.View}.
139
149
  *
140
150
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
151
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
152
+ * of an event as it would be raised on this emitter, use {@link Payload}.
141
153
  *
142
154
  * This namespace contains only payload shapes for events that are unique to `View`. Events that are shared between all `WebContents`
143
155
  * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. For a list
@@ -169,6 +181,8 @@ var window$2 = {};
169
181
  * Namespace for events that can be emitted by a {@link OpenFin.Window}.
170
182
  *
171
183
  * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
184
+ * Events gain metadata as they propagate, which is *not* present on the explicit payload interfaces. To refer to the full type
185
+ * of an event as it would be raised on this emitter, use {@link Payload}.
172
186
  *
173
187
  * This namespace contains only payload shapes for events that are unique to `Window`. Events that are shared between all `WebContents`
174
188
  * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. Events that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "39.82.12",
3
+ "version": "40.82.1",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",