Skip to content

πŸ¦‹ New version release#20

Merged
brentrager merged 1 commit into
mainfrom
changeset-release/main
Jul 2, 2026
Merged

πŸ¦‹ New version release#20
brentrager merged 1 commit into
mainfrom
changeset-release/main

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@smooai/chat-widget@0.10.0

Minor Changes

  • a98d7a1: Full-page header: square Smooth icon default + customizable logoUrl.

    New default icon. The full-page header avatar previously rendered the full "smooth" wordmark (a wide 550Γ—135 SVG) crammed into the square tile, so it overflowed and looked broken β€” and it stamped Smoo branding onto customers' pages. It now renders the square Smooth icon (the stylized th glyph, assets/smooth-icon.svg, 150Γ—150) which sits cleanly contained and centered in the tile.

    New logoUrl config key. Host pages can now brand the full-page header with their own logo:

    mountFullPageChat({
      endpoint: "wss://ai.smoo.ai/ws",
      agentId: "…",
      logoUrl: "https://cdn.acme.com/logo.svg",
    });
    // or declaratively:
    // <smooth-agent-chat mode="fullpage" logo-url="https://cdn.acme.com/logo.svg" …></smooth-agent-chat>

    When set, the header renders <img class="logo-img"> sized to contain within the tile; otherwise it falls back to the Smooth icon. Security: logoUrl is validated to absolute http(s) only (via the existing safeHttpUrl guard) β€” javascript:/data:/relative URLs are dropped β€” and escaped into the src attribute, so a hostile config can't inject script.

@brentrager brentrager merged commit f07ae31 into main Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant