claritykit-svelte
Version:
A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility
50 lines • 1.72 kB
TypeScript
import type { UserInfo } from '../../knowledge/CollaborativeBlockEditor/types.js';
interface UserPresenceInfo extends UserInfo {
status: 'online' | 'away' | 'busy' | 'offline';
lastSeen?: string;
isTyping?: boolean;
currentActivity?: string;
role?: string;
permissions?: string[];
}
interface UserPresenceProps {
user: UserPresenceInfo;
showAvatar?: boolean;
showName?: boolean;
showStatus?: boolean;
showRole?: boolean;
showActivity?: boolean;
showLastSeen?: boolean;
compact?: boolean;
interactive?: boolean;
class?: string;
onUserClick?: (user: UserPresenceInfo) => void;
onStatusChange?: (userId: string, status: string) => void;
}
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: Props & {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const UserPresence: $$__sveltets_2_IsomorphicComponent<UserPresenceProps, {
'user-clicked': CustomEvent<{
user: UserPresenceInfo;
}>;
'status-changed': CustomEvent<{
userId: string;
status: string;
}>;
} & {
[evt: string]: CustomEvent<any>;
}, {}, {}, "">;
type UserPresence = InstanceType<typeof UserPresence>;
export default UserPresence;
//# sourceMappingURL=UserPresence.svelte.d.ts.map