From f4c83a17c0860501f87ff4c81caa7ea28fdb6e10 Mon Sep 17 00:00:00 2001 From: lukeocodes Date: Wed, 6 May 2026 17:16:53 +0100 Subject: [PATCH] fix(widget): bump @deepgram/ui to ^0.1.1 for scoped tailwind preflight @deepgram/ui@0.1.1 (deepgram/ui#27, deepgram/ui#30) ships preflight scoped to [data-dg-agent] via tailwindcss-scoped-preflight. Bumping the widget's @deepgram/ui dep brings the scoping into the published widget UMD bundle and the CDN copy at cdn.deepgram.com/widgets/. Verified locally by rebuilding the widget against 0.1.1: before (against 0.1.0): 0 :where([data-dg-agent]) rules in bundle after (against 0.1.1): 76 :where([data-dg-agent]) rules in bundle Bundle size grew 384.30 KB -> 387.53 KB (+3.23 KB) from the added scope selectors. Customer impact: any host page embedding the widget UMD no longer has its box model, list styling, heading margins, or button appearance overridden by Tailwind preflight. Widget components keep working because the scoped preflight still applies inside [data-dg-agent]. Refs: - deepgram/ui#27 (the fix itself) - deepgram/ui#30 (release-please unpin to actually publish 0.1.1) - deepgram/dx-stack#4 (gotchas + recipe doc) --- bun.lock | 8 ++++++-- packages/widget/package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index bb995ce..49d630a 100644 --- a/bun.lock +++ b/bun.lock @@ -40,11 +40,11 @@ }, "packages/widget": { "name": "@deepgram/agents-widget", - "version": "0.1.2", + "version": "0.1.3", "dependencies": { "@deepgram/agents": "^0.1.1", "@deepgram/react": "^0.1.0", - "@deepgram/ui": "^0.1.0", + "@deepgram/ui": "^0.1.1", "preact": "10.29.1", "sugar-high": "1.1.0", }, @@ -620,6 +620,8 @@ "tailwindcss": ["tailwindcss@4.2.4", "", {}, "sha512-HhKppgO81FQof5m6TEnuBWCZGgfRAWbaeOaGT00KOy/Pf/j6oUihdvBpA7ltCeAvZpFhW3j0PTclkxsd4IXYDA=="], + "tailwindcss-scoped-preflight": ["tailwindcss-scoped-preflight@4.0.6", "", { "peerDependencies": { "postcss": "^8", "tailwindcss": "^4" } }, "sha512-pG2HSG+S6DAF8+W07KOC/Qf+jnE9YgWytdUWifIpZ7g6uUUpOenhAuck9DwxKLTY2do/3htTHqBgHDVIe8mMqQ=="], + "tapable": ["tapable@2.3.3", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="], "terser": ["terser@5.46.2", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": { "terser": "bin/terser" } }, "sha512-uxfo9fPcSgLDYob/w1FuL0c99MWiJDnv+5qXSQc5+Ki5NjVNsYi66INnMFBjf6uFz6OnX12piJQPF4IpjJTNTw=="], @@ -658,6 +660,8 @@ "ws": ["ws@8.20.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA=="], + "@deepgram/agents-widget/@deepgram/ui": ["@deepgram/ui@0.1.1", "", { "dependencies": { "@deepgram/agents": "^0.1.1", "@deepgram/react": "^0.1.0", "@radix-ui/react-scroll-area": "1.2.10", "@radix-ui/react-select": "2.2.6", "@radix-ui/react-slot": "1.2.4", "@radix-ui/react-toggle": "1.1.10", "class-variance-authority": "0.7.1", "clsx": "2.1.1", "lucide-react": "1.11.0", "tailwind-merge": "3.5.0", "tailwindcss-scoped-preflight": "^4.0.6" }, "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" } }, "sha512-z4MmQJZhwDKzLPeW++Br59NedFffGHhrcGICDpUSDgf+ToyLsrKqdbXqehB5U7W2fdKxa97rd+8Cd2e+5TpmBw=="], + "@microsoft/api-extractor/typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], "@radix-ui/react-collection/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], diff --git a/packages/widget/package.json b/packages/widget/package.json index 24e9ea0..4d7aa6c 100644 --- a/packages/widget/package.json +++ b/packages/widget/package.json @@ -46,7 +46,7 @@ "dependencies": { "@deepgram/agents": "^0.1.1", "@deepgram/react": "^0.1.0", - "@deepgram/ui": "^0.1.0", + "@deepgram/ui": "^0.1.1", "preact": "10.29.1", "sugar-high": "1.1.0" },