@openfin/workspace-platform 22.2.0 → 22.2.2

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.
Files changed (33) hide show
  1. package/client-api/src/index.d.ts +0 -5
  2. package/client-api/src/integrations/microsoft.utils.d.ts +6 -6
  3. package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +5 -1
  4. package/client-api-platform/src/api/pages/open-pages.d.ts +2 -2
  5. package/client-api-platform/src/api/workspaces/idb.d.ts +0 -1
  6. package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
  7. package/client-api-platform/src/init/override-callback/view-options.d.ts +1 -1
  8. package/client-api-platform/src/shapes.d.ts +9 -9
  9. package/common/src/api/pages/idb.d.ts +14 -10
  10. package/common/src/api/pages/index.d.ts +0 -1
  11. package/common/src/api/protocol/browser.d.ts +4 -4
  12. package/common/src/api/protocol/workspace-platform.d.ts +23 -23
  13. package/common/src/api/provider.d.ts +1 -1
  14. package/common/src/api/storefront.d.ts +5 -5
  15. package/common/src/api/theming.d.ts +1 -1
  16. package/common/src/utils/create-and-migrate-ibd-store.d.ts +8 -3
  17. package/common/src/utils/enterprise-channels.d.ts +3 -0
  18. package/common/src/utils/layout.d.ts +1 -2
  19. package/common/src/utils/menu-window-provider.d.ts +6 -6
  20. package/common/src/utils/modal-bounds.d.ts +1 -1
  21. package/common/src/utils/popup-window.d.ts +10 -1
  22. package/common/src/utils/route.d.ts +3 -1
  23. package/common/src/utils/shared-emitter.d.ts +4 -4
  24. package/common/src/utils/theming.d.ts +25 -0
  25. package/common/src/utils/window.d.ts +2 -1
  26. package/common/src/utils/workspace-modals.d.ts +1 -1
  27. package/externals.report.json +12 -18
  28. package/index.js +1 -1
  29. package/index.js.map +1 -1
  30. package/package.json +4 -4
  31. package/search-api/src/provider/remote/info.d.ts +1 -1
  32. package/workspace_platform.zip +0 -0
  33. package/client-api/src/legacy.d.ts +0 -4
@@ -1,7 +1,6 @@
1
1
  import * as DockAPI from './dock';
2
2
  import * as HomeAPI from './home';
3
3
  import * as IntegrationsAPI from './integrations';
4
- import * as LegacyAPI from './legacy';
5
4
  import * as StorefrontAPI from './store';
6
5
  export * from './shapes/common';
7
6
  export * from './shapes/templates';
@@ -20,10 +19,6 @@ export { HomeAPI as Home };
20
19
  * Namespace for Dock integrations.
21
20
  */
22
21
  export { DockAPI as Dock };
23
- /**
24
- * Namespace for Legacy integrations.
25
- */
26
- export { LegacyAPI as Legacy };
27
22
  /**
28
23
  * Namespace for Microflows integrations.
29
24
  */
@@ -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['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]) => {
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['onUserInput']>[0], searchTypePossibleFilters: Set<Microsoft365DocumentType>) => {
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['onUserInput']>[0]) => {
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['templateContent']['onlineStatus'] | undefined;
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;
@@ -5,7 +5,7 @@ import { ColorSchemeOptionType, CustomPaletteSet } from '../../../../client-api-
5
5
  *
6
6
  * This is particularly useful if a value uses a different palette constant depending on scheme.
7
7
  */
8
- export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteScheme: 'light' | 'dark', isWindows: boolean) => {
8
+ export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteScheme: "light" | "dark", isWindows: boolean) => {
9
9
  dockExpandedContainerBorderColor: string;
10
10
  dockExpandedContainerBorderRadius: string;
11
11
  dockExpandedContainerBackground: string;
@@ -21,6 +21,10 @@ export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteSc
21
21
  dockComponentContainerBorderColor: string;
22
22
  companionDockButtonActiveBackground: string;
23
23
  companionDockButtonHoverBackground: string;
24
+ 'computed-scrollbar-thumb-alpha': number;
25
+ 'computed-scrollbar-track-alpha': number;
26
+ 'scrollbar-thumb-rgb': string;
27
+ 'scrollbar-track-rgb': string;
24
28
  selectedTab: string;
25
29
  };
