Skip to content

Rename @hooks registry to @shadcnhooks#10036

Merged
shadcn merged 2 commits intomainfrom
copilot/rename-hooks-to-shadcnhooks
Mar 15, 2026
Merged

Rename @hooks registry to @shadcnhooks#10036
shadcn merged 2 commits intomainfrom
copilot/rename-hooks-to-shadcnhooks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 14, 2026

Renames the @hooks third-party registry namespace to @shadcnhooks to avoid conflicts with the generic hooks alias concept used in components.json configuration. Mirrors the same pattern applied to @blocks@blocks-so in #10032.

Changes

  • apps/v4/public/r/registries.json"name": "@hooks""name": "@shadcnhooks"
  • apps/v4/public/r/registries-legacy.json"@hooks" key → "@shadcnhooks"
  • apps/v4/registry/directory.json"name": "@hooks""name": "@shadcnhooks"
Original prompt

This pull request aims to rename the @hooks package to @shadcnhooks throughout the repository. This is similar to PR #10032, where @blocks was renamed to @blocks-so. The changes should ensure that all references, including but not limited to imports, require statements, and documentation, are properly updated. The modifications should be tested to ensure no build or runtime issues occur due to the renaming.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Create a similar pr to this one. In this PR rename @hooks to @shadcnhooks

Assistant: I have initiated a pull request to rename @hooks to @shadcnhooks similar to PR #10032. Let me know if further adjustments are needed!

This pull request was created from Copilot chat.


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ui Ready Ready Preview, Comment Mar 14, 2026 1:00pm

Request Review

Co-authored-by: shadcn <124599+shadcn@users.noreply.github.com>
Copilot AI changed the title [WIP] [10032] Rename @hooks package to @shadcnhooks Rename @hooks registry to @shadcnhooks Mar 14, 2026
Copilot AI requested a review from shadcn March 14, 2026 12:58
@shadcn shadcn marked this pull request as ready for review March 15, 2026 07:06
@shadcn shadcn merged commit 6e476e4 into main Mar 15, 2026
6 checks passed
@shadcn shadcn deleted the copilot/rename-hooks-to-shadcnhooks branch March 15, 2026 07:06
kristentr added a commit to kristentr/ui that referenced this pull request Mar 15, 2026
* feat(registry): added new @shadcnstore registry

* feat(registry): add @nessra-ui registry

* fix(registry): updated @shadcnstore description for @registries.json

* feat(registry): add @nessra-ui to registries.json

* feat: add kapwa to registry

* Add @fluid registry (Fluid Functionalism)

Adds Fluid Functionalism to the registry directory.

- Registry URL: https://fluid-functionalism.vercel.app/r/{name}.json
- Homepage: https://fluid-functionalism.vercel.app
- Open source: https://github.com/mickadesign/fluid-functionalism

Fluid components with proximity hover, spring animations, font-weight
transitions, and animated focus rings. Built on Radix primitives,
Framer Motion, and CVA.

* Add @paletteui entry to directory.json

* fix: separator color in blocks

* docs: preserve base when switching preset codes

* ci: add script to check registry

* fix: mode switcher toggle

* fix: run registry:build and fix directory.json syntax

- Fix missing comma between entries in directory.json
- Fix multiline SVG logo string
- Regenerate registries.json with @paletteui entry

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

* fix: added fountsource, @support ovveride when registry:font install, monorepo init

* feat: init

* fix: animations for sheets and navigation-menu

* fix

* fix

* fix

* fix

* fix

* fix

* chore: changeset

* chore(release): version packages

* feat: add button active state

* feat: track preset code

* fix: cache in resolveRegistryBaseConfig

* chore(release): version packages

* feat(registry): add @shadcnmaps

* feat: add @gammaui registry with homepage, URL, description, and logo

* feat: update handling of init urls

* fix

* chore(release): version packages

* fix: respect detected package manager for monorepo templates

All monorepo templates hardcoded `packageManager: "pnpm"` which
meant running `bunx --bun shadcn@latest init --monorepo` would
still shell out to `pnpm install`, triggering Corepack and crashing
under Bun because `process.mainModule` is readonly there.

