diff --git a/README.md b/README.md index e7d7c2d6..9ef17510 100644 --- a/README.md +++ b/README.md @@ -826,6 +826,9 @@ The library exports a set of utility functions. The exact definitions of those f - `EnumValue` - `ReadonlyValue` - `TimestampTag` + - HTML: + - `getValueClass` + - `keyComboFromEvent` - Validation: - `createAjvValidator` - Query languages: @@ -857,6 +860,11 @@ The library exports a set of utility functions. The exact definitions of those f - `createInsideSelection`, - `createAfterSelection` - `createMultiSelection` + - `getFocusPath` + - `getAnchorPath` + - `getStartPath` + - `getEndPath` + - `getSelectionPaths` - Parser: - `isEqualParser` - Path: @@ -865,6 +873,14 @@ The library exports a set of utility functions. The exact definitions of those f - Actions: - `resizeObserver` - `onEscape` +- Type checking: + - `valueType` + - `isObject` + - `isObjectOrArray` + - `isBoolean` + - `isTimestamp` + - `isColor` + - `isUrl` - Typeguards: - `isContentParseError` - `isContentValidationErrors` diff --git a/src/lib/index.ts b/src/lib/index.ts index 58553aae..2d6eb4ca 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -15,6 +15,10 @@ export { renderValue } from './plugins/value/renderValue.js' export { renderJSONSchemaEnum } from './plugins/value/renderJSONSchemaEnum.js' export { BooleanToggle, ColorPicker, EditableValue, EnumValue, ReadonlyValue, TimestampTag } +// HTML +export { getValueClass } from './plugins/value/components/utils/getValueClass' +export { keyComboFromEvent } from './utils/keyBindings' + // validator plugins export * from './plugins/validator/createAjvValidator.js' @@ -49,7 +53,12 @@ export { createKeySelection, createInsideSelection, createAfterSelection, - createMultiSelection + createMultiSelection, + getFocusPath, + getAnchorPath, + getStartPath, + getEndPath, + getSelectionPaths } from './logic/selection.js' // parser @@ -62,5 +71,16 @@ export { parseJSONPath, stringifyJSONPath } from './utils/pathUtils.js' export { resizeObserver } from './actions/resizeObserver.js' export { onEscape } from './actions/onEscape.js' +// type checking +export { + valueType, + isObject, + isObjectOrArray, + isBoolean, + isTimestamp, + isColor, + isUrl +} from './utils/typeUtils' + // typeguards export * from './typeguards.js'