Skip to content

Commit

Permalink
fix: export and document all selection utility functions again (rever…
Browse files Browse the repository at this point in the history
…ting their removal in `v0.9.0`)
  • Loading branch information
josdejong committed Nov 2, 2022
1 parent ded376e commit 0dd1dee
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,18 @@ const editor = new JSONEditor({
- `toTextContent`
- `toJSONContent`
- `estimateSerializedSize`
- Selection:
- `isValueSelection`
- `isKeySelection`
- `isInsideSelection`
- `isAfterSelection`
- `isMultiSelection`,
- `isEditingSelection`
- `createValueSelection`
- `createKeySelection`
- `createInsideSelection`,
- `createAfterSelection`
- `createMultiSelection`
- Parser:
- `isEqualParser`
- Path:
Expand Down
15 changes: 15 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ export {
estimateSerializedSize
} from './utils/jsonUtils.js'

// selection
export {
isValueSelection,
isKeySelection,
isInsideSelection,
isAfterSelection,
isMultiSelection,
isEditingSelection,
createValueSelection,
createKeySelection,
createInsideSelection,
createAfterSelection,
createMultiSelection
} from './logic/selection.js'

// parser
export { isEqualParser } from './utils/jsonUtils.js'

Expand Down

0 comments on commit 0dd1dee

Please sign in to comment.