@openfin/workspace-platform 20.1.7 → 20.1.9
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/src/shapes/dock.d.ts +7 -0
- package/common/src/components/Icon/CustomIcon.d.ts +5 -1
- package/common/src/hooks/useLoadCustomIcon.d.ts +21 -0
- package/common/src/utils/window.d.ts +8 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/search-api/src/shapes.d.ts +22 -1
- package/workspace_platform.zip +0 -0
|
@@ -177,6 +177,13 @@ export interface DockProviderConfig {
|
|
|
177
177
|
* @default false
|
|
178
178
|
*/
|
|
179
179
|
disableUserRearrangement?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Default value for the "Always On Top" setting when no localStorage value exists.
|
|
182
|
+
* If not defined, defaults to true.
|
|
183
|
+
*
|
|
184
|
+
* @default true
|
|
185
|
+
*/
|
|
186
|
+
defaultToAlwaysOnTop?: boolean;
|
|
180
187
|
/**
|
|
181
188
|
* A UI friendly title for the provider platform.
|
|
182
189
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconSizeType } from '@openfin/ui-library';
|
|
2
|
+
import { IconSizeType, IconType } from '@openfin/ui-library';
|
|
3
3
|
/**
|
|
4
4
|
* Simple and reusable icon component. The required prop is an iconURL.
|
|
5
5
|
*/
|
|
@@ -10,6 +10,10 @@ interface CustomIconProps {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
backgroundColor?: string;
|
|
12
12
|
applyThemeColor?: boolean;
|
|
13
|
+
fallbackIcon?: IconType;
|
|
14
|
+
overlayIcon?: IconType;
|
|
15
|
+
useDynamicDimensions?: boolean;
|
|
16
|
+
maxHeight?: number;
|
|
13
17
|
}
|
|
14
18
|
export declare const CustomIcon: React.FC<CustomIconProps>;
|
|
15
19
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface UseLoadCustomIconResult {
|
|
2
|
+
dynamicDimensions: {
|
|
3
|
+
width: string;
|
|
4
|
+
height: string;
|
|
5
|
+
} | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface UseLoadCustomIconOptions {
|
|
10
|
+
iconURL?: string;
|
|
11
|
+
useDynamicDimensions?: boolean;
|
|
12
|
+
customIconAccessible?: boolean;
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Custom hook that loads an image and extracts its dimensions for dynamic sizing
|
|
17
|
+
* @param options Configuration options for the hook
|
|
18
|
+
* @returns Object containing dynamic dimensions, loading state, and error state
|
|
19
|
+
*/
|
|
20
|
+
export declare const useLoadCustomIcon: ({ iconURL, useDynamicDimensions, customIconAccessible, maxHeight }: UseLoadCustomIconOptions) => UseLoadCustomIconResult;
|
|
21
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
+
import type { SearchProviderInfo } from '../../../search-api/src/shapes';
|
|
2
3
|
import { ApplicationUUID } from './application';
|
|
3
4
|
export declare enum WindowName {
|
|
4
5
|
Home = "openfin-home",
|
|
@@ -165,6 +166,13 @@ export declare const getComponentWindowStatus: () => Promise<{
|
|
|
165
166
|
}>;
|
|
166
167
|
export declare const deserializeWindowBounds: (serialized: string) => OpenFin.WindowBounds | null;
|
|
167
168
|
export declare const serializeWindowBounds: (bounds: OpenFin.WindowBounds) => string;
|
|
169
|
+
/**
|
|
170
|
+
* Calculates the dynamic height for the home window based on subheader configuration
|
|
171
|
+
* @param baseHeight - The base height for the home window
|
|
172
|
+
* @param subHeaderConfig - The subheader configuration from search provider
|
|
173
|
+
* @returns The calculated height based on missing subheader elements
|
|
174
|
+
*/
|
|
175
|
+
export declare const calculateHomeWindowHeight: (baseHeight: number, subHeaderConfig?: SearchProviderInfo['subHeader']) => number;
|
|
168
176
|
export declare const getWindowBounds: (window: OpenFin.Window) => Promise<OpenFin.RectangleByEdgePositions>;
|
|
169
177
|
/**
|
|
170
178
|
* calculates the percenage of the window that is present within the monitor (float in range 0-1)
|