feat: add CommandLinkManager to intercept command links

Implement a component that uses event delegation to intercept clicks
on markdown links starting with command prefixes (e.g., >roll, >spark).
It dispatches these as journal stream messages based on the user's
role (Observer, Player, or GM).
This commit is contained in:
2026-07-12 13:48:34 +08:00
parent 736bcf4bb2
commit 182d7ff28d
3 changed files with 227 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ import "./md-yarn-spinner";
export { Article } from "./Article";
export type { ArticleProps } from "./Article";
export { RevealManager } from "./RevealManager";
export { CommandLinkManager } from "./CommandLinkManager";
export { ReactiveStatManager } from "./journal/ReactiveStatManager";
export { MobileSidebar, DesktopSidebar } from "./Sidebar";
export type { SidebarProps } from "./Sidebar";