@openfin/workspace 18.1.30 → 19.0.1

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,4 +0,0 @@
1
- import OpenFin from '@openfin/core';
2
- export declare const getChannelName: () => string;
3
- export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProvider>;
4
- export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
@@ -1,22 +0,0 @@
1
- import { SaveModalType } from '../../../client-api-platform/src/shapes';
2
- export declare enum Menu {
3
- SAVE = "SAVE_MENU",
4
- SHARE = "SHARE_MENU",
5
- COLOR_LINK = "COLOR_LINK_MENU",
6
- LAYOUT = "LAYOUT_MENU"
7
- }
8
- export interface UserMenuParams {
9
- [Menu.SAVE]: {
10
- id: string;
11
- menuType: SaveModalType;
12
- invocationId?: string;
13
- };
14
- [Menu.SHARE]: {
15
- id: string;
16
- title: string;
17
- };
18
- [Menu.LAYOUT]: null;
19
- [Menu.COLOR_LINK]: {
20
- selectedViews: string;
21
- } | null;
22
- }
@@ -1,59 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- import { UserMenuParams } from '../../../common/src/utils/menu';
3
- import { OptionalExceptFor } from '../../../common/src/utils/types';
4
- import { AnchorBehavior } from '../../../client-api-platform/src/api/context-menu';
5
- import { Site, SiteAction } from '../../../client-api-platform/src/shapes';
6
- export declare enum SaveMenuType {
7
- Save = "Save",
8
- SaveAs = "SaveAs"
9
- }
10
- /**
11
- * getSaveContextMenuTemplate
12
- * @param saveMenuType accepts SaveMenuTypes, default SaveMenuType.Save
13
- * @returns an array of objects for context menu
14
- */
15
- export declare const getSaveContextMenuTemplate: (saveMenuType?: SaveMenuType) => OpenFin.MenuItemTemplate[];
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 {
18
- selectedViews: OpenFin.Identity[];
19
- openViews: OpenFin.Identity[];
20
- windowId: OpenFin.Identity;
21
- type?: 'focus-view';
22
- }
23
- export declare enum ContextMenuType {
24
- GlobalMenu = "global-menu",
25
- ContextMenu = "context-menu",
26
- RenameSupertab = "rename-supertab"
27
- }
28
- export type ContextMenuChannelMessageData = {
29
- parentIdentity: OpenFin.Identity;
30
- anchorBehavior: AnchorBehavior;
31
- type: ContextMenuType;
32
- x: number;
33
- y: number;
34
- payload: OpenFin.ShowPopupMenuOptions | {
35
- pageId: string;
36
- };
37
- };
38
- export type SearchMenuChannelResponse = {
39
- type: 'search-response';
40
- selectedSite?: Site;
41
- searchText?: string;
42
- selectedView: OpenFin.Identity;
43
- inputUpdate?: string;
44
- trigger?: SiteAction;
45
- } | {
46
- type: 'expand-status-changed';
47
- isExpanded: boolean;
48
- } | {
49
- type: 'update-input';
50
- inputText: string;
51
- isSecure: boolean;
52
- landingPage: boolean;
53
- } | {
54
- type: 'resize-view';
55
- isExpanded: boolean;
56
- height: number;
57
- width: number;
58
- };
59
- export declare function showPopupWin<T extends keyof UserMenuParams>(parentWindow: OpenFin.Window, params: UserMenuParams[T], windowOpts: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;