@openfin/core 30.73.11 → 30.73.13
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/OpenFin.d.ts +38 -23
- package/package.json +1 -1
- package/src/api/platform/layout/Instance.d.ts +1 -1
- package/src/shapes/protocol.d.ts +30 -25
package/OpenFin.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ declare namespace OpenFin {
|
|
|
284
284
|
defaultTop: number;
|
|
285
285
|
defaultWidth: number;
|
|
286
286
|
height: number;
|
|
287
|
-
layout:
|
|
287
|
+
layout: LayoutOptions;
|
|
288
288
|
modalParentIdentity: Identity;
|
|
289
289
|
name: string;
|
|
290
290
|
permissions: Partial<Permissions>;
|
|
@@ -725,35 +725,50 @@ declare namespace OpenFin {
|
|
|
725
725
|
};
|
|
726
726
|
};
|
|
727
727
|
|
|
728
|
+
export type LayoutContent = (LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent)[];
|
|
729
|
+
|
|
730
|
+
export type LayoutItemConfig = {
|
|
731
|
+
type: string;
|
|
732
|
+
content?: LayoutContent;
|
|
733
|
+
width?: number;
|
|
734
|
+
height?: number;
|
|
735
|
+
id?: string | string[];
|
|
736
|
+
isClosable?: boolean;
|
|
737
|
+
title?: string;
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
export interface LayoutRow extends LayoutItemConfig {
|
|
741
|
+
type: 'row';
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export interface LayoutColumn extends LayoutItemConfig {
|
|
745
|
+
type: 'column';
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export interface LayoutComponent extends LayoutItemConfig {
|
|
749
|
+
componentName: 'view';
|
|
750
|
+
componentState?: Partial<ViewCreationOptions>;
|
|
751
|
+
}
|
|
752
|
+
|
|
728
753
|
export type LayoutOptions = {
|
|
729
|
-
settings
|
|
754
|
+
settings?: {
|
|
730
755
|
popoutWholeStack?: boolean;
|
|
731
756
|
constrainDragToContainer?: boolean;
|
|
732
757
|
showPopoutIcon?: boolean;
|
|
733
758
|
showMaximiseIcon?: boolean;
|
|
734
759
|
showCloseIcon?: boolean;
|
|
735
760
|
constrainDragToHeaders?: boolean;
|
|
761
|
+
hasHeaders?: boolean;
|
|
762
|
+
reorderEnabled?: boolean;
|
|
763
|
+
preventDragOut?: boolean;
|
|
764
|
+
preventDragIn?: boolean;
|
|
736
765
|
};
|
|
737
|
-
content
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
type: 'row';
|
|
744
|
-
content: LayoutContent;
|
|
745
|
-
};
|
|
746
|
-
export type LayoutColumn = {
|
|
747
|
-
type: 'column';
|
|
748
|
-
content: LayoutContent;
|
|
749
|
-
};
|
|
750
|
-
export type LayoutComponent = {
|
|
751
|
-
type: 'component';
|
|
752
|
-
componentName: 'view';
|
|
753
|
-
componentState: {
|
|
754
|
-
name: string;
|
|
755
|
-
url: string;
|
|
756
|
-
title?: string;
|
|
766
|
+
content?: LayoutContent;
|
|
767
|
+
dimensions?: {
|
|
768
|
+
borderWidth?: number;
|
|
769
|
+
minItemHeight?: number;
|
|
770
|
+
minItemWidth?: number;
|
|
771
|
+
headerHeight?: number;
|
|
757
772
|
};
|
|
758
773
|
};
|
|
759
774
|
|
|
@@ -1553,7 +1568,7 @@ declare namespace OpenFin {
|
|
|
1553
1568
|
topic: string,
|
|
1554
1569
|
payload: unknown,
|
|
1555
1570
|
senderIdentity: ProviderIdentity | OpenFin.ClientIdentity
|
|
1556
|
-
) => Promise<unknown> |unknown;
|
|
1571
|
+
) => Promise<unknown> | unknown;
|
|
1557
1572
|
|
|
1558
1573
|
export type ErrorMiddleware = (
|
|
1559
1574
|
topic: string,
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export declare class Layout extends Base {
|
|
|
26
26
|
* @return { Promise<void> }
|
|
27
27
|
* @tutorial Layout.replace
|
|
28
28
|
*/
|
|
29
|
-
replace: (layout:
|
|
29
|
+
replace: (layout: OpenFin.LayoutOptions) => Promise<void>;
|
|
30
30
|
/**
|
|
31
31
|
* Replaces the specified view with a view with the provided configuration.
|
|
32
32
|
* The old view is stripped of its listeners and either closed or attached to the provider window
|
package/src/shapes/protocol.d.ts
CHANGED
|
@@ -15,18 +15,27 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
15
15
|
} & OpenFin.ApplicationIdentity;
|
|
16
16
|
response: void;
|
|
17
17
|
};
|
|
18
|
-
'get-view-window': {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
18
|
+
'get-view-window': IdentityCall<{}, OpenFin.Identity>;
|
|
19
|
+
'create-view': IdentityCall<OpenFin.ViewCreationOptions & {
|
|
20
|
+
uuid: string;
|
|
21
|
+
}>;
|
|
22
|
+
'destroy-view': IdentityCall;
|
|
23
|
+
'attach-view': IdentityCall<{
|
|
24
|
+
target: OpenFin.Identity;
|
|
25
|
+
}>;
|
|
26
|
+
'set-view-bounds': IdentityCall<{
|
|
27
|
+
bounds: OpenFin.Bounds;
|
|
28
|
+
}>;
|
|
29
|
+
'get-view-bounds': IdentityCall<{}, OpenFin.Bounds>;
|
|
30
|
+
'get-view-info': IdentityCall<{}, OpenFin.ViewInfo>;
|
|
31
|
+
'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
|
|
32
|
+
'hide-view': IdentityCall;
|
|
33
|
+
'show-view': IdentityCall;
|
|
34
|
+
'update-view-options': IdentityCall<{
|
|
35
|
+
options: OpenFin.UpdatableViewOptions;
|
|
36
|
+
}>;
|
|
37
|
+
'trigger-before-unload': IdentityCall<{}, boolean>;
|
|
38
|
+
'window-get-views': IdentityCall<{}, OpenFin.Identity[]>;
|
|
30
39
|
'launch-manifest': {
|
|
31
40
|
request: {
|
|
32
41
|
manifestUrl: string;
|
|
@@ -64,10 +73,7 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
64
73
|
};
|
|
65
74
|
response: void;
|
|
66
75
|
};
|
|
67
|
-
'close-popup-menu':
|
|
68
|
-
request: OpenFin.Identity;
|
|
69
|
-
response: void;
|
|
70
|
-
};
|
|
76
|
+
'close-popup-menu': IdentityCall;
|
|
71
77
|
'fdc3-add-context-listener': VoidCall;
|
|
72
78
|
'fdc3-broadcast': VoidCall;
|
|
73
79
|
'fdc3-get-system-channels': VoidCall;
|
|
@@ -113,12 +119,9 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
113
119
|
};
|
|
114
120
|
response: OpenFin.PopupResult;
|
|
115
121
|
};
|
|
116
|
-
'dispatch-popup-result': {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
response: void;
|
|
121
|
-
};
|
|
122
|
+
'dispatch-popup-result': IdentityCall<{
|
|
123
|
+
data: any;
|
|
124
|
+
}>;
|
|
122
125
|
'render-overlay': {
|
|
123
126
|
request: {
|
|
124
127
|
bounds: OpenFin.Bounds;
|
|
@@ -143,10 +146,12 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
143
146
|
response: OpenFin.PrinterInfo[];
|
|
144
147
|
};
|
|
145
148
|
}
|
|
146
|
-
declare type
|
|
147
|
-
request:
|
|
148
|
-
response:
|
|
149
|
+
declare type ApiCall<Request, Response> = {
|
|
150
|
+
request: Request;
|
|
151
|
+
response: Response;
|
|
149
152
|
};
|
|
153
|
+
declare type VoidCall = ApiCall<void, void>;
|
|
154
|
+
declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
|
|
150
155
|
interface ProtocolMapBase {
|
|
151
156
|
[action: string]: {
|
|
152
157
|
request: any;
|