@openfin/workspace 20.1.4 → 20.1.5

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.
Files changed (59) hide show
  1. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +2 -2
  2. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +1 -1
  3. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarkNavigation.d.ts +8 -0
  4. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +1 -1
  5. package/browser/src/components/PanelContainer/BookmarksPanel/utils.d.ts +7 -0
  6. package/client-api-platform/src/index.d.ts +1 -1
  7. package/client-api-platform/src/init/index.d.ts +2 -4
  8. package/client-api-platform/src/shapes.d.ts +4 -173
  9. package/common/src/api/overrides.d.ts +2 -0
  10. package/common/src/api/protocol/browser.d.ts +1 -12
  11. package/common/src/api/protocol/workspace-platform.d.ts +1 -12
  12. package/common/src/api/theming.d.ts +4 -31
  13. package/common/src/api/workspace-events.d.ts +1 -1
  14. package/common/src/components/BaseButton/BaseButton.d.ts +4 -2
  15. package/common/src/utils/bookmark-item-context-menu.d.ts +0 -5
  16. package/common/src/utils/bookmarks.d.ts +3 -7
  17. package/common/src/utils/menu-window-provider.d.ts +0 -1
  18. package/common/src/utils/modal-bounds.d.ts +0 -7
  19. package/common/src/utils/popup-window.d.ts +7 -4
  20. package/common/src/utils/route.d.ts +1 -2
  21. package/common/src/utils/router/base.d.ts +1 -1
  22. package/common/src/utils/shared-emitter.d.ts +0 -5
  23. package/common/src/utils/usage-register.d.ts +0 -1
  24. package/common/src/utils/window.d.ts +1 -2
  25. package/home.js +4 -4
  26. package/home.js.map +1 -1
  27. package/index.js +4 -4
  28. package/index.js.map +1 -1
  29. package/notifications.js +99 -99
  30. package/notifications.js.map +1 -1
  31. package/package.json +2 -2
  32. package/search-api/src/client/internal.d.ts +4 -4
  33. package/search-api/src/client/remote/channel-client-factory.d.ts +1 -2
  34. package/search-api/src/client/remote/channel-client.d.ts +4 -4
  35. package/search-api/src/fin/index.d.ts +3 -2
  36. package/search-api/src/fin/shapes.d.ts +23 -0
  37. package/search-api/src/index.d.ts +1 -1
  38. package/search-api/src/internal-shapes.d.ts +1 -1
  39. package/search-api/src/provider/internal.d.ts +1 -3
  40. package/search-api/src/provider/remote/channel-factory.d.ts +1 -2
  41. package/search-api/src/provider/remote/channel.d.ts +4 -4
  42. package/search-api/src/shapes.d.ts +2 -17
  43. package/store.js +37 -37
  44. package/store.js.map +1 -1
  45. package/browser/src/components/ControlBar/SearchMenu/BookmarkButton.d.ts +0 -9
  46. package/browser/src/components/ControlBar/SearchMenu/useBookmarkButtonHover.d.ts +0 -2
  47. package/browser/src/components/ControlBar/SearchMenu/useEnterpriseBookmarkDialogWindow.d.ts +0 -2
  48. package/browser/src/components/ControlBar/SearchMenu/useIsBookmarked.d.ts +0 -1
  49. package/browser/src/components/ControlBar/SearchMenu/useIsSelectedViewNavigated.d.ts +0 -5
  50. package/browser/src/components/ControlBar/SearchMenu/useSelectedAndOpenViewsBroadcastChannel.d.ts +0 -8
  51. package/browser/src/components/ControlBar/SearchMenu/utils.d.ts +0 -11
  52. package/client-api-platform/src/api/bookmarks.d.ts +0 -2
  53. package/client-api-platform/src/api/dock.d.ts +0 -13
  54. package/common/src/brand/default-brand.d.ts +0 -8
  55. package/common/src/components/CloseButton/CloseButtonLarge.d.ts +0 -4
  56. package/common/src/hooks/useAddEditBookmarkDialog.d.ts +0 -7
  57. package/common/src/hooks/usePreloadedWindow.d.ts +0 -13
  58. package/common/src/utils/enterprise-dock.d.ts +0 -3
  59. package/common/src/utils/get-browser-window.d.ts +0 -3
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openfin/workspace",
3
3
  "description": "An API for integrating with OpenFin Workspace.",
