@openfin/workspace 20.1.1 → 20.1.3

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;
@@ -2219,6 +2219,29 @@ export interface AnalyticsConfig {
2219
2219
  }
2220
2220
  export { SUPPORTED_LANGUAGES } from '@openfin/ui-library';
2221
2221
  export type Locale = Languages;
2222
+ /**
2223
+ * Configures the workspace to self-host using an asar bundle at the
2224
+ * specified path.
2225
+ *
2226
+ * @remarks Intended as a development tool - in production,
2227
+ * use {@link WorkspaceAsarAssetConfig}.
2228
+ */
2229
+ export type WorkspaceAsarPathConfig = {
2230
+ /**
2231
+ * Path of the asar bundle with which to self-host.
2232
+ */
2233
+ path: string;
2234
+ };
2235
+ /**
2236
+ * Configures the workspace to self-host using the specified asar bundle
2237
+ * app asset.
2238
+ */
2239
+ export type WorkspaceAsarAssetConfig = {
2240
+ /**
2241
+ * App asset alias of the asar bundle with which to self-host.
2242
+ */
2243
+ alias: string;
2244
+ };
2222
2245
  /**
2223
2246
  * Configuration for initializing a Workspace platform.
2224
2247
  */
@@ -2344,6 +2367,10 @@ export interface WorkspacePlatformInitConfig {
2344
2367
  * Leave undefined to use OpenFin hosted Notification Center.
2345
2368
  */
2346
2369
  notifications?: NotificationsCustomManifestOptions;
2370
+ /**
2371
+ * Configuration for self-hosting of workspace assets.
2372
+ */
2373
+ workspaceAsar?: WorkspaceAsarAssetConfig | WorkspaceAsarPathConfig;
2347
2374
  }
2348
2375
  /**
2349
2376
  * @internal
@@ -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>;