Skip to content

v0.8.0

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 04 Jul 01:37
· 9 commits to main since this release

Fixed

  • React camelCase props were undefined under SSR (Next.js). The component now picks up props assigned during hydration: the CloudTrain client is built lazily (keyed on apiKey/baseUrl), the active theme is derived from the theme prop, and agent metadata fetching reacts to a late-arriving apiKey.
  • The generated server wrapper now hydrates with the real React components (clientModule pointed at a module that didn't export them).

Added

  • @cloudtrain/chatbot-react/next entry point for Next.js server-side rendering — renders the chatbot to a Declarative Shadow DOM with props serialized into the server HTML:
    import { CloudtrainChatbot } from "@cloudtrain/chatbot-react/next";
  • Exports map for @cloudtrain/chatbot-react.

Docs

  • React README now documents camelCase props (the kebab-case guidance was a workaround for the SSR bug) and Next.js usage.