@openfin/workspace 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,6 +1,6 @@
1
- import * as Notifications from 'openfin-notifications/dist/client/without-auto-launch';
1
+ import * as Notifications from '@here-io/notifications';
2
2
  import type { NotificationsPlatform, NotificationsRegisterOptions } from './shapes/notifications';
3
- export * from 'openfin-notifications/dist/client/without-auto-launch';
3
+ export * from '@here-io/notifications';
4
4
  export * from './shapes/notifications';
5
5
  /**
6
6
  * @deprecated Use `register` with {@link NotificationsRegisterOptions | options?: NotificationsRegisterOptions} argument instead.
@@ -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
  /**
2
- * This module exports only notifications types that are not defined in 'openfin-notifications' npm package
2
+ * This module exports only notifications types that are not defined in '@here-io/notifications' npm package
3
3
  */
4
4
  import { NotificationsCustomManifestOptions } from '../../../common/src/api/shapes/notifications';
5
5
  /**
@@ -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,16 +1,16 @@
1
1
  import type OpenFin from '@openfin/core';
2
- import { IconProps, IconType, Languages } from '@openfin/ui-library';
3
- import { ModalResponseEvent } from '../../common/src/utils/menu-window-provider';
2
+ import type { IconProps, IconType, Languages } from '@openfin/ui-library';
3
+ import type { ModalResponseEvent } from '../../common/src/utils/menu-window-provider';
4
4
  import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/utils/usage-register';
5
- import { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
6
- import { Resource } from '../../common/src/api/i18next';
7
- import { TrackedSite } from '../../common/src/api/pages/idb';
8
- import { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, CreateBookmarkNodeRequest, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, UpdateBookmarkNodeRequest, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
9
- import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
5
+ import type { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
6
+ import type { Resource } from '../../common/src/api/i18next';
7
+ import type { TrackedSite } from '../../common/src/api/pages/idb';
8
+ import type { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, CreateBookmarkNodeRequest, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, UpdateBookmarkNodeRequest, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
9
+ import type { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
10
10
  import type { CustomThemes, GeneratedPalettes } from '../../common/src/api/theming';
11
- import { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
11
+ import type { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
12
12
  import type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
13
- import { DockCompanionButton } from '../../dock3/src/shapes/index';
13
+ import type { DockCompanionButton } from '../../dock3/src/shapes/index';
14
14
  import type { AddPagesOptions, BasePageOpts, PageOpts } from '../../enterprise-api/src/shapes';
15
15
  export * from '../../dock3/src/shapes';
16
16
  export { AppManifestType } from '../../client-api/src/shapes';
@@ -124,6 +124,7 @@ export declare enum GlobalContextMenuOptionType {
124
124
  Downloads = "Downloads",
125
125
  OpenStorefront = "OpenStorefront",
126
126
  ManageDesktopSignals = "ManageDesktopSignals",
127
+ FindInPage = "FindInPage",
127
128
  Appearance = "Appearance",
128
129
  Quit = "Quit",
129
130
  Custom = "Custom"
@@ -177,6 +178,7 @@ export declare enum EnterpriseMainContextMenuOptionType {
177
178
  ShowHideTabs = "ShowHideTabs",
178
179
  AddToChanel = "AddToChannel",
179
180
  ManageDesktopSignals = "ManageDesktopSignals",// Enterprise
181
+ FindInPage = "FindInPage",// Enterprise
180
182
  Print = "Print",
181
183
  Pin = "Pin"
182
184
  }
@@ -413,6 +415,7 @@ export declare enum BrowserButtonType {
413
415
  LockUnlockPage = "LockUnlockPage",
414
416
  SaveMenu = "SaveMenu",
415
417
  SavePage = "SavePage",
418
+ Download = "Download",
416
419
  Minimise = "Minimise",
417
420
  Maximise = "Maximise",
418
421
  Close = "Close",
@@ -1914,6 +1917,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1914
1917
  setLanguage(locale: Locale): Promise<void>;
1915
1918
  /**
1916
1919
  * Implementation for getting the notifications workspace platform configuration.
1920
+ * @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.
1917
1921
  */
1918
1922
  getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1919
1923
  /**
@@ -2579,6 +2583,7 @@ export interface WorkspacePlatformInitConfig {
2579
2583
  /**
2580
2584
  * Config for overriding default notifications behaviour.
2581
2585
  * Leave undefined to use OpenFin hosted Notification Center.
2586
+ * @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.
2582
2587
  */
2583
2588
  notifications?: NotificationsCustomManifestOptions;
2584
2589
  /**
@@ -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;
@@ -299,16 +304,11 @@ export declare const OpenFinDarkTheme: {
299
304
  };
300
305
  export declare const DefaultOpenFinTheme: CustomThemes;
301
306
  export declare const getComputedPaletteSets: (customTheme: CustomThemeOptions | CustomThemeOptionsWithScheme) => WorkspaceThemeSet;
302
- /**
303
- * Transforms input {@link CustomThemes} to {@link ComputedThemes} used by Workspace Platform / Notifications Platform.
304
- *
305
- * @param customThemes array of themes to transform
306
- * @param storedScheme sets the default scheme if provided
307
- * @returns array of {@link ComputedThemes | computed themes}
308
- */
309
- export declare const computeThemes: (customThemes: CustomThemes | GeneratedPalettes, storedScheme?: ColorSchemeOptionType) => ComputedThemes;
310
- export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
307
+ export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
308
+ theme: GeneratedPalettes | CustomThemes;
309
+ defaultScheme: ColorSchemeOptionType;
310
+ }>;
311
311
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
312
312
  export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
