@openfin/workspace-platform 23.0.0 → 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';
@@ -1,5 +1,5 @@
1
1
  import { GeneratedPalettes } from '../../../../common/src/api/theming';
2
2
  import { ThemeStorageController } from '../../../../client-api-platform/src/api/controllers/theme-storage-controller';
3
3
  import { CustomThemes } from '../../../../client-api-platform/src/shapes';
4
- export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => CustomThemes | GeneratedPalettes;
4
+ export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => GeneratedPalettes;
5
5
  export declare const getThemeStorageController: () => ThemeStorageController;
@@ -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
@@ -1,4 +1,4 @@
1
- import { ContentMenuEntry } from '@openfin/ui-library';
1
+ import type { ContentMenuEntry } from '@openfin/ui-library';
2
2
  import { DockCompanionButton, DockEntry, LaunchDockEntryPayload, Collection } from '../../../client-api-platform/src/shapes';
3
3
  export declare const DockCompanionUpdatesPrefix = "dock-companion-updates";
4
4
  export declare const refreshDockBookmarksPanel: () => Promise<void>;
@@ -1,2 +1,2 @@
1
1
  import { OpenFin } from '@openfin/core';
2
- export declare const createNonLayoutViewComponents: (overrideOptions: OpenFin.PlatformWindowCreationOptions) => Promise<void>;
2
+ export declare const createNonLayoutViewComponents: (isEnterprise: boolean, overrideOptions: OpenFin.PlatformWindowCreationOptions) => Promise<void[]>;
@@ -1,6 +1,6 @@
1
1
  import { GeneratedPalettes } from '../../../common/src/api/theming';
2
2
  import { CustomThemes } from '../shapes';
3
- export declare const getThemes: () => CustomThemes | GeneratedPalettes;
3
+ export declare const getThemes: () => GeneratedPalettes;
4
4
  /**
5
5
  * initTheming()
6
6
  * @param customThemes array of theme objects
@@ -1,11 +1,11 @@
1
1
  import type OpenFin from '@openfin/core';
2
- import { IconProps, IconType, Languages } from '@openfin/ui-library';
2
+ import type { IconProps, IconType, Languages } from '@openfin/ui-library';
3
3
  import type { AnalyticsEvent } from '../../common/src/utils/usage-register';
4
- import { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
5
- import { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
6
- import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
4
+ import type { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
5
+ import type { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
6
+ import type { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
7
7
  import type { CustomThemes, GeneratedPalettes } from '../../common/src/api/theming';
8
- import { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
8
+ import type { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
9
9
  import type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
10
10
  export * from '../../dock3/src/shapes';
11
11
  export { AppManifestType } from '../../client-api/src/shapes';
@@ -119,6 +119,7 @@ export declare enum GlobalContextMenuOptionType {
119
119
  Downloads = "Downloads",
120
120
  OpenStorefront = "OpenStorefront",
121
121
  ManageDesktopSignals = "ManageDesktopSignals",
122
+ FindInPage = "FindInPage",
122
123
  Appearance = "Appearance",
123
124
  Quit = "Quit",
124
125
  Custom = "Custom"
@@ -363,6 +364,7 @@ export declare enum BrowserButtonType {
363
364
  LockUnlockPage = "LockUnlockPage",
364
365
  SaveMenu = "SaveMenu",
365
366
  SavePage = "SavePage",
367
+ Download = "Download",
366
368
  Minimise = "Minimise",
367
369
  Maximise = "Maximise",
368
370
  Close = "Close",
@@ -1591,6 +1593,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1591
1593
  setLanguage(locale: Locale): Promise<void>;
1592
1594
  /**
1593
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.
1594
1597
  */
1595
1598
  getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1596
1599
  /**
@@ -2085,6 +2088,7 @@ export interface WorkspacePlatformInitConfig {
2085
2088
  /**
2086
2089
  * Config for overriding default notifications behaviour.
2087
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.
2088
2092
  */
