@athenaintel/react 0.10.23 → 0.10.24

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 CHANGED
@@ -52551,29 +52551,35 @@ const ComposerQuotePreview = ({ className }) => {
52551
52551
  );
52552
52552
  };
52553
52553
  const ComposerAttachmentPreview = ({ className }) => {
52554
- const { attachments, removeAttachment } = useAttachments();
52555
- if (attachments.length === 0) return null;
52556
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("aui-attachment-preview mx-3 mt-2 flex flex-wrap gap-1.5", className), children: attachments.map((asset) => /* @__PURE__ */ jsxRuntime.jsxs(
52557
- "div",
52558
- {
52559
- className: "flex items-center gap-1.5 rounded-lg border border-border/60 bg-muted/40 px-2.5 py-1.5 text-xs",
52560
- children: [
52561
- /* @__PURE__ */ jsxRuntime.jsx(Paperclip, { className: "size-3 shrink-0 text-muted-foreground/60" }),
52562
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-w-[180px] truncate text-foreground/80", children: asset.title }),
52563
- /* @__PURE__ */ jsxRuntime.jsx(
52564
- "button",
52565
- {
52566
- type: "button",
52567
- onClick: () => removeAttachment(asset.id),
52568
- className: "shrink-0 rounded p-0.5 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",
52569
- "aria-label": `Remove ${asset.title}`,
52570
- children: /* @__PURE__ */ jsxRuntime.jsx(X, { className: "size-3" })
52571
- }
52572
- )
52573
- ]
52574
- },
52575
- asset.id
52576
- )) });
52554
+ const { attachments, isUploading, removeAttachment } = useAttachments();
52555
+ if (attachments.length === 0 && !isUploading) return null;
52556
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("aui-attachment-preview mx-3 mt-2 flex flex-wrap gap-1.5", className), children: [
52557
+ attachments.map((asset) => /* @__PURE__ */ jsxRuntime.jsxs(
52558
+ "div",
52559
+ {
52560
+ className: "flex items-center gap-1.5 rounded-lg border border-border/60 bg-muted/40 px-2.5 py-1.5 text-xs",
52561
+ children: [
52562
+ /* @__PURE__ */ jsxRuntime.jsx(Paperclip, { className: "size-3 shrink-0 text-muted-foreground/60" }),
52563
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-w-[180px] truncate text-foreground/80", children: asset.title }),
52564
+ /* @__PURE__ */ jsxRuntime.jsx(
52565
+ "button",
52566
+ {
52567
+ type: "button",
52568
+ onClick: () => removeAttachment(asset.id),
52569
+ className: "shrink-0 rounded p-0.5 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",
52570
+ "aria-label": `Remove ${asset.title}`,
52571
+ children: /* @__PURE__ */ jsxRuntime.jsx(X, { className: "size-3" })
52572
+ }
52573
+ )
52574
+ ]
52575
+ },
52576
+ asset.id
52577
+ )),
52578
+ isUploading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 rounded-lg border border-border/60 bg-muted/40 px-2.5 py-1.5 text-xs text-muted-foreground", children: [
52579
+ /* @__PURE__ */ jsxRuntime.jsx(LoaderCircle, { className: "size-3 shrink-0 animate-spin" }),
52580
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Uploading..." })
52581
+ ] }) : null
52582
+ ] });
52577
52583
  };
52578
52584
  const ComposerDropZone = ({
52579
52585
  children,
@@ -52682,7 +52688,7 @@ const Toolkits = {
52682
52688
  PRESENTATION: "presentation_toolkit",
52683
52689
  /** PowerPoint presentation creation from templates. */
52684
52690
  POWERPOINT: "powerpoint_deck_toolkit",
52685
- /** Workspace file management (Spaces). */
52691
+ /** Workspace file management (Olympus Drive). */
52686
52692
  DRIVE: "olympus_drive_toolkit",
52687
52693
  /** Python code execution. */
52688
52694
  PYTHON: "python_toolkit",
@@ -52792,7 +52798,7 @@ const TOOLKIT_DISPLAY_INFO = {
52792
52798
  icon: "Presentation"
52793
52799
  },
52794
52800
  [Toolkits.DRIVE]: {
52795
- name: "Drive",
52801
+ name: "Olympus Drive",
52796
52802
  description: "Find and manage workspace files.",
52797
52803
  icon: "Folder"
52798
52804
  },