@openfin/workspace-platform 22.5.19 → 22.5.21

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.
@@ -463,6 +463,7 @@ export interface HomeRegistration extends RegistrationMetaInfo {
463
463
  * @throws An error if the Home Provider is no longer registered.
464
464
  *
465
465
  * @param query search string
466
+ * @param @optional additional options to set the search query
466
467
  *
467
468
  * @returns A promise that resolves when the search string has been injected into home search
468
469
  *
@@ -500,5 +501,15 @@ export interface HomeRegistration extends RegistrationMetaInfo {
500
501
  *
501
502
  * ```
502
503
  */
503
- setSearchQuery(query: string): Promise<void>;
504
+ setSearchQuery(query: string, options?: SetSearchQueryOptions): Promise<void>;
505
+ }
506
+ /**
507
+ * Options to set the search query
508
+ */
509
+ export interface SetSearchQueryOptions {
510
+ /**
511
+ * Whether to show home after setting the search query
512
+ * @default true
513
+ */
514
+ showHome?: boolean;
504
515
  }
@@ -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.View | OpenFin.Platform | OpenFin.Application>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Application | OpenFin.View | OpenFin.Platform>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -1,13 +1,15 @@
1
1
  import type OpenFin from '@openfin/core';
2
- import { HomeSearchListenerRequest } from '../../../client-api/src/shapes';
2
+ import { HomeSearchListenerRequest, SetSearchQueryOptions } from '../../../client-api/src/shapes';
3
3
  export interface SearchQueryWithProviderID {
4
4
  providerID: string;
5
5
  query: string;
6
+ options?: SetSearchQueryOptions;
6
7
  }
7
8
  export interface SearchQueryWithProviderIdentity {
8
9
  providerID: string;
9
10
  platformIdentity: OpenFin.Identity;
10
11
  query: string;
12
+ options?: SetSearchQueryOptions;
11
13
  }
12
14
  /**
13
15
  * The ids of home providers that are built into Home.