@openfin/workspace 22.2.18 → 22.3.1
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/integrations/microsoft.utils.d.ts +6 -6
- package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +2 -2
- package/client-api-platform/src/api/dock.d.ts +1 -1
- package/client-api-platform/src/api/pages/open-pages.d.ts +2 -2
- package/client-api-platform/src/api/performance.d.ts +7 -0
- package/client-api-platform/src/api/workspaces/index.d.ts +2 -2
- package/client-api-platform/src/index.d.ts +2 -1
- package/client-api-platform/src/init/index.d.ts +1 -2
- package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
- package/client-api-platform/src/init/override-callback/view-options.d.ts +1 -1
- package/client-api-platform/src/init/utils.d.ts +1 -0
- package/client-api-platform/src/shapes.d.ts +59 -91
- package/common/src/api/pages/idb.d.ts +4 -2
- package/common/src/api/protocol/browser.d.ts +8 -8
- package/common/src/api/protocol/workspace-platform.d.ts +24 -23
- package/common/src/api/provider.d.ts +1 -1
- package/common/src/api/storefront.d.ts +5 -5
- package/common/src/api/theming.d.ts +1 -1
- package/common/src/utils/defer-show.d.ts +1 -1
- package/common/src/utils/global-context-menu.d.ts +1 -1
- package/common/src/utils/indicators/browser.d.ts +1 -1
- package/common/src/utils/layout.d.ts +2 -1
- package/common/src/utils/menu-window-provider.d.ts +6 -6
- package/common/src/utils/modal-bounds.d.ts +1 -1
- package/common/src/utils/namespaced-local-storage.d.ts +2 -2
- package/common/src/utils/page-tab-context-menu.d.ts +1 -1
- package/common/src/utils/pick.d.ts +7 -0
- package/common/src/utils/promise-with-resolvers.d.ts +9 -0
- package/common/src/utils/shared-emitter.d.ts +4 -4
- package/common/src/utils/types.d.ts +23 -0
- package/common/src/utils/workspace-modals.d.ts +1 -1
- package/{common/src/utils/enterprise-dock.d.ts → dock3/src/api/constants.d.ts} +2 -0
- package/dock3/src/api/idb.d.ts +3 -0
- package/dock3/src/api/index.d.ts +14 -0
- package/dock3/src/api/launch.d.ts +3 -0
- package/dock3/src/api/protocol.d.ts +73 -0
- package/dock3/src/api/provider.d.ts +89 -0
- package/dock3/src/shapes/enterprise.d.ts +22 -0
- package/dock3/src/shapes/index.d.ts +2 -0
- package/dock3/src/shapes/shapes.d.ts +63 -0
- package/dock3/src/utils.d.ts +2 -0
- package/externals.report.json +6 -0
- 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 +3 -3
- package/store.js +1 -1
- package/store.js.map +1 -1
- package/client-api-platform/src/api/perfomance.d.ts +0 -3
|
@@ -16,7 +16,7 @@ export declare const getCenterOfParentWindowMonitor: (parentWindowIdentity?: Ope
|
|
|
16
16
|
* @param centerOnMonitor whether the modal should be centered on the monitor
|
|
17
17
|
* @returns the bounds for where the modal is to be displayed
|
|
18
18
|
*/
|
|
19
|
-
export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig[
|
|
19
|
+
export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<OpenFin.Bounds>;
|
|
20
20
|
export declare function getResponseModalBoundsAndCenterParentIfModalOffScreen(modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean): Promise<OpenFin.Bounds>;
|
|
21
21
|
/**
|
|
22
22
|
* Adjusts the given bounds to be within the closest monitor's available bounds if they are offscreen.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const createNamespacedLocalStorage: <TKey extends string>(namespace: string) => Pick<Storage,
|
|
1
|
+
export declare const createNamespacedLocalStorage: <TKey extends string>(namespace: string) => Pick<Storage, 'setItem' | 'getItem' | 'removeItem'>;
|
|
2
2
|
export declare const setItem: (key: string, value: string) => void;
|
|
3
|
-
export declare const getItem: (key: string) => string
|
|
3
|
+
export declare const getItem: (key: string) => string;
|
|
4
4
|
export declare const removeItem: (key: string) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { PageTabContextMenuItemTemplate } from '../../../client-api-platform/src/shapes';
|
|
3
|
-
export declare const getPageTabMenuTemplate: (pageId: string, winIdentity: OpenFin.Identity) => Promise<PageTabContextMenuItemTemplate[]>;
|
|
3
|
+
export declare const getPageTabMenuTemplate: (pageId: string, winIdentity: OpenFin.Identity, isEnterprise: boolean) => Promise<PageTabContextMenuItemTemplate[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pick specific keys from an object.
|
|
3
|
+
* lodash.pick is deprecated and says to use destructuring instead, but that has one key flaw, it adds undefined properties to the result if the key is not present in the object.
|
|
4
|
+
* ie `const { a, b } = obj; return {a,b};` will result in `{ a: undefined, b: undefined }` if `a` or `b` are not present in `obj`.
|
|
5
|
+
* pick({}, ['a', 'b']) will result in `{}` if `a` or `b` are not present in the object.
|
|
6
|
+
*/
|
|
7
|
+
export declare function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Polyfill for `Promise.withResolvers` which is not available in this typescript version.
|
|
3
|
+
*/
|
|
4
|
+
export declare function withResolvers<T>(): PromiseWithResolvers<T>;
|
|
5
|
+
export type PromiseWithResolvers<T> = {
|
|
6
|
+
promise: Promise<T>;
|
|
7
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
8
|
+
reject: (reason?: any) => void;
|
|
9
|
+
};
|
|
@@ -5,12 +5,12 @@ export default function makeSharedEmitter<EventMap extends {
|
|
|
5
5
|
[key: string | number]: any[];
|
|
6
6
|
}>(id: string): {
|
|
7
7
|
emit: <EventKey extends keyof EventMap>(event: EventKey, ...payload: EventMap[EventKey]) => Promise<void>;
|
|
8
|
-
addListener: <
|
|
8
|
+
addListener: <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
|
|
9
9
|
/**
|
|
10
10
|
* Creates a listener for a particular UUID instead of ApplicationUUID.Workspace.
|
|
11
11
|
* @param uuid The UUID of the application to subscribe to.
|
|
12
12
|
*/
|
|
13
|
-
addListenerWithUUID: (uuid: string) => <
|
|
14
|
-
removeListener: <
|
|
15
|
-
once: <
|
|
13
|
+
addListenerWithUUID: (uuid: string) => <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
|
|
14
|
+
removeListener: <EventKey_2 extends keyof EventMap>(event: EventKey_2, listener: (...payload: EventMap[EventKey_2]) => void) => void;
|
|
15
|
+
once: <EventKey_3 extends keyof EventMap>(event: EventKey_3, listener: (...payload: EventMap[EventKey_3]) => void) => void;
|
|
16
16
|
};
|
|
@@ -33,3 +33,26 @@ export type Awaitable<T> = Awaited<T> | Promise<Awaited<T>>;
|
|
|
33
33
|
export type RemoveFunctions<T> = Pick<T, {
|
|
34
34
|
[K in keyof T]: T[K] extends Function ? never : K;
|
|
35
35
|
}[keyof T]>;
|
|
36
|
+
type MissingKeys<T, U> = Exclude<keyof T, U>;
|
|
37
|
+
/**
|
|
38
|
+
* A utility function that checks if the provided keys are valid for the given type T.
|
|
39
|
+
* The key thing it does is to ensure that all keys in T are present in the array, typescript can check for extra keys but not missing keys.
|
|
40
|
+
* While it is a function, it is really just a type check. The function is needed to encapsulate the type logic.
|
|
41
|
+
* It will throw a type error if any of the keys are not present in T.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* type Foo = {
|
|
46
|
+
* bar: string;
|
|
47
|
+
* qux?: string;
|
|
48
|
+
* };
|
|
49
|
+
*
|
|
50
|
+
* const fooChecker = makeKeyChecker<Foo>();
|
|
51
|
+
* const allFooKeys = fooChecker(['bar', 'qux']); // Valid
|
|
52
|
+
* fooChecker(['bar']); // Error: Missing keys: qux
|
|
53
|
+
* fooChecker(['qux']); // Error: Missing keys: bar
|
|
54
|
+
* fooChecker(['bar', 'qux', 'baz']); // 'baz' is not assignable to type keyof Foo;
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare const makeKeyChecker: <T extends object>() => <const K extends (keyof T)[]>(arr: K & (Exclude<keyof T, K[number]> extends never ? unknown : `Error: Missing keys: ${string & Exclude<keyof T, K[number]>}`)) => K;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dock3Config, DockAllowedWindowOptions } from '../../../dock3/src/shapes';
|
|
2
|
+
import { Dock3ConstructorOverride, Dock3Provider } from './provider';
|
|
3
|
+
export type DockInitOptions = {
|
|
4
|
+
config: Dock3Config;
|
|
5
|
+
override: Dock3ConstructorOverride;
|
|
6
|
+
windowOptions?: DockAllowedWindowOptions;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param config Dock3 configuration object
|
|
11
|
+
* @param override Constructor override to customize the Dock3Provider
|
|
12
|
+
* @returns instance of Dock3Provider
|
|
13
|
+
*/
|
|
14
|
+
export declare function init(options: DockInitOptions): Promise<Dock3Provider>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CompanionDockConfig } from '../shapes/enterprise';
|
|
2
|
+
import type { Dock3Config, DockAllowedWindowOptions } from '../shapes/shapes';
|
|
3
|
+
export declare function launchDock(dockName: string, baseUrl: string, config: CompanionDockConfig | Dock3Config, additionalOptions?: DockAllowedWindowOptions): Promise<void>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { OpenFin } from '@openfin/core';
|
|
2
|
+
import { BaseCustomDropdownItem } from '../../../client-api/src/shapes';
|
|
3
|
+
import { BookmarkDockEntryPayload, DockEntry, LaunchDockEntryPayload } from '../../../client-api-platform/src/shapes';
|
|
4
|
+
import { Dock3Config, DockCompanionButton } from '../../../dock3/src/shapes';
|
|
5
|
+
type ChannelActionMap = {
|
|
6
|
+
[action: string]: (...args: any[]) => any;
|
|
7
|
+
};
|
|
8
|
+
type TypedChannelClient<ProviderActions extends ChannelActionMap, ClientActions extends ChannelActionMap> = Omit<OpenFin.ChannelClient, 'dispatch' | 'register'> & {
|
|
9
|
+
dispatch: <T extends keyof ProviderActions>(action: T, payload: Parameters<ProviderActions[T]>[0]) => Promise<Awaited<ReturnType<ProviderActions[T]>>>;
|
|
10
|
+
register: <T extends keyof ClientActions>(action: T, handler: (payload: Parameters<ClientActions[T]>[0], id: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<Awaited<ReturnType<ClientActions[T]>>>) => boolean;
|
|
11
|
+
};
|
|
12
|
+
type TypedChannelProvider<ProviderActions extends ChannelActionMap, ClientActions extends ChannelActionMap> = Omit<OpenFin.ChannelProvider, 'dispatch' | 'register'> & {
|
|
13
|
+
dispatch: <T extends keyof ClientActions>(to: OpenFin.ClientIdentity, action: T, payload: Parameters<ClientActions[T]>[0]) => Promise<Awaited<ReturnType<ClientActions[T]>>>;
|
|
14
|
+
register: <T extends keyof ProviderActions>(action: T, handler: (payload: Parameters<ProviderActions[T]>[0], id: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<Awaited<ReturnType<ProviderActions[T]>>>) => boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export type Dock3ChannelProviderChannelActions = {
|
|
20
|
+
'launch-entry': (payload: LaunchDockEntryPayload) => void;
|
|
21
|
+
'ready': () => void;
|
|
22
|
+
'save-config': (payload: {
|
|
23
|
+
config: Dock3Config;
|
|
24
|
+
}) => Promise<void>;
|
|
25
|
+
'bookmark-content-menu-entry': (payload: BookmarkDockEntryPayload) => Promise<void>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export type Dock3ChannelClientChannelActions = {
|
|
31
|
+
'handle-dock-config-updated': (payload: Dock3Config) => void;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export type Dock3ChannelProvider = TypedChannelProvider<Dock3ChannelProviderChannelActions, Dock3ChannelClientChannelActions>;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
export type Dock3ChannelClient = TypedChannelClient<Dock3ChannelProviderChannelActions, Dock3ChannelClientChannelActions>;
|
|
41
|
+
/**
|
|
42
|
+
* These are channel actions registered by the platform.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export type EnterpriseDockChannelProviderChannelActions = Dock3ChannelProviderChannelActions & {
|
|
47
|
+
'set-dock-favorites-order': (newFavorites: DockEntry[]) => void;
|
|
48
|
+
'set-default-dock-buttons-order': (newFavorites: DockCompanionButton[]) => void;
|
|
49
|
+
'get-dock-workspaces-context-menu': () => BaseCustomDropdownItem[];
|
|
50
|
+
'handle-dock-workspaces-menu-response': (payload: any) => void;
|
|
51
|
+
'remove-favorite-entry': (entry: DockEntry) => void;
|
|
52
|
+
'add-favorite-entry': (entry: DockEntry) => void;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* These are channel actions registered by the client (enterprise dock)
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export type EnterpriseDockChannelClientChannelActions = Dock3ChannelClientChannelActions & {
|
|
59
|
+
'update-favorite-entries': () => void;
|
|
60
|
+
'update-content-menu': () => void;
|
|
61
|
+
'navigate-content-menu': () => void;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Used by Enterprise Dock for communication with the platform.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
export type EnterpriseDockChannelClient = TypedChannelClient<EnterpriseDockChannelProviderChannelActions, EnterpriseDockChannelClientChannelActions>;
|
|
68
|
+
/**
|
|
69
|
+
* Used by the platform for communication with Enterprise Dock.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export type EnterpriseDockChannelProvider = TypedChannelProvider<EnterpriseDockChannelProviderChannelActions, EnterpriseDockChannelClientChannelActions>;
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { OpenFin } from '@openfin/core';
|
|
2
|
+
import { BookmarkDockEntryPayload, LaunchDockEntryPayload } from '../../../client-api-platform/src/index';
|
|
3
|
+
import { Dock3Config } from '../../../dock3/src/shapes';
|
|
4
|
+
import { Async, CamelCase } from '../../../dock3/src/utils';
|
|
5
|
+
import { Dock3ChannelProvider, Dock3ChannelProviderChannelActions } from './protocol';
|
|
6
|
+
type InternalDock3ChannelActions = 'ready';
|
|
7
|
+
type Dock3ProviderAPI = {
|
|
8
|
+
[K in keyof Omit<Dock3ChannelProviderChannelActions, InternalDock3ChannelActions> as CamelCase<K>]: Async<Dock3ChannelProviderChannelActions[K]>;
|
|
9
|
+
};
|
|
10
|
+
type ExtendsProtocolProvider<T extends Dock3ProviderAPI> = T extends Dock3ProviderAPI ? T : never;
|
|
11
|
+
export type EnsureProviderMatchesProtocol = ExtendsProtocolProvider<Dock3Provider>;
|
|
12
|
+
export declare class Dock3Provider {
|
|
13
|
+
#private;
|
|
14
|
+
static getOverrideConstructor(...args: ConstructorParameters<typeof Dock3Provider>): new () => Dock3Provider;
|
|
15
|
+
static instance: Dock3Provider | null;
|
|
16
|
+
constructor(config: Dock3Config, channel: Dock3ChannelProvider);
|
|
17
|
+
launchEntry(payload: LaunchDockEntryPayload): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns a promise that resolves when the Dock3Provider is ready.
|
|
20
|
+
* This is useful to ensure that the dock is fully initialized before performing any operations.
|
|
21
|
+
* The promise will resolve when the dock sends the 'ready' action.
|
|
22
|
+
*/
|
|
23
|
+
get ready(): Promise<void>;
|
|
24
|
+
bookmarkContentMenuEntry(payload: BookmarkDockEntryPayload): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Read-only access to the current configuration of the Dock3Provider.
|
|
27
|
+
*/
|
|
28
|
+
get config(): Dock3Config;
|
|
29
|
+
/**
|
|
30
|
+
* Protected setter for the configuration of the Dock3Provider.
|
|
31
|
+
* This does not save the configuration in storage nor notify the dock about the change.
|
|
32
|
+
* Use `updateConfig` method to update the configuration and save it.
|
|
33
|
+
* This should only be used internally in a `saveConfig` override if `super.saveConfig` is not called.
|
|
34
|
+
*/
|
|
35
|
+
protected set config(newConfig: Dock3Config);
|
|
36
|
+
/**
|
|
37
|
+
* Updates the configuration of the Dock3Provider.
|
|
38
|
+
* This method updates the configuration, notifies the dock about the change and saves the new configuration to storage (via `saveConfig`).
|
|
39
|
+
* @param newConfig The new configuration to be applied.
|
|
40
|
+
*/
|
|
41
|
+
updateConfig(config: Dock3Config): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Shuts down the Dock3Provider and closes the dock window.
|
|
44
|
+
* This method sends a shutdown message to the dock and then closes the window.
|
|
45
|
+
*/
|
|
46
|
+
shutdown(): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Called whenever the configuration is updated, this method saves the configuration to the storage.
|
|
49
|
+
* This should not be called directly, if you need to update the configuration, use `updateConfig` method instead.
|
|
50
|
+
*/
|
|
51
|
+
saveConfig({ config }: {
|
|
52
|
+
config: Dock3Config;
|
|
53
|
+
}): Promise<void>;
|
|
54
|
+
private handleConfigChange;
|
|
55
|
+
/**
|
|
56
|
+
* Called on startup to load the current configuration of the Dock3Provider.
|
|
57
|
+
* If you've overridden the `saveConfig` method, this should load the configuration from your storage.
|
|
58
|
+
* By default it will load the configuration from local storage. This can be overriden to prevent loading from local storage.
|
|
59
|
+
* @example Prevent loading from local storage:
|
|
60
|
+
* ```typescript
|
|
61
|
+
* class MyDock3Provider extends Dock3Provider {
|
|
62
|
+
* async loadConfig(): Promise<Dock3Config> {
|
|
63
|
+
* // Do not load from local storage, return the default config
|
|
64
|
+
* return this.config;
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
* @example Load from a custom storage:
|
|
69
|
+
* ```typescript
|
|
70
|
+
* class MyDock3Provider extends Dock3Provider {
|
|
71
|
+
* async loadConfig(): Promise<Dock3Config> {
|
|
72
|
+
* // Load from a custom storage
|
|
73
|
+
* const configFromStorage = await myCustomStorage.getDockConfig();
|
|
74
|
+
* // Update local config to ensure it is used.
|
|
75
|
+
* if (configFromStorage) {
|
|
76
|
+
* this.config = configFromStorage;
|
|
77
|
+
* }
|
|
78
|
+
* return this.config;
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
* @returns The current configuration of the Dock3Provider.
|
|
83
|
+
*/
|
|
84
|
+
loadConfig(): Promise<Dock3Config>;
|
|
85
|
+
getWindowSync(): OpenFin.Window;
|
|
86
|
+
private registerChannelActions;
|
|
87
|
+
}
|
|
88
|
+
export type Dock3ConstructorOverride = (Base: new () => Dock3Provider) => new () => Dock3Provider;
|
|
89
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Point } from '../../../common/src/utils/window';
|
|
2
|
+
import { Dock3Button, Dock3Config } from './shapes';
|
|
3
|
+
export type { EnterpriseDockChannelClient, EnterpriseDockChannelProvider } from '../api/protocol';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type DockCompanionButton = Exclude<Dock3Button, 'store'> | 'bookmarks' | 'searchShortcut';
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export type CompanionDockConfig = Omit<Dock3Config, 'defaultDockButtons'> & {
|
|
12
|
+
/**
|
|
13
|
+
* Companion dock window position
|
|
14
|
+
*/
|
|
15
|
+
dockPosition?: Point;
|
|
16
|
+
/**
|
|
17
|
+
* Base URL for the companion dock
|
|
18
|
+
*/
|
|
19
|
+
baseUrl?: string;
|
|
20
|
+
defaultDockButtons?: DockCompanionButton[];
|
|
21
|
+
windowType?: 'enterprise';
|
|
22
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { OpenFin } from '@openfin/core';
|
|
2
|
+
import { WorkspaceButton } from '../../../client-api/src/dock';
|
|
3
|
+
import { ContentMenuEntry, DockEntry, TaskbarIcon } from '../../../client-api-platform/src/shapes';
|
|
4
|
+
export type { Dock3Provider, Dock3ConstructorOverride } from '../api/provider';
|
|
5
|
+
export type Dock3Button = WorkspaceButton | 'contentMenu';
|
|
6
|
+
/**
|
|
7
|
+
* Configuration for the Dock 3.0 provider.
|
|
8
|
+
*/
|
|
9
|
+
export interface Dock3Config {
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* icon URL for the dock provider.
|
|
13
|
+
*/
|
|
14
|
+
icon?: string | TaskbarIcon;
|
|
15
|
+
/**
|
|
16
|
+
* Favorites to be displayed in the dock
|
|
17
|
+
*/
|
|
18
|
+
favorites?: DockEntry[];
|
|
19
|
+
/**
|
|
20
|
+
* Content menu entries to be displayed in the dock
|
|
21
|
+
*/
|
|
22
|
+
contentMenu?: ContentMenuEntry[];
|
|
23
|
+
/**
|
|
24
|
+
* The config for the default dock buttons
|
|
25
|
+
*/
|
|
26
|
+
defaultDockButtons?: Dock3Button[];
|
|
27
|
+
/**
|
|
28
|
+
* The id of the target element for the content menu.
|
|
29
|
+
*/
|
|
30
|
+
contentMenuTargetId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The config for the companion dock ui
|
|
33
|
+
*/
|
|
34
|
+
uiConfig?: {
|
|
35
|
+
contentMenu?: {
|
|
36
|
+
enableBookmarking?: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* By default drag handle is visible. Set this to true to hide the drag handle
|
|
40
|
+
*/
|
|
41
|
+
hideDragHandle?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* By default provider icon is just a drag region. Set this to true to convert it to content menu dropdown button.
|
|
44
|
+
*/
|
|
45
|
+
providerIconContentMenu?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Configuration for the dock more menu component.
|
|
48
|
+
*/
|
|
49
|
+
moreMenu?: {
|
|
50
|
+
quitPlatform?: {
|
|
51
|
+
/**
|
|
52
|
+
* By default the quit button will contain platform title in its label. Set this to true to hide the platform title.
|
|
53
|
+
*/
|
|
54
|
+
hidePlatformTitle?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* By default the quit button will show a quit confirmation dialog. Set this to true to skip the quit confirmation dialog.
|
|
57
|
+
*/
|
|
58
|
+
skipDialog?: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export type DockAllowedWindowOptions = Partial<Pick<OpenFin.PlatformWindowOptions, 'defaultCentered' | 'saveWindowState' | 'taskbarIconGroup' | 'defaultTop' | 'defaultLeft'>>;
|
package/externals.report.json
CHANGED