Skip to content

Commit

Permalink
feat: update stable and deprecated exports (#5021)
Browse files Browse the repository at this point in the history
* feat: update stable and deprecated exports

* chore: add changeset

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Oct 1, 2024
1 parent a425c2f commit cff067a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-cycles-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Add ResponsiveValue type to `@primer/react` entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ exports[`@primer/react should not update exports without a semver change 1`] = `
"registerPortalRoot",
"RelativeTime",
"type RelativeTimeProps",
"ResponsiveValue",
"SegmentedControl",
"Select",
"SelectPanel",
Expand Down Expand Up @@ -221,7 +222,6 @@ exports[`@primer/react/deprecated should not update exports without a semver cha
"type DialogProps",
"FilteredSearch",
"type FilteredSearchProps",
"type ForwardRefComponent",
"Octicon",
"type OcticonProps",
"Pagehead",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/deprecated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ export {default as TabNav} from '../TabNav'
export type {TabNavProps, TabNavLinkProps} from '../TabNav'
export {default as Tooltip} from '../Tooltip/Tooltip'
export type {TooltipProps} from '../Tooltip/Tooltip'
export type {ForwardRefComponent} from '../utils/polymorphic'
// end of v37.0.0
2 changes: 1 addition & 1 deletion packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export {useFocusZone} from './hooks/useFocusZone'
export type {FocusZoneHookSettings} from './hooks/useFocusZone'
export {useRefObjectAsForwardedRef} from './hooks/useRefObjectAsForwardedRef'
export {useResizeObserver} from './hooks/useResizeObserver'
export {useResponsiveValue} from './hooks/useResponsiveValue'
export {useResponsiveValue, type ResponsiveValue} from './hooks/useResponsiveValue'
export {default as useIsomorphicLayoutEffect} from './utils/useIsomorphicLayoutEffect'
export {useProvidedRefOrCreate} from './hooks/useProvidedRefOrCreate'

Expand Down

0 comments on commit cff067a

Please sign in to comment.