This removes the hardcoded pnpm override from every monorepo template
config so `getPackageManager()` can actually detect what the user is
running. The scaffold step now adapts the cloned template on the fly:

- strips the `packageManager` field from package.json (avoids Corepack)
- converts pnpm-workspace.yaml to a `"workspaces"` array in package.json
- removes pnpm-lock.yaml
- rewrites `workspace:*` refs to `"*"` when the detected PM is npm
  (npm doesn't support the workspace: protocol)
- picks the right install flags per PM (`--no-frozen-lockfile` for pnpm,
  nothing extra for bun/npm/yarn)

pnpm behavior is completely unchanged — `adaptWorkspaceConfig` early-
returns when the detected PM is pnpm.

* style: fix prettier formatting in create-template.ts

* update agents-ui registry from livekit.io to livekit.com

* chore: rebase on main

* feat(registry): add @JaLCo registry

* docs: fix headings in changelog

* Add @pacekit-gsap registry information

* fix: revert unintended changes and run registry:build

* tests: add more tests coverage

* chore: changeset

* chore(release): version packages

* chore: small nit in phrasing

* chore: remove deprecated/ directory and related workflow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add @pacekit-gsap to registry directory

* fix: correct homepage url in waves-cn registry entry

* fix: homepage and url order in registries.json

* feat(registry): add @flx

* Rename @blocks registry to @blocks‑s

* Revert "fix: added fountsource, @support ovveride when registry:font install, monorepo init"

This reverts commit ad99fc9.

* Add dependency field to font schema for explicit fontsource package control.

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

* Rename test to clarify non-variable font coverage.

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

* docs: update font examples

* chore: rebuild registry

* feat: update schema

* chore: changeset

* chore(release): version packages (shadcn-ui#10037)

* fix(docs): update tanstack commands (shadcn-ui#10045)

* fix: bundle @antfu/ni to resolve tinyexec missing module error (shadcn-ui#10041)

* fix: bundle @antfu/ni to resolve tinyexec missing module error

Fixes shadcn-ui#10028.

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

* chore: changeset

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore(release): version packages (shadcn-ui#10046)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Rename @hooks registry to @shadcnhooks (shadcn-ui#10036)

* Initial plan

* Rename @hooks registry to @shadcnhooks

Co-authored-by: shadcn <124599+shadcn@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shadcn <124599+shadcn@users.noreply.github.com>

* feat: add namespace validation for registries (shadcn-ui#10033)

* fix(registry): register next form examples (shadcn-ui#10021)

---------

Co-authored-by: monab <monajmakwana@gmail.com>
Co-authored-by: Mehmet Cinar <codewithmehmet@gmail.com>
Co-authored-by: Nicu Listana <niculistana@gmail.com>
Co-authored-by: Micka.design <34682172+mickadesign@users.noreply.github.com>
Co-authored-by: lior-pesoa <lior.pesoa@gmail.com>
Co-authored-by: shadcn <m@shadcn.com>
Co-authored-by: Frank <97429702+tsubasakong@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: kapishdima <kapishdima@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: LGLabGreg <greg@lglab.co.uk>
Co-authored-by: mazyar-kawa02 <mazyar.sl2000@gamil.com>
Co-authored-by: Devin Alexander <devinsonlyemail@gmail.com>
Co-authored-by: Thomas Yuill <thomas.yuill@livekit.io>
Co-authored-by: Ziane-Badreddine <zianebadredddine2004@gmail.com>
Co-authored-by: Justin Levine <20596508+justinlevinedotme@users.noreply.github.com>
Co-authored-by: Denish Navadiya <57515871+withden@users.noreply.github.com>
Co-authored-by: Justin Levine <20596508+jal-co@users.noreply.github.com>
Co-authored-by: withden <denishnavadiya1@gmail.com>
Co-authored-by: felipemenezes098 <felipemenezes.98@outlook.com>
Co-authored-by: Ahmed Zougari <zougarii.ahmed@gmail.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shadcn <124599+shadcn@users.noreply.github.com>
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