@smartfront/ui
v0.2.2
Published
Smartfront ui operations SDK
Readme
@smartfront/ui
Framework-independent chat styles, design tokens, browser style injection and modal focus helpers. The framework adapters inject styles automatically on browser mount.
import '@smartfront/ui/styles.css'; // preloaded styles for SSR or your bundlerOverride --sf-accent, --sf-bg, --sf-surface, --sf-text, --sf-muted, --sf-border and --sf-radius on .sf-chat. Native adapters support automatic/light/dark themes and inline/fixed chat positions. injectStyles, focusModal and trapModalFocus are available for custom renderers. Imports are SSR-safe.
Workspace build/test: npm run build -w @smartfront/ui, npm run test -w @smartfront/ui.
buildDebugRound converts backend diagnostic rounds into framework-independent facts, probability bars and copyable sections. Vue and Angular render this model with native components. DebugTarget, DebugPanel, DebugSection and formatDebugValue are exported for custom inspectors.
