UNPKG

claritykit-svelte

Version:

A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility

189 lines 5.58 kB
import { HocuspocusCollaborationProvider } from './HocuspocusProvider'; import type { CollaborativeBlockEditorProps, CollaborationState, UserInfo, HocuspocusConfig, AuthenticationData, StatelessMessage } from './types'; type $$ComponentProps = CollaborativeBlockEditorProps & Partial<HocuspocusConfig>; 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 CollaborativeBlockEditor: $$__sveltets_2_IsomorphicComponent<$$ComponentProps, { 'content-changed': CustomEvent<{ blockId: string; content: string; html: string; json: any; }>; 'block-linked': CustomEvent<{ sourceBlockId: string; targetBlockId: string; }>; 'block-transcluded': CustomEvent<{ sourceBlockId: string; targetBlockId: string; }>; 'semantic-tagged': CustomEvent<{ blockId: string; concepts: string[]; }>; 'collaboration-state-changed': CustomEvent<CollaborationState>; 'user-joined': CustomEvent<{ user: UserInfo; blockId: string; }>; 'user-left': CustomEvent<{ userId: string; blockId: string; }>; 'sync-error': CustomEvent<{ error: Error; blockId: string; }>; initialized: CustomEvent<{ blockId: string; provider: HocuspocusCollaborationProvider; }>; connected: CustomEvent<{ blockId: string; }>; disconnected: CustomEvent<{ blockId: string; }>; synced: CustomEvent<{ blockId: string; }>; 'remote-change': CustomEvent<{ content: string; blockId: string; }>; 'users-changed': CustomEvent<{ users: UserInfo[]; blockId: string; }>; 'cursor-moved': CustomEvent<{ userId: string; position: number; }>; 'selection-changed': CustomEvent<{ userId: string; start: number; end: number; }>; authenticated: CustomEvent<{ blockId: string; data: AuthenticationData; }>; 'authentication-failed': CustomEvent<{ blockId: string; data: any; }>; 'stateless-message': CustomEvent<{ blockId: string; message: StatelessMessage; }>; 'connection-error': CustomEvent<{ blockId: string; error: Error; }>; 'force-synced': CustomEvent<{ blockId: string; }>; 'conflict-detected': CustomEvent<{ blockId: string; conflictInfo: any; resolution: string; }>; 'token-refresh-failed': CustomEvent<{ blockId: string; error: Error; }>; 'user-activity': CustomEvent<{ blockId: string; activity: any; }>; 'document-event': CustomEvent<{ blockId: string; event: any; }>; 'presence-update': CustomEvent<{ blockId: string; presence: any; }>; 'connection-timeout': CustomEvent<{ blockId: string; }>; 'sync-timeout': CustomEvent<{ blockId: string; }>; 'performance-metrics': CustomEvent<{ blockId: string; metrics: any; }>; 'collaborative-undo': CustomEvent<{ blockId: string; userId: string; }>; 'collaborative-redo': CustomEvent<{ blockId: string; userId: string; }>; 'offline-support-enabled': CustomEvent<{ blockId: string; }>; 'offline-changes-loaded': CustomEvent<{ blockId: string; timestamp: number; userId: string; }>; 'offline-data-cleared': CustomEvent<{ blockId: string; }>; } & { [evt: string]: CustomEvent<any>; }, {}, { focus: () => void; getContent: () => any; getJSON: () => any; setContent: (newContent: string) => void; getCollaborationState: () => CollaborationState; getConnectedUsers: () => UserInfo[]; sendStatelessMessage: (payload: any, options?: { priority?: "low" | "normal" | "high"; reliable?: boolean; targetUsers?: string[]; }) => void; sendUserActivity: (activity: { type: "typing" | "idle" | "active" | "away"; data?: any; }) => void; sendDocumentEvent: (event: { type: "edit" | "save" | "export" | "share"; data?: any; }) => void; forceSync: () => void; getIsAuthenticated: () => boolean; getProvider: () => HocuspocusCollaborationProvider | null; getStats: () => import("./types").CollaborationStats | null; getBlockStats: () => any; getConnectionState: () => import("./types").ConnectionState; reconnect: () => void; undoCollaborative: () => boolean; redoCollaborative: () => boolean; getUndoRedoState: () => { canUndo: boolean; canRedo: boolean; }; enableOfflineSupport: () => void; loadOfflineChanges: () => boolean; clearOfflineData: () => void; }, "">; type CollaborativeBlockEditor = InstanceType<typeof CollaborativeBlockEditor>; export default CollaborativeBlockEditor; //# sourceMappingURL=CollaborativeBlockEditor.svelte.d.ts.map