@openfin/workspace 17.0.12 → 17.2.0

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,6 +1,7 @@
1
1
  /**
2
2
  * This module exports only notifications types that are not defined in 'openfin-notifications' npm package
3
3
  */
4
+ import { NotificationsCustomManifestOptions } from '../../../common/src/api/shapes/notifications';
4
5
  /**
5
6
  * Platform object to pass to `register` function.
6
7
  *
@@ -36,4 +37,5 @@ export interface NotificationsPlatform {
36
37
  }
37
38
  export interface NotificationsRegisterOptions {
38
39
  notificationsPlatformOptions?: NotificationsPlatform;
40
+ notificationsCustomManifest?: NotificationsCustomManifestOptions;
39
41
  }
@@ -1,3 +1,4 @@
1
1
  import type OpenFin from '@openfin/core';
2
+ import { NotificationsCustomManifestOptions } from '../../../../common/src/api/shapes/notifications';
2
3
  import { BrowserInitConfig, WorkspacePlatformOverrideCallback, WorkspacePlatformProvider } from '../../../../client-api-platform/src/shapes';
3
- export declare const getOverrideCallback: (browserInitOptions: BrowserInitConfig | null, overrideCallback?: WorkspacePlatformOverrideCallback) => OpenFin.OverrideCallback<WorkspacePlatformProvider>;
4
+ export declare const getOverrideCallback: (browserInitOptions: BrowserInitConfig | null, overrideCallback?: WorkspacePlatformOverrideCallback, notificationsConfig?: NotificationsCustomManifestOptions) => OpenFin.OverrideCallback<WorkspacePlatformProvider>;
@@ -4,6 +4,7 @@ import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/ut
4
4
  import { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
5
5
  import type { AttachedPage, CopyPagePayload, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult } from '../../common/src/api/pages/shapes';
6
6
  import { SetActivePageForWindowPayload } from '../../common/src/api/pages/shapes';
7
+ import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
7
8
  import type { CustomThemes } from '../../common/src/api/theming';
8
9
  import type { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
9
10
  import type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
@@ -1413,6 +1414,10 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1413
1414
  * ```
1414
1415
  */
1415
1416
  applyWorkspace(workspace: Workspace, options?: ApplyWorkspaceOptions): Promise<boolean>;
1417
+ /**
1418
+ * Implementation for getting the notifications workspace platform configuration.
1419
+ */
1420
+ getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1416
1421
  /**
1417
1422
  * The browser window factory for the Workspace Platform.
1418
1423
  */
@@ -1774,6 +1779,11 @@ export interface WorkspacePlatformInitConfig {
1774
1779
  * ```
1775
1780
  */
1776
1781
  integrations?: WorkflowIntegration[];
1782
+ /**
1783
+ * Config for overriding default notifications behaviour.
1784
+ * Leave undefined to use OpenFin hosted Notification Center.
1785
+ */
1786
+ notifications?: NotificationsCustomManifestOptions;
1777
1787
  }
1778
1788
  /**
1779
1789
  * Extend or replace default functionality in order to customize behavior of a Workspace Platform Provider.
@@ -55,7 +55,8 @@ export declare enum WorkspacePlatformChannelAction {
55
55
  SaveDockProviderConfig = "saveDockProviderConfig",
56
56
  HandleSaveModalOnPageClose = "handleSaveModalOnPageClose",
57
57
  CopyPage = "copyPage",
58
- HandlePageChanges = "handlePageChanges"
58
+ HandlePageChanges = "handlePageChanges",
59
+ GetNotificationsConfig = "getNotificationsConfig"
59
60
  }
60
61
  export type PlatFormSupportedFeatures = boolean | {
61
62
  isWorkspacePlatform: boolean;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Options for using privately hosted notification service.
3
+ */
4
+ export type NotificationsCustomManifestOptions = {
5
+ /**
6
+ * A custom manifest location to start the notification service from.
7
+ * The UUID cannot be OpenFin hosted Notification Service UUID, 'notifications-service'.
8
+ */
9
+ manifestUrl: string;
10
+ /**
11
+ * The UUID of the provided custom notifications service manifest.
12
+ * This value **MUST** match the UUID of the manifest provided in `manifestUrl`.
13
+ */
14
+ manifestUuid: string;
15
+ };
@@ -62,8 +62,6 @@ export declare const mapContentComponentState: (content: OpenFin.LayoutContent)
62
62
  export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
63
63
  export declare const isLayoutTabActive: (tabSelector: string) => boolean;
64
64
  export declare const containerId = "layout_container";
65
- export declare const getViewComponents: () => OpenFin.LayoutContent;
66
- export declare const removeLayoutView: (name: string) => Promise<void>;
67
65
  export declare const addLayoutEventListener: (event: LayoutDOMEventType, listener: LayoutDOMEventListener) => void;
68
66
  /**
69
67
  * Initialize the layout for the current OF window.