@openfin/workspace 15.0.5 → 16.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.
@@ -59,6 +59,12 @@ export interface App {
59
59
  * A UI friendly title for the application.
60
60
  */
61
61
  title: string;
62
+ /**
63
+ * Custom tooltip on the Store App Card Container.
64
+ *
65
+ * @default - title of App Card
66
+ */
67
+ tooltip?: string;
62
68
  /**
63
69
  * URL to application manifest.
64
70
  */
@@ -214,6 +220,7 @@ export interface StorefrontNavigationItemDetails {
214
220
  description: string;
215
221
  image: Image;
216
222
  buttonTitle?: string;
223
+ tooltip?: string;
217
224
  }
218
225
  /**
219
226
  * Template for rendering a navigation item that renders a app grid when clicked.
@@ -346,6 +353,18 @@ export type StorefrontDetailedNavigationItem = StorefrontNavigationItem & Storef
346
353
  * ```
347
354
  */
348
355
  export interface StorefrontProvider extends ProviderInfo {
356
+ /**
357
+ * Store button visibility status
358
+ *
359
+ * @default 'visible'
360
+ */
361
+ buttonVisibility?: 'hidden' | 'visible';
362
+ /**
363
+ * Behavior of app card when it is clicked
364
+ *
365
+ * @default 'show-app-details'
366
+ */
367
+ cardClickBehavior?: 'show-app-details' | 'perform-primary-button-action';
349
368
  /**
350
369
  * Get a list of apps to populate the platform's Storefront with.
351
370
  *
@@ -3,7 +3,7 @@ import { OpenGlobalContextMenuPayload, OpenGlobalContextMenuRequest, OpenPageTab
3
3
  export declare function openGlobalContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenGlobalContextMenuRequest & {
4
4
  identity: OpenFin.Identity;
5
5
  }, callerIdentity: OpenFin.Identity): Promise<void>;
6
- export declare const openCommonContextMenu: (payload: OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload, callerIdentity: OpenFin.Identity) => Promise<void>;
6
+ export declare const openCommonContextMenu: (payload: OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload, _callerIdentity: OpenFin.Identity) => Promise<void>;
7
7
  export declare function openViewTabContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenViewTabContextMenuRequest & {
8
8
  identity: OpenFin.Identity;
9
9
  }, callerIdentity: OpenFin.Identity): Promise<void>;
@@ -24,7 +24,7 @@ import { WorkspacePlatformModule } from '../shapes';
24
24
  * componentName: 'Example View',
25
25
  * componentState: {
26
26
  * name: 'example_view_1'
27
- * url: 'https://cdn.openfin.co/docs/javascript/canary/Platform.html'
27
+ * url: 'https://developer.openfin.co/docs/javascript/stable/index.html'
28
28
  * }
29
29
  * }
30
30
  * ]
@@ -107,9 +107,7 @@ export interface AppearanceContextMenuItemData extends GlobalContextMenuItemData
107
107
  scheme: ColorSchemeOptionType;
108
108
  }
109
109
  /**Configuration of an option in the global context menu */
110
- export interface GlobalContextMenuItemTemplate extends Exclude<OpenFin.MenuItemTemplate, 'data'> {
111
- data?: GlobalContextMenuItemData;
112
- }
110
+ export type GlobalContextMenuItemTemplate = OpenFin.MenuItemTemplate<GlobalContextMenuItemData>;
113
111
  /**Shape of the data property of a page tab context menu template item */
114
112
  export interface PageTabContextMenuItemData extends ContextMenuItemData {
115
113
  type: PageTabContextMenuOptionType;
@@ -147,9 +145,7 @@ export type OpenGlobalContextMenuPayload = OpenGlobalContextMenuRequest & {
147
145
  /** Default function that handles stock context menu options. */
148
146
  callback: (data: GlobalContextMenuItemData, payload: OpenGlobalContextMenuPayload) => any;
149
147
  };
150
- export interface ViewTabContextMenuTemplate extends OpenFin.MenuItemTemplate {
151
- data?: ViewTabMenuData;
152
- }
148
+ export type ViewTabContextMenuTemplate = OpenFin.MenuItemTemplate<ViewTabMenuData>;
153
149
  /**
154
150
  * Request for opening a view tab context menu in Browser.
155
151
  */
@@ -1581,7 +1577,7 @@ export interface WorkspacePlatformInitConfig {
1581
1577
  overrideCallback?: WorkspacePlatformOverrideCallback;
1582
1578
  /**
1583
1579
  * Override workspace platform interop behavior
1584
- * https://cdn.openfin.co/docs/javascript/stable/InteropBroker.html
1580
+ * https://developer.openfin.co/docs/javascript/stable/classes/OpenFin.InteropBroker.html
1585
1581
  */
1586
1582
  interopOverride?: OpenFin.OverrideCallback<OpenFin.InteropBroker, OpenFin.InteropBroker>;
1587
1583
  /**
@@ -1767,14 +1763,16 @@ export interface BrowserInitConfig {
1767
1763
  */
1768
1764
  title?: string;
1769
1765
  /**
1770
- * @deprecated
1771
1766
  * Override workspace platform behavior
1767
+ *
1768
+ * @deprecated Please use the `overrideCallback` property of {@link WorkspacePlatformInitConfig}
1772
1769
  */
1773
1770
  overrideCallback?: BrowserOverrideCallback;
1774
1771
  /**
1775
1772
  * @deprecated
1776
1773
  * Override workspace platform interop behavior
1777
- * https://cdn.openfin.co/docs/javascript/stable/OpenFin.InteropBroker.html
1774
+ *
1775
+ * https://developer.openfin.co/docs/javascript/stable/classes/OpenFin.InteropBroker.html
1778
1776
  */
1779
1777
  interopOverride?: OpenFin.OverrideCallback<OpenFin.InteropBroker, OpenFin.InteropBroker>;
1780
1778
  }
@@ -10,6 +10,7 @@ export type ShowContextMenuResponse = OpenFin.MenuResult & {
10
10
  };
11
11
  export default function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: OpenFin.Window): Promise<ShowContextMenuResponse>;
12
12
  export declare const Separator: OpenFin.MenuItemTemplate;
13
+ export declare const EmptyContextMenuItem: OpenFin.MenuItemTemplate;
13
14
  export declare const DefaultSaveMenuBounds: {
14
15
  width: number;
15
16
  height: number;
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
11
11
  export declare const isWindowDefinedWithIndexDB: boolean;
12
12
  export declare const finUUID: string;
13
13
  export declare const finName: string;
14
- export declare const finEntityType: "" | "window" | "view" | "iframe" | "external connection" | "unknown";
14
+ export declare const finEntityType: "" | "window" | "view";
15
15
  export declare const isEnvLocal: boolean;
16
16
  export declare const isEnvDev: boolean;
17
17
  export declare const isEnvStaging: boolean;