@tangle-network/sandbox-ui 0.93.1 → 0.94.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.
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ React component library for [Tangle Sandbox](https://sandbox.tangle.tools) — a
|
|
|
16
16
|
npm install @tangle-network/sandbox-ui
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
**Required peers:** `react` and `react-dom` 18 or 19, `@tangle-network/agent-interface
|
|
19
|
+
**Required peers:** `react` and `react-dom` 18 or 19, `@tangle-network/agent-interface >=0.36.0 <0.43.0`, `@tangle-network/brand ^1.1.0`, and `@tangle-network/ui ^11.0.0`.
|
|
20
20
|
Optional peers are required only by the subpaths that use them; see [package.json](./package.json).
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
COMPACT_NODE_SIZE,
|
|
6
6
|
COMPACT_TILE,
|
|
7
|
+
OUTPUT_PREVIEW_CHARS,
|
|
8
|
+
OUTPUT_ROWS,
|
|
7
9
|
buildWorkflowGraph,
|
|
8
10
|
clampPreview,
|
|
9
11
|
fmtCost,
|
|
@@ -12,7 +14,7 @@ import {
|
|
|
12
14
|
providerLabel,
|
|
13
15
|
shortModel,
|
|
14
16
|
triggerNodeIndex
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7QKAVIZX.js";
|
|
16
18
|
import {
|
|
17
19
|
ModelBrandStack,
|
|
18
20
|
modelBrandFor
|
|
@@ -566,7 +568,7 @@ function WorkflowNode({ id, data }) {
|
|
|
566
568
|
const trimmed = source.text.trim();
|
|
567
569
|
if (!trimmed) return null;
|
|
568
570
|
const shape = classifyOutput(
|
|
569
|
-
clampPreview(trimmed),
|
|
571
|
+
clampPreview(trimmed, OUTPUT_PREVIEW_CHARS),
|
|
570
572
|
isAgent && source.tone !== "error"
|
|
571
573
|
);
|
|
572
574
|
return shape.kind === "empty" ? null : { shape, tone: source.tone, label: source.label };
|
|
@@ -728,7 +730,7 @@ function WorkflowNode({ id, data }) {
|
|
|
728
730
|
{
|
|
729
731
|
shape: runOutput.shape,
|
|
730
732
|
tone: runOutput.tone,
|
|
731
|
-
rows:
|
|
733
|
+
rows: OUTPUT_ROWS
|
|
732
734
|
}
|
|
733
735
|
)
|
|
734
736
|
] }),
|
|
@@ -238,7 +238,9 @@ var CARD_CHROME = 20;
|
|
|
238
238
|
var HEADER_ROW = 34;
|
|
239
239
|
var DESCRIPTION_ROW = 40;
|
|
240
240
|
var META_ROW = 27;
|
|
241
|
-
var
|
|
241
|
+
var OUTPUT_ROWS = 3;
|
|
242
|
+
var OUTPUT_ROW = 89;
|
|
243
|
+
var OUTPUT_PREVIEW_CHARS = 240;
|
|
242
244
|
var FOOTER_ROW = 28;
|
|
243
245
|
var COMPACT_TILE = 76;
|
|
244
246
|
var COMPACT_GAP = 8;
|
|
@@ -795,6 +797,8 @@ export {
|
|
|
795
797
|
triggerNodeIndex,
|
|
796
798
|
actionNodeId,
|
|
797
799
|
branchNodeId,
|
|
800
|
+
OUTPUT_ROWS,
|
|
801
|
+
OUTPUT_PREVIEW_CHARS,
|
|
798
802
|
COMPACT_TILE,
|
|
799
803
|
COMPACT_NODE_SIZE,
|
|
800
804
|
buildWorkflowGraph
|
package/dist/workflows.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
buildWorkflowGraph,
|
|
6
6
|
triggerNodeId,
|
|
7
7
|
triggerNodeIndex
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7QKAVIZX.js";
|
|
9
9
|
import {
|
|
10
10
|
ModelBrandStack,
|
|
11
11
|
modelBrandFor
|
|
@@ -36,7 +36,7 @@ function retryImport(factory, retries = 2, delayMs = 350) {
|
|
|
36
36
|
function lazyWorkflowGraph() {
|
|
37
37
|
return lazy(
|
|
38
38
|
() => retryImport(
|
|
39
|
-
() => import("./WorkflowGraph-
|
|
39
|
+
() => import("./WorkflowGraph-4TQFLY3E.js").then((m) => ({ default: m.WorkflowGraph }))
|
|
40
40
|
)
|
|
41
41
|
);
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.94.1",
|
|
4
4
|
"description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"@hocuspocus/provider": ">=2.15.0 <5.0.0",
|
|
120
120
|
"@nanostores/react": ">=0.8.4 <2.0.0",
|
|
121
|
-
"@tangle-network/agent-interface": "
|
|
121
|
+
"@tangle-network/agent-interface": ">=0.36.0 <0.43.0",
|
|
122
122
|
"@tangle-network/brand": "^1.1.0",
|
|
123
123
|
"@tangle-network/ui": "^11.0.0",
|
|
124
124
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"@storybook/react": "^10.5.4",
|
|
190
190
|
"@storybook/react-vite": "^10.5.4",
|
|
191
191
|
"@tailwindcss/postcss": "^4.3.3",
|
|
192
|
-
"@tangle-network/agent-interface": "
|
|
192
|
+
"@tangle-network/agent-interface": "0.42.1",
|
|
193
193
|
"@tangle-network/brand": "^1.1.0",
|
|
194
194
|
"@tangle-network/ui": "^11.2.0",
|
|
195
195
|
"@tanstack/react-query": "^5.101.4",
|