From 76d61cd0f4356bcdd1c3e1b0cd040531d27144fb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 01:34:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=8B=20New=20version=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/fullpage-logo-icon-and-logo-url.md | 17 -------------- CHANGELOG.md | 22 +++++++++++++++++++ package.json | 2 +- 3 files changed, 23 insertions(+), 18 deletions(-) delete mode 100644 .changeset/fullpage-logo-icon-and-logo-url.md diff --git a/.changeset/fullpage-logo-icon-and-logo-url.md b/.changeset/fullpage-logo-icon-and-logo-url.md deleted file mode 100644 index 8993700..0000000 --- a/.changeset/fullpage-logo-icon-and-logo-url.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@smooai/chat-widget': minor ---- - -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 `contain`ed and centered in the tile. - -**New `logoUrl` config key.** Host pages can now brand the full-page header with their own logo: - -```js -mountFullPageChat({ endpoint: 'wss://ai.smoo.ai/ws', agentId: '…', logoUrl: 'https://cdn.acme.com/logo.svg' }); -// or declaratively: -// -``` - -When set, the header renders `` 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. diff --git a/CHANGELOG.md b/CHANGELOG.md index d6afac9..84550db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 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 `contain`ed and centered in the tile. + + **New `logoUrl` config key.** Host pages can now brand the full-page header with their own logo: + + ```js + mountFullPageChat({ + endpoint: "wss://ai.smoo.ai/ws", + agentId: "…", + logoUrl: "https://cdn.acme.com/logo.svg", + }); + // or declaratively: + // + ``` + + When set, the header renders `` 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. + ## 0.9.0 ### Minor Changes diff --git a/package.json b/package.json index e8e8e0b..00c8a61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/chat-widget", - "version": "0.9.0", + "version": "0.10.0", "description": "Embeddable AI chat as a framework-light web component — the Aurora Glass design, streaming replies, grounded sources, and per-brand theming. Speaks the smooth-operator WebSocket protocol.", "license": "MIT", "author": "SmooAI",