@openfin/workspace-platform 9.2.6 → 9.3.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.
@@ -1,2 +1,3 @@
1
+ /// <reference types="@openfin/core" />
1
2
  import { ShowQuitPlatformDialogRequest } from '..';
2
- export declare const showQuitPlatformDialogInternal: (req: ShowQuitPlatformDialogRequest) => Promise<void>;
3
+ export declare const showQuitPlatformDialogInternal: (req: ShowQuitPlatformDialogRequest, identity: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { UseStore } from 'idb-keyval';
2
+ export declare const getNewStoreAndMigrateLegacyStore: (storeName: string, tableName: string) => UseStore;
@@ -4,6 +4,7 @@ declare enum LocalStorageKey {
4
4
  MachineName = "machineName",
5
5
  NewTabPageLayout = "NewTabPageLayout",
6
6
  NewTabPageSort = "NewTabPageSort",
7
- DockPosition = "DockPosition"
7
+ DockPosition = "DockPosition",
8
+ HasMovedStore = "HasMovedStore"
8
9
  }
9
10
  export default LocalStorageKey;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="@openfin/core" />
2
2
  import { ResponseModalConfig } from './menu-config';
3
- import { Point } from './window';
4
3
  /**
5
4
  * returns the correct bounds for the response modal to be displayed at
6
5
  * this will return the correct bounds regardless of whether the window is maximized
@@ -10,7 +9,7 @@ import { Point } from './window';
10
9
  * @param centerOnMonitor whether the modal should be centered on the monitor
11
10
  * @returns a point (top/left) as to where the window should be placed
12
11
  */
13
- export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<Point>;
12
+ export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<OpenFin.Bounds>;
14
13
  /**
15
14
  * calculates the percenage of the window that is present within the monitor (float in range 0-1)
16
15
  *
@@ -19,3 +18,4 @@ export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig[
19
18
  */
20
19
  export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
21
20
  export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
21
+ export declare function getResponseModalBoundsAndCenterParentIfModalOffScreen(modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean): Promise<OpenFin.Bounds>;
@@ -4,6 +4,15 @@ export interface RegisterUsageStatus {
4
4
  allowed: boolean;
5
5
  rejectionCode?: string;
6
6
  }
7
+ export declare enum ComponentName {
8
+ Browser = "Browser",
9
+ Dock = "Dock",
10
+ Home = "Home",
11
+ Notification = "Notification",
12
+ Storefront = "Storefront",
13
+ Platform = "Platform",
14
+ Theming = "Theming"
15
+ }
7
16
  export declare const registerBrowserUsage: (status: RegisterUsageStatus) => Promise<void>;
8
17
  export declare const registerHomeUsage: (status: RegisterUsageStatus) => Promise<void>;
9
18
  export declare const registerStorefrontUsage: (status: RegisterUsageStatus) => Promise<void>;
@@ -57,7 +57,7 @@ export declare const getCenterFromBounds: (bounds: OpenFin.WindowBounds) => Poin
57
57
  * @param size height and width of the window
58
58
  * @returns coords representing the left, top of window given the center point
59
59
  */
60
- export declare const getBoundsFromCenter: (center: Point, size: Size) => Point;
60
+ export declare const getBoundsFromCenter: (center: Point, size: Size) => OpenFin.Bounds;
61
61
  /**
62
62
  * Get a wrapped OpenFin window.
63
63
  *
@@ -153,7 +153,6 @@ export declare const isNotificationCenterRunning: () => Promise<boolean>;
153
153
  export declare const isHomeWindowRunning: () => Promise<boolean>;
154
154
  export declare const showAndFocusStorefront: () => Promise<void>;
155
155
  export declare const showAndFocusDock: () => Promise<void>;
156
- export declare const centerWindowIfOffScreen: (windowIdentity?: WindowIdentity) => Promise<void>;
157
156
  export declare const getDisableMultiplePagesOption: (identity: WindowIdentity) => Promise<any>;
158
157
  export declare const getIsLockedOption: (identity: WindowIdentity) => Promise<any>;
159
158
  export declare const getPlatformWindowTitle: (identity: WindowIdentity) => Promise<any>;