@openfin/workspace 20.3.6 → 20.3.7
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 +4 -0
- package/client-api-platform/src/shapes.d.ts +60 -4
- package/common/src/api/protocol/browser.d.ts +2 -1
- package/common/src/api/protocol/workspace-platform.d.ts +1 -0
- package/common/src/utils/enterprise-channels.d.ts +1 -0
- package/common/src/utils/popup-window.d.ts +3 -2
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +2 -1
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { App } from '../../../client-api/src/shapes';
|
|
3
|
+
import { SearchProvider } from '../../../client-api-platform/src/shapes';
|
|
3
4
|
import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site } from '../shapes';
|
|
4
5
|
/**
|
|
5
6
|
* Launch the app described by an App Directory entry.
|
|
@@ -13,6 +14,9 @@ export declare function getResults(payload: {
|
|
|
13
14
|
} & {
|
|
14
15
|
identity: OpenFin.Identity;
|
|
15
16
|
}): Promise<SearchSitesResponse>;
|
|
17
|
+
export declare function getSearchProviders(payload: {
|
|
18
|
+
identity: OpenFin.Identity;
|
|
19
|
+
}): Promise<SearchProvider[]>;
|
|
16
20
|
export declare function getCuratedContent(payload: {
|
|
17
21
|
identity: OpenFin.Identity;
|
|
18
22
|
}): Promise<Site[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { IconProps, Languages } from '@openfin/ui-library';
|
|
2
|
+
import { IconProps, IconType, Languages } from '@openfin/ui-library';
|
|
3
3
|
import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/utils/usage-register';
|
|
4
4
|
import { Point } from '../../common/src/utils/window';
|
|
5
5
|
import { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
@@ -1100,11 +1100,13 @@ export interface BrowserWindowModule {
|
|
|
1100
1100
|
/** @internal */
|
|
1101
1101
|
_getFrequentlyVisitedSites(req?: any): Promise<any[]>;
|
|
1102
1102
|
/** @internal */
|
|
1103
|
-
_searchSites(req
|
|
1103
|
+
_searchSites(req: SearchSitesRequest): Promise<SearchSitesResponse>;
|
|
1104
1104
|
/** @internal */
|
|
1105
1105
|
_getCuratedContent(req?: any): Promise<Site[]>;
|
|
1106
1106
|
/** @internal */
|
|
1107
1107
|
_handleRequestNavigation(args: NavigationRequest): Promise<void>;
|
|
1108
|
+
/** @internal */
|
|
1109
|
+
_getSearchProviders(req?: any): Promise<SearchProvider[]>;
|
|
1108
1110
|
_bookmarks: BrowserBookmarks;
|
|
1109
1111
|
}
|
|
1110
1112
|
export interface BrowserBookmarks {
|
|
@@ -1156,12 +1158,47 @@ export type NavigationRequest = {
|
|
|
1156
1158
|
* @internal
|
|
1157
1159
|
*/
|
|
1158
1160
|
export type SearchSitesRequest = {
|
|
1159
|
-
|
|
1161
|
+
/**
|
|
1162
|
+
* The search query to use when searching for results.
|
|
1163
|
+
*/
|
|
1164
|
+
query: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* The ID of the query request. This prevents result contamination from other queries.
|
|
1167
|
+
*/
|
|
1168
|
+
queryId: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* The ID of the active search provider being queried.
|
|
1171
|
+
*/
|
|
1172
|
+
providerId?: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Page number
|
|
1175
|
+
*/
|
|
1176
|
+
pageNumber?: number;
|
|
1177
|
+
/**
|
|
1178
|
+
* Number of results per page
|
|
1179
|
+
*/
|
|
1180
|
+
pageSize?: number;
|
|
1181
|
+
/**
|
|
1182
|
+
* Array of filter IDs for a search provider
|
|
1183
|
+
*/
|
|
1184
|
+
filters?: string[];
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* @internal
|
|
1188
|
+
*/
|
|
1189
|
+
export type SearchProviderResult = {
|
|
1190
|
+
id: string;
|
|
1191
|
+
results?: Site[];
|
|
1192
|
+
pageNumber?: number;
|
|
1193
|
+
pageSize?: number;
|
|
1194
|
+
showViewMore?: boolean;
|
|
1195
|
+
queryId?: string;
|
|
1196
|
+
supportsPaging?: boolean;
|
|
1160
1197
|
};
|
|
1161
1198
|
/**
|
|
1162
1199
|
* @internal
|
|
1163
1200
|
*/
|
|
1164
|
-
export type SearchSitesResponse =
|
|
1201
|
+
export type SearchSitesResponse = Array<SearchProviderResult>;
|
|
1165
1202
|
/**
|
|
1166
1203
|
* @internal
|
|
1167
1204
|
*/
|
|
@@ -1171,6 +1208,7 @@ export type SiteAction = {
|
|
|
1171
1208
|
altText?: string;
|
|
1172
1209
|
lightIcon?: string;
|
|
1173
1210
|
darkIcon?: string;
|
|
1211
|
+
description?: string;
|
|
1174
1212
|
};
|
|
1175
1213
|
/**
|
|
1176
1214
|
* @internal
|
|
@@ -1181,6 +1219,7 @@ export type SiteInfo = {
|
|
|
1181
1219
|
subTitle?: string;
|
|
1182
1220
|
cta?: string;
|
|
1183
1221
|
actions?: SiteAction[];
|
|
1222
|
+
rightSideIcon?: IconType;
|
|
1184
1223
|
};
|
|
1185
1224
|
/**
|
|
1186
1225
|
* @internal
|
|
@@ -2699,3 +2738,20 @@ export interface EnterpriseDockChannelProvider extends Omit<OpenFin.ChannelProvi
|
|
|
2699
2738
|
dispatch: <T extends keyof EnterpriseDockChannelClientChannelActions>(to: OpenFin.ClientIdentity, action: T, payload: Parameters<EnterpriseDockChannelClientChannelActions[T]>[0]) => Promise<Awaited<ReturnType<EnterpriseDockChannelClientChannelActions[T]>>>;
|
|
2700
2739
|
register: <T extends keyof EnterpriseDockChannelProviderChannelActions>(action: T, handler: (payload: Parameters<EnterpriseDockChannelProviderChannelActions[T]>[0], id: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<Awaited<ReturnType<EnterpriseDockChannelProviderChannelActions[T]>>>) => boolean;
|
|
2701
2740
|
}
|
|
2741
|
+
export type SearchProviderFilter = {
|
|
2742
|
+
id: string;
|
|
2743
|
+
title: string;
|
|
2744
|
+
};
|
|
2745
|
+
/**
|
|
2746
|
+
* Enterprise: Shape of provider for Search Tabs.
|
|
2747
|
+
* @internal
|
|
2748
|
+
*/
|
|
2749
|
+
export interface SearchProvider {
|
|
2750
|
+
id: string;
|
|
2751
|
+
title: string;
|
|
2752
|
+
isTab?: boolean;
|
|
2753
|
+
icon?: string;
|
|
2754
|
+
supportsQueryless?: boolean;
|
|
2755
|
+
supportsPaging?: boolean;
|
|
2756
|
+
filters?: SearchProviderFilter[];
|
|
2757
|
+
}
|
|
@@ -60,7 +60,8 @@ export declare enum PageChannelAction {
|
|
|
60
60
|
export declare enum EnterpriseAppDirectoryChannelAction {
|
|
61
61
|
GetApps = "get-apps",
|
|
62
62
|
GetCuratedContent = "get-curated-content",
|
|
63
|
-
GetRecentlyVisited = "get-recently-visited"
|
|
63
|
+
GetRecentlyVisited = "get-recently-visited",
|
|
64
|
+
GetSearchProviders = "get-search-providers"
|
|
64
65
|
}
|
|
65
66
|
/**
|
|
66
67
|
* @internal
|
|
@@ -70,6 +70,7 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
70
70
|
GetRecentlyVisitedSitesInternal = "getRecentlyVisitedSitesInternal",
|
|
71
71
|
GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal",
|
|
72
72
|
SearchSitesInternal = "searchSitesInternal",
|
|
73
|
+
GetSearchProvidersInternal = "getSearchProvidersInternal",
|
|
73
74
|
GetCuratedContentInternal = "getCuratedContentInternal",
|
|
74
75
|
HandleRequestNavigationInternal = "handleRequestNavigationInternal",
|
|
75
76
|
RefreshBookmarksInternal = "refreshBookmarksInternal",
|
|
@@ -11,3 +11,4 @@ export declare const createBookmarkPanelActionsMonitorChannel: () => Promise<Ope
|
|
|
11
11
|
export declare const connectToBookmarkPanelActionsMonitor: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProvider>;
|
|
13
13
|
export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
|
|
14
|
+
export declare const connectToEnterpriseContentChannel: (uuid: string) => Promise<OpenFin.ChannelClient>;
|
|
@@ -19,6 +19,7 @@ export type SearchMenuChannelUpdateState = {
|
|
|
19
19
|
searchText?: string;
|
|
20
20
|
keyboardEvent?: BrowserSearchMenuKeyboardEvent;
|
|
21
21
|
shouldExpandMenu?: SearchViewExpansionState;
|
|
22
|
+
offsetLeft?: number;
|
|
22
23
|
type: 'update-search-menu-state';
|
|
23
24
|
};
|
|
24
25
|
export type BrowserSearchMenuKeyboardEvent = {
|
|
@@ -63,12 +64,12 @@ export type SearchMenuChannelResponse = {
|
|
|
63
64
|
handled?: boolean;
|
|
64
65
|
} | {
|
|
65
66
|
type: 'resize-view';
|
|
66
|
-
isExpanded: boolean;
|
|
67
|
-
height: number;
|
|
68
67
|
width: number;
|
|
69
68
|
} | {
|
|
70
69
|
type: 'keyboard-event';
|
|
71
70
|
keyboardEvent: BrowserSearchMenuKeyboardEvent;
|
|
71
|
+
} | {
|
|
72
|
+
type: 'search-provider-changed';
|
|
72
73
|
};
|
|
73
74
|
export declare function showPopupWin<T extends keyof UserMenuParams>(parentWindow: OpenFin.Window, params: UserMenuParams[T], windowOpts: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;
|
|
74
75
|
export {};
|