@codemirror/state 6.4.0 → 6.4.1

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
@@ -1,3 +1,9 @@
1
+ ## 6.4.1 (2024-02-19)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix an issue that caused widgets at the end of a mark decoration to be rendered in their own separate mark DOM element.
6
+
1
7
  ## 6.4.0 (2023-12-28)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -3396,7 +3396,9 @@ class RangeSet {
3396
3396
  let curTo = Math.min(cursor.to, to);
3397
3397
  if (cursor.point) {
3398
3398
  let active = cursor.activeForPoint(cursor.to);
3399
- let openCount = cursor.pointFrom < from ? active.length + 1 : Math.min(active.length, openRanges);
3399
+ let openCount = cursor.pointFrom < from ? active.length + 1
3400
+ : cursor.point.startSide < 0 ? active.length
3401
+ : Math.min(active.length, openRanges);
3400
3402
  iterator.point(pos, curTo, cursor.point, active, openCount, cursor.pointRank);
3401
3403
  openRanges = Math.min(cursor.openEnd(curTo), active.length);
3402
3404
  }
package/dist/index.d.cts CHANGED
@@ -851,7 +851,7 @@ interface TransactionSpec {
851
851
  selection?: EditorSelection | {
852
852
  anchor: number;
853
853
  head?: number;
854
- };
854
+ } | undefined;
855
855
  /**
856
856
  Attach [state effects](https://codemirror.net/6/docs/ref/#state.StateEffect) to this transaction.
857
857
  Again, when they contain positions and this same spec makes
package/dist/index.d.ts CHANGED
@@ -851,7 +851,7 @@ interface TransactionSpec {
851
851
  selection?: EditorSelection | {
852
852
  anchor: number;
853
853
  head?: number;
854
- };
854
+ } | undefined;
855
855
  /**
856
856
  Attach [state effects](https://codemirror.net/6/docs/ref/#state.StateEffect) to this transaction.
857
857
  Again, when they contain positions and this same spec makes
package/dist/index.js CHANGED
@@ -3392,7 +3392,9 @@ class RangeSet {
3392
3392
  let curTo = Math.min(cursor.to, to);
3393
3393
  if (cursor.point) {
3394
3394
  let active = cursor.activeForPoint(cursor.to);
3395
- let openCount = cursor.pointFrom < from ? active.length + 1 : Math.min(active.length, openRanges);
3395
+ let openCount = cursor.pointFrom < from ? active.length + 1
3396
+ : cursor.point.startSide < 0 ? active.length
3397
+ : Math.min(active.length, openRanges);
3396
3398
  iterator.point(pos, curTo, cursor.point, active, openCount, cursor.pointRank);
3397
3399
  openRanges = Math.min(cursor.openEnd(curTo), active.length);
3398
3400
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/state",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Editor state data structures for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",