@iloveagents/foundry-web-ui 0.26.0 → 0.27.0

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.
Files changed (82) hide show
  1. package/dist/components/assistant-chat.d.ts +12 -1
  2. package/dist/components/assistant-chat.js +18 -13
  3. package/dist/components/chat-bubble.js +9 -6
  4. package/dist/components/chat-context.d.ts +2 -0
  5. package/dist/components/chat-context.js +70 -0
  6. package/dist/components/chat-slots.d.ts +10 -0
  7. package/dist/components/chat-slots.js +7 -0
  8. package/dist/components/composer-add-menu.js +3 -2
  9. package/dist/components/composer-input.d.ts +4 -0
  10. package/dist/components/composer-input.js +23 -0
  11. package/dist/components/context-badges.d.ts +4 -1
  12. package/dist/components/context-badges.js +7 -4
  13. package/dist/components/context-bar.d.ts +1 -0
  14. package/dist/components/context-bar.js +11 -3
  15. package/dist/components/data-table/data-table-frame.d.ts +1 -22
  16. package/dist/components/data-table/data-table-frame.js +21 -48
  17. package/dist/components/data-table/data-table-overflow.d.ts +5 -0
  18. package/dist/components/data-table/data-table-overflow.js +42 -0
  19. package/dist/components/data-table/data-table.js +88 -87
  20. package/dist/components/data-table/focus-pane-resize.d.ts +8 -0
  21. package/dist/components/data-table/focus-pane-resize.js +88 -0
  22. package/dist/components/focus-chat-pane.d.ts +8 -0
  23. package/dist/components/focus-chat-pane.js +9 -0
  24. package/dist/components/focus-dialog.d.ts +8 -0
  25. package/dist/components/focus-dialog.js +103 -0
  26. package/dist/components/focus-source-pane.d.ts +7 -0
  27. package/dist/components/focus-source-pane.js +15 -0
  28. package/dist/components/loading-indicator.js +1 -1
  29. package/dist/components/message-timestamp.js +3 -2
  30. package/dist/components/pin-state-icon.d.ts +5 -0
  31. package/dist/components/pin-state-icon.js +7 -0
  32. package/dist/components/pin-toggle.d.ts +7 -0
  33. package/dist/components/pin-toggle.js +10 -0
  34. package/dist/components/sidebar.d.ts +18 -1
  35. package/dist/components/sidebar.js +124 -74
  36. package/dist/components/tool-panel-layout.d.ts +3 -1
  37. package/dist/components/tool-panel-layout.js +5 -5
  38. package/dist/components/tool-panel.d.ts +8 -1
  39. package/dist/components/tool-panel.js +12 -8
  40. package/dist/components/user-menu.js +19 -3
  41. package/dist/index.d.ts +2 -0
  42. package/dist/index.js +2 -0
  43. package/dist/lib/app-store.d.ts +0 -8
  44. package/dist/lib/app-store.js +14 -4
  45. package/dist/lib/chat-context-summary.d.ts +11 -0
  46. package/dist/lib/chat-context-summary.js +37 -0
  47. package/dist/lib/chat-lifecycle-store.d.ts +2 -0
  48. package/dist/lib/chat-lifecycle-store.js +6 -1
  49. package/dist/lib/client-tools.js +7 -0
  50. package/dist/lib/create-ui-id.d.ts +2 -0
  51. package/dist/lib/create-ui-id.js +9 -0
  52. package/dist/lib/focus-context.d.ts +2 -0
  53. package/dist/lib/focus-context.js +78 -0
  54. package/dist/lib/nav-config.d.ts +7 -0
  55. package/dist/lib/tool-panel-store.d.ts +7 -6
  56. package/dist/lib/tool-panel-store.js +29 -3
  57. package/dist/lib/use-new-conversation.js +1 -1
  58. package/dist/workbench/chat-header.d.ts +14 -0
  59. package/dist/workbench/chat-header.js +12 -0
  60. package/dist/workbench/chat-resize-handle.d.ts +4 -0
  61. package/dist/workbench/chat-resize-handle.js +40 -0
  62. package/dist/workbench/content-pane.d.ts +14 -0
  63. package/dist/workbench/content-pane.js +14 -0
  64. package/dist/workbench/conversation-history.d.ts +11 -0
  65. package/dist/workbench/conversation-history.js +83 -0
  66. package/dist/workbench/navigation.d.ts +6 -0
  67. package/dist/workbench/navigation.js +6 -0
  68. package/dist/workbench/selection-bridge.d.ts +5 -0
  69. package/dist/workbench/selection-bridge.js +84 -0
  70. package/dist/workbench/use-chat-width.d.ts +14 -0
  71. package/dist/workbench/use-chat-width.js +56 -0
  72. package/dist/workbench/use-workbench-state.d.ts +50 -0
  73. package/dist/workbench/use-workbench-state.js +145 -0
  74. package/dist/workbench/welcome-intro.d.ts +6 -0
  75. package/dist/workbench/welcome-intro.js +10 -0
  76. package/dist/workbench/workbench-styles.d.ts +1 -0
  77. package/dist/workbench/workbench-styles.js +290 -0
  78. package/dist/workbench/workbench.d.ts +5 -0
  79. package/dist/workbench/workbench.js +32 -0
  80. package/dist/workbench.d.ts +2 -0
  81. package/dist/workbench.js +2 -0
  82. package/package.json +8 -4
