@tangle-network/agent-app 0.53.4 → 0.53.5

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 (34) hide show
  1. package/dist/assistant/index.js +7 -6
  2. package/dist/assistant/index.js.map +1 -1
  3. package/dist/chat-react/index.js +3 -3
  4. package/dist/chunk-2WELYICW.js +78 -0
  5. package/dist/chunk-2WELYICW.js.map +1 -0
  6. package/dist/{chunk-6FYFGQ6I.js → chunk-AUA75YFF.js} +2 -2
  7. package/dist/{chunk-7HMDNSIA.js → chunk-JZ64GXYP.js} +4 -4
  8. package/dist/{chunk-IYK5BRL4.js → chunk-LVSKKDX2.js} +7 -4
  9. package/dist/chunk-LVSKKDX2.js.map +1 -0
  10. package/dist/{chunk-ODP3X4BN.js → chunk-QHLQPK2H.js} +11 -5
  11. package/dist/chunk-QHLQPK2H.js.map +1 -0
  12. package/dist/{chunk-NH32EPWU.js → chunk-WZ2FER6A.js} +15 -72
  13. package/dist/chunk-WZ2FER6A.js.map +1 -0
  14. package/dist/{chunk-BINC6OWR.js → chunk-ZFFBT5BF.js} +2 -2
  15. package/dist/{mention-editor-E6J2RUG4.js → mention-editor-4EWHJ5G5.js} +2 -2
  16. package/dist/studio-react/index.js +3 -2
  17. package/dist/studio-react/index.js.map +1 -1
  18. package/dist/web-react/action-dialog.d.ts +15 -0
  19. package/dist/web-react/controls.d.ts +6 -1
  20. package/dist/web-react/index.js +9 -6
  21. package/dist/web-react/workspace-switcher.d.ts +9 -0
  22. package/dist/workspace-react/index.d.ts +13 -1
  23. package/dist/workspace-react/index.js +589 -20
  24. package/dist/workspace-react/index.js.map +1 -1
  25. package/dist/workspace-react/rail-identity.d.ts +55 -0
  26. package/dist/workspace-react/workspace-list.d.ts +82 -0
  27. package/package.json +1 -1
  28. package/dist/chunk-IYK5BRL4.js.map +0 -1
  29. package/dist/chunk-NH32EPWU.js.map +0 -1
  30. package/dist/chunk-ODP3X4BN.js.map +0 -1
  31. /package/dist/{chunk-6FYFGQ6I.js.map → chunk-AUA75YFF.js.map} +0 -0
  32. /package/dist/{chunk-7HMDNSIA.js.map → chunk-JZ64GXYP.js.map} +0 -0
  33. /package/dist/{chunk-BINC6OWR.js.map → chunk-ZFFBT5BF.js.map} +0 -0
  34. /package/dist/{mention-editor-E6J2RUG4.js.map → mention-editor-4EWHJ5G5.js.map} +0 -0
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from 'react';
2
+ export declare function ActionDialogButton({ children, onClick, disabled, variant, }: {
3
+ children: ReactNode;
4
+ onClick: () => void;
5
+ disabled?: boolean;
6
+ variant?: 'primary' | 'ghost' | 'destructive';
7
+ }): import("react").JSX.Element;
8
+ export declare function ActionDialog({ title, children, footer, onClose, busy, error, }: {
9
+ title: string;
10
+ children: ReactNode;
11
+ footer: ReactNode;
12
+ onClose: () => void;
13
+ busy: boolean;
14
+ error: string | null;
15
+ }): import("react").JSX.Element;
@@ -72,6 +72,11 @@ export interface PopoverSurfaceProps {
72
72
  * `w-full` to inherit — the trigger is no longer its offset parent — so a
73
73
  * menu that used to stretch to a full-width trigger declares it here. */
74
74
  matchTriggerWidth?: boolean;
75
+ /** Preferred side. `above` suits controls docked at the bottom of a composer;
76
+ * `below` suits headers, rows, and rails. Either flips when the other side has more room. */
77
+ side?: 'above' | 'below';
78
+ /** Which trigger edge the panel lines up with. `end` keeps a row's trailing menu over the row. */
79
+ align?: 'start' | 'end';
75
80
  /** Opt in to remeasurement when asynchronous or filtered content changes. */
76
81
  contentKey?: unknown;
77
82
  children: ReactNode;
@@ -96,7 +101,7 @@ export interface PopoverSurfaceProps {
96
101
  * The panel is `visibility: hidden` for the measure pass so it never paints at
97
102
  * the pre-placement origin.
98
103
  */
99
- export declare function PopoverSurface({ open, triggerRef, panelRef, className, role, id, 'aria-label': ariaLabel, matchTriggerWidth, contentKey, children, }: PopoverSurfaceProps): import("react").ReactPortal | null;
104
+ export declare function PopoverSurface({ open, triggerRef, panelRef, className, role, id, 'aria-label': ariaLabel, matchTriggerWidth, side, align, contentKey, children, }: PopoverSurfaceProps): import("react").ReactPortal | null;
100
105
  /**
101
106
  * Focus treatment for a row inside a popover panel.
102
107
  *
@@ -133,21 +133,23 @@ import {
133
133
  withoutRecordGridCreated,
134
134
  withoutRecordGridRemoved,
135
135
  withoutRecordGridUpdate
136
- } from "../chunk-BINC6OWR.js";
136
+ } from "../chunk-ZFFBT5BF.js";
137
137
  import {
138
138
  SessionHistoryPanel,
139
139
  formatSessionTimestamp,
140
140
  useInfiniteScroll,
141
141
  useSessionActions,
142
142
  useSessionHistory
143
- } from "../chunk-NH32EPWU.js";
143
+ } from "../chunk-WZ2FER6A.js";
144
144
  import {
145
145
  MENTION_PILL_CLASS
146
146
  } from "../chunk-3HUFJ5LO.js";
147
147
  import "../chunk-FBVLEGEG.js";
148
148
  import {
149
+ WorkspaceInitial,
149
150
  WorkspaceSwitcher
150
- } from "../chunk-ODP3X4BN.js";
151
+ } from "../chunk-QHLQPK2H.js";
152
+ import "../chunk-2WELYICW.js";
151
153
  import {
152
154
  tabTerminalConnectionId,
153
155
  useSandboxTerminalConnection
@@ -184,9 +186,9 @@ import {
184
186
  renamePastedImages,
185
187
  useComposerAttachments,
186
188
  useDictation
187
- } from "../chunk-7HMDNSIA.js";
189
+ } from "../chunk-JZ64GXYP.js";
188
190
  import "../chunk-L7MB2LLM.js";
189
- import "../chunk-6FYFGQ6I.js";
191
+ import "../chunk-AUA75YFF.js";
190
192
  import {
191
193
  DEFAULT_EFFORT_LEVELS,
192
194
  EFFORT_METER_SEGMENTS,
@@ -202,7 +204,7 @@ import {
202
204
  reconcileEffortLevels,
203
205
  usePending,
204
206
  usePopover
205
- } from "../chunk-IYK5BRL4.js";
207
+ } from "../chunk-LVSKKDX2.js";
206
208
  import "../chunk-SJWIZT7B.js";
207
209
  import {
208
210
  ProviderLogo
@@ -340,6 +342,7 @@ export {
340
342
  SessionHistoryPanel,
341
343
  Sparkline,
342
344
  WorkProductCard,
345
+ WorkspaceInitial,
343
346
  WorkspaceSwitcher,
344
347
  __resetAttachmentFileCacheForTests,
345
348
  acceptRejectionReason,
@@ -22,3 +22,12 @@ export interface WorkspaceSwitcherProps {
22
22
  }
23
23
  /** Searchable workspace/client/project selection, shared across all workspace shells. */
24
24
  export declare function WorkspaceSwitcher({ items, value, onChange, label, placeholder, searchLabel, emptyLabel, collapsed, variant, footer, open: controlledOpen, onOpenChange, }: WorkspaceSwitcherProps): import("react").JSX.Element;
25
+ /**
26
+ * The one workspace avatar: a rounded square with the first letter, tinted
27
+ * with the product accent. The switchers and the listing all use it, so a
28
+ * client looks the same wherever it appears.
29
+ */
30
+ export declare function WorkspaceInitial({ name, size }: {
31
+ name: string;
32
+ size?: 'sm' | 'lg';
33
+ }): import("react").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { type SidebarLayoutNavItem, type SidebarLayoutProps } from '@tangle-network/sandbox-ui/dashboard';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { WorkspaceAppRecord } from '../workspace-apps';
4
+ import { type AgentProductIdentity, type AgentWorkspaceIdentity } from './rail-identity';
4
5
  import { type NavRouteDef, type RailPrefetch, type SessionRowActions, type SessionSummary } from '../session-shell';
5
6
  type WorkspaceIcon = SidebarLayoutNavItem['icon'];
6
7
  /** The session data and product-owned URLs needed by the default workspace. */
@@ -70,6 +71,14 @@ export interface AgentWorkspaceActiveRoute {
70
71
  }
71
72
  export interface AgentWorkspaceLayoutProps extends Omit<SidebarLayoutProps, 'activeId' | 'children' | 'navItems' | 'hideBelow' | 'railLabels'> {
72
73
  children: ReactNode;
74
+ /**
75
+ * The product's name, mark, and home. With it the shell draws the canonical
76
+ * rail top — mark, then the open workspace and product name — so products
77
+ * stop hand-building `logo` and `railHeaderContent`.
78
+ */
79
+ product?: AgentProductIdentity;
80
+ /** The open workspace and where else this person can go. Omit on the listing. */
81
+ workspace?: AgentWorkspaceIdentity | null;
73
82
  /** Product-owned destinations. Shared Apps and History rows follow them. */
74
83
  navItems: SidebarLayoutNavItem[];
75
84
  /** Omit for a workflow-only shell with no conversational session rail. */
@@ -96,6 +105,9 @@ export interface AgentWorkspaceLayoutProps extends Omit<SidebarLayoutProps, 'act
96
105
  * with `SessionHistoryPanel` and `EntryComposer` for the complete chat-first
97
106
  * structure.
98
107
  */
99
- export declare function AgentWorkspaceLayout({ children, navItems, sessions, apps, activeRoute, activeId, ...sidebarProps }: AgentWorkspaceLayoutProps): import("react").JSX.Element;
108
+ export declare function AgentWorkspaceLayout({ children, navItems, sessions, apps, activeRoute, activeId, product, workspace, ...sidebarProps }: AgentWorkspaceLayoutProps): import("react").JSX.Element;
100
109
  export { AgentWorkspaceCompanion, createAgentWorkspaceCompanionTabs, type AgentWorkspaceCompanionHandle, type AgentWorkspaceCompanionProps, type AgentWorkspaceCompanionTab, type AgentWorkspaceCompanionTool, type AgentWorkspaceCompanionTools, type AgentWorkspaceCompanionNavigation } from './companion';
101
110
  export { WorkspaceSwitcher, type WorkspaceSwitcherItem, type WorkspaceSwitcherProps } from '../web-react/workspace-switcher';
111
+ export { WorkspaceInitial } from '../web-react/workspace-switcher';
112
+ export { AgentRailIdentity, DEFAULT_WORKSPACE_NOUN, type AgentProductIdentity, type AgentRailIdentityProps, type AgentWorkspaceIdentity, type AgentWorkspaceNoun, } from './rail-identity';
113
+ export { WorkspaceList, type WorkspaceListAction, type WorkspaceListField, type WorkspaceListItem, type WorkspaceListProps, } from './workspace-list';