26
30
  export type Palettes = {
@@ -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['pageId'], event: AnalyticsEventInternal) => void;
5
- export declare const removeOpenPageFromCache: (pageId: Page['pageId']) => boolean;
4
+ export declare const addOpenPageToCache: (pageId: Page["pageId"], event: AnalyticsEventInternal) => void;
5
+ export declare const removeOpenPageFromCache: (pageId: Page["pageId"]) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { Workspace } from '../../../../client-api-platform/src/shapes';
2
- export declare const store: import("idb-keyval").UseStore;
3
2
  export declare function getWorkspace(id: string): Promise<Workspace | undefined>;
4
3
  export declare function getWorkspaceList(filter?: string): Promise<Workspace[]>;
5
4
  export declare function createWorkspace({ workspace }: {
@@ -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, 'defaultPageOptions' | 'defaultViewOptions' | 'defaultWindowOptions'>, overrideOptions?: OpenFin.PlatformWindowCreationOptions) => Promise<AttachedPageInternal[]>;
4
+ export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig, "defaultPageOptions" | "defaultViewOptions" | "defaultWindowOptions">, overrideOptions?: OpenFin.PlatformWindowCreationOptions) => Promise<AttachedPageInternal[]>;
@@ -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['browserNavigationButtons']) => void;
10
+ export declare const registerHotkeyListenersIfEnabled: (viewIdentity: OpenFin.Identity, buttonOptions?: BrowserWorkspacePlatformViewOptions["browserNavigationButtons"]) => void;
11
11
  export {};
@@ -153,15 +153,15 @@ export declare enum PageTabContextMenuOptionType {
153
153
  Save = "Save",
154
154
  SaveAs = "Save As",
155
155
  NewPage = "New Page",
156
- DeletePage = "Delete Page",
157
- SaveWorkspaceAs = "SaveWorkspaceAs",
158
- Refresh = "Refresh",
159
- CloseOthers = "Close others",
160
- Delete = "Delete",
161
- Print = "Print",
162
- PrintAll = "PrintAll",
163
- PrintScreen = "PrintScreen",
164
- AddToChannel = "AddToChannel",
156
+ DeletePage = "Delete Page",// Enterprise
157
+ SaveWorkspaceAs = "SaveWorkspaceAs",// Enterprise
158
+ Refresh = "Refresh",// Enterprise
159
+ CloseOthers = "Close others",// Enterprise
160
+ Delete = "Delete",// Enterprise
161
+ Print = "Print",// Enterprise
162
+ PrintAll = "PrintAll",// Enterprise
163
+ PrintScreen = "PrintScreen",// Enterprise
164
+ AddToChannel = "AddToChannel",// Enterprise
165
165
  Custom = "Custom"
166
166
  }
167
167
  /**Shape of the data property of a global context menu template item */
@@ -1,7 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import type { Page } from '../../../../common/src/api/pages/shapes';
3
3
  import { SearchSitesRequest, Site } from '../../../../client-api-platform/src/shapes';
4
- export declare const store: import("idb-keyval").UseStore;
5
4
  export declare function getPage(id: string): Promise<Page | undefined>;
6
5
  export declare function getPageList(filter?: string): Promise<Page[]>;
