@openfin/core 46.100.96 → 46.100.97
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 +68 -1
- package/out/mock-beta.d.ts +68 -1
- package/out/mock-public.d.ts +68 -1
- package/out/stub.d.ts +68 -1
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -4952,6 +4952,31 @@ declare type DisplayMetadata = {
|
|
|
4952
4952
|
readonly glyph?: string;
|
|
4953
4953
|
};
|
|
4954
4954
|
|
|
4955
|
+
declare type DockIconClickedEvent = OpenFin_2.SystemEvents.DockIconClickedEvent;
|
|
4956
|
+
|
|
4957
|
+
/**
|
|
4958
|
+
* Generated on macOS when the user clicks this runtime's dock icon, or opens the app again from Finder, while the
|
|
4959
|
+
* runtime is running. Only raised to listeners in this runtime, not to other connected runtimes.
|
|
4960
|
+
* @remarks macOS only. On Windows and Linux, launching an application that is already running raises
|
|
4961
|
+
* `run-requested` on that application instead.
|
|
4962
|
+
*
|
|
4963
|
+
* By default, the platform provider handles this event in
|
|
4964
|
+
* {@link OpenFin.PlatformProvider.handleDockIconClicked PlatformProvider.handleDockIconClicked}, which reopens the
|
|
4965
|
+
* platform when it has no windows. The default reopen requires `platform.allowLaunchIntoPlatform: true`.
|
|
4966
|
+
* @interface
|
|
4967
|
+
*/
|
|
4968
|
+
declare type DockIconClickedEvent_2 = BaseEvent_9 & {
|
|
4969
|
+
type: 'dock-icon-clicked';
|
|
4970
|
+
/**
|
|
4971
|
+
* Whether macOS found any visible windows in this runtime. Hidden windows do not count.
|
|
4972
|
+
*/
|
|
4973
|
+
hasVisibleWindows: boolean;
|
|
4974
|
+
/**
|
|
4975
|
+
* UUID of the application the runtime was started with, if any.
|
|
4976
|
+
*/
|
|
4977
|
+
uuid?: string;
|
|
4978
|
+
};
|
|
4979
|
+
|
|
4955
4980
|
/**
|
|
4956
4981
|
* @interface
|
|
4957
4982
|
*
|
|
@@ -5463,7 +5488,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
|
|
|
5463
5488
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5464
5489
|
* from which they propagate).
|
|
5465
5490
|
*/
|
|
5466
|
-
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5491
|
+
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | DockIconClickedEvent_2 | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5467
5492
|
|
|
5468
5493
|
/**
|
|
5469
5494
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
|
|
@@ -12898,6 +12923,47 @@ declare interface PlatformProvider {
|
|
|
12898
12923
|
* @returns {Promise<void>}
|
|
12899
12924
|
*/
|
|
12900
12925
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
12926
|
+
/**
|
|
12927
|
+
* Handles the user clicking the macOS dock icon, or opening the app again from Finder, while the platform is running.
|
|
12928
|
+
* Only called for the platform the runtime was started with, and only after its startup content (its snapshot or
|
|
12929
|
+
* `appManifestUrl`) has finished launching or failed to.
|
|
12930
|
+
* Clicks while a previous call is still running are ignored.
|
|
12931
|
+
* Never called on Windows or Linux, where launching the platform again raises `run-requested` instead.
|
|
12932
|
+
*
|
|
12933
|
+
* By default, if no windows are visible and the platform has no other windows, including hidden or minimized ones,
|
|
12934
|
+
* calls {@link PlatformProvider#handleRunRequested PlatformProvider.handleRunRequested} with the platform's manifest
|
|
12935
|
+
* and startup `userAppConfigArgs`, the same as relaunching it. Otherwise it does nothing.
|
|
12936
|
+
*
|
|
12937
|
+
* @remarks
|
|
12938
|
+
* The default `handleRunRequested` reopens the manifest's snapshot through
|
|
12939
|
+
* {@link PlatformProvider#launchIntoPlatform PlatformProvider.launchIntoPlatform}, so the platform manifest must set
|
|
12940
|
+
* `platform.allowLaunchIntoPlatform` to `true`. Otherwise nothing reopens and a security notice is logged.
|
|
12941
|
+
* Platforms that override `handleRunRequested` or `handleDockIconClicked` are not affected.
|
|
12942
|
+
*
|
|
12943
|
+
* macOS counts any shown window as visible, including the platform provider window. If the provider window is shown,
|
|
12944
|
+
* the default does nothing.
|
|
12945
|
+
* @param payload The {@link OpenFin.SystemEvents.DockIconClickedEvent dock-icon-clicked} system event.
|
|
12946
|
+
*
|
|
12947
|
+
* @example
|
|
12948
|
+
*
|
|
12949
|
+
* ```js
|
|
12950
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
12951
|
+
* class Override extends PlatformProvider {
|
|
12952
|
+
* async handleDockIconClicked(payload) {
|
|
12953
|
+
* if (payload.hasVisibleWindows) {
|
|
12954
|
+
* // Bring a window forward instead of doing nothing
|
|
12955
|
+
* return;
|
|
12956
|
+
* }
|
|
12957
|
+
* return super.handleDockIconClicked(payload);
|
|
12958
|
+
* }
|
|
12959
|
+
* }
|
|
12960
|
+
* return new Override();
|
|
12961
|
+
* }
|
|
12962
|
+
*
|
|
12963
|
+
* fin.Platform.init({ overrideCallback });
|
|
12964
|
+
* ```
|
|
12965
|
+
*/
|
|
12966
|
+
handleDockIconClicked(payload: DockIconClickedEvent): Promise<void>;
|
|
12901
12967
|
/**
|
|
12902
12968
|
* @experimental
|
|
12903
12969
|
*
|
|
@@ -17360,6 +17426,7 @@ declare namespace SystemEvents {
|
|
|
17360
17426
|
AppVersionEventType,
|
|
17361
17427
|
ApplicationCreatedEvent,
|
|
17362
17428
|
DesktopIconClickedEvent,
|
|
17429
|
+
DockIconClickedEvent_2 as DockIconClickedEvent,
|
|
17363
17430
|
ExtensionsEnabledEvent,
|
|
17364
17431
|
ExtensionsDisabledEvent,
|
|
17365
17432
|
ExtensionsExcludedEvent,
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -4952,6 +4952,31 @@ declare type DisplayMetadata = {
|
|
|
4952
4952
|
readonly glyph?: string;
|
|
4953
4953
|
};
|
|
4954
4954
|
|
|
4955
|
+
declare type DockIconClickedEvent = OpenFin_2.SystemEvents.DockIconClickedEvent;
|
|
4956
|
+
|
|
4957
|
+
/**
|
|
4958
|
+
* Generated on macOS when the user clicks this runtime's dock icon, or opens the app again from Finder, while the
|
|
4959
|
+
* runtime is running. Only raised to listeners in this runtime, not to other connected runtimes.
|
|
4960
|
+
* @remarks macOS only. On Windows and Linux, launching an application that is already running raises
|
|
4961
|
+
* `run-requested` on that application instead.
|
|
4962
|
+
*
|
|
4963
|
+
* By default, the platform provider handles this event in
|
|
4964
|
+
* {@link OpenFin.PlatformProvider.handleDockIconClicked PlatformProvider.handleDockIconClicked}, which reopens the
|
|
4965
|
+
* platform when it has no windows. The default reopen requires `platform.allowLaunchIntoPlatform: true`.
|
|
4966
|
+
* @interface
|
|
4967
|
+
*/
|
|
4968
|
+
declare type DockIconClickedEvent_2 = BaseEvent_9 & {
|
|
4969
|
+
type: 'dock-icon-clicked';
|
|
4970
|
+
/**
|
|
4971
|
+
* Whether macOS found any visible windows in this runtime. Hidden windows do not count.
|
|
4972
|
+
*/
|
|
4973
|
+
hasVisibleWindows: boolean;
|
|
4974
|
+
/**
|
|
4975
|
+
* UUID of the application the runtime was started with, if any.
|
|
4976
|
+
*/
|
|
4977
|
+
uuid?: string;
|
|
4978
|
+
};
|
|
4979
|
+
|
|
4955
4980
|
/**
|
|
4956
4981
|
* @interface
|
|
4957
4982
|
*
|
|
@@ -5463,7 +5488,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
|
|
|
5463
5488
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5464
5489
|
* from which they propagate).
|
|
5465
5490
|
*/
|
|
5466
|
-
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5491
|
+
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | DockIconClickedEvent_2 | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5467
5492
|
|
|
5468
5493
|
/**
|
|
5469
5494
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
|
|
@@ -12898,6 +12923,47 @@ declare interface PlatformProvider {
|
|
|
12898
12923
|
* @returns {Promise<void>}
|
|
12899
12924
|
*/
|
|
12900
12925
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
12926
|
+
/**
|
|
12927
|
+
* Handles the user clicking the macOS dock icon, or opening the app again from Finder, while the platform is running.
|
|
12928
|
+
* Only called for the platform the runtime was started with, and only after its startup content (its snapshot or
|
|
12929
|
+
* `appManifestUrl`) has finished launching or failed to.
|
|
12930
|
+
* Clicks while a previous call is still running are ignored.
|
|
12931
|
+
* Never called on Windows or Linux, where launching the platform again raises `run-requested` instead.
|
|
12932
|
+
*
|
|
12933
|
+
* By default, if no windows are visible and the platform has no other windows, including hidden or minimized ones,
|
|
12934
|
+
* calls {@link PlatformProvider#handleRunRequested PlatformProvider.handleRunRequested} with the platform's manifest
|
|
12935
|
+
* and startup `userAppConfigArgs`, the same as relaunching it. Otherwise it does nothing.
|
|
12936
|
+
*
|
|
12937
|
+
* @remarks
|
|
12938
|
+
* The default `handleRunRequested` reopens the manifest's snapshot through
|
|
12939
|
+
* {@link PlatformProvider#launchIntoPlatform PlatformProvider.launchIntoPlatform}, so the platform manifest must set
|
|
12940
|
+
* `platform.allowLaunchIntoPlatform` to `true`. Otherwise nothing reopens and a security notice is logged.
|
|
12941
|
+
* Platforms that override `handleRunRequested` or `handleDockIconClicked` are not affected.
|
|
12942
|
+
*
|
|
12943
|
+
* macOS counts any shown window as visible, including the platform provider window. If the provider window is shown,
|
|
12944
|
+
* the default does nothing.
|
|
12945
|
+
* @param payload The {@link OpenFin.SystemEvents.DockIconClickedEvent dock-icon-clicked} system event.
|
|
12946
|
+
*
|
|
12947
|
+
* @example
|
|
12948
|
+
*
|
|
12949
|
+
* ```js
|
|
12950
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
12951
|
+
* class Override extends PlatformProvider {
|
|
12952
|
+
* async handleDockIconClicked(payload) {
|
|
12953
|
+
* if (payload.hasVisibleWindows) {
|
|
12954
|
+
* // Bring a window forward instead of doing nothing
|
|
12955
|
+
* return;
|
|
12956
|
+
* }
|
|
12957
|
+
* return super.handleDockIconClicked(payload);
|
|
12958
|
+
* }
|
|
12959
|
+
* }
|
|
12960
|
+
* return new Override();
|
|
12961
|
+
* }
|
|
12962
|
+
*
|
|
12963
|
+
* fin.Platform.init({ overrideCallback });
|
|
12964
|
+
* ```
|
|
12965
|
+
*/
|
|
12966
|
+
handleDockIconClicked(payload: DockIconClickedEvent): Promise<void>;
|
|
12901
12967
|
/**
|
|
12902
12968
|
* @experimental
|
|
12903
12969
|
*
|
|
@@ -17360,6 +17426,7 @@ declare namespace SystemEvents {
|
|
|
17360
17426
|
AppVersionEventType,
|
|
17361
17427
|
ApplicationCreatedEvent,
|
|
17362
17428
|
DesktopIconClickedEvent,
|
|
17429
|
+
DockIconClickedEvent_2 as DockIconClickedEvent,
|
|
17363
17430
|
ExtensionsEnabledEvent,
|
|
17364
17431
|
ExtensionsDisabledEvent,
|
|
17365
17432
|
ExtensionsExcludedEvent,
|
package/out/mock-public.d.ts
CHANGED
|
@@ -4952,6 +4952,31 @@ declare type DisplayMetadata = {
|
|
|
4952
4952
|
readonly glyph?: string;
|
|
4953
4953
|
};
|
|
4954
4954
|
|
|
4955
|
+
declare type DockIconClickedEvent = OpenFin_2.SystemEvents.DockIconClickedEvent;
|
|
4956
|
+
|
|
4957
|
+
/**
|
|
4958
|
+
* Generated on macOS when the user clicks this runtime's dock icon, or opens the app again from Finder, while the
|
|
4959
|
+
* runtime is running. Only raised to listeners in this runtime, not to other connected runtimes.
|
|
4960
|
+
* @remarks macOS only. On Windows and Linux, launching an application that is already running raises
|
|
4961
|
+
* `run-requested` on that application instead.
|
|
4962
|
+
*
|
|
4963
|
+
* By default, the platform provider handles this event in
|
|
4964
|
+
* {@link OpenFin.PlatformProvider.handleDockIconClicked PlatformProvider.handleDockIconClicked}, which reopens the
|
|
4965
|
+
* platform when it has no windows. The default reopen requires `platform.allowLaunchIntoPlatform: true`.
|
|
4966
|
+
* @interface
|
|
4967
|
+
*/
|
|
4968
|
+
declare type DockIconClickedEvent_2 = BaseEvent_9 & {
|
|
4969
|
+
type: 'dock-icon-clicked';
|
|
4970
|
+
/**
|
|
4971
|
+
* Whether macOS found any visible windows in this runtime. Hidden windows do not count.
|
|
4972
|
+
*/
|
|
4973
|
+
hasVisibleWindows: boolean;
|
|
4974
|
+
/**
|
|
4975
|
+
* UUID of the application the runtime was started with, if any.
|
|
4976
|
+
*/
|
|
4977
|
+
uuid?: string;
|
|
4978
|
+
};
|
|
4979
|
+
|
|
4955
4980
|
/**
|
|
4956
4981
|
* @interface
|
|
4957
4982
|
*
|
|
@@ -5463,7 +5488,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
|
|
|
5463
5488
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5464
5489
|
* from which they propagate).
|
|
5465
5490
|
*/
|
|
5466
|
-
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5491
|
+
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | DockIconClickedEvent_2 | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5467
5492
|
|
|
5468
5493
|
/**
|
|
5469
5494
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
|
|
@@ -12898,6 +12923,47 @@ declare interface PlatformProvider {
|
|
|
12898
12923
|
* @returns {Promise<void>}
|
|
12899
12924
|
*/
|
|
12900
12925
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
12926
|
+
/**
|
|
12927
|
+
* Handles the user clicking the macOS dock icon, or opening the app again from Finder, while the platform is running.
|
|
12928
|
+
* Only called for the platform the runtime was started with, and only after its startup content (its snapshot or
|
|
12929
|
+
* `appManifestUrl`) has finished launching or failed to.
|
|
12930
|
+
* Clicks while a previous call is still running are ignored.
|
|
12931
|
+
* Never called on Windows or Linux, where launching the platform again raises `run-requested` instead.
|
|
12932
|
+
*
|
|
12933
|
+
* By default, if no windows are visible and the platform has no other windows, including hidden or minimized ones,
|
|
12934
|
+
* calls {@link PlatformProvider#handleRunRequested PlatformProvider.handleRunRequested} with the platform's manifest
|
|
12935
|
+
* and startup `userAppConfigArgs`, the same as relaunching it. Otherwise it does nothing.
|
|
12936
|
+
*
|
|
12937
|
+
* @remarks
|
|
12938
|
+
* The default `handleRunRequested` reopens the manifest's snapshot through
|
|
12939
|
+
* {@link PlatformProvider#launchIntoPlatform PlatformProvider.launchIntoPlatform}, so the platform manifest must set
|
|
12940
|
+
* `platform.allowLaunchIntoPlatform` to `true`. Otherwise nothing reopens and a security notice is logged.
|
|
12941
|
+
* Platforms that override `handleRunRequested` or `handleDockIconClicked` are not affected.
|
|
12942
|
+
*
|
|
12943
|
+
* macOS counts any shown window as visible, including the platform provider window. If the provider window is shown,
|
|
12944
|
+
* the default does nothing.
|
|
12945
|
+
* @param payload The {@link OpenFin.SystemEvents.DockIconClickedEvent dock-icon-clicked} system event.
|
|
12946
|
+
*
|
|
12947
|
+
* @example
|
|
12948
|
+
*
|
|
12949
|
+
* ```js
|
|
12950
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
12951
|
+
* class Override extends PlatformProvider {
|
|
12952
|
+
* async handleDockIconClicked(payload) {
|
|
12953
|
+
* if (payload.hasVisibleWindows) {
|
|
12954
|
+
* // Bring a window forward instead of doing nothing
|
|
12955
|
+
* return;
|
|
12956
|
+
* }
|
|
12957
|
+
* return super.handleDockIconClicked(payload);
|
|
12958
|
+
* }
|
|
12959
|
+
* }
|
|
12960
|
+
* return new Override();
|
|
12961
|
+
* }
|
|
12962
|
+
*
|
|
12963
|
+
* fin.Platform.init({ overrideCallback });
|
|
12964
|
+
* ```
|
|
12965
|
+
*/
|
|
12966
|
+
handleDockIconClicked(payload: DockIconClickedEvent): Promise<void>;
|
|
12901
12967
|
/**
|
|
12902
12968
|
* @experimental
|
|
12903
12969
|
*
|
|
@@ -17360,6 +17426,7 @@ declare namespace SystemEvents {
|
|
|
17360
17426
|
AppVersionEventType,
|
|
17361
17427
|
ApplicationCreatedEvent,
|
|
17362
17428
|
DesktopIconClickedEvent,
|
|
17429
|
+
DockIconClickedEvent_2 as DockIconClickedEvent,
|
|
17363
17430
|
ExtensionsEnabledEvent,
|
|
17364
17431
|
ExtensionsDisabledEvent,
|
|
17365
17432
|
ExtensionsExcludedEvent,
|
package/out/stub.d.ts
CHANGED
|
@@ -5059,6 +5059,31 @@ declare type DisplayMetadata = {
|
|
|
5059
5059
|
readonly glyph?: string;
|
|
5060
5060
|
};
|
|
5061
5061
|
|
|
5062
|
+
declare type DockIconClickedEvent = OpenFin_2.SystemEvents.DockIconClickedEvent;
|
|
5063
|
+
|
|
5064
|
+
/**
|
|
5065
|
+
* Generated on macOS when the user clicks this runtime's dock icon, or opens the app again from Finder, while the
|
|
5066
|
+
* runtime is running. Only raised to listeners in this runtime, not to other connected runtimes.
|
|
5067
|
+
* @remarks macOS only. On Windows and Linux, launching an application that is already running raises
|
|
5068
|
+
* `run-requested` on that application instead.
|
|
5069
|
+
*
|
|
5070
|
+
* By default, the platform provider handles this event in
|
|
5071
|
+
* {@link OpenFin.PlatformProvider.handleDockIconClicked PlatformProvider.handleDockIconClicked}, which reopens the
|
|
5072
|
+
* platform when it has no windows. The default reopen requires `platform.allowLaunchIntoPlatform: true`.
|
|
5073
|
+
* @interface
|
|
5074
|
+
*/
|
|
5075
|
+
declare type DockIconClickedEvent_2 = BaseEvent_9 & {
|
|
5076
|
+
type: 'dock-icon-clicked';
|
|
5077
|
+
/**
|
|
5078
|
+
* Whether macOS found any visible windows in this runtime. Hidden windows do not count.
|
|
5079
|
+
*/
|
|
5080
|
+
hasVisibleWindows: boolean;
|
|
5081
|
+
/**
|
|
5082
|
+
* UUID of the application the runtime was started with, if any.
|
|
5083
|
+
*/
|
|
5084
|
+
uuid?: string;
|
|
5085
|
+
};
|
|
5086
|
+
|
|
5062
5087
|
/**
|
|
5063
5088
|
* @interface
|
|
5064
5089
|
*
|
|
@@ -5575,7 +5600,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
|
|
|
5575
5600
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5576
5601
|
* from which they propagate).
|
|
5577
5602
|
*/
|
|
5578
|
-
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5603
|
+
declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | DockIconClickedEvent_2 | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent | ExtensionLoadedEvent | ExtensionReadyEvent | ThemePaletteChangedEvent | NativeThemeUpdatedEvent;
|
|
5579
5604
|
|
|
5580
5605
|
/**
|
|
5581
5606
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
|
|
@@ -13375,6 +13400,47 @@ declare interface PlatformProvider {
|
|
|
13375
13400
|
* @returns {Promise<void>}
|
|
13376
13401
|
*/
|
|
13377
13402
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
13403
|
+
/**
|
|
13404
|
+
* Handles the user clicking the macOS dock icon, or opening the app again from Finder, while the platform is running.
|
|
13405
|
+
* Only called for the platform the runtime was started with, and only after its startup content (its snapshot or
|
|
13406
|
+
* `appManifestUrl`) has finished launching or failed to.
|
|
13407
|
+
* Clicks while a previous call is still running are ignored.
|
|
13408
|
+
* Never called on Windows or Linux, where launching the platform again raises `run-requested` instead.
|
|
13409
|
+
*
|
|
13410
|
+
* By default, if no windows are visible and the platform has no other windows, including hidden or minimized ones,
|
|
13411
|
+
* calls {@link PlatformProvider#handleRunRequested PlatformProvider.handleRunRequested} with the platform's manifest
|
|
13412
|
+
* and startup `userAppConfigArgs`, the same as relaunching it. Otherwise it does nothing.
|
|
13413
|
+
*
|
|
13414
|
+
* @remarks
|
|
13415
|
+
* The default `handleRunRequested` reopens the manifest's snapshot through
|
|
13416
|
+
* {@link PlatformProvider#launchIntoPlatform PlatformProvider.launchIntoPlatform}, so the platform manifest must set
|
|
13417
|
+
* `platform.allowLaunchIntoPlatform` to `true`. Otherwise nothing reopens and a security notice is logged.
|
|
13418
|
+
* Platforms that override `handleRunRequested` or `handleDockIconClicked` are not affected.
|
|
13419
|
+
*
|
|
13420
|
+
* macOS counts any shown window as visible, including the platform provider window. If the provider window is shown,
|
|
13421
|
+
* the default does nothing.
|
|
13422
|
+
* @param payload The {@link OpenFin.SystemEvents.DockIconClickedEvent dock-icon-clicked} system event.
|
|
13423
|
+
*
|
|
13424
|
+
* @example
|
|
13425
|
+
*
|
|
13426
|
+
* ```js
|
|
13427
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
13428
|
+
* class Override extends PlatformProvider {
|
|
13429
|
+
* async handleDockIconClicked(payload) {
|
|
13430
|
+
* if (payload.hasVisibleWindows) {
|
|
13431
|
+
* // Bring a window forward instead of doing nothing
|
|
13432
|
+
* return;
|
|
13433
|
+
* }
|
|
13434
|
+
* return super.handleDockIconClicked(payload);
|
|
13435
|
+
* }
|
|
13436
|
+
* }
|
|
13437
|
+
* return new Override();
|
|
13438
|
+
* }
|
|
13439
|
+
*
|
|
13440
|
+
* fin.Platform.init({ overrideCallback });
|
|
13441
|
+
* ```
|
|
13442
|
+
*/
|
|
13443
|
+
handleDockIconClicked(payload: DockIconClickedEvent): Promise<void>;
|
|
13378
13444
|
/**
|
|
13379
13445
|
* @experimental
|
|
13380
13446
|
*
|
|
@@ -17851,6 +17917,7 @@ declare namespace SystemEvents {
|
|
|
17851
17917
|
AppVersionEventWithId,
|
|
17852
17918
|
ApplicationCreatedEvent,
|
|
17853
17919
|
DesktopIconClickedEvent,
|
|
17920
|
+
DockIconClickedEvent_2 as DockIconClickedEvent,
|
|
17854
17921
|
SystemShutdownEvent,
|
|
17855
17922
|
ExtensionsEnabledEvent,
|
|
17856
17923
|
ExtensionsDisabledEvent,
|