2089
2093
  notifications?: NotificationsCustomManifestOptions;
2090
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
  /**
@@ -1,8 +1,13 @@
1
1
  import type { DefaultTheme } from 'styled-components';
2
2
  import type OpenFin from '@openfin/core';
3
- import { type ColorSchemeType, type ThemeSet, Palette } from '@openfin/ui-library';
3
+ import type { ColorSchemeType, ThemeSet } from '@openfin/ui-library';
4
4
  import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
5
5
  import type { generateTheme } from '@openfin/theme-engine';
6
+ export declare const ColorScheme: {
7
+ light: string;
8
+ dark: string;
9
+ system: string;
10
+ };
6
11
  export type WorkspaceComponentSetSelectedSchemePayload = {
7
12
  newScheme: ColorSchemeOptionType;
8
13
  identity: OpenFin.Identity;
@@ -275,16 +280,11 @@ export declare const OpenFinDarkTheme: {
275
280
  };
276
281
  export declare const DefaultOpenFinTheme: CustomThemes;
277
282
  export declare const getComputedPaletteSets: (customTheme: CustomThemeOptions | CustomThemeOptionsWithScheme) => WorkspaceThemeSet;
278
- /**
279
- * Transforms input {@link CustomThemes} to {@link ComputedThemes} used by Workspace Platform / Notifications Platform.
280
- *
281
- * @param customThemes array of themes to transform
282
- * @param storedScheme sets the default scheme if provided
283
- * @returns array of {@link ComputedThemes | computed themes}
284
- */
285
- export declare const computeThemes: (customThemes: CustomThemes | GeneratedPalettes, storedScheme?: ColorSchemeOptionType) => ComputedThemes;
286
- export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
283
+ export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
284
+ theme: GeneratedPalettes | CustomThemes;
285
+ defaultScheme: ColorSchemeOptionType;
286
+ }>;
287
287
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
288
288
  export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
289
- export declare const getComputedBackgroundColor: (paletteKey: keyof typeof Palette, defaultColor?: string) => Promise<string>;
289
+ export declare const getComputedBackgroundColor: () => Promise<string>;
290
290
  export {};
@@ -0,0 +1,35 @@
1
+ export type FindInPageChannelMessagePayload = {
2
+ type: 'close';
3
+ } | {
4
+ type: 'find-text-changed';
5
+ value: string;
6
+ } | {
7
+ type: 'focus-input';
8
+ } | {
9
+ type: 'next-result';
10
+ } | {
11
+ type: 'previous-result';
12
+ } | {
13
+ type: 'show';
14
+ } | {
15
+ type: 'update-state';
16
+ currentResultIndex?: number | null;
17
+ totalResults?: number | null;
18
+ value?: string | null;
19
+ } | {
20
+ type: 'view-ready';
21
+ } | {
22
+ type: 'window-ready';
23
+ };
24
+ /**
25
+ * Closes the find in page channel
26
+ */
27
+ export declare const closeFindInPageChannel: (channel: BroadcastChannel) => void;
28
+ /**
29
+ * Creates a new find in page channel
30
+ */
31
+ export declare const createFindInPageChannel: (windowName?: string) => Promise<BroadcastChannel>;
32
+ /**
33
+ * Sends a message via the find in page channel
34
+ */
35
+ export declare const sendFindInPageMessage: (channel: BroadcastChannel, message: FindInPageChannelMessagePayload) => void;
@@ -0,0 +1,2 @@
1
+ import type OpenFin from '@openfin/core';
2
+ export declare const showFindInPageInTargetWindow: (windowIdentity: OpenFin.Identity) => Promise<void>;
@@ -74,6 +74,13 @@ export declare const manageDesktopSignals: () => {
74
74
  type: WP.GlobalContextMenuOptionType;
75
75
  };
76
76
  };