7
6
  export declare function createPage({ page }: {
@@ -12,17 +11,22 @@ export declare function updatePage({ pageId, page }: {
12
11
  page: Page;
13
12
  pageId: string;
14
13
  }): Promise<void>;
15
- export declare const storeEnterpriseRemovedTab: import("idb-keyval").UseStore;
16
- export declare const addRemovedTab: (payload: any) => Promise<void>;
17
- export declare const popLastRemovedTab: () => Promise<any>;
18
- export declare const storeEnterpriseVisitedSites: import("idb-keyval").UseStore;
14
+ export declare const addRemovedTab: (payload: TrackedTab) => Promise<void>;
15
+ export declare const popLastRemovedTab: () => Promise<TrackedTab | undefined>;
19
16
  export declare const trackVisitedSite: (payload: Site) => Promise<void>;
20
- export declare const getRecentVisitedSites: (numOfSites?: number) => Promise<TrackedSite[] | [
21
- ]>;
22
- export declare const getFrequentlyVisitedSites: () => Promise<TrackedSite[] | [
23
- ]>;
17
+ export declare const getRecentVisitedSites: (numOfSites?: number) => Promise<TrackedSite[] | []>;
18
+ export declare const getFrequentlyVisitedSites: () => Promise<TrackedSite[] | []>;
24
19
  export declare const searchSites: (payload: {
25
20
  req: SearchSitesRequest;
26
21
  } & {
27
22
  identity: OpenFin.Identity;
28
- }) => Promise<any[]>;
23
+ }) => Promise<TrackedSite[]>;
24
+ export type TrackedPageTab = {
25
+ identity: OpenFin.Identity;
26
+ page: Page;
27
+ };
28
+ export type TrackedWindowTab = {
29
+ window: OpenFin.WorkspacePlatformOptions;
30
+ };
31
+ export declare function isPageTab(tab: TrackedTab): tab is TrackedPageTab;
32
+ export declare function isWindowTab(tab: TrackedTab): tab is TrackedWindowTab;
@@ -1,6 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import type { AttachedPage, Page, PageWithUpdatableRuntimeAttribs } from './shapes';
3
- export declare function getLegacyPages(): Promise<Page[]>;
4
3
  export declare function cleanPage<T extends AttachedPage | Page>(page: T): T;
