@openfin/workspace 45.1.19 → 46.0.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.
- package/client-api-platform/src/init/override-callback/view-defaults.d.ts +2 -1
- package/client-api-platform/src/shapes.d.ts +21 -2
- package/common/src/utils/color-channels.d.ts +44 -0
- package/common/src/utils/color-linking.d.ts +1 -38
- package/common/src/utils/layout.d.ts +2 -2
- package/externals.report.json +3 -3
- 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 +6 -6
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
+
import type { BrowserCreateViewRequest } from '../../../../client-api-platform/src/shapes';
|
|
2
3
|
type DefaultViewOptions = Partial<OpenFin.MutableViewOptions> & {
|
|
3
4
|
downloadShelf?: OpenFin.ConstWindowOptions['downloadShelf'];
|
|
4
5
|
hotkeys?: OpenFin.ViewOptions['hotkeys'];
|
|
5
6
|
};
|
|
6
7
|
export declare const DEFAULT_VIEW_OPTIONS: DefaultViewOptions;
|
|
7
|
-
export declare function applyViewDefaults(options: Partial<
|
|
8
|
+
export declare function applyViewDefaults(options: Partial<BrowserCreateViewRequest>, initViewOptions?: Partial<BrowserCreateViewRequest>): Promise<any>;
|
|
8
9
|
export {};
|
|
@@ -3090,9 +3090,28 @@ export interface BrowserInitConfig {
|
|
|
3090
3090
|
/** 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`. */
|
|
3091
3091
|
defaultPageOptions?: Pick<Page, 'iconUrl' | 'unsavedIconUrl' | 'closeButton' | 'panels'>;
|
|
3092
3092
|
/**
|
|
3093
|
-
* The default options when creating a new
|
|
3093
|
+
* The default options when creating a new view. Any option not included in WorkspacePlatform.getCurrentSync().Browser.createView(options) call will default to the value provided in this field.
|
|
3094
|
+
*
|
|
3095
|
+
* @example
|
|
3096
|
+
* ```ts
|
|
3097
|
+
* import * as WorkspacePlatform from '@openfin/workspace-platform';
|
|
3098
|
+
*
|
|
3099
|
+
* await WorkspacePlatform.init({
|
|
3100
|
+
* browser: {
|
|
3101
|
+
* defaultViewOptions: {
|
|
3102
|
+
* workspacePlatform: {
|
|
3103
|
+
* browserNavigationButtons: {
|
|
3104
|
+
* back: true,
|
|
3105
|
+
* forward: true,
|
|
3106
|
+
* reload: true
|
|
3107
|
+
* }
|
|
3108
|
+
* }
|
|
3109
|
+
* }
|
|
3110
|
+
* }
|
|
3111
|
+
* });
|
|
3112
|
+
* ```
|
|
3094
3113
|
*/
|
|
3095
|
-
defaultViewOptions?: Partial<
|
|
3114
|
+
defaultViewOptions?: Partial<BrowserCreateViewRequest>;
|
|
3096
3115
|
/**
|
|
3097
3116
|
* The platform title. UI friendly title for the platform in browser.
|
|
3098
3117
|
*/
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kept in a standalone module with type-only imports so consumers can pull it in
|
|
3
|
+
* via the `@openfin/enterprise-api/color-channels` subpath without bundling the SDK.
|
|
4
|
+
*
|
|
5
|
+
* TODO: https://openfin.jira.com/browse/WRK-5704 - need to rewrite this to use color tokens
|
|
6
|
+
*/
|
|
7
|
+
export declare const ENTERPRISE_COLOR_CHANNELS: {
|
|
8
|
+
readonly blue: {
|
|
9
|
+
readonly name: "Blue";
|
|
10
|
+
readonly color: "#0091EB";
|
|
11
|
+
};
|
|
12
|
+
readonly indigo: {
|
|
13
|
+
readonly name: "Indigo";
|
|
14
|
+
readonly color: "#6450FF";
|
|
15
|
+
};
|
|
16
|
+
readonly pink: {
|
|
17
|
+
readonly name: "Pink";
|
|
18
|
+
readonly color: "#E878CF";
|
|
19
|
+
};
|
|
20
|
+
readonly teal: {
|
|
21
|
+
readonly name: "Teal";
|
|
22
|
+
readonly color: "#24D1D1";
|
|
23
|
+
};
|
|
24
|
+
readonly green: {
|
|
25
|
+
readonly name: "Green";
|
|
26
|
+
readonly color: "#00AF78";
|
|
27
|
+
};
|
|
28
|
+
readonly orange: {
|
|
29
|
+
readonly name: "Orange";
|
|
30
|
+
readonly color: "#FF7D37";
|
|
31
|
+
};
|
|
32
|
+
readonly red: {
|
|
33
|
+
readonly name: "Red";
|
|
34
|
+
readonly color: "#F94144";
|
|
35
|
+
};
|
|
36
|
+
readonly yellow: {
|
|
37
|
+
readonly name: "Yellow";
|
|
38
|
+
readonly color: "#F9C74F";
|
|
39
|
+
};
|
|
40
|
+
readonly gray: {
|
|
41
|
+
readonly name: "Gray";
|
|
42
|
+
readonly color: "#828788";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,41 +1,4 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { ViewTabContextMenuTemplate } from '../../../client-api-platform/src/shapes';
|
|
3
3
|
export declare const getChannelsMenuOptions: (channelsForViews: string[], colorGroups: OpenFin.ContextGroupInfo[]) => Promise<ViewTabContextMenuTemplate[]>;
|
|
4
|
-
export
|
|
5
|
-
readonly blue: {
|
|
6
|
-
readonly name: "Blue";
|
|
7
|
-
readonly color: "#0091EB";
|
|
8
|
-
};
|
|
9
|
-
readonly indigo: {
|
|
10
|
-
readonly name: "Indigo";
|
|
11
|
-
readonly color: "#6450FF";
|
|
12
|
-
};
|
|
13
|
-
readonly pink: {
|
|
14
|
-
readonly name: "Pink";
|
|
15
|
-
readonly color: "#E878CF";
|
|
16
|
-
};
|
|
17
|
-
readonly teal: {
|
|
18
|
-
readonly name: "Teal";
|
|
19
|
-
readonly color: "#24D1D1";
|
|
20
|
-
};
|
|
21
|
-
readonly green: {
|
|
22
|
-
readonly name: "Green";
|
|
23
|
-
readonly color: "#00AF78";
|
|
24
|
-
};
|
|
25
|
-
readonly orange: {
|
|
26
|
-
readonly name: "Orange";
|
|
27
|
-
readonly color: "#FF7D37";
|
|
28
|
-
};
|
|
29
|
-
readonly red: {
|
|
30
|
-
readonly name: "Red";
|
|
31
|
-
readonly color: "#F94144";
|
|
32
|
-
};
|
|
33
|
-
readonly yellow: {
|
|
34
|
-
readonly name: "Yellow";
|
|
35
|
-
readonly color: "#F9C74F";
|
|
36
|
-
};
|
|
37
|
-
readonly gray: {
|
|
38
|
-
readonly name: "Gray";
|
|
39
|
-
readonly color: "#828788";
|
|
40
|
-
};
|
|
41
|
-
};
|
|
4
|
+
export { ENTERPRISE_COLOR_CHANNELS } from './color-channels';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { WindowIdentity } from '../../../common/src/utils/window';
|
|
3
3
|
import type { PagePinnedState } from '../../../common/src/api/pages/shapes';
|
|
4
|
-
import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
4
|
+
import { AttachedPage, BrowserCreateViewRequest, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
5
5
|
export type LayoutDOMEventType =
|
|
6
6
|
/**
|
|
7
7
|
* Fired when a tab is created in a container. (Emmitted by ??)
|
|
@@ -90,7 +90,7 @@ export declare const generateViewNameAndIdentifierNameIfNotExists: <T extends {
|
|
|
90
90
|
* @param layout The Layout to be cloned
|
|
91
91
|
* @returns A Promise resolving to a copy of the layout with view options converted
|
|
92
92
|
*/
|
|
93
|
-
export declare const cloneLayoutAndConvertViewOptions: (layout: PageLayout, initViewOptions?: Partial<
|
|
93
|
+
export declare const cloneLayoutAndConvertViewOptions: (layout: PageLayout, initViewOptions?: Partial<BrowserCreateViewRequest>) => Promise<PageLayout>;
|
|
94
94
|
export declare const cloneViewComponentWithoutName: (componentState: any) => any;
|
|
95
95
|
/**
|
|
96
96
|
* Deep clones a layout and removes generated view names.
|
package/externals.report.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "46.0.0-alpha-5039",
|
|
6
6
|
"packageName": "client-api/package.json",
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-i18next": [
|
|
47
47
|
{
|
|
48
48
|
"type": "explicit",
|
|
49
|
-
"version": "
|
|
49
|
+
"version": "^17.0.11",
|
|
50
50
|
"packageName": "common/package.json",
|
|
51
51
|
"issuer": "common/src/api/i18next.ts"
|
|
52
52
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"i18next": [
|
|
55
55
|
{
|
|
56
56
|
"type": "explicit",
|
|
57
|
-
"version": "^
|
|
57
|
+
"version": "^26.3.6",
|
|
58
58
|
"packageName": "common/package.json",
|
|
59
59
|
"issuer": "common/src/api/i18next.ts"
|
|
60
60
|
}
|