@openfin/workspace 22.5.21 → 23.0.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/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller-store.d.ts +2 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +18 -4
- package/client-api-platform/src/api/dock.d.ts +5 -3
- package/client-api-platform/src/api/language.d.ts +1 -1
- package/client-api-platform/src/api/pages/open-pages.d.ts +2 -2
- package/client-api-platform/src/api/theming.d.ts +11 -0
- package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
- package/client-api-platform/src/init/override-callback/view-components.d.ts +1 -1
- package/client-api-platform/src/init/override-callback/view-options.d.ts +1 -1
- package/client-api-platform/src/init/theming.d.ts +2 -1
- package/client-api-platform/src/shapes.d.ts +44 -22
- package/common/src/api/pages/idb.d.ts +2 -4
- package/common/src/api/protocol/browser.d.ts +13 -11
- package/common/src/api/protocol/shapes/workspace.d.ts +8 -0
- package/common/src/api/protocol/workspace-platform.d.ts +25 -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 +24 -15
- package/common/src/utils/enterprise-menu.d.ts +1 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/find-in-page/findInPageChannel.d.ts +35 -0
- package/common/src/utils/find-in-page/showFindInPageHandler.d.ts +2 -0
- package/common/src/utils/global-context-menu.d.ts +8 -1
- package/common/src/utils/layout.d.ts +1 -2
- package/common/src/utils/logger.d.ts +22 -0
- 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/popup-window.d.ts +15 -0
- package/common/src/utils/route.d.ts +3 -1
- package/common/src/utils/shared-emitter.d.ts +4 -4
- package/common/src/utils/types.d.ts +1 -1
- package/common/src/utils/window.d.ts +10 -1
- package/common/src/utils/workspace-modals.d.ts +1 -1
- package/dock3/src/api/protocol.d.ts +3 -1
- package/dock3/src/shapes/enterprise.d.ts +3 -1
- package/dock3/src/shapes/shapes.d.ts +9 -1
- package/externals.report.json +14 -14
- package/home.js +2 -1
- package/home.js.LICENSE.txt +1 -0
- package/home.js.map +1 -1
- package/index.js +2 -1
- package/index.js.LICENSE.txt +1 -0
- package/index.js.map +1 -1
- package/notifications.js +2 -1
- package/notifications.js.LICENSE.txt +1 -0
- package/notifications.js.map +1 -1
- package/package.json +3 -3
- package/search-api/src/provider/remote/info.d.ts +1 -1
- package/search-api/src/shapes.d.ts +22 -1
- package/store.js +2 -1
- package/store.js.LICENSE.txt +1 -0
- package/store.js.map +1 -1
|
@@ -36,9 +36,9 @@ export declare const MICROSOFT_365_SEARCH_RESULT_ACTIONS: {
|
|
|
36
36
|
* @param req The user input request object from which to extract the selected filters.
|
|
37
37
|
* @returns An array of CLIFilter objects representing the validated filters.
|
|
38
38
|
*/
|
|
39
|
-
export declare const getValidFilters: (req: Parameters<HomeProvider[
|
|
40
|
-
export declare const getValidContactFilters: (users: MicrosoftGraphTypes.User[], req: Parameters<HomeProvider[
|
|
41
|
-
export declare const getContactFiltersFromRequest: (req: Parameters<HomeProvider[
|
|
39
|
+
export declare const getValidFilters: (req: Parameters<HomeProvider["onUserInput"]>[0], searchTypePossibleFilters: Set<Microsoft365DocumentType>) => CLIFilter[];
|
|
40
|
+
export declare const getValidContactFilters: (users: MicrosoftGraphTypes.User[], req: Parameters<HomeProvider["onUserInput"]>[0]) => CLIFilter[];
|
|
41
|
+
export declare const getContactFiltersFromRequest: (req: Parameters<HomeProvider["onUserInput"]>[0]) => {
|
|
42
42
|
department: string[];
|
|
43
43
|
jobTitle: string[];
|
|
44
44
|
};
|
|
@@ -58,7 +58,7 @@ export declare const filterContactFromRequest: (items: MicrosoftGraphTypes.User[
|
|
|
58
58
|
* If no types are selected or all types are deselected, the function marks all types to be shown.
|
|
59
59
|
* Otherwise, it marks only the selected types to be shown.
|
|
60
60
|
*/
|
|
61
|
-
export declare const getTypeFiltersFromRequest: (req: Parameters<HomeProvider[
|
|
61
|
+
export declare const getTypeFiltersFromRequest: (req: Parameters<HomeProvider["onUserInput"]>[0], searchTypePossibleFilters: Set<Microsoft365DocumentType>) => {
|
|
62
62
|
readonly showDocuments: boolean;
|
|
63
63
|
readonly showContacts: boolean;
|
|
64
64
|
/** Teams Messages */
|
|
@@ -70,7 +70,7 @@ export declare const getTypeFiltersFromRequest: (req: Parameters<HomeProvider['o
|
|
|
70
70
|
/** SharePoint Lists */
|
|
71
71
|
readonly showLists: boolean;
|
|
72
72
|
};
|
|
73
|
-
export declare const getDocumentFiltersFromRequest: (req: Parameters<HomeProvider[
|
|
73
|
+
export declare const getDocumentFiltersFromRequest: (req: Parameters<HomeProvider["onUserInput"]>[0]) => {
|
|
74
74
|
readonly filterFiles: boolean;
|
|
75
75
|
readonly showWord: boolean;
|
|
76
76
|
readonly showExcel: boolean;
|
|
@@ -81,6 +81,6 @@ export declare const getDocumentFiltersFromRequest: (req: Parameters<HomeProvide
|
|
|
81
81
|
export declare const filterDocumentsFromRequest: (items: MicrosoftGraphTypes.DriveItem[], filter: ReturnType<typeof getDocumentFiltersFromRequest>) => MicrosoftGraphTypes.DriveItem[];
|
|
82
82
|
export declare const getFileType: (fileName?: string) => string;
|
|
83
83
|
export declare const getFileIcon: (fileName?: string) => string;
|
|
84
|
-
export declare const mapMicrosoftAvailabilityToPresence: (availability: Presence) => CLISearchResultContact[
|
|
84
|
+
export declare const mapMicrosoftAvailabilityToPresence: (availability: Presence) => CLISearchResultContact["templateContent"]["onlineStatus"] | undefined;
|
|
85
85
|
/** base64IdToUrl converts a base64 encoded id to a url safe id */
|
|
86
86
|
export declare const base64IdToUrl: (b64Id: string) => string;
|
|
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { GeneratedPalettes } from '../../../../common/src/api/theming';
|
|
1
2
|
import { ThemeStorageController } from '../../../../client-api-platform/src/api/controllers/theme-storage-controller';
|
|
2
3
|
import { CustomThemes } from '../../../../client-api-platform/src/shapes';
|
|
3
|
-
export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) =>
|
|
4
|
+
export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => GeneratedPalettes;
|
|
4
5
|
export declare const getThemeStorageController: () => ThemeStorageController;
|
|
@@ -4,7 +4,7 @@ import { ColorSchemeOptionType, CustomPaletteSet } from '../../../../client-api-
|
|
|
4
4
|
*
|
|
5
5
|
* This is particularly useful if a value uses a different palette constant depending on scheme.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteScheme:
|
|
7
|
+
export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteScheme: "light" | "dark", isWindows: boolean) => {
|
|
8
8
|
dockExpandedContainerBorderColor: string;
|
|
9
9
|
dockExpandedContainerBorderRadius: string;
|
|
10
10
|
dockExpandedContainerBackground: string;
|
|
@@ -26,15 +26,20 @@ export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteSc
|
|
|
26
26
|
'scrollbar-track-rgb': string;
|
|
27
27
|
selectedTab: string;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
29
|
+
export type LegacyPalettes = {
|
|
30
30
|
dark: CustomPaletteSet;
|
|
31
31
|
light: CustomPaletteSet;
|
|
32
32
|
};
|
|
33
|
+
export type Palettes = {
|
|
34
|
+
light: string;
|
|
35
|
+
dark: string;
|
|
36
|
+
};
|
|
33
37
|
export declare class ThemeStorageController {
|
|
34
38
|
private providerStorage;
|
|
35
39
|
private darkPaletteVars?;
|
|
36
40
|
private lightPaletteVars?;
|
|
37
41
|
private workspaceStorage?;
|
|
42
|
+
private themePaletteSheet?;
|
|
38
43
|
constructor(providerStorage: Pick<Storage, 'getItem' | 'setItem'>);
|
|
39
44
|
private getVarsByScheme;
|
|
40
45
|
/**
|
|
@@ -46,7 +51,7 @@ export declare class ThemeStorageController {
|
|
|
46
51
|
* A workaround that can be leveraged in cross origin scenarios (which is the majority of the workspace use case) is available in this commit: 233e843cda6cd68968fd5831fb20597e0d5bb7cc
|
|
47
52
|
* `git revert 233e843cda6cd68968fd5831fb20597e0d5bb7cc --no-commit`
|
|
48
53
|
*/
|
|
49
|
-
setWorkspaceStorage: (proxy: Pick<Storage,
|
|
54
|
+
setWorkspaceStorage: (proxy: Pick<Storage, "setItem">) => void;
|
|
50
55
|
/**
|
|
51
56
|
* Check if there's an explicit user preference stored in localStorage.
|
|
52
57
|
* A user preference is indicated by the presence of a SelectedColorScheme key. Which is something assigned if you click on the Appearance dropdown.
|
|
@@ -64,7 +69,11 @@ export declare class ThemeStorageController {
|
|
|
64
69
|
* to allow workspace UI elements to load the palette before their first paint.
|
|
65
70
|
* @param palettes Light and Dark Palette constants
|
|
66
71
|
*/
|
|
67
|
-
|
|
72
|
+
setLegacyPalettes: ({ light, dark }: LegacyPalettes, isWindows: boolean) => Promise<void>;
|
|
73
|
+
setPalettes: ({ light, dark }: {
|
|
74
|
+
light: string;
|
|
75
|
+
dark: string;
|
|
76
|
+
}) => Promise<void>;
|
|
68
77
|
/**
|
|
69
78
|
* Set the current scheme of workspace. Specifically setting light or dark
|
|
70
79
|
* will ignore the OS scheme, whereas 'system' will always respect it.
|
|
@@ -83,4 +92,9 @@ export declare class ThemeStorageController {
|
|
|
83
92
|
* @returns 'light' | 'system' | 'dark'
|
|
84
93
|
*/
|
|
85
94
|
getScheme(): ColorSchemeOptionType;
|
|
95
|
+
getThemePaletteSheet(): string | undefined;
|
|
96
|
+
getThemePalette(): {
|
|
97
|
+
light: string;
|
|
98
|
+
dark: string;
|
|
99
|
+
};
|
|
86
100
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { ContentMenuEntry } from '@openfin/ui-library';
|
|
2
|
-
import { DockCompanionButton, DockEntry, LaunchDockEntryPayload } from '../../../client-api-platform/src/shapes';
|
|
1
|
+
import type { ContentMenuEntry } from '@openfin/ui-library';
|
|
2
|
+
import { DockCompanionButton, DockEntry, LaunchDockEntryPayload, Collection } from '../../../client-api-platform/src/shapes';
|
|
3
3
|
export declare const DockCompanionUpdatesPrefix = "dock-companion-updates";
|
|
4
4
|
export declare const refreshDockBookmarksPanel: () => Promise<void>;
|
|
5
5
|
export declare const updateDockFavoriteEntries: (favorites: DockEntry[]) => Promise<void>;
|
|
6
6
|
export declare const updateContentMenu: (contentMenu: ContentMenuEntry[]) => Promise<void>;
|
|
7
7
|
export declare const navigateContentMenu: (id: string) => Promise<void>;
|
|
8
|
+
export declare const refreshDockCollectionMenu: (collections: Collection[]) => Promise<void>;
|
|
8
9
|
export declare const launchDockEntry: (payload: LaunchDockEntryPayload) => Promise<void>;
|
|
9
10
|
export declare const setDockFavoritesOrder: (favorites: DockEntry[]) => Promise<void>;
|
|
10
11
|
export declare const setDefaultDockButtonsOrder: (defaultDockButtons: DockCompanionButton[]) => Promise<void>;
|
|
11
|
-
export declare const getDockWorkspacesContextMenu: () => Promise<import("@
|
|
12
|
+
export declare const getDockWorkspacesContextMenu: () => Promise<import("@client/shapes").BaseCustomDropdownItem<any>[]>;
|
|
12
13
|
export declare const handleDockWorkspacesMenuResponse: (payload: any) => Promise<void>;
|
|
14
|
+
export declare const launchCollection: (collection: Collection) => Promise<void>;
|
|
13
15
|
export declare const removeFavoriteEntry: (entry: DockEntry) => Promise<void>;
|
|
14
16
|
export declare const addFavoriteEntry: (entry: DockEntry) => Promise<void>;
|
|
15
17
|
export declare const focusAndExpandSearchMenu: () => Promise<void>;
|
|
@@ -4,7 +4,7 @@ export declare const dispatchLanguageToBrowserWindows: (language: Locale) => Pro
|
|
|
4
4
|
export declare const setLanguage: (locale: Locale) => Promise<void>;
|
|
5
5
|
export declare function getLanguageResourcesInternal(): {
|
|
6
6
|
currentLanguage: "en-US" | "ja-JP" | "zh-CN" | "ko-KR" | "ru-RU" | "de-DE" | "zh-Hant";
|
|
7
|
-
resources: import("i18next
|
|
7
|
+
resources: import("i18next").Resource;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* initLanguage()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnalyticsEventInternal } from '../../../../common/src/utils/usage-register';
|
|
2
2
|
import { Page } from '../../../../client-api-platform/src/shapes';
|
|
3
3
|
export declare const getOpenPages: () => Map<string, AnalyticsEventInternal>;
|
|
4
|
-
export declare const addOpenPageToCache: (pageId: Page[
|
|
5
|
-
export declare const removeOpenPageFromCache: (pageId: Page[
|
|
4
|
+
export declare const addOpenPageToCache: (pageId: Page["pageId"], event: AnalyticsEventInternal) => void;
|
|
5
|
+
export declare const removeOpenPageFromCache: (pageId: Page["pageId"]) => boolean;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
+
import type { GenerateThemeParams, LegacyPalettes } from '../../../common/src/api/theming';
|
|
2
3
|
import { ColorSchemeOptionType, ThemeApi } from '../../../client-api-platform/src/shapes';
|
|
3
4
|
export declare const getThemingApi: (identity: OpenFin.ApplicationIdentity) => ThemeApi;
|
|
5
|
+
export declare const dispatchThemeToWorkspaceProvider: (themeData: {
|
|
6
|
+
themePaletteSheet: string;
|
|
7
|
+
selectedScheme: ColorSchemeOptionType;
|
|
8
|
+
themePalette: {
|
|
9
|
+
light: string;
|
|
10
|
+
dark: string;
|
|
11
|
+
};
|
|
12
|
+
}) => Promise<void>;
|
|
4
13
|
export declare const setSelectedScheme: (schemeType: ColorSchemeOptionType) => Promise<void>;
|
|
5
14
|
export declare const getSelectedScheme: () => ColorSchemeOptionType | null | undefined;
|
|
15
|
+
export declare const getThemePaletteSheet: () => string | undefined;
|
|
16
|
+
export declare const mapLegacyThemeToCustomTheme: (legacyTheme: LegacyPalettes) => GenerateThemeParams;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import OpenFin from '@openfin/core';
|
|
2
2
|
import type { AttachedPage, AttachedPageInternal } from '../../../../common/src/api/pages/shapes';
|
|
3
3
|
import { BrowserInitConfig } from '../..';
|
|
4
|
-
export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig,
|
|
4
|
+
export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig, "defaultPageOptions" | "defaultViewOptions" | "defaultWindowOptions">, overrideOptions?: OpenFin.PlatformWindowCreationOptions) => Promise<AttachedPageInternal[]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { OpenFin } from '@openfin/core';
|
|
2
|
-
export declare const createNonLayoutViewComponents: (overrideOptions: OpenFin.PlatformWindowCreationOptions) => Promise<void>;
|
|
2
|
+
export declare const createNonLayoutViewComponents: (isEnterprise: boolean, overrideOptions: OpenFin.PlatformWindowCreationOptions) => Promise<void[]>;
|
|
@@ -7,5 +7,5 @@ type ViewStateBase = Pick<BrowserViewState, '_internalWorkspaceData' | 'workspac
|
|
|
7
7
|
export declare const mapInternalWorkspaceDataToWorkspacePlatform: <T extends ViewStateBase>(viewState: T) => T;
|
|
8
8
|
export declare const mapWorkspacePlatformToInternalWorkspaceData: <T extends ViewStateBase>(viewState: T) => T;
|
|
9
9
|
export declare const setHotkeysIfNavigationButtonsEnabled: (options: BrowserCreateViewRequest) => Promise<BrowserCreateViewRequest>;
|
|
10
|
-
export declare const registerHotkeyListenersIfEnabled: (viewIdentity: OpenFin.Identity, buttonOptions?: BrowserWorkspacePlatformViewOptions[
|
|
10
|
+
export declare const registerHotkeyListenersIfEnabled: (viewIdentity: OpenFin.Identity, buttonOptions?: BrowserWorkspacePlatformViewOptions["browserNavigationButtons"]) => void;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { GeneratedPalettes } from '../../../common/src/api/theming';
|
|
1
2
|
import { CustomThemes } from '../shapes';
|
|
2
|
-
export declare const getThemes: () =>
|
|
3
|
+
export declare const getThemes: () => GeneratedPalettes;
|
|
3
4
|
/**
|
|
4
5
|
* initTheming()
|
|
5
6
|
* @param customThemes array of theme objects
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { IconProps, IconType, Languages } from '@openfin/ui-library';
|
|
3
|
-
import { ModalResponseEvent } from '../../common/src/utils/menu-window-provider';
|
|
2
|
+
import type { IconProps, IconType, Languages } from '@openfin/ui-library';
|
|
3
|
+
import type { ModalResponseEvent } from '../../common/src/utils/menu-window-provider';
|
|
4
4
|
import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/utils/usage-register';
|
|
5
|
-
import { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
6
|
-
import { Resource } from '../../common/src/api/i18next';
|
|
7
|
-
import { TrackedSite } from '../../common/src/api/pages/idb';
|
|
8
|
-
import { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, CreateBookmarkNodeRequest, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, UpdateBookmarkNodeRequest, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
|
|
9
|
-
import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
|
|
10
|
-
import type { CustomThemes } from '../../common/src/api/theming';
|
|
11
|
-
import { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
|
|
5
|
+
import type { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
6
|
+
import type { Resource } from '../../common/src/api/i18next';
|
|
7
|
+
import type { TrackedSite } from '../../common/src/api/pages/idb';
|
|
8
|
+
import type { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, CreateBookmarkNodeRequest, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, UpdateBookmarkNodeRequest, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
|
|
9
|
+
import type { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
|
|
10
|
+
import type { CustomThemes, GeneratedPalettes } from '../../common/src/api/theming';
|
|
11
|
+
import type { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
|
|
12
12
|
import type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
|
|
13
|
-
import { DockCompanionButton } from '../../dock3/src/shapes/index';
|
|
13
|
+
import type { DockCompanionButton } from '../../dock3/src/shapes/index';
|
|
14
14
|
import type { AddPagesOptions, BasePageOpts, PageOpts } from '../../enterprise-api/src/shapes';
|
|
15
15
|
export * from '../../dock3/src/shapes';
|
|
16
16
|
export { AppManifestType } from '../../client-api/src/shapes';
|
|
@@ -124,6 +124,7 @@ export declare enum GlobalContextMenuOptionType {
|
|
|
124
124
|
Downloads = "Downloads",
|
|
125
125
|
OpenStorefront = "OpenStorefront",
|
|
126
126
|
ManageDesktopSignals = "ManageDesktopSignals",
|
|
127
|
+
FindInPage = "FindInPage",
|
|
127
128
|
Appearance = "Appearance",
|
|
128
129
|
Quit = "Quit",
|
|
129
130
|
Custom = "Custom"
|
|
@@ -159,16 +160,16 @@ export declare enum PageTabContextMenuOptionType {
|
|
|
159
160
|
Save = "Save",
|
|
160
161
|
SaveAs = "Save As",
|
|
161
162
|
NewPage = "New Page",
|
|
162
|
-
DeletePage = "Delete Page"
|
|
163
|
-
SaveWorkspaceAs = "SaveWorkspaceAs"
|
|
164
|
-
Refresh = "Refresh"
|
|
165
|
-
CloseOthers = "Close others"
|
|
166
|
-
Delete = "Delete"
|
|
167
|
-
Print = "Print"
|
|
168
|
-
PrintAll = "PrintAll"
|
|
169
|
-
PrintScreen = "PrintScreen"
|
|
170
|
-
ManageDesktopSignals = "ManageDesktopSignals"
|
|
171
|
-
AddToChannel = "AddToChannel"
|
|
163
|
+
DeletePage = "Delete Page",// Enterprise
|
|
164
|
+
SaveWorkspaceAs = "SaveWorkspaceAs",// Enterprise
|
|
165
|
+
Refresh = "Refresh",// Enterprise
|
|
166
|
+
CloseOthers = "Close others",// Enterprise
|
|
167
|
+
Delete = "Delete",// Enterprise
|
|
168
|
+
Print = "Print",// Enterprise
|
|
169
|
+
PrintAll = "PrintAll",// Enterprise
|
|
170
|
+
PrintScreen = "PrintScreen",// Enterprise
|
|
171
|
+
ManageDesktopSignals = "ManageDesktopSignals",// Enterprise
|
|
172
|
+
AddToChannel = "AddToChannel",// Enterprise
|
|
172
173
|
Custom = "Custom"
|
|
173
174
|
}
|
|
174
175
|
/** @internal */
|
|
@@ -176,7 +177,8 @@ export declare enum EnterpriseMainContextMenuOptionType {
|
|
|
176
177
|
Lock = "Lock",
|
|
177
178
|
ShowHideTabs = "ShowHideTabs",
|
|
178
179
|
AddToChanel = "AddToChannel",
|
|
179
|
-
ManageDesktopSignals = "ManageDesktopSignals"
|
|
180
|
+
ManageDesktopSignals = "ManageDesktopSignals",// Enterprise
|
|
181
|
+
FindInPage = "FindInPage",// Enterprise
|
|
180
182
|
Print = "Print",
|
|
181
183
|
Pin = "Pin"
|
|
182
184
|
}
|
|
@@ -1722,7 +1724,7 @@ export interface LaunchAppRequest {
|
|
|
1722
1724
|
* Get Themes from API
|
|
1723
1725
|
*/
|
|
1724
1726
|
export interface ThemeApi {
|
|
1725
|
-
getThemes(): Promise<CustomThemes>;
|
|
1727
|
+
getThemes(): Promise<CustomThemes | GeneratedPalettes>;
|
|
1726
1728
|
setSelectedScheme(newScheme: ColorSchemeOptionType): Promise<void>;
|
|
1727
1729
|
getSelectedScheme(): Promise<ColorSchemeOptionType>;
|
|
1728
1730
|
}
|
|
@@ -1988,6 +1990,18 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
|
|
|
1988
1990
|
* @internal
|
|
1989
1991
|
*/
|
|
1990
1992
|
_handleDockWorkspacesMenuResponseInternal(payload: any): Promise<void>;
|
|
1993
|
+
/**
|
|
1994
|
+
* Retrieves companion dock content dropdown context menu.
|
|
1995
|
+
* @param collections
|
|
1996
|
+
* @internal
|
|
1997
|
+
*/
|
|
1998
|
+
_refreshDockCollectionMenuInternal(collections: Collection[]): Promise<void>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Launch companion dock collection
|
|
2001
|
+
* @param collection
|
|
2002
|
+
* @internal
|
|
2003
|
+
*/
|
|
2004
|
+
_launchCollectionInternal(collection: Collection): Promise<void>;
|
|
1991
2005
|
/**
|
|
1992
2006
|
*
|
|
1993
2007
|
* Finds a browser window with only a single tab on the landing page, brings it forward, and
|
|
@@ -2286,6 +2300,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
2286
2300
|
/** @internal */
|
|
2287
2301
|
handleDockWorkspacesMenuResponseInternal(payload: any): Promise<void>;
|
|
2288
2302
|
/** @internal */
|
|
2303
|
+
refreshDockCollectionMenuInternal(collections: Collection[]): Promise<void>;
|
|
2304
|
+
/** @internal */
|
|
2305
|
+
launchCollectionInternal(collection: Collection): Promise<void>;
|
|
2306
|
+
/** @internal */
|
|
2289
2307
|
focusAndExpandSearchInternal(): Promise<void>;
|
|
2290
2308
|
/** @internal */
|
|
2291
2309
|
sendUpdateVersionModalResponseInternal(payload: SendUpdateVersionModalResponsePayload): Promise<void>;
|
|
@@ -2825,6 +2843,10 @@ export interface Workspace {
|
|
|
2825
2843
|
metadata?: WorkspaceMetadata;
|
|
2826
2844
|
snapshot: BrowserSnapshot;
|
|
2827
2845
|
}
|
|
2846
|
+
export interface Collection {
|
|
2847
|
+
collectionId: string;
|
|
2848
|
+
title: string;
|
|
2849
|
+
}
|
|
2828
2850
|
/**
|
|
2829
2851
|
* Request for creating a saved workspace in persistent storage.
|
|
2830
2852
|
*/
|
|
@@ -14,10 +14,8 @@ export declare function updatePage({ pageId, page }: {
|
|
|
14
14
|
export declare const addRemovedTab: (payload: TrackedTab) => Promise<void>;
|
|
15
15
|
export declare const popLastRemovedTab: () => Promise<TrackedTab | undefined>;
|
|
16
16
|
export declare const trackVisitedSite: (payload: Site) => Promise<void>;
|
|
17
|
-
export declare const getRecentVisitedSites: (numOfSites?: number) => Promise<TrackedSite[] | [
|
|
18
|
-
]>;
|
|
19
|
-
export declare const getFrequentlyVisitedSites: () => Promise<TrackedSite[] | [
|
|
20
|
-
]>;
|
|
17
|
+
export declare const getRecentVisitedSites: (numOfSites?: number) => Promise<TrackedSite[] | []>;
|
|
18
|
+
export declare const getFrequentlyVisitedSites: () => Promise<TrackedSite[] | []>;
|
|
21
19
|
export declare const searchSites: (payload: {
|
|
22
20
|
req: SearchSitesRequest;
|
|
23
21
|
} & {
|
|
@@ -34,8 +34,8 @@ declare enum GeneralBrowserChannelActions {
|
|
|
34
34
|
SetSelectedScheme = "set-selected-scheme",
|
|
35
35
|
ShowBrowserIndicator = "show-browser-indicator",
|
|
36
36
|
SetSelectedLanguage = "set-selected-language",
|
|
37
|
-
RefreshBookmarksInternal = "refresh-bookmarks"
|
|
38
|
-
GetLayoutsWithSelectedViewsInternal = "get-layouts-with-selected-views"
|
|
37
|
+
RefreshBookmarksInternal = "refresh-bookmarks",// Enterprise
|
|
38
|
+
GetLayoutsWithSelectedViewsInternal = "get-layouts-with-selected-views",// Enterprise
|
|
39
39
|
FocusAndExpandSearchInternal = "focus-and-expand-search"
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
@@ -68,23 +68,24 @@ export declare enum EnterpriseAppDirectoryChannelAction {
|
|
|
68
68
|
* @internal
|
|
69
69
|
*/
|
|
70
70
|
export declare enum EnterpriseBookmarkChannelAction {
|
|
71
|
-
CreateBookmarkNode = "create-bookmark-node"
|
|
72
|
-
GetBookmarkNode = "get-bookmark-node"
|
|
73
|
-
SearchBookmarkNodes = "search-bookmark-nodes"
|
|
74
|
-
UpdateBookmarkNode = "update-bookmark-node"
|
|
71
|
+
CreateBookmarkNode = "create-bookmark-node",// Enterprise
|
|
72
|
+
GetBookmarkNode = "get-bookmark-node",// Enterprise
|
|
73
|
+
SearchBookmarkNodes = "search-bookmark-nodes",// Enterprise
|
|
74
|
+
UpdateBookmarkNode = "update-bookmark-node",// Enterprise
|
|
75
75
|
DeleteBookmarkNode = "delete-bookmark-node"
|
|
76
76
|
}
|
|
77
77
|
export declare enum CompanionDockChannelAction {
|
|
78
|
-
UpdateFavoriteEntries = "update-favorite-entries"
|
|
79
|
-
UpdateContentMenu = "update-content-menu"
|
|
80
|
-
NavigateContentMenu = "navigate-content-menu"
|
|
81
|
-
MoreMenuCustomOptionClicked = "more-menu-custom-option-clicked"
|
|
78
|
+
UpdateFavoriteEntries = "update-favorite-entries",// Enterprise
|
|
79
|
+
UpdateContentMenu = "update-content-menu",// Enterprise
|
|
80
|
+
NavigateContentMenu = "navigate-content-menu",// Enterprise
|
|
81
|
+
MoreMenuCustomOptionClicked = "more-menu-custom-option-clicked",// Enterprise
|
|
82
|
+
RefreshDockCollectionMenu = "refresh-dock-collection-menu"
|
|
82
83
|
}
|
|
83
84
|
/**
|
|
84
85
|
* @internal
|
|
85
86
|
*/
|
|
86
87
|
export declare enum EnterpriseRequestModalChannelAction {
|
|
87
|
-
SendUpdateVersionModalResponse = "send-update-version-modal-response"
|
|
88
|
+
SendUpdateVersionModalResponse = "send-update-version-modal-response",// Enterprise
|
|
88
89
|
SendIntentResolverModalResponse = "send-intent-resolver-modal-response"
|
|
89
90
|
}
|
|
90
91
|
export declare const BrowserChannelAction: {
|
|
@@ -92,6 +93,7 @@ export declare const BrowserChannelAction: {
|
|
|
92
93
|
UpdateContentMenu: CompanionDockChannelAction.UpdateContentMenu;
|
|
93
94
|
NavigateContentMenu: CompanionDockChannelAction.NavigateContentMenu;
|
|
94
95
|
MoreMenuCustomOptionClicked: CompanionDockChannelAction.MoreMenuCustomOptionClicked;
|
|
96
|
+
RefreshDockCollectionMenu: CompanionDockChannelAction.RefreshDockCollectionMenu;
|
|
95
97
|
GetPages: PageChannelAction.GetPages;
|
|
96
98
|
GetActivePageForWindow: PageChannelAction.GetActivePageForWindow;
|
|
97
99
|
AttachPagesToWindow: PageChannelAction.AttachPagesToWindow;
|
|
@@ -85,6 +85,14 @@ type WorkspaceChannelTypes = {
|
|
|
85
85
|
'set-search-query': (payload: SearchQueryWithProviderID) => Promise<void>;
|
|
86
86
|
'assign-home-search-context': (payload: Partial<HomeSearchListenerRequest['context']>) => Promise<void>;
|
|
87
87
|
'set-selected-scheme': (ctx: ColorSchemeOptionType) => Promise<void>;
|
|
88
|
+
'initialize-theme': (themeData: {
|
|
89
|
+
themePaletteSheet: string;
|
|
90
|
+
selectedScheme: ColorSchemeOptionType;
|
|
91
|
+
themePalette: {
|
|
92
|
+
light: string;
|
|
93
|
+
dark: string;
|
|
94
|
+
};
|
|
95
|
+
}) => Promise<void>;
|
|
88
96
|
'get-legacy-pages': () => Promise<Page[]>;
|
|
89
97
|
'get-legacy-workspaces': (payload: undefined) => Promise<LegacyWorkspace[]>;
|
|
90
98
|
'register-storefront-provider': () => Promise<void>;
|
|
@@ -67,30 +67,32 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
67
67
|
CopyPage = "copyPage",
|
|
68
68
|
HandlePageChanges = "handlePageChanges",
|
|
69
69
|
MarkUnsavedPagesAsSavedInternal = "markUnsavedPagesAsSavedInternal",
|
|
70
|
-
TrackRemovedTabInternal = "trackRemovedTabInternal"
|
|
71
|
-
RestoreRemovedTabInternal = "restoreRemovedTabInternal"
|
|
72
|
-
TrackVisitedSiteInternal = "trackVisitedSiteInternal"
|
|
73
|
-
GetRecentlyVisitedSitesInternal = "getRecentlyVisitedSitesInternal"
|
|
74
|
-
GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal"
|
|
75
|
-
SearchSitesInternal = "searchSitesInternal"
|
|
76
|
-
GetSearchProvidersInternal = "getSearchProvidersInternal"
|
|
77
|
-
GetCuratedContentInternal = "getCuratedContentInternal"
|
|
78
|
-
HandleRequestNavigationInternal = "handleRequestNavigationInternal"
|
|
79
|
-
RefreshBookmarksInternal = "refreshBookmarksInternal"
|
|
80
|
-
LaunchBookmarkInternal = "launchBookmarkInternal"
|
|
70
|
+
TrackRemovedTabInternal = "trackRemovedTabInternal",// Enterprise
|
|
71
|
+
RestoreRemovedTabInternal = "restoreRemovedTabInternal",// Enterprise
|
|
72
|
+
TrackVisitedSiteInternal = "trackVisitedSiteInternal",// Enterprise
|
|
73
|
+
GetRecentlyVisitedSitesInternal = "getRecentlyVisitedSitesInternal",// Enterprise
|
|
74
|
+
GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal",// Enterprise
|
|
75
|
+
SearchSitesInternal = "searchSitesInternal",// Enterprise
|
|
76
|
+
GetSearchProvidersInternal = "getSearchProvidersInternal",// Enterprise
|
|
77
|
+
GetCuratedContentInternal = "getCuratedContentInternal",// Enterprise
|
|
78
|
+
HandleRequestNavigationInternal = "handleRequestNavigationInternal",// Enterprise
|
|
79
|
+
RefreshBookmarksInternal = "refreshBookmarksInternal",// Enterprise
|
|
80
|
+
LaunchBookmarkInternal = "launchBookmarkInternal",// Enterprise
|
|
81
81
|
GetNotificationsConfig = "getNotificationsConfig",
|
|
82
|
-
UpdateDockFavoritesInternal = "updateDockFavoritesInternal"
|
|
83
|
-
UpdateContentMenuInternal = "updateContentMenuInternal"
|
|
84
|
-
LaunchDockEntryInternal = "launchDockEntryInternal"
|
|
85
|
-
SetDockFavoritesOrderInternal = "setDockFavoritesOrderInternal"
|
|
86
|
-
NavigateContentMenuInternal = "navigateContentMenuInternal"
|
|
87
|
-
SetDefaultDockButtonsOrderInternal = "setDefaultDockButtonsOrderInternal"
|
|
88
|
-
GetDockWorkspacesContextMenuInternal = "getDockWorkspacesContextMenuInternal"
|
|
89
|
-
HandleDockWorkspacesMenuResponseInternal = "handleDockWorkspacesMenuResponseInternal"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
UpdateDockFavoritesInternal = "updateDockFavoritesInternal",// Enterprise
|
|
83
|
+
UpdateContentMenuInternal = "updateContentMenuInternal",// Enterprise
|
|
84
|
+
LaunchDockEntryInternal = "launchDockEntryInternal",// Enterprise
|
|
85
|
+
SetDockFavoritesOrderInternal = "setDockFavoritesOrderInternal",// Enterprise
|
|
86
|
+
NavigateContentMenuInternal = "navigateContentMenuInternal",// Enterprise
|
|
87
|
+
SetDefaultDockButtonsOrderInternal = "setDefaultDockButtonsOrderInternal",// Enterprise
|
|
88
|
+
GetDockWorkspacesContextMenuInternal = "getDockWorkspacesContextMenuInternal",// Enterprise
|
|
89
|
+
HandleDockWorkspacesMenuResponseInternal = "handleDockWorkspacesMenuResponseInternal",// Enterprise
|
|
90
|
+
RefreshDockCollectionMenuInternal = "refreshDockCollectionMenuInternal",// Enterprise
|
|
91
|
+
LaunchCollectionInternal = "launchCollectionInternal",//Enterprise
|
|
92
|
+
RemoveDockFavoriteInternal = "removeDockFavoriteInternal",// Enterprise
|
|
93
|
+
AddDockFavoriteInternal = "addDockFavoriteInternal",// Enterprise
|
|
94
|
+
FocusAndExpandSearchInternal = "focusAndExpandSearchInternal",// Enterprise
|
|
95
|
+
SendUpdateVersionModalResponseInternal = "sendUpdateVersionModalResponseInternal",// Enterprise
|
|
94
96
|
ShowUpdateVersionModalInternal = "showUpdateVersionModalInternal"
|
|
95
97
|
}
|
|
96
98
|
export type PlatFormSupportedFeatures = boolean | {
|
|
@@ -98,7 +98,7 @@ export interface ProviderUpdateEventPayload {
|
|
|
98
98
|
*
|
|
99
99
|
* This allows for different providers to be registered with the same id.
|
|
100
100
|
*/
|
|
101
|
-
export declare const getUniqueProviderIdentifier: ({ platformIdentity, id }: Pick<ProviderInfoInternal,
|
|
101
|
+
export declare const getUniqueProviderIdentifier: ({ platformIdentity, id }: Pick<ProviderInfoInternal, "platformIdentity" | "id">) => string;
|
|
102
102
|
/**
|
|
103
103
|
* Get a list of all providers that have registered with the provider API.
|
|
104
104
|
*/
|
|
@@ -30,29 +30,29 @@ export declare const launchStorefrontApp: (req: LaunchStorefrontProviderAppReque
|
|
|
30
30
|
* @param identity of the platform to get the apps from.
|
|
31
31
|
* @returns the list of Storefront apps for the platform.
|
|
32
32
|
*/
|
|
33
|
-
export declare const getStorefrontApps: (provider: ProviderInfoInternal<
|
|
33
|
+
export declare const getStorefrontApps: (provider: ProviderInfoInternal<"storefront">) => Promise<App[]>;
|
|
34
34
|
/**
|
|
35
35
|
* Get the platform's landing page for Storefront.
|
|
36
36
|
* @param identity of the platform to get the landing page of.
|
|
37
37
|
* @returns the platform's landing page.
|
|
38
38
|
*/
|
|
39
|
-
export declare const getStorefrontLandingPage: (provider: ProviderInfoInternal<
|
|
39
|
+
export declare const getStorefrontLandingPage: (provider: ProviderInfoInternal<"storefront">) => Promise<StorefrontLandingPage | undefined>;
|
|
40
40
|
/**
|
|
41
41
|
* Get the platform's footer for Storefront.
|
|
42
42
|
* @param identity of the platform to get the footer of.
|
|
43
43
|
* @returns the platform's footer.
|
|
44
44
|
*/
|
|
45
|
-
export declare const getStorefrontFooter: (provider: ProviderInfoInternal<
|
|
45
|
+
export declare const getStorefrontFooter: (provider: ProviderInfoInternal<"storefront">) => Promise<StorefrontFooter>;
|
|
46
46
|
/**
|
|
47
47
|
* Get the platform's navigation for Storefront.
|
|
48
48
|
* @param identity of the platform to get the navigation of.
|
|
49
49
|
* @returns the platform's navigation.
|
|
50
50
|
*/
|
|
51
|
-
export declare const getStorefrontNavigation: (provider: ProviderInfoInternal<
|
|
51
|
+
export declare const getStorefrontNavigation: (provider: ProviderInfoInternal<"storefront">) => Promise<[StorefrontNavigationSection?, StorefrontNavigationSection?]>;
|
|
52
52
|
/**
|
|
53
53
|
* A helper method that gets a Storefront navigation item by ID.
|
|
54
54
|
* @param navigationItemId the id of the Storefront navigation item.
|
|
55
55
|
* @param identity of the platform.
|
|
56
56
|
* @returns the navigation item with the ID.
|
|
57
57
|
*/
|
|
58
|
-
export declare const getStorefrontNavigationItemAppGrid: (navigationItemId: string, provider: ProviderInfoInternal<
|
|
58
|
+
export declare const getStorefrontNavigationItemAppGrid: (navigationItemId: string, provider: ProviderInfoInternal<"storefront">) => Promise<StorefrontNavigationItemAppGrid | undefined>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { DefaultTheme } from 'styled-components';
|
|
2
2
|
import type OpenFin from '@openfin/core';
|
|
3
|
-
import {
|
|
4
|
-
import { Palette } from '@openfin/ui-library/dist/theme';
|
|
3
|
+
import type { ColorSchemeType, ThemeSet } from '@openfin/ui-library';
|
|
5
4
|
import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
|
|
5
|
+
import type { generateTheme } from '@openfin/theme-engine';
|
|
6
|
+
export declare const ColorScheme: {
|
|
7
|
+
light: string;
|
|
8
|
+
dark: string;
|
|
9
|
+
system: string;
|
|
10
|
+
};
|
|
6
11
|
export type WorkspaceComponentSetSelectedSchemePayload = {
|
|
7
12
|
newScheme: ColorSchemeOptionType;
|
|
8
13
|
identity: OpenFin.Identity;
|
|
@@ -145,10 +150,19 @@ export type CustomThemeOptionsWithScheme = BaseThemeOptions & {
|
|
|
145
150
|
*/
|
|
146
151
|
notificationIndicatorColors?: NotificationIndicatorColorsWithScheme;
|
|
147
152
|
};
|
|
148
|
-
export type
|
|
153
|
+
export type ThemeOptions = BaseThemeOptions & {
|
|
154
|
+
seed: Parameters<typeof generateTheme>[0];
|
|
155
|
+
overrides?: Parameters<typeof generateTheme>[1];
|
|
156
|
+
};
|
|
157
|
+
type GenerateThemeReturn = ReturnType<typeof generateTheme>;
|
|
158
|
+
export type GeneratedPalettes = Pick<GenerateThemeReturn, 'dark' | 'light'>;
|
|
159
|
+
export type LegacyPalettes = CustomThemeOptions | CustomThemeOptionsWithScheme;
|
|
160
|
+
export type GenerateThemeParams = Parameters<typeof generateTheme>;
|
|
161
|
+
export type CustomThemes = (CustomThemeOptions | CustomThemeOptionsWithScheme | ThemeOptions)[];
|
|
149
162
|
export interface PreloadedThemeData {
|
|
150
|
-
themes: CustomThemes;
|
|
163
|
+
themes: CustomThemes | GeneratedPalettes;
|
|
151
164
|
selectedScheme: ColorSchemeOptionType;
|
|
165
|
+
themePaletteSheet?: string;
|
|
152
166
|
}
|
|
153
167
|
export interface DefaultPaletteSet {
|
|
154
168
|
brandPrimary: string;
|
|
@@ -290,16 +304,11 @@ export declare const OpenFinDarkTheme: {
|
|
|
290
304
|
};
|
|
291
305
|
export declare const DefaultOpenFinTheme: CustomThemes;
|
|
292
306
|
export declare const getComputedPaletteSets: (customTheme: CustomThemeOptions | CustomThemeOptionsWithScheme) => WorkspaceThemeSet;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* @param storedScheme sets the default scheme if provided
|
|
298
|
-
* @returns array of {@link ComputedThemes | computed themes}
|
|
299
|
-
*/
|
|
300
|
-
export declare const computeThemes: (customThemes: CustomThemes, storedScheme?: ColorSchemeOptionType) => ComputedThemes;
|
|
301
|
-
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
|
|
307
|
+
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
|
|
308
|
+
theme: GeneratedPalettes | CustomThemes;
|
|
309
|
+
defaultScheme: ColorSchemeOptionType;
|
|
310
|
+
}>;
|
|
302
311
|
export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
|
|
303
|
-
export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType,
|
|
304
|
-
export declare const getComputedBackgroundColor: (
|
|
312
|
+
export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
|
|
313
|
+
export declare const getComputedBackgroundColor: () => Promise<string>;
|
|
305
314
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { EnterpriseMainContextMenuItemData, EnterpriseMainContextMenuItemTemplate, OpenGlobalContextMenuPayload } from '../../../client-api-platform/src/shapes';
|
|
3
|
-
export declare const getEnterpriseContextMenuTemplate: ({ identity
|
|
3
|
+
export declare const getEnterpriseContextMenuTemplate: ({ identity }: {
|
|
4
4
|
identity: OpenFin.Identity;
|
|
5
5
|
selectedViews: OpenFin.Identity[];
|
|
6
6
|
}) => Promise<EnterpriseMainContextMenuItemTemplate[]>;
|
|
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
|
|
|
11
11
|
export declare const isWindowDefinedWithIndexDB: boolean;
|
|
12
12
|
export declare const finUUID: string;
|
|
13
13
|
export declare const finName: string;
|
|
14
|
-
export declare const finEntityType: "" | "
|
|
14
|
+
export declare const finEntityType: "" | "window" | "view";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|