@htmlbricks/hb-bundle
Version:
Single IIFE loader for all HTML Bricks hb-* web components from the jsDelivr CDN, with optional Subresource Integrity; includes agent/LLM docs and theme CSS variables.
35 lines (32 loc) • 583 B
TypeScript
/** Staged file row emitted on `sendMessage` (internal shape from the composer). */
export type MessageSendFileItem = {
id: string;
name: string;
mimetype: string;
fileSize: number;
content: File;
objectUrl?: string;
};
export type Component = {
id?: string;
style?: string;
text?: string;
expandable?: boolean;
tags?: {
label?: string;
icon?: string;
id: string;
color?: string;
}[];
files?: {
mode: "single" | "multiple";
};
};
export type Events = {
sendMessage: {
text?: string;
id: string;
tags: string[];
files: MessageSendFileItem[];
};
};