@contrail/documents 2.4.0 → 2.5.0-alpha.fe0fdf8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ All notable changes to `@contrail/documents` are documented here.
5
5
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
  Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.5.0] - 2026-10-07
9
+
10
+ Also shipped on the 1.x line as 1.22.0.
11
+
12
+ ### Added
13
+
14
+ - `DocumentChange.keepSortIndex`: set on an add to keep the sortIndex its element carries when no
15
+ element holds it, instead of appending it on top.
16
+
8
17
  ## [2.4.0] - 2026-09-26
9
18
 
10
19
  Also shipped on the 1.x line as 1.21.0.
@@ -19,4 +19,5 @@ export interface DocumentChange {
19
19
  targetSortIndex?: number;
20
20
  skipUndo?: boolean;
21
21
  gestureId?: string;
22
+ keepSortIndex?: boolean;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "2.4.0",
3
+ "version": "2.5.0-alpha.fe0fdf8",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",