@openfin/workspace 46.0.7 → 46.0.9

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 (49) hide show
  1. package/client-api/src/dock.test.d.ts +1 -1
  2. package/client-api-platform/src/api/app-directory.d.ts +1 -1
  3. package/client-api-platform/src/api/context-menu/browser-pagetab-handler.d.ts +1 -1
  4. package/client-api-platform/src/api/context-menu/keyboard-shortcuts.d.ts +30 -0
  5. package/client-api-platform/src/api/context-menu/utils.d.ts +4 -1
  6. package/client-api-platform/src/api/controllers/language-storage-controller-store.d.ts +2 -0
  7. package/client-api-platform/src/api/controllers/language-storage-controller.d.ts +25 -0
  8. package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +3 -4
  9. package/client-api-platform/src/api/controllers/workspace-storage-proxy-store.d.ts +13 -0
  10. package/client-api-platform/src/api/language.d.ts +3 -1
  11. package/client-api-platform/src/init/override-callback/commands.d.ts +8 -4
  12. package/client-api-platform/src/init/override-callback/dialogs.d.ts +1 -0
  13. package/client-api-platform/src/init/override-callback/view-options.d.ts +11 -0
  14. package/client-api-platform/src/shapes.d.ts +82 -10
  15. package/common/src/api/i18next.d.ts +4 -1
  16. package/common/src/api/pages/shapes.d.ts +4 -0
  17. package/common/src/api/protocol/browser.d.ts +12 -1
  18. package/common/src/api/protocol/shapes/connectors.d.ts +28 -0
  19. package/common/src/api/shapes/view-tab.d.ts +86 -0
  20. package/common/src/test/logger-mock.d.ts +10 -0
  21. package/common/src/utils/color-channels.d.ts +50 -41
  22. package/common/src/utils/enterprise-channels.d.ts +3 -0
  23. package/common/src/utils/enterpriseBrowser.d.ts +0 -1
  24. package/common/src/utils/env.d.ts +1 -1
  25. package/common/src/utils/global-context-menu.d.ts +11 -0
  26. package/common/src/utils/interop.d.ts +30 -0
  27. package/common/src/utils/keyboard-commands.d.ts +47 -0
  28. package/common/src/utils/local-storage-key.d.ts +1 -0
  29. package/common/src/utils/manage-connectors-modal.d.ts +21 -0
  30. package/common/src/utils/os.d.ts +2 -0
  31. package/common/src/utils/popup-window.d.ts +1 -0
  32. package/common/src/utils/route.d.ts +7 -3
  33. package/common/src/utils/usage-register.d.ts +8 -1
  34. package/common/src/utils/view-options.d.ts +20 -0
  35. package/common/src/utils/view-tab-appearance.d.ts +51 -0
  36. package/common/src/utils/window.d.ts +2 -0
  37. package/common/src/utils/workspace-modals.d.ts +6 -0
  38. package/externals.report.json +22 -16
  39. package/home.js +1 -1
  40. package/home.js.map +1 -1
  41. package/index.js +1 -1
  42. package/index.js.map +1 -1
  43. package/notifications.js +1 -1
  44. package/notifications.js.map +1 -1
  45. package/package.json +3 -3
  46. package/store.js +1 -1
  47. package/store.js.map +1 -1
  48. package/storefront-vpw/src/api/register.d.ts +1 -1
  49. package/common/src/utils/color-linking.d.ts +0 -4
