From ab3570d16609e9588a51d55e5da0a5f6b67b2120 Mon Sep 17 00:00:00 2001 From: Czy <651525974@qq.com> Date: Fri, 21 Jun 2024 07:24:10 +0800 Subject: [PATCH] chore: export WeakMap for on-demand retrieval of Path (#5657) * chore: export node path utils * chore: code style empty line --- packages/slate-react/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/slate-react/src/index.ts b/packages/slate-react/src/index.ts index d8cb331f2..4568b8f29 100644 --- a/packages/slate-react/src/index.ts +++ b/packages/slate-react/src/index.ts @@ -24,3 +24,6 @@ export { useSlateSelection } from './hooks/use-slate-selection' // Plugin export { ReactEditor } from './plugin/react-editor' export { withReact } from './plugin/with-react' + +// Utils +export { NODE_TO_INDEX, NODE_TO_PARENT } from "./utils/weak-maps"