@openfin/workspace-platform 20.3.6 → 20.3.8

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,4 +1,4 @@
1
1
  import { ProvidersMap } from '../../../../client-api/src/internal/providers';
2
2
  import { CLIProvider, HomeProvider, RegisterMetaInfoInternal } from '../..';
3
- export declare const HomeProviders: ProvidersMap<HomeProvider | CLIProvider>;
3
+ export declare const HomeProviders: ProvidersMap<CLIProvider | HomeProvider>;
4
4
  export declare const registerHomeProviderInternal: (provider: HomeProvider | CLIProvider) => Promise<RegisterMetaInfoInternal>;
@@ -1,18 +1,22 @@
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.
6
7
  * @param app the app directory entry.
7
8
  * @param opts launch options.
8
9
  */
9
- export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Application | OpenFin.Identity | OpenFin.Platform | OpenFin.View>;
10
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
11
12
  export declare function getResults(payload: {
12
13
  req: SearchSitesRequest;
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[]>;
@@ -2269,3 +2269,7 @@ export interface LaunchBookmarkPayload {
2269
2269
  sourceIdentity: OpenFin.Identity;
2270
2270
  sourceEvent: Pick<MouseEvent, 'ctrlKey' | 'metaKey' | 'shiftKey'>;
2271
2271
  }
2272
+ export type SearchProviderFilter = {
2273
+ id: string;
2274
+ title: string;
2275
+ };
@@ -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 {};