mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 01:00:24 +00:00
Add image artifact support with proper binary downloads
- Add ImageArtifact component for displaying images (.png, .jpg, .jpeg, .gif, .webp, .bmp, .ico) - Images stored as base64, displayed via data URLs - Download button properly decodes base64 to Uint8Array for valid binary downloads - Fix Lit ChildPart error: use CSS rotation instead of innerHTML manipulation in collapsible headers Changes: - web-ui/src/tools/artifacts/ImageArtifact.ts: New image artifact component - web-ui/src/tools/artifacts/artifacts.ts: Add "image" file type support - web-ui/src/tools/renderer-registry.ts: Fix collapsible chevron to use CSS rotation - web-ui/src/index.ts: Export ImageArtifact
This commit is contained in:
parent
9687551324
commit
d7d79bd533
3 changed files with 131 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ export { ArtifactPill } from "./tools/artifacts/ArtifactPill.js";
|
|||
export { type Artifact, ArtifactsPanel, type ArtifactsParams } from "./tools/artifacts/artifacts.js";
|
||||
export { ArtifactsToolRenderer } from "./tools/artifacts/artifacts-tool-renderer.js";
|
||||
export { HtmlArtifact } from "./tools/artifacts/HtmlArtifact.js";
|
||||
export { ImageArtifact } from "./tools/artifacts/ImageArtifact.js";
|
||||
export { MarkdownArtifact } from "./tools/artifacts/MarkdownArtifact.js";
|
||||
export { SvgArtifact } from "./tools/artifacts/SvgArtifact.js";
|
||||
export { TextArtifact } from "./tools/artifacts/TextArtifact.js";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue