Create new Material components, redesign the chat UI, add security settings

This commit is contained in:
2025-11-01 14:55:36 +03:00
Unverified
parent 5f49b45eed
commit fc11d06570
40 changed files with 917 additions and 618 deletions
+28 -1
View File
@@ -1,2 +1,29 @@
/// <reference types="vite/client" />
/// <reference types="mdui/jsx.en.d.ts" />
/// <reference types="mdui/jsx.en.d.ts" />
/// <reference types="./core/types.d.ts" />
declare global {
namespace React {
// Augment React synthetic events to provide typed target for ALL HTML elements
interface SyntheticEvent<T = Element, E = Event> {
target: EventTarget & T;
}
}
// Augment DOM event listeners to provide typed target for ALL elements
// This works by augmenting the base Element interface which covers all HTML, SVG, etc.
interface Element {
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: Element, ev: HTMLElementEventMap[K] & { target: Element }) => any,
options?: boolean | AddEventListenerOptions
): void;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: Element, ev: HTMLElementEventMap[K] & { target: Element }) => any,
options?: boolean | EventListenerOptions
): void;
}
}
export {};