@openfin/workspace-platform 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,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';
@@ -1361,6 +1362,10 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1361
1362
  * ```
1362
1363
  */
1363
1364
  applyWorkspace(workspace: Workspace, options?: ApplyWorkspaceOptions): Promise<boolean>;
1365
+ /**
1366
+ * Implementation for getting the notifications workspace platform configuration.
1367
+ */
1368
+ getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1364
1369
  /**
1365
1370
  * The browser window factory for the Workspace Platform.
1366
1371
  */
@@ -1704,6 +1709,11 @@ export interface WorkspacePlatformInitConfig {
1704
1709
  * ```
1705
1710
  */
1706
1711
  integrations?: WorkflowIntegration[];
1712
+ /**
1713
+ * Config for overriding default notifications behaviour.
1714
+ * Leave undefined to use OpenFin hosted Notification Center.
1715
+ */
1716
+ notifications?: NotificationsCustomManifestOptions;
1707
1717
  }
1708
1718
  /**
1709
1719
  * 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.