@tangle-network/agent-app 3.0.2 → 3.0.3
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/dist/assistant/index.js +15 -90
- package/dist/assistant/index.js.map +1 -1
- package/dist/{chunk-5WQ77MPN.js → chunk-NN3CQNX5.js} +786 -719
- package/dist/chunk-NN3CQNX5.js.map +1 -0
- package/dist/web-react/index.d.ts +1 -0
- package/dist/web-react/index.js +3 -1
- package/dist/web-react/resize-handle.d.ts +24 -0
- package/package.json +1 -1
- package/dist/assistant/ResizeHandle.d.ts +0 -19
- package/dist/chunk-5WQ77MPN.js.map +0 -1
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
*/
|
|
25
25
|
export * from './chat-stream.js';
|
|
26
26
|
export { TurnProgress, type TurnProgressProps } from './turn-progress.js';
|
|
27
|
+
export { ResizeHandle, type ResizeHandleProps } from './resize-handle.js';
|
|
27
28
|
export { ReasoningRow, type ReasoningRowProps } from './reasoning-row.js';
|
|
28
29
|
export { useChatScroll } from './chat-scroll.js';
|
|
29
30
|
export * from './chat-interactions.js';
|
package/dist/web-react/index.js
CHANGED
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
QuestionOptionList,
|
|
40
40
|
ReasoningRow,
|
|
41
41
|
RecordGrid,
|
|
42
|
+
ResizeHandle,
|
|
42
43
|
ReviewInbox,
|
|
43
44
|
RunDrillIn,
|
|
44
45
|
SeatPaywall,
|
|
@@ -152,7 +153,7 @@ import {
|
|
|
152
153
|
withoutRecordGridCreated,
|
|
153
154
|
withoutRecordGridRemoved,
|
|
154
155
|
withoutRecordGridUpdate
|
|
155
|
-
} from "../chunk-
|
|
156
|
+
} from "../chunk-NN3CQNX5.js";
|
|
156
157
|
import {
|
|
157
158
|
useInfiniteScroll
|
|
158
159
|
} from "../chunk-UHSUY6H6.js";
|
|
@@ -399,6 +400,7 @@ export {
|
|
|
399
400
|
QuestionOptionList,
|
|
400
401
|
ReasoningRow,
|
|
401
402
|
RecordGrid,
|
|
403
|
+
ResizeHandle,
|
|
402
404
|
ReviewFeedbackForm,
|
|
403
405
|
ReviewInbox,
|
|
404
406
|
ReviewQueuePanel,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ResizeHandleProps {
|
|
2
|
+
width: number;
|
|
3
|
+
minWidth: number;
|
|
4
|
+
maxWidth: number;
|
|
5
|
+
/** The pane edge the grip sits on: "left" for a right-anchored pane (dragging left widens it), "right" for a left-anchored one. */
|
|
6
|
+
edge?: "left" | "right";
|
|
7
|
+
/** Accessible name, such as "Resize assistant panel". */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Live (non-persisted) width during a drag: the raw pointer-derived width, NOT clamped; the consumer clamps. */
|
|
10
|
+
onPreview: (next: number) => void;
|
|
11
|
+
/** Persist the final width, once on release; skipped when the pointer never moved. */
|
|
12
|
+
onCommit: (next: number) => void;
|
|
13
|
+
/** Keyboard resize delta in px (the consumer clamps and persists). */
|
|
14
|
+
onNudge: (deltaPx: number) => void;
|
|
15
|
+
/** Double-click: return to the default width. */
|
|
16
|
+
onReset?: () => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Drag-to-resize grip on a pane's edge, an ARIA window splitter. Pointer
|
|
21
|
+
* capture keeps the drag alive while the cursor moves anywhere on screen; arrow
|
|
22
|
+
* keys resize in 24 px steps. The parent positions it (the grip is absolute).
|
|
23
|
+
*/
|
|
24
|
+
export declare function ResizeHandle({ width, minWidth, maxWidth, edge, label, onPreview, onCommit, onNudge, onReset, className }: ResizeHandleProps): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Drag-to-resize grip on the assistant panel's left edge. Pointer capture keeps
|
|
3
|
-
* the drag alive while the cursor moves anywhere on screen; arrow keys resize in
|
|
4
|
-
* coarse steps for keyboard users. The panel is right-anchored, so dragging
|
|
5
|
-
* left widens it. The in-memory width updates every move (`onPreview`); the
|
|
6
|
-
* final width is persisted once on release (`onCommit`).
|
|
7
|
-
*/
|
|
8
|
-
export declare function ResizeHandle({ width, maxWidth, onPreview, onCommit, onNudge, }: {
|
|
9
|
-
width: number;
|
|
10
|
-
maxWidth: number;
|
|
11
|
-
/** Live (non-persisted) width update during a drag. The value is the raw
|
|
12
|
-
* pointer-derived width and is NOT clamped — the consumer must clamp it to its
|
|
13
|
-
* own min/max (the launcher's `panel.previewWidth` does). */
|
|
14
|
-
onPreview: (next: number) => void;
|
|
15
|
-
/** Persist the final width (drag end). */
|
|
16
|
-
onCommit: (next: number) => void;
|
|
17
|
-
/** Keyboard resize delta (clamped + persisted). */
|
|
18
|
-
onNudge: (deltaPx: number) => void;
|
|
19
|
-
}): import("react").JSX.Element;
|