@openfin/workspace-platform 19.1.20 → 19.2.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.
@@ -14,12 +14,21 @@ export declare enum SaveMenuType {
14
14
  */
15
15
  export declare const getSaveContextMenuTemplate: (saveMenuType?: SaveMenuType) => OpenFin.MenuItemTemplate[];
16
16
  export declare function showModalWin<T extends keyof UserMenuParams>(params: UserMenuParams[T], windowOpts: OptionalExceptFor<OpenFin.WindowOptions, 'x' | 'y' | 'defaultWidth' | 'url' | 'name'>): Promise<OpenFin.Window>;
17
- export interface SearchMenuChannelRequest {
17
+ export type SearchMenuChannelFocusView = {
18
+ type: 'focus-search-menu';
19
+ };
20
+ export type SearchMenuChannelViewResized = {
21
+ type: 'view-resized';
22
+ height: number;
23
+ width: number;
24
+ };
25
+ export type SearchMenuChannelUpdateState = {
18
26
  selectedViews: OpenFin.Identity[];
19
27
  openViews: OpenFin.Identity[];
20
28
  windowId: OpenFin.Identity;
21
- type?: 'focus-view';
22
- }
29
+ type: 'update-search-menu-state';
30
+ };
31
+ export type SearchMenuChannelRequest = SearchMenuChannelFocusView | SearchMenuChannelViewResized | SearchMenuChannelUpdateState;
23
32
  export declare enum ContextMenuType {
24
33
  GlobalMenu = "global-menu",
25
34
  ContextMenu = "context-menu",
@@ -42,9 +51,6 @@ export type SearchMenuChannelResponse = {
42
51
  selectedView: OpenFin.Identity;
43
52
  inputUpdate?: string;
44
53
  trigger?: SiteAction;
45
- } | {
46
- type: 'expand-status-changed';
47
- isExpanded: boolean;
48
54
  } | {
49
55
  type: 'update-input';
50
56
  inputText: string;
@@ -52,7 +58,6 @@ export type SearchMenuChannelResponse = {
52
58
  landingPage: boolean;
53
59
  } | {
54
60
  type: 'resize-view';
55
- isExpanded: boolean;
56
61
  height: number;
57
62
  width: number;
58
63
  };