@openfin/workspace 14.0.11 → 14.0.15
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/src/dock.d.ts +46 -10
- package/client-api/src/home.d.ts +76 -5
- package/client-api/src/index.d.ts +10 -10
- package/client-api/src/legacy.d.ts +4 -3
- package/client-api/src/shapes/common.d.ts +19 -2
- package/client-api/src/shapes/dock.d.ts +94 -82
- package/client-api/src/shapes/home.d.ts +32 -121
- package/client-api/src/shapes/store.d.ts +25 -8
- package/client-api/src/store.d.ts +31 -15
- package/client-api-platform/src/api/browser/index.d.ts +1 -1
- package/client-api-platform/src/api/context-menu/utils.d.ts +1 -0
- package/client-api-platform/src/init/browser-defaults.d.ts +1 -1
- package/client-api-platform/src/init/override-callback.d.ts +1 -2
- package/client-api-platform/src/init/utils.d.ts +4 -4
- package/client-api-platform/src/shapes.d.ts +98 -73
- package/common/src/api/search/common.d.ts +2 -0
- package/common/src/api/shapes/home.d.ts +1 -1
- package/common/src/api/theming.d.ts +16 -4
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +2 -2
- package/search-api/src/internal-shapes.d.ts +2 -0
- package/search-api/src/shapes.d.ts +5 -0
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -72,6 +72,7 @@ export declare enum GlobalContextMenuOptionType {
|
|
|
72
72
|
RenameWorkspace = "RenameWorkspace",
|
|
73
73
|
SwitchWorkspace = "SwitchWorkspace",
|
|
74
74
|
DeleteWorkspace = "DeleteWorkspace",
|
|
75
|
+
Downloads = "Downloads",
|
|
75
76
|
OpenStorefront = "OpenStorefront",
|
|
76
77
|
Appearance = "Appearance",
|
|
77
78
|
Quit = "Quit",
|
|
@@ -449,59 +450,75 @@ export interface OpenSaveContextMenuOptionActionPayload {
|
|
|
449
450
|
/** Id of the page on which the context menu is invoked */
|
|
450
451
|
pageId: string;
|
|
451
452
|
}
|
|
453
|
+
export declare enum WindowType {
|
|
454
|
+
Browser = "browser",
|
|
455
|
+
Platform = "platform"
|
|
456
|
+
}
|
|
457
|
+
export interface BrowserWorkspacePlatformWindowOptions {
|
|
458
|
+
/** For internal usage. Defaults to 'browser' when Browser is enabled when the WorkspacePlatform is initialized. In order to use
|
|
459
|
+
* non-Browser layout windows ('platform' windows) in a Browser-enabled workspace platform, set windowType to `platform`. In that instance, the other properties
|
|
460
|
+
* in the workspacePlatform object are not relevant.
|
|
461
|
+
* */
|
|
462
|
+
windowType?: WindowType;
|
|
463
|
+
/** The initial set of pages to add to the created browser window. */
|
|
464
|
+
pages: Page[];
|
|
465
|
+
/** The favicon to display on the top left of the created browser window. */
|
|
466
|
+
favicon?: string;
|
|
467
|
+
/** A UI friendly title for the created browser window. */
|
|
468
|
+
title?: string;
|
|
469
|
+
/**
|
|
470
|
+
* Landing page that shows up when you add a new tab from the plus button that exists in the tabstrip.
|
|
471
|
+
* If you do not provide a newTabUrl, then the plus button in the tabstrip will not be shown and users cannot create a new empty tab.
|
|
472
|
+
*/
|
|
473
|
+
newTabUrl?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Landing page that shows up when you add a new page from the plus button that exists in the window frame where the page selector is shown.
|
|
476
|
+
* If you do not provide a newPageUrl, then the new Page plus button will not be shown and you cannot create a new empty Page or Window.
|
|
477
|
+
*/
|
|
478
|
+
newPageUrl?: string;
|
|
479
|
+
toolbarOptions?: ToolbarOptions;
|
|
480
|
+
windowStateButtonOptions?: WindowStateButtonOptions;
|
|
481
|
+
/**
|
|
482
|
+
* Remove the Page UI and only allow a single page in the browser window.
|
|
483
|
+
* Must be set to true for this behavior. If this is not set to false,
|
|
484
|
+
* then an empty `pages` option will be populated with a single page.
|
|
485
|
+
*/
|
|
486
|
+
disableMultiplePages?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* When true, disables the ability to drag pages into the window. False by default.
|
|
489
|
+
*/
|
|
490
|
+
preventPageDragIn?: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* When true, disables the ability to close pages, drag pages within the window,
|
|
493
|
+
* and drag pages into/out of the window. False by default.
|
|
494
|
+
*/
|
|
495
|
+
isLocked?: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* When true, disables the ability to drag pages out of a window. False by default.
|
|
498
|
+
*/
|
|
499
|
+
preventPageDragOut?: boolean;
|
|
500
|
+
/**
|
|
501
|
+
* When true, page tabs in the window will not be draggable.
|
|
502
|
+
* This includes reordering pages and dragging them out of the window.
|
|
503
|
+
* False by default.
|
|
504
|
+
*/
|
|
505
|
+
preventPageDrag?: boolean;
|
|
506
|
+
/**
|
|
507
|
+
* When true, disables the ability to close pages in the window. False by default.
|
|
508
|
+
*/
|
|
509
|
+
preventPageClose?: boolean;
|
|
510
|
+
}
|
|
452
511
|
/**
|
|
453
512
|
* Request for creating a browser window.
|
|
454
513
|
*/
|
|
455
514
|
export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowCreationOptions, 'workspacePlatform'> {
|
|
456
515
|
/** WorkspacePlatform specific window options. These options will not work unless a workspace platform has been initialized. */
|
|
457
|
-
workspacePlatform: {
|
|
458
|
-
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
title?: string;
|
|
464
|
-
/**
|
|
465
|
-
* Landing page that shows up when you add a new tab from the plus button that exists in the tabstrip.
|
|
466
|
-
* If you do not provide a newTabUrl, then the plus button in the tabstrip will not be shown and users cannot create a new empty tab.
|
|
467
|
-
*/
|
|
468
|
-
newTabUrl?: string;
|
|
469
|
-
/**
|
|
470
|
-
* Landing page that shows up when you add a new page from the plus button that exists in the window frame where the page selector is shown.
|
|
471
|
-
* If you do not provide a newPageUrl, then the new Page plus button will not be shown and you cannot create a new empty Page or Window.
|
|
472
|
-
*/
|
|
473
|
-
newPageUrl?: string;
|
|
474
|
-
toolbarOptions?: ToolbarOptions;
|
|
475
|
-
windowStateButtonOptions?: WindowStateButtonOptions;
|
|
476
|
-
/**
|
|
477
|
-
* Remove the Page UI and only allow a single page in the browser window.
|
|
478
|
-
* Must be set to true for this behavior. If this is not set to false,
|
|
479
|
-
* then an empty `pages` option will be populated with a single page.
|
|
480
|
-
*/
|
|
481
|
-
disableMultiplePages?: boolean;
|
|
482
|
-
/**
|
|
483
|
-
* When true, disables the ability to drag pages into the window. False by default.
|
|
484
|
-
*/
|
|
485
|
-
preventPageDragIn?: boolean;
|
|
486
|
-
/**
|
|
487
|
-
* When true, disables the ability to close pages, drag pages within the window,
|
|
488
|
-
* and drag pages into/out of the window. False by default.
|
|
489
|
-
*/
|
|
490
|
-
isLocked?: boolean;
|
|
491
|
-
/**
|
|
492
|
-
* When true, disables the ability to drag pages out of a window. False by default.
|
|
493
|
-
*/
|
|
494
|
-
preventPageDragOut?: boolean;
|
|
495
|
-
/**
|
|
496
|
-
* When true, page tabs in the window will not be draggable.
|
|
497
|
-
* This includes reordering pages and dragging them out of the window.
|
|
498
|
-
* False by default.
|
|
499
|
-
*/
|
|
500
|
-
preventPageDrag?: boolean;
|
|
501
|
-
/**
|
|
502
|
-
* When true, disables the ability to close pages in the window. False by default.
|
|
503
|
-
*/
|
|
504
|
-
preventPageClose?: boolean;
|
|
516
|
+
workspacePlatform: BrowserWorkspacePlatformWindowOptions | {
|
|
517
|
+
/** For internal usage. Defaults to 'browser' when Browser is enabled when the WorkspacePlatform is initialized. In order to use
|
|
518
|
+
* non-Browser layout windows ('platform' windows) in a Browser-enabled workspace platform, set windowType to `platform`. In that instance, the other properties
|
|
519
|
+
* in the workspacePlatform object are not relevant.
|
|
520
|
+
* */
|
|
521
|
+
windowType: WindowType.Platform;
|
|
505
522
|
};
|
|
506
523
|
}
|
|
507
524
|
/**
|
|
@@ -1481,38 +1498,45 @@ export interface AnalyticsConfig {
|
|
|
1481
1498
|
*/
|
|
1482
1499
|
export interface WorkspacePlatformInitConfig {
|
|
1483
1500
|
customActions?: CustomActionsMap;
|
|
1484
|
-
/**
|
|
1485
|
-
*
|
|
1501
|
+
/**
|
|
1502
|
+
* Config for overriding browser options and behavior.
|
|
1503
|
+
* Set to null to initialize the platform without the browser
|
|
1486
1504
|
*/
|
|
1487
1505
|
browser?: BrowserInitConfig | null;
|
|
1488
|
-
/**
|
|
1506
|
+
/**
|
|
1507
|
+
* Customize the Looks and Feel of the Workspace Platform by providing a custom palette.
|
|
1508
|
+
*
|
|
1509
|
+
* Two palettes are provided by default: `light` and `dark`.
|
|
1510
|
+
* The `dark` palette is used by default.
|
|
1511
|
+
*
|
|
1512
|
+
* @example
|
|
1489
1513
|
*
|
|
1490
1514
|
* ```ts
|
|
1491
1515
|
* import * as WorkspacePlatform from '@openfin/workspace-platform';
|
|
1492
1516
|
*
|
|
1493
1517
|
* // This is the palette used to create the OpenFin dark theme
|
|
1494
1518
|
* const customPalette: WorkspacePlatform.CustomPaletteSet = {
|
|
1495
|
-
*
|
|
1496
|
-
*
|
|
1497
|
-
*
|
|
1498
|
-
*
|
|
1499
|
-
*
|
|
1500
|
-
*
|
|
1501
|
-
*
|
|
1502
|
-
*
|
|
1503
|
-
*
|
|
1504
|
-
*
|
|
1505
|
-
*
|
|
1506
|
-
*
|
|
1507
|
-
*
|
|
1508
|
-
*
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1513
|
-
*
|
|
1514
|
-
*
|
|
1515
|
-
*
|
|
1519
|
+
* brandPrimary: '#504CFF',
|
|
1520
|
+
* brandSecondary: '#383A40',
|
|
1521
|
+
* backgroundPrimary: '#000',
|
|
1522
|
+
* background1: '#111214',
|
|
1523
|
+
* background2: '#1E1F23',
|
|
1524
|
+
* background3: '#24262B',
|
|
1525
|
+
* background4: '#2F3136',
|
|
1526
|
+
* background5: '#383A40',
|
|
1527
|
+
* background6: '#53565F',
|
|
1528
|
+
* statusSuccess: '#35C759',
|
|
1529
|
+
* statusWarning: '#C93400',
|
|
1530
|
+
* statusCritical: '#000',
|
|
1531
|
+
* statusActive: '#0879C4',
|
|
1532
|
+
* inputBackground: '#53565F',
|
|
1533
|
+
* inputColor: '#FFFFFF',
|
|
1534
|
+
* inputPlaceholder: '#C9CBD2',
|
|
1535
|
+
* inputDisabled: '#7D808A',
|
|
1536
|
+
* inputFocused: '#C9CBD2',
|
|
1537
|
+
* textDefault: '#FFFFFF',
|
|
1538
|
+
* textHelp: '#C9CBD2',
|
|
1539
|
+
* textInactive: '#7D808A',
|
|
1516
1540
|
* };
|
|
1517
1541
|
*
|
|
1518
1542
|
* const customTheme: WorkspacePlatform.CustomThemes = [{
|
|
@@ -1707,7 +1731,8 @@ export type BrowserOverrideCallback = WorkspacePlatformOverrideCallback;
|
|
|
1707
1731
|
*/
|
|
1708
1732
|
export interface BrowserInitConfig {
|
|
1709
1733
|
/**
|
|
1710
|
-
* Default options for creating a new
|
|
1734
|
+
* Default options for creating a new Browser window. These options are not applied on any non-Browser windows that get created. These default options will take precedence over
|
|
1735
|
+
* defaultWindowOptions included in the manifest. Any option not included in WorkspacePlatform.getCurrentSync().Browser.createWindow(options) call will default to the value provided in this field.
|
|
1711
1736
|
*/
|
|
1712
1737
|
defaultWindowOptions?: Partial<BrowserCreateWindowRequest>;
|
|
1713
1738
|
/** Default options when creating a new page. If `iconUrl`, `unsavedIconUrl`, `panels` or `closeButton` are not defined when creating a page, setting will default to `defaultPageOptions`. */
|
|
@@ -5,6 +5,8 @@ export interface InternalSearchListenerResponse {
|
|
|
5
5
|
setResultBuffer(results: HomeSearchResult[]): void;
|
|
6
6
|
getRevokedBuffer(): string[];
|
|
7
7
|
setRevokedBuffer(resultIds: string[]): void;
|
|
8
|
+
getUpdatedContext(): any;
|
|
9
|
+
setUpdatedContext(context: any): void;
|
|
8
10
|
onChange(): void;
|
|
9
11
|
getStatus(): InternalSearchListenerResponseStatus;
|
|
10
12
|
res: HomeSearchListenerResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DispatchedSearchResult, HomeSearchListenerRequest, HomeSearchResult } from '../../../../client-api/src/shapes';
|
|
2
1
|
import { HomeProviderInternal } from '../../../../common/src/api/provider';
|
|
2
|
+
import { DispatchedSearchResult, HomeSearchListenerRequest, HomeSearchResult } from '../../../../client-api/src/shapes';
|
|
3
3
|
/**
|
|
4
4
|
* The ids of home providers that are built into Home.
|
|
5
5
|
*/
|
|
@@ -6,8 +6,7 @@ export type WorkspaceComponentSetSelectedSchemePayload = {
|
|
|
6
6
|
identity: OpenFin.Identity;
|
|
7
7
|
};
|
|
8
8
|
export type BrowserSetSelectedSchemePayload = string;
|
|
9
|
-
export
|
|
10
|
-
}
|
|
9
|
+
export type ComputedThemes = ComputedTheme[];
|
|
11
10
|
export interface ComputedTheme {
|
|
12
11
|
label: string;
|
|
13
12
|
logoUrl?: string;
|
|
@@ -22,14 +21,27 @@ export interface CustomThemeOptions extends BaseThemeOptions {
|
|
|
22
21
|
palette: CustomPaletteSet;
|
|
23
22
|
}
|
|
24
23
|
export interface CustomThemeOptionsWithScheme extends BaseThemeOptions {
|
|
24
|
+
/**
|
|
25
|
+
* The default color scheme for this theme.
|
|
26
|
+
*
|
|
27
|
+
* This will be used as a fallback if the user has not yet selected a color scheme, or there was an error fetching the user's color scheme.
|
|
28
|
+
*
|
|
29
|
+
* @default 'dark'
|
|
30
|
+
*/
|
|
25
31
|
default?: 'light' | 'dark';
|
|
32
|
+
/**
|
|
33
|
+
* The palette for this theme.
|
|
34
|
+
*
|
|
35
|
+
* When a user selects a color scheme, the palette will be updated to match the selected scheme.
|
|
36
|
+
*
|
|
37
|
+
* If `system` is selected, the palette will be updated to match the user's system color scheme.
|
|
38
|
+
*/
|
|
26
39
|
palettes: {
|
|
27
40
|
light: CustomPaletteSet;
|
|
28
41
|
dark: CustomPaletteSet;
|
|
29
42
|
};
|
|
30
43
|
}
|
|
31
|
-
export
|
|
32
|
-
}
|
|
44
|
+
export type CustomThemes = (CustomThemeOptions | CustomThemeOptionsWithScheme)[];
|
|
33
45
|
export interface DefaultPaletteSet {
|
|
34
46
|
brandPrimary: string;
|
|
35
47
|
brandSecondary: string;
|