@openfin/workspace-platform 22.3.15 → 22.3.16
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/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/context-menu/utils.d.ts +10 -0
- package/client-api-platform/src/shapes.d.ts +5 -4
- package/common/src/components/IndicatorContainer/bounds.d.ts +14 -0
- package/common/src/components/IndicatorContainer/types.d.ts +35 -0
- package/common/src/utils/indicators/showIndicator.d.ts +55 -0
- package/common/src/utils/positioning.d.ts +4 -0
- package/common/src/utils/window.d.ts +2 -1
- package/common/src/utils/workspace-modals.d.ts +5 -1
- package/dock3/src/shapes/shapes.d.ts +7 -1
- package/externals.report.json +14 -14
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
- package/common/src/components/IndicatorContainer/helper.d.ts +0 -30
- package/common/src/utils/indicators/browser.d.ts +0 -32
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openfin/workspace-platform",
|
|
3
3
|
"description": "An API for creating your own Workspace platform.",
|
|
4
4
|
"contributors": [],
|
|
5
|
-
"version": "22.3.
|
|
5
|
+
"version": "22.3.16",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"client",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"title-case": "3.0.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@openfin/core": "42.100.
|
|
22
|
+
"@openfin/core": "42.100.107"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/workspace_platform.zip
CHANGED
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type OpenFin from '@openfin/core';
|
|
2
|
-
export declare enum ShowAtType {
|
|
3
|
-
Top = "top",
|
|
4
|
-
Below = "below"
|
|
5
|
-
}
|
|
6
|
-
export declare const getParentWindowBounds: (parentWindow: OpenFin.Window | false, parentWindowBounds?: OpenFin.WindowBounds) => Promise<OpenFin.WindowBounds>;
|
|
7
|
-
export declare const isWindowMaximized: (parentWindow: OpenFin.Window | false) => Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Generates the bounds for the indicator window based on the provided parameters.
|
|
10
|
-
* If isEnterprise is true indicator will show below, otherwise default will show at the top
|
|
11
|
-
* Indicator appears center of parent window
|
|
12
|
-
* If window is maximized, indicator will appear center of monitor bounds
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param identity identity of browser window.
|
|
16
|
-
* @param myWidth width of the window.
|
|
17
|
-
* @param myHeight height of the window.
|
|
18
|
-
* @param showAt showAt The position to show the window relative to its parent.
|
|
19
|
-
* @param parentWindowBounds The bounds of the parent window.
|
|
20
|
-
* @returns the bounds of where the indicator will be placed.
|
|
21
|
-
*/
|
|
22
|
-
export declare function generateBounds(identity: OpenFin.Identity, myWidth: number, myHeight: number, showAt: ShowAtType, isEnterprise: boolean, parentWindowBounds?: OpenFin.WindowBounds): Promise<{
|
|
23
|
-
left: number;
|
|
24
|
-
top: number;
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
}>;
|
|
28
|
-
declare function adjustWindowDimensions(identity: OpenFin.Identity, container: HTMLDivElement, showAt: ShowAtType, isEnterprise: boolean, parentWindowBounds?: OpenFin.WindowBounds): Promise<void>;
|
|
29
|
-
declare const debouncedAdjustWindowDimension: typeof adjustWindowDimensions;
|
|
30
|
-
export default debouncedAdjustWindowDimension;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { IconType } from '@openfin/ui-library';
|
|
3
|
-
import { IndicatorType } from '../../../../common/src/components/Indicator/Indicator.constants';
|
|
4
|
-
export type BrowserIndicatorIcon = Extract<IconType, 'LockClosedIcon' | 'LockOpen1Icon' | 'PageIcon' | 'BlockedIcon' | 'SupertabIcon' | 'BookmarkFilled'>;
|
|
5
|
-
export interface ShowBrowserIndicatorPayload {
|
|
6
|
-
type: IndicatorType;
|
|
7
|
-
message: string;
|
|
8
|
-
parentBrowserName?: string;
|
|
9
|
-
secondaryMessage?: string;
|
|
10
|
-
icon?: BrowserIndicatorIcon;
|
|
11
|
-
isEnterprise?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Creates a window containing a visual indicator contained in a Browser Window
|
|
15
|
-
*/
|
|
16
|
-
export declare function showBrowserIndicator(type: IndicatorType, message: string, parentBrowserName?: string, secondaryMessage?: string, icon?: BrowserIndicatorIcon, isEnterprise?: boolean): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a window containing an error indicator
|
|
19
|
-
*/
|
|
20
|
-
export declare function showBrowserError(message: string, parentBrowserName?: string, icon?: BrowserIndicatorIcon): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Creates a window containing a success indicator
|
|
23
|
-
*/
|
|
24
|
-
export declare function showBrowserSuccess(message: string, identity?: OpenFin.Identity, secondaryMessage?: string, icon?: BrowserIndicatorIcon): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a window containing an info indicator
|
|
27
|
-
*/
|
|
28
|
-
export declare function showBrowserInfo(message: string, parentBrowserName?: string, icon?: BrowserIndicatorIcon): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a window centered on monitor containing a success indicator for switching workspaces
|
|
31
|
-
*/
|
|
32
|
-
export declare function showSwitchWorkspaceSuccess(): Promise<void>;
|