@openfin/workspace-platform 24.0.8 → 24.1.0-alpha.06dbecdb
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 +2 -0
- package/client-api-platform/src/api/utils.d.ts +1 -1
- package/client-api-platform/src/api/utils.test.d.ts +1 -0
- package/client-api-platform/src/shapes.d.ts +41 -0
- package/common/src/test/logger-mock.d.ts +5 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -63,6 +63,8 @@ export declare class ThemeStorageController {
|
|
|
63
63
|
/**
|
|
64
64
|
* Synchronize the current palette and scheme with workspace's storage instance if
|
|
65
65
|
* storage based theming is enabled. Only syncs when user has explicitly selected a scheme.
|
|
66
|
+
*
|
|
67
|
+
* Wrapped in try/catch so it does not throw
|
|
66
68
|
*/
|
|
67
69
|
trySynchronizeWorkspaceStorage: () => Promise<void>;
|
|
68
70
|
/**
|
|
@@ -3,7 +3,7 @@ export type StorageProxy = {
|
|
|
3
3
|
setItem: (data: string, value: string) => Promise<void>;
|
|
4
4
|
destroy: () => Promise<void>;
|
|
5
5
|
};
|
|
6
|
-
export declare const createStorageProxy: (url: string) => Promise<StorageProxy>;
|
|
6
|
+
export declare const createStorageProxy: (url: string, isEnterprise: boolean) => Promise<StorageProxy>;
|
|
7
7
|
/**
|
|
8
8
|
* Ensure the workspace storage proxy window exists. Recreates it if it was previously destroyed
|
|
9
9
|
* (e.g. when the last browser window closed with preventQuitOnLastWindowClosed true and a new
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@common/test/fin-mocks';
|
|
@@ -2343,6 +2343,26 @@ export type WorkspacePlatformOverrideCallback = OpenFin.OverrideCallback<Workspa
|
|
|
2343
2343
|
* @deprecated
|
|
2344
2344
|
*/
|
|
2345
2345
|
export type BrowserOverrideCallback = WorkspacePlatformOverrideCallback;
|
|
2346
|
+
/**
|
|
2347
|
+
* Content menu entry shape cloned and re-exported from UI Library.
|
|
2348
|
+
*/
|
|
2349
|
+
export type ContentMenuEntry = {
|
|
2350
|
+
bookmarked?: boolean;
|
|
2351
|
+
} & ({
|
|
2352
|
+
type: 'folder';
|
|
2353
|
+
id: string;
|
|
2354
|
+
label: string;
|
|
2355
|
+
children: ContentMenuEntry[];
|
|
2356
|
+
} | {
|
|
2357
|
+
type: 'item';
|
|
2358
|
+
id: string;
|
|
2359
|
+
icon: string | {
|
|
2360
|
+
dark: string;
|
|
2361
|
+
light: string;
|
|
2362
|
+
};
|
|
2363
|
+
label: string;
|
|
2364
|
+
itemData: any;
|
|
2365
|
+
});
|
|
2346
2366
|
export type LaunchDockEntryPayload = {
|
|
2347
2367
|
entry: DockEntry;
|
|
2348
2368
|
sourceEvent?: Pick<MouseEvent, 'ctrlKey' | 'metaKey' | 'shiftKey'>;
|
|
@@ -2350,6 +2370,27 @@ export type LaunchDockEntryPayload = {
|
|
|
2350
2370
|
export type BookmarkDockEntryPayload = {
|
|
2351
2371
|
entry: DockEntry;
|
|
2352
2372
|
};
|
|
2373
|
+
/**
|
|
2374
|
+
* Represents dock entry for favorites
|
|
2375
|
+
*/
|
|
2376
|
+
export type DockEntry = {
|
|
2377
|
+
type: 'folder';
|
|
2378
|
+
id: string;
|
|
2379
|
+
label: string;
|
|
2380
|
+
icon?: string | {
|
|
2381
|
+
dark: string;
|
|
2382
|
+
light: string;
|
|
2383
|
+
};
|
|
2384
|
+
} | {
|
|
2385
|
+
type: 'item';
|
|
2386
|
+
id: string;
|
|
2387
|
+
icon: string | {
|
|
2388
|
+
dark: string;
|
|
2389
|
+
light: string;
|
|
2390
|
+
};
|
|
2391
|
+
label: string;
|
|
2392
|
+
itemData?: any;
|
|
2393
|
+
};
|
|
2353
2394
|
/**
|
|
2354
2395
|
* Configuration options for Browser window's icons.
|
|
2355
2396
|
*/
|