@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.d.ts CHANGED
@@ -1144,7 +1144,7 @@ export declare const Toolkits: {
1144
1144
  readonly PRESENTATION: "presentation_toolkit";
1145
1145
  /** PowerPoint presentation creation from templates. */
1146
1146
  readonly POWERPOINT: "powerpoint_deck_toolkit";
1147
- /** Workspace file management (Spaces). */
1147
+ /** Workspace file management (Olympus Drive). */
1148
1148
  readonly DRIVE: "olympus_drive_toolkit";
1149
1149
  /** Python code execution. */
1150
1150
  readonly PYTHON: "python_toolkit";
package/dist/index.js CHANGED
@@ -52511,29 +52511,35 @@ const ComposerQuotePreview = ({ className }) => {
52511
52511
  );
52512
52512
  };
52513
52513
  const ComposerAttachmentPreview = ({ className }) => {
52514
- const { attachments, removeAttachment } = useAttachments();
52515
- if (attachments.length === 0) return null;
52516
- return /* @__PURE__ */ jsx("div", { className: cn("aui-attachment-preview mx-3 mt-2 flex flex-wrap gap-1.5", className), children: attachments.map((asset) => /* @__PURE__ */ jsxs(
52517
- "div",
52518
- {
52519
- className: "flex items-center gap-1.5 rounded-lg border border-border/60 bg-muted/40 px-2.5 py-1.5 text-xs",
52520
- children: [
52521
- /* @__PURE__ */ jsx(Paperclip, { className: "size-3 shrink-0 text-muted-foreground/60" }),
52522
- /* @__PURE__ */ jsx("span", { className: "max-w-[180px] truncate text-foreground/80", children: asset.title }),
52523
- /* @__PURE__ */ jsx(
52524
- "button",
52525
- {
52526
- type: "button",
52527
- onClick: () => removeAttachment(asset.id),
52528
- className: "shrink-0 rounded p-0.5 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",
52529
- "aria-label": `Remove ${asset.title}`,
52530
- children: /* @__PURE__ */ jsx(X, { className: "size-3" })
52531
- }
52532
- )
52533
- ]
52534
- },
52535
- asset.id
52536
- )) });
52514
+ const { attachments, isUploading, removeAttachment } = useAttachments();
52515
+ if (attachments.length === 0 && !isUploading) return null;
52516
+ return /* @__PURE__ */ jsxs("div", { className: cn("aui-attachment-preview mx-3 mt-2 flex flex-wrap gap-1.5", className), children: [
52517
+ attachments.map((asset) => /* @__PURE__ */ jsxs(
52518
+ "div",
52519
+ {
52520
+ className: "flex items-center gap-1.5 rounded-lg border border-border/60 bg-muted/40 px-2.5 py-1.5 text-xs",
52521
+ children: [
52522
+ /* @__PURE__ */ jsx(Paperclip, { className: "size-3 shrink-0 text-muted-foreground/60" }),
52523
+ /* @__PURE__ */ jsx("span", { className: "max-w-[180px] truncate text-foreground/80", children: asset.title }),
52524
+ /* @__PURE__ */ jsx(
52525
+ "button",
52526
+ {
52527
+ type: "button",
52528
+ onClick: () => removeAttachment(asset.id),
52529
+ className: "shrink-0 rounded p-0.5 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",
52530
+ "aria-label": `Remove ${asset.title}`,
52531
+ children: /* @__PURE__ */ jsx(X, { className: "size-3" })
52532
+ }
52533
+ )
52534
+ ]
52535
+ },
52536
+ asset.id
52537
+ )),
52538
+ isUploading ? /* @__PURE__ */ 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: [
52539
+ /* @__PURE__ */ jsx(LoaderCircle, { className: "size-3 shrink-0 animate-spin" }),
52540
+ /* @__PURE__ */ jsx("span", { children: "Uploading..." })
52541
+ ] }) : null
52542
+ ] });
52537
52543
  };
52538
52544
  const ComposerDropZone = ({
52539
52545
  children,
@@ -52642,7 +52648,7 @@ const Toolkits = {
52642
52648
  PRESENTATION: "presentation_toolkit",
52643
52649
  /** PowerPoint presentation creation from templates. */
52644
52650
  POWERPOINT: "powerpoint_deck_toolkit",
52645
- /** Workspace file management (Spaces). */
52651
+ /** Workspace file management (Olympus Drive). */
52646
52652
  DRIVE: "olympus_drive_toolkit",
52647
52653
  /** Python code execution. */
52648
52654
  PYTHON: "python_toolkit",
@@ -52752,7 +52758,7 @@ const TOOLKIT_DISPLAY_INFO = {
52752
52758
  icon: "Presentation"
52753
52759
  },
52754
52760
  [Toolkits.DRIVE]: {
52755
- name: "Drive",
52761
+ name: "Olympus Drive",
52756
52762
  description: "Find and manage workspace files.",
52757
52763
  icon: "Folder"
52758
52764
  },