@openfin/workspace-platform 4.15.0 → 4.19.0

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.
@@ -4,11 +4,12 @@
4
4
  */
5
5
  import type { Page } from '../../common/src/api/pages/shapes';
6
6
  import type { Workspace } from '../../common/src/api/workspaces';
7
- import type { Action, DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProvider, SearchResult } from '../../search-api/src';
8
- export type { Action, DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProviderInfo, SearchResult, ScoreOrder, SearchTag, SearchProvider, UserInputListener, ResultDispatchListener, SearchResponse } from '../../search-api/src';
7
+ import type { Action, DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProvider, SearchResult } from '../../search-api/src/index';
8
+ export type { Action, DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProviderInfo, SearchResult, ScoreOrder, SearchTag, SearchProvider, UserInputListener, ResultDispatchListener, SearchResponse } from '../../search-api/src/index';
9
9
  export type { Workspace } from '../../common/src/api/workspaces';
10
- export type { Page } from '../../common/src/api/pages/shapes';
11
- export { SearchTagBackground } from '../../search-api/src';
10
+ export type { LayoutExtended, LayoutContentExtended, LayoutSettingsExtended, LayoutContentItemExtended, LayoutComponentExtended, LayoutComponentStateExtended, LayoutStack } from '../../common/src/utils/layout';
11
+ export type { Page, PageLayout, PageLayoutDetails } from '../../common/src/api/pages/shapes';
12
+ export { SearchTagBackground } from '../../search-api/src/index';
12
13
  /**
13
14
  * Describes the type of the app directory entry `manifest` attributes.
14
15
  * Launch mechanics are determined by the manifest type.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import type { AttachedPage, Page, PageWithUpdatableRuntimeAttribs } from '@common/api/pages/shapes';
2
+ import type { AttachedPage, Page, PageWithUpdatableRuntimeAttribs } from '../../../../common/src/api/pages/shapes';
3
3
  export declare const getBrowserModule: (identity: OpenFin.Identity) => {
4
4
  identity: OpenFin.Identity;
5
5
  openfinWindow: import("openfin-adapter").Window;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import type { AttachedPage, Page } from '@common/api/pages/shapes';
2
+ import type { AttachedPage, Page } from '../../../../common/src/api/pages/shapes';
3
3
  import type { BrowserCreateWindowRequest, BrowserWindowModule } from '../../shapes';
4
4
  export declare const getBrowserApi: (identity: OpenFin.ApplicationIdentity) => {
5
5
  wrapSync: (windowIdentity: OpenFin.Identity) => {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import { SnapshotExtended } from '@common/utils/snapshot';
2
+ import { SnapshotExtended } from '../../../../common/src/utils/snapshot';
3
3
  /**
4
4
  * Get a snapshot with pages.
5
5
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import type { AttachPagesToWindowPayload } from '@common/api/pages/shapes';
3
- import type { CreateSavedPageRequest, Page, UpdateSavedPageRequest } from '@client-platform/shapes';
2
+ import type { AttachPagesToWindowPayload } from '../../../../common/src/api/pages/shapes';
3
+ import type { CreateSavedPageRequest, Page, UpdateSavedPageRequest } from '../../../../client-api-platform/src/shapes';
4
4
  /**
5
5
  * Get all open pages in which are attached to a window.
6
6
  * @returns the list of attached pages.
@@ -1,4 +1,4 @@
1
- import { Page } from '@common/api/pages/shapes';
1
+ import { Page } from '../../../common/src/api/pages/shapes';
2
2
  import type { CreateSavedPageRequest, UpdateSavedPageRequest } from '../shapes';
3
3
  export declare const getStorageApi: (identity: any) => {
4
4
  createPage: (req: CreateSavedPageRequest) => Promise<any>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import type { CustomThemes } from '@common/api/theming';
2
+ import type { CustomThemes } from '../../../common/src/api/theming';
3
3
  export declare const getThemingApi: (identity: OpenFin.ApplicationIdentity) => {
4
4
  getThemes: () => Promise<CustomThemes>;
5
5
  };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
- import type { BrowserInitConfig } from '@client-platform/shapes';
2
+ import type { BrowserInitConfig } from '../../../client-api-platform/src/shapes';
3
3
  export declare const getOverrideCallback: (initOptions: BrowserInitConfig) => OpenFin.OverrideCallback<OpenFin.PlatformProvider>;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="openfin-adapter/fin" />
2
2
  import type { InteropBroker } from 'openfin-adapter/src/api/interop';
3
- import type { App } from '../../client-api/src/shapes';
4
3
  import type { AttachedPage, Page, PageWithUpdatableRuntimeAttribs } from '../../common/src/api/pages/shapes';
5
4
  import type { CustomThemes } from '../../common/src/api/theming';
5
+ import type { App } from '../../client-api/src/shapes';
6
6
  export type { CustomThemes } from '../../common/src/api/theming';
7
7
  export type { App, Image, AppIntent } from '../../client-api/src/shapes';
8
8
  export { AppManifestType } from '../../client-api/src/shapes';
@@ -43,16 +43,23 @@ export interface UpdateAttachedPageRequest {
43
43
  * Request for creating a browser window.
44
44
  */
