@tangle-network/agent-app 0.46.12 → 0.46.14

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.
@@ -796,6 +796,7 @@ function StudioComposer({
796
796
  onGenerated,
797
797
  variant = "home",
798
798
  pickReferenceImage,
799
+ sendTone = "contrast",
799
800
  className
800
801
  }) {
801
802
  const [type, setType] = useState3("image");
@@ -1030,10 +1031,13 @@ function StudioComposer({
1030
1031
  "data-variant": variant,
1031
1032
  className: `studio-composer-card rounded-2xl border border-border bg-surface-container-high p-2.5 shadow-sm transition focus-within:border-primary/60 ${className ?? ""}`,
1032
1033
  children: [
1033
- laneDown ? /* @__PURE__ */ jsxs2("p", { className: "flex min-h-0 items-center gap-2 px-1.5 pb-3 pt-1.5 text-[13px] font-medium text-warning", children: [
1034
- /* @__PURE__ */ jsx2(TriangleAlert2, { "aria-hidden": true, className: "h-4 w-4 shrink-0", strokeWidth: 2 }),
1035
- /* @__PURE__ */ jsx2("span", { children: laneDownMessage })
1036
- ] }) : /* @__PURE__ */ jsx2(
1034
+ laneDown ? (
1035
+ // Match rows={3} at 14.5px/1.625 plus the textarea's vertical padding.
1036
+ /* @__PURE__ */ jsxs2("p", { className: "flex min-h-[calc(70.6875px+0.625rem)] items-center gap-2 px-1.5 pb-3 pt-1.5 text-[13px] font-medium text-warning", children: [
1037
+ /* @__PURE__ */ jsx2(TriangleAlert2, { "aria-hidden": true, className: "h-4 w-4 shrink-0", strokeWidth: 2 }),
1038
+ /* @__PURE__ */ jsx2("span", { children: laneDownMessage })
1039
+ ] })
1040
+ ) : /* @__PURE__ */ jsx2(
1037
1041
  "textarea",
1038
1042
  {
1039
1043
  value: prompt,
@@ -1115,7 +1119,7 @@ function StudioComposer({
1115
1119
  title: "Generate",
1116
1120
  disabled: !canSubmit,
1117
1121
  onClick: () => void generate(),
1118
- className: "ml-auto inline-flex h-8 w-8 flex-none items-center justify-center rounded-full bg-foreground text-background transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card",
1122
+ className: `ml-auto inline-flex h-8 w-8 flex-none items-center justify-center rounded-full ${sendTone === "primary" ? "bg-primary text-primary-foreground" : "bg-foreground text-background"} transition ${sendTone === "primary" ? "hover:bg-primary/90" : "hover:opacity-90"} disabled:cursor-not-allowed disabled:opacity-40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card`,
1119
1123
  children: /* @__PURE__ */ jsx2(ArrowUp, { className: "h-4 w-4", strokeWidth: 2 })
1120
1124
  }
1121
1125
  )
@@ -2482,6 +2486,7 @@ function StudioHomeScreen({
2482
2486
  onOpenHistory,
2483
2487
  workspaceId,
2484
2488
  pickReferenceImage,
2489
+ sendTone,
2485
2490
  actions,
2486
2491
  recentLimit = 20,
2487
2492
  className
@@ -2526,6 +2531,7 @@ function StudioHomeScreen({
2526
2531
  variant: "home",
2527
2532
  workspaceId,
2528
2533
  pickReferenceImage,
2534
+ sendTone,
2529
2535
  onGenerated: wrappedOnGenerated
2530
2536
  }
2531
2537
  )
@@ -2605,6 +2611,7 @@ function StudioGenerationScreen({
2605
2611
  onOpenGeneration,
2606
2612
  workspaceId,
2607
2613
  pickReferenceImage,
2614
+ sendTone,
2608
2615
  actions,
2609
2616
  className
2610
2617
  }) {
@@ -2759,6 +2766,7 @@ function StudioGenerationScreen({
2759
2766
  variant: "docked",
2760
2767
  workspaceId,
2761
2768
  pickReferenceImage,
2769
+ sendTone,
2762
2770
  onGenerated: handleGenerated
2763
2771
  }
2764
2772
  )