@openfin/core 39.82.12 → 40.82.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  };
@@ -914,7 +914,7 @@ declare namespace ApplicationEvents {
914
914
  PropagatedApplicationEvent,
915
915
  PropagatedEventType_3 as PropagatedEventType,
916
916
  PropagatedApplicationEventType,
917
- Payload_4 as Payload,
917
+ Payload_5 as Payload,
918
918
  ByType_3 as ByType
919
919
  }
920
920
  }
@@ -1707,7 +1707,7 @@ declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
1707
1707
  * A base Channel event.
1708
1708
  * @interface
1709
1709
  */
1710
- declare type BaseEvent_2 = NamedEvent & {
1710
+ declare type BaseEvent_2 = BaseEvents.NamedEvent & {
1711
1711
  channelName: string;
1712
1712
  channelId: string;
1713
1713
  };
@@ -1777,6 +1777,7 @@ declare namespace BaseEvents {
1777
1777
  NotCloseRequested,
1778
1778
  PropagatedEventType,
1779
1779
  PropagatedEvent,
1780
+ Payload_2 as Payload,
1780
1781
  EventHandler,
1781
1782
  BaseEvent,
1782
1783
  IdentityEvent,
@@ -1917,7 +1918,7 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1917
1918
  *
1918
1919
  * @typeParam Type String key specifying the event to extract
1919
1920
  */
1920
- declare type ByType<Type extends EventType> = Payload_2<Type>;
1921
+ declare type ByType<Type extends EventType> = Payload_3<Type>;
1921
1922
 
1922
1923
  /**
1923
1924
  * Extracts a single event type matching the given key from the Window {@link Event} union.
@@ -1926,7 +1927,7 @@ declare type ByType<Type extends EventType> = Payload_2<Type>;
1926
1927
  *
1927
1928
  * @typeParam Type String key specifying the event to extract
1928
1929
  */
1929
- declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
1930
+ declare type ByType_2<Type extends EventType_2> = Payload_4<Type>;
1930
1931
 
1931
1932
  /**
1932
1933
  * Extracts a single event type matching the given key from the Application {@link Event} union.
@@ -1935,7 +1936,7 @@ declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
1935
1936
  *
1936
1937
  * @typeParam Type String key specifying the event to extract
1937
1938
  */
1938
- declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
1939
+ declare type ByType_3<Type extends EventType_3> = Payload_5<Type>;
1939
1940
 
1940
1941
  /**
1941
1942
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
@@ -1944,7 +1945,7 @@ declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
1944
1945
  *
1945
1946
  * @typeParam Type String key specifying the event to extract
1946
1947
  */
1947
- declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
1948
+ declare type ByType_4<Type extends EventType_4> = Payload_6<Type>;
1948
1949
 
1949
1950
  /**
1950
1951
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
@@ -1953,7 +1954,7 @@ declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
1953
1954
  *
1954
1955
  * @typeParam Type String key specifying the event to extract
1955
1956
  */
1956
- declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
1957
+ declare type ByType_5<Type extends EventType_5> = Payload_7<Type>;
1957
1958
 
1958
1959
  /**
1959
1960
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
@@ -1962,7 +1963,7 @@ declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
1962
1963
  *
1963
1964
  * @typeParam Type String key specifying the event to extract
1964
1965
  */
1965
- declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
1966
+ declare type ByType_6<Type extends EventType_6> = Payload_8<Type>;
1966
1967
 
1967
1968
  /**
1968
1969
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
@@ -1971,7 +1972,7 @@ declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
1971
1972
  *
1972
1973
  * @typeParam Type String key specifying the event to extract
1973
1974
  */
1974
- declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
1975
+ declare type ByType_7<Type extends EventType_7> = Payload_9<Type>;
1975
1976
 
1976
1977
  /**
1977
1978
  * Extracts a single event type matching the given key from the System {@link Event} union.
@@ -1980,7 +1981,7 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
1980
1981
  *
1981
1982
  * @typeParam Type String key specifying the event to extract
1982
1983
  */
1983
- declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
1984
+ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
1984
1985
 
1985
1986
  /**
1986
1987
  * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
@@ -1989,7 +1990,7 @@ declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
1989
1990
  *
1990
1991
  * @typeParam Type String key specifying the event to extract
1991
1992
  */
1992
- declare type ByType_9<Type extends EventType_9> = Payload_10<Type>;
1993
+ declare type ByType_9<Type extends EventType_9> = Payload_11<Type>;
1993
1994
 
1994
1995
  /**
1995
1996
  * Configuration for page capture.
@@ -4357,6 +4358,10 @@ declare type DomainSettingsRule = {
4357
4358
  * Settings applied when a webcontents has been navigated to a matched domain.
4358
4359
  */
4359
4360
  options: PerDomainSettings;
4361
+ /**
4362
+ * Options to use when comparing URIs to the `match` patterns.
4363
+ */
4364
+ matchOptions?: RuleMatchOptions;
4360
4365
  };
4361
4366
 
4362
4367
  /**
@@ -4801,9 +4806,7 @@ declare class EventAggregator extends EmitterMap {
4801
4806
  * @remarks Selects the correct type for the event
4802
4807
  * payload from the provided union based on the provided string literal type.
4803
4808
  */
4804
- declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
4805
- type: EventType;
4806
- }>, ...args: any[]) => void;
4809
+ declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
4807
4810
 
