@openfin/workspace-platform 22.5.20 → 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.
- package/client-api/src/shapes/home.d.ts +12 -1
- package/common/src/api/home.d.ts +3 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/workspace_platform.zip +0 -0
|
@@ -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
|
}
|
package/common/src/api/home.d.ts
CHANGED
|
@@ -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.
|