@openfin/workspace 46.0.5 → 46.0.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.
@@ -1,7 +1,7 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { App } from '../../../client-api/src/shapes';
3
3
  import { SearchProvider } from '../../../client-api-platform/src/shapes';
4
- import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site } from '../shapes';
4
+ import type { ContentSortRequest, LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site } from '../shapes';
5
5
  /**
6
6
  * Launch the app described by an App Directory entry.
7
7
  * @param app the app directory entry.
@@ -19,7 +19,8 @@ export declare function getSearchProviders(payload: {
19
19
  }): Promise<SearchProvider[]>;
20
20
  export declare function getCuratedContent(payload: {
21
21
  identity: OpenFin.Identity;
22
+ req?: ContentSortRequest;
22
23
  }): Promise<Site[]>;
23
- export declare function getRecentlyVisited(payload: {
24
- identity: OpenFin.Identity;
24
+ export declare function getRecentlyVisited(payload: ContentSortRequest & {
25
+ identity?: OpenFin.Identity;
25
26
  }): Promise<App[]>;
@@ -1298,13 +1298,13 @@ export interface BrowserWindowModule {
1298
1298
  /** @internal */
1299
1299
  _trackVisitedSite(req: any): Promise<void>;
1300
1300
  /** @internal */
1301
- _getRecentlyVisitedSites(req?: number): Promise<any[]>;
1301
+ _getRecentlyVisitedSites(req?: ContentSortRequest): Promise<any[]>;
1302
1302
  /** @internal */
1303
1303
  _getFrequentlyVisitedSites(req?: any): Promise<any[]>;
1304
1304
  /** @internal */
1305
1305
  _searchSites(req: SearchSitesRequest): Promise<SearchSitesResponse>;
1306
1306
  /** @internal */
1307
- _getCuratedContent(req?: any): Promise<Site[]>;
1307
+ _getCuratedContent(req?: ContentSortRequest): Promise<Site[]>;
1308
1308
  /** @internal */
1309
1309
  _handleRequestNavigation(args: NavigationRequest): Promise<void>;
1310
1310
  /** @internal */
@@ -1355,6 +1355,7 @@ export type NavigationRequest = {
1355
1355
  action: 'result-selected';
1356
1356
  trigger?: SiteAction;
1357
1357
  site: Site;
1358
+ openMode?: 'replace' | 'new-tab' | 'new-window';
1358
1359
  } | (SearchSitesRequest & {
1359
1360
  action: 'search-input';
1360
1361
  }));
@@ -1466,6 +1467,13 @@ export type CollectionSite = SiteInfo & {
1466
1467
  * @internal
1467
1468
  */
1468
1469
  export type Site = AppSite | WorkspaceSite;
1470
+ /**
1471
+ * @internal
1472
+ */
1473
+ export type ContentSortRequest = {
1474
+ sortBy?: 'title' | 'timestamp' | 'createdAt';
1475
+ sortOrder?: 'asc' | 'desc';
1476
+ };
1469
1477
  /**
1470
1478
  * @internal
1471
1479
  * action is undefined when the site is actioned with the default action.
@@ -171,8 +171,5 @@ export type SearchMenuChannelResponse = {
171
171
  } | {
172
172
  type: 'single-provider-results-announcement';
173
173
  message: string;
174
- } | {
175
- /** Landing page was clicked. Chrome collapses search if view-focused never arrived. */
176
- type: 'page-clicked';
177
174
  };
178
175
  export {};
@@ -67,14 +67,6 @@
67
67
  "issuer": "common/src/api/i18next.ts"
68
68
  }
69
69
  ],
70
- "lodash.clonedeep": [
71
- {
72
- "type": "explicit",
73
- "version": "4.5.0",
74
- "packageName": "common/package.json",
75
- "issuer": "common/src/utils/layout.ts"
76
- }
77
- ],
78
70
  "dexie": [
79
71
  {
80
72
  "type": "root-implicit",
@@ -100,5 +92,13 @@
100
92
  "packageName": "common/package.json",
101
93
  "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
102
94
  }
95
+ ],
96
+ "lodash.clonedeep": [
97
+ {
98
+ "type": "explicit",
99
+ "version": "4.5.0",
100
+ "packageName": "common/package.json",
101
+ "issuer": "common/src/utils/layout.ts"
102
+ }
103
103
  ]
104
104
  }