Skip to content

@statewavedev/chat-react@0.1.0

Choose a tag to compare

@smaramwbc smaramwbc released this 16 Jun 17:44
· 11 commits to main since this release

@statewavedev/chat-react 0.1.0

Initial release. React provider and prebuilt components for Statewave chat.

  • StatewaveChatProvider — context provider with session management, stale-response guard, and abort
  • useStatewaveChat, useChatMessages, useChatLoading, useSendMessage — consumer hooks
  • ChatComposer — textarea + send button with Enter-to-send and disabled states
  • Citations — renders citation list; unsafe URLs (javascript:, data:) rendered as plain spans
  • ContextInspector — collapsible debug panel showing retrieved context bundle
  • MessageItem — message bubble with role, error alerts, and citation delegation
  • MessageThread — scrollable message list with auto-scroll and typing indicator
  • SuggestedQuestions — chip list shown only before first message
  • TypingIndicator — animated loading state
  • safeUrl — XSS-safe URL filter exported for custom rendering