fix(widget): bump @deepgram/ui to ^0.1.1 for scoped tailwind preflight#48
Merged
lukeocodes merged 1 commit intomainfrom May 6, 2026
Merged
fix(widget): bump @deepgram/ui to ^0.1.1 for scoped tailwind preflight#48lukeocodes merged 1 commit intomainfrom
lukeocodes merged 1 commit intomainfrom
Conversation
@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)
lukeocodes
pushed a commit
that referenced
this pull request
May 6, 2026
🤖 I have created a release *beep* *boop* --- ## [0.1.4](agents-widget-v0.1.3...agents-widget-v0.1.4) (2026-05-06) ### Bug Fixes * **widget:** bump @deepgram/ui to ^0.1.1 for scoped tailwind preflight ([#48](#48)) ([0584d19](0584d19)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
@deepgram/ui@0.1.1(just published from deepgram/ui#27 + deepgram/ui#30) ships preflight scoped to[data-dg-agent]viatailwindcss-scoped-preflight. Until the widget bumps its dependency, the published UMD oncdn.deepgram.com/widgets/still ships unscoped Tailwind preflight that bleeds into host pages.Symptoms reported in deepgram/deepgram-docs#777: content width collapsed on every non-demo page on the docs site after the widget bundle finished loading. Same regression hits any customer embedding the widget on their own site.
What changed
packages/widget/package.json:@deepgram/ui^0.1.0→^0.1.1bun.lockregeneratedVerification
Rebuilt the widget locally against
@deepgram/ui@0.1.1:@layer base{*,:after,…}rules in widget UMD:where([data-dg-agent], …)scoped rules[data-dg-agent]occurrencesBundle size: 384.30 KB → 387.53 KB (+3.23 KB) from the added scope selectors. Acceptable trade.
Expected after merge
chore(main): release agents-widget 0.1.4.packages/widget/package.jsonto 0.1.4 and tagsagents-widget-v0.1.4.@deepgram/agents-widget@0.1.4to npm.https://cdn.deepgram.com/widgets/v0.1.4/widget.umd.js(immutable, 365-day TTL)https://cdn.deepgram.com/widgets/latest/widget.umd.js(5-min TTL plus invalidation)Refs