-
Notifications
You must be signed in to change notification settings - Fork 640
v38: Make sure Banner is exported from main and experimental #6750
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
Conversation
🦋 Changeset detectedLatest commit: b2e55b8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR moves the Banner component from experimental to the main exports of @primer/react, making it available for general use as a replacement for the Flash component.
- Move Banner component and types from experimental to main package exports
- Update all import paths from experimental to direct Banner imports
- Update Storybook story titles to reflect the component's new non-experimental status
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/react/src/index.ts | Add Banner exports to main package exports |
| packages/react/src/tests/snapshots/exports.test.ts.snap | Update export snapshots removing Banner from experimental and adding to main |
| packages/react/src/Button/Button.examples.stories.tsx | Update import path from experimental to direct Banner import |
| packages/react/src/Banner/Banner.stories.tsx | Update story title from Experimental/Components to Components |
| packages/react/src/Banner/Banner.figma.tsx | Update import path from experimental to main package |
| packages/react/src/Banner/Banner.features.stories.tsx | Update story title from Experimental/Components to Components |
| packages/react/src/Banner/Banner.examples.stories.tsx | Update story title from Experimental/Components to Components |
| packages/react/src/Banner/Banner.docs.json | Update importPath and story IDs to reflect non-experimental status |
| e2e/components/Banner.test.ts | Update story IDs in tests to match new non-experimental paths |
|
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
Closes https://github.com/github/primer/issues/5628
In this PR, we will move Banner component to the main export. I think it is well suited to recommend for migration from Flash component.