chore: bump toolchain & fix lint

This commit is contained in:
DarkSky
2026-05-24 06:47:17 +08:00
parent adfa51a372
commit 2aa56cbccd
39 changed files with 151 additions and 130 deletions
@@ -428,13 +428,8 @@ export class AIChatComposer extends SignalWatcher(
};
private readonly addSelectedContextChip = async () => {
const {
attachments = [],
snapshot,
combinedElementsMarkdown,
docs = [],
html,
} = this.chatContextValue;
const { attachments, snapshot, combinedElementsMarkdown, docs, html } =
this.chatContextValue;
await this.removeSelectedContextChip();
const chip: SelectedContextChip = {
uuid: uuidv4(),
@@ -23,7 +23,7 @@ export interface AIPanelErrorConfig {
}
export interface AIPanelGeneratingConfig {
generatingIcon: TemplateResult<1>;
generatingIcon?: TemplateResult<1>;
height?: number;
stages?: string[];
}
@@ -67,11 +67,14 @@ interface ErrorBaseProps {
buttons?: ReactElement[];
}
const DEFAULT_ICON = <FileIcon />;
const EMPTY_BUTTONS: ReactElement[] = [];
const ErrorBase = ({
title,
subtitle,
icon = <FileIcon />,
buttons = [],
icon = DEFAULT_ICON,
buttons = EMPTY_BUTTONS,
}: ErrorBaseProps) => {
return (
<div className={clsx([styles.viewer, styles.error])}>