@openfin/workspace 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.
@@ -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 DEFAULT_BROWSER_URL: string;
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;
@@ -2154,6 +2154,29 @@ export interface AnalyticsConfig {
2154
2154
  }
2155
2155
  export { SUPPORTED_LANGUAGES } from '@openfin/ui-library';
2156
2156
  export type Locale = Languages;
2157
+ /**
2158
+ * Configures the workspace to self-host using an asar bundle at the
2159
+ * specified path.
2160
+ *
2161
+ * @remarks Intended as a development tool - in production,
2162
+ * use {@link WorkspaceAsarAssetConfig}.
2163
+ */
2164
+ export type WorkspaceAsarPathConfig = {
2165
+ /**
2166
+ * Path of the asar bundle with which to self-host.
2167
+ */
2168
+ path: string;
2169
+ };
2170
+ /**
2171
+ * Configures the workspace to self-host using the specified asar bundle
2172
+ * app asset.
2173
+ */
2174
+ export type WorkspaceAsarAssetConfig = {
2175
+ /**
2176
+ * App asset alias of the asar bundle with which to self-host.
2177
+ */
2178
+ alias: string;
2179
+ };
2157
2180
  /**
2158
2181
  * Configuration for initializing a Workspace platform.
2159
2182
  */
@@ -2279,6 +2302,10 @@ export interface WorkspacePlatformInitConfig {
2279
2302
  * Leave undefined to use OpenFin hosted Notification Center.
2280
2303
  */
2281
2304
  notifications?: NotificationsCustomManifestOptions;
2305
+ /**
2306
+ * Configuration for self-hosting of workspace assets.
2307
+ */
2308
+ workspaceAsar?: WorkspaceAsarAssetConfig | WorkspaceAsarPathConfig;
2282
2309
  }
2283
2310
  /**
2284
2311
  * 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<({ tabIndex, icon, children, size, containerSize, "data-testid": dataTestId, ...props }: import("@openfin/ui-library").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {
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 | null>;
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.