Skip to content

docs: flatten content script UI options - #2618

Merged
aklinker1 merged 3 commits into
wxt-dev:mainfrom
dvd233:codex/contrib-wxt-1452-inline-ui-options
Oct 4, 2026
Merged

aklinker1 merged 3 commits into
wxt-dev:mainfrom
dvd233:codex/contrib-wxt-1452-inline-ui-options

Conversation

@dvd233

@dvd233 dvd233 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Overview

The factory-specific options pages currently render as ContentScriptUiOptions<T> & object, so shared options—especially append—are still hidden behind another API page after #2497.

  • Render the integrated, iframe, and shadow-root option aliases as TypeDoc interfaces so shared and factory-specific properties appear together.
  • Keep every positioning key present on each discriminated-union branch with optional never fields. This lets TypeDoc retain zIndex and alignment without accepting unsupported position/option combinations.
  • Inherit the shared options summary and correct the alignment docs to reference position: "overlay".
  • Redirect the previous type-alias URLs to the new interface pages so existing links keep working.

The generated pages now expose all 8 integrated, 9 iframe, and 12 shadow-root options directly. TypeDoc 0.25 emits its generic union-to-interface warning for these aliases, so I also verified the generated Markdown and rendered HTML to ensure no properties are discarded.

Manual Testing

  • bun run check
  • bun run docs:build
  • Type-checked valid inline/overlay/modal configurations and invalid inline zIndex / modal alignment configurations.
  • Asserted the complete property set in all three generated Markdown pages and their rendered HTML output.
  • Verified the legacy URL redirects are included in the built site.

Related Issue

Closes #1452

@netlify

netlify Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 32d1f03
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6ac1e3c3e92ca40008cc0ed1
😎 Deploy Preview https://deploy-preview-2618--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Sep 8, 2026

@aklinker1 aklinker1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, perfect, the docs are readable now!

}

/**
* {@inheritDoc wxt/utils/content-script-ui/types!ContentScriptUiOptions}

@aklinker1 aklinker1 Oct 4, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 this works? Nice

@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6c8a76c9-9788-4e30-8304-b51349ccb84e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@aklinker1
aklinker1 enabled auto-merge (squash) October 4, 2026 05:27
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.61%. Comparing base (715b36d) to head (32d1f03).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2618      +/-   ##
==========================================
- Coverage   79.83%   79.61%   -0.22%     
==========================================
  Files         138      138              
  Lines        4102     4102              
  Branches      943      943              
==========================================
- Hits         3275     3266       -9     
- Misses        730      739       +9     
  Partials       97       97              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Oct 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2618

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2618

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2618

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2618

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2618

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2618

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2618

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2618

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2618

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2618

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2618

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2618

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2618

wxt

npm i https://pkg.pr.new/wxt@2618

commit: 32d1f03

@aklinker1
aklinker1 merged commit 53910b2 into wxt-dev:main Oct 4, 2026
19 checks passed
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Content script UI options API reference is hard to follow

2 participants