@openfin/workspace-platform 23.0.0 → 23.0.1
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.
- package/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller-store.d.ts +1 -1
- package/client-api-platform/src/api/dock.d.ts +1 -1
- package/client-api-platform/src/init/override-callback/view-components.d.ts +1 -1
- package/client-api-platform/src/init/theming.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +6 -5
- package/common/src/api/theming.d.ts +11 -11
- package/common/src/utils/find-in-page/findInPageChannel.d.ts +35 -0
- package/common/src/utils/find-in-page/showFindInPageHandler.d.ts +2 -0
- package/common/src/utils/global-context-menu.d.ts +7 -0
- package/common/src/utils/route.d.ts +3 -1
- package/common/src/utils/window.d.ts +2 -1
- package/externals.report.json +0 -51
- package/index.js +1 -1485
- package/index.js.map +1 -1
- package/package.json +2 -9
- package/workspace_platform.zip +0 -0
|
@@ -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.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -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) =>
|
|
4
|
+
export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => GeneratedPalettes;
|
|
5
5
|
export declare const getThemeStorageController: () => ThemeStorageController;
|
|
@@ -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: () =>
|
|
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"
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { DefaultTheme } from 'styled-components';
|
|
2
2
|
import type OpenFin from '@openfin/core';
|
|
3
|
-
import {
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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: CustomThemes | GeneratedPalettes;
|
|
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: (
|
|
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;
|
|
@@ -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;
|
package/externals.report.json
CHANGED
|
@@ -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
|
}
|