4808
4811
  declare namespace Events {
4809
4812
  export {
@@ -4939,7 +4942,7 @@ declare namespace ExternalApplicationEvents {
4939
4942
  ExternalApplicationEvent,
4940
4943
  EventType_4 as EventType,
4941
4944
  ExternalApplicationEventType,
4942
- Payload_5 as Payload,
4945
+ Payload_6 as Payload,
4943
4946
  ByType_4 as ByType
4944
4947
  }
4945
4948
  }
@@ -5391,7 +5394,7 @@ declare namespace FrameEvents {
5391
5394
  FrameEvent,
5392
5395
  EventType_5 as EventType,
5393
5396
  FrameEventType,
5394
- Payload_6 as Payload,
5397
+ Payload_7 as Payload,
5395
5398
  ByType_5 as ByType
5396
5399
  }
5397
5400
  }
@@ -5631,7 +5634,7 @@ declare namespace GlobalHotkeyEvents {
5631
5634
  GlobalHotkeyEvent,
5632
5635
  EventType_6 as EventType,
5633
5636
  GlobalHotkeyEventType,
5634
- Payload_7 as Payload,
5637
+ Payload_8 as Payload,
5635
5638
  ByType_6 as ByType
5636
5639
  }
5637
5640
  }
@@ -7711,7 +7714,7 @@ declare namespace LayoutDOMEvents {
7711
7714
  LayoutStateChangedEvent,
7712
7715
  Event_12 as Event,
7713
7716
  EventType_9 as EventType,
7714
- Payload_10 as Payload,
7717
+ Payload_11 as Payload,
7715
7718
  ByType_9 as ByType
7716
7719
  }
7717
7720
  }
@@ -8898,6 +8901,10 @@ declare type NavigationRules = {
8898
8901
  allowlist?: string[];
8899
8902
  /** Forbidden URLs for navigation. */
8900
8903
  denylist?: string[];
8904
+ /**
8905
+ * Options to use when comparing URIs to the `allowlist` and `denylist` patterns.
8906
+ */
8907
+ matchOptions?: RuleMatchOptions;
8901
8908
  };
8902
8909
 
8903
8910
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
@@ -9047,6 +9054,7 @@ declare namespace OpenFin_2 {
9047
9054
  Api,
9048
9055
  ApiSettings,
9049
9056
  InjectionType,
9057
+ RuleMatchOptions,
9050
9058
  NavigationRules,
9051
9059
  ContentNavigation,
9052
9060
  ContentRedirect,
@@ -9367,86 +9375,110 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
9367
9375
  error?: Success extends false ? ErrorPlainObject | undefined : never;
9368
9376
  };
