From f9e83b807f4b2ae717814af5943f53f366a48fd2 Mon Sep 17 00:00:00 2001 From: yf-yang <36890796+yf-yang@users.noreply.github.com> Date: Thu, 29 Aug 2024 03:18:38 +0800 Subject: [PATCH] fix: expose use-composing (#5706) * fix: expose use-composing * chore: add changeset --- .changeset/pink-pots-argue.md | 5 +++++ packages/slate-react/src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/pink-pots-argue.md diff --git a/.changeset/pink-pots-argue.md b/.changeset/pink-pots-argue.md new file mode 100644 index 0000000000..c5ed50154b --- /dev/null +++ b/.changeset/pink-pots-argue.md @@ -0,0 +1,5 @@ +--- +'slate-react': minor +--- + +Expose useComposing hook diff --git a/packages/slate-react/src/index.ts b/packages/slate-react/src/index.ts index efb3e1f7d6..0824d1fb99 100644 --- a/packages/slate-react/src/index.ts +++ b/packages/slate-react/src/index.ts @@ -14,6 +14,7 @@ export { Slate } from './components/slate' // Hooks export { useEditor } from './hooks/use-editor' export { useSlateStatic } from './hooks/use-slate-static' +export { useComposing } from './hooks/use-composing' export { useFocused } from './hooks/use-focused' export { useReadOnly } from './hooks/use-read-only' export { useSelected } from './hooks/use-selected'