@iloveagents/foundry-web-shell 0.11.1 → 0.12.1

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.
@@ -73,7 +73,7 @@ export function ShellLayout({ modules, baseThemeLayers }) {
73
73
  layoutExtras.push(_jsx(ModuleExtra, { children: m.layoutExtras }, m.name));
74
74
  }
75
75
  }
76
- return (_jsx(ThemeRuntimeProvider, { layers: themeLayers, mode: themeMode, children: _jsxs(ThemeScope, { className: "flex h-dvh flex-col overflow-hidden bg-background text-foreground", children: [_jsx(ThemeDocumentMetadata, {}), layoutExtras, _jsxs("div", { className: "flex min-h-0 flex-1 overflow-hidden", children: [_jsx(Sidebar, {}), isExpanded ? (_jsx(ToolPanelLayout, { children: _jsxs("div", { className: "flex h-full min-w-0 flex-1 overflow-hidden", children: [_jsxs("div", { className: "flex min-w-0 flex-1 flex-col overflow-hidden", children: [_jsx(ChatHeader, {}), _jsx(ChatContent, {})] }), showPagePanel && (_jsx("div", { role: "separator", "aria-orientation": "vertical", "aria-label": "Resize content panel", "aria-valuemin": MIN_PAGE_PANEL_WIDTH, "aria-valuemax": pagePanelMaxWidth, "aria-valuenow": Math.round(pagePanelWidth), tabIndex: 0, onPointerDown: (event) => {
76
+ return (_jsx(ThemeRuntimeProvider, { layers: themeLayers, mode: themeMode, children: _jsxs(ThemeScope, { className: "flex h-dvh flex-col overflow-hidden bg-background text-foreground", children: [_jsx(ThemeDocumentMetadata, {}), layoutExtras, _jsxs("div", { className: "flex min-h-0 flex-1 overflow-hidden", children: [_jsx(Sidebar, {}), _jsx(ToolPanelLayout, { children: _jsxs("div", { className: cn("flex min-h-0 flex-1 overflow-hidden", isExpanded ? "h-full min-w-0" : "flex-col"), children: [isExpanded && (_jsxs("div", { className: "flex min-w-0 flex-1 flex-col overflow-hidden", children: [_jsx(ChatHeader, {}), _jsx(ChatContent, {})] })), isExpanded && showPagePanel && (_jsx("div", { role: "separator", "aria-orientation": "vertical", "aria-label": "Resize content panel", "aria-valuemin": MIN_PAGE_PANEL_WIDTH, "aria-valuemax": pagePanelMaxWidth, "aria-valuenow": Math.round(pagePanelWidth), tabIndex: 0, onPointerDown: (event) => {
77
77
  event.preventDefault();
78
78
  startPagePanelDrag(event.pointerId);
79
79
  }, onKeyDown: (event) => {
@@ -89,7 +89,12 @@ export function ShellLayout({ modules, baseThemeLayers }) {
89
89
  else
90
90
  return;
91
91
  event.preventDefault();
92
- }, className: cn("hidden w-1.5 shrink-0 cursor-col-resize touch-none xl:block", "bg-transparent hover:bg-primary/30 focus-visible:bg-primary", "focus:outline-none") })), showPagePanel && (_jsxs("div", { className: cn("hidden h-full shrink-0 border-l border-border bg-background xl:flex xl:flex-col"), style: { width: pagePanelWidth }, children: [_jsx(PagePanelActions, {}), _jsx("div", { className: "flex-1 flex flex-col min-h-0 overflow-hidden", children: page })] }))] }) })) : (_jsx(ToolPanelLayout, { children: _jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [_jsx(ChatHeader, {}), page] }) }))] }), _jsx(ChatBubble, {}), _jsx(GlobalSelectionPopover, {})] }) }));
92
+ }, className: cn("hidden w-1.5 shrink-0 cursor-col-resize touch-none xl:block", "bg-transparent hover:bg-primary/30 focus-visible:bg-primary", "focus:outline-none") })), !isExpanded && _jsx(ChatHeader, {}), _jsxs("div", { className: cn(isExpanded
93
+ ? cn("h-full shrink-0 border-l border-border bg-background xl:flex xl:flex-col",
94
+ // Below xl (or with the panel off) the chat owns the
95
+ // full width: keep the page mounted, just hidden.
96
+ showPagePanel ? "hidden" : "hidden xl:hidden")
97
+ : "flex min-h-0 flex-1 flex-col overflow-hidden"), style: isExpanded && showPagePanel ? { width: pagePanelWidth } : undefined, children: [isExpanded && showPagePanel && _jsx(PagePanelActions, {}), _jsx("div", { className: "flex-1 flex flex-col min-h-0 overflow-hidden", children: page })] })] }) })] }), _jsx(ChatBubble, {}), _jsx(GlobalSelectionPopover, {})] }) }));
93
98
  }
94
99
  function ModuleExtra({ children }) {
95
100
  return _jsx(_Fragment, { children: children });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iloveagents/foundry-web-shell",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "description": "Browser bootstrap and layout shell for Foundry UI — bootstrapShell({ modules, pages, theme, authProvider }) mounts the SPA around foundry-web-ui. Module-agnostic.",
6
6
  "keywords": [
@@ -45,9 +45,9 @@
45
45
  "zustand": "^5.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@iloveagents/foundry-agent": "^0.11.1",
49
- "@iloveagents/foundry-web-ui": "^0.11.1",
50
- "@iloveagents/foundry-web-primitives": "^0.11.1"
48
+ "@iloveagents/foundry-agent": "^0.12.1",
49
+ "@iloveagents/foundry-web-primitives": "^0.12.1",
50
+ "@iloveagents/foundry-web-ui": "^0.12.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@assistant-ui/react": "^0.15.1",