@vuu-ui/vuu-protocol-types 4.0.0-alpha.24 → 4.0.0-alpha.26
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/index.d.ts +15 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -42,6 +42,19 @@ export interface VuuLoginRequest {
|
|
|
42
42
|
type: "LOGIN";
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* How a module can be added to a workspace. A module is listed in the
|
|
47
|
+
* workspace palette only if its descriptor includes this.
|
|
48
|
+
*/
|
|
49
|
+
export interface VuuModuleWorkspaceDescriptor {
|
|
50
|
+
/** Heading of the palette group the module is listed under. */
|
|
51
|
+
paletteGroup: string;
|
|
52
|
+
/** Palette icon as a data URL. Defaults to `navIconUrl`. */
|
|
53
|
+
iconUrl?: string;
|
|
54
|
+
/** Initial size, in grid tracks, of an item added to a workspace. */
|
|
55
|
+
defaultSize?: { cols?: number; rows?: number };
|
|
56
|
+
}
|
|
57
|
+
|
|
45
58
|
export interface VuuModuleDescriptor {
|
|
46
59
|
clientIdentifier: string;
|
|
47
60
|
description: string;
|
|
@@ -78,6 +91,8 @@ export interface VuuModuleDescriptor {
|
|
|
78
91
|
path: string;
|
|
79
92
|
title: string;
|
|
80
93
|
version: number;
|
|
94
|
+
/** Set to make the module available in the workspace palette. */
|
|
95
|
+
workspace?: VuuModuleWorkspaceDescriptor;
|
|
81
96
|
}
|
|
82
97
|
|
|
83
98
|
export interface VuuModuleRecord extends VuuModuleDescriptor {
|