@rodrigocoliveira/agno-react 1.1.6 → 1.2.0

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/ui.mjs CHANGED
@@ -3739,71 +3739,9 @@ function AgnoChatEmptyState({ children, className, ...props }) {
3739
3739
  }, undefined, false, undefined, this);
3740
3740
  }
3741
3741
 
3742
- // src/ui/composed/agno-chat/tool-status.tsx
3743
- import { Loader2 as Loader22, Wrench } from "lucide-react";
3744
- import { jsxDEV as jsxDEV41, Fragment as Fragment6 } from "react/jsx-dev-runtime";
3745
- function AgnoChatToolStatus({ className }) {
3746
- const { isPaused, isExecuting, pendingTools } = useAgnoChatContext();
3747
- if (!isPaused && !isExecuting)
3748
- return null;
3749
- return /* @__PURE__ */ jsxDEV41("div", {
3750
- className: cn("px-4 py-2.5 border-t border-border bg-primary/5", className),
3751
- children: /* @__PURE__ */ jsxDEV41("div", {
3752
- className: "flex items-center gap-2.5 text-sm max-w-3xl mx-auto",
3753
- children: isExecuting ? /* @__PURE__ */ jsxDEV41(Fragment6, {
3754
- children: [
3755
- /* @__PURE__ */ jsxDEV41("div", {
3756
- className: "h-5 w-5 rounded-full bg-primary/10 flex items-center justify-center",
3757
- children: /* @__PURE__ */ jsxDEV41(Loader22, {
3758
- className: "h-3 w-3 animate-spin text-primary"
3759
- }, undefined, false, undefined, this)
3760
- }, undefined, false, undefined, this),
3761
- /* @__PURE__ */ jsxDEV41("span", {
3762
- className: "text-muted-foreground",
3763
- children: [
3764
- "Executing",
3765
- " ",
3766
- /* @__PURE__ */ jsxDEV41("span", {
3767
- className: "font-medium text-foreground",
3768
- children: pendingTools.length
3769
- }, undefined, false, undefined, this),
3770
- " tool",
3771
- pendingTools.length !== 1 ? "s" : "",
3772
- "..."
3773
- ]
3774
- }, undefined, true, undefined, this)
3775
- ]
3776
- }, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV41(Fragment6, {
3777
- children: [
3778
- /* @__PURE__ */ jsxDEV41("div", {
3779
- className: "h-5 w-5 rounded-full bg-amber-500/10 flex items-center justify-center",
3780
- children: /* @__PURE__ */ jsxDEV41(Wrench, {
3781
- className: "h-3 w-3 text-amber-600 dark:text-amber-400"
3782
- }, undefined, false, undefined, this)
3783
- }, undefined, false, undefined, this),
3784
- /* @__PURE__ */ jsxDEV41("span", {
3785
- className: "text-muted-foreground",
3786
- children: [
3787
- "Preparing",
3788
- " ",
3789
- /* @__PURE__ */ jsxDEV41("span", {
3790
- className: "font-medium text-foreground",
3791
- children: pendingTools.length
3792
- }, undefined, false, undefined, this),
3793
- " tool",
3794
- pendingTools.length !== 1 ? "s" : "",
3795
- "..."
3796
- ]
3797
- }, undefined, true, undefined, this)
3798
- ]
3799
- }, undefined, true, undefined, this)
3800
- }, undefined, false, undefined, this)
3801
- }, undefined, false, undefined, this);
3802
- }
3803
-
3804
3742
  // src/ui/composed/agno-chat/error-bar.tsx
3805
3743
  import { useState as useState9, useEffect as useEffect7, useRef as useRef8 } from "react";
3806
- import { jsxDEV as jsxDEV42 } from "react/jsx-dev-runtime";
3744
+ import { jsxDEV as jsxDEV41 } from "react/jsx-dev-runtime";
3807
3745
  function AgnoChatErrorBar({
3808
3746
  className,
3809
3747
  text,
@@ -3843,23 +3781,23 @@ function AgnoChatErrorBar({
3843
3781
  if (children) {
3844
3782
  return typeof children === "function" ? children(rawMessage) : children;
3845
3783
  }
3846
- return /* @__PURE__ */ jsxDEV42("div", {
3784
+ return /* @__PURE__ */ jsxDEV41("div", {
3847
3785
  className: "flex items-center gap-2 max-w-3xl mx-auto",
3848
3786
  children: [
3849
- icon && /* @__PURE__ */ jsxDEV42("span", {
3787
+ icon && /* @__PURE__ */ jsxDEV41("span", {
3850
3788
  className: "shrink-0",
3851
3789
  children: icon
3852
3790
  }, undefined, false, undefined, this),
3853
- /* @__PURE__ */ jsxDEV42("p", {
3791
+ /* @__PURE__ */ jsxDEV41("p", {
3854
3792
  className: "text-sm text-destructive flex-1",
3855
3793
  children: displayMessage
3856
3794
  }, undefined, false, undefined, this),
3857
- dismissible && /* @__PURE__ */ jsxDEV42("button", {
3795
+ dismissible && /* @__PURE__ */ jsxDEV41("button", {
3858
3796
  type: "button",
3859
3797
  onClick: () => setHidden(true),
3860
3798
  className: "shrink-0 text-destructive/60 hover:text-destructive transition-colors",
3861
3799
  "aria-label": "Dismiss error",
3862
- children: /* @__PURE__ */ jsxDEV42("svg", {
3800
+ children: /* @__PURE__ */ jsxDEV41("svg", {
3863
3801
  xmlns: "http://www.w3.org/2000/svg",
3864
3802
  width: "16",
3865
3803
  height: "16",
@@ -3870,10 +3808,10 @@ function AgnoChatErrorBar({
3870
3808
  strokeLinecap: "round",
3871
3809
  strokeLinejoin: "round",
3872
3810
  children: [
3873
- /* @__PURE__ */ jsxDEV42("path", {
3811
+ /* @__PURE__ */ jsxDEV41("path", {
3874
3812
  d: "M18 6 6 18"
3875
3813
  }, undefined, false, undefined, this),
3876
- /* @__PURE__ */ jsxDEV42("path", {
3814
+ /* @__PURE__ */ jsxDEV41("path", {
3877
3815
  d: "m6 6 12 12"
3878
3816
  }, undefined, false, undefined, this)
3879
3817
  ]
@@ -3882,14 +3820,14 @@ function AgnoChatErrorBar({
3882
3820
  ]
3883
3821
  }, undefined, true, undefined, this);
3884
3822
  };
3885
- return /* @__PURE__ */ jsxDEV42("div", {
3823
+ return /* @__PURE__ */ jsxDEV41("div", {
3886
3824
  className: cn("px-4 py-2.5 bg-destructive/5 border-t border-destructive/20", className),
3887
3825
  children: renderContent()
3888
3826
  }, undefined, false, undefined, this);
3889
3827
  }
3890
3828
 
3891
3829
  // src/ui/composed/agno-chat/input.tsx
3892
- import { jsxDEV as jsxDEV43 } from "react/jsx-dev-runtime";
3830
+ import { jsxDEV as jsxDEV42 } from "react/jsx-dev-runtime";
3893
3831
  function AgnoChatInputArea({
3894
3832
  className,
3895
3833
  children,
@@ -3902,11 +3840,11 @@ function AgnoChatInputArea({
3902
3840
  dropZoneProps
3903
3841
  }) {
3904
3842
  const { handleSend, inputDisabled, isStreaming, isPaused, cancelRun, dropZoneContainerRef } = useAgnoChatContext();
3905
- return /* @__PURE__ */ jsxDEV43("div", {
3843
+ return /* @__PURE__ */ jsxDEV42("div", {
3906
3844
  className: cn("border-t border-border bg-background/80 backdrop-blur-sm", className),
3907
- children: /* @__PURE__ */ jsxDEV43("div", {
3845
+ children: /* @__PURE__ */ jsxDEV42("div", {
3908
3846
  className: "mx-auto px-4 py-2",
3909
- children: children ? children({ onSend: handleSend, disabled: inputDisabled, isStreaming, isPaused }) : /* @__PURE__ */ jsxDEV43(AgnoChatInput, {
3847
+ children: children ? children({ onSend: handleSend, disabled: inputDisabled, isStreaming, isPaused }) : /* @__PURE__ */ jsxDEV42(AgnoChatInput, {
3910
3848
  onSend: handleSend,
3911
3849
  disabled: inputDisabled,
3912
3850
  isStreaming,
@@ -3929,7 +3867,6 @@ var AgnoChat = Object.assign(AgnoChatRoot, {
3929
3867
  Messages: AgnoChatMessages,
3930
3868
  EmptyState: AgnoChatEmptyState,
3931
3869
  SuggestedPrompts: AgnoChatSuggestedPrompts,
3932
- ToolStatus: AgnoChatToolStatus,
3933
3870
  ErrorBar: AgnoChatErrorBar,
3934
3871
  Input: AgnoChatInputArea
3935
3872
  });
@@ -4077,7 +4014,6 @@ export {
4077
4014
  ArtifactAction,
4078
4015
  Artifact,
4079
4016
  AgnoMessageItem,
4080
- AgnoChatToolStatus,
4081
4017
  AgnoChatSuggestedPrompts,
4082
4018
  AgnoChatRoot,
4083
4019
  AgnoChatMessages,
@@ -4092,4 +4028,4 @@ export {
4092
4028
  Accordion
4093
4029
  };
4094
4030
 
4095
- //# debugId=1E8D621BCAD3259064756E2164756E21
4031
+ //# debugId=F991C700ECBE5AE664756E2164756E21