@openfin/workspace-platform 24.0.6 → 24.1.0-alpha.ad7de216

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.
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
7
7
  * @param app the app directory entry.
8
8
  * @param opts launch options.
9
9
  */
10
- export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.Application | OpenFin.View>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -2343,6 +2343,26 @@ export type WorkspacePlatformOverrideCallback = OpenFin.OverrideCallback<Workspa
2343
2343
  * @deprecated
2344
2344
  */
2345
2345
  export type BrowserOverrideCallback = WorkspacePlatformOverrideCallback;
2346
+ /**
2347
+ * Content menu entry shape cloned and re-exported from UI Library.
2348
+ */
2349
+ export type ContentMenuEntry = {
2350
+ bookmarked?: boolean;
2351
+ } & ({
2352
+ type: 'folder';
2353
+ id: string;
2354
+ label: string;
2355
+ children: ContentMenuEntry[];
2356
+ } | {
2357
+ type: 'item';
2358
+ id: string;
2359
+ icon: string | {
2360
+ dark: string;
2361
+ light: string;
2362
+ };
2363
+ label: string;
2364
+ itemData: any;
2365
+ });
2346
2366
  export type LaunchDockEntryPayload = {
2347
2367
  entry: DockEntry;
2348
2368
  sourceEvent?: Pick<MouseEvent, 'ctrlKey' | 'metaKey' | 'shiftKey'>;
@@ -2350,6 +2370,27 @@ export type LaunchDockEntryPayload = {
2350
2370
  export type BookmarkDockEntryPayload = {
2351
2371
  entry: DockEntry;
2352
2372
  };
2373
+ /**
2374
+ * Represents dock entry for favorites
2375
+ */
2376
+ export type DockEntry = {
2377
+ type: 'folder';
2378
+ id: string;
2379
+ label: string;
2380
+ icon?: string | {
2381
+ dark: string;
2382
+ light: string;
2383
+ };
2384
+ } | {
2385
+ type: 'item';
2386
+ id: string;
2387
+ icon: string | {
2388
+ dark: string;
2389
+ light: string;
2390
+ };
2391
+ label: string;
2392
+ itemData?: any;
2393
+ };
2353
2394
  /**
2354
2395
  * Configuration options for Browser window's icons.
2355
2396
  */
@@ -30,3 +30,10 @@ export declare const getWorkspaceOFApplication: () => OpenFin.Application;
30
30
  * @returns A Promise resolving to the application manifest
31
31
  */
32
32
  export declare const getCachedManifest: () => Promise<OpenFin.Manifest>;
33
+ /**
34
+ * Gets application info, caching the result after the first call.
35
+ * Application info (manifestUrl, licenseKey, runtime version, etc.) never changes
36
+ * during the application lifecycle. Multiple callers (overrides, sentry, analytics)
37
+ * share a single IPC call.
38
+ */
39
+ export declare const getCachedAppInfo: () => Promise<OpenFin.ApplicationInfo>;
@@ -45,7 +45,6 @@ export declare enum PopupWindowMenuType {
45
45
  RenameSupertab = "rename-supertab",
46
46
  AddEditBookmark = "add-edit-bookmark",
47
47
  DropdownMenu = "dropdown-menu",
48
- ZoomControls = "zoom-controls",
49
48
  TabSearch = "tab-search"
50
49
  }
51
50
  export type BookmarkButtonPayload = {
@@ -80,15 +79,21 @@ export type BookmarkDialogChannelMessage = BasePopupMenuChannelMessage & {
80
79
  type: PopupWindowMenuType.AddEditBookmark;
81
80
  payload: BookmarkButtonPayload;
82
81
  };
83
- export type ZoomControlsDialogPayload = {
84
- selectedViewIdentity?: OpenFin.Identity;
85
- zoomPercent?: number;
86
- openedViaMouseClick?: boolean;
87
- };
88
- export type ZoomControlsDialogChannelMessage = BasePopupMenuChannelMessage & {
89
- type: PopupWindowMenuType.ZoomControls;
90
- payload: ZoomControlsDialogPayload;
82
+ /** Sent from browser to zoom dialog window to position and hydrate UI (initial open or live sync). */
83
+ export type ZoomControlsDialogStateMessage = {
84
+ /**
85
+ * The identity of the window the dialog/menu invocation came from.
86
+ */
87
+ parentIdentity: OpenFin.Identity;
88
+ x: number;
89
+ y: number;
90
+ payload: {
91
+ selectedViewIdentity?: OpenFin.Identity;
92
+ zoomPercent?: number;
93
+ openedViaMouseClick?: boolean;
94
+ };
91
95
  };
96
+ export declare const ZOOM_DIALOG_CHANNEL_ACTION: "state";
92
97
  export type DropdownMenuChannelMessage = BasePopupMenuChannelMessage & {
93
98
  type: PopupWindowMenuType.DropdownMenu;
94
99
  payload: {
@@ -21,14 +21,6 @@
21
21
  "issuer": "common/src/utils/color-linking.ts"
22
22
  }
23
23
  ],
24
- "lodash.clonedeep": [
25
- {
26
- "type": "explicit",
27
- "version": "4.5.0",
28
- "packageName": "common/package.json",
29
- "issuer": "common/src/utils/layout.ts"
30
- }
31
- ],
32
24
  "react-i18next": [
33
25
  {
34
26
  "type": "explicit",
@@ -45,19 +37,27 @@
45
37
  "issuer": "common/src/api/i18next.ts"
46
38
  }
47
39
  ],
48
- "dexie": [
40
+ "lodash.clonedeep": [
49
41
  {
50
42
  "type": "explicit",
51
- "version": "^4.0.11",
52
- "packageName": "client-api-platform/package.json",
53
- "issuer": "client-api-platform/src/api/dock/idb.ts"
54
- },
43
+ "version": "4.5.0",
44
+ "packageName": "common/package.json",
45
+ "issuer": "common/src/utils/layout.ts"
46
+ }
47
+ ],
48
+ "dexie": [
55
49
  {
56
50
  "type": "root-implicit",
57
51
  "version": "^4.0.11",
58
52
  "packageName": "dock3/package.json",
59
53
  "issuer": "dock3/src/api/idb.ts"
60
54
  },
55
+ {
56
+ "type": "explicit",
57
+ "version": "^4.0.11",
58
+ "packageName": "client-api-platform/package.json",
59
+ "issuer": "client-api-platform/src/api/dock/idb.ts"
60
+ },
61
61
  {
62
62
  "type": "explicit",
63
63
  "version": "^4.0.11",