5
4
  /**
6
5
  * Generates a Page object which represents a page.
@@ -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
  /**
@@ -56,8 +56,8 @@ export declare enum PageChannelAction {
56
56
  IsActivePageChanging = "is-active-page-changing"
57
57
  }
58
58
  export declare enum CompanionDockChannelAction {
59
- UpdateFavoriteEntries = "update-favorite-entries",
60
- UpdateContentMenu = "update-content-menu",
59
+ UpdateFavoriteEntries = "update-favorite-entries",// Enterprise
60
+ UpdateContentMenu = "update-content-menu",// Enterprise
61
61
  NavigateContentMenu = "navigate-content-menu"
62
62
  }
63
63
  export declare const BrowserChannelAction: {
@@ -66,30 +66,30 @@ export declare enum WorkspacePlatformChannelAction {
66
66
  CopyPage = "copyPage",
67
67
  HandlePageChanges = "handlePageChanges",
68
68
  MarkUnsavedPagesAsSavedInternal = "markUnsavedPagesAsSavedInternal",
69
- TrackRemovedTabInternal = "trackRemovedTabInternal",
70
- RestoreRemovedTabInternal = "restoreRemovedTabInternal",
71
- TrackVisitedSiteInternal = "trackVisitedSiteInternal",
72
- GetRecentlyVisitedSitesInternal = "getRecentlyVisitedSitesInternal",
73
- GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal",
74
- SearchSitesInternal = "searchSitesInternal",
75
- GetSearchProvidersInternal = "getSearchProvidersInternal",
76
- GetCuratedContentInternal = "getCuratedContentInternal",
77
- HandleRequestNavigationInternal = "handleRequestNavigationInternal",
78
- RefreshBookmarksInternal = "refreshBookmarksInternal",
79
- LaunchBookmarkInternal = "launchBookmarkInternal",
69
+ TrackRemovedTabInternal = "trackRemovedTabInternal",// Enterprise
70
+ RestoreRemovedTabInternal = "restoreRemovedTabInternal",// Enterprise
71
+ TrackVisitedSiteInternal = "trackVisitedSiteInternal",// Enterprise
72
+ GetRecentlyVisitedSitesInternal = "getRecentlyVisitedSitesInternal",// Enterprise
73
+ GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal",// Enterprise
74
+ SearchSitesInternal = "searchSitesInternal",// Enterprise
75
+ GetSearchProvidersInternal = "getSearchProvidersInternal",// Enterprise
76
+ GetCuratedContentInternal = "getCuratedContentInternal",// Enterprise
77
+ HandleRequestNavigationInternal = "handleRequestNavigationInternal",// Enterprise
78
+ RefreshBookmarksInternal = "refreshBookmarksInternal",// Enterprise
79
+ LaunchBookmarkInternal = "launchBookmarkInternal",// Enterprise
80
80
  GetNotificationsConfig = "getNotificationsConfig",
81
- UpdateDockFavoritesInternal = "updateDockFavoritesInternal",
82
- UpdateContentMenuInternal = "updateContentMenuInternal",
83
- LaunchDockEntryInternal = "launchDockEntryInternal",
84
- SetDockFavoritesOrderInternal = "setDockFavoritesOrderInternal",
85
- NavigateContentMenuInternal = "navigateContentMenuInternal",
86
- SetDefaultDockButtonsOrderInternal = "setDefaultDockButtonsOrderInternal",
87
- GetDockWorkspacesContextMenuInternal = "getDockWorkspacesContextMenuInternal",
88
- HandleDockWorkspacesMenuResponseInternal = "handleDockWorkspacesMenuResponseInternal",
89
- RemoveDockFavoriteInternal = "removeDockFavoriteInternal",
90
- AddDockFavoriteInternal = "addDockFavoriteInternal",
91
- FocusAndExpandSearchInternal = "focusAndExpandSearchInternal",
92
- SendUpdateVersionModalResponseInternal = "sendUpdateVersionModalResponseInternal",
81
+ UpdateDockFavoritesInternal = "updateDockFavoritesInternal",// Enterprise
82
+ UpdateContentMenuInternal = "updateContentMenuInternal",// Enterprise
83
+ LaunchDockEntryInternal = "launchDockEntryInternal",// Enterprise
84
+ SetDockFavoritesOrderInternal = "setDockFavoritesOrderInternal",// Enterprise
85
+ NavigateContentMenuInternal = "navigateContentMenuInternal",// Enterprise
86
+ SetDefaultDockButtonsOrderInternal = "setDefaultDockButtonsOrderInternal",// Enterprise
87
+ GetDockWorkspacesContextMenuInternal = "getDockWorkspacesContextMenuInternal",// Enterprise
88
+ HandleDockWorkspacesMenuResponseInternal = "handleDockWorkspacesMenuResponseInternal",// Enterprise
89
+ RemoveDockFavoriteInternal = "removeDockFavoriteInternal",// Enterprise
90
+ AddDockFavoriteInternal = "addDockFavoriteInternal",// Enterprise
91
+ FocusAndExpandSearchInternal = "focusAndExpandSearchInternal",// Enterprise
92
+ SendUpdateVersionModalResponseInternal = "sendUpdateVersionModalResponseInternal",// Enterprise
93
93
  ShowUpdateVersionModalInternal = "showUpdateVersionModalInternal"
94
94
  }
95
95
  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, 'platformIdentity' | 'id'>) => string;
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<'storefront'>) => Promise<App[]>;
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<'storefront'>) => Promise<StorefrontLandingPage | undefined>;
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<'storefront'>) => Promise<StorefrontFooter>;
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<'storefront'>) => Promise<[StorefrontNavigationSection?, StorefrontNavigationSection?]>;
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<'storefront'>) => Promise<StorefrontNavigationItemAppGrid | undefined>;
58
+ export declare const getStorefrontNavigationItemAppGrid: (navigationItemId: string, provider: ProviderInfoInternal<"storefront">) => Promise<StorefrontNavigationItemAppGrid | undefined>;
@@ -249,5 +249,5 @@ export declare const getComputedPaletteSets: (customTheme: CustomThemeOptions |
249
249
  export declare const computeThemes: (customThemes: CustomThemes, storedScheme?: ColorSchemeOptionType) => ComputedThemes;
250
250
  export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
251
251
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
252
- export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, 'system'>>;
252
+ export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
253
253
  export declare const getComputedBackgroundColor: (paletteKey: keyof typeof Palette, defaultColor?: string) => Promise<string>;
@@ -1,3 +1,8 @@
1
- import { UseStore } from 'idb-keyval';
2
- export declare const createNamespacedStore: (storeName: string, tableName: string) => UseStore;
3
- export declare const getNewStoreAndMigrateLegacyStore: (storeName: string, tableName: string) => UseStore;
1
+ import { Dexie, EntityTable } from 'dexie';
2
+ export declare const getNamespacedDbName: (name: string) => string;
3
+ type DexieStore = {
4
+ [key: string]: EntityTable<any, any>;
5
+ };
6
+ type DexieDB = Dexie & DexieStore;
7
+ export declare const getNewStoreAndMigrateLegacyStore: (storeName: string, tableName: string) => DexieDB;
8
+ export {};
@@ -3,6 +3,7 @@ export declare const getContextMenuChannelName: () => string;
3
3
  export declare const getBookmarkContextMenuChannelName: () => string;
4
4
  export declare const getBookmarkPanelActionsMonitorChannelName: () => string;
5
5
  export declare const getDropdownMenuChannelName: () => string;
6
+ export declare const getZoomControlsDialogChannelName: () => string;
6
7
  export declare const createDropdownMenuChannel: () => Promise<OpenFin.ChannelProvider>;
7
8
  export declare const connectDropdownMenuChannel: () => Promise<OpenFin.ChannelClient>;
8
9
  export declare const createBookmarkDialogChannel: () => Promise<OpenFin.ChannelProvider>;
@@ -13,3 +14,5 @@ export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProv
13
14
  export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
14
15
  export declare const connectToEnterpriseContentChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
15
16
  export declare const connectToEnterpriseModalChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
17
+ export declare const createZoomControlsDialogChannel: () => Promise<OpenFin.ChannelProvider>;
18
+ export declare const connectToZoomControlsDialogChannel: () => Promise<OpenFin.ChannelClient>;
@@ -1,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  import type OpenFin from '@openfin/core';
3
2
  import { WindowIdentity } from '../../../common/src/utils/window';
4
3
  import { AttachedPageInternal } from '../../../common/src/api/pages/shapes';
@@ -79,7 +78,7 @@ export declare const cloneLayoutAndRemoveNames: (layout: PageLayout) => any;
79
78
  * @returns A copy of the layout with generated names removed
80
79
  */