@@ -0,0 +1,290 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function WorkbenchStyles() {
3
+ return (_jsx("style", { children: `
4
+ .workbench-preview [data-panel-resize] {
5
+ width: 12px;
6
+ right: 0 !important;
7
+ z-index: 40;
8
+ touch-action: none;
9
+ background: transparent;
10
+ outline: none;
11
+ }
12
+ .workbench-preview [data-panel-resize] > div { display: none; }
13
+ .workbench-preview [data-panel-resize]::after {
14
+ content: "";
15
+ position: absolute;
16
+ top: 50%;
17
+ left: 3px;
18
+ width: 6px;
19
+ height: 56px;
20
+ transform: translateY(-50%);
21
+ border-radius: 999px;
22
+ background: var(--border);
23
+ box-shadow: 0 1px 2px #00000014;
24
+ opacity: 0;
25
+ transition: opacity 120ms ease;
26
+ }
27
+ .workbench-preview [data-panel-resize]:hover::after,
28
+ .workbench-preview [data-panel-resize]:focus-visible::after,
29
+ .workbench-preview [data-panel-resize]:active::after { opacity: 1; }
30
+ .workbench-preview select:not([multiple]):not([size]),
31
+ .workbench-preview select[size="1"]:not([multiple]) {
32
+ appearance: none;
33
+ padding-right: 36px;
34
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
35
+ background-repeat: no-repeat;
36
+ background-position: right 12px center;
37
+ background-size: 16px 16px;
38
+ }
39
+ .preview-account-compact button > span:not(.sr-only) { display: none; }
40
+ .workbench-preview #preview-assistant textarea::placeholder {
41
+ font-size: 14px;
42
+ font-weight: 400;
43
+ color: color-mix(in srgb, var(--muted-foreground) 65%, var(--background));
44
+ opacity: 1;
45
+ }
46
+ .workbench-preview #preview-assistant button[aria-label="Add to this message"] {
47
+ width: 32px;
48
+ height: 32px;
49
+ margin-left: -8px;
50
+ padding: 0;
51
+ }
52
+ .workbench-preview #preview-assistant button[aria-label="Add to this message"] svg {
53
+ width: 16px;
54
+ height: 16px;
55
+ }
56
+
57
+ .workbench-preview #preview-assistant button[aria-label="Send message"],
58
+ .workbench-preview #preview-assistant button[aria-label="Stop generating"] {
59
+ width: 32px;
60
+ height: 32px;
61
+ min-width: 32px;
62
+ padding: 0;
63
+ }
64
+
65
+ .workbench-preview .preview-mobile-navigation { display: none; }
66
+ @media (max-width: 767px) {
67
+ .workbench-preview .preview-mobile-navigation { display: inline-flex; }
68
+ }
69
+ .workbench-preview [data-chat-collapsed="true"] [data-chat-header] button,
70
+ .workbench-preview [data-chat-rail] button {
71
+ width: 36px;
72
+ max-width: 36px;
73
+ flex-shrink: 0;
74
+ padding: 8px;
75
+ }
76
+
77
+ .workbench-preview [data-chat-composer-divider] { display: none; }
78
+ .workbench-preview [data-global-chat] section[aria-label="Chat history"] {
79
+ width: 100%; max-width: 48rem; margin-left: auto; margin-right: auto;
80
+ box-sizing: border-box;
81
+ }
82
+ .workbench-preview [data-global-chat] form { border-radius: 16px; }
83
+ /* One motion treatment for navigation and both working panes. */
84
+ .workbench-preview [data-sidebar-surface],
85
+ .workbench-preview [data-panel-motion] {
86
+ transition: width 200ms ease-in-out, min-width 200ms ease-in-out;
87
+ }
88
+ .workbench-preview [data-resizing] [data-panel-motion] { transition: none; }
89
+ @media (prefers-reduced-motion: reduce) {
90
+ .workbench-preview [data-sidebar-surface],
91
+ .workbench-preview [data-panel-motion] { transition: none; }
92
+ }
93
+ .workbench-preview [data-sidebar-collapsed] button,
94
+ .workbench-preview [data-sidebar-collapsed] a {
95
+ width: 36px; height: 36px; min-width: 36px; padding: 8px;
96
+ display: inline-flex; align-items: center; justify-content: center;
97
+ align-self: center; border-radius: 8px;
98
+ }
99
+ .workbench-preview [data-sidebar-collapsed] svg {
100
+ width: 18px; height: 18px; stroke-width: 2;
101
+ }
102
+ .workbench-preview {
103
+ --workbench-header-height: 60px;
104
+ --sidebar: color-mix(in srgb, var(--background) 98.5%, var(--foreground) 1.5%);
105
+ background: var(--sidebar);
106
+ --workbench-outline: color-mix(in srgb, var(--sidebar-ring) 28%, transparent);
107
+ padding: 8px 8px 8px 0;
108
+ }
109
+ .workbench-preview [data-workbench-surface] {
110
+ position: relative;
111
+ border-radius: 12px;
112
+ background: var(--background);
113
+ }
114
+ .workbench-preview [data-workbench-surface]::after {
115
+ content: "";
116
+ position: absolute;
117
+ inset: 0;
118
+ pointer-events: none;
119
+ border: 1px solid var(--workbench-outline);
120
+
121
+ border-radius: inherit;
122
+ z-index: 30;
123
+ }
124
+ .workbench-preview #preview-assistant::after {
125
+ content: "";
126
+ position: absolute;
127
+ right: 0;
128
+ top: 0;
129
+ bottom: 0;
130
+ width: 1px;
131
+ pointer-events: none;
132
+ background: color-mix(in srgb, var(--border) 55%, transparent);
133
+ }
134
+
135
+ @container hdr (max-width: 700px) {
136
+ .workbench-preview [data-entity-header-identity] {
137
+ flex-basis: 100%;
138
+ }
139
+ .workbench-preview [data-entity-header-identity] h1 {
140
+ min-width: 0;
141
+ }
142
+ }
143
+ .workbench-preview [data-navigation-header],
144
+ .workbench-preview [data-chat-header] {
145
+ height: var(--workbench-header-height);
146
+ min-height: var(--workbench-header-height);
147
+ box-sizing: border-box;
148
+ padding-top: 0;
149
+ padding-bottom: 0;
150
+ align-items: center;
151
+ }
152
+ .workbench-preview [data-navigation-header] button,
153
+ .workbench-preview [data-chat-header] button {
154
+ height: 36px;
155
+ min-width: 36px;
156
+ align-items: center;
157
+ justify-content: center;
158
+ border-radius: 8px;
159
+ }
160
+ .workbench-preview [data-navigation-header] button,
161
+ .workbench-preview [data-chat-header] button,
162
+ .workbench-preview [data-chat-rail] button {
163
+ color: var(--muted-foreground);
164
+ background-color: transparent;
165
+ }
166
+ .workbench-preview [data-navigation-header] button:hover,
167
+ .workbench-preview [data-chat-header] button:hover,
168
+ .workbench-preview [data-chat-rail] button:hover {
169
+ color: var(--foreground);
170
+ background-color: var(--muted);
171
+ }
172
+ .workbench-preview [data-navigation-header] button svg,
173
+ .workbench-preview [data-chat-header] button svg,
174
+ .workbench-preview [data-content-collapse] svg,
175
+ .workbench-preview [data-chat-rail] button svg {
176
+ width: 18px;
177
+ height: 18px;
178
+ stroke-width: 2;
179
+ flex-shrink: 0;
180
+ }
181
+ .workbench-preview [data-content-collapse] {
182
+ position: absolute;
183
+ top: calc((var(--workbench-header-height) - 36px) / 2);
184
+ right: var(--workbench-inline-padding, 16px);
185
+ width: 36px;
186
+ height: 36px;
187
+ padding: 8px;
188
+ z-index: 20;
189
+ }
190
+ .workbench-preview [data-working-content]:has(> [data-content-collapse]) [data-preview-entity-header] > [data-entity-header-row] {
191
+ padding-right: var(--workbench-header-actions-inset, calc(var(--workbench-inline-padding, 16px) + 44px));
192
+ }
193
+ .workbench-preview [data-working-content]:not(:has([data-entity-header-row])):not([data-item-panel-open]) {
194
+ padding-top: var(--workbench-header-height);
195
+ }
196
+ @media print {
197
+ .workbench-preview [data-content-collapse] { display: none; }
198
+ }
199
+ .workbench-preview [data-conversation-row] {
200
+ color: var(--sidebar-foreground);
201
+ font-size: 14px;
202
+ line-height: 20px;
203
+ }
204
+ /* Preview-only hierarchy: workspace title first, quiet section labels,
205
+ and one consistent rhythm for conversation and content rows. */
206
+ .workbench-preview [data-nav-group-header],
207
+ .workbench-preview [data-conversation-section-label] {
208
+ min-height: 32px;
209
+ gap: 0;
210
+ background: transparent;
211
+ font-size: 12px;
212
+ font-weight: 500;
213
+ line-height: 16px;
214
+ letter-spacing: normal;
215
+ text-transform: none;
216
+ color: var(--muted-foreground);
217
+ }
218
+ .workbench-preview [data-nav-group-header] span:not([data-nav-status-dot]) {
219
+ font-size: inherit;
220
+ font-weight: inherit;
221
+ letter-spacing: inherit;
222
+ text-transform: none;
223
+ color: inherit;
224
+ }
225
+ .workbench-preview [data-nav-group-header] > span[aria-hidden="true"] {
226
+ display: none;
227
+ }
228
+ .workbench-preview [data-nav-group-label] > div:has(> [data-nav-group-header]) {
229
+ padding-top: 18px;
230
+ padding-bottom: 2px;
231
+ }
232
+ .workbench-preview [data-conversation-row],
233
+ .workbench-preview [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-depth] {
234
+ min-height: 36px;
235
+ padding-top: 6px;
236
+ padding-bottom: 6px;
237
+ gap: 10px;
238
+ border-radius: 8px;
239
+ }
240
+ .workbench-preview:not([data-workspace-navigation]) [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-depth="0"] {
241
+ padding-left: 12px;
242
+ }
243
+ .workbench-preview:not([data-workspace-navigation]) [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-depth="0"] > [data-nav-twisty-cell]:not(:has([data-nav-twisty])) {
244
+ display: none;
245
+ }
246
+ .workbench-preview [data-sidebar-surface]:not([data-sidebar-collapsed]) div[data-nav-depth] {
247
+ padding-top: 0;
248
+ padding-bottom: 0;
249
+ }
250
+ .workbench-preview:not([data-workspace-navigation]) [data-sidebar-surface]:not([data-sidebar-collapsed]) div[data-nav-depth="0"] {
251
+ padding-left: 0;
252
+ }
253
+ .workbench-preview:not([data-workspace-navigation]) [data-sidebar-surface]:not([data-sidebar-collapsed]) div[data-nav-depth="0"] > button:not([data-nav-twisty]) {
254
+ padding-left: 12px;
255
+ min-height: 36px;
256
+ gap: 10px;
257
+ }
258
+ [data-workspace-navigation] [data-nav-group-label="Spaces"] > :first-child,
259
+ .workbench-preview [data-sidebar-surface] nav > [data-nav-group-label]:first-child > div:has(> [data-nav-group-header]) {
260
+ padding-top: 0;
261
+ }
262
+ [data-workspace-navigation] [data-nav-group-label="Spaces"] [data-nav-depth="0"] > button {
263
+ font-size: 15px;
264
+ font-weight: 600;
265
+ letter-spacing: -0.015em;
266
+ line-height: 22px;
267
+ }
268
+ [data-workspace-navigation] [data-nav-group-label="Recent chats"] > :first-child {
269
+ padding-top: 10px;
270
+ }
271
+ [data-workspace-navigation] [data-nav-group-label="Content"] {
272
+ margin-top: 0;
273
+ }
274
+
275
+ [data-workspace-navigation] [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-group-label="Content"] button[data-nav-depth],
276
+ [data-workspace-navigation] [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-group-label="Content"] div[data-nav-depth] > button:not([data-nav-twisty]) {
277
+ padding-left: calc(32px + var(--nav-depth, 0) * 16px);
278
+ }
279
+ [data-workspace-navigation] [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-group-label="Content"] [data-nav-depth] > [data-nav-twisty-cell] {
280
+ left: calc(12px + var(--nav-depth, 0) * 16px);
281
+ }
282
+
283
+ @media (pointer: coarse) {
284
+ .workbench-preview [data-conversation-row],
285
+ .workbench-preview [data-sidebar-surface]:not([data-sidebar-collapsed]) [data-nav-depth] {
286
+ min-height: 44px;
287
+ }
288
+ }
289
+ ` }));
290
+ }
@@ -0,0 +1,5 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function WorkbenchPreview({ page, chatOnly: chatRoute, }: {
3
+ page: ReactNode;
4
+ chatOnly?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { WorkbenchNavigation } from "./navigation.js";
3
+ import { WorkbenchChatHeader } from "./chat-header.js";
4
+ import { WorkbenchContentPane } from "./content-pane.js";
5
+ import { ChatResizeHandle } from "./chat-resize-handle.js";
6
+ import { WelcomeIntro } from "./welcome-intro.js";
7
+ import { useWorkbenchState } from "./use-workbench-state.js";
8
+ import { WorkbenchStyles } from "./workbench-styles.js";
9
+ import { Button } from "@iloveagents/foundry-web-primitives";
10
+ import { ChatContent, TooltipIconButton } from "../index.js";
11
+ import { FileText, MessageSquare, Menu } from "lucide-react";
12
+ import { ConversationHistory } from "./conversation-history.js";
13
+ export function WorkbenchPreview({ page, chatOnly: chatRoute = false, }) {
14
+ const { panelOpen, chatOnly, pageLabel, chatWidth, collapsed, setCollapsed, compactPane, setCompactPane, contentCollapsed, setContentCollapsed, contentHidden, historyOpen, emptyChat, showHistory, spaciousChat, returnToChat, openHistory, historyShortcut, toggleNavigation, navGroups, workspaceGroups, staticNavigationGroups, closePanel, startChat, } = useWorkbenchState(chatRoute);
15
+ const buttonClass = "inline-flex items-center justify-center rounded-lg p-2 text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-primary";
16
+ return (_jsxs("div", { className: "workbench-preview flex min-h-0 flex-1 overflow-hidden", "data-workspace-navigation": workspaceGroups ? "true" : undefined, children: [_jsx(WorkbenchStyles, {}), _jsx(WorkbenchNavigation, { groups: staticNavigationGroups, workspace: !!workspaceGroups, onNewConversation: startChat }), _jsxs("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden", "data-workbench-surface": true, role: "region", "aria-label": "Workspace working area", children: [chatWidth.compact && (_jsxs("div", { className: "flex shrink-0 items-center gap-1 border-b border-border px-2 py-1", role: "group", "aria-label": "Workspace panes", children: [_jsx(Button, { variant: "ghost", size: "icon", className: "preview-mobile-navigation size-11", "aria-label": "Open navigation", onClick: toggleNavigation, children: _jsx(Menu, { className: "size-4" }) }), ["content", "chat"]
17
+ .filter((pane) => !chatOnly || pane === "chat")
18
+ .map((pane) => (_jsxs(Button, { variant: "ghost", className: "h-11 gap-1.5 px-3 aria-pressed:bg-muted", "aria-pressed": chatOnly || compactPane === pane, "aria-controls": pane === "chat" ? "preview-assistant" : "preview-content", onClick: () => setCompactPane(pane), children: [pane === "chat" ? (_jsx(MessageSquare, { className: "size-4" })) : (_jsx(FileText, { className: "size-4" })), pane === "chat" ? "Chat" : "Content"] }, pane)))] })), _jsxs("div", { ref: chatWidth.containerRef, className: "relative flex min-h-0 min-w-0 flex-1 overflow-x-auto", children: [_jsxs("section", { id: "preview-assistant", "data-panel-motion": true, "data-global-chat": spaciousChat || undefined, "data-chat-collapsed": collapsed ? "true" : undefined, inert: chatWidth.compact && !chatOnly && compactPane !== "chat", "aria-label": "Assistant conversation", className: "relative flex min-h-0 shrink-0 flex-col", style: {
19
+ display: chatWidth.compact && !chatOnly && compactPane !== "chat" ? "none" : "flex",
20
+ width: chatWidth.compact || chatOnly
21
+ ? "100%"
22
+ : collapsed
23
+ ? 44
24
+ : contentCollapsed
25
+ ? "calc(100% - 44px)"
26
+ : chatWidth.width,
27
+ background: "var(--background)",
28
+ }, children: [_jsx(WorkbenchChatHeader, { collapsed: collapsed, chatWidth: chatWidth, buttonClass: buttonClass, toggleNavigation: toggleNavigation, setCollapsed: setCollapsed, showHistory: showHistory, startChat: startChat, returnToChat: returnToChat, openHistory: openHistory, chatOnly: chatOnly, setContentCollapsed: setContentCollapsed }), !collapsed && showHistory && (_jsx(ConversationHistory, { groups: navGroups, workspaceId: workspaceGroups?.[0]?.meta?.exclusiveRootId, onClose: returnToChat, showBack: true })), !chatWidth.compact && !collapsed && !contentCollapsed && (_jsx(ChatResizeHandle, { chatWidth: chatWidth })), _jsx("div", { className: "min-h-0 flex-1 flex-col", style: {
29
+ display: collapsed || showHistory ? "none" : "flex",
30
+ paddingBottom: spaciousChat && emptyChat && !historyOpen ? "clamp(32px, 10vh, 96px)" : undefined,
31
+ }, children: _jsx(ChatContent, { centerComposer: spaciousChat && emptyChat && !historyOpen, composerIntro: spaciousChat && emptyChat ? (_jsx(WelcomeIntro, { navGroups: navGroups, historyShortcut: historyShortcut })) : undefined, placeholder: chatOnly ? "Ask anything" : "Ask about this page…", compactComposer: !spaciousChat, hideCurrentPageBadge: true, showPinButton: false, starterSuggestions: [], emptyState: _jsxs("div", { className: "flex min-h-full flex-col justify-center gap-3 px-6 py-8", children: [_jsx("h1", { className: "text-lg font-semibold tracking-tight", children: "What would you like to get done?" }), _jsx("p", { className: "max-w-sm text-sm leading-relaxed text-muted-foreground", children: pageLabel && !pageLabel.startsWith("/") ? (_jsxs(_Fragment, { children: ["Work with ", _jsx("span", { className: "font-medium text-foreground", children: pageLabel }), " ", "or across your spaces: find information, create or edit content, and run actions."] })) : ("Find information, create or edit content, and run actions across your spaces.") }), _jsx("p", { className: "max-w-sm text-xs leading-relaxed text-muted-foreground", children: "Your conversation continues as you browse. Select text or a field to work more specifically." }), historyShortcut] }) }) })] }), _jsx(WorkbenchContentPane, { contentHidden: contentHidden, panelOpen: panelOpen, chatWidth: chatWidth, contentCollapsed: contentCollapsed, collapsed: collapsed, buttonClass: buttonClass, setCollapsed: setCollapsed, setContentCollapsed: setContentCollapsed, closePanel: closePanel, page: page }), contentCollapsed && !chatOnly && !chatWidth.compact && (_jsx("aside", { "aria-label": "Collapsed content", className: "flex w-11 shrink-0 flex-col items-center", style: { width: 44 }, children: _jsx("div", { className: "flex h-full w-full flex-col items-center", "data-chat-rail": true, children: _jsx("div", { className: "flex items-center justify-center", style: { height: 60 }, children: _jsx(TooltipIconButton, { tooltip: "Expand content", className: buttonClass, "aria-label": "Expand content", onClick: () => setContentCollapsed(false), children: _jsx(FileText, { size: 18 }) }) }) }) }))] })] })] }));
32
+ }
@@ -0,0 +1,2 @@
1
+ export { WorkbenchPreview } from "./workbench/workbench.js";
2
+ export { ConversationHistory } from "./workbench/conversation-history.js";
@@ -0,0 +1,2 @@
1
+ export { WorkbenchPreview } from "./workbench/workbench.js";
2
+ export { ConversationHistory } from "./workbench/conversation-history.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iloveagents/foundry-web-ui",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "license": "MIT",
5
5
  "description": "React agent UI core for Foundry UI — chat, composer, AG-UI adapter for assistant-ui, tool cards, panels, sidebar, theme runtime, and UI stores.",
6
6
  "keywords": [
@@ -31,7 +31,11 @@
31
31
  "types": "./dist/chart.d.ts",
32
32
  "import": "./dist/chart.js"
33
33
  },
34
- "./styles.css": "./dist/styles.css"
34
+ "./styles.css": "./dist/styles.css",
35
+ "./workbench": {
36
+ "types": "./dist/workbench.d.ts",
37
+ "import": "./dist/workbench.js"
38
+ }
35
39
  },
36
40
  "files": [
37
41
  "dist",
@@ -76,8 +80,8 @@
76
80
  "recharts": "^3.10.1",
77
81
  "remark-gfm": "^4.0.0",
78
82
  "tailwind-merge": "^3.5.0",
79
- "@iloveagents/foundry-agent": "^0.26.0",
80
- "@iloveagents/foundry-web-primitives": "^0.26.0"
83
+ "@iloveagents/foundry-agent": "^0.27.0",
84
+ "@iloveagents/foundry-web-primitives": "^0.27.0"
81
85
  },
82
86
  "devDependencies": {
83
87
  "@ag-ui/client": "^0.0.52",