77
+ export declare const findInPage: () => {
78
+ type: MenuItemType;
79
+ label: string;
80
+ data: {
81
+ type: WP.GlobalContextMenuOptionType;
82
+ };
83
+ };
77
84
  export declare const renameWorkspace: () => {
78
85
  type: MenuItemType;
79
86
  label: string;
@@ -33,7 +33,8 @@ declare enum BrowserRoute {
33
33
  EnterpriseDock = "/dock/",
34
34
  ZoomControlsDialog = "/zoom-controls-dialog/",
35
35
  DesktopSignalsModal = "/popup-menu/desktop-signals-modal/",
36
- IntentsResolverModal = "/popup-menu/intents-resolver-modal/"
36
+ IntentsResolverModal = "/popup-menu/intents-resolver-modal/",
37
+ FindInPageModal = "/find-in-page-modal/"
37
38
  }
38
39
  declare const PageRoute: {
39
40
  Browser: BrowserRoute.Browser;
@@ -55,6 +56,7 @@ declare const PageRoute: {
55
56
  ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
56
57
  DesktopSignalsModal: BrowserRoute.DesktopSignalsModal;
57
58
  IntentsResolverModal: BrowserRoute.IntentsResolverModal;
59
+ FindInPageModal: BrowserRoute.FindInPageModal;
58
60
  Home: WorkspaceRoute.Home;
59
61
  HomeSearch: WorkspaceRoute.HomeSearch;
60
62
  HomePagesRename: WorkspaceRoute.HomePagesRename;
@@ -22,7 +22,8 @@ export declare enum WindowName {
22
22
  ZoomControlsDialog = "here-zoom-controls-dialog",
23
23
  AboutPageWindow = "here-about-page",
24
24
  DesktopSignalsModal = "here-desktop-signals-modal",
25
- IntentsResolverModal = "here-intents-resolver-modal"
25
+ IntentsResolverModal = "here-intents-resolver-modal",
26
+ FindInPageViewPrefix = "here-find-in-page-view-"
26
27
  }
27
28
  export interface WindowIdentity {
28
29
  uuid: ApplicationUUID | string;
@@ -62,56 +62,5 @@
62
62
  "packageName": "common/package.json",
63
63
  "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
64
64
  }
65
- ],
66
- "@radix-ui/react-icons": [
67
- {
68
- "type": "explicit-peer",
69
- "version": ">=1.3.2 <2.0.0",
70
- "rootVersion": "^1.3.2",
71
- "packageName": "packages/ui-library/package.json",
72
- "issuer": "packages/ui-library/dist/index.js"
73
- }
74
- ],
75
- "framer-motion": [
76
- {
77
- "type": "explicit-peer",
78
- "version": ">=11.13.1 <12.0.0",
79
- "rootVersion": "11.13.1",
80
- "packageName": "packages/ui-library/package.json",
81
- "issuer": "packages/ui-library/dist/index.js"
82
- }
83
- ],
84
- "lodash": [
85
- {
86
- "packageName": "packages/ui-library/package.json",
87
- "issuer": "packages/ui-library/dist/index.js"
88
- }
89
- ],
90
- "react": [
91
- {
92
- "type": "explicit-peer",
93
- "version": ">=18.3.1 <19.0.0",
94
- "rootVersion": "18.3.1",
95
- "packageName": "packages/ui-library/package.json",
96
- "issuer": "packages/ui-library/dist/index.js"
97
- }
98
- ],
99
- "react-calendar": [
100
- {
101
- "type": "explicit-peer",
102
- "version": ">=5.1.0 <6.0.0",
103
- "rootVersion": "^5.1.0",
104
- "packageName": "packages/ui-library/package.json",
105
- "issuer": "packages/ui-library/dist/index.js"
106
- }
107
- ],
108
- "styled-components": [
109
- {
110
- "type": "explicit-peer",
111
- "version": ">=5.3.11 <6.0.0",
112
- "rootVersion": "5.3.11",
113
- "packageName": "packages/ui-library/package.json",
114
- "issuer": "packages/ui-library/dist/index.js"
115
- }
116
65
  ]
117
66
  }