@openfin/workspace-platform 19.1.18 → 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
  }
@@ -663,11 +663,15 @@ export interface BrowserWorkspacePlatformWindowOptions {
663
663
  * When true, disables the ability to close pages in the window. False by default.
664
664
  */
665
665
  preventPageClose?: boolean;
666
+ /**
667
+ * Taskbar Icon for the Browser Window. If light and dark icon are defined, then the taskbar icon will change when the scheme changes.
668
+ */
669
+ icon?: string | TaskbarIcon;
666
670
  }
667
671
  /**
668
672
  * Request for creating a browser window.
669
673
  */
670
- export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowCreationOptions, 'workspacePlatform'> {
674
+ export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowCreationOptions, 'workspacePlatform' | 'icon'> {
671
675
  /** WorkspacePlatform specific window options. These options will not work unless a workspace platform has been initialized. */
672
676
  workspacePlatform: BrowserWorkspacePlatformWindowOptions | {
673
677
  /** For internal usage. Defaults to 'browser' when Browser is enabled when the WorkspacePlatform is initialized. In order to use
@@ -676,6 +680,10 @@ export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowC
676
680
  * */
677
681
  windowType: WindowType.Platform;
678
682
  };
683
+ /** The icon to display on the taskbar.
684
+ * @deprecated Use the icon property in the workspacePlatform object instead.
685
+ */
686
+ icon?: string;
679
687
  }
680
688
  /**
681
689
  * A window that is part of a browser snapshot.
@@ -2105,3 +2113,7 @@ export type OpenSaveMenuRequest = {
2105
2113
  menuType: SaveModalType.SAVE_WORKSPACE | SaveModalType.SAVE_WORKSPACE_AS | SaveModalType.RENAME_WORKSPACE;
2106
2114
  id?: never;
2107
2115
  };
2116
+ export type TaskbarIcon = {
2117
+ dark: string;
2118
+ light: string;
2119
+ };
@@ -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