@openfin/workspace-platform 7.1.0 → 7.2.0
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.
|
@@ -11,12 +11,12 @@ export declare function setActiveWorkspace(workspace: Workspace): void;
|
|
|
11
11
|
* Get the initial workspace data structure that represents the an untitled empty workspace.
|
|
12
12
|
* @returns the current active workspace.
|
|
13
13
|
*/
|
|
14
|
-
export declare function getInitialWorkspace(): Promise<
|
|
14
|
+
export declare function getInitialWorkspace(): Promise<Workspace>;
|
|
15
15
|
/**
|
|
16
16
|
* Get a workspace data structure that represents the users current desktop.
|
|
17
17
|
* @returns the current active workspace.
|
|
18
18
|
*/
|
|
19
|
-
export declare function getCurrentWorkspace(): Promise<
|
|
19
|
+
export declare function getCurrentWorkspace(): Promise<Workspace>;
|
|
20
20
|
export declare const createWorkspaceInStorage: (req: CreateSavedWorkspaceRequest) => Promise<any>;
|
|
21
21
|
export declare const getWorkspacesInStorage: () => Promise<Workspace[]>;
|
|
22
22
|
export declare const getWorkspaceInStorage: (id: string) => Promise<Workspace>;
|
|
@@ -53,9 +53,12 @@ export interface ContextMenuItemData {
|
|
|
53
53
|
export declare enum GlobalContextMenuOptionType {
|
|
54
54
|
NewWindow = "NewWindow",
|
|
55
55
|
NewPage = "NewPage",
|
|
56
|
+
SaveWorkspace = "SaveWorkspace",
|
|
56
57
|
SavePage = "SavePage",
|
|
57
58
|
SavePageAs = "SavePageAs",
|
|
58
59
|
CloseWindow = "CloseWindow",
|
|
60
|
+
SaveWorkspaceAs = "SaveWorkspaceAs",
|
|
61
|
+
RenameWorkspace = "RenameWorkspace",
|
|
59
62
|
SwitchWorkspace = "SwitchWorkspace",
|
|
60
63
|
DeleteWorkspace = "DeleteWorkspace",
|
|
61
64
|
OpenStorefront = "OpenStorefront",
|
|
@@ -209,7 +212,7 @@ export declare enum BrowserButtonType {
|
|
|
209
212
|
ShowHideTabs = "ShowHideTabs",
|
|
210
213
|
ColorLinking = "ColorLinking",
|
|
211
214
|
PresetLayouts = "PresetLayouts",
|
|
212
|
-
|
|
215
|
+
SaveMenu = "SaveMenu",
|
|
213
216
|
Minimise = "Minimise",
|
|
214
217
|
Maximise = "Maximise",
|
|
215
218
|
Close = "Close",
|
|
@@ -654,7 +657,7 @@ export interface BrowserWindowFactory {
|
|
|
654
657
|
* layout
|
|
655
658
|
* };
|
|
656
659
|
* const options: BrowserCreateWindowRequest = {
|
|
657
|
-
* workspacePlatform {
|
|
660
|
+
* workspacePlatform: {
|
|
658
661
|
* pages: [page],
|
|
659
662
|
* title: 'My Window Title',
|
|
660
663
|
* favicon: 'https://google.com/favicon.ico',
|
|
@@ -684,11 +687,12 @@ export interface BrowserWindowFactory {
|
|
|
684
687
|
* type: BrowserButtonType.PresetLayouts
|
|
685
688
|
* },
|
|
686
689
|
* {
|
|
687
|
-
* type: BrowserButtonType.
|
|
690
|
+
* type: BrowserButtonType.SaveMenu
|
|
688
691
|
* }
|
|
689
692
|
* ]
|
|
690
693
|
* }
|
|
691
|
-
* windowStateButtonOptions: {
|
|
694
|
+
* windowStateButtonOptions: {
|
|
695
|
+
* //configure the set of icons for setting window states
|
|
692
696
|
* buttons: [
|
|
693
697
|
* { // adding a custom window state icon for the window
|
|
694
698
|
* id: 'windowState123',
|
|
@@ -1333,7 +1337,6 @@ export interface BrowserInitConfig {
|
|
|
1333
1337
|
}
|
|
1334
1338
|
interface WorkspaceMetadata {
|
|
1335
1339
|
APIVersion: string;
|
|
1336
|
-
timestamp: string;
|
|
1337
1340
|
}
|
|
1338
1341
|
export interface Workspace {
|
|
1339
1342
|
workspaceId: string;
|