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

Export things we need for CommentEditor #4513

Merged
merged 6 commits into from May 8, 2024
Merged

Conversation

owenniblock
Copy link
Contributor

@owenniblock owenniblock commented Apr 19, 2024

Because we're housing the MarkdownToolbar in dotcom, we need to export a couple of things that we use there.

Changelog

New

Exports createComponent

Changed

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@owenniblock owenniblock requested a review from a team as a code owner April 19, 2024 12:02
Copy link

changeset-bot bot commented Apr 19, 2024

🦋 Changeset detected

Latest commit: 8fe6af5

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 Minor

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

Copy link
Contributor

github-actions bot commented Apr 19, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 88.37 KB (+0.15% 🔺)
packages/react/dist/browser.umd.js 88.54 KB (-0.17% 🔽)

@github-actions github-actions bot temporarily deployed to storybook-preview-4513 April 19, 2024 12:06 Inactive
@owenniblock
Copy link
Contributor Author

Related / similar PR: #4504

packages/react/src/index.ts Outdated Show resolved Hide resolved
@@ -45,6 +45,10 @@ export {useRefObjectAsForwardedRef} from './hooks/useRefObjectAsForwardedRef'
export {useResizeObserver} from './hooks/useResizeObserver'
export {useResponsiveValue} from './hooks/useResponsiveValue'

// Utils
export {createComponent} from './utils/create-component'
Copy link
Member

Choose a reason for hiding this comment

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

For stability, is this something that we feel like will be stable/unlikely to change without a breaking change or would it be helpful to have a "bake period" in drafts/experimental before promoting to stable?

Wasn't sure about the status of the helper and wanted to check-in 👍 Totally understand either way.

Copy link
Member

Choose a reason for hiding this comment

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

It'll likely be removed when we upgrade to React 19. In lieu of that I think any changes can happen alongside major releases. I don't anticipate huge changes.

@joshblack joshblack enabled auto-merge May 8, 2024 16:31
@owenniblock owenniblock mentioned this pull request May 8, 2024
13 tasks
@joshblack joshblack added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit 02a2a2b May 8, 2024
30 checks passed
@joshblack joshblack deleted the exports-for-comment-editor branch May 8, 2024 16:48
@primer primer bot mentioned this pull request May 8, 2024
JelloBagel pushed a commit that referenced this pull request May 16, 2024
* Export things we need for CommentEditor

* Add changeset

* Update snapshot

* Remove ComponentProps export and use React.ComponentProps in dotcom

* Remove the bits of ComponentProps
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.

None yet

3 participants