@heroui/agent 0.2.0-beta.6 → 0.2.0-beta.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-beta.7
4
+
5
+ - Polish the activity trail with smoother status transitions, semantic summary icons, bounded
6
+ live-step scrolling, and correctly aligned in-progress labels.
7
+ - Keep conversation positioning stable by anchoring new user turns without pulling the viewport
8
+ down for consecutive Agent responses.
9
+ - Resize the docked Agent panel itself, rather than shifting its contents inside a fixed-width
10
+ shell.
11
+ - Match chart tooltip markers to the hovered series or slice color, including generated pie and
12
+ donut charts.
13
+
3
14
  ## 0.2.0-beta.6
4
15
 
5
16
  - Add opt-in recent news results with `capabilities.newsSearch`, including dashboard-managed remote
@@ -703,7 +703,7 @@ function ComponentTooltip({
703
703
  items: payload.map((entry, index) => {
704
704
  const format = series?.find((item) => item.dataKey === entry.dataKey)?.format;
705
705
  return {
706
- color: indicatorColor?.(entry, index) ?? entry.stroke ?? entry.color ?? entry.fill ?? entry.payload?.fill ?? paletteChartColor(index),
706
+ color: indicatorColor?.(entry, index) ?? entry.color ?? entry.payload?.fill ?? entry.fill ?? entry.stroke ?? paletteChartColor(index),
707
707
  id: String(entry.dataKey ?? entry.name ?? `series-${index}`),
708
708
  label: entry.name ?? entry.dataKey,
709
709
  value: typeof entry.value === "number" ? formatNumber(entry.value, format) : entry.value
@@ -496,8 +496,9 @@ function SidebarResizeHandle({
496
496
  const dragRef = useRef(null);
497
497
  const applyWidth = useCallback(
498
498
  (nextWidth) => {
499
- const root = panelRef.current?.getRootNode();
500
- const host = root instanceof ShadowRoot ? root.host : null;
499
+ const panel = panelRef.current;
500
+ const root = panel?.getRootNode();
501
+ const host = root instanceof ShadowRoot ? root.host : panel?.closest("[data-heroui-agent]");
501
502
  host?.style.setProperty("--ha-sidebar-width", `${nextWidth}px`);
502
503
  if (window.innerWidth >= 640) {
503
504
  document.documentElement.style.marginRight = `${Math.min(nextWidth, window.innerWidth)}px`;
@@ -539,6 +540,7 @@ function SidebarResizeHandle({
539
540
  if (!drag) return;
540
541
  dragRef.current = null;
541
542
  delete event.currentTarget.dataset["resizing"];
543
+ if (panelRef.current) delete panelRef.current.dataset["dragResizing"];
542
544
  document.documentElement.style.transition = drag.pageTransition;
543
545
  resizeTo(drag.startWidth, false);
544
546
  },
@@ -548,25 +550,28 @@ function SidebarResizeHandle({
548
550
  event.currentTarget.setPointerCapture(event.pointerId);
549
551
  event.currentTarget.dataset["resizing"] = "true";
550
552
  dragRef.current = {
553
+ currentWidth: width,
551
554
  pageTransition: document.documentElement.style.transition,
552
555
  startWidth: width,
553
556
  startX: event.clientX
554
557
  };
555
558
  document.documentElement.style.transition = "none";
559
+ if (panelRef.current) panelRef.current.dataset["dragResizing"] = "true";
556
560
  },
557
561
  onPointerMove: (event) => {
558
562
  const drag = dragRef.current;
559
563
  if (!drag) return;
560
- resizeTo(drag.startWidth + (drag.startX - event.clientX), false);
564
+ drag.currentWidth = resizeTo(drag.startWidth + (drag.startX - event.clientX), false);
561
565
  },
562
566
  onPointerUp: (event) => {
563
567
  const drag = dragRef.current;
564
568
  if (!drag) return;
565
569
  dragRef.current = null;
566
570
  delete event.currentTarget.dataset["resizing"];
571
+ if (panelRef.current) delete panelRef.current.dataset["dragResizing"];
567
572
  event.currentTarget.releasePointerCapture(event.pointerId);
568
573
  document.documentElement.style.transition = drag.pageTransition;
569
- persistSidebarWidth(agentId, width);
574
+ persistSidebarWidth(agentId, drag.currentWidth);
570
575
  }
571
576
  }
572
577
  )
@@ -10,7 +10,7 @@ import {
10
10
  resolveOptions,
11
11
  scheduleIdleTask,
12
12
  writeAgentShellHandoff
13
- } from "./chunk-QOCNMON2.js";
13
+ } from "./chunk-OQGXZY5L.js";
14
14
 
15
15
  // src/embed/provider.tsx
16
16
  import {
@@ -532,7 +532,7 @@ var embedRuntimePromise;
532
532
  function loadEmbedRuntime() {
533
533
  embedRuntimePromise ??= import(
534
534
  /* webpackPrefetch: true */
535
- "./embed-runtime-CR7PQH3Q.js"
535
+ "./embed-runtime-UF7XJIFA.js"
536
536
  ).then(
537
537
  (module) => module.default
538
538
  );