@openfin/core 44.100.61 → 44.100.105

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
  */
package/out/stub.d.ts CHANGED
@@ -1427,29 +1427,26 @@ declare type ApplicationWindowInfo = {
1427
1427
  };
1428
1428
 
1429
1429
  /**
1430
- * `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.
1430
+ * The `appLogLevel` option allows the verbosity of app logs that are collected for a Window or View to be controlled for its application.
1431
1431
  *
1432
- * Please note, `enableAppLogging` must be specified in the application manifest's `platform` or `startup_app` key for this feature to be activated.
1433
- *
1434
- * If not specified, and `enableAppLogging` is true for the application, the default level will be 'silent'.
1435
- *
1436
- * 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
1437
- * controlling a url's appLogLevel, its options will be ignored.
1432
+ * 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
1433
+ * controlling a url's appLogLevel, its view/window options will be ignored.
1438
1434
  *
1439
1435
  * @default 'debug'
1440
1436
  *
1437
+ * Please note, if the manifest setting `platform.enableAppLogging` or `startup_app.enableAppLogging` is set to `false`, this feature will be disabled.
1438
+ *
1441
1439
  * @example Controlling App Logs With DefaultViewOptions + Domain Settings
1442
1440
  *
1443
1441
  * In this example manifest, we use `defaultViewOptions to set the default verbosity to 'warn'.
1444
1442
  *
1445
- * We also use domain settings to suppress logs entirely for an example URL, and to lower verbosity to 'debug' for another.
1443
+ * We also use domain settings to suppress logs for an example URL, and to lower verbosity to 'debug' for another.
1446
1444
  *
1447
1445
  * ```ts
1448
1446
  * {
1449
1447
  * <rest of settings>
1450
1448
  * "platform": {
1451
1449
  * <rest of settings>
1452
- * "enableAppLogging": "true",
1453
1450
  * "defaultViewOptions": {
1454
1451
  * "appLogLevel": "warn"
1455
1452
  * },
@@ -3188,6 +3185,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
3188
3185
  data: Data;
3189
3186
  };
3190
3187
 
3188
+ /**
3189
+ * client-changed-context-group is emitted whenever a client connected to the same InteropBroker
3190
+ * (including the current client) change or leave a context group.
3191
+ */
3192
+ declare type ClientChangedContextGroup = InteropClientEvent<'client-changed-context-group', {
3193
+ /**
3194
+ * The identity of the affected InteropClient
3195
+ */
3196
+ identity: ClientIdentity;
3197
+ /**
3198
+ * The new context group id, or null if removed from a group.
3199
+ */
3200
+ contextGroupId: string | null;
3201
+ /**
3202
+ * The previous context group id, or null if none exists.
3203
+ */
3204
+ previousContextGroupId: string | null;
3205
+ }>;
3206
+
3191
3207
  /**
3192
3208
  * @interface
3193
3209
  */
@@ -3737,6 +3753,12 @@ declare type ConstViewOptions = {
3737
3753
  * Control which options to ignore when creating a Platform View.
3738
3754
  */
3739
3755
  excludeOptions: ExcludeOptions;
3756
+ /**
3757
+ * Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
3758
+ * When true, each call generates a new unique target name, ensuring a new window is always created.
3759
+ * When false, the target name passed to window.open is respected.
3760
+ */
3761
+ ignoreChildFrameName?: boolean;
3740
3762
  };
3741
3763
 
3742
3764
  /**
@@ -4004,6 +4026,12 @@ declare type ConstWindowOptions = {
4004
4026
  * 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.
4005
4027
  */
4006
4028
  roundedCorners: boolean;
4029
+ /**
4030
+ * Determines whether window.open calls from web contents should use the specified target name as provided, or automatically generate a unique name.
4031
+ * When true, each call generates a new unique target name, ensuring a new window is always created.
4032
+ * When false, the target name passed to window.open is respected.
4033
+ */
4034
+ ignoreChildFrameName?: boolean;
4007
4035
  /**
4008
4036
  * Configuration for download bubble UI.
4009
4037
  */
@@ -5203,7 +5231,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
5203
5231
  */
5204
5232
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
5205
5233
  target: OpenFin_2.Identity;
5206
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
5234
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
5207
5235
 
5208
5236
  /**
5209
5237
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -6373,7 +6401,28 @@ declare type Hotkey = {
6373
6401
  */
6374
6402
  keys: string;
6375
6403
  /**
6376
- * Prevent default key handling before emitting the event.
6404
+ * Controls the event phase at which the hotkey is triggered.
6405
+ *
6406
+ * - `'capture'`: The hotkey fires **before** the event is sent to the renderer/page.
6407
+ * This is the only phase where the `preventDefault` property is effective.
6408
+ *
6409
+ * - `'bubble'`: The hotkey fires **after** the page has processed the key event.
6410
+ * This behaves exactly like a standard JavaScript event listener attached to the window:
6411
+ * 1. If the page calls `event.preventDefault()` (on either **keydown** or **keyup**), this hotkey will **not** fire.
6412
+ * 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.
6413
+ *
6414
+ * @default 'capture'
6415
+ */
6416
+ phase?: 'capture' | 'bubble';
6417
+ /**
6418
+ * Determines if the event should continue to the renderer.
6419
+ *
6420
+ * - `true`: The event is consumed immediately. It will **never** reach the renderer/page.
6421
+ * - `false`: The event is sent to the renderer after this hotkey executes.
6422
+ *
6423
+ * @remarks
6424
+ * This property is **only valid** when `phase` is set to `'capture'`.
6425
+ * If `phase` is `'bubble'`, this property is ignored (as the renderer has already received and processed the event).
6377
6426
  *
6378
6427
  * @default false
6379
6428
  */
