@openfin/workspace 19.1.17 → 19.1.19

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.
@@ -1,5 +1,6 @@
1
1
  import { type CustomButtonConfig, type CustomDropdownConfig } from '../../../common/src/api/action';
2
2
  import { type RegistrationMetaInfo } from '../../../client-api/src/shapes/common';
3
+ import { TaskbarIcon } from '../../../client-api-platform/src/shapes';
3
4
  import { type ProviderInfo } from './provider';
4
5
  /**
5
6
  * Allows you to hide buttons for different Workspace components in the Dock UI.
@@ -177,7 +178,7 @@ export interface DockProviderConfig {
177
178
  /**
178
179
  * Icon for the provider.
179
180
  */
180
- icon: string;
181
+ icon: string | TaskbarIcon;
181
182
  }
182
183
  export interface DockProviderConfigWithIdentity extends ProviderInfo, DockProviderConfig {
183
184
  }
@@ -1,3 +1,4 @@
1
+ import { TaskbarIcon } from '../../../client-api-platform/src/shapes';
1
2
  export interface ProviderInfo {
2
3
  /**
3
4
  * Unique identifier for the provider.
@@ -12,9 +13,13 @@ export interface ProviderInfo {
12
13
  /**
13
14
  * Icon for the provider.
14
15
  */
15
- icon: string;
16
+ icon: string | TaskbarIcon;
16
17
  /**
17
18
  * version of client SDK, set by the API
18
19
  */
19
20
  clientAPIVersion?: string;
21
+ /**
22
+ * The group name to group the taskbar icon with.
23
+ */
24
+ taskbarIconGroup?: string;
20
25
  }
@@ -696,11 +696,15 @@ export interface BrowserWorkspacePlatformWindowOptions {
696
696
  * When true, disables the ability to close pages in the window. False by default.
697
697
  */
698
698
  preventPageClose?: boolean;
699
+ /**
700
+ * Taskbar Icon for the Browser Window. If light and dark icon are defined, then the taskbar icon will change when the scheme changes.
701
+ */
702
+ icon?: string | TaskbarIcon;
699
703
  }
700
704
  /**
701
705
  * Request for creating a browser window.
702
706
  */
703
- export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowCreationOptions, 'workspacePlatform'> {
707
+ export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowCreationOptions, 'workspacePlatform' | 'icon'> {
704
708
  /** WorkspacePlatform specific window options. These options will not work unless a workspace platform has been initialized. */
705
709
  workspacePlatform: BrowserWorkspacePlatformWindowOptions | {
706
710
  /** For internal usage. Defaults to 'browser' when Browser is enabled when the WorkspacePlatform is initialized. In order to use
@@ -709,6 +713,10 @@ export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowC
709
713
  * */
710
714
  windowType: WindowType.Platform;
711
715
  };
716
+ /** The icon to display on the taskbar.
717
+ * @deprecated Use the icon property in the workspacePlatform object instead.
718
+ */
719
+ icon?: string;
712
720
  }
713
721
  /**
714
722
  * A window that is part of a browser snapshot.
@@ -2367,3 +2375,7 @@ export type OpenSaveMenuRequest = {
2367
2375
  menuType: SaveModalType.SAVE_WORKSPACE | SaveModalType.SAVE_WORKSPACE_AS | SaveModalType.RENAME_WORKSPACE;
2368
2376
  id?: never;
2369
2377
  };
2378
+ export type TaskbarIcon = {
2379
+ dark: string;
2380
+ light: string;
2381
+ };
@@ -6,7 +6,7 @@ export interface PagesLayoutSnapshot {
6
6
  };
7
7
  pages: AttachedPageInternal[];
8
8
  }
9
- export declare const convertPagesToLayoutSnapshot: (pages: AttachedPageInternal[]) => {
9
+ export declare const convertPagesToLayoutSnapshot: (pages: AttachedPageInternal[], isEnterprise: boolean) => {
10
10
  layouts: Record<string, OpenFin.LayoutOptions>;
11
11
  pages: AttachedPageInternal[];
12
12
  };
@@ -227,5 +227,7 @@ export type AddPagePayload = {
227
227
  identity: OpenFin.Identity;
228
228
  /** The page to attach. */
229
229
  page: PageWithUpdatableRuntimeAttribs;
230
+ /** Index at which the page should be added */
231
+ insertionIndex?: number;
230
232
  };
231
233
  export {};
@@ -28,8 +28,8 @@ export declare enum PageRoute {
28
28
  export declare const Assets: {
29
29
  readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
30
30
  readonly IconFilter: "/icons/filter.svg";
31
- readonly LightStorefront: "/icons/lightstorefront.png";
32
- readonly DarkStorefront: "/icons/darkstorefront.png";
31
+ readonly LightStorefront: "/icons/store-icon-light.png";
32
+ readonly DarkStorefront: "/icons/store-icon-dark.png";
33
33
  readonly CallIconLight: "/icons/call-icon-light.svg";
34
34
  readonly CallIconDark: "/icons/call-icon-dark.svg";
35
35
  readonly ChatIconLight: "/icons/chat-icon-light.svg";
@@ -45,6 +45,8 @@ export declare const Assets: {
45
45
  readonly Microsoft365Icon: "/microsoft-365-integration-assets/microsoft-365-icon.svg";
46
46
  readonly PDFFileIcon: "/microsoft-365-integration-assets/pdf-file-icon.svg";
47
47
  };
48
+ readonly DockIconLight: "/icons/dock-icon-light.png";
49
+ readonly DockIconDark: "/icons/dock-icon-dark.png";
48
50
  };
49
51
  /**
50
52
  * Home DeepLink Options