@openfin/workspace-platform 11.0.1 → 11.0.3
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/README.md +0 -2
- package/client-api/src/shapes/common.d.ts +1 -1
- package/client-api-platform/src/init/panels.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +1 -0
- package/common/src/api/pages/shapes.d.ts +21 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { Action, DispatchedAction, DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProviderInfo, SearchResult, ScoreOrder, SearchTag, SearchProvider, UserInputListener, ResultDispatchListener, SearchResponse } from '../../../search-api/src/index';
|
|
2
2
|
export type { Workspace } from '../../../common/src/api/workspaces';
|
|
3
3
|
export type { LayoutExtended, LayoutContentExtended, LayoutSettingsExtended, LayoutContentItemExtended, LayoutComponentExtended, LayoutComponentStateExtended, LayoutStack } from '../../../common/src/utils/layout';
|
|
4
|
-
export type { Page, PageLayout, PageLayoutDetails } from '../../../common/src/api/pages/shapes';
|
|
4
|
+
export type { Page, PageLayout, PageLayoutDetails, PanelConfig, PanelConfigHorizontal, PanelConfigVertical, PanelPosition } from '../../../common/src/api/pages/shapes';
|
|
5
5
|
export { SearchTagBackground, ActionTrigger } from '../../../search-api/src/shapes';
|
|
6
6
|
export type { ProviderInfo } from './provider';
|
|
7
7
|
export type { BaseCustomButtonConfig, BaseCustomDropdownConfig, BaseCustomDropdownItem, BaseCustomDropdownItems, CustomActionSpecifier, CustomButtonConfig, CustomDropdownConfig } from '../../../common/src/api/action';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AttachedPage, ExtendedPanelConfig, PanelConfig } from '../../../common/src/api/pages/shapes';
|
|
2
2
|
export declare function convertPanelViewOpts(panels: PanelConfig[]): ExtendedPanelConfig[];
|
|
3
|
-
export declare function createPanelViewsForPages(pages: AttachedPage[]): Promise<
|
|
3
|
+
export declare function createPanelViewsForPages(pages: AttachedPage[]): Promise<void>;
|
|
4
4
|
export declare function createPanelViews(panels: PanelConfig[]): Promise<import("@openfin/core/src/api/view").View[]>;
|
|
@@ -339,6 +339,7 @@ export interface StoreCustomButtonActionPayload extends Omit<CustomButtonActionP
|
|
|
339
339
|
* callerType - StoreCustomButton type.
|
|
340
340
|
*/
|
|
341
341
|
callerType: CustomActionCallerType.StoreCustomButton;
|
|
342
|
+
storeFrontProviderId: string;
|
|
342
343
|
}
|
|
343
344
|
/**
|
|
344
345
|
* The shape of the payload sent by a custom dropdown menu item to a custom action handler
|
|
@@ -99,18 +99,27 @@ export interface GetSavedPageMetadataPayload {
|
|
|
99
99
|
/** The id of the page to get the save state of. */
|
|
100
100
|
pageId: string;
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Possible positions than a fixed view panel can take.
|
|
104
|
+
*/
|
|
102
105
|
export declare enum PanelPosition {
|
|
103
106
|
Left = "Left",
|
|
104
107
|
Right = "Right",
|
|
105
108
|
Top = "Top",
|
|
106
109
|
Bottom = "Bottom"
|
|
107
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Properties specific to a horizontal fixed view panel (top or bottom)
|
|
113
|
+
*/
|
|
108
114
|
export interface PanelConfigHorizontal {
|
|
109
115
|
/** Position of the panel in the page. */
|
|
110
116
|
position: PanelPosition.Top | PanelPosition.Bottom;
|
|
111
117
|
/** Size of the top/bottom panel, formatted as CSS property value with units. E.g. "0px", "10%", "3rem". */
|
|
112
118
|
height: string;
|
|
113
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Properties specific to a vertical fixed view panel (left or right)
|
|
122
|
+
*/
|
|
114
123
|
export interface PanelConfigVertical {
|
|
115
124
|
/** Position of the panel in the page. */
|
|
116
125
|
position: PanelPosition.Left | PanelPosition.Right;
|
|
@@ -123,6 +132,18 @@ export interface PanelConfigVertical {
|
|
|
123
132
|
* thus taking priority over the bottom panel.*/
|
|
124
133
|
extendToBottom?: boolean;
|
|
125
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Configuration of an individual fixed view panel
|
|
137
|
+
*
|
|
138
|
+
* Example:
|
|
139
|
+
* ```ts
|
|
140
|
+
* {
|
|
141
|
+
* position: PanelPosition.Left,
|
|
142
|
+
* width: '140px',
|
|
143
|
+
* viewOptions: { url: 'https://example.com'}
|
|
144
|
+
* }
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
126
147
|
export declare type PanelConfig = (PanelConfigHorizontal | PanelConfigVertical) & {
|
|
127
148
|
/** The options with which to initialize the panel view.*/
|
|
128
149
|
viewOptions: Omit<OpenFin.PlatformViewCreationOptions, 'bounds' | 'target'>;
|