@openfin/core 43.101.2 → 43.102.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-alpha.d.ts +70 -1
- package/out/mock-beta.d.ts +70 -1
- package/out/mock-public.d.ts +70 -1
- package/out/stub.d.ts +70 -1
- package/out/stub.js +1499 -1333
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -3129,6 +3129,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
|
3129
3129
|
data: Data;
|
|
3130
3130
|
};
|
|
3131
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
|
+
|
|
3132
3151
|
/**
|
|
3133
3152
|
* @interface
|
|
3134
3153
|
*/
|
|
@@ -5148,7 +5167,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
|
5148
5167
|
*/
|
|
5149
5168
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
5150
5169
|
target: OpenFin_2.Identity;
|
|
5151
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
|
5170
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
|
|
5152
5171
|
|
|
5153
5172
|
/**
|
|
5154
5173
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
|
@@ -7366,6 +7385,20 @@ declare type InteropBrokerOptions = {
|
|
|
7366
7385
|
declare class InteropClient extends Base {
|
|
7367
7386
|
#private;
|
|
7368
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>;
|
|
7369
7402
|
/**
|
|
7370
7403
|
* Sets a context for the context group of the current entity.
|
|
7371
7404
|
*
|
|
@@ -7735,6 +7768,16 @@ declare class InteropClient extends Base {
|
|
|
7735
7768
|
/* Excluded from this release type: ferryFdc3Call */
|
|
7736
7769
|
}
|
|
7737
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
|
+
|
|
7738
7781
|
/**
|
|
7739
7782
|
* @interface
|
|
7740
7783
|
*/
|
|
@@ -10420,6 +10463,9 @@ declare namespace OpenFin_2 {
|
|
|
10420
10463
|
ServeAssetOptions,
|
|
10421
10464
|
ServedAssetInfo,
|
|
10422
10465
|
ResolvedDomainSettings,
|
|
10466
|
+
InteropClientEvent,
|
|
10467
|
+
ClientChangedContextGroup,
|
|
10468
|
+
InteropClientEvents,
|
|
10423
10469
|
ApplicationEvents,
|
|
10424
10470
|
BaseEvents,
|
|
10425
10471
|
ExternalApplicationEvents,
|
|
@@ -14958,6 +15004,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
14958
15004
|
/**
|
|
14959
15005
|
* Returns a unique identifier (UUID) provided by the machine.
|
|
14960
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
|
+
*
|
|
14961
15012
|
* @example
|
|
14962
15013
|
* ```js
|
|
14963
15014
|
* fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
|
|
@@ -17510,6 +17561,7 @@ declare namespace ViewEvents {
|
|
|
17510
17561
|
HotkeyEvent,
|
|
17511
17562
|
ShownEvent,
|
|
17512
17563
|
HostContextChangedEvent,
|
|
17564
|
+
ViewOptionsChangedEvent,
|
|
17513
17565
|
Event_4 as Event,
|
|
17514
17566
|
ViewEvent,
|
|
17515
17567
|
WillPropagateViewEvent,
|
|
@@ -17638,6 +17690,23 @@ declare class ViewModule extends Base {
|
|
|
17638
17690
|
*/
|
|
17639
17691
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
17640
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
|
+
|
|
17641
17710
|
/**
|
|
17642
17711
|
* @interface
|
|
17643
17712
|
*/
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -3129,6 +3129,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
|
3129
3129
|
data: Data;
|
|
3130
3130
|
};
|
|
3131
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
|
+
|
|
3132
3151
|
/**
|
|
3133
3152
|
* @interface
|
|
3134
3153
|
*/
|
|
@@ -5148,7 +5167,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
|
5148
5167
|
*/
|
|
5149
5168
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
5150
5169
|
target: OpenFin_2.Identity;
|
|
5151
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
|
5170
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
|
|
5152
5171
|
|
|
5153
5172
|
/**
|
|
5154
5173
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
|
@@ -7366,6 +7385,20 @@ declare type InteropBrokerOptions = {
|
|
|
7366
7385
|
declare class InteropClient extends Base {
|
|
7367
7386
|
#private;
|
|
7368
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>;
|
|
7369
7402
|
/**
|
|
7370
7403
|
* Sets a context for the context group of the current entity.
|
|
7371
7404
|
*
|
|
@@ -7735,6 +7768,16 @@ declare class InteropClient extends Base {
|
|
|
7735
7768
|
/* Excluded from this release type: ferryFdc3Call */
|
|
7736
7769
|
}
|
|
7737
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
|
+
|
|
7738
7781
|
/**
|
|
7739
7782
|
* @interface
|
|
7740
7783
|
*/
|
|
@@ -10420,6 +10463,9 @@ declare namespace OpenFin_2 {
|
|
|
10420
10463
|
ServeAssetOptions,
|
|
10421
10464
|
ServedAssetInfo,
|
|
10422
10465
|
ResolvedDomainSettings,
|
|
10466
|
+
InteropClientEvent,
|
|
10467
|
+
ClientChangedContextGroup,
|
|
10468
|
+
InteropClientEvents,
|
|
10423
10469
|
ApplicationEvents,
|
|
10424
10470
|
BaseEvents,
|
|
10425
10471
|
ExternalApplicationEvents,
|
|
@@ -14958,6 +15004,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
14958
15004
|
/**
|
|
14959
15005
|
* Returns a unique identifier (UUID) provided by the machine.
|
|
14960
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
|
+
*
|
|
14961
15012
|
* @example
|
|
14962
15013
|
* ```js
|
|
14963
15014
|
* fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
|
|
@@ -17510,6 +17561,7 @@ declare namespace ViewEvents {
|
|
|
17510
17561
|
HotkeyEvent,
|
|
17511
17562
|
ShownEvent,
|
|
17512
17563
|
HostContextChangedEvent,
|
|
17564
|
+
ViewOptionsChangedEvent,
|
|
17513
17565
|
Event_4 as Event,
|
|
17514
17566
|
ViewEvent,
|
|
17515
17567
|
WillPropagateViewEvent,
|
|
@@ -17638,6 +17690,23 @@ declare class ViewModule extends Base {
|
|
|
17638
17690
|
*/
|
|
17639
17691
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
17640
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
|
+
|
|
17641
17710
|
/**
|
|
17642
17711
|
* @interface
|
|
17643
17712
|
*/
|
package/out/mock-public.d.ts
CHANGED
|
@@ -3129,6 +3129,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
|
3129
3129
|
data: Data;
|
|
3130
3130
|
};
|
|
3131
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
|
+
|
|
3132
3151
|
/**
|
|
3133
3152
|
* @interface
|
|
3134
3153
|
*/
|
|
@@ -5148,7 +5167,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
|
5148
5167
|
*/
|
|
5149
5168
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
5150
5169
|
target: OpenFin_2.Identity;
|
|
5151
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
|
5170
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
|
|
5152
5171
|
|
|
5153
5172
|
/**
|
|
5154
5173
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
|
@@ -7366,6 +7385,20 @@ declare type InteropBrokerOptions = {
|
|
|
7366
7385
|
declare class InteropClient extends Base {
|
|
7367
7386
|
#private;
|
|
7368
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>;
|
|
7369
7402
|
/**
|
|
7370
7403
|
* Sets a context for the context group of the current entity.
|
|
7371
7404
|
*
|
|
@@ -7735,6 +7768,16 @@ declare class InteropClient extends Base {
|
|
|
7735
7768
|
/* Excluded from this release type: ferryFdc3Call */
|
|
7736
7769
|
}
|
|
7737
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
|
+
|
|
7738
7781
|
/**
|
|
7739
7782
|
* @interface
|
|
7740
7783
|
*/
|
|
@@ -10420,6 +10463,9 @@ declare namespace OpenFin_2 {
|
|
|
10420
10463
|
ServeAssetOptions,
|
|
10421
10464
|
ServedAssetInfo,
|
|
10422
10465
|
ResolvedDomainSettings,
|
|
10466
|
+
InteropClientEvent,
|
|
10467
|
+
ClientChangedContextGroup,
|
|
10468
|
+
InteropClientEvents,
|
|
10423
10469
|
ApplicationEvents,
|
|
10424
10470
|
BaseEvents,
|
|
10425
10471
|
ExternalApplicationEvents,
|
|
@@ -14958,6 +15004,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
14958
15004
|
/**
|
|
14959
15005
|
* Returns a unique identifier (UUID) provided by the machine.
|
|
14960
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
|
+
*
|
|
14961
15012
|
* @example
|
|
14962
15013
|
* ```js
|
|
14963
15014
|
* fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
|
|
@@ -17510,6 +17561,7 @@ declare namespace ViewEvents {
|
|
|
17510
17561
|
HotkeyEvent,
|
|
17511
17562
|
ShownEvent,
|
|
17512
17563
|
HostContextChangedEvent,
|
|
17564
|
+
ViewOptionsChangedEvent,
|
|
17513
17565
|
Event_4 as Event,
|
|
17514
17566
|
ViewEvent,
|
|
17515
17567
|
WillPropagateViewEvent,
|
|
@@ -17638,6 +17690,23 @@ declare class ViewModule extends Base {
|
|
|
17638
17690
|
*/
|
|
17639
17691
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
17640
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
|
+
|
|
17641
17710
|
/**
|
|
17642
17711
|
* @interface
|
|
17643
17712
|
*/
|
package/out/stub.d.ts
CHANGED
|
@@ -3185,6 +3185,25 @@ declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
|
3185
3185
|
data: Data;
|
|
3186
3186
|
};
|
|
3187
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
|
+
|
|
3188
3207
|
/**
|
|
3189
3208
|
* @interface
|
|
3190
3209
|
*/
|
|
@@ -5212,7 +5231,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
|
5212
5231
|
*/
|
|
5213
5232
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
5214
5233
|
target: OpenFin_2.Identity;
|
|
5215
|
-
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
|
|
5234
|
+
}) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
|
|
5216
5235
|
|
|
5217
5236
|
/**
|
|
5218
5237
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
|
|
@@ -7478,6 +7497,20 @@ declare class InteropClient extends Base {
|
|
|
7478
7497
|
* @internal
|
|
7479
7498
|
*/
|
|
7480
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>;
|
|
7481
7514
|
/**
|
|
7482
7515
|
* Sets a context for the context group of the current entity.
|
|
7483
7516
|
*
|
|
@@ -7852,6 +7885,16 @@ declare class InteropClient extends Base {
|
|
|
7852
7885
|
static ferryFdc3Call(interopClient: OpenFin_2.InteropClient, action: string, payload?: any): Promise<any>;
|
|
7853
7886
|
}
|
|
7854
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
|
+
|
|
7855
7898
|
/**
|
|
7856
7899
|
* @interface
|
|
7857
7900
|
*/
|
|
@@ -10754,6 +10797,9 @@ declare namespace OpenFin_2 {
|
|
|
10754
10797
|
ServeAssetOptions,
|
|
10755
10798
|
ServedAssetInfo,
|
|
10756
10799
|
ResolvedDomainSettings,
|
|
10800
|
+
InteropClientEvent,
|
|
10801
|
+
ClientChangedContextGroup,
|
|
10802
|
+
InteropClientEvents,
|
|
10757
10803
|
ApplicationEvents,
|
|
10758
10804
|
BaseEvents,
|
|
10759
10805
|
ExternalApplicationEvents,
|
|
@@ -15381,6 +15427,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
15381
15427
|
/**
|
|
15382
15428
|
* Returns a unique identifier (UUID) provided by the machine.
|
|
15383
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
|
+
*
|
|
15384
15435
|
* @example
|
|
15385
15436
|
* ```js
|
|
15386
15437
|
* fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
|
|
@@ -17977,6 +18028,7 @@ declare namespace ViewEvents {
|
|
|
17977
18028
|
HotkeyEvent,
|
|
17978
18029
|
ShownEvent,
|
|
17979
18030
|
HostContextChangedEvent,
|
|
18031
|
+
ViewOptionsChangedEvent,
|
|
17980
18032
|
Event_4 as Event,
|
|
17981
18033
|
ViewEvent,
|
|
17982
18034
|
WillPropagateViewEvent,
|
|
@@ -18105,6 +18157,23 @@ declare class ViewModule extends Base {
|
|
|
18105
18157
|
*/
|
|
18106
18158
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
18107
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
|
+
|
|
18108
18177
|
/**
|
|
18109
18178
|
* @interface
|
|
18110
18179
|
*/
|