@openfin/workspace-platform 16.1.1 → 16.1.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/client-api/src/shapes/templates.d.ts +4 -3
- package/common/src/utils/window.d.ts +2 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -111,6 +111,7 @@ export declare enum ButtonStyle {
|
|
|
111
111
|
Secondary = "secondary",
|
|
112
112
|
TextOnly = "textOnly"
|
|
113
113
|
}
|
|
114
|
+
export type SplitButtonStyle = Extract<ButtonStyle, ButtonStyle.Primary | ButtonStyle.Secondary>;
|
|
114
115
|
export type PlainContainerTemplateFragment = ContainerTemplateFragment<'Container'>;
|
|
115
116
|
export type ButtonTemplateFragment = ContainerTemplateFragment<'Button'> & FragmentAction & {
|
|
116
117
|
/**
|
|
@@ -120,9 +121,9 @@ export type ButtonTemplateFragment = ContainerTemplateFragment<'Button'> & Fragm
|
|
|
120
121
|
};
|
|
121
122
|
export type SplitButtonFragment = ContainerTemplateFragment<'SplitButton'> & {
|
|
122
123
|
/**
|
|
123
|
-
*
|
|
124
|
+
* Determines the styling of the split button.
|
|
124
125
|
*/
|
|
125
|
-
|
|
126
|
+
buttonStyle: SplitButtonStyle;
|
|
126
127
|
/**
|
|
127
128
|
* Data key of the template fragment.
|
|
128
129
|
*
|
|
@@ -132,7 +133,7 @@ export type SplitButtonFragment = ContainerTemplateFragment<'SplitButton'> & {
|
|
|
132
133
|
* ```ts
|
|
133
134
|
* const myTemplateLayout = {
|
|
134
135
|
* type: FragmentTypes.SplitButton,
|
|
135
|
-
*
|
|
136
|
+
* buttonStyle: ButtonStyle.Primary,
|
|
136
137
|
* dataKey: 'splitButton1',
|
|
137
138
|
* }
|
|
138
139
|
*
|
|
@@ -157,4 +157,6 @@ export declare const getComponentWindowStatus: () => Promise<{
|
|
|
157
157
|
storefrontRunning: boolean;
|
|
158
158
|
homeRunning: boolean;
|
|
159
159
|
}>;
|
|
160
|
+
export declare const deserializeWindowBounds: (serialized: string) => OpenFin.WindowBounds | null;
|
|
161
|
+
export declare const serializeWindowBounds: (bounds: OpenFin.WindowBounds) => string;
|
|
160
162
|
export {};
|