Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose useSlots from drafts #3609

Merged
merged 5 commits into from
Aug 10, 2023
Merged

Expose useSlots from drafts #3609

merged 5 commits into from
Aug 10, 2023

Conversation

iansan5653
Copy link
Contributor

@iansan5653 iansan5653 commented Aug 9, 2023

Per #3604, we'd like to eventually move the MarkdownEditor component back into the internal GitHub codebase. This component depends on the slots pattern, which is internal to this library. So as a prerequisite for moving the component, we need to expose the useSlots hook.

This will also be very useful for building other composable components.

Given the volatile nature of this hook, I've decided to expose it from drafts so it can still be changed and experimented with:

import {useSlots} from '@primer/react/drafts'

@iansan5653 iansan5653 requested review from a team and siddharthkp August 9, 2023 14:40
@changeset-bot
Copy link

changeset-bot bot commented Aug 9, 2023

🦋 Changeset detected

Latest commit: 37c61bd

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

This PR includes changesets to release 1 package
Name Type
@primer/react 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

@iansan5653 iansan5653 self-assigned this Aug 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 103.64 KB (0%)
dist/browser.umd.js 104.21 KB (0%)

@github-actions github-actions bot temporarily deployed to storybook-preview-3609 August 9, 2023 14:48 Inactive
@iansan5653 iansan5653 temporarily deployed to github-pages August 9, 2023 14:50 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3609 August 9, 2023 14:51 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3609 August 9, 2023 15:26 Inactive
@siddharthkp siddharthkp temporarily deployed to github-pages August 9, 2023 15:29 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3609 August 9, 2023 15:29 Inactive
@iansan5653 iansan5653 changed the title Expose useSlots from drafts/hooks Expose useSlots from drafts Aug 9, 2023
@iansan5653 iansan5653 enabled auto-merge August 9, 2023 19:06
Copy link
Member

@siddharthkp siddharthkp left a comment

Choose a reason for hiding this comment

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

Looks good now!

@iansan5653 iansan5653 added this pull request to the merge queue Aug 10, 2023
Merged via the queue into main with commit f487a8d Aug 10, 2023
@iansan5653 iansan5653 deleted the expose-use-slots branch August 10, 2023 14:04
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.

2 participants