@athenaintel/react 0.7.0 → 0.7.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/dist/index.cjs +50 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63898,35 +63898,56 @@ const AssistantMessage = ({ toolUIs }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
63898
63898
|
]
|
|
63899
63899
|
}
|
|
63900
63900
|
);
|
|
63901
|
-
const AssistantActionBar = () =>
|
|
63902
|
-
|
|
63903
|
-
|
|
63904
|
-
|
|
63905
|
-
|
|
63906
|
-
|
|
63907
|
-
|
|
63908
|
-
|
|
63909
|
-
|
|
63910
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
63911
|
-
|
|
63912
|
-
|
|
63913
|
-
|
|
63914
|
-
/* @__PURE__ */ jsxRuntime.
|
|
63915
|
-
|
|
63916
|
-
|
|
63917
|
-
|
|
63918
|
-
|
|
63919
|
-
|
|
63920
|
-
|
|
63921
|
-
|
|
63922
|
-
|
|
63923
|
-
|
|
63924
|
-
|
|
63925
|
-
|
|
63926
|
-
|
|
63927
|
-
|
|
63928
|
-
|
|
63929
|
-
|
|
63901
|
+
const AssistantActionBar = () => {
|
|
63902
|
+
const threadId = useAthenaThreadId();
|
|
63903
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
63904
|
+
ActionBarPrimitiveRoot,
|
|
63905
|
+
{
|
|
63906
|
+
hideWhenRunning: true,
|
|
63907
|
+
autohide: "not-last",
|
|
63908
|
+
className: "aui-assistant-action-bar-root -ml-1 flex gap-1 text-muted-foreground",
|
|
63909
|
+
children: [
|
|
63910
|
+
/* @__PURE__ */ jsxRuntime.jsx(ActionBarPrimitiveCopy, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(TooltipIconButton, { tooltip: "Copy", children: [
|
|
63911
|
+
/* @__PURE__ */ jsxRuntime.jsx(AuiIf, { condition: (s) => s.message.isCopied, children: /* @__PURE__ */ jsxRuntime.jsx(Check, {}) }),
|
|
63912
|
+
/* @__PURE__ */ jsxRuntime.jsx(AuiIf, { condition: (s) => !s.message.isCopied, children: /* @__PURE__ */ jsxRuntime.jsx(Copy, {}) })
|
|
63913
|
+
] }) }),
|
|
63914
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ActionBarMorePrimitiveRoot, { children: [
|
|
63915
|
+
/* @__PURE__ */ jsxRuntime.jsx(ActionBarMorePrimitiveTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipIconButton, { tooltip: "More", className: "data-[state=open]:bg-accent", children: /* @__PURE__ */ jsxRuntime.jsx(Ellipsis, {}) }) }),
|
|
63916
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
63917
|
+
ActionBarMorePrimitiveContent,
|
|
63918
|
+
{
|
|
63919
|
+
side: "bottom",
|
|
63920
|
+
align: "start",
|
|
63921
|
+
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",
|
|
63922
|
+
children: [
|
|
63923
|
+
/* @__PURE__ */ jsxRuntime.jsx(ActionBarPrimitiveExportMarkdown, { asChild: true, children: /* @__PURE__ */ jsxRuntime.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: [
|
|
63924
|
+
/* @__PURE__ */ jsxRuntime.jsx(Download, { className: "size-4" }),
|
|
63925
|
+
"Export as Markdown"
|
|
63926
|
+
] }) }),
|
|
63927
|
+
threadId && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
63928
|
+
ActionBarMorePrimitiveItem,
|
|
63929
|
+
{
|
|
63930
|
+
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",
|
|
63931
|
+
onClick: () => {
|
|
63932
|
+
window.open(
|
|
63933
|
+
`https://app.athenaintel.com/dashboard/spaces?session_id=${threadId}`,
|
|
63934
|
+
"_blank"
|
|
63935
|
+
);
|
|
63936
|
+
},
|
|
63937
|
+
children: [
|
|
63938
|
+
/* @__PURE__ */ jsxRuntime.jsx(ExternalLink, { className: "size-4" }),
|
|
63939
|
+
"Open in Athena"
|
|
63940
|
+
]
|
|
63941
|
+
}
|
|
63942
|
+
)
|
|
63943
|
+
]
|
|
63944
|
+
}
|
|
63945
|
+
)
|
|
63946
|
+
] })
|
|
63947
|
+
]
|
|
63948
|
+
}
|
|
63949
|
+
);
|
|
63950
|
+
};
|
|
63930
63951
|
const UserMessage = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
63931
63952
|
MessagePrimitiveRoot,
|
|
63932
63953
|
{
|