45
45
  export interface BrowserCreateWindowRequest extends Omit<OpenFin.PlatformWindowCreationOptions, 'workspacePlatform'> {
46
+ /** WorkspacePlatform specific window options. These options will not work unless a workspace platform has been initialized. */
46
47
  workspacePlatform: {
47
48
  /** The initial set of pages to add to the created browser window. */
48
49
  pages: Page[];
49
- /** The favicon to display on the top right of the created browser window. */
50
+ /** The favicon to display on the top left of the created browser window. */
50
51
  favicon?: string;
51
52
  /** A UI friendly title for the created browser window. */
52
53
  title?: string;
53
- /** A URL to use when creating a new tab. */
54
+ /**
55
+ * Landing page that shows up when you add a new tab from the plus button that exists in the tabstrip.
56
+ * If you do not provide a newTabUrl, then the plus button in the tabstrip will not be shown and users cannot create a new empty tab.
57
+ */
54
58
  newTabUrl?: string;
55
- /** A URL to use when creating the initial tab in a new page. */
59
+ /**
60
+ * Landing page that shows up when you add a new page from the plus button that exists in the window frame where the page selector is shown.
61
+ * If you do not provide a newPageUrl, then the new Page plus button will not be shown and you cannot create a new empty Page or Window.
62
+ */
56
63
  newPageUrl?: string;
57
64
  };
58
65
  }
