Commit Graph

2373 Commits

Author SHA1 Message Date
github-actions[bot] efac598707 chore(release): version packages (#11462)
Co-authored-by: shadcn <m@shadcn.com>
@shadcn/helpers@0.2.0 shadcn@4.17.0
2026-08-12 00:38:09 +04:00
shadcn 401d10b818 feat(helpers): human-in-the-loop mocking for the AI SDK (#11484)
* feat(helpers): add human-in-the-loop mocking

* feat(helpers): adopt useChat message generics and finalize human-in-the-loop

* chore(helpers): tighten changesets

* refactor(registry): use named message type aliases with createChat

* docs(changelog): add helpers human-in-the-loop entry

* docs: add changelog
2026-08-12 00:34:51 +04:00
shadcn dcf56edd57 fix(docs): use render prop instead of asChild in base ui docs (#11478)
* fix(docs): use render prop instead of asChild in base ui docs

The base ui docs were copied from the radix docs without adapting the
code examples to the Base UI API. Replace asChild with render, remove
the radix-specific --radix-popper-anchor-width CSS variable (base
DropdownMenuContent already sizes to --anchor-width), and update
data-[state=open] to data-open.

Closes #9049

* style: code format
2026-08-11 21:28:22 +04:00
Rohit Sharma 37c58947e2 docs(base/data-table): replace asChild with render prop in DropdownMenuTrigger examples (fixes #10934) (#10980) 2026-08-11 20:18:09 +04:00
Vatsal Trivedi 41bbc12cfd feat(registry): add @knock-codes to registry directory (#11122)
Registers the knock.codes open source registry so it's addressable via
the @knock-codes namespace (npx shadcn add @knock-codes/<item>).

Co-authored-by: shadcn <m@shadcn.com>
2026-08-11 12:33:43 +04:00
Gregor Gabrič 43b8fb0f52 add preskok registry (#10854) 2026-08-11 12:26:54 +04:00
Alex Tatu 30e9e2cfe2 chore(directory): update @aicanvas logo and description (#10893) 2026-08-11 11:31:24 +04:00
David Klein 8c1c2bc466 registry: point the @diklein homepage at its components index (#11319)
diklein.com/components lists the registry's items with install commands, so directory visitors land on the components instead of the site's front page.
2026-08-11 11:27:35 +04:00
RMahammad 0488ea72db feat(registry): add @motiq to registry directory (#11220) 2026-08-11 11:27:23 +04:00
Srinath-g639 7f974ecd00 feat(registry): add @snap-cn to the registry directory (#11386) 2026-08-11 11:27:11 +04:00
Miracle Onyenma 75eda6f078 Update homepage and URL for @aevr entry (#11425) 2026-08-11 11:26:43 +04:00
Kacem Mathlouthi fad0661520 feat(registry): add @benday to the registry directory (#11447) 2026-08-11 11:25:35 +04:00
dev55acc-ai 8ce9a27b44 registry: add @motion-menu to directory (#11456) 2026-08-11 11:25:18 +04:00
Matt Wierzbicki 2f3b7a6543 feat(registry): add @initium to registry directory (#11464)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 11:24:59 +04:00
Aniket Pawar 6cbdb5d52a Update logo SVGs to use CSS variables (#10897) 2026-08-11 11:24:28 +04:00
Wongkraiwich Chuenchomphu 03e3d8da20 feat(registry): add @openmirai to the registry directory (#11367)
Co-authored-by: OpenMirai Developers <developers@openmirai.com>
2026-08-11 11:12:23 +04:00
Chánh Đại d14b6e69a9 docs(figma): update shadcncraft description to reflect new features (#11467)
* docs(figma): update shadcncraft description to reflect new features

* docs(figma): update shadcncraft Figma kit URL to point to /figma page
2026-08-10 21:36:18 +04:00
Nicolas Bouvrette deda4df80f feat(shadcn): add SOCKS proxy support (#10453)
* fix(shadcn): replace node-fetch with undici

Removes the transitive node-domexception deprecation warning triggered
on install by node-fetch -> fetch-blob. Uses Node's global fetch with
undici.ProxyAgent as the dispatcher when https_proxy is set, preserving
existing proxy support.

Also declares the implicit Node version requirement (>=20.18.1, matching
undici@7's engines field) now that Node 20 is entering maintenance EOL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: changeset

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(shadcn): expand proxy env-var support via EnvHttpProxyAgent

Switch the registry fetcher from undici.ProxyAgent (single-URI) to
undici.EnvHttpProxyAgent, which honors HTTPS_PROXY, HTTP_PROXY,
NO_PROXY (and lowercase variants). Previously only https_proxy
lowercase was respected.

Extracts the dispatcher selection into createProxyDispatcher in
packages/shadcn/src/registry/proxy.ts, with unit tests covering
all env-var permutations and an integration test that spins up a
local CONNECT-tunneling proxy to verify end-to-end routing and
NO_PROXY bypass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: update changeset

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(shadcn): add SOCKS and PAC proxy support

Extends the registry's proxy capabilities beyond HTTP/HTTPS to cover
the standard proxy mechanisms users encounter:

- SOCKS4/SOCKS5 via ALL_PROXY=socks5://... (curl convention).
  Implementation uses the `socks` package wired into a custom undici
  Agent's `connect` factory, so SOCKS routing flows through the same
  fetch dispatcher pipeline as HTTP/HTTPS.

- PAC files via PAC_URL, with full PROXY/SOCKS/DIRECT directive
  support. PacDispatcher lazily fetches and compiles the PAC script
  using `pac-resolver` (running PAC JavaScript in a QuickJS WASM
  sandbox via `quickjs-wasi`), then resolves and routes per request.

Detection and routing priority is PAC > SOCKS > HTTP, matching the
specificity of each mechanism (PAC can return mixed directives
per request; SOCKS and HTTP are per-process configurations).

Coverage:
- 14 new unit tests (env-var detection, priority, edge cases)
- 7 new integration tests using a hand-rolled SOCKS5 server, a
  CONNECT-tunneling HTTP proxy, and a PAC file server — verifying
  end-to-end routing for each mechanism plus per-host PAC directives.

A local pac-resolver.d.ts stub mirrors the v9 surface we use,
because pac-resolver@9 ships its types only via the `exports` map
which the repo's classic `moduleResolution: node` doesn't read.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: update changeset for SOCKS and PAC support

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(shadcn): tighten proxy integration tests per review

- Replace the dead "proxy-direct" response body in the test proxy's
  request handler with a 502 reply. The request callback path was
  never exercised (undici only sends CONNECT to the proxy), so the
  unreachable JSON body was confusing dead code. Lock the new
  CONNECT-only contract in with an explicit test.

- Tighten the NO_PROXY-non-match assertion from `.toHaveLength(1)` +
  `.toBe("CONNECT")` to `.toEqual([{ url: originHost, method: "CONNECT" }])`,
  matching the parallel HTTP_PROXY test. The looser version would
  miss bugs where the dispatcher CONNECTed to the wrong host (e.g.,
  the proxy's own address instead of the origin's) — the strict
  version catches that bug class.

Both changes per @pomeh's review feedback.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(shadcn): rescope proxy support to SOCKS only

Per review feedback, split the proxy work: this branch now lands SOCKS
support alone and PAC moves to a follow-up PR.

Removes the PacDispatcher, the PAC directive parser, the PAC_URL env
handling and the pac-resolver type stub, along with the pac-resolver and
quickjs-wasi dependencies (the latter being ~3 MB of WASM). The socks
dependency and the entire SOCKS code path are unchanged, as is
fetchWithProxy's cross-origin redirect hardening.

ALL_PROXY remains SOCKS-only: a non-socks scheme falls through to the
explicit HTTP_PROXY / HTTPS_PROXY variables rather than being absorbed.

Changeset bumped from patch to minor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011YT4UiAoMUVeF9xaVm9ufi

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: shadcn <m@shadcn.com>
2026-08-10 15:23:51 +04:00
Koustav Ganguly 3cc09c1a09 feat(registry): add @atroui (#11420)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 09:39:36 +04:00
Terra 5eb130d72d feat(registry): add @blockforge to the registry directory (#11449) 2026-08-10 09:00:04 +04:00
Kevin Van Cott 6261bd89f7 feat: update data table docs to TanStack Table v9 (#11399)
* feat(v4): update data table docs and examples to tanstack table v9

- Migrate all data-table demos, dashboard-01 blocks, and the tasks
  example to the TanStack Table v9 stable API (tableFeatures, useTable,
  createColumnHelper)
- Add a shared data-table-features.ts module to the tasks example
- Rewrite the base/radix/aria data-table.mdx guides for v9 and update
  table.mdx links
- Remove the orphaned components/cards/payments.tsx (the live payments
  card no longer uses TanStack Table)
- Pin the frozen v3 dashboard-01 registry payloads to react-table v8 so
  legacy CLI installs keep working now that v9 is npm latest
- Fix pre-existing docs bugs (base preview styleName, radix frontmatter
  base, aria getFlatHeaders missing .map)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(v4): register built-in filter/sort fns and use FlexRender component

In v9 the built-in filter and sort functions are tree-shaken like
everything else: a column's default filterFn of 'auto' resolves through
the filterFns registry on the features object, so an unregistered
includesString made the demo filter inputs silently no-op. Register
filterFns/sortFns in every table with filter/sort UI and document the
requirement in the data-table guides.

Also replace flexRender() call sites with the v9 FlexRender component:
table.FlexRender where the table instance is in scope, the imported
FlexRender in the dnd-kit blocks whose DraggableRow renders cells
outside it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* clean up comments for best practices

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: shadcn <m@shadcn.com>
2026-08-06 21:09:43 +04:00
shadcn 9846e22ce5 fix: control alignment for questionnaire choices (#11424) shadcn@4.16.2 2026-08-06 15:36:01 +04:00
github-actions[bot] b1c580c637 chore(release): version packages (#11374)
Co-authored-by: shadcn <m@shadcn.com>
@shadcn/react@0.3.0
2026-08-05 23:11:16 +04:00
shadcn 3e54530e31 feat: questionnaire (#11414)
* feat(questionnaire): add core package and tests

* feat(questionnaire): add registry UI, examples, and docs

* chore(questionnaire): prepare release

* fix(questionnaire): align release examples and docs
2026-08-05 23:08:44 +04:00
ozzy 607e8a9717 feat(registry): add interior registry to directory (#11376) 2026-08-04 12:45:18 +04:00
Jay Sharma f0cad1d9f8 Add @23rd into trusted registries (#11377)
* add @23rd into reg..

* verify signing
2026-08-03 18:05:38 +04:00
OwenKephart df664e1bba fix(registry): include titles in SDK search results (#11348) 2026-08-03 15:34:16 +04:00
Ali Bey 8705f2beb4 feat(registry): add @shoogle to the registry directory (#11373)
* feat(registry): add @shoogle to the registry directory

* fix(registry): clarify @shoogle description wording

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 13:15:50 +04:00
github-actions[bot] cb2bcd88d9 chore(release): version packages (#11350)
Co-authored-by: shadcn <m@shadcn.com>
shadcn@4.16.1
2026-07-31 17:57:34 +04:00
shadcn 5ca53ca7c7 feat(shadcn): add dynamic search support for registries (#11352) 2026-07-31 17:50:10 +04:00
findingsimo f120cac2da feat(registry): add @whiskeyjack to the registry directory (#11310)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-31 14:28:01 +04:00
Andrew Barba bfa1b5e9a6 fix(shadcn): create nested output directories in build (#11322)
* fix(shadcn): create nested output directories in build

Registry item names can contain path segments (e.g. "extension/foo").
Both build commands wrote <outputDir>/<name>.json without creating the
implied nested directories, so builds failed with ENOENT on clean
checkouts where the output directory does not already exist. Create the
parent directory before writing each item.

Fixes #11321

* chore: format

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xq2q7jaDcyxyA6YjutStLn

---------

Co-authored-by: shadcn <m@shadcn.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 14:17:44 +04:00
yu5ag a7a07e662e feat(registry): add @liquefy-ui to the registry directory (#11344) 2026-07-31 13:51:38 +04:00
Mojtaba 727b4aabf1 feat(registry): add @1st-pouf (#11345) 2026-07-31 13:51:23 +04:00
BEY AGENCY 705ce59610 feat(registry): add @ai2 to registry directory (#11337) 2026-07-31 04:38:27 +04:00
Vasanthakumar RB 626321a474 feat(registry): add @mediadrop to registry directory (#11341) 2026-07-30 22:12:46 +04:00
Sacha Ichbiah b28e5b4d9e feat(registry): add @retab to the registry directory (#11149)
Adds the @retab namespace (Retab document-processing UI components) to
the registry directory. Registry is open source, publicly hosted, and
flat at https://ui.retab.com/r/{name}.json.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-30 16:05:58 +04:00
Jérémie Nallet efafb0918c feat(registry): add @atelier to the registry directory (#11342)
Adds @atelier to the registry directory.
  
Atelier UI is an open-source registry of WebGL and motion components for React, built on a single shared canvas so many effects can run on one page.

Homepage: https://www.atelier-ui.com
Registry: https://www.atelier-ui.com/r/registry.json
2026-07-30 15:14:43 +04:00
Denish Navadiya ac6f589fa8 Rename package from @pacekit-gsap to @paceui-gsap (#11326) 2026-07-30 09:29:37 +04:00
Jayant Acharya 9540716252 feat(registry): add @kinetic to the registry directory (#11338)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 09:29:11 +04:00
Mateusz Pasek d64c4586bd feat(registry): add @usva to the registry directory (#11334)
* feat(registry): add @usva to the registry directory

* chore: drop the counts from the description
2026-07-30 09:28:11 +04:00
Blinks44 41ac5d05c5 fix(registry): update logo for moduix library (#11332)
* feat(registry): add moduix library

* feat(registry): update logo for moduix library
2026-07-30 09:27:57 +04:00
shadcn 5203f537d1 test(v4): bump next to 16.3 canary for Turbopack memory eviction (#11328)
Evaluating 16.3's dev memory eviction: footprint after browsing 14 docs routes drops 32GB -> 15GB and page nav 3.6-16s -> sub-2s vs 16.2.7. Canary, not for merge until stable.
2026-07-29 16:31:23 +04:00
Evan 687e105572 chore: add @wa-ui to registry directory (#11299) 2026-07-29 16:15:29 +04:00
shadcn 29ea362598 chore(v4): ignore sharded __components__ directories in eslint 2026-07-29 15:31:57 +04:00
Justin Levine 706f596c13 feat(registry): add @neon-ui to registry directory (#11324) 2026-07-29 14:54:10 +04:00
shadcn 767387d428 perf(v4): shard registry component maps per style (#11325)
The generated __components__ maps put every style's dynamic-import edges
(~3,800) into any route that resolves a component, making docs pages
uncompilable in dev. Emit one shard per style plus a lazy getComponent
dispatcher, and fail fast in next.config when generated styles are stale.
2026-07-29 14:11:54 +04:00
David Klein 47c7f92dbc feat(registry): add the @diklein registry to the directory (#11272)
* feat(registry): add @dkproductcard to registry directory

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Update directory.json

Co-authored-by: shadcn <m@shadcn.com>

* registry: consolidate under the @diklein namespace

Collection-level description and homepage for the @diklein entry, and the earlier single-component @dkmediaviewer entry removed: it pointed at the same registry and its item now installs via @diklein/dk-media-viewer. Recreated as one API commit so it carries a verified signature.

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: shadcn <m@shadcn.com>
2026-07-28 19:15:08 +04:00
Rion 3150ac35a6 feat(registry): add @hexui to registry directory (#11305)
* feat(registry): add @hexui to registry directory

* fix(registry): update logo SVG fill color in directory.json

* fix(registry): remove unintended changes
2026-07-28 12:03:24 +04:00
github-actions[bot] 2a2deaac41 chore(release): version packages (#11306)
Co-authored-by: shadcn <m@shadcn.com>
shadcn@4.16.0
2026-07-27 22:31:02 +04:00