@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 +6 -0
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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
|
|
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
|
}
|