@workbench-kit/workbench-config 0.0.2-prototype.0.2.13 → 0.0.2-prototype.0.2.15
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/package.json +1 -5
- package/src/index.ts +5 -1
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workbench-kit/workbench-config",
|
|
3
|
-
"version": "0.0.2-prototype.0.2.
|
|
3
|
+
"version": "0.0.2-prototype.0.2.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.ts"
|
|
8
8
|
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@workbench-kit/base": "0.0.2-prototype.0.2.13",
|
|
11
|
-
"@workbench-kit/platform": "0.0.2-prototype.0.2.13"
|
|
12
|
-
},
|
|
13
9
|
"files": [
|
|
14
10
|
"src",
|
|
15
11
|
"!src/**/*.test.ts",
|
package/src/index.ts
CHANGED
|
@@ -40,6 +40,8 @@ export interface WorkbenchLayoutConfig {
|
|
|
40
40
|
readonly visible: boolean;
|
|
41
41
|
};
|
|
42
42
|
readonly panel: {
|
|
43
|
+
readonly activeViewContainer?: string;
|
|
44
|
+
readonly sizePercent?: number;
|
|
43
45
|
readonly visible: boolean;
|
|
44
46
|
};
|
|
45
47
|
readonly sideBar: {
|
|
@@ -160,7 +162,7 @@ export function parseWorkbenchLayoutConfig(input: unknown): WorkbenchLayoutConfi
|
|
|
160
162
|
'layout config activityBar',
|
|
161
163
|
);
|
|
162
164
|
assertKnownKeys(auxiliaryBar, ['visible'], 'layout config auxiliaryBar');
|
|
163
|
-
assertKnownKeys(panel, ['visible'], 'layout config panel');
|
|
165
|
+
assertKnownKeys(panel, ['activeViewContainer', 'sizePercent', 'visible'], 'layout config panel');
|
|
164
166
|
assertKnownKeys(
|
|
165
167
|
sideBar,
|
|
166
168
|
['activeViewContainer', 'sizePercent', 'visible'],
|
|
@@ -185,6 +187,8 @@ export function parseWorkbenchLayoutConfig(input: unknown): WorkbenchLayoutConfi
|
|
|
185
187
|
),
|
|
186
188
|
},
|
|
187
189
|
panel: {
|
|
190
|
+
...readOptionalLayoutId(panel, 'activeViewContainer'),
|
|
191
|
+
...readOptionalSizePercent(panel, 'sizePercent'),
|
|
188
192
|
visible: readOptionalBoolean(panel, 'visible', DEFAULT_WORKBENCH_LAYOUT_CONFIG.panel.visible),
|
|
189
193
|
},
|
|
190
194
|
sideBar: {
|