@openfin/workspace-platform 8.1.6 → 8.2.0

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.
Files changed (55) hide show
  1. package/client-api/src/shapes/common.d.ts +8 -0
  2. package/client-api/src/shapes/dock.d.ts +63 -0
  3. package/client-api/src/shapes/index.d.ts +2 -0
  4. package/client-api/src/shapes/provider.d.ts +18 -0
  5. package/client-api/src/shapes/store.d.ts +2 -15
  6. package/client-api-platform/src/api/app-directory.d.ts +2 -1
  7. package/client-api-platform/src/api/browser/browser-module.d.ts +1 -1
  8. package/client-api-platform/src/api/browser/index.d.ts +2 -2
  9. package/client-api-platform/src/api/context-menu/index.d.ts +5 -5
  10. package/client-api-platform/src/api/context-menu/utils.d.ts +6 -7
  11. package/client-api-platform/src/api/index.d.ts +1 -1
  12. package/client-api-platform/src/api/pages/helper.d.ts +1 -1
  13. package/client-api-platform/src/api/pages/index.d.ts +1 -1
  14. package/client-api-platform/src/api/storage.d.ts +1 -2
  15. package/client-api-platform/src/api/theming.d.ts +1 -1
  16. package/client-api-platform/src/init/browser-window-focus.d.ts +1 -1
  17. package/client-api-platform/src/init/override-callback.d.ts +1 -1
  18. package/client-api-platform/src/init/utils.d.ts +7 -6
  19. package/client-api-platform/src/shapes.d.ts +25 -30
  20. package/common/src/api/action.d.ts +48 -0
  21. package/common/src/api/overrides.d.ts +20 -0
  22. package/common/src/api/pages/attached.d.ts +1 -18
  23. package/common/src/api/pages/index.d.ts +1 -1
  24. package/common/src/api/pages/shapes.d.ts +1 -1
  25. package/common/src/api/protocol/browser.d.ts +67 -0
  26. package/{client-api-platform/src/api/protocol.d.ts → common/src/api/protocol/workspace-platform.d.ts} +4 -4
  27. package/common/src/api/{protocol.d.ts → protocol/workspace.d.ts} +10 -10
  28. package/common/src/api/theming.d.ts +1 -1
  29. package/common/src/api/workspaces/index.d.ts +1 -1
  30. package/common/src/utils/application.d.ts +3 -11
  31. package/common/src/utils/channels.d.ts +1 -1
  32. package/common/src/utils/context-menu.d.ts +2 -3
  33. package/common/src/utils/defer-show.d.ts +2 -2
  34. package/common/src/utils/env.d.ts +1 -1
  35. package/common/src/utils/global-context-menu.d.ts +1 -2
  36. package/common/src/utils/indicators/helper.d.ts +1 -1
  37. package/common/src/utils/landing-page.d.ts +2 -3
  38. package/common/src/utils/layout.d.ts +2 -3
  39. package/common/src/utils/local-storage-key.d.ts +2 -1
  40. package/common/src/utils/menu-config.d.ts +1 -1
  41. package/common/src/utils/menu-window-provider.d.ts +4 -5
  42. package/common/src/utils/page-tab-context-menu.d.ts +1 -2
  43. package/common/src/utils/route.d.ts +1 -1
  44. package/common/src/utils/router/base.d.ts +2 -1
  45. package/common/src/utils/snapshot.d.ts +1 -1
  46. package/common/src/utils/usage-register.d.ts +2 -0
  47. package/common/src/utils/window.d.ts +17 -10
  48. package/common/src/utils/workspace-modals.d.ts +1 -1
  49. package/index.js +2 -1
  50. package/index.js.LICENSE.txt +14 -0
  51. package/index.js.map +1 -1
  52. package/package.json +1 -1
  53. package/search-api/src/provider/remote/registration.d.ts +4 -1
  54. package/search-api/src/shapes.d.ts +10 -14
  55. package/common/src/api/browser-protocol.d.ts +0 -28
