Skip to content

feat(core): Select and Link components for json-render - #508

Merged
antfu merged 1 commit into
vitejs:mainfrom
dvcolomban:feat/json-render-select-link
Aug 4, 2026
Merged

feat(core): Select and Link components for json-render#508
antfu merged 1 commit into
vitejs:mainfrom
dvcolomban:feat/json-render-select-link

Conversation

@dvcolomban

@dvcolomban dvcolomban commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Select component (popover listbox built on the existing FloatingPopover, with optional substring search) and a Link component (with an http/https/mailto scheme allowlist, since specs can be streamed/model-generated and the client can run embedded in a host page).
  • Implements TextInput's type and loading props — already documented and in the upstream base-catalog schema, but not wired up.
  • Extends FloatingPopover with panelClass, ignore (so a toggle trigger doesn't immediately reopen its own popover), ancestor-scroll repositioning, and a fix for a positional wobble on the first open of a wide, unmeasured panel.

Screenshots

image image

Adds a popover-based Select (built on FloatingPopover, with optional
substring search) and a Link component with a scheme allowlist
(http/https/mailto) since specs can be streamed/model-generated and
the client can run embedded in a host page.

Also implements TextInput's `type` and `loading` props, which were
already documented and in the upstream base-catalog schema but not
wired up. FloatingPopover gains `panelClass`, `ignore` (so a toggle
trigger doesn't immediately reopen its own popover), and
ancestor-scroll repositioning, plus a fix so the very first open of a
wide, unmeasured panel doesn't animate a positional wobble between the
centered-transform guess and the corrected absolute position.
@pkg-pr-new

pkg-pr-new Bot commented Aug 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@508

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@508

@vitejs/devtools-oxc

npm i https://pkg.pr.new/@vitejs/devtools-oxc@508

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@508

@vitejs/devtools-vite

npm i https://pkg.pr.new/@vitejs/devtools-vite@508

@vitejs/devtools-vitest

npm i https://pkg.pr.new/@vitejs/devtools-vitest@508

commit: 3a1d000

@antfu
antfu merged commit c21588a into vitejs:main Aug 4, 2026
7 checks passed
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.

2 participants