81
80
  export declare const cloneLayoutAndRemoveGeneratedNames: (layout: PageLayout) => any;
82
- export declare const mapContentComponentState: (content: OpenFin.LayoutContent) => OpenFin.LayoutComponent['componentState'][];
81
+ export declare const mapContentComponentState: (content: OpenFin.LayoutContent) => OpenFin.LayoutComponent["componentState"][];
83
82
  export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
84
83
  export declare const layoutNameInitializedMap: Map<string, boolean>;
85
84
  export declare const isLayoutTabActive: (tabSelector: string) => boolean;
@@ -17,12 +17,12 @@ export interface ModalResponseEvent {
17
17
  }
18
18
  export declare const menuEvents: {
19
19
  emit: <EventKey extends keyof MenuEventTypes>(event: EventKey, ...payload: MenuEventTypes[EventKey]) => Promise<void>;
20
- addListener: <EventKey_1 extends keyof MenuEventTypes>(event: EventKey_1, listener: (...payload: MenuEventTypes[EventKey_1]) => void) => void;
21
- addListenerWithUUID: (uuid: string) => <EventKey_1 extends keyof MenuEventTypes>(event: EventKey_1, listener: (...payload: MenuEventTypes[EventKey_1]) => void) => void;
22
- removeListener: <EventKey_2 extends keyof MenuEventTypes>(event: EventKey_2, listener: (...payload: MenuEventTypes[EventKey_2]) => void) => void;
23
- once: <EventKey_3 extends keyof MenuEventTypes>(event: EventKey_3, listener: (...payload: MenuEventTypes[EventKey_3]) => void) => void;
20
+ addListener: <EventKey extends keyof MenuEventTypes>(event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void;
21
+ addListenerWithUUID: (uuid: string) => <EventKey extends keyof MenuEventTypes>(event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void;
22
+ removeListener: <EventKey extends keyof MenuEventTypes>(event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void;
23
+ once: <EventKey extends keyof MenuEventTypes>(event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void;
24
24
  };
25
- export declare const emitMenuResponse: (data: ModalResponseEvent['data']) => Promise<void>;
25
+ export declare const emitMenuResponse: (data: ModalResponseEvent["data"]) => Promise<void>;
26
26
  type WindowOptionsWithBounds = OptionalExceptFor<OpenFin.WindowOptions, 'name' | 'url'> & {
27
27
  top: number;
28
28
  left: number;
@@ -49,6 +49,6 @@ export declare function createMenuPosition(windowOptions: OptionalExceptFor<Open
49
49
  }>;
50
50
  export declare function showChildWindow({ options, parameters }: ShowChildOptions): Promise<OpenFin.Window>;
51
51
  export declare const waitForModalResponse: ({ options, content, parameters }: ResponseModalOptions) => Promise<{
52
- data: ModalResponseEvent['data'];
52
+ data: ModalResponseEvent["data"];
53
53
  }>;
54
54
  export {};
@@ -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['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<OpenFin.Bounds>;
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.
@@ -38,7 +38,8 @@ export declare enum EnterpriseMenuType {
38
38
  ContextMenu = "context-menu",
39
39
  RenameSupertab = "rename-supertab",
40
40
  AddEditBookmark = "add-edit-bookmark",
41
- DropdownMenu = "dropdown-menu"
41
+ DropdownMenu = "dropdown-menu",
42
+ ZoomControls = "zoom-controls"
42
43
  }
43
44
  export type BookmarkButtonPayload = {
44
45
  selectedViewIdentity: OpenFin.Identity;
@@ -72,6 +73,14 @@ export type BookmarkDialogChannelMessage = BaseEnterpriseMenuChannelMessage & {
72
73
  type: EnterpriseMenuType.AddEditBookmark;
73
74
  payload: BookmarkButtonPayload;
74
75
  };
76
+ export type ZoomControlsDialogPayload = {
77
+ selectedViewIdentity?: OpenFin.Identity;
78
+ zoomPercent?: number;
79
+ };
80
+ export type ZoomControlsDialogChannelMessage = BaseEnterpriseMenuChannelMessage & {
81
+ type: EnterpriseMenuType.ZoomControls;
82
+ payload: ZoomControlsDialogPayload;
83
+ };
75
84
  export type DropdownMenuChannelMessage = BaseEnterpriseMenuChannelMessage & {
76
85
  type: EnterpriseMenuType.DropdownMenu;
77
86
  payload: {
@@ -30,7 +30,8 @@ declare enum BrowserRoute {
30
30
  EnterpriseBookmarkDialog = "/bookmark-dialog/",
31
31
  EnterpriseStorageProxy = "/enterprise/storage-proxy",
32
32
  DropdownMenu = "/dropdown-menu/",
33
- EnterpriseDock = "/dock/"
33
+ EnterpriseDock = "/dock/",
34
+ ZoomControlsDialog = "/zoom-controls-dialog/"
34
35
  }
35
36
  declare const PageRoute: {
36
37
  Browser: BrowserRoute.Browser;
@@ -49,6 +50,7 @@ declare const PageRoute: {
49
50
  EnterpriseStorageProxy: BrowserRoute.EnterpriseStorageProxy;
50
51
  DropdownMenu: BrowserRoute.DropdownMenu;
51
52
  EnterpriseDock: BrowserRoute.EnterpriseDock;
53
+ ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
52
54
  Home: WorkspaceRoute.Home;
53
55
  HomeSearch: WorkspaceRoute.HomeSearch;
54
56
  HomePagesRename: WorkspaceRoute.HomePagesRename;
@@ -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: <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
8
+ addListener: <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => 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) => <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;
13
+ addListenerWithUUID: (uuid: string) => <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
14
+ removeListener: <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
15
+ once: <EventKey extends keyof EventMap>(event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void;
16
16
  };
@@ -1,4 +1,29 @@
1
1
  import { BackgroundLayers, CustomPaletteSet } from '../../../common/src/api/theming';
2
+ /**
3
+ * Parses a CSS color string (hex, rgb(a), or hsl(a)) into a structured RGB string and alpha value.
4
+ *
5
+ * This helper is designed to extract RGB and alpha components from theme-defined color values,
6
+ * enabling usage in CSS `rgba(var(--color), <alpha>)` syntax by separating the color and opacity parts.
7
+ *
8
+ * Supported formats:
9
+ * - Hex strings (`#RRGGBB` or `#RGB`) → parsed to `"r, g, b"` with `alpha: 1`
10
+ * - `rgb()` / `rgba()` → extracts numeric values; alpha is preserved if present
11
+ * - `hsl()` / `hsla()` → numeric values are extracted but visually may not reflect true RGB; alpha is preserved
12
+ *
13
+ * Example:
14
+ * ```ts
15
+ * const { rgb, alpha } = parseColorToRgbWithAlpha('rgba(255, 255, 255, 0.75)');
16
+ * // rgb = "255, 255, 255"
17
+ * // alpha = 0.75
18
+ * ```
19
+ *
20
+ * @param color - The primary color string from the theme (may be hex, rgb[a], hsl[a]).
21
+ * @returns An object with `rgb` as a comma-separated string, and `alpha` as a number between 0 and 1.
22
+ */
23
+ export declare const parseColorToRgbWithAlpha: (color: string) => {
24
+ rgb: string;
25
+ alpha: number;
26
+ };
2
27
  /**
3
28
  * Get hue from a CSS color
4
29
  *
@@ -16,7 +16,8 @@ export declare enum WindowName {
16
16
  DropdownMenu = "openfin-enterprise-dropdown-menu",
17
17
  DockCompanion = "openfin-dock-companion",
18
18
  AICompanionPrefix = "openfin-ai-companion-",
19
- UpdateVersionModal = "here-update-version-modal"
19
+ UpdateVersionModal = "here-update-version-modal",
20
+ ZoomControlsDialog = "here-zoom-controls-dialog"
20
21
  }
21
22
  export interface WindowIdentity {
22
23
  uuid: ApplicationUUID | string;
@@ -28,4 +28,4 @@ export declare const showUpdateVersionModal: ({ identity, title, description }:
28
28
  identity: OpenFin.Identity;
29
29
  title: string;
30
30
  description: string;
31
- }) => Promise<ModalResponseEvent['data']>;
31
+ }) => Promise<ModalResponseEvent["data"]>;
@@ -13,52 +13,46 @@
13
13
  "issuer": "common/src/utils/layout.ts"
14
14
  }
15
15
  ],
16
- "react-i18next": [
16
+ "title-case": [
17
17
  {
18
18
  "type": "root-implicit",
19
- "version": "15.4.0",
19
+ "version": "3.0.3",
20
20
  "packageName": "common/package.json",
21
- "issuer": "common/src/api/i18next.ts"
21
+ "issuer": "common/src/utils/color-linking.ts"
22
22
  }
23
23
  ],
24
- "i18next": [
24
+ "react-i18next": [
25
25
  {
26
26
  "type": "root-implicit",
27
- "version": "^23.7.16",
27
+ "version": "15.4.0",
28
28
  "packageName": "common/package.json",
29
29
  "issuer": "common/src/api/i18next.ts"
30
30
  }
31
31
  ],
32
- "title-case": [
32
+ "i18next": [
33
33
  {
34
34
  "type": "root-implicit",
35
- "version": "3.0.3",
35
+ "version": "^23.7.16",
36
36
  "packageName": "common/package.json",
37
- "issuer": "common/src/utils/color-linking.ts"
37
+ "issuer": "common/src/api/i18next.ts"
38
38
  }
39
39
  ],
40
- "idb-keyval": [
40
+ "dexie": [
41
41
  {
42
42
  "type": "explicit",
43
- "version": "^6.2.0",
43
+ "version": "^4.0.11",
44
44
  "packageName": "client-api-platform/package.json",
45
45
  "issuer": "client-api-platform/src/api/dock/idb.ts"
46
46
  },
47
47
  {
48
48
  "type": "root-implicit",
49
- "version": "^6.2.0",
49
+ "version": "^4.0.11",
50
50
  "packageName": "common/package.json",
51
51
  "issuer": "common/src/api/pages/idb.ts"
52
52
  },
53
- {
54
- "type": "explicit",
55
- "version": "^6.2.0",
56
- "packageName": "client-api-platform/package.json",
57
- "issuer": "client-api-platform/src/api/workspaces/idb.ts"
58
- },
59
53
  {
60
54
  "type": "root-implicit",
61
- "version": "^6.2.0",
55
+ "version": "^4.0.11",
62
56
  "packageName": "common/package.json",
63
57
  "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
64
58
  }