@athenaintel/react 0.7.0 → 0.7.2

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/index.js CHANGED
@@ -63880,35 +63880,56 @@ const AssistantMessage = ({ toolUIs }) => /* @__PURE__ */ jsxs(
63880
63880
  ]
63881
63881
  }
63882
63882
  );
63883
- const AssistantActionBar = () => /* @__PURE__ */ jsxs(
63884
- ActionBarPrimitiveRoot,
63885
- {
63886
- hideWhenRunning: true,
63887
- autohide: "not-last",
63888
- className: "aui-assistant-action-bar-root -ml-1 flex gap-1 text-muted-foreground",
63889
- children: [
63890
- /* @__PURE__ */ jsx(ActionBarPrimitiveCopy, { asChild: true, children: /* @__PURE__ */ jsxs(TooltipIconButton, { tooltip: "Copy", children: [
63891
- /* @__PURE__ */ jsx(AuiIf, { condition: (s) => s.message.isCopied, children: /* @__PURE__ */ jsx(Check, {}) }),
63892
- /* @__PURE__ */ jsx(AuiIf, { condition: (s) => !s.message.isCopied, children: /* @__PURE__ */ jsx(Copy, {}) })
63893
- ] }) }),
63894
- /* @__PURE__ */ jsxs(ActionBarMorePrimitiveRoot, { children: [
63895
- /* @__PURE__ */ jsx(ActionBarMorePrimitiveTrigger, { asChild: true, children: /* @__PURE__ */ jsx(TooltipIconButton, { tooltip: "More", className: "data-[state=open]:bg-accent", children: /* @__PURE__ */ jsx(Ellipsis, {}) }) }),
63896
- /* @__PURE__ */ jsx(
63897
- ActionBarMorePrimitiveContent,
63898
- {
63899
- side: "bottom",
63900
- align: "start",
63901
- className: "aui-action-bar-more-content z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
63902
- children: /* @__PURE__ */ jsx(ActionBarPrimitiveExportMarkdown, { asChild: true, children: /* @__PURE__ */ jsxs(ActionBarMorePrimitiveItem, { className: "aui-action-bar-more-item flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", children: [
63903
- /* @__PURE__ */ jsx(Download, { className: "size-4" }),
63904
- "Export as Markdown"
63905
- ] }) })
63906
- }
63907
- )
63908
- ] })
63909
- ]
63910
- }
63911
- );
63883
+ const AssistantActionBar = () => {
63884
+ const threadId = useAthenaThreadId();
63885
+ return /* @__PURE__ */ jsxs(
63886
+ ActionBarPrimitiveRoot,
63887
+ {
63888
+ hideWhenRunning: true,
63889
+ autohide: "not-last",
63890
+ className: "aui-assistant-action-bar-root -ml-1 flex gap-1 text-muted-foreground",
63891
+ children: [
63892
+ /* @__PURE__ */ jsx(ActionBarPrimitiveCopy, { asChild: true, children: /* @__PURE__ */ jsxs(TooltipIconButton, { tooltip: "Copy", children: [
63893
+ /* @__PURE__ */ jsx(AuiIf, { condition: (s) => s.message.isCopied, children: /* @__PURE__ */ jsx(Check, {}) }),
63894
+ /* @__PURE__ */ jsx(AuiIf, { condition: (s) => !s.message.isCopied, children: /* @__PURE__ */ jsx(Copy, {}) })
63895
+ ] }) }),
63896
+ /* @__PURE__ */ jsxs(ActionBarMorePrimitiveRoot, { children: [
63897
+ /* @__PURE__ */ jsx(ActionBarMorePrimitiveTrigger, { asChild: true, children: /* @__PURE__ */ jsx(TooltipIconButton, { tooltip: "More", className: "data-[state=open]:bg-accent", children: /* @__PURE__ */ jsx(Ellipsis, {}) }) }),
63898
+ /* @__PURE__ */ jsxs(
63899
+ ActionBarMorePrimitiveContent,
63900
+ {
63901
+ side: "bottom",
63902
+ align: "start",
63903
+ className: "aui-action-bar-more-content z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
63904
+ children: [
63905
+ /* @__PURE__ */ jsx(ActionBarPrimitiveExportMarkdown, { asChild: true, children: /* @__PURE__ */ jsxs(ActionBarMorePrimitiveItem, { className: "aui-action-bar-more-item flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", children: [
63906
+ /* @__PURE__ */ jsx(Download, { className: "size-4" }),
63907
+ "Export as Markdown"
63908
+ ] }) }),
63909
+ threadId && /* @__PURE__ */ jsxs(
63910
+ ActionBarMorePrimitiveItem,
63911
+ {
63912
+ className: "aui-action-bar-more-item flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
63913
+ onClick: () => {
63914
+ window.open(
63915
+ `https://app.athenaintel.com/dashboard/spaces?session_id=${threadId}`,
63916
+ "_blank"
63917
+ );
63918
+ },
63919
+ children: [
63920
+ /* @__PURE__ */ jsx(ExternalLink, { className: "size-4" }),
63921
+ "Open in Athena"
63922
+ ]
63923
+ }
63924
+ )
63925
+ ]
63926
+ }
63927
+ )
63928
+ ] })
63929
+ ]
63930
+ }
63931
+ );
63932
+ };
63912
63933
  const UserMessage = () => /* @__PURE__ */ jsx(
63913
63934
  MessagePrimitiveRoot,
63914
63935
  {