313
- export declare const getComputedBackgroundColor: (paletteKey: keyof typeof Palette, defaultColor?: string) => Promise<string>;
313
+ export declare const getComputedBackgroundColor: () => Promise<string>;
314
314
  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;
@@ -1,16 +1,10 @@
1
1
  {
2
- "openfin-notifications/dist/client/without-auto-launch": [
3
- {
4
- "packageName": "client-api/package.json",
5
- "issuer": "client-api/src/notifications.ts"
6
- }
7
- ],
8
- "@openfin/microsoft365": [
2
+ "@here-io/notifications": [
9
3
  {
10
4
  "type": "explicit",
11
- "version": "^1.0.1",
5
+ "version": "npm:@openfin/notifications@2.13.0-alpha-4294",
12
6
  "packageName": "client-api/package.json",
13
- "issuer": "client-api/src/integrations/microsoft.ts"
7
+ "issuer": "client-api/src/notifications.ts"
14
8
  }
15
9
  ],
16
10
  "title-case": [
@@ -27,55 +21,12 @@
27
21
  "issuer": "common/src/utils/color-linking.ts"
28
22
  }
29
23
  ],
30
- "@radix-ui/react-icons": [
31
- {
32
- "type": "explicit-peer",
33
- "version": ">=1.3.2 <2.0.0",
34
- "rootVersion": "^1.3.2",
35
- "packageName": "packages/ui-library/package.json",
36
- "issuer": "packages/ui-library/dist/index.js"
37
- }
38
- ],
39
- "framer-motion": [
40
- {
41
- "type": "explicit-peer",
42
- "version": ">=11.13.1 <12.0.0",
43
- "rootVersion": "11.13.1",
44
- "packageName": "packages/ui-library/package.json",
45
- "issuer": "packages/ui-library/dist/index.js"
46
- }
47
- ],
48
- "lodash": [
49
- {
50
- "packageName": "packages/ui-library/package.json",
51
- "issuer": "packages/ui-library/dist/index.js"
52
- }
53
- ],
54
- "react": [
55
- {
56
- "type": "explicit-peer",
57
- "version": ">=18.3.1 <19.0.0",
58
- "rootVersion": "18.3.1",
59
- "packageName": "packages/ui-library/package.json",
60
- "issuer": "packages/ui-library/dist/index.js"
61
- }
62
- ],
63
- "react-calendar": [
64
- {
65
- "type": "explicit-peer",
66
- "version": ">=5.1.0 <6.0.0",
67
- "rootVersion": "^5.1.0",
68
- "packageName": "packages/ui-library/package.json",
69
- "issuer": "packages/ui-library/dist/index.js"
70
- }
71
- ],
72
- "styled-components": [
24
+ "@openfin/microsoft365": [
73
25
  {
74
- "type": "explicit-peer",
75
- "version": ">=5.3.11 <6.0.0",
76
- "rootVersion": "5.3.11",
77
- "packageName": "packages/ui-library/package.json",
78
- "issuer": "packages/ui-library/dist/index.js"
26
+ "type": "explicit",
27
+ "version": "^1.0.1",
28
+ "packageName": "client-api/package.json",
29
+ "issuer": "client-api/src/integrations/microsoft.ts"
79
30
  }
80
31
  ],
81
32
  "lodash.debounce": [
@@ -92,6 +43,22 @@
92
43
  "issuer": "common/src/utils/layout.ts"
93
44
  }
94
45
  ],
46
+ "react-i18next": [
47
+ {
48
+ "type": "root-implicit",
49
+ "version": "15.4.0",
50
+ "packageName": "common/package.json",
51
+ "issuer": "common/src/api/i18next.ts"
52
+ }
53
+ ],
54
+ "i18next": [
55
+ {
56
+ "type": "root-implicit",
57
+ "version": "^23.7.16",
58
+ "packageName": "common/package.json",
59
+ "issuer": "common/src/api/i18next.ts"
60
+ }
61
+ ],
95
62
  "dexie": [
96
63
  {
97
64
  "type": "root-implicit",
@@ -109,29 +76,13 @@
109
76
  "type": "root-implicit",
110
77
  "version": "^4.0.11",
111
78
  "packageName": "common/package.json",
112
- "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
79
+ "issuer": "common/src/api/pages/idb.ts"
113
80
  },
114
81
  {
115
82
  "type": "root-implicit",
116
83
  "version": "^4.0.11",
117
84
  "packageName": "common/package.json",
118
- "issuer": "common/src/api/pages/idb.ts"
119
- }
120
- ],
121
- "react-i18next": [
122
- {
123
- "type": "root-implicit",
124
- "version": "15.4.0",
125
- "packageName": "common/package.json",
126
- "issuer": "common/src/api/i18next.ts"
127
- }
128
- ],
129
- "i18next": [
130
- {
131
- "type": "root-implicit",
132
- "version": "^23.7.16",
133
- "packageName": "common/package.json",
134
- "issuer": "common/src/api/i18next.ts"
85
+ "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
135
86
  }
136
87
  ]
137
88
  }