@workbench-kit/shell-react 0.0.2-prototype.0.2.25 → 0.0.2-prototype.0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbench-kit/shell-react",
3
- "version": "0.0.2-prototype.0.2.25",
3
+ "version": "0.0.2-prototype.0.2.26",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -31,14 +31,14 @@
31
31
  "@xyflow/react": "^12.11.2",
32
32
  "jsonata": "^2.2.0",
33
33
  "react-table-mapping": "^1.0.3",
34
- "@workbench-kit/react": "0.0.2-prototype.0.2.25",
35
- "@workbench-kit/tokens": "0.0.2-prototype.0.2.25",
36
- "@workbench-kit/workbench-core": "0.0.2-prototype.0.2.25",
37
- "@workbench-kit/workbench-extension-sdk": "0.0.2-prototype.0.2.25",
38
- "@workbench-kit/workbench-config": "0.0.2-prototype.0.2.25",
39
- "@workbench-kit/platform": "0.0.2-prototype.0.2.25",
40
- "@workbench-kit/field-remap": "0.0.2-prototype.0.2.25",
41
- "@workbench-kit/workspace": "0.0.2-prototype.0.2.25"
34
+ "@workbench-kit/field-remap": "0.0.2-prototype.0.2.26",
35
+ "@workbench-kit/tokens": "0.0.2-prototype.0.2.26",
36
+ "@workbench-kit/workbench-config": "0.0.2-prototype.0.2.26",
37
+ "@workbench-kit/workbench-extension-sdk": "0.0.2-prototype.0.2.26",
38
+ "@workbench-kit/workbench-core": "0.0.2-prototype.0.2.26",
39
+ "@workbench-kit/workspace": "0.0.2-prototype.0.2.26",
40
+ "@workbench-kit/platform": "0.0.2-prototype.0.2.26",
41
+ "@workbench-kit/react": "0.0.2-prototype.0.2.26"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "^19.0.0",
@@ -151,12 +151,16 @@ export function WorkbenchCommandHost({
151
151
 
152
152
  const shellContext = useMemo<WorkbenchShellCommandContext>(
153
153
  () => ({
154
+ isFocusModeActive: layoutService.isFocusModeActive(),
154
155
  isPrimarySidebarVisible: layout.sideBar.visible,
155
156
  openSettings: onOpenSettings,
156
157
  showActivity: (activityId) => {
157
158
  layoutService.setActiveViewContainer(activityId);
158
159
  layoutService.setSideBarVisible(true);
159
160
  },
161
+ toggleFocusMode: () => {
162
+ layoutService.setFocusModeActive(!layoutService.isFocusModeActive());
163
+ },
160
164
  togglePrimarySidebar: () => {
161
165
  layoutService.setSideBarVisible(!layout.sideBar.visible);
162
166
  },