@@ -7448,6 +7497,20 @@ declare class InteropClient extends Base {
7448
7497
  * @internal
7449
7498
  */
7450
7499
  constructor(wire: Transport, clientPromise: Promise<OpenFin_2.ChannelClient>, fdc3Factory: FDC3Factory);
7500
+ /**
7501
+ * `addListener` allows the InteropClient to subscribe to events emitted by the connected InteropBroker.
7502
+ * @param type The event type to subscribe to.
7503
+ * @param listener Callback invoked whenever the event occurs.
7504
+ * @returns Promise resolving with void once the listener is registered.
7505
+ */
7506
+ addListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7507
+ /**
7508
+ * `removeListener` removes a registered event listener.
7509
+ * @param type The event type to subscribe to.
7510
+ * @param listener Callback to be removed.
7511
+ * @returns Promise resolving with void even if no callback was found.
7512
+ */
7513
+ removeListener: (type: OpenFin_2.InteropClientEvents['type'], listener: (event: OpenFin_2.InteropClientEvents['event']) => void) => Promise<void>;
7451
7514
  /**
7452
7515
  * Sets a context for the context group of the current entity.
7453
7516
  *
@@ -7822,6 +7885,16 @@ declare class InteropClient extends Base {
7822
7885
  static ferryFdc3Call(interopClient: OpenFin_2.InteropClient, action: string, payload?: any): Promise<any>;
7823
7886
  }
7824
7887
 
7888
+ /**
7889
+ * Interop Client Events
7890
+ */
7891
+ declare type InteropClientEvent<TName, TEventType = void> = {
7892
+ type: TName;
7893
+ event: TEventType;
7894
+ };
7895
+
7896
+ declare type InteropClientEvents = ClientChangedContextGroup;
7897
+
7825
7898
  /**
7826
7899
  * @interface
7827
7900
  */
@@ -9809,10 +9882,12 @@ declare type MutableWindowOptions = {
9809
9882
  */
9810
9883
  customData: any;
9811
9884
  /**
9812
- * @deprecated Will be removed in runtime version 45
9813
9885
  *
9814
9886
  * Show the window's frame.
9815
9887
  *
9888
+ * @remarks
9889
+ * This property will not be updatable starting runtime version 45.
9890
+ *
9816
9891
  * @default true
9817
9892
  */
9818
9893
  frame: boolean;
@@ -10722,6 +10797,9 @@ declare namespace OpenFin_2 {
10722
10797
  ServeAssetOptions,
10723
10798
  ServedAssetInfo,
10724
10799
  ResolvedDomainSettings,
10800
+ InteropClientEvent,
10801
+ ClientChangedContextGroup,
10802
+ InteropClientEvents,
10725
10803
  ApplicationEvents,
10726
10804
  BaseEvents,
10727
10805
  ExternalApplicationEvents,
@@ -15349,6 +15427,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15349
15427
  /**
15350
15428
  * Returns a unique identifier (UUID) provided by the machine.
15351
15429
  *
15430
+ * On Windows, the machine ID is the `MachineGuid` value located in the Windows Registry at:
15431
+ * `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography`.
15432
+ *
15433
+ * On macOS, the machine ID is the hardware UUID of the machine, obtained via native OS APIs.
15434
+ *
15352
15435
  * @example
15353
15436
  * ```js
15354
15437
  * fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
@@ -17945,6 +18028,7 @@ declare namespace ViewEvents {
17945
18028
  HotkeyEvent,
17946
18029
  ShownEvent,
17947
18030
  HostContextChangedEvent,
18031
+ ViewOptionsChangedEvent,
17948
18032
  Event_4 as Event,
17949
18033
  ViewEvent,
17950
18034
  WillPropagateViewEvent,
@@ -18073,6 +18157,23 @@ declare class ViewModule extends Base {
18073
18157
  */
18074
18158
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
18075
18159
 
18160
+ /**
18161
+ * Generated whenever a view's options are changed.
18162
+ * @remarks Will not emit if an updateOptions call does not result in a new diff.
18163
+ * @interface
18164
+ */
18165
+ declare type ViewOptionsChangedEvent = BaseEvent_4 & {
18166
+ type: 'options-changed';
18167
+ /**
18168
+ * The new state of the view's options.
18169
+ */
18170
+ options: OpenFin_2.ViewOptions;
18171
+ /**
18172
+ * Diff between the previous value of options and new.
18173
+ */
18174
+ diff: OpenFin_2.ViewOptions;
18175
+ };
18176
+
18076
18177
  /**
18077
18178
  * @interface
18078
18179
  */