Skip to content

chore(vue): Remove customPages prop types from UI components#5101

Merged
wobsoriano merged 4 commits into
mainfrom
rob/chore/remove-custom-pages-types
Feb 7, 2025
Merged

chore(vue): Remove customPages prop types from UI components#5101
wobsoriano merged 4 commits into
mainfrom
rob/chore/remove-custom-pages-types

Conversation

@wobsoriano

@wobsoriano wobsoriano commented Feb 7, 2025

Copy link
Copy Markdown
Member

Description

A small PR that removes the customPages type from props of <UserProfile /> and <OrganizationProfile /> and <UserButton />. We already do this at runtime, but this change makes it explicit in the type definitions to avoid confusion.

We use slots to pass custom pages 👍🏼 This is non-breaking.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot

changeset-bot Bot commented Feb 7, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 04c014d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clerk/vue Patch
@clerk/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Feb 7, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ⬜️ Skipped (Inspect) Feb 7, 2025 4:49pm

import { useUserProfileCustomPages } from '../../../utils/useCustomPages';
import { useUserButtonCustomMenuItems } from '../../../utils/useCustomMenuItems';

type Props = Omit<UserButtonProps, 'customMenuItems'>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❓ Why did we not omit customMenuItems now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh good catch, def missed that

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated!

@wobsoriano
wobsoriano enabled auto-merge (squash) February 7, 2025 16:51
@wobsoriano
wobsoriano merged commit 4089ca4 into main Feb 7, 2025
@wobsoriano
wobsoriano deleted the rob/chore/remove-custom-pages-types branch February 7, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants