@openfin/core 44.100.62 → 45.100.19

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.
@@ -1421,29 +1421,26 @@ declare type ApplicationWindowInfo = {
1421
1421
  };
1422
1422
 
1423
1423
  /**
1424
- * `appLogLevel` allows the verbosity of app logs that are collected for a Window or View to be controlled when the app logging feature is enabled for its application.
1424
+ * The `appLogLevel` option allows the verbosity of app logs that are collected for a Window or View to be controlled for its application.
1425
1425
  *
1426
- * Please note, `enableAppLogging` must be specified in the application manifest's `platform` or `startup_app` key for this feature to be activated.
1427
- *
1428
- * If not specified, and `enableAppLogging` is true for the application, the default level will be 'silent'.
1429
- *
1430
- * This setting can also be specified in a Domain Setting Rule, allowing per url exceptions to the default behavior to be made. Please note, when a domain setting is actively
1431
- * controlling a url's appLogLevel, its options will be ignored.
1426
+ * This setting can also be specified in a Domain Setting Rule, allowing per url overrides to be defined. Please note, when a domain setting is actively
1427
+ * controlling a url's appLogLevel, its view/window options will be ignored.
1432
1428
  *
1433
1429
  * @default 'debug'
1434
1430
  *
1431
+ * Please note, if the manifest setting `platform.enableAppLogging` or `startup_app.enableAppLogging` is set to `false`, this feature will be disabled.
1432
+ *
1435
1433
  * @example Controlling App Logs With DefaultViewOptions + Domain Settings
1436
1434
  *
1437
1435
  * In this example manifest, we use `defaultViewOptions to set the default verbosity to 'warn'.
1438
1436
  *
1439
- * We also use domain settings to suppress logs entirely for an example URL, and to lower verbosity to 'debug' for another.
1437
+ * We also use domain settings to suppress logs for an example URL, and to lower verbosity to 'debug' for another.
1440
1438
  *
1441
1439
  * ```ts
1442
1440
  * {
1443
1441
  * <rest of settings>
1444
1442
  * "platform": {
1445
1443
  * <rest of settings>
1446
- * "enableAppLogging": "true",
1447
1444
  * "defaultViewOptions": {
1448
1445
  * "appLogLevel": "warn"
1449
1446
  * },
@@ -3132,6 +3129,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
3132
3129
  data: Data;
3133
3130
  };
3134
3131
 
3132
+ /**
3133
+ * client-changed-context-group is emitted whenever a client connected to the same InteropBroker
3134
+ * (including the current client) change or leave a context group.
3135
+ */
3136
+ declare type ClientChangedContextGroup = InteropClientEvent<'client-changed-context-group', {
3137
+ /**
3138
+ * The identity of the affected InteropClient
3139
+ */
3140
+ identity: ClientIdentity;
3141
+ /**
3142
+ * The new context group id, or null if removed from a group.
3143
+ */
3144
+ contextGroupId: string | null;
3145
+ /**
3146
+ * The previous context group id, or null if none exists.
3147
+ */
3148
+ previousContextGroupId: string | null;
3149
+ }>;
3150
+
3135
3151
  /**
3136
3152
  * @interface
3137
3153
  */
@@ -3678,6 +3694,12 @@ declare type ConstViewOptions = {
3678
3694
  * Control which options to ignore when creating a Platform View.
3679
3695
  */
3680
3696
  excludeOptions: ExcludeOptions;
3697
+ /**
3698
+ * Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
3699
+ * When true, each call generates a new unique target name, ensuring a new window is always created.
3700
+ * When false, the target name passed to window.open is respected.
3701
+ */
3702
+ ignoreChildFrameName?: boolean;
3681
3703
  };
3682
3704
 
3683
3705
  /**
@@ -3945,6 +3967,12 @@ declare type ConstWindowOptions = {
3945
3967
  * Controls whether frameless window should have rounded corners. Default is false for Windows and true for MacOS. Setting this property to false will prevent the window from being fullscreenable on macOS. On Windows versions older than Windows 11 Build 22000 this property has no effect, and frameless windows will not have rounded corners.
3946
3968
  */
3947
3969
  roundedCorners: boolean;
