You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: simplify ComponentsContext by deriving type from defaults
- Replace 300-line hand-written ComponentOverrides type with derived type:
`Partial<(typeof import('./defaultComponents'))['DEFAULT_COMPONENTS']>`
- Remove ~110 type imports from ComponentsContext.tsx (now ~55 lines total)
- Add optional component entries to defaultComponents.ts for components
with no default (MessageText, PollContent, Input, etc.)
- Remove remaining component override props from FileAttachment,
StickyHeader, MessageBubble, MessageMenu
- Adding a new overridable component now only requires editing
defaultComponents.ts — the type is auto-derived
0 commit comments