# @udecode/slate-utils

## 40.2.7

### Patch Changes

- [#3809](https://github.com/udecode/plate/pull/3809) by [@zbeyens](https://github.com/zbeyens) –
  - Add `removeEditorText`: Remove non-empty editor text nodes

## 39.2.20

### Patch Changes

- [#3697](https://github.com/udecode/plate/pull/3697) by [@zbeyens](https://github.com/zbeyens) – Fix `getSelectionFragment` to support collapsed selection

## 39.2.1

## 39.1.4

### Patch Changes

- [#3616](https://github.com/udecode/plate/pull/3616) by [@zbeyens](https://github.com/zbeyens) –
  - Add queries `getBlocks`, `getFragmentProp`, `getSelectionFragment`
  - Add transforms `duplicateBlocks`, `removeEmptyPreviousBlock`, `selectNodes`, `setBlockAboveNode`, `setBlockNodes`
  - Add utils `unwrapStructuralNodes`

## 38.0.4

## 38.0.3

## 37.0.0

### Major Changes

- [#3420](https://github.com/udecode/plate/pull/3420) by [@zbeyens](https://github.com/zbeyens) – Types:

  - Replace `V extends Value` with `E extends TEditor` for improved type inference

## 36.3.9

### Patch Changes

- [#3426](https://github.com/udecode/plate/pull/3426) by [@yf-yang](https://github.com/yf-yang) – feat: `getPointBeforeLocation` - Add `matchByRegex` option

## 36.3.4

### Patch Changes

- [#3408](https://github.com/udecode/plate/pull/3408) by [@yf-yang](https://github.com/yf-yang) – add removeOptions to replaceNode

## 36.0.6

## 34.0.4

### Patch Changes

- [#3262](https://github.com/udecode/plate/pull/3262) by [@felixfeng33](https://github.com/felixfeng33) – fix getAncestorNode cann't get the first node.

## 34.0.0

### Minor Changes

- [#3241](https://github.com/udecode/plate/pull/3241) by [@felixfeng33](https://github.com/felixfeng33) – Add new queries `getAncestorNode` and `getNodesRange`

## 32.0.1

## 31.3.2

### Patch Changes

- [#3086](https://github.com/udecode/plate/pull/3086) by [@felixfeng33](https://github.com/felixfeng33) – `toggleMark` use `editor.removeMark`

## 31.0.0

## 25.0.0

## 24.3.6

## 24.3.5

## 24.3.2

## 24.3.1

## 24.3.0

## 24.2.0

### Minor Changes

- [`18f9778c`](https://github.com/udecode/plate/commit/18f9778cda9450cd99a71c47ab0767b64813db1a) by [@zbeyens](https://github.com/zbeyens) – Add replaceNode

## 24.0.0

### Minor Changes

- [#2629](https://github.com/udecode/plate/pull/2629) by [@zbeyens](https://github.com/zbeyens) –
  - Add `isEditorEmpty` query. Whether the editor is empty. An editor is empty if it has only one empty element.

## 23.7.4

## 22.0.2

### Patch Changes

- [`f44dbd3`](https://github.com/udecode/plate/commit/f44dbd3f322a828753da31ec28576587e63ea047) by [@zbeyens](https://github.com/zbeyens) – v22

## 21.4.1

## 21.3.0

## 21.0.0

## 19.7.1
