1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00

npm update

This commit is contained in:
Daniel Neto 2023-08-12 10:32:47 -03:00
parent 0cdd3e9fee
commit 4696ba952f
1437 changed files with 32727 additions and 1248226 deletions

View file

@ -2,10 +2,6 @@
The data structure for documents. @nonabstract
*/
class Text {
/**
@internal
*/
constructor() { }
/**
Get the line description around the given position.
*/
@ -100,7 +96,8 @@ class Text {
return new LineCursor(inner);
}
/**
@internal
Return the document as a string, using newline characters to
separate lines.
*/
toString() { return this.sliceString(0); }
/**
@ -113,6 +110,10 @@ class Text {
return lines;
}
/**
@internal
*/
constructor() { }
/**
Create a `Text` instance for the given array of lines.
*/
static of(text) {
@ -2156,7 +2157,10 @@ class StateEffect {
is(type) { return this.type == type; }
/**
Define a new effect type. The type parameter indicates the type
of values that his effect holds.
of values that his effect holds. It should be a type that
doesn't include `undefined`, since that is used in
[mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
removed.
*/
static define(spec = {}) {
return new StateEffectType(spec.map || (v => v));
@ -3299,8 +3303,7 @@ class RangeSet {
static compare(oldSets, newSets,
/**
This indicates how the underlying data changed between these
ranges, and is needed to synchronize the iteration. `from` and
`to` are coordinates in the _new_ space, after these changes.
ranges, and is needed to synchronize the iteration.
*/
textDiff, comparator,
/**
@ -3411,6 +3414,18 @@ A range set builder is a data structure that helps build up a
an array of [`Range`](https://codemirror.net/6/docs/ref/#state.Range) objects.
*/
class RangeSetBuilder {
finishChunk(newArrays) {
this.chunks.push(new Chunk(this.from, this.to, this.value, this.maxPoint));
this.chunkPos.push(this.chunkStart);
this.chunkStart = -1;
this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint);
this.maxPoint = -1;
if (newArrays) {
this.from = [];
this.to = [];
this.value = [];
}
}
/**
Create an empty builder.
*/
@ -3428,18 +3443,6 @@ class RangeSetBuilder {
this.setMaxPoint = -1;
this.nextLayer = null;
}
finishChunk(newArrays) {
this.chunks.push(new Chunk(this.from, this.to, this.value, this.maxPoint));
this.chunkPos.push(this.chunkStart);
this.chunkStart = -1;
this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint);
this.maxPoint = -1;
if (newArrays) {
this.from = [];
this.to = [];
this.value = [];
}
}
/**
Add a range. Ranges should be added in sorted (by `from` and
`value.startSide`) order.
@ -3799,7 +3802,7 @@ function compare(a, startA, b, startB, length, comparator) {
let end = diff < 0 ? a.to + dPos : b.to, clipEnd = Math.min(end, endB);
if (a.point || b.point) {
if (!(a.point && b.point && (a.point == b.point || a.point.eq(b.point)) &&
sameValues(a.activeForPoint(a.to + dPos), b.activeForPoint(b.to))))
sameValues(a.activeForPoint(a.to), b.activeForPoint(b.to))))
comparator.comparePoint(pos, clipEnd, a.point, b.point);
}
else {