Skip to content

Commit

Permalink
chore: export WeakMap for on-demand retrieval of Path (#5657)
Browse files Browse the repository at this point in the history
* chore: export node path utils

* chore: code style empty line
  • Loading branch information
WindRunnerMax authored Jun 20, 2024
1 parent e6254f7 commit ab3570d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/slate-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 29 in packages/slate-react/src/index.ts

View workflow job for this annotation

GitHub Actions / latest

Replace `"./utils/weak-maps"` with `'./utils/weak-maps'`

Check failure on line 29 in packages/slate-react/src/index.ts

View workflow job for this annotation

GitHub Actions / lint:eslint

Replace `"./utils/weak-maps"` with `'./utils/weak-maps'`

0 comments on commit ab3570d

Please sign in to comment.