3970
+ /**
3971
+ * Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
3972
+ * When true, each call generates a new unique target name, ensuring a new window is always created.
3973
+ * When false, the target name passed to window.open is respected.
3974
+ */
3975
+ ignoreChildFrameName?: boolean;
3948
3976
  /**
3949
3977
  * Configuration for download bubble UI.
3950
3978
  */
@@ -5139,7 +5167,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
5139
5167
  */
5140
5168
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
5141
5169
  target: OpenFin_2.Identity;
5142
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
5170
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
5143
5171
 
5144
5172
  /**
5145
5173
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -6282,7 +6310,28 @@ declare type Hotkey = {
6282
6310
  */
6283
6311
  keys: string;
6284
6312
  /**
6285
- * Prevent default key handling before emitting the event.
6313
+ * Controls the event phase at which the hotkey is triggered.
6314
+ *
6315
+ * - `'capture'`: The hotkey fires **before** the event is sent to the renderer/page.
6316
+ * This is the only phase where the `preventDefault` property is effective.
6317
+ *
6318
+ * - `'bubble'`: The hotkey fires **after** the page has processed the key event.
6319
+ * This behaves exactly like a standard JavaScript event listener attached to the window:
6320
+ * 1. If the page calls `event.preventDefault()` (on either **keydown** or **keyup**), this hotkey will **not** fire.
6321
+ * 2. If the hotkey is browser-reserved (e.g. `Ctrl+Tab` to switch tabs for which keyup/keydown do not fire in a web browser), that action takes precedence and this hotkey will **not** fire.
6322
+ *
6323
+ * @default 'capture'
6324
+ */
6325
+ phase?: 'capture' | 'bubble';
6326
+ /**
6327
+ * Determines if the event should continue to the renderer.
6328
+ *
6329
+ * - `true`: The event is consumed immediately. It will **never** reach the renderer/page.
6330
+ * - `false`: The event is sent to the renderer after this hotkey executes.
6331
+ *
6332
+ * @remarks
6333
+ * This property is **only valid** when `phase` is set to `'capture'`.
6334
+ * If `phase` is `'bubble'`, this property is ignored (as the renderer has already received and processed the event).
6286
6335
  *
6287
6336
  * @default false
6288
6337
  */
