@openfin/workspace-platform 23.0.1 → 23.0.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * WARNING: Do not export from './notifications' here. Not unless we move 'openfin-notifications' here.
2
+ * WARNING: Do not export from './notifications' here. Not unless we move '@here-io/notifications' here.
3
3
  */
4
4
  export * from './common';
5
5
  export * from './home';
@@ -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.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Application | OpenFin.View | OpenFin.Platform>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -62,7 +62,7 @@ export declare class ThemeStorageController {
62
62
  * Synchronize the current palette and scheme with workspace's storage instance if
63
63
  * storage based theming is enabled. Only syncs when user has explicitly selected a scheme.
64
64
  */
65
- trySynchronizeWorkspaceStorage: () => void;
65
+ trySynchronizeWorkspaceStorage: () => Promise<void>;
66
66
  /**
67
67
  * Set the current Palette to be used by workspace. This palette will be converted into
68
68
  * css vars and combined into a single stylesheet. This stylesheet is exposed in localstorage
@@ -364,6 +364,7 @@ export declare enum BrowserButtonType {
364
364
  LockUnlockPage = "LockUnlockPage",
365
365
  SaveMenu = "SaveMenu",
366
366
  SavePage = "SavePage",
367
+ Download = "Download",
367
368
  Minimise = "Minimise",
368
369
  Maximise = "Maximise",
369
370
  Close = "Close",
@@ -1592,6 +1593,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1592
1593
  setLanguage(locale: Locale): Promise<void>;
1593
1594
  /**
1594
1595
  * Implementation for getting the notifications workspace platform configuration.
1596
+ * @deprecated Notifications config is now part of the platform manifest and is automatically resolved by the notifications API. Do not use this method as it will not return the correct configuration.
1595
1597
  */
1596
1598
  getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1597
1599
  /**
@@ -2086,6 +2088,7 @@ export interface WorkspacePlatformInitConfig {
2086
2088
  /**
2087
2089
  * Config for overriding default notifications behaviour.
2088
2090
  * Leave undefined to use OpenFin hosted Notification Center.
2091
+ * @deprecated Notifications config is now part of the platform manifest and is automatically resolved by the notifications API. Do not use this property as it will not have any effect.
2089
2092
  */
2090
2093
  notifications?: NotificationsCustomManifestOptions;
2091
2094
  /**
@@ -1,5 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { ColorSchemeOptionType } from '../../../../client-api-platform/src/shapes';
3
+ import { NotificationsCustomManifestOptions } from '../shapes/notifications';
3
4
  export declare const NOTIFICATIONS_SYNC_CHANNEL = "of-workspace-notifications-sync";
4
5
  export declare enum NotificationsChannelAction {
5
6
  UpdatePlatformThemeScheme = "update-platform-theme-scheme"
@@ -10,5 +11,11 @@ export interface UpdatePlatformSchemePayload {
10
11
  interface NotificationsSyncChannelClient extends OpenFin.ChannelClient {
11
12
  dispatch(action: NotificationsChannelAction.UpdatePlatformThemeScheme, payload: UpdatePlatformSchemePayload): Promise<void>;
12
13
  }
14
+ export type ManifestNotificationsConfig = {
15
+ notifications?: {
16
+ customManifest?: NotificationsCustomManifestOptions;
17
+ };
18
+ };
19
+ export declare function getNotificationCenterUuid(): Promise<string>;
13
20
  export declare const getNotificationsSyncChannelClient: () => Promise<NotificationsSyncChannelClient>;
14
21
  export {};
@@ -78,7 +78,7 @@ export declare enum WorkspacePlatformChannelAction {
78
78
  HandleRequestNavigationInternal = "handleRequestNavigationInternal",// Enterprise
79
79
  RefreshBookmarksInternal = "refreshBookmarksInternal",// Enterprise
80
80
  LaunchBookmarkInternal = "launchBookmarkInternal",// Enterprise
81
- GetNotificationsConfig = "getNotificationsConfig",
81
+ GetNotificationsConfig = "getNotificationsConfig",// Deprecated
82
82
  UpdateDockFavoritesInternal = "updateDockFavoritesInternal",// Enterprise
83
83
  UpdateContentMenuInternal = "updateContentMenuInternal",// Enterprise
84
84
  LaunchDockEntryInternal = "launchDockEntryInternal",// Enterprise
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Options for using privately hosted notification service.
3
+ * @deprecated Custom manifest is now part of the platform manifest and is automatically resolved by the notifications API. Do not use this type as it will be ignored.
3
4
  */
4
5
  export type NotificationsCustomManifestOptions = {
5
6
  /**
@@ -281,7 +281,7 @@ export declare const OpenFinDarkTheme: {
281
281
  export declare const DefaultOpenFinTheme: CustomThemes;
282
282
  export declare const getComputedPaletteSets: (customTheme: CustomThemeOptions | CustomThemeOptionsWithScheme) => WorkspaceThemeSet;
283
283
  export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
284
- theme: CustomThemes | GeneratedPalettes;
284
+ theme: GeneratedPalettes | CustomThemes;
285
285
  defaultScheme: ColorSchemeOptionType;
286
286
  }>;
287
287
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;