@@ -1,44 +1,53 @@
1
- /**
2
- * Kept in a standalone module with type-only imports so consumers can pull it in
3
- * via the `@openfin/enterprise-api/color-channels` subpath without bundling the SDK.
4
- *
5
- * TODO: https://openfin.jira.com/browse/WRK-5704 - need to rewrite this to use color tokens
6
- */
1
+ import type OpenFin from '@openfin/core';
7
2
  export declare const ENTERPRISE_COLOR_CHANNELS: {
8
- readonly blue: {
9
- readonly name: "Blue";
10
- readonly color: "#0091EB";
11
- };
12
- readonly indigo: {
13
- readonly name: "Indigo";
14
- readonly color: "#6450FF";
15
- };
16
- readonly pink: {
17
- readonly name: "Pink";
18
- readonly color: "#E878CF";
19
- };
20
- readonly teal: {
21
- readonly name: "Teal";
22
- readonly color: "#24D1D1";
23
- };
24
- readonly green: {
25
- readonly name: "Green";
26
- readonly color: "#00AF78";
27
- };
28
- readonly orange: {
29
- readonly name: "Orange";
30
- readonly color: "#FF7D37";
31
- };
32
- readonly red: {
33
- readonly name: "Red";
34
- readonly color: "#F94144";
35
- };
36
- readonly yellow: {
37
- readonly name: "Yellow";
38
- readonly color: "#F9C74F";
39
- };
40
- readonly gray: {
41
- readonly name: "Gray";
42
- readonly color: "#828788";
3
+ readonly 'fdc3.channel.1': {
4
+ readonly name: "Channel 1";
5
+ readonly color: "red";
6
+ readonly glyph: "1";
7
+ };
8
+ readonly 'fdc3.channel.2': {
9
+ readonly name: "Channel 2";
10
+ readonly color: "orange";
11
+ readonly glyph: "2";
12
+ };
13
+ readonly 'fdc3.channel.3': {
14
+ readonly name: "Channel 3";
15
+ readonly color: "yellow";
16
+ readonly glyph: "3";
17
+ };
18
+ readonly 'fdc3.channel.4': {
19
+ readonly name: "Channel 4";
20
+ readonly color: "green";
21
+ readonly glyph: "4";
22
+ };
23
+ readonly 'fdc3.channel.5': {
24
+ readonly name: "Channel 5";
25
+ readonly color: "cyan";
26
+ readonly glyph: "5";
27
+ };
28
+ readonly 'fdc3.channel.6': {
29
+ readonly name: "Channel 6";
30
+ readonly color: "blue";
31
+ readonly glyph: "6";
32
+ };
33
+ readonly 'fdc3.channel.7': {
34
+ readonly name: "Channel 7";
35
+ readonly color: "magenta";
36
+ readonly glyph: "7";
37
+ };
38
+ readonly 'fdc3.channel.8': {
39
+ readonly name: "Channel 8";
40
+ readonly color: "purple";
41
+ readonly glyph: "8";
43
42
  };
44
43
  };
44
+ /**
45
+ * Enterprise picker wrap (5-column): blue, purple, magenta, cyan, green / orange, red, yellow.
46
+ * Canonical FDC3 ids and ENTERPRISE_COLOR_CHANNELS iteration order stay 1-8.
47
+ */
48
+ export declare const COLOR_CHANNEL_DISPLAY_ORDER: readonly ["fdc3.channel.6", "fdc3.channel.8", "fdc3.channel.7", "fdc3.channel.5", "fdc3.channel.4", "fdc3.channel.2", "fdc3.channel.1", "fdc3.channel.3"];
49
+ export declare const normalizeColorChannelId: (colorChannelId: string) => string | undefined;
50
+ export declare const areColorChannelIdsEqual: (firstColorChannelId: string, secondColorChannelId: string) => boolean;
51
+ export declare const sortContextGroupsForDisplay: (contextGroups: OpenFin.ContextGroupInfo[]) => OpenFin.ContextGroupInfo[];
52
+ export declare const getContextGroupDisplayName: (contextGroup: OpenFin.ContextGroupInfo) => string;
53
+ export declare const getContextGroupCssColor: (contextGroup: OpenFin.ContextGroupInfo) => string;
@@ -14,6 +14,9 @@ export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProv
14
14
  export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
15
15
  export declare const connectToEnterpriseContentChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
16
16
  export declare const connectToEnterpriseModalChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
17
+ export declare const getEnterpriseComponentBridgeChannelName: (uuid: string) => string;
18
+ export declare const connectToEnterpriseComponentBridgeChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
19
+ export declare const createEnterpriseComponentBridgeChannel: (uuid: string) => Promise<OpenFin.ChannelProvider>;
17
20
  export declare const createZoomControlsDialogChannel: () => Promise<OpenFin.ChannelProvider>;
18
21
  export declare const connectToZoomControlsDialogChannel: () => Promise<OpenFin.ChannelClient>;
19
22
  export declare const getTabSearchChannelName: () => string;
@@ -9,7 +9,6 @@ export declare const isEnterpriseBrowserPlatform: (browserInitOptions: BrowserIn
9
9
  export declare function formatUrl(url: string): string;
10
10
  export declare const getIsEnterpriseBrowser: (id?: OpenFin.Identity) => Promise<boolean>;
11
11
  export declare const isLandingPage: (url: string) => boolean;
12
- export declare const isLandingPageOrEmpty: (url: string) => boolean;
13
12
  export declare const isDefaultEnterpriseView: (viewIdentity: OpenFin.Identity) => boolean;
14
13
  export declare const getAICompanionViewIdentity: (browserIdentity?: OpenFin.Identity) => {
15
14
  uuid: string;
@@ -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: "" | "view" | "window";
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;
@@ -67,6 +67,13 @@ export declare const saveWorkspaceAs: () => {
67
67
  };
68
68
  };
69
69
  export declare const printMenuOptions: (isViewSelected: boolean) => Promise<GlobalContextMenuItemTemplate>;
70
+ export declare const manageConnectors: () => {
71
+ type: MenuItemType;
72
+ label: string;
73
+ data: {
74
+ type: WP.GlobalContextMenuOptionType;
75
+ };
76
+ };
70
77
  export declare const manageDesktopSignals: () => {
71
78
  type: MenuItemType;
72
79
  label: string;
@@ -95,7 +102,11 @@ export declare const deleteWorkspace: () => {
95
102
  label: string;
96
103
  };
97
104
  export declare const downloads: () => {
105
+ type: MenuItemType;
98
106
  label: string;
107
+ data: {
108
+ type: WP.GlobalContextMenuOptionType;
109
+ };
99
110
  };
100
111
  export declare const appearance: () => {
101
112
  label: string;
@@ -0,0 +1,30 @@
1
+ import type OpenFin from '@openfin/core';
2
+ export declare enum InteropEventType {
3
+ JoinedContextGroup = "joined-context-group",
4
+ RemovedFromContextGroup = "removed-from-context-group"
5
+ }
6
+ type InteropEventPayload<E extends InteropEventType> = {
7
+ [InteropEventType.JoinedContextGroup]: {
8
+ viewIdentity: OpenFin.Identity;
9
+ contextGroupId: string;
10
+ };
11
+ [InteropEventType.RemovedFromContextGroup]: {
12
+ viewIdentity: OpenFin.Identity;
13
+ };
14
+ }[E];
15
+ export type InteropListener<EventType extends InteropEventType> = (payload: InteropEventPayload<EventType>) => void;
16
+ /**
17
+ * Returns contextGroup data.
18
+ * @returns Promise<ContextGroup[]>
19
+ */
20
+ export declare function getContextGroups(): Promise<OpenFin.ContextGroupInfo[]>;
21
+ export declare const joinContextGroup: (viewIdentity: OpenFin.Identity, contextGroupId: string) => Promise<void>;
22
+ export declare const removeFromGroup: (viewIdentity: OpenFin.Identity) => Promise<void>;
23
+ export declare function getViewContextGroupId(viewIdentity: OpenFin.Identity): Promise<string | null | undefined>;
24
+ /**
25
+ * Listen for interop events.
26
+ * @param event the interop event to listen for.
27
+ * @param listener the function to call when the event occurs.
28
+ */
29
+ export declare const addInteropListener: <Event extends InteropEventType>(event: Event, listener: InteropListener<Event>) => Promise<void>;
30
+ export {};
@@ -0,0 +1,47 @@
1
+ export declare const KEYBOARD_COMMANDS: {
2
+ readonly NEW_TAB: "workspace.newTab";
3
+ readonly FIND_IN_PAGE: "findInPage.show";
4
+ readonly RESTORE_TAB: "workspace.restoreTab";
5
+ readonly CLOSE_TAB: "workspace.closeTab";
6
+ readonly NEXT_TAB: "workspace.nextTab";
7
+ readonly PREVIOUS_TAB: "workspace.previousTab";
8
+ readonly LAST_TAB: "workspace.lastTab";
9
+ readonly NEW_WINDOW: "workspace.newWindow";
10
+ readonly CLOSE_WINDOW: "workspace.closeWindow";
11
+ readonly SAVE_PAGE: "workspace.savePage";
12
+ readonly SAVE_PAGE_AS: "workspace.savePageAs";
13
+ readonly NAVIGATE_BACK: "workspace.navigateBack";
14
+ readonly NAVIGATE_FORWARD: "workspace.navigateForward";
15
+ readonly RELOAD: "workspace.reload";
16
+ readonly PRINT: "workspace.print";
17
+ readonly FOCUS_ADDRESS_BAR: "workspace.focusAddressBar";
18
+ readonly BOOKMARK_PAGE: "workspace.bookmarkPage";
19
+ readonly ZOOM_IN_VIEW: "workspace.zoomInView";
20
+ readonly ZOOM_OUT_VIEW: "workspace.zoomOutView";
21
+ readonly ZOOM_IN_PAGE: "workspace.zoomInPage";
22
+ readonly ZOOM_OUT_PAGE: "workspace.zoomOutPage";
23
+ };
24
+ export type KeyboardCommand = (typeof KEYBOARD_COMMANDS)[keyof typeof KEYBOARD_COMMANDS];
25
+ /**
26
+ * Which side wins when focused content binds the same shortcut as a HERE command.
27
+ *
28
+ * - `yieldable` (default): content wins. The key reaches the page first, like find-in-page; if the
29
+ * page calls `event.preventDefault()` the HERE command does not run, otherwise it does.
30
+ * - `reserved`: HERE wins and the key never reaches content. Limited to the commands Chrome itself
31
+ * does not let pages override (new/close/restore tab, new/close window, tab cycling) plus
32
+ * focus address bar.
33
+ *
34
+ * Every new command must be classified here. Use `yieldable` unless a page must never be able to
35
+ * block the command.
36
+ */
37
+ export declare const KEYBOARD_COMMAND_PRECEDENCE: Record<KeyboardCommand, 'reserved' | 'yieldable'>;
38
+ /** Numbered tab commands and any command not in {@link KEYBOARD_COMMAND_PRECEDENCE} are yieldable. */
39
+ export declare const isReservedKeyboardCommand: (command: string) => boolean;
40
+ /** Tabs 1–8 have their own command; the ninth shortcut maps to {@link KEYBOARD_COMMANDS.LAST_TAB}. */
41
+ export declare const NUMBERED_TAB_COUNT = 8;
42
+ export declare const getSelectTabCommand: (tabNumber: number) => string;
43
+ /**
44
+ * Formats an Electron-style accelerator (as registered in `getKeyboardCommands`) for display in a menu,
45
+ * e.g. `Shift+CommandOrControl+S` → `⇧⌘S` on Mac and `Ctrl+Shift+S` on Windows.
46
+ */
47
+ export declare const formatKeyboardShortcut: (keys: string, isWindows: boolean) => string;
@@ -7,6 +7,7 @@ declare enum LocalStorageKey {
7
7
  DockPosition = "DockPosition",
8
8
  SelectedColorScheme = "SelectedColorScheme",
9
9
  SelectedLanguage = "SelectedLanguage",
10
+ DefaultLanguage = "DefaultLanguage",
10
11
  ThemePaletteSheet = "ThemePaletteSheet",
11
12
  HasMovedStore = "HasMovedStore",
12
13
  PageDragState = "BrowserPageDragState",
@@ -0,0 +1,21 @@
1
+ import type OpenFin from '@openfin/core';
2
+ import { ConnectorPayload } from '../../../common/src/api/protocol/shapes/connectors';
3
+ export declare const getManageConnectorsModalWindowName: (parentWindowName: string) => string;
4
+ /** True when Manage Connectors is already showing for this parent window. */
5
+ export declare const isManageConnectorsModalOpen: (identity: OpenFin.Identity) => Promise<boolean>;
6
+ /**
7
+ * Focuses the Manage Connectors modal if it is already showing for this parent window.
8
+ * Returns true when the modal was showing and focus was requested.
9
+ */
10
+ export declare const focusManageConnectorsModalIfOpen: (identity: OpenFin.Identity) => Promise<boolean>;
11
+ /**
12
+ * Returns a modal height that fits the connector list, clamped to min/max.
13
+ */
14
+ export declare const getManageConnectorsModalHeight: (connectors: ConnectorPayload[]) => number;
15
+ /**
16
+ * Builds `showPopupWindow` options for the Manage Connectors modal.
17
+ *
18
+ * Prefetches connectors into `customData`, sizes the window to the list, and skips
19
+ * creation if the modal is already open. Returns `undefined` when already showing.
20
+ */
21
+ export declare const getManageConnectorsPopupOptions: (identity: OpenFin.Identity) => Promise<OpenFin.PopupOptions | undefined>;
@@ -1,4 +1,6 @@
1
1
  /** @internal Reset cached host specs — only for test isolation */
2
2
  export declare const resetHostSpecsCache: () => void;
3
3
  export declare const isOSWindows: () => Promise<boolean>;
4
+ /** For synchronous contexts */
5
+ export declare const isOSWindowsSync: () => boolean;
4
6
  export declare const isWindows10Or11: () => Promise<boolean>;
@@ -37,6 +37,7 @@ export type BrowserSearchMenuKeyboardEvent = {
37
37
  metaKey?: boolean;
38
38
  ctrlKey?: boolean;
39
39
  altKey?: boolean;
40
+ shiftKey?: boolean;
40
41
  };
41
42
  };
42
43
  export declare enum PopupWindowMenuType {
@@ -41,9 +41,11 @@ declare enum BrowserRoute {
41
41
  ZoomControlsDialog = "/zoom-controls-dialog/",
42
42
  DesktopSignalsModal = "/popup-menu/desktop-signals-modal/",
43
43
  IntentsResolverModal = "/popup-menu/intents-resolver-modal/",
44
- FindInPageModal = "/popup-menu/find-in-page-modal/"
44
+ ManageConnectorsModal = "/popup-menu/manage-connectors/",
45
+ FindInPageModal = "/popup-menu/find-in-page-modal/",
46
+ ExtensionActionsList = "/popup-menu/extension-actions-list/"
45
47
  }
46
- declare const PageRoute: {
48
+ export declare const PageRoute: {
47
49
  Browser: BrowserRoute.Browser;
48
50
  BrowserHome: BrowserRoute.BrowserHome;
49
51
  BrowserPopupMenu: BrowserRoute.BrowserPopupMenu;
@@ -66,7 +68,9 @@ declare const PageRoute: {
66
68
  ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
67
69
  DesktopSignalsModal: BrowserRoute.DesktopSignalsModal;
68
70
  IntentsResolverModal: BrowserRoute.IntentsResolverModal;
71
+ ManageConnectorsModal: BrowserRoute.ManageConnectorsModal;
69
72
  FindInPageModal: BrowserRoute.FindInPageModal;
73
+ ExtensionActionsList: BrowserRoute.ExtensionActionsList;
70
74
  Home: WorkspaceRoute.Home;
71
75
  HomeSearch: WorkspaceRoute.HomeSearch;
72
76
  HomePagesRename: WorkspaceRoute.HomePagesRename;
@@ -77,7 +81,7 @@ declare const PageRoute: {
77
81
  Analytics: WorkspaceRoute.Analytics;
78
82
  Provider: WorkspaceRoute.Provider;
79
83
  };
80
- type PageRoute = WorkspaceRoute | BrowserRoute;
84
+ export type PageRoute = WorkspaceRoute | BrowserRoute;
81
85
  export declare const Assets: {
82
86
  readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
83
87
  readonly IconFilter: "/icons/filter.svg";
@@ -1,4 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
+ import type { Page, PageCreationOrigin } from '../../../common/src/api/pages/shapes';
2
3
  import { AttachedPage } from '../../../client-api-platform/src/shapes';
3
4
  export interface RegisterUsageStatus {
4
5
  apiVersion?: string;
@@ -23,7 +24,8 @@ export declare enum ComponentName {
23
24
  PagePinning = "PagePinning",
24
25
  ViewTabNewTabShortcut = "ViewTabNewTabShortcut",
25
26
  SupertabHideShowTabs = "PRODM-318: Supertab Hide/Show Tab Headers",
26
- StorefrontVpw = "PRODM-171: VPW Storefront"
27
+ StorefrontVpw = "PRODM-171: VPW Storefront",
28
+ ManageConnectors = "PRODM-453: Manage Connectors"
27
29
  }
28
30
  export declare const registerBrowserUsage: (status: RegisterUsageStatus) => void;
29
31
  export declare const registerHomeUsage: (status: RegisterUsageStatus) => void;
@@ -41,6 +43,7 @@ export declare const registerPagePinningUsage: (status: RegisterUsageStatus) =>
41
43
  export declare const registerViewTabNewTabShortcutUsage: (status: RegisterUsageStatus) => void;
42
44
  export declare const registerSupertabHideShowTabsUsage: () => void;
43
45
  export declare const registerStorefrontVpwUsage: (status: RegisterUsageStatus) => void;
46
+ export declare const registerManageConnectorsUsage: () => void;
44
47
  export type AnalyticsSource = 'Browser' | 'Dock' | 'Home' | 'Notification' | 'Store' | 'Platform' | 'Theming' | 'Interop';
45
48
  /**
46
49
  * Event for analytics
@@ -63,6 +66,10 @@ export interface AnalyticsEventInternal extends AnalyticsEvent {
63
66
  export type AnalyticsEventRaise = Omit<AnalyticsEventInternal, 'source'>;
64
67
  export declare const raiseBrowserAnalytics: (payload: AnalyticsEventRaise) => Promise<void>;
65
68
  export declare const raiseBrowserPageAnalytics: (pages: AttachedPage[], action: string) => Promise<void>;
69
+ /**
70
+ * Raised when a new page ID is minted, as opposed to `Open Page`, which also fires for restored pages.
71
+ */
72
+ export declare const raiseCreatePageAnalytics: (page: Pick<Page, "pageId" | "title">, windowName: string, origin?: PageCreationOrigin) => Promise<void>;
66
73
  export declare const raiseHomeAnalytics: (platformIdentity: OpenFin.Identity, payload: AnalyticsEventRaise) => Promise<void>;
67
74
  export declare const raiseDockAnalytics: (platformIdentity: OpenFin.Identity, payload: AnalyticsEventRaise) => Promise<void>;
68
75
  export declare const raiseStorefrontAnalytics: (platformIdentity: OpenFin.Identity, payload: AnalyticsEventRaise) => Promise<void>;
@@ -0,0 +1,20 @@
1
+ import type OpenFin from '@openfin/core';
2
+ export type ViewOptionsConsumer = 'appearance' | 'controls' | 'shared';
3
+ /**
4
+ * Reads view options for the custom view-tab feature, optionally instrumented in debug builds.
5
+ *
6
+ * Collection is active only when the build-time `LOG_DEBUG` constant is true — set via
7
+ * `OF__WORKSPACE_LOG_DEBUG=true` at build time (including PR preview builds where that env is enabled).
8
+ * Tests may also enable collection with `globalThis.LOG_DEBUG = true` when the build constant is undefined.
9
+ * Production builds call `view.getOptions()` directly with no marks or logs.
10
+ *
11
+ * Baseline comparison before de-duplication should primarily use IPC / measure count: expect two `getOptions`
12
+ * calls and two Performance Timeline entries per view (appearance + controls). The de-duplicated path emits one
13
+ * entry with the `shared` consumer. Per-call baseline durations are secondary because two reads can overlap.
14
+ *
15
+ * Inspect entries in DevTools by filtering measures named `of-workspace-view-tab-get-options-*`. The Performance
16
+ * Timeline duration is authoritative; structured logs are the human-readable companion.
17
+ *
18
+ * Each debug invocation calls `view.getOptions()` exactly once — no caching or de-duplication on this branch.
19
+ */
20
+ export declare const getViewOptions: (view: OpenFin.View, consumer: ViewOptionsConsumer) => Promise<OpenFin.ViewOptions>;
@@ -0,0 +1,51 @@
1
+ import type OpenFin from '@openfin/core';
2
+ import type { ViewTabAppearanceOptions, ViewTabColorRole } from '../../../common/src/api/shapes/view-tab';
3
+ export declare const VIEW_TAB_STATES: readonly ["default", "hover", "active", "focus"];
4
+ export type ViewTabState = (typeof VIEW_TAB_STATES)[number];
5
+ /** A color that was discarded during sanitization, for the caller to log. */
6
+ export interface RejectedViewTabColor {
7
+ role: ViewTabColorRole;
8
+ /** Absent when the whole role was malformed rather than one of its states. */
9
+ state?: ViewTabState;
10
+ value: unknown;
11
+ }
12
+ /**
13
+ * Drops every state whose value is not a supported CSS color, returning what survived alongside what was
14
+ * discarded. Tab color is decoration, so a malformed value degrades that state to its theme default instead
15
+ * of failing the operation that carried it.
16
+ *
17
+ * Only the two color roles are validated. Every other `viewTab` option — `controls`, and whatever follows it
18
+ * — is carried through untouched, so a bad color cannot take an unrelated tab option down with it. Appearance
19
+ * is omitted only when nothing at all is left, which keeps a wholly-invalid object out of persistence.
20
+ */
21
+ export declare const sanitizeViewTabAppearance: (viewTab: unknown) => {
22
+ appearance?: ViewTabAppearanceOptions;
23
+ rejected: RejectedViewTabColor[];
24
+ };
25
+ /** Formats a rejected color for a log line, e.g. `viewTab.fontColor.default "##EDE8D0"`. */
26
+ export declare const describeRejectedViewTabColor: ({ role, state, value }: RejectedViewTabColor) => string;
27
+ type ViewOptionsWithWorkspacePlatform = {
28
+ workspacePlatform?: {
29
+ viewTab?: ViewTabAppearanceOptions;
30
+ };
31
+ };
32
+ /**
33
+ * True when this `view-options-changed` diff touched `workspacePlatform.viewTab`, so that unrelated view
34
+ * option changes do not repaint tabs.
35
+ *
36
+ * `oldVal` is checked as well as `newVal` because clearing `viewTab` drops it from `newVal` entirely —
37
+ * that case only shows up on the old side, and it still needs a repaint.
38
+ */
39
+ export declare const hasViewTabDiff: (diff: unknown) => boolean;
40
+ export declare const getViewTabAppearanceFromViewOptions: (options: ViewOptionsWithWorkspacePlatform) => ViewTabAppearanceOptions | undefined;
41
+ /**
42
+ * Reads view tab appearance from the view. Core persists `workspacePlatform` on view options across create,
43
+ * `updateOptions`, snapshot, and `getOptions`, so `getOptions` is the single source of truth.
44
+ */
45
+ export declare const getViewTabAppearanceFromView: (view: OpenFin.View) => Promise<ViewTabAppearanceOptions | undefined>;
46
+ /**
47
+ * Writes the per-state custom properties for a single tab element. Values are set inline so that sibling tabs
48
+ * in the same tab strip are unaffected.
49
+ */
50
+ export declare const applyViewTabAppearance: (tab: HTMLElement, appearance?: ViewTabAppearanceOptions) => void;
51
+ export {};
@@ -20,6 +20,7 @@ export declare enum WindowName {
20
20
  DropdownMenu = "openfin-enterprise-dropdown-menu",
21
21
  EnterpriseContextMenu = "openfin-enterprise-context-menu",
22
22
  TabSearchMenu = "openfin-browser-tab-search-menu",
23
+ ExtensionActionsListMenu = "openfin-enterprise-extension-actions-list-menu",
23
24
  EnterpriseBookmarkDialogWindow = "openfin-enterprise-bookmark-dialog",
24
25
  ZoomControlsDialog = "here-zoom-controls-dialog",
25
26
  UpdateVersionModal = "here-update-version-modal",
@@ -27,6 +28,7 @@ export declare enum WindowName {
27
28
  PublishOnCloseModal = "here-publish-on-close-modal",
28
29
  DesktopSignalsModal = "here-desktop-signals-modal",
29
30
  IntentsResolverModal = "here-intents-resolver-modal",
31
+ ManageConnectorsModal = "here-manage-connectors-modal",
30
32
  /** Browser-zone Home VPW window (platform child window). */
31
33
  HomeVpw = "home-vpw",
32
34
  /** Browser-zone Storefront VPW window (platform child window). */
@@ -44,3 +44,9 @@ export declare const showPublishOnCloseModal: (windowIdentity: OpenFin.Identity)
44
44
  * @returns Promise resolving to the user's intent resolution response
45
45
  */
46
46
  export declare const showIntentsResolverModal: (request: ShowIntentsResolverModalRequestInternal) => Promise<IntentResolverResponse>;
47
+ /**
48
+ * Opens the Manage Connectors modal for the given window.
49
+ * Popup prep is handled by `getManageConnectorsPopupOptions`.
50
+ * Set `registerUsage` to false when the platform opens it rather than the user.
51
+ */
52
+ export declare const showManageConnectorsModal: (identity: OpenFin.Identity, registerUsage?: boolean) => Promise<void>;
@@ -2,7 +2,7 @@
2
2
  "@openfin/notifications": [
3
3
  {
4
4
  "type": "explicit",
5
- "version": "46.0.0-alpha-5039",
5
+ "version": "46.0.0-alpha-5224",
6
6
  "packageName": "client-api/package.json",
7
7
  "issuer": "client-api/src/notifications.ts"
8
8
  }
@@ -22,11 +22,17 @@
22
22
  "packageName": "client-api/package.json",
23
23
  "issuer": "client-api/src/internal/providers.ts"
24
24
  },
25
+ {
26
+ "type": "explicit",
27
+ "version": "3.0.3",
28
+ "packageName": "client-api-platform/package.json",
29
+ "issuer": "client-api-platform/src/api/context-menu/browser-pagetab-handler.ts"
30
+ },
25
31
  {
26
32
  "type": "explicit",
27
33
  "version": "3.0.3",
28
34
  "packageName": "common/package.json",
29
- "issuer": "common/src/utils/color-linking.ts"
35
+ "issuer": "common/src/utils/color-channels.ts"
30
36
  }
31
37
  ],
32
38
  "lodash.debounce": [
@@ -67,19 +73,27 @@
67
73
  "issuer": "common/src/api/i18next.ts"
68
74
  }
69
75
  ],
70
- "dexie": [
76
+ "lodash.clonedeep": [
71
77
  {
72
- "type": "root-implicit",
73
- "version": "^4.0.11",
74
- "packageName": "dock3/package.json",
75
- "issuer": "dock3/src/api/idb.ts"
76
- },
78
+ "type": "explicit",
79
+ "version": "4.5.0",
80
+ "packageName": "common/package.json",
81
+ "issuer": "common/src/utils/layout.ts"
82
+ }
83
+ ],
84
+ "dexie": [
77
85
  {
78
86
  "type": "explicit",
79
87
  "version": "^4.0.11",
80
88
  "packageName": "common/package.json",
81
89
  "issuer": "common/src/api/pages/idb.ts"
82
90
  },
91
+ {
92
+ "type": "root-implicit",
93
+ "version": "^4.0.11",
94
+ "packageName": "dock3/package.json",
95
+ "issuer": "dock3/src/api/idb.ts"
96
+ },
83
97
  {
84
98
  "type": "explicit",
85
99
  "version": "^4.0.11",
@@ -92,13 +106,5 @@
92
106
  "packageName": "common/package.json",
93
107
  "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
94
108
  }
95
- ],
96
- "lodash.clonedeep": [
97
- {
98
- "type": "explicit",
99
- "version": "4.5.0",
100
- "packageName": "common/package.json",
101
- "issuer": "common/src/utils/layout.ts"
102
- }
103
109
  ]
104
110
  }