From f487a8d653329d73f238b908eca6085f94ca3c93 Mon Sep 17 00:00:00 2001 From: Ian Sanders Date: Thu, 10 Aug 2023 09:52:24 -0400 Subject: [PATCH] Expose `useSlots` from `drafts` (#3609) * Expose `useSlots` from `drafts/hooks` * Create thin-laws-beam.md * Update .changeset/thin-laws-beam.md * Update .changeset/thin-laws-beam.md * Update exports snapshot --------- Co-authored-by: Siddharth Kshetrapal --- .changeset/thin-laws-beam.md | 7 +++++++ src/__tests__/__snapshots__/exports.test.ts.snap | 1 + src/drafts/hooks/index.ts | 1 + 3 files changed, 9 insertions(+) create mode 100644 .changeset/thin-laws-beam.md diff --git a/.changeset/thin-laws-beam.md b/.changeset/thin-laws-beam.md new file mode 100644 index 00000000000..abe28d68d61 --- /dev/null +++ b/.changeset/thin-laws-beam.md @@ -0,0 +1,7 @@ +--- +"@primer/react": patch +--- + +Expose `useSlots` from `drafts/hooks` + + diff --git a/src/__tests__/__snapshots__/exports.test.ts.snap b/src/__tests__/__snapshots__/exports.test.ts.snap index bd0c82eb2bf..fc308c494a7 100644 --- a/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/src/__tests__/__snapshots__/exports.test.ts.snap @@ -156,6 +156,7 @@ exports[`@primer/react/drafts should not update exports without a semver change "useDynamicTextareaHeight", "useIgnoreKeyboardActionsWhileComposing", "useSafeAsyncCallback", + "useSlots", "useSyntheticChange", ] `; diff --git a/src/drafts/hooks/index.ts b/src/drafts/hooks/index.ts index 2fca90697b1..4bf219f85e8 100644 --- a/src/drafts/hooks/index.ts +++ b/src/drafts/hooks/index.ts @@ -3,3 +3,4 @@ export * from './useDynamicTextareaHeight' export * from './useIgnoreKeyboardActionsWhileComposing' export * from './useSafeAsyncCallback' export * from './useSyntheticChange' +export * from '../../hooks/useSlots'