@@ -7336,6 +7385,20 @@ declare type InteropBrokerOptions = {
7336
7385
  declare class InteropClient extends Base {
7337
7386
  #private;
7338
7387
  /* Excluded from this release type: __constructor */
7388
+ /**
7389
+ * `addListener` allows the InteropClient to subscribe to events emitted by the connected InteropBroker.
7390
+ * @param type The event type to subscribe to.
7391
+ * @param listener Callback invoked whenever the event occurs.
7392
+ * @returns Promise resolving with void once the listener is registered.
7393
+ */
7394
+ addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7395
+ /**
7396
+ * `removeListener` removes a registered event listener.
7397
+ * @param type The event type to subscribe to.
7398
+ * @param listener Callback to be removed.
7399
+ * @returns Promise resolving with void even if no callback was found.
7400
+ */
7401
+ removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7339
7402
  /**
7340
7403
  * Sets a context for the context group of the current entity.
7341
7404
  *
@@ -7705,6 +7768,16 @@ declare class InteropClient extends Base {
7705
7768
  /* Excluded from this release type: ferryFdc3Call */
7706
7769
  }
7707
7770
 
7771
+ /**
7772
+ * Interop Client Events
7773
+ */
7774
+ declare type InteropClientEvent<TName, TEventType = void> = {
7775
+ type: TName;
7776
+ event: TEventType;
7777
+ };
7778
+
7779
+ declare type InteropClientEvents = ClientChangedContextGroup;
7780
+
7708
7781
  /**
7709
7782
  * @interface
7710
7783
  */
@@ -9496,10 +9569,12 @@ declare type MutableWindowOptions = {
9496
9569
  */
9497
9570
  customData: any;
9498
9571
  /**
9499
- * @deprecated Will be removed in runtime version 45
9500
9572
  *
9501
9573
  * Show the window's frame.
9502
9574
  *
9575
+ * @remarks
9576
+ * This property will not be updatable starting runtime version 45.
9577
+ *
9503
9578
  * @default true
9504
9579
  */
9505
9580
  frame: boolean;
@@ -10388,6 +10463,9 @@ declare namespace OpenFin_2 {
10388
10463
  ServeAssetOptions,
10389
10464
  ServedAssetInfo,
10390
10465
  ResolvedDomainSettings,
10466
+ InteropClientEvent,
10467
+ ClientChangedContextGroup,
10468
+ InteropClientEvents,
10391
10469
  ApplicationEvents,
10392
10470
  BaseEvents,
10393
10471
  ExternalApplicationEvents,
@@ -14926,6 +15004,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14926
15004
  /**
14927
15005
  * Returns a unique identifier (UUID) provided by the machine.
14928
15006
  *
15007
+ * On Windows, the machine ID is the `MachineGuid` value located in the Windows Registry at:
15008
+ * `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography`.
15009
+ *
15010
+ * On macOS, the machine ID is the hardware UUID of the machine, obtained via native OS APIs.
15011
+ *
14929
15012
  * @example
14930
15013
  * ```js
14931
15014
  * fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
@@ -17478,6 +17561,7 @@ declare namespace ViewEvents {
17478
17561
  HotkeyEvent,
17479
17562
  ShownEvent,
17480
17563
  HostContextChangedEvent,
17564
+ ViewOptionsChangedEvent,
17481
17565
  Event_4 as Event,
17482
17566
  ViewEvent,
17483
17567
  WillPropagateViewEvent,
@@ -17606,6 +17690,23 @@ declare class ViewModule extends Base {
17606
17690
  */
17607
17691
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
17608
17692
 
17693
+ /**
17694
+ * Generated whenever a view's options are changed.
17695
+ * @remarks Will not emit if an updateOptions call does not result in a new diff.
17696
+ * @interface
17697
+ */
17698
+ declare type ViewOptionsChangedEvent = BaseEvent_4 & {
17699
+ type: 'options-changed';
17700
+ /**
17701
+ * The new state of the view's options.
17702
+ */
17703
+ options: OpenFin_2.ViewOptions;
17704
+ /**
17705
+ * Diff between the previous value of options and new.
17706
+ */
17707
+ diff: OpenFin_2.ViewOptions;
17708
+ };
17709
+
17609
17710
  /**
17610
17711
  * @interface
17611
17712
  */
@@ -1421,29 +1421,26 @@ declare type ApplicationWindowInfo = {
1421
1421
  };
1422
1422
 
1423
1423
  /**
1424
- * `appLogLevel` allows the verbosity of app logs that are collected for a Window or View to be controlled when the app logging feature is enabled for its application.
1424
+ * The `appLogLevel` option allows the verbosity of app logs that are collected for a Window or View to be controlled for its application.
1425
1425
  *
1426
- * Please note, `enableAppLogging` must be specified in the application manifest's `platform` or `startup_app` key for this feature to be activated.
1427
- *
1428
- * If not specified, and `enableAppLogging` is true for the application, the default level will be 'silent'.
1429
- *
1430
- * This setting can also be specified in a Domain Setting Rule, allowing per url exceptions to the default behavior to be made. Please note, when a domain setting is actively
1431
- * controlling a url's appLogLevel, its options will be ignored.
1426
+ * This setting can also be specified in a Domain Setting Rule, allowing per url overrides to be defined. Please note, when a domain setting is actively
1427
+ * controlling a url's appLogLevel, its view/window options will be ignored.
1432
1428
  *
1433
1429
  * @default 'debug'
1434
1430
  *
1431
+ * Please note, if the manifest setting `platform.enableAppLogging` or `startup_app.enableAppLogging` is set to `false`, this feature will be disabled.
1432
+ *
1435
1433
  * @example Controlling App Logs With DefaultViewOptions + Domain Settings
1436
1434
  *
1437
1435
  * In this example manifest, we use `defaultViewOptions to set the default verbosity to 'warn'.
1438
1436
  *
1439
- * We also use domain settings to suppress logs entirely for an example URL, and to lower verbosity to 'debug' for another.
1437
+ * We also use domain settings to suppress logs for an example URL, and to lower verbosity to 'debug' for another.
1440
1438
  *
1441
1439
  * ```ts
1442
1440
  * {
1443
1441
  * <rest of settings>
1444
1442
  * "platform": {
1445
1443
  * <rest of settings>
1446
- * "enableAppLogging": "true",
1447
1444
  * "defaultViewOptions": {
1448
1445
  * "appLogLevel": "warn"
1449
1446
  * },
@@ -3132,6 +3129,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
3132
3129
  data: Data;
3133
3130
  };
3134
3131
 
3132
+ /**
3133
+ * client-changed-context-group is emitted whenever a client connected to the same InteropBroker
3134
+ * (including the current client) change or leave a context group.
3135
+ */
3136
+ declare type ClientChangedContextGroup = InteropClientEvent<'client-changed-context-group', {
3137
+ /**
3138
+ * The identity of the affected InteropClient
3139
+ */
3140
+ identity: ClientIdentity;
3141
+ /**
3142
+ * The new context group id, or null if removed from a group.
3143
+ */
3144
+ contextGroupId: string | null;
3145
+ /**
3146
+ * The previous context group id, or null if none exists.
3147
+ */
3148
+ previousContextGroupId: string | null;
3149
+ }>;
3150
+
3135
3151
  /**
3136
3152
  * @interface
3137
3153
  */
@@ -3678,6 +3694,12 @@ declare type ConstViewOptions = {
3678
3694
  * Control which options to ignore when creating a Platform View.
3679
3695
  */
3680
3696
  excludeOptions: ExcludeOptions;
3697
+ /**
3698
+ * Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
3699
+ * When true, each call generates a new unique target name, ensuring a new window is always created.
3700
+ * When false, the target name passed to window.open is respected.
3701
+ */
3702
+ ignoreChildFrameName?: boolean;
3681
3703
  };
3682
3704
 
3683
3705
  /**
@@ -3945,6 +3967,12 @@ declare type ConstWindowOptions = {
3945
3967
  * Controls whether frameless window should have rounded corners. Default is false for Windows and true for MacOS. Setting this property to false will prevent the window from being fullscreenable on macOS. On Windows versions older than Windows 11 Build 22000 this property has no effect, and frameless windows will not have rounded corners.
3946
3968
  */
3947
3969
  roundedCorners: boolean;
3970
+ /**
3971
+ * Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
3972
+ * When true, each call generates a new unique target name, ensuring a new window is always created.
3973
+ * When false, the target name passed to window.open is respected.
3974
+ */
3975
+ ignoreChildFrameName?: boolean;
3948
3976
  /**
3949
3977
  * Configuration for download bubble UI.
3950
3978
  */
@@ -5139,7 +5167,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
5139
5167
  */
5140
5168
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
5141
5169
  target: OpenFin_2.Identity;
5142
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
5170
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
5143
5171
 
5144
5172
  /**
5145
5173
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -6282,7 +6310,28 @@ declare type Hotkey = {
6282
6310
  */
6283
6311
  keys: string;
6284
6312
  /**
6285
- * Prevent default key handling before emitting the event.
6313
+ * Controls the event phase at which the hotkey is triggered.
6314
+ *
6315
+ * - `'capture'`: The hotkey fires **before** the event is sent to the renderer/page.
6316
+ * This is the only phase where the `preventDefault` property is effective.
6317
+ *
6318
+ * - `'bubble'`: The hotkey fires **after** the page has processed the key event.
6319
+ * This behaves exactly like a standard JavaScript event listener attached to the window:
6320
+ * 1. If the page calls `event.preventDefault()` (on either **keydown** or **keyup**), this hotkey will **not** fire.
6321
+ * 2. If the hotkey is browser-reserved (e.g. `Ctrl+Tab` to switch tabs for which keyup/keydown do not fire in a web browser), that action takes precedence and this hotkey will **not** fire.
6322
+ *
6323
+ * @default 'capture'
6324
+ */
6325
+ phase?: 'capture' | 'bubble';
6326
+ /**
6327
+ * Determines if the event should continue to the renderer.
6328
+ *
6329
+ * - `true`: The event is consumed immediately. It will **never** reach the renderer/page.
6330
+ * - `false`: The event is sent to the renderer after this hotkey executes.
6331
+ *
6332
+ * @remarks
6333
+ * This property is **only valid** when `phase` is set to `'capture'`.
6334
+ * If `phase` is `'bubble'`, this property is ignored (as the renderer has already received and processed the event).
6286
6335
  *
6287
6336
  * @default false
6288
6337
  */
@@ -7336,6 +7385,20 @@ declare type InteropBrokerOptions = {
7336
7385
  declare class InteropClient extends Base {
7337
7386
  #private;
7338
7387
  /* Excluded from this release type: __constructor */
7388
+ /**
7389
+ * `addListener` allows the InteropClient to subscribe to events emitted by the connected InteropBroker.
7390
+ * @param type The event type to subscribe to.
7391
+ * @param listener Callback invoked whenever the event occurs.
7392
+ * @returns Promise resolving with void once the listener is registered.
7393
+ */
7394
+ addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7395
+ /**
7396
+ * `removeListener` removes a registered event listener.
7397
+ * @param type The event type to subscribe to.
7398
+ * @param listener Callback to be removed.
7399
+ * @returns Promise resolving with void even if no callback was found.
7400
+ */
7401
+ removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7339
7402
  /**
7340
7403
  * Sets a context for the context group of the current entity.
7341
7404
  *
@@ -7705,6 +7768,16 @@ declare class InteropClient extends Base {
7705
7768
  /* Excluded from this release type: ferryFdc3Call */
7706
7769
  }
7707
7770
 
7771
+ /**
7772
+ * Interop Client Events
7773
+ */
7774
+ declare type InteropClientEvent<TName, TEventType = void> = {
7775
+ type: TName;
7776
+ event: TEventType;
7777
+ };
7778
+
7779
+ declare type InteropClientEvents = ClientChangedContextGroup;
7780
+
7708
7781
  /**
7709
7782
  * @interface
7710
7783
  */
@@ -9496,10 +9569,12 @@ declare type MutableWindowOptions = {
9496
9569
  */
9497
9570
  customData: any;
9498
9571
  /**
9499
- * @deprecated Will be removed in runtime version 45
9500
9572
  *
9501
9573
  * Show the window's frame.
9502
9574
  *
9575
+ * @remarks
9576
+ * This property will not be updatable starting runtime version 45.
9577
+ *
9503
9578
  * @default true
9504
9579
  */
9505
9580
  frame: boolean;
@@ -10388,6 +10463,9 @@ declare namespace OpenFin_2 {
10388
10463
  ServeAssetOptions,
10389
10464
  ServedAssetInfo,
10390
10465
  ResolvedDomainSettings,
10466
+ InteropClientEvent,
10467
+ ClientChangedContextGroup,
10468
+ InteropClientEvents,
10391
10469
  ApplicationEvents,
10392
10470
  BaseEvents,
10393
10471
  ExternalApplicationEvents,
@@ -14926,6 +15004,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14926
15004
  /**
14927
15005
  * Returns a unique identifier (UUID) provided by the machine.
14928
15006
  *
15007
+ * On Windows, the machine ID is the `MachineGuid` value located in the Windows Registry at:
15008
+ * `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography`.
15009
+ *
15010
+ * On macOS, the machine ID is the hardware UUID of the machine, obtained via native OS APIs.
15011
+ *
14929
15012
  * @example
14930
15013
  * ```js
14931
15014
  * fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
@@ -17478,6 +17561,7 @@ declare namespace ViewEvents {
17478
17561
  HotkeyEvent,
17479
17562
  ShownEvent,
17480
17563
  HostContextChangedEvent,
17564
+ ViewOptionsChangedEvent,
17481
17565
  Event_4 as Event,
17482
17566
  ViewEvent,
17483
17567
  WillPropagateViewEvent,
@@ -17606,6 +17690,23 @@ declare class ViewModule extends Base {
17606
17690
  */
17607
17691
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
17608
17692
 
17693
+ /**
17694
+ * Generated whenever a view's options are changed.
17695
+ * @remarks Will not emit if an updateOptions call does not result in a new diff.
17696
+ * @interface
17697
+ */
17698
+ declare type ViewOptionsChangedEvent = BaseEvent_4 & {
17699
+ type: 'options-changed';
17700
+ /**
17701
+ * The new state of the view's options.
17702
+ */
17703
+ options: OpenFin_2.ViewOptions;
17704
+ /**
17705
+ * Diff between the previous value of options and new.
17706
+ */
17707
+ diff: OpenFin_2.ViewOptions;
17708
+ };
17709
+
17609
17710
  /**
17610
17711
  * @interface
17611
17712
  */