9369
9377
 
9378
+ /**
9379
+ * Extracts a single event type matching the given key from the System {@link Event} union.
9380
+ *
9381
+ * @see {@link ByType}
9382
+ *
9383
+ * @typeParam Type String key specifying the event to extract
9384
+ */
9385
+ declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
9386
+
9370
9387
  /**
9371
9388
  * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
9372
9389
  *
9373
9390
  * @typeParam Type String key specifying the event to extract
9374
9391
  */
9375
- declare type Payload_10<Type extends EventType_9> = Extract<Event_12, {
9392
+ declare type Payload_11<Type extends EventType_9> = Extract<Event_12, {
9376
9393
  type: Type;
9377
9394
  }>;
9378
9395
 
9396
+ /**
9397
+ * Extracts a single event type matching the given type key from the provided EmitterEvent union.
9398
+ *
9399
+ * @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
9400
+ * the appropriate payload union for that namespace.
9401
+ *
9402
+ * @typeParam Event Union of payloads for events on the given emitter
9403
+ * @see {@link ByType}
9404
+ *
9405
+ * @typeParam Type String key specifying the event to extract from the union
9406
+ *
9407
+ * @see {@link OpenFin.Events.ApplicationEvents.Payload}
9408
+ * @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
9409
+ * @see {@link OpenFin.Events.FrameEvents.Payload}
9410
+ * @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
9411
+ * @see {@link OpenFin.Events.PlatformEvents.Payload}
9412
+ * @see {@link OpenFin.Events.SystemEvents.Payload}
9413
+ * @see {@link OpenFin.Events.ViewEvents.Payload}
9414
+ * @see {@link OpenFin.Events.WindowEvents.Payload}
9415
+ */
9416
+ declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
9417
+ type: EventType;
9418
+ }>;
9419
+
9379
9420
  /**
9380
9421
  * Extracts a single event type matching the given key from the View {@link Event} union.
9381
9422
  *
9423
+ * @see {@link ByType}
9424
+ *
9382
9425
  * @typeParam Type String key specifying the event to extract
9383
9426
  */
9384
- declare type Payload_2<Type extends EventType> = Extract<Event_4, {
9385
- type: Type;
9386
- }>;
9427
+ declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
9387
9428
 
9388
9429
  /**
9389
9430
  * Extracts a single event type matching the given key from the Window {@link Event} union.
9390
9431
  *
9432
+ * @see {@link ByType}
9433
+ *
9391
9434
  * @typeParam Type String key specifying the event to extract
9392
9435
  */
9393
- declare type Payload_3<Type extends EventType_2> = Extract<Event_6, {
9394
- type: Type;
9395
- }>;
9436
+ declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
9396
9437
 
9397
9438
  /**
9398
9439
  * Extracts a single event type matching the given key from the Application {@link Event} union.
9399
9440
  *
9441
+ * @see {@link ByType}
9442
+ *
9400
9443
  * @typeParam Type String key specifying the event to extract
9401
9444
  */
9402
- declare type Payload_4<Type extends EventType_3> = Extract<Event_3, {
9403
- type: Type;
9404
- }>;
9445
+ declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
9405
9446
 
9406
9447
  /**
9407
9448
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
9408
9449
  *
9450
+ * @see {@link ByType}
9451
+ *
9409
9452
  * @typeParam Type String key specifying the event to extract
9410
9453
  */
9411
- declare type Payload_5<Type extends EventType_4> = Extract<Event_7, {
9412
- type: Type;
9413
- }>;
9454
+ declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
9414
9455
 
9415
9456
  /**
9416
9457
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
9417
9458
  *
9459
+ * @see {@link ByType}
9460
+ *
9418
9461
  * @typeParam Type String key specifying the event to extract
9419
9462
  */
