@openfin/workspace-platform 15.0.4 → 16.0.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.
- package/client-api/src/shapes/store.d.ts +19 -0
- package/client-api-platform/src/api/context-menu/index.d.ts +1 -1
- package/client-api-platform/src/api/index.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +7 -9
- package/common/src/api/pages/shapes.d.ts +5 -1
- package/common/src/utils/context-menu.d.ts +1 -0
- package/common/src/utils/env.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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,
|
|
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://
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -1511,7 +1507,7 @@ export interface WorkspacePlatformInitConfig {
|
|
|
1511
1507
|
overrideCallback?: WorkspacePlatformOverrideCallback;
|
|
1512
1508
|
/**
|
|
1513
1509
|
* Override workspace platform interop behavior
|
|
1514
|
-
* https://
|
|
1510
|
+
* https://developer.openfin.co/docs/javascript/stable/classes/OpenFin.InteropBroker.html
|
|
1515
1511
|
*/
|
|
1516
1512
|
interopOverride?: OpenFin.OverrideCallback<OpenFin.InteropBroker, OpenFin.InteropBroker>;
|
|
1517
1513
|
/**
|
|
@@ -1697,14 +1693,16 @@ export interface BrowserInitConfig {
|
|
|
1697
1693
|
*/
|
|
1698
1694
|
title?: string;
|
|
1699
1695
|
/**
|
|
1700
|
-
* @deprecated
|
|
1701
1696
|
* Override workspace platform behavior
|
|
1697
|
+
*
|
|
1698
|
+
* @deprecated Please use the `overrideCallback` property of {@link WorkspacePlatformInitConfig}
|
|
1702
1699
|
*/
|
|
1703
1700
|
overrideCallback?: BrowserOverrideCallback;
|
|
1704
1701
|
/**
|
|
1705
1702
|
* @deprecated
|
|
1706
1703
|
* Override workspace platform interop behavior
|
|
1707
|
-
*
|
|
1704
|
+
*
|
|
1705
|
+
* https://developer.openfin.co/docs/javascript/stable/classes/OpenFin.InteropBroker.html
|
|
1708
1706
|
*/
|
|
1709
1707
|
interopOverride?: OpenFin.OverrideCallback<OpenFin.InteropBroker, OpenFin.InteropBroker>;
|
|
1710
1708
|
}
|
|
@@ -48,7 +48,11 @@ export interface Page {
|
|
|
48
48
|
description?: string;
|
|
49
49
|
/** A optional UI friendly tooltip for the page. */
|
|
50
50
|
tooltip?: string;
|
|
51
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* True if the page is read only. In this state, the page is locked and cannot be unlocked.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated This property is deprecated and will be removed in a future release. Setting it has no effect. To _"lock"_ a page, and prevent the ability to close pages, drag pages within the window and drag pages into/out of the window, use the `isLocked` property.
|
|
55
|
+
*/
|
|
52
56
|
isReadOnly?: boolean;
|
|
53
57
|
/** Icon that appears on a page tab if there are unsaved changes (dirty state). If 'undefined', default icon will appear. */
|
|
54
58
|
unsavedIconUrl?: string;
|
|
@@ -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"
|
|
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;
|