Add a suite of dialogs and header components to manage journal sessions, including: - ConnectDialog for joining sessions with name and role selection - CreateSessionDialog for starting new sessions - InviteDialog for generating and copying player invite links - SessionDropdown for switching between sessions (GM only) - JournalHeader for displaying connection status and user info
54 lines
1.5 KiB
TypeScript
54 lines
1.5 KiB
TypeScript
/**
|
|
* Journal module — barrel export
|
|
*/
|
|
|
|
// Trigger message type registration
|
|
import "./types";
|
|
|
|
export {
|
|
registerMessageType,
|
|
getMessageType,
|
|
registeredTypes,
|
|
validatePayload,
|
|
canEmit,
|
|
} from "./registry";
|
|
export type { MessageTypeDef, StreamMessage } from "./registry";
|
|
export {
|
|
connectStream,
|
|
disconnectStream,
|
|
hydrateFromServer,
|
|
sendMessage,
|
|
revertLatest,
|
|
canRevert,
|
|
visibleMessages,
|
|
useJournalStream,
|
|
journalStreamState,
|
|
createSession,
|
|
deleteSession,
|
|
sessions,
|
|
setMyName,
|
|
} from "../stores/journalStream";
|
|
export type {
|
|
JournalStreamState,
|
|
SessionMeta,
|
|
SessionManifest,
|
|
} from "../stores/journalStream";
|
|
|
|
// UI components
|
|
export { JournalPanel } from "./JournalPanel";
|
|
export type { JournalPanelProps } from "./JournalPanel";
|
|
export { JournalHeader } from "./JournalHeader";
|
|
export { ConnectDialog } from "./ConnectDialog";
|
|
export { InviteDialog } from "./InviteDialog";
|
|
export { SessionDropdown } from "./SessionDropdown";
|
|
export { CreateSessionDialog } from "./CreateSessionDialog";
|
|
export { ConnectionBar } from "./ConnectionBar";
|
|
export { StreamView } from "./StreamView";
|
|
export { StreamMessageCard } from "./StreamMessage";
|
|
export { ComposePanel } from "./ComposePanel";
|
|
export { JournalInput } from "./JournalInput";
|
|
export { DynamicForm } from "./DynamicForm";
|
|
export { useJournalCompletions, invalidateCompletions } from "./completions";
|
|
export { JournalContext, useJournalContext } from "./JournalContext";
|
|
export type { JournalContextValue } from "./JournalContext";
|