@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.
29 lines (26 loc) • 539 B
TypeScript
export type IChat = {
time: Date;
title: string;
text: string;
img_uri: string;
is_group?: boolean;
chat_name?: string;
chat_img?: string;
chat_id: string;
last_message_author?: string;
last_message_author_img?: string;
last_message_time?: Date;
last_message_text?: string;
counter?: number;
localeTimeString?: string;
_selected?: boolean;
};
export type Component = {
id?: string;
style?: string;
/** Parsed from a JSON attribute when omitted in HTML. */
chats?: IChat[];
};
export type Events = {
select: IChat;
};