@openfin/workspace-platform 22.2.0 → 22.2.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/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +4 -0
- package/common/src/utils/enterprise-channels.d.ts +3 -0
- package/common/src/utils/popup-window.d.ts +10 -1
- package/common/src/utils/route.d.ts +3 -1
- package/common/src/utils/theming.d.ts +25 -0
- package/common/src/utils/window.d.ts +2 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -21,6 +21,10 @@ export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteSc
|
|
|
21
21
|
dockComponentContainerBorderColor: string;
|
|
22
22
|
companionDockButtonActiveBackground: string;
|
|
23
23
|
companionDockButtonHoverBackground: string;
|
|
24
|
+
'computed-scrollbar-thumb-alpha': number;
|
|
25
|
+
'computed-scrollbar-track-alpha': number;
|
|
26
|
+
'scrollbar-thumb-rgb': string;
|
|
27
|
+
'scrollbar-track-rgb': string;
|
|
24
28
|
selectedTab: string;
|
|
25
29
|
};
|
|
26
30
|
export type Palettes = {
|
|
@@ -3,6 +3,7 @@ export declare const getContextMenuChannelName: () => string;
|
|
|
3
3
|
export declare const getBookmarkContextMenuChannelName: () => string;
|
|
4
4
|
export declare const getBookmarkPanelActionsMonitorChannelName: () => string;
|
|
5
5
|
export declare const getDropdownMenuChannelName: () => string;
|
|
6
|
+
export declare const getZoomControlsDialogChannelName: () => string;
|
|
6
7
|
export declare const createDropdownMenuChannel: () => Promise<OpenFin.ChannelProvider>;
|
|
7
8
|
export declare const connectDropdownMenuChannel: () => Promise<OpenFin.ChannelClient>;
|
|
8
9
|
export declare const createBookmarkDialogChannel: () => Promise<OpenFin.ChannelProvider>;
|
|
@@ -13,3 +14,5 @@ export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProv
|
|
|
13
14
|
export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
|
|
14
15
|
export declare const connectToEnterpriseContentChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
|
|
15
16
|
export declare const connectToEnterpriseModalChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
|
|
17
|
+
export declare const createZoomControlsDialogChannel: () => Promise<OpenFin.ChannelProvider>;
|
|
18
|
+
export declare const connectToZoomControlsDialogChannel: () => Promise<OpenFin.ChannelClient>;
|
|
@@ -38,7 +38,8 @@ export declare enum EnterpriseMenuType {
|
|
|
38
38
|
ContextMenu = "context-menu",
|
|
39
39
|
RenameSupertab = "rename-supertab",
|
|
40
40
|
AddEditBookmark = "add-edit-bookmark",
|
|
41
|
-
DropdownMenu = "dropdown-menu"
|
|
41
|
+
DropdownMenu = "dropdown-menu",
|
|
42
|
+
ZoomControls = "zoom-controls"
|
|
42
43
|
}
|
|
43
44
|
export type BookmarkButtonPayload = {
|
|
44
45
|
selectedViewIdentity: OpenFin.Identity;
|
|
@@ -72,6 +73,14 @@ export type BookmarkDialogChannelMessage = BaseEnterpriseMenuChannelMessage & {
|
|
|
72
73
|
type: EnterpriseMenuType.AddEditBookmark;
|
|
73
74
|
payload: BookmarkButtonPayload;
|
|
74
75
|
};
|
|
76
|
+
export type ZoomControlsDialogPayload = {
|
|
77
|
+
selectedViewIdentity?: OpenFin.Identity;
|
|
78
|
+
zoomPercent?: number;
|
|
79
|
+
};
|
|
80
|
+
export type ZoomControlsDialogChannelMessage = BaseEnterpriseMenuChannelMessage & {
|
|
81
|
+
type: EnterpriseMenuType.ZoomControls;
|
|
82
|
+
payload: ZoomControlsDialogPayload;
|
|
83
|
+
};
|
|
75
84
|
export type DropdownMenuChannelMessage = BaseEnterpriseMenuChannelMessage & {
|
|
76
85
|
type: EnterpriseMenuType.DropdownMenu;
|
|
77
86
|
payload: {
|
|
@@ -30,7 +30,8 @@ declare enum BrowserRoute {
|
|
|
30
30
|
EnterpriseBookmarkDialog = "/bookmark-dialog/",
|
|
31
31
|
EnterpriseStorageProxy = "/enterprise/storage-proxy",
|
|
32
32
|
DropdownMenu = "/dropdown-menu/",
|
|
33
|
-
EnterpriseDock = "/dock/"
|
|
33
|
+
EnterpriseDock = "/dock/",
|
|
34
|
+
ZoomControlsDialog = "/zoom-controls-dialog/"
|
|
34
35
|
}
|
|
35
36
|
declare const PageRoute: {
|
|
36
37
|
Browser: BrowserRoute.Browser;
|
|
@@ -49,6 +50,7 @@ declare const PageRoute: {
|
|
|
49
50
|
EnterpriseStorageProxy: BrowserRoute.EnterpriseStorageProxy;
|
|
50
51
|
DropdownMenu: BrowserRoute.DropdownMenu;
|
|
51
52
|
EnterpriseDock: BrowserRoute.EnterpriseDock;
|
|
53
|
+
ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
|
|
52
54
|
Home: WorkspaceRoute.Home;
|
|
53
55
|
HomeSearch: WorkspaceRoute.HomeSearch;
|
|
54
56
|
HomePagesRename: WorkspaceRoute.HomePagesRename;
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import { BackgroundLayers, CustomPaletteSet } from '../../../common/src/api/theming';
|
|
2
|
+
/**
|
|
3
|
+
* Parses a CSS color string (hex, rgb(a), or hsl(a)) into a structured RGB string and alpha value.
|
|
4
|
+
*
|
|
5
|
+
* This helper is designed to extract RGB and alpha components from theme-defined color values,
|
|
6
|
+
* enabling usage in CSS `rgba(var(--color), <alpha>)` syntax by separating the color and opacity parts.
|
|
7
|
+
*
|
|
8
|
+
* Supported formats:
|
|
9
|
+
* - Hex strings (`#RRGGBB` or `#RGB`) → parsed to `"r, g, b"` with `alpha: 1`
|
|
10
|
+
* - `rgb()` / `rgba()` → extracts numeric values; alpha is preserved if present
|
|
11
|
+
* - `hsl()` / `hsla()` → numeric values are extracted but visually may not reflect true RGB; alpha is preserved
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* ```ts
|
|
15
|
+
* const { rgb, alpha } = parseColorToRgbWithAlpha('rgba(255, 255, 255, 0.75)');
|
|
16
|
+
* // rgb = "255, 255, 255"
|
|
17
|
+
* // alpha = 0.75
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param color - The primary color string from the theme (may be hex, rgb[a], hsl[a]).
|
|
21
|
+
* @returns An object with `rgb` as a comma-separated string, and `alpha` as a number between 0 and 1.
|
|
22
|
+
*/
|
|
23
|
+
export declare const parseColorToRgbWithAlpha: (color: string) => {
|
|
24
|
+
rgb: string;
|
|
25
|
+
alpha: number;
|
|
26
|
+
};
|
|
2
27
|
/**
|
|
3
28
|
* Get hue from a CSS color
|
|
4
29
|
*
|
|
@@ -16,7 +16,8 @@ export declare enum WindowName {
|
|
|
16
16
|
DropdownMenu = "openfin-enterprise-dropdown-menu",
|
|
17
17
|
DockCompanion = "openfin-dock-companion",
|
|
18
18
|
AICompanionPrefix = "openfin-ai-companion-",
|
|
19
|
-
UpdateVersionModal = "here-update-version-modal"
|
|
19
|
+
UpdateVersionModal = "here-update-version-modal",
|
|
20
|
+
ZoomControlsDialog = "here-zoom-controls-dialog"
|
|
20
21
|
}
|
|
21
22
|
export interface WindowIdentity {
|
|
22
23
|
uuid: ApplicationUUID | string;
|