9420
- declare type Payload_6<Type extends EventType_5> = Extract<Event_8, {
9421
- type: Type;
9422
- }>;
9463
+ declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
9423
9464
 
9424
9465
  /**
9425
9466
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
9426
9467
  *
9468
+ * @see {@link ByType}
9469
+ *
9427
9470
  * @typeParam Type String key specifying the event to extract
9428
9471
  */
9429
- declare type Payload_7<Type extends EventType_6> = Extract<Event_9, {
9430
- type: Type;
9431
- }>;
9472
+ declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
9432
9473
 
9433
9474
  /**
9434
9475
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
9435
9476
  *
9436
- * @typeParam Type String key specifying the event to extract
9437
- */
9438
- declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
9439
- type: Type;
9440
- }>;
9441
-
9442
- /**
9443
- * Extracts a single event type matching the given key from the System {@link Event} union.
9477
+ * @see {@link ByType}
9444
9478
  *
9445
9479
  * @typeParam Type String key specifying the event to extract
9446
9480
  */
9447
- declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
9448
- type: Type;
9449
- }>;
9481
+ declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
9450
9482
 
9451
9483
  /**
9452
9484
  * @interface
@@ -10141,7 +10173,7 @@ declare namespace PlatformEvents {
10141
10173
  PlatformEvent,
10142
10174
  EventType_7 as EventType,
10143
10175
  PlatformEventType,
10144
- Payload_8 as Payload,
10176
+ Payload_9 as Payload,
10145
10177
  ByType_7 as ByType
10146
10178
  }
10147
10179
  }
@@ -11969,6 +12001,17 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
11969
12001
  };
11970
12002
  }
11971
12003
 
12004
+ /**
12005
+ * Controls the behavior of the navigation URI pattern matching algorithm.
12006
+ */
12007
+ declare type RuleMatchOptions = {
12008
+ /**
12009
+ * Matches all schemes rather than just http and https when a wild card is specified. For example, `'*://*.site.com'` will
12010
+ * only match urls which begin with `'http:'` or `'https:'` unless this setting is `true`.
12011
+ */
12012
+ matchAllSchemes?: boolean;
12013
+ };
12014
+
11972
12015
  declare type RunRequestedEvent = OpenFin_2.ApplicationEvents.RunRequestedEvent;
11973
12016
 
11974
12017
  /**
@@ -12421,7 +12464,7 @@ declare type Snapshot = {
12421
12464
  * _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.
12422
12465
  * @interface
12423
12466
  */
12424
- declare type SnapshotAppliedEvent = BaseEvent & {
12467
+ declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
12425
12468
  topic: 'application';
12426
12469
  type: 'platform-snapshot-applied';
12427
12470
  };
@@ -14026,7 +14069,7 @@ declare namespace SystemEvents {
14026
14069
  SystemEvent,
14027
14070
  EventType_8 as EventType,
14028
14071
  SystemEventType,
14029
- Payload_9 as Payload,
14072
+ Payload_10 as Payload,
14030
14073
  ByType_8 as ByType
14031
14074
  }
14032
14075
  }
@@ -15047,7 +15090,7 @@ declare namespace ViewEvents {
15047
15090
  PropagatedViewEvent,
15048
15091
  PropagatedEventType_2 as PropagatedEventType,
15049
15092
  PropagatedViewEventType,
15050
- Payload_2 as Payload,
15093
+ Payload_3 as Payload,
15051
15094
  ByType
15052
15095
  }
15053
15096
  }
@@ -17568,7 +17611,7 @@ declare namespace WindowEvents {
17568
17611
  PropagatedEvent_3 as PropagatedEvent,
17569
17612
  PropagatedWindowEvent,
17570
17613
  PropagatedWindowEventType,
17571
- Payload_3 as Payload,
17614
+ Payload_4 as Payload,
17572
17615
  ByType_2 as ByType
17573
17616
  }
17574
17617
  }