@@ -79,9 +86,10 @@ export interface BrowserWindowModule {
79
86
  * Get a page that is attached to the browser window.
80
87
  *
81
88
  * ```ts
82
- * import * as WorkspacePlatform from '@client-platform/index';
89
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
83
90
  *
84
91
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
92
+ * // assume a browser window already exists
85
93
  * const windows = await workspacePlatform.Browser.getAllWindows();
86
94
  * const page = await windows[0].getPage('MyPageId');
87
95
  * ```
@@ -92,9 +100,10 @@ export interface BrowserWindowModule {
92
100
  * Return all the pages that are attached to a browser window.
93
101
  *
94
102
  * ```ts
95
- * import * as WorkspacePlatform from '@client-platform/index';
103
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
96
104
  *
97
105
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
106
+ * // assume a browser window already exists
98
107
  * const windows = await workspacePlatform.Browser.getAllWindows();
99
108
  * const pages = await windows[0].getPages();
100
109
  * ```
@@ -104,9 +113,10 @@ export interface BrowserWindowModule {
104
113
  * Set the active page for the browser window.
105
114
  *
106
115
  * ```ts
107
- * import * as WorkspacePlatform from '@client-platform/index';
116
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
108
117
  *
109
118
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
119
+ * // assume a browser window already exists
110
120
  * const windows = await workspacePlatform.Browser.getAllWindows();
111
121
  * await windows[0].setActivePage('MyPageId');
112
122
  * ```
@@ -118,7 +128,7 @@ export interface BrowserWindowModule {
118
128
  * If a page with same id or title is attached to an existing browser window, an error will be thrown.
119
129
  *
120
130
  * ```ts
121
- * import * as WorkspacePlatform from '@client-platform/index';
131
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
122
132
  *
123
133
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
124
134
  * const layout = {
@@ -143,6 +153,7 @@ export interface BrowserWindowModule {
143
153
  * pageId: 'myPageId',
144
154
  * layout
145
155
  * };
156
+ * // assume a browser window already exists
146
157
  * const windows = await workspacePlatform.Browser.getAllWindows();
147
158
  * await windows[0].addPage(page);
148
159
  * ```
@@ -151,16 +162,69 @@ export interface BrowserWindowModule {
151
162
  addPage(page: PageWithUpdatableRuntimeAttribs): Promise<void>;
152
163
  /**
153
164
  * Remove an attached page from the browser window.
165
+ *
166
+ * ```ts
167
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
168
+ *
169
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
170
+ * // assume a browser window already exists
171
+ * const windows = await workspacePlatform.Browser.getAllWindows();
172
+ * await windows[0].removePage('myPageId');
173
+ * ```
154
174
  * @param id the id of the attached page to remove from the browser window.
155
175
  */
156
176
  removePage(id: string): Promise<void>;
157
177
  /**
158
178
  * Update a page in which is attached to the browser window.
179
+ *
180
+ * ```ts
181
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
182
+ *
183
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
184
+ * const layout = {
185
+ * content: [
186
+ * {
187
+ * type: 'stack',
188
+ * content: [
189
+ * {
190
+ * type: 'component',
191
+ * componentName: 'view',
192
+ * componentState: {
193
+ * name: 'myViewName',
194
+ * url: 'http://google.com'
195
+ * }
196
+ * }
197
+ * ]
198
+ * }
199
+ * ]
200
+ * };
201
+ * const page = {
202
+ * title: 'myPageTitle',
203
+ * pageId: 'myPageId',
204
+ * layout
205
+ * };
206
+ * // assume a browser window already exists
207
+ * const windows = await workspacePlatform.Browser.getAllWindows();
208
+ * const req = {
209
+ * pageId: 'myPageId',
210
+ * page
211
+ * };
212
+ * await windows[0].updatePage(req);
213
+ * ```
159
214
  * @param req the update request.
160
215
  */
161
216
  updatePage(req: UpdateAttachedPageRequest): Promise<void>;
162
217
  /**
163
218
  * Reorder pages attached to the browser window.
219
+ *
220
+ * ```ts
221
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
222
+ *
223
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
224
+ * // assume a browser window already exists and has three pages in it
225
+ * const windows = await workspacePlatform.Browser.getAllWindows();
226
+ * await windows[0].reorderPages(['myPageId2', 'myPageId1', 'myPageId3']);
227
+ * ```
164
228
  * @param req the reorder pages request.
165
229
  */
166
230
  reorderPages(req: ReorderPagesRequest): Promise<void>;
@@ -179,7 +243,7 @@ export interface BrowserWindowFactory {
179
243
  * Get a list of all pages that are attached to any running browser window.
180
244
  *
181
245
  * ```ts
182
- * import * as WorkspacePlatform from '@client-platform/index';
246
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
183
247
  *
184
248
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
185
249
  * const attachedPages = await workspacePlatform.Browser.getAllAttachedPages();
@@ -190,7 +254,7 @@ export interface BrowserWindowFactory {
190
254
  * Get all the Browser Windows that are running in the Workspace Platform.
191
255
  *
192
256
  * ```ts
193
- * import * as WorkspacePlatform from '@client-platform/index';
257
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
194
258
  *
195
259
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
196
260
  * const windows = await workspacePlatform.Browser.getAllWindows();
@@ -201,7 +265,7 @@ export interface BrowserWindowFactory {
201
265
  * Create a new browser window.
202
266
  *
203
267
  * ```ts
204
- * import * as WorkspacePlatform from '@client-platform/index';
268
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
205
269
  *
206
270
  * const workspacePlatform = WorkspacePlatform.getCurrentSync();
207
271
  * const layout = {
@@ -241,11 +305,25 @@ export interface BrowserWindowFactory {
241
305
  createWindow(options: BrowserCreateWindowRequest): Promise<BrowserWindowModule>;
242
306
  /**
243
307
  * Get a unique title for a page.
308
+ *
309
+ * ```ts
310
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
311
+ *
312
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
313
+ * const uniqueTitle = await workspacePlatform.Browser.getUniquePageTitle('myTitle');
314
+ * ```
244
315
  * @param title a prefix for the title.
245
316
  */
246
317
  getUniquePageTitle(title?: string): Promise<string>;
247
318
  /**
248
319
  * Get the identity of the last focused Browser window.
320
+ *
321
+ * ```ts
322
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
323
+ *
324
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
325
+ * const windowIdentity = await workspacePlatform.Browser.getLastFocusedWindow();
326
+ * ```
249
327
  */
250
328
  getLastFocusedWindow(): Promise<OpenFin.Identity>;
251
329
  }
@@ -255,25 +333,108 @@ export interface BrowserWindowFactory {
255
333
  export interface WorkspacePlatformStorage {
256
334
  /**
257
335
  * Get all pages that are saved in persistent storage.
336
+ *
337
+ * ```ts
338
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
339
+ *
340
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
341
+ * const pages = await workspacePlatform.Storage.getPages();
342
+ * ```
258
343
  */
259
344
  getPages(): Promise<Page[]>;
260
345
  /**
261
346
  * Get a specific page in persistent storage.
347
+ *
348
+ * ```ts
349
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
350
+ *
351
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
352
+ * const myPage = await workspacePlatform.Storage.getPage('myPageId');
353
+ * ```
262
354
  * @param id the id of the page to get.
263
355
  */
264
356
  getPage(id: string): Promise<Page>;
265
357
  /**
266
358
  * Create a page in persistent storage.
359
+ *
360
+ * ```ts
361
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
362
+ *
363
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
364
+ * const layout = {
365
+ * content: [
366
+ * {
367
+ * type: 'stack',
368
+ * content: [
369
+ * {
370
+ * type: 'component',
371
+ * componentName: 'view',
372
+ * componentState: {
373
+ * name: 'myViewName',
374
+ * url: 'http://google.com'
375
+ * }
376
+ * }
377
+ * ]
378
+ * }
379
+ * ]
380
+ * };
381
+ * const page = {
382
+ * title: 'myPageTitle',
383
+ * pageId: 'myPageId',
384
+ * layout
385
+ * };
386
+ * await workspacePlatform.Storage.createPage({page});
387
+ * ```
267
388
  * @param page the page to create in persistent storage.
268
389
  */
269
390
  createPage(page: CreateSavedPageRequest): Promise<void>;
270
391
  /**
271
392
  * Update a page in persistent storage.
393
+ *
394
+ * ```ts
395
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
396
+ *
397
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
398
+ * const layout = {
399
+ * content: [
400
+ * {
401
+ * type: 'stack',
402
+ * content: [
403
+ * {
404
+ * type: 'component',
405
+ * componentName: 'view',
406
+ * componentState: {
407
+ * name: 'myViewName',
408
+ * url: 'http://google.com'
409
+ * }
410
+ * }
411
+ * ]
412
+ * }
413
+ * ]
414
+ * };
415
+ * const page = {
416
+ * title: 'myPageTitle',
417
+ * pageId: 'myPageId',
418
+ * layout
419
+ * };
420
+ * const req = {
421
+ * pageId: 'myPageId',
422
+ * page
423
+ * };
424
+ * await workspacePlatform.Storage.updatePage(req);
425
+ * ```
272
426
  * @param req the update saved page request.
273
427
  */
274
428
  updatePage(req: UpdateSavedPageRequest): Promise<void>;
275
429
  /**
276
430
  * Delete a page from persistent storage.
431
+ *
432
+ * ```ts
433
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
434
+ *
435
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
436
+ * await workspacePlatform.Storage.deletePage('myPageId');
437
+ * ```
277
438
  * @param id the id of the page to delete.
278
439
  */
279
440
  deletePage(id: string): Promise<void>;
@@ -283,6 +444,35 @@ export interface WorkspacePlatformStorage {
283
444
  * This is a helper function that will call `getPage` to determine if a page is already in storage.
284
445
  * If the page is already in storage, it will call `updatePage`.
285
446
  * If it does not exist in storage, the function will call `createPage` instead.
447
+ *
448
+ * ```ts
449
+ * import * as WorkspacePlatform from '@openfin/workspace-platform';
450
+ *
451
+ * const workspacePlatform = WorkspacePlatform.getCurrentSync();
452
+ * const layout = {
453
+ * content: [
454
+ * {
455
+ * type: 'stack',
456
+ * content: [
457
+ * {
458
+ * type: 'component',
459
+ * componentName: 'view',
460
+ * componentState: {
461
+ * name: 'myViewName',
462
+ * url: 'http://google.com'
463
+ * }
464
+ * }
465
+ * ]
466
+ * }
467
+ * ]
468
+ * };
469
+ * const page = {
470
+ * title: 'myPageTitle',
471
+ * pageId: 'myPageId',
472
+ * layout
473
+ * };
474
+ * await workspacePlatform.Storage.savePage(page);
475
+ * ```
286
476
  * @param page the page to save.
287
477
  */
288
478
  savePage(page: Page): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { Page } from '@common/api/pages/shapes';
1
+ import type { Page } from '../../../../common/src/api/pages/shapes';
2
2
  export declare const store: import("idb-keyval").UseStore;
3
3
  export declare function getPage(id: string): Promise<Page>;
4
4
  export declare function getPageList(filter?: string): Promise<Page[]>;
@@ -1,4 +1,4 @@
1
- import { LayoutExtended } from '@common/utils/layout';
1
+ import { LayoutExtended } from '../../../../common/src/utils/layout';
2
2
  import type { AttachedPage, Page, PageLayout, PageWithUpdatableRuntimeAttribs } from './shapes';
3
3
  export declare function getLegacyPages(): Promise<Page[]>;
4
4
  export declare function cleanPage(page: AttachedPage): Page;
@@ -1,4 +1,4 @@
1
- import type { AttachedPage, PageLayout } from '@common/api/pages/shapes';
1
+ import type { AttachedPage, PageLayout } from '../../../../common/src/api/pages/shapes';
2
2
  interface Workstack {
3
3
  id: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { CustomPaletteSet } from '@common/api/theming';
1
+ import { CustomPaletteSet } from '../../../common/src/api/theming';
2
2
  /**
3
3
  * Get hue from a CSS color
4
4
  *
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@openfin/workspace-platform","description":"An API for creating your own Workspace platform.","contributors":[],"version":"4.15.0","main":"index.ts","scripts":{"deploy":"npm run deploy:npm && npm run deploy:docs","deploy:npm":"cd out && npm publish","deploy:docs":"aws s3 cp --recursive ./docs/ s3://cdn.openfin.co/workspace/api/platform/docs/","deploy:next":"npm run deploy:next:npm && npm run deploy:next:docs","deploy:next:npm":"cd out && npm publish --tag next","deploy:next:docs":"aws s3 cp --recursive ./docs/ s3://cdn.openfin.co/workspace/api/platform/docs/next/","cp:readme":"copyfiles README.md out","cp:package":"node ../common/scripts/cp-package.js","cp:next:package":"node ../common/scripts/cp-package-next.js","create:rootIndex":"node ../common/scripts/cp-root-index.js","package":"npm run cp:readme && npm run cp:package && npm run create:rootIndex","package:next":"npm run cp:readme && npm run cp:next:package && npm run create:rootIndex","clean":"rimraf ./out && rimraf ./docs","build:common":"cross-env ENV=prod webpack --mode=production --config ./webpack.common.config.js","build":"npm run clean && npm run build:common && npm run build:docs","build:docs":"typedoc --tsconfig ./tsconfig.json --readme none --disableSources ./src/index.ts","test":"jest --watch --colors","test:ci":"jest"},"keywords":["client","api","workspace","platform"],"license":"MIT"}
1
+ {"name":"@openfin/workspace-platform","description":"An API for creating your own Workspace platform.","contributors":[],"version":"4.19.0","main":"index.ts","scripts":{"deploy":"npm run deploy:npm && npm run deploy:docs","deploy:npm":"cd out && npm publish","deploy:docs":"aws s3 cp --recursive ./docs/ s3://cdn.openfin.co/workspace/api/platform/docs/","deploy:next":"npm run deploy:next:npm && npm run deploy:next:docs","deploy:next:npm":"cd out && npm publish --tag next","deploy:next:docs":"aws s3 cp --recursive ./docs/ s3://cdn.openfin.co/workspace/api/platform/docs/next/","cp:readme":"copyfiles README.md out","cp:package":"node ../common/scripts/cp-package.js","cp:next:package":"node ../common/scripts/cp-package-next.js","create:rootIndex":"node ../common/scripts/cp-root-index.js","package":"npm run cp:readme && npm run cp:package && npm run create:rootIndex","package:next":"npm run cp:readme && npm run cp:next:package && npm run create:rootIndex","clean":"rimraf ./out && rimraf ./docs","build:common":"cross-env ENV=prod webpack --mode=production --config ./webpack.common.config.js","build":"npm run clean && npm run build:common && npm run build:docs","build:docs":"typedoc --tsconfig ./tsconfig.json --readme none --disableSources ./src/index.ts","test":"jest --watch --colors","test:ci":"jest"},"keywords":["client","api","workspace","platform"],"license":"MIT"}
@@ -1,4 +1,4 @@
1
- import { ChannelClient } from '@search/fin/shapes';
1
+ import { ChannelClient } from '../../../search-api/src/fin/shapes';
2
2
  import type { Action, SearchProvider, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
3
3
  /**
4
4
  * Register a remote search provider.