@@ -1,4 +1,3 @@
1
- /// <reference types="openfin-adapter/fin" />
2
1
  /**
3
2
  * All of the remote procedures that can be called in the
4
3
  * a Workspace Platform's address space.
@@ -8,7 +7,7 @@
8
7
  * All of the registered channel action handlers can be found here in the platform's overrides:
9
8
  * @see link: [Provider Protocol Handlers](https://github.com/openfin/workspace/client-api-platform/src/init/override-callback.ts)
10
9
  */
11
- export declare enum ChannelAction {
10
+ export declare enum WorkspacePlatformChannelAction {
12
11
  LaunchApp = "launchApp",
13
12
  SavePage = "savePage",
14
13
  GetSavedPage = "getSavedPage",
@@ -49,6 +48,7 @@ export declare enum ChannelAction {
49
48
  SetActiveWorkspace = "setActiveWorkspace",
50
49
  IsBrowserInitialized = "isBrowserInitialized"
51
50
  }
51
+ export declare const internalGetWorkspacePlatformChannelClient: (identity: OpenFin.ApplicationIdentity) => Promise<any>;
52
52
  /**
53
53
  * Get a channel client for a specific Workspace platform.
54
54
  *
@@ -59,7 +59,7 @@ export declare enum ChannelAction {
59
59
  *
60
60
  * @returns the channel client for the Workspace platform.
61
61
  */
62
- export declare const getChannelClient: (identity: OpenFin.ApplicationIdentity) => Promise<import("openfin-adapter").ChannelClient>;
62
+ export declare const getWorkspacePlatformChannelClient: (identity: OpenFin.ApplicationIdentity) => Promise<import("@openfin/core/src/api/interappbus/channel/client").default>;
63
63
  /**
64
64
  * Get a channel client for a specific Workspace platform.
65
65
  *
@@ -67,4 +67,4 @@ export declare const getChannelClient: (identity: OpenFin.ApplicationIdentity) =
67
67
  *
68
68
  * @returns the channel client for the Workspace platform.
69
69
  */
70
- export declare const getBrowserChannelClient: (identity: OpenFin.ApplicationIdentity) => Promise<import("openfin-adapter").ChannelClient>;
70
+ export declare const getBrowserChannelClient: (identity: OpenFin.ApplicationIdentity) => Promise<import("@openfin/core/src/api/interappbus/channel/client").default>;
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  /** The name of the channel for the centralized workspace protocol. */
3
3
  export declare const channelName = "__of_workspace_protocol__";
4
4
  /**
@@ -10,18 +10,18 @@ export declare const channelName = "__of_workspace_protocol__";
10
10
  * All of the registered channel action handlers can be found here:
11
11
  * @see link: [Provider Protocol Handlers](https://github.com/openfin/workspace/provider/src/api/protocol.ts)
12
12
  */
13
- export declare enum ChannelAction {
14
- RegisterStorefrontProvider = "register-storefront-provider",
15
- DeregisterStorefrontProvider = "deregister-storefront-provider",
16
- GetStorefrontProviders = "get-storefront-providers",
17
- HideStorefront = "hide-storefront",
13
+ export declare enum WorkspaceChannelAction {
14
+ RegisterProvider = "register-provider",
15
+ DeregisterProvider = "deregister-provider",
16
+ CreateProviderWindow = "create-provider-window",
17
+ GetProviders = "get-providers",
18
+ ShowProviderWindow = "show-provider-window",
19
+ HideProviderWindow = "hide-provider-window",
18
20
  GetStorefrontProviderApps = "get-storefront-provider-apps",
19
21
  GetStorefrontProviderLandingPage = "get-storefront-provider-landing-page",
20
22
  GetStorefrontProviderFooter = "get-storefront-provider-footer",
21
23
  GetStorefrontProviderNavigation = "get-storefront-provider-navigation",
22
24
  LaunchStorefrontProviderApp = "launch-storefront-provider-app",
23
- ShowStorefront = "show-storefront",
24
- CreateStorefrontWindow = "create-storefront-window",
25
25
  ShowHome = "show-home",
26
26
  HideHome = "hide-home",
27
27
  AssignHomeSearchContext = "assign-home-search-context",
@@ -30,7 +30,7 @@ export declare enum ChannelAction {
30
30
  GetComputedPlatformTheme = "get-computed-platform-theme"
31
31
  }
32
32
  export interface ChannelClient extends OpenFin.ChannelClient {
33
- dispatch: (action: ChannelAction, payload: any) => Promise<any>;
33
+ dispatch: (action: WorkspaceChannelAction, payload: any) => Promise<any>;
34
34
  }
35
35
  /**
36
36
  * Get a channel client for the centralized Workspace protocol.
@@ -41,7 +41,7 @@ export interface ChannelClient extends OpenFin.ChannelClient {
41
41
  * The channel client can execute remote procedures on the provider via its `dispatch` function.
42
42
  * A call to the `dispatch` function will block until the channel action has concluded execution
43
43
  * in the Workspace Provider's address space.
44
- * For a list of supported procedures, see the `ChannelAction` enum.
44
+ * For a list of supported procedures, see the `WorkspaceChannelAction` enum.
45
45
  *
46
46
  * @returns the channel client for the centralized workspace protocol.
47
47
  */
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  import type { ThemePaletteSet } from '@openfin/ui-library';
3
3
  export interface ComputedThemes extends Array<ComputedTheme> {
4
4
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  export interface Workspace {
3
3
  workspaceId: string;
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  export declare enum ApplicationUUID {
3
3
  /**
4
4
  * The UUID of workspace.
@@ -26,13 +26,5 @@ export declare type ApplicationInfoExtended = OpenFin.ApplicationInfo & {
26
26
  userAppConfigArgs: any;
27
27
  };
28
28
  };
29
- export declare const currentOFAppIdentity: {
30
- uuid: string;
31
- name: string;
32
- };
33
- export declare const workspaceOFAppIdentity: {
34
- name: ApplicationUUID;
35
- uuid: ApplicationUUID;
36
- };
37
- export declare const getCurrentOFApplication: () => import("openfin-adapter").Application;
38
- export declare const getWorkspaceOFApplication: () => import("openfin-adapter").Application;
29
+ export declare const getCurrentOFApplication: () => import("@openfin/core/src/api/application").Application;
30
+ export declare const getWorkspaceOFApplication: () => import("@openfin/core/src/api/application").Application;
@@ -5,4 +5,4 @@
5
5
  * @param channelName the name of the channel to connect to.
6
6
  * @returns the function to connect to the channel.
7
7
  */
8
- export default function makeGetChannelClient(channelName: string): () => Promise<import("openfin-adapter").ChannelClient>;
8
+ export default function makeGetChannelClient(channelName: string): () => Promise<import("@openfin/core/src/api/interappbus/channel/client").default>;
@@ -1,5 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
2
- import { _Window } from 'openfin-adapter/src/api/window';
1
+ /// <reference types="@openfin/core" />
3
2
  export declare enum MenuItemType {
4
3
  Label = "normal",
5
4
  Separator = "separator",
@@ -9,7 +8,7 @@ export declare enum MenuItemType {
9
8
  export declare type ShowContextMenuResponse = OpenFin.MenuResult & {
10
9
  data: string;
11
10
  };
12
- export default function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: _Window): Promise<ShowContextMenuResponse>;
11
+ export default function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: OpenFin.Window): Promise<ShowContextMenuResponse>;
13
12
  export declare const Separator: OpenFin.MenuItemTemplate;
14
13
  export declare const DefaultSaveMenuBounds: {
15
14
  width: number;
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  interface InternalWindowOptions extends OpenFin.PlatformWindowCreationOptions {
3
3
  workspacePlatform: OpenFin.WindowOptions['workspacePlatform'] & {
4
4
  _internalAutoShow: boolean;
@@ -28,7 +28,7 @@ export declare const applyDeferShowOptions: (opts: OpenFin.PlatformWindowCreatio
28
28
  * @param superCreateWindow the create window method to decorate.
29
29
  * @returns the `createWindow` method wrapped with this middleware.
30
30
  */
31
- export declare const withDeferShow: (superCreateWindow: (opts: OpenFin.PlatformWindowCreationOptions, callerIdentity: OpenFin.Identity) => Promise<OpenFin.Window>) => (opts: OpenFin.PlatformWindowCreationOptions, callerIdentity?: OpenFin.Identity) => Promise<import("openfin-adapter").Window>;
31
+ export declare const withDeferShow: (superCreateWindow: (opts: OpenFin.PlatformWindowCreationOptions, callerIdentity: OpenFin.Identity) => Promise<OpenFin.Window>) => (opts: OpenFin.PlatformWindowCreationOptions, callerIdentity?: OpenFin.Identity) => Promise<import("@openfin/core/src/api/window")._Window>;
32
32
  /**
33
33
  * Assert if the window is able to be shown or not.
34
34
  * Upon calling `setCanShow(true)`, if the window was previously prevented
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
11
11
  export declare const isWindowDefinedWithIndexDB: boolean;
12
12
  export declare const finUUID: string;
13
13
  export declare const finName: string;
14
- export declare const finEntityType: "" | import("openfin-adapter/src/shapes/EntityType").EntityType;
14
+ export declare const finEntityType: "" | "window" | "view" | "iframe" | "external connection" | "unknown";
15
15
  export declare const isEnvLocal: boolean;
16
16
  export declare const isEnvDev: boolean;
17
17
  export declare const isEnvStaging: boolean;
@@ -1,4 +1,3 @@
1
- import { NamedIdentity } from 'openfin-adapter/src/identity';
2
1
  import { MenuItemType } from '../../../common/src/utils/context-menu';
3
2
  import * as WP from '../../../client-api-platform/src/index';
4
3
  import { GlobalContextMenuItemTemplate, GlobalContextMenuOptionType, Workspace } from '../../../client-api-platform/src/shapes';
@@ -40,4 +39,4 @@ export declare const getSavedWorkspaceContextMenuOptions: (activeWorkspace: Work
40
39
  workspaceId: string;
41
40
  };
42
41
  }[];
43
- export declare const getGlobalContextMenuTemplate: (winIdentity: NamedIdentity) => Promise<GlobalContextMenuItemTemplate[]>;
42
+ export declare const getGlobalContextMenuTemplate: (winIdentity: OpenFin.Identity) => Promise<GlobalContextMenuItemTemplate[]>;
@@ -1,2 +1,2 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  export default function makeShowIndicator(opts?: OpenFin.PlatformWindowCreationOptions): (namespace: string, url: string, message: string, type: string) => Promise<void>;
@@ -1,10 +1,9 @@
1
- import { NamedIdentity } from 'openfin-adapter/src/identity';
2
1
  interface LandingPageUrls {
3
2
  newPageUrl: string | false;
4
3
  newTabUrl: string | false;
5
4
  }
6
- export declare const getLandingPageUrls: (winIdentity?: NamedIdentity) => Promise<LandingPageUrls>;
5
+ export declare const getLandingPageUrls: (winIdentity?: OpenFin.Identity) => Promise<LandingPageUrls>;
7
6
  export declare const checkHasNewTabUrl: () => Promise<boolean>;
8
7
  export declare const getNewLandingTabViewOptions: (target: OpenFin.Identity) => Promise<OpenFin.PlatformViewCreationOptions>;
9
- export declare const makeNewLandingPage: (winIdentity?: NamedIdentity) => Promise<import("client-api-platform").PageWithUpdatableRuntimeAttribs>;
8
+ export declare const makeNewLandingPage: (winIdentity?: OpenFin.Identity) => Promise<import("client-api-platform").PageWithUpdatableRuntimeAttribs>;
10
9
  export {};
@@ -1,5 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
2
- import { NamedIdentity } from 'openfin-adapter/src/identity';
1
+ /// <reference types="@openfin/core" />
3
2
  import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
4
3
  export declare type LayoutComponentStateExtended = OpenFin.LayoutComponent['componentState'] & {
5
4
  name: string;
@@ -48,7 +47,7 @@ export declare const cloneLayoutAndFillInViewNames: (layout: any) => any;
48
47
  */
49
48
  export declare const cloneLayoutAndRemoveNames: (layout: any) => any;
50
49
  export declare const mapContentComponentState: (content: OpenFin.LayoutContent | LayoutContentExtended) => LayoutComponentStateExtended[];
51
- export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: NamedIdentity) => Promise<any>;
50
+ export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
52
51
  export declare const isLayoutTabActive: (tabSelector: string) => boolean;
53
52
  export declare const containerId = "layout_container";
54
53
  export declare const getViewComponents: () => LayoutContentExtended;
@@ -3,6 +3,7 @@ declare enum LocalStorageKey {
3
3
  LastFocusedBrowserWindow = "lastFocusedBrowserWindow",
4
4
  MachineName = "machineName",
5
5
  NewTabPageLayout = "NewTabPageLayout",
6
- NewTabPageSort = "NewTabPageSort"
6
+ NewTabPageSort = "NewTabPageSort",
7
+ DockPosition = "DockPosition"
7
8
  }
8
9
  export default LocalStorageKey;
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  import type { OptionalExceptFor } from '../../../common/src/utils/types';
3
3
  export interface ModalResponseContent {
4
4
  title: string;
@@ -1,5 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
2
- import { NamedIdentity } from 'openfin-adapter/src/identity';
1
+ /// <reference types="@openfin/core" />
3
2
  import { ModalResponseContent, ResponseModalConfig } from '../../../common/src/utils/menu-config';
4
3
  import { Listener } from '../../../common/src/utils/shared-emitter';
5
4
  import type { OptionalExceptFor } from '../../../common/src/utils/types';
@@ -36,9 +35,9 @@ export declare function createMenuPosition(windowOptions: OptionalExceptFor<Open
36
35
  top: number;
37
36
  left: number;
38
37
  }>;
39
- export declare function showChildWindow({ options, parameters }: ShowChildOptions): Promise<import("openfin-adapter").Window>;
40
- export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: NamedIdentity) => Promise<import("@common/utils/window").Point>;
41
- export declare const waitForModalResponse: ({ options, content }: ResponseModalOptions) => Promise<{
38
+ export declare function showChildWindow({ options, parameters }: ShowChildOptions, shouldCenterOnMonitor?: boolean): Promise<import("@openfin/core/src/api/window")._Window>;
39
+ export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, shouldCenterOnMonitor?: boolean) => Promise<import("@common/utils/window").Point>;
40
+ export declare const waitForModalResponse: ({ options, content }: ResponseModalOptions, shouldCenterOnMonitor?: boolean) => Promise<{
42
41
  data: ModalResponse;
43
42
  }>;
44
43
  export {};
@@ -1,3 +1,2 @@
1
- import { NamedIdentity } from 'openfin-adapter/src/identity';
2
1
  import { PageTabContextMenuItemTemplate } from '../../../client-api-platform/src/shapes';
3
- export declare const getPageTabMenuTemplate: (pageId: string, winIdentity: NamedIdentity) => Promise<PageTabContextMenuItemTemplate[]>;
2
+ export declare const getPageTabMenuTemplate: (pageId: string, winIdentity: OpenFin.Identity) => Promise<PageTabContextMenuItemTemplate[]>;
@@ -7,7 +7,7 @@ export declare enum PageRoute {
7
7
  Home = "/home/",
8
8
  HomeSearch = "/home/?deeplink=search",
9
9
  HomePagesRename = "/home/pages/rename/",
10
- Dock = "/home/dock/",
10
+ Dock = "/dock/",
11
11
  BrowserPagesLanding = "/browser/pages/landing/",
12
12
  HomeIndicator = "/home/indicator/",
13
13
  Browser = "/browser/",
@@ -9,7 +9,8 @@ export declare enum Zone {
9
9
  Home = "/home",
10
10
  Browser = "/browser",
11
11
  Provider = "/provider",
12
- Storefront = "/storefront"
12
+ Storefront = "/storefront",
13
+ Dock = "/dock"
13
14
  }
14
15
  export declare function getRouterZone(): "" | Zone;
15
16
  /**
@@ -1,4 +1,4 @@
1
- /// <reference types="openfin-adapter/fin" />
1
+ /// <reference types="@openfin/core" />
2
2
  export declare type SnapshotDetailsExtended = OpenFin.Snapshot['snapshotDetails'] & {
3
3
  machineId: string;
4
4
  machineName?: string;
@@ -1,11 +1,13 @@
1
1
  export interface RegisterUsageStatus {
2
2
  apiVersion?: string;
3
+ componentVersion?: string;
3
4
  allowed: boolean;
4
5
  rejectionCode?: string;
5
6
  }
6
7
  export declare const registerBrowserUsage: (status: RegisterUsageStatus) => Promise<void>;
7
8
  export declare const registerHomeUsage: (status: RegisterUsageStatus) => Promise<void>;
8
9
  export declare const registerStorefrontUsage: (status: RegisterUsageStatus) => Promise<void>;
10
+ export declare const registerDockUsage: (status: RegisterUsageStatus) => Promise<void>;
9
11
  export declare const registerNotificationUsage: (status: RegisterUsageStatus) => Promise<void>;
10
12
  export declare const registerPlatformUsage: (status: RegisterUsageStatus) => Promise<void>;
11
13
  export declare const registerThemingUsage: (status: RegisterUsageStatus) => Promise<void>;
@@ -1,8 +1,5 @@
1
- /// <reference types="openfin-adapter/fin" />
2
- import type { Fin } from 'openfin-adapter';
3
- import type { _Window } from 'openfin-adapter/src/api/window';
1
+ /// <reference types="@openfin/core" />
4
2
  import { ApplicationUUID } from './application';
5
- export declare type WindowFin = Fin<'window'>;
6
3
  export declare enum WindowName {
7
4
  Home = "openfin-home",
8
5
  Dock = "openfin-dock",
@@ -18,6 +15,7 @@ export declare enum WindowEvent {
18
15
  LayoutReady = "layout-ready",
19
16
  EndUserBoundsChanging = "end-user-bounds-changing",
20
17
  Blurred = "blurred",
18
+ Closed = "closed",
21
19
  CloseRequested = "close-requested",
22
20
  Focused = "focused",
23
21
  ShowRequested = "show-requested",
@@ -65,7 +63,7 @@ export declare const getBoundsFromCenter: (center: Point, size: Size) => Point;
65
63
  * @param identity the window identity.
66
64
  * @returns the wrapped OpenFin window identity.
67
65
  */
68
- export declare function getOFWindow(identity: WindowIdentity): _Window;
66
+ export declare function getOFWindow(identity: WindowIdentity): import("@openfin/core/src/api/window")._Window;
69
67
  /**
70
68
  * The OpenFin identity for the current window.
71
69
  */
@@ -73,19 +71,20 @@ export declare const currentOFIdentity: WindowIdentity;
73
71
  /**
74
72
  * Get the current OpenFin window.
75
73
  */
76
- export declare function getCurrentOFWindow(): _Window;
74
+ export declare function getCurrentOFWindow(): import("@openfin/core/src/api/window")._Window;
77
75
  /**
78
76
  * The OpenFin identity for Home.
79
77
  */
80
78
  export declare const homeOFIdentity: WindowIdentity;
81
79
  export declare const dockOFIdentity: WindowIdentity;
80
+ export declare const notificationCenterOFIdentity: WindowIdentity;
82
81
  export declare const StorefrontOFIdentity: WindowIdentity;
83
82
  export declare const providerOFIdentity: WindowIdentity;
84
83
  /**
85
84
  * Get the Home OpenFin window.
86
85
  */
87
- export declare function getHomeOFWindow(): _Window;
88
- export declare function getDockOFWindow(): _Window;
86
+ export declare function getHomeOFWindow(): import("@openfin/core/src/api/window")._Window;
87
+ export declare function getDockOFWindow(): import("@openfin/core/src/api/window")._Window;
89
88
  /**
90
89
  * Helper for max and restoring a window.
91
90
  * @param identity the identity of the window to maximize or restore.
@@ -110,13 +109,13 @@ export declare function hideAndBlur(identity: WindowIdentity): Promise<void>;
110
109
  */
111
110
  export declare function toggleVisibility(identity: WindowIdentity): Promise<void>;
112
111
  export declare const toggleDock: () => Promise<void>;
113
- export declare const showAndFocusDock: () => Promise<void>;
114
112
  export declare function isAnimatingSize(): boolean;
115
113
  /**
116
114
  * Resizes a window to width and height saved in the store
117
115
  * if they differ from current window size.
118
116
  */
119
117
  export declare function restoreWindowSize(): Promise<void>;
118
+ export declare function setSize(width: number, height: number): Promise<void>;
120
119
  export declare function animateSize(width: number, height: number): Promise<void>;
121
120
  /**
122
121
  * Returns true if the window name is that of a browser window.
@@ -131,7 +130,7 @@ export declare function forceBodySize(): void;
131
130
  /**
132
131
  * Gets all currently open browser windows.
133
132
  */
134
- export declare function getBrowserWindows(): Promise<_Window[]>;
133
+ export declare function getBrowserWindows(): Promise<OpenFin.Window[]>;
135
134
  /**
136
135
  * Closes all currently open Browser windows.
137
136
  */
@@ -145,10 +144,18 @@ export declare const isWindowRunning: (identity: WindowIdentity) => Promise<bool
145
144
  * @returns true if the Storefront window is running.
146
145
  */
147
146
  export declare const isStorefrontWindowRunning: () => Promise<boolean>;
147
+ export declare const isDockWindowRunning: () => Promise<boolean>;
148
+ export declare const isNotificationCenterRunning: () => Promise<boolean>;
148
149
  export declare const isHomeWindowRunning: () => Promise<boolean>;
149
150
  export declare const showAndFocusStorefront: () => Promise<void>;
151
+ export declare const showAndFocusDock: () => Promise<void>;
150
152
  export declare const centerWindowIfOffScreen: (windowIdentity?: WindowIdentity) => Promise<void>;
151
153
  export declare const getDisableMultiplePagesOption: (identity: WindowIdentity) => Promise<any>;
152
154
  export declare const getIsLockedOption: (identity: WindowIdentity) => Promise<any>;
153
155
  export declare const getPlatformWindowTitle: (identity: WindowIdentity) => Promise<any>;
156
+ export declare const getComponentWindowStatus: () => Promise<{
157
+ storefrontRunning: boolean;
158
+ homeRunning: boolean;
159
+ notificationCenterRunning: boolean;
160
+ }>;
154
161
  export {};
@@ -8,6 +8,6 @@ export declare const showDeleteWorkspaceModal: (windowIdentity: OpenFin.Identity
8
8
  * @param workspaceTitle The platform label
9
9
  * @returns Boolean - Affirmative or Negative response from user
10
10
  */
11
- export declare const showPlatformQuitModal: (windowIdentity: OpenFin.Identity, workspaceTitle: string) => Promise<boolean>;
11
+ export declare const showPlatformQuitModal: (windowIdentity: OpenFin.Identity, workspaceTitle: string, shouldCenterOnMonitor?: boolean) => Promise<boolean>;
12
12
  export declare const showRestoreChangesModal: (windowIdentity: any) => Promise<boolean>;
13
13
  export declare const getOverwriteWorkspaceMenu: (workspaceTitle: string) => Promise<ResponseModalConfig>;