@openfin/workspace-platform 20.0.5 → 20.0.6
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/init/override-callback/browser-defaults.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +27 -0
- package/common/src/styles/svg-icons.d.ts +1 -1
- package/common/src/utils/browser-base-url.d.ts +2 -1
- package/common/src/utils/router/base.d.ts +1 -1
- package/index.js +213 -125
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/workspace_platform.zip +0 -0
|
@@ -2,7 +2,7 @@ import type OpenFin from '@openfin/core';
|
|
|
2
2
|
import { WindowName } from '../../../../common/src/utils/window';
|
|
3
3
|
import type { PreloadedThemeData } from '../../../../common/src/api/theming';
|
|
4
4
|
import { BrowserInitConfig } from '../../../../client-api-platform/src/shapes';
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const defaultBrowserUrl: () => Promise<string>;
|
|
6
6
|
export declare const ENTERPRISE_LANDING_PAGE_URL: string;
|
|
7
7
|
export declare const searchMenuIdentityBase: {
|
|
8
8
|
uuid: string;
|
|
@@ -1853,6 +1853,29 @@ export interface AnalyticsConfig {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
export { SUPPORTED_LANGUAGES } from '@openfin/ui-library';
|
|
1855
1855
|
export type Locale = Languages;
|
|
1856
|
+
/**
|
|
1857
|
+
* Configures the workspace to self-host using an asar bundle at the
|
|
1858
|
+
* specified path.
|
|
1859
|
+
*
|
|
1860
|
+
* @remarks Intended as a development tool - in production,
|
|
1861
|
+
* use {@link WorkspaceAsarAssetConfig}.
|
|
1862
|
+
*/
|
|
1863
|
+
export type WorkspaceAsarPathConfig = {
|
|
1864
|
+
/**
|
|
1865
|
+
* Path of the asar bundle with which to self-host.
|
|
1866
|
+
*/
|
|
1867
|
+
path: string;
|
|
1868
|
+
};
|
|
1869
|
+
/**
|
|
1870
|
+
* Configures the workspace to self-host using the specified asar bundle
|
|
1871
|
+
* app asset.
|
|
1872
|
+
*/
|
|
1873
|
+
export type WorkspaceAsarAssetConfig = {
|
|
1874
|
+
/**
|
|
1875
|
+
* App asset alias of the asar bundle with which to self-host.
|
|
1876
|
+
*/
|
|
1877
|
+
alias: string;
|
|
1878
|
+
};
|
|
1856
1879
|
/**
|
|
1857
1880
|
* Configuration for initializing a Workspace platform.
|
|
1858
1881
|
*/
|
|
@@ -1978,6 +2001,10 @@ export interface WorkspacePlatformInitConfig {
|
|
|
1978
2001
|
* Leave undefined to use OpenFin hosted Notification Center.
|
|
1979
2002
|
*/
|
|
1980
2003
|
notifications?: NotificationsCustomManifestOptions;
|
|
2004
|
+
/**
|
|
2005
|
+
* Configuration for self-hosting of workspace assets.
|
|
2006
|
+
*/
|
|
2007
|
+
workspaceAsar?: WorkspaceAsarAssetConfig | WorkspaceAsarPathConfig;
|
|
1981
2008
|
}
|
|
1982
2009
|
/**
|
|
1983
2010
|
* Extend or replace default functionality in order to customize behavior of a Workspace Platform Provider.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledIcon: import("styled-components").StyledComponent<(
|
|
2
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@openfin/ui-library").IconProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
isEnterprise?: boolean;
|
|
5
5
|
windowFocused?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export declare function setLocalBrowserUrl(url: string): void;
|
|
1
2
|
/**
|
|
2
3
|
* Get the browser base url override if it exists
|
|
3
4
|
*
|
|
4
5
|
* @returns The browser base url override if it exists, otherwise null
|
|
5
6
|
*/
|
|
6
|
-
export declare function getBrowserBaseUrl(): Promise<string
|
|
7
|
+
export declare function getBrowserBaseUrl(): Promise<string>;
|
|
@@ -37,7 +37,7 @@ export declare function getAbsoluteRoutePath(route: PageRoute | string): string;
|
|
|
37
37
|
* The base path of the router contains the router's zone as a postfix.
|
|
38
38
|
*/
|
|
39
39
|
export declare function getBasePath(): string;
|
|
40
|
-
export declare function resolveAbsolutePath(path: string): string;
|
|
40
|
+
export declare function resolveAbsolutePath(path: string, baseUrl?: URL): string;
|
|
41
41
|
/**
|
|
42
42
|
* Gets the path to the route with the router's base path.
|
|
43
43
|
* @param route the route.
|