4
4
  "main": "index.js",
5
- "version": "20.1.4",
5
+ "version": "20.1.5",
6
6
  "keywords": [
7
7
  "client api"
8
8
  ],
@@ -12,7 +12,7 @@
12
12
  "@openfin/microsoft365": "^1.0.0"
13
13
  },
14
14
  "dependencies": {
15
- "openfin-notifications": "2.9.0-alpha-3761",
15
+ "openfin-notifications": "2.9.1",
16
16
  "@openfin/microsoft365": "^1.0.1",
17
17
  "@radix-ui/react-dropdown-menu": "^2.0.4",
18
18
  "@reduxjs/toolkit": "1.7.1",
@@ -1,11 +1,11 @@
1
- import type { OpenFin } from '@openfin/core';
1
+ import { ChannelClient } from '../../../search-api/src/fin/shapes';
2
2
  import type { DispatchedAction, RegistrationMetaInfo, SearchProvider, SearchProviderInfo, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
3
3
  /**
4
4
  * Register a remote search provider.
5
5
  * @param namespacedTopic the namespaced search topic to register the provider on.
6
6
  * @param provider the search provider to register.
7
7
  */
8
- export declare function register(provider: SearchProvider, channel?: OpenFin.ChannelClient): Promise<RegistrationMetaInfo>;
8
+ export declare function register(provider: SearchProvider, channel?: ChannelClient): Promise<RegistrationMetaInfo>;
9
9
  /**
10
10
  * Deregister a remote search provider.
11
11
  * @param topic the search topic to deregister the provider from.
@@ -14,12 +14,12 @@ export declare function register(provider: SearchProvider, channel?: OpenFin.Cha
14
14
  export declare function deregister(id: string): Promise<void>;
15
15
  /**
16
16
  * Dispatch a search result back to the respective provider.
17
+ * @param namespacedTopic the namespaced search topic.
17
18
  * @param providerId the name of the provider to dispatch the result back to.
18
19
  * @param result the search result to dispatch back to the provider.
19
20
  * @param action the action to dispatch the search result with.
20
- * @param identity optionally provide the identity of the dispatcher, otherwise the current identity will be used.
21
21
  */
22
- export declare function dispatch(providerId: string, result: SearchResult, action: DispatchedAction, identity?: OpenFin.Identity): Promise<any>;
22
+ export declare function dispatch(providerId: string, result: SearchResult, action: DispatchedAction): Promise<any>;
23
23
  /**
24
24
  * Returns an extended search generator object.
25
25
  * @param namespacedTopic the namespaced search topic.
@@ -1,2 +1 @@
1
- import type { OpenFin } from '@openfin/core';
2
- export declare function create(): Promise<OpenFin.ChannelClient>;
1
+ export declare function create(): Promise<import("../../fin/shapes").ChannelClient>;
@@ -1,5 +1,5 @@
1
- import type { OpenFin } from '@openfin/core';
2
- export declare function getOrFail(): Promise<OpenFin.ChannelClient>;
3
- export declare function get(): Promise<OpenFin.ChannelClient>;
4
- export declare function set(newChannelPromise: Promise<OpenFin.ChannelClient>): void;
1
+ import type { ChannelClient } from '../../fin/shapes';
2
+ export declare function getOrFail(): Promise<ChannelClient>;
3
+ export declare function get(): Promise<ChannelClient>;
4
+ export declare function set(newChannelPromise: Promise<ChannelClient>): void;
5
5
  export declare function remove(): void;
@@ -1,5 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
+ import type { Channel, ChannelClient } from './shapes';
2
3
  export declare function getIdentity(): OpenFin.Identity;
3
4
  export declare function getPlatformNamespace(): string | undefined;
4
- export declare function connectToChannel(name: string): Promise<OpenFin.ChannelClient | never>;
5
- export declare function createChannel(name: string): Promise<OpenFin.ChannelProvider>;
5
+ export declare function connectToChannel(name: string): Promise<ChannelClient | never>;
6
+ export declare function createChannel(name: string): Promise<Channel>;
@@ -0,0 +1,23 @@
1
+ import type OpenFin from '@openfin/core';
2
+ export type MessageListener = (message: any, identity: OpenFin.Identity) => any;
3
+ export type ConnectionListener = (identity: OpenFin.Identity) => Promise<void>;
4
+ /**
5
+ * Represents a channel client.
6
+ */
7
+ export interface ChannelClient {
8
+ register(topic: string, listener: MessageListener): void;
9
+ dispatch(topic: string, message: any): Promise<any>;
10
+ disconnect(): Promise<void>;
11
+ onDisconnection(listeber: ConnectionListener): void;
12
+ }
13
+ /**
14
+ * Represents a channel.
15
+ */
16
+ export interface Channel {
17
+ register(topic: string, listener: MessageListener): void;
18
+ publish(topic: string, message: any): Promise<void>;
19
+ dispatch(to: OpenFin.Identity, topic: string, message: any): Promise<any>;
20
+ onConnection(listener: ConnectionListener): void;
21
+ onDisconnection(listener: ConnectionListener): void;
22
+ destroy(): Promise<void>;
23
+ }
@@ -3,5 +3,5 @@ import * as provider from './provider';
3
3
  export declare const create: typeof provider.create;
4
4
  export declare const subscribe: typeof client.subscribe;
5
5
  export declare const defaultTopic = "all";
6
- export type { SearchProviderResponse, SearchRequest, SearchTopicClient, SearchTopic, SearchProviderInfo, ScoreOrder, Action, ActionTrigger, SearchResult, SearchListenerRequest, SearchListenerResponse, UserInputListener, DispatchedSearchResult, DispatchedAction, ResultDispatchListener, SearchProvider, SearchTag, SearchResponse, DeregisterListener, DisconnectListener, RegisterListener, SubscriptionListener } from './shapes';
6
+ export type { SearchProviderResponse, SearchRequest, SearchTopicClient, SearchTopic, SearchProviderInfo, ScoreOrder, Action, ActionTrigger, SearchResult, SearchListenerRequest, SearchListenerResponse, UserInputListener, DispatchedSearchResult, DispatchedAction, ResultDispatchListener, SearchProvider, SearchTag, SearchResponse } from './shapes';
7
7
  export { SearchTagBackground } from './shapes';
@@ -110,7 +110,7 @@ export interface InternalSearchListenerResponse {
110
110
  getRevokedBuffer(): string[];
111
111
  setRevokedBuffer(resultIds: string[]): void;
112
112
  getUpdatedContext(): any;
113
- setUpdatedContext(context: any | null): void;
113
+ setUpdatedContext(context: any): void;
114
114
  onChange(): void;
115
115
  getStatus(): InternalSearchListenerResponseStatus;
116
116
  res: SearchListenerResponse;
@@ -1,4 +1,3 @@
1
- import type { OpenFin } from '@openfin/core';
2
1
  import { DispatchedAction, RegistrationMetaInfo, SearchProvider, SearchProviderInfo, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
3
2
  /**
4
3
  * Get all registered providers' info for an topic.
@@ -20,9 +19,8 @@ export declare function deregister(name: string): Promise<void>;
20
19
  * @param providerId the name of the provider to dispatch the result back to.
21
20
  * @param result the search result to dispatch back to the provider.
22
21
  * @param action the action to dispatch the search result with.
23
- * @param identity optionally provide the identity of the dispatcher, otherwise the current identity will be used.
24
22
  */
25
- export declare function dispatch(providerId: string, result: SearchResult, action: DispatchedAction, identity?: OpenFin.Identity): Promise<void>;
23
+ export declare function dispatch(providerId: string, result: SearchResult, action: DispatchedAction): Promise<void>;
26
24
  /**
27
25
  * Returns an extended search generator object.
28
26
  * @param ctx the search topic context.
@@ -1,6 +1,5 @@
1
- import type { OpenFin } from '@openfin/core';
2
1
  /**
3
2
  * Create a channel for interacting with remote search providers.
4
3
  * @param ctx the context of the search topic to create the channel for.
5
4
  */
6
- export declare function create(): Promise<OpenFin.ChannelProvider>;
5
+ export declare function create(): Promise<import("../../fin/shapes").Channel>;
@@ -1,16 +1,16 @@
1
- import type { OpenFin } from '@openfin/core';
1
+ import type { Channel } from '../../fin/shapes';
2
2
  /**
3
3
  * Get the OpenFin channel that represents a topic.
4
4
  * If not found, will throw an error.
5
5
  */
6
- export declare function getOrFail(): OpenFin.ChannelProvider;
6
+ export declare function getOrFail(): Channel;
7
7
  /**
8
8
  * Get the OpenFin channel that represents a topic.
9
9
  */
10
- export declare function get(): OpenFin.ChannelProvider;
10
+ export declare function get(): Channel;
11
11
  /**
12
12
  * Set the OpenFin channel for a search topic.
13
13
  * @param channel the channel for the search topic.
14
14
  */
15
- export declare function set(newChannel: OpenFin.ChannelProvider): void;
15
+ export declare function set(newChannel: Channel): void;
16
16
  export declare function remove(): void;
@@ -155,37 +155,24 @@ export interface SearchTopicClient {
155
155
  * @experimental
156
156
  */
157
157
  search(request: SearchRequest): Promise<SearchProviderResponseGeneratorExtended>;
158
- /**
159
- * Register a search provider.
160
- * @param provider the search provider to register.
161
- */
162
- register(provider: SearchProvider): Promise<RegistrationMetaInfo>;
163
- /**
164
- * Deregister a search provider by its name.
165
- * @param name the name of the search provider to deregister
166
- */
167
- deregister(name: string): Promise<void>;
168
158
  /**
169
159
  * Dispatch a search result back to the search provider.
170
160
  * It is then the search providers duty to perform what ever action was chosen.
171
161
  * @param providerId the id of the search provider to send the search result back to.
172
162
  * @param result the search result to send back to the search provider.
173
163
  * @param action the action for the search provider to perform with the search result.
174
- * @param identity optionally provide the identity of the dispatcher, otherwise the current identity will be used.
175
164
  */
176
- dispatch(providerId: string, result: SearchResult, action: Action, identity?: OpenFin.Identity): Promise<any>;
165
+ dispatch(providerId: string, result: SearchResult, action: Action): Promise<any>;
177
166
  /**
178
167
  * Disconnect from the search topic.
179
168
  * NOTE: All search providers registered by this search client will be deregistered.
180
169
  */
181
170
  disconnect(): Promise<void>;
182
- /** The channel client for the search topic. */
183
- channel: OpenFin.ChannelClient;
184
171
  }
185
172
  /**
186
173
  * A search topic created by the primary node.
187
174
  */
188
- export interface SearchTopic extends Omit<SearchTopicClient, 'channel'> {
175
+ export interface SearchTopic extends SearchTopicClient {
189
176
  /**
190
177
  * Add a subscription listener that will be called when ever a search client subscribes
191
178
  * to this topic.
@@ -214,8 +201,6 @@ export interface SearchTopic extends Omit<SearchTopicClient, 'channel'> {
214
201
  * @param listener the listener to add.
215
202
  */
216
203
  onDeregister(listener: DeregisterListener): void;
217
- /** The channel provider for the search topic. */
218
- channel: OpenFin.ChannelProvider;
219
204
  }
220
205
  /**
221
206
  * Information about a search provider.