This commit is contained in:
jsingleton20 2023-05-09 13:36:33 -04:00
parent 049464cbc1
commit 4f2affd4cd
120 changed files with 7176 additions and 2085 deletions

3
dist/src/index.d.ts vendored
View File

@ -1 +1,2 @@
export { Doc, Transaction, YArray as Array, YMap as Map, YText as Text, YXmlText as XmlText, YXmlHook as XmlHook, YXmlElement as XmlElement, YXmlFragment as XmlFragment, YXmlEvent, YMapEvent, YArrayEvent, YTextEvent, YEvent, Item, AbstractStruct, GC, ContentBinary, ContentDeleted, ContentEmbed, ContentFormat, ContentJSON, ContentAny, ContentString, ContentType, AbstractType, getTypeChildren, createRelativePositionFromTypeIndex, createRelativePositionFromJSON, createAbsolutePositionFromRelativePosition, compareRelativePositions, AbsolutePosition, RelativePosition, ID, createID, compareIDs, getState, Snapshot, createSnapshot, createDeleteSet, createDeleteSetFromStructStore, cleanupYTextFormatting, snapshot, emptySnapshot, findRootTypeKey, findIndexSS, getItem, typeListToArraySnapshot, typeMapGetSnapshot, createDocFromSnapshot, iterateDeletedStructs, applyUpdate, applyUpdateV2, readUpdate, readUpdateV2, encodeStateAsUpdate, encodeStateAsUpdateV2, encodeStateVector, UndoManager, decodeSnapshot, encodeSnapshot, decodeSnapshotV2, encodeSnapshotV2, decodeStateVector, logUpdate, logUpdateV2, decodeUpdate, decodeUpdateV2, relativePositionToJSON, isDeleted, isParentOf, equalSnapshots, PermanentUserData, tryGc, transact, AbstractConnector, logType, mergeUpdates, mergeUpdatesV2, parseUpdateMeta, parseUpdateMetaV2, encodeStateVectorFromUpdate, encodeStateVectorFromUpdateV2, encodeRelativePosition, decodeRelativePosition, diffUpdate, diffUpdateV2, convertUpdateFormatV1ToV2, convertUpdateFormatV2ToV1, UpdateEncoderV1 } from "./internals.js";
export { Doc, Transaction, YArray as Array, YMap as Map, YText as Text, YXmlText as XmlText, YXmlHook as XmlHook, YXmlElement as XmlElement, YXmlFragment as XmlFragment, YXmlEvent, YMapEvent, YArrayEvent, YTextEvent, YEvent, Item, AbstractStruct, GC, ContentBinary, ContentDeleted, ContentEmbed, ContentFormat, ContentJSON, ContentAny, ContentString, ContentType, AbstractType, getTypeChildren, createRelativePositionFromTypeIndex, createRelativePositionFromJSON, createAbsolutePositionFromRelativePosition, compareRelativePositions, AbsolutePosition, RelativePosition, ID, createID, compareIDs, getState, Snapshot, createSnapshot, createDeleteSet, createDeleteSetFromStructStore, cleanupYTextFormatting, snapshot, emptySnapshot, findRootTypeKey, findIndexSS, getItem, typeListToArraySnapshot, typeMapGetSnapshot, createDocFromSnapshot, iterateDeletedStructs, applyUpdate, applyUpdateV2, readUpdate, readUpdateV2, encodeStateAsUpdate, encodeStateAsUpdateV2, encodeStateVector, UndoManager, decodeSnapshot, encodeSnapshot, decodeSnapshotV2, encodeSnapshotV2, decodeStateVector, logUpdate, logUpdateV2, decodeUpdate, decodeUpdateV2, relativePositionToJSON, isDeleted, isParentOf, equalSnapshots, PermanentUserData, tryGc, transact, AbstractConnector, logType, mergeUpdates, mergeUpdatesV2, parseUpdateMeta, parseUpdateMetaV2, encodeStateVectorFromUpdate, encodeStateVectorFromUpdateV2, encodeRelativePosition, decodeRelativePosition, diffUpdate, diffUpdateV2, convertUpdateFormatV1ToV2, convertUpdateFormatV2ToV1, obfuscateUpdate, obfuscateUpdateV2, UpdateEncoderV1 } from "./internals.js";
//# sourceMappingURL=index.d.ts.map

1
dist/src/index.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":""}

View File

@ -38,3 +38,4 @@ export * from "./structs/ContentString.js";
export * from "./structs/ContentType.js";
export * from "./structs/Item.js";
export * from "./structs/Skip.js";
//# sourceMappingURL=internals.d.ts.map

1
dist/src/internals.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../../src/internals.js"],"names":[],"mappings":""}

View File

@ -34,3 +34,4 @@ import { ID } from "../utils/ID.js";
import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { Transaction } from "../utils/Transaction.js";
//# sourceMappingURL=AbstractStruct.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"AbstractStruct.d.ts","sourceRoot":"","sources":["../../../src/structs/AbstractStruct.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,gBAHW,EAAE,UACF,MAAM,EAKhB;IAFC,OAAY;IACZ,eAAoB;IAGtB;;OAEG;IACH,uBAEC;IAED;;;;;;OAMG;IACH,iBAHW,cAAc,GACb,OAAO,CAIlB;IAED;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,UACjC,MAAM,eACN,MAAM,QAIhB;IAED;;;OAGG;IACH,uBAHW,WAAW,UACX,MAAM,QAIhB;CACF"}

View File

@ -64,3 +64,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentAny.d.ts.map

1
dist/src/structs/ContentAny.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"ContentAny.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentAny.js"],"names":[],"mappings":"AAIA;IACE;;OAEG;IACH,iBAFW,MAAM,GAAG,CAAC,EAOpB;IAJC;;OAEG;IACH,KAFU,MAAM,GAAG,CAAC,CAEN;IAGhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,UAAU,CAIrB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,UAAU,CAMrB;IAED;;;OAGG;IACH,iBAHW,UAAU,GACT,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAShB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAMM,wCAHI,eAAe,GAAG,eAAe,GAChC,UAAU,CASrB"}

View File

@ -61,3 +61,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentBinary.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"ContentBinary.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentBinary.js"],"names":[],"mappings":"AAMA;IACE;;OAEG;IACH,qBAFW,UAAU,EAIpB;IADC,oBAAsB;IAGxB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,aAAa,CAIxB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,aAAa,CAIxB;IAED;;;OAGG;IACH,iBAHW,aAAa,GACZ,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAMM,2CAHI,eAAe,GAAG,eAAe,GAChC,aAAa,CAEuD"}

View File

@ -61,3 +61,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentDeleted.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"ContentDeleted.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentDeleted.js"],"names":[],"mappings":"AAMA;IACE;;OAEG;IACH,iBAFW,MAAM,EAIhB;IADC,YAAc;IAGhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,cAAc,CAIzB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,cAAc,CAMzB;IAED;;;OAGG;IACH,iBAHW,cAAc,GACb,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAKd;IAED;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,4CAHI,eAAe,GAAG,eAAe,GAChC,cAAc,CAEwD"}

View File

@ -69,3 +69,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentDoc.d.ts.map

1
dist/src/structs/ContentDoc.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"ContentDoc.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentDoc.js"],"names":[],"mappings":"AAaA;;GAEG;AACH;IACE;;OAEG;IACH,iBAFW,GAAG,EAwBb;IAlBC;;OAEG;IACH,KAFU,GAAG,CAEC;IAKd,UAAgB;IAYlB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,UAAU,CAIrB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,UAAU,CAIrB;IAED;;;OAGG;IACH,iBAHW,UAAU,GACT,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QASd;IAED;;OAEG;IACH,oBAFW,WAAW,QAQrB;IAED;;OAEG;IACH,UAFW,WAAW,QAER;IAEd;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAKhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,wCAHI,eAAe,GAAG,eAAe,GAChC,UAAU,CAE6F"}

View File

@ -64,3 +64,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentEmbed.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"ContentEmbed.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentEmbed.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;IACE;;OAEG;IACH,mBAFW,MAAM,EAIhB;IADC,cAAkB;IAGpB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,YAAY,CAIvB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,YAAY,CAIvB;IAED;;;OAGG;IACH,iBAHW,YAAY,GACX,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,0CAHI,eAAe,GAAG,eAAe,GAChC,YAAY,CAEuD"}

View File

@ -66,3 +66,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentFormat.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"ContentFormat.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentFormat.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;IACE;;;OAGG;IACH,iBAHW,MAAM,SACN,MAAM,EAKhB;IAFC,YAAc;IACd,cAAkB;IAGpB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,aAAa,CAIxB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,aAAa,CAIxB;IAED;;;OAGG;IACH,iBAHW,aAAa,GACZ,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAKd;IAED;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAKhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAMM,2CAHI,eAAe,GAAG,eAAe,GAChC,aAAa,CAE2E"}

View File

@ -67,3 +67,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentJSON.d.ts.map

1
dist/src/structs/ContentJSON.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"ContentJSON.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentJSON.js"],"names":[],"mappings":"AAIA;;GAEG;AACH;IACE;;OAEG;IACH,iBAFW,MAAM,GAAG,CAAC,EAOpB;IAJC;;OAEG;IACH,KAFU,MAAM,GAAG,CAAC,CAEN;IAGhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,WAAW,CAItB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,WAAW,CAMtB;IAED;;;OAGG;IACH,iBAHW,WAAW,GACV,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAShB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,yCAHI,eAAe,GAAG,eAAe,GAChC,WAAW,CActB"}

View File

@ -67,3 +67,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=ContentString.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"ContentString.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentString.js"],"names":[],"mappings":"AAIA;;GAEG;AACH;IACE;;OAEG;IACH,iBAFW,MAAM,EAOhB;IAJC;;OAEG;IACH,KAFU,MAAM,CAEF;IAGhB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,aAAa,CAIxB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,aAAa,CAiBxB;IAED;;;OAGG;IACH,iBAHW,aAAa,GACZ,OAAO,CAKlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAEiB;IAChC;;OAEG;IACH,oBAFW,WAAW,QAEC;IACvB;;OAEG;IACH,UAFW,WAAW,QAET;IACb;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,2CAHI,eAAe,GAAG,eAAe,GAChC,aAAa,CAE0D"}

View File

@ -80,3 +80,4 @@ import { Item } from "./Item.js";
import { StructStore } from "../utils/StructStore.js";
import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
//# sourceMappingURL=ContentType.d.ts.map

1
dist/src/structs/ContentType.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"ContentType.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentType.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH,uBAHU,aAAe,eAAe,GAAG,eAAe,KAAE,aAAa,GAAG,CAAC,CAAC,CAW7E;AAED,4BAA4B;AAC5B,0BAA0B;AAC1B,2BAA2B;AAC3B,iCAAiC;AACjC,kCAAkC;AAClC,8BAA8B;AAC9B,8BAA8B;AAE9B;;GAEG;AACH;IACE;;OAEG;IACH,kBAFW,aAAa,GAAG,CAAC,EAO3B;IAJC;;OAEG;IACH,MAFU,aAAa,GAAG,CAAC,CAEX;IAGlB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,WAAW,CAItB;IAED;;;OAGG;IACH,eAHW,MAAM,GACL,WAAW,CAItB;IAED;;;OAGG;IACH,iBAHW,WAAW,GACV,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAId;IAED;;OAEG;IACH,oBAFW,WAAW,QAyBrB;IAED;;OAEG;IACH,UAFW,WAAW,QAgBrB;IAED;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,yCAHI,eAAe,GAAG,eAAe,GAChC,WAAW,CAE4E"}

View File

@ -26,3 +26,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { Transaction } from "../utils/Transaction.js";
import { StructStore } from "../utils/StructStore.js";
//# sourceMappingURL=GC.d.ts.map

1
dist/src/structs/GC.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"GC.d.ts","sourceRoot":"","sources":["../../../src/structs/GC.js"],"names":[],"mappings":"AAOA,kCAAkC;AAElC;;GAEG;AACH;IAKE,eAAY;IAEZ;;;OAGG;IACH,iBAHW,EAAE,GACD,OAAO,CAQlB;IAcD;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAKhB;IAED;;;;OAIG;IACH,wBAJW,WAAW,SACX,WAAW,GACV,IAAI,GAAG,MAAM,CAIxB;CACF"}

View File

@ -4,7 +4,7 @@ export function followRedone(store: StructStore, id: ID): {
};
export function keepItem(item: Item | null, keep: boolean): void;
export function splitItem(transaction: Transaction, leftItem: Item, diff: number): Item;
export function redoItem(transaction: Transaction, item: Item, redoitems: Set<Item>, itemsToDelete: DeleteSet, ignoreRemoteMapChanges: boolean): Item | null;
export function redoItem(transaction: Transaction, item: Item, redoitems: Set<Item>, itemsToDelete: DeleteSet, ignoreRemoteMapChanges: boolean, um: import('../utils/UndoManager.js').UndoManager): Item | null;
/**
* Abstract class that represents any content.
*/
@ -173,33 +173,33 @@ export class AbstractContent {
*/
copy(): AbstractContent;
/**
* @param {number} offset
* @param {number} _offset
* @return {AbstractContent}
*/
splice(offset: number): AbstractContent;
splice(_offset: number): AbstractContent;
/**
* @param {AbstractContent} right
* @param {AbstractContent} _right
* @return {boolean}
*/
mergeWith(right: AbstractContent): boolean;
mergeWith(_right: AbstractContent): boolean;
/**
* @param {Transaction} transaction
* @param {Item} item
* @param {Transaction} _transaction
* @param {Item} _item
*/
integrate(transaction: Transaction, item: Item): void;
integrate(_transaction: Transaction, _item: Item): void;
/**
* @param {Transaction} transaction
* @param {Transaction} _transaction
*/
delete(transaction: Transaction): void;
delete(_transaction: Transaction): void;
/**
* @param {StructStore} store
* @param {StructStore} _store
*/
gc(store: StructStore): void;
gc(_store: StructStore): void;
/**
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
* @param {number} offset
* @param {UpdateEncoderV1 | UpdateEncoderV2} _encoder
* @param {number} _offset
*/
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number): void;
write(_encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number): void;
/**
* @return {number}
*/
@ -215,3 +215,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=Item.d.ts.map

1
dist/src/structs/Item.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/structs/Item.js"],"names":[],"mappings":"AAuCO,oCAJI,WAAW,MACX,EAAE;UACK,IAAI;UAAO,MAAM;EAoBlC;AAWM,+BAHI,IAAI,GAAC,IAAI,QACT,OAAO,QAOjB;AAYM,uCARI,WAAW,YACX,IAAI,QACJ,MAAM,GACL,IAAI,CAyCf;AAsBM,sCAXI,WAAW,QACX,IAAI,aACJ,IAAI,IAAI,CAAC,iBACT,SAAS,0BACT,OAAO,MACP,OAAO,yBAAyB,EAAE,WAAW,GAE5C,IAAI,GAAC,IAAI,CAsGpB;AAED;;GAEG;AACH;IACE;;;;;;;;;OASG;IACH,gBATW,EAAE,QACF,IAAI,GAAG,IAAI,UACX,EAAE,GAAG,IAAI,SACT,IAAI,GAAG,IAAI,eACX,EAAE,GAAG,IAAI,UACT,aAAa,GAAG,CAAC,GAAC,EAAE,GAAC,IAAI,aACzB,MAAM,GAAG,IAAI,WACb,eAAe,EAsDzB;IAlDC;;;OAGG;IACH,QAFU,EAAE,GAAG,IAAI,CAEC;IACpB;;;OAGG;IACH,MAFU,IAAI,GAAG,IAAI,CAEL;IAChB;;;OAGG;IACH,OAFU,IAAI,GAAG,IAAI,CAEH;IAClB;;;OAGG;IACH,aAFU,EAAE,GAAG,IAAI,CAEW;IAC9B;;OAEG;IACH,QAFU,aAAa,GAAG,CAAC,GAAC,EAAE,GAAC,IAAI,CAEf;IACpB;;;;;;OAMG;IACH,WAFU,SAAS,IAAI,CAEG;IAC1B;;;;OAIG;IACH,QAFU,EAAE,GAAG,IAAI,CAED;IAClB;;OAEG;IACH,SAFU,eAAe,CAEH;IACtB;;;;;;OAMG;IACH,MAFU,MAAM,CAEwC;IAG1D;;;;OAIG;IACH,yBAIC;IAED,sBAEC;IASD,uBAIC;IAXD;;OAEG;IACH,oBAEC;IAQD,yBAEC;IAUD,0BAIC;IAZD;;;OAGG;IACH,uBAEC;IAQD,oBAEC;IAED;;;;;;OAMG;IACH,wBAJW,WAAW,SACX,WAAW,GACV,IAAI,GAAG,MAAM,CA6CxB;IA0HD;;OAEG;IACH,wBAMC;IAED;;OAEG;IACH,wBAMC;IAED;;OAEG;IACH,iBAGC;IAED;;;;;OAKG;IACH,iBAHW,IAAI,GACH,OAAO,CAwClB;IAED;;;;OAIG;IACH,oBAFW,WAAW,QAcrB;IAED;;;OAGG;IACH,UAHW,WAAW,aACX,OAAO,QAYjB;IAED;;;;;;;;OAQG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QA6ChB;CACF;AAMM,yCAHI,eAAe,GAAG,eAAe,QACjC,MAAM,mBAE0E;AAE3F;;;;GAIG;AACH,0BAFU,aAAe,eAAe,GAAG,eAAe,KAAE,eAAe,CAAC,CAc3E;AAED;;GAEG;AACH;IACE;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;;;;;;;OAQG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,eAAe,CAI1B;IAED;;;OAGG;IACH,gBAHW,MAAM,GACL,eAAe,CAI1B;IAED;;;OAGG;IACH,kBAHW,eAAe,GACd,OAAO,CAIlB;IAED;;;OAGG;IACH,wBAHW,WAAW,SACX,IAAI,QAId;IAED;;OAEG;IACH,qBAFW,WAAW,QAIrB;IAED;;OAEG;IACH,WAFW,WAAW,QAIrB;IAED;;;OAGG;IACH,gBAHW,eAAe,GAAG,eAAe,WACjC,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF"}

View File

@ -26,3 +26,4 @@ import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { Transaction } from "../utils/Transaction.js";
import { StructStore } from "../utils/StructStore.js";
//# sourceMappingURL=Skip.d.ts.map

1
dist/src/structs/Skip.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"Skip.d.ts","sourceRoot":"","sources":["../../../src/structs/Skip.js"],"names":[],"mappings":"AAQA,qCAAqC;AAErC;;GAEG;AACH;IAKE,eAAY;IAEZ;;;OAGG;IACH,iBAHW,IAAI,GACH,OAAO,CAQlB;IAWD;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAMhB;IAED;;;;OAIG;IACH,wBAJW,WAAW,SACX,WAAW,GACV,IAAI,GAAG,MAAM,CAIxB;CACF"}

View File

@ -72,9 +72,9 @@ export class AbstractType<EventType> {
*/
clone(): AbstractType<EventType>;
/**
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
* @param {UpdateEncoderV1 | UpdateEncoderV2} _encoder
*/
_write(encoder: UpdateEncoderV1 | UpdateEncoderV2): void;
_write(_encoder: UpdateEncoderV1 | UpdateEncoderV2): void;
/**
* The first non-deleted item
*/
@ -84,9 +84,9 @@ export class AbstractType<EventType> {
* Must be implemented by each type.
*
* @param {Transaction} transaction
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
* @param {Set<null|string>} _parentSubs Keys changed on this type. `null` if list was modified.
*/
_callObserver(transaction: Transaction, parentSubs: Set<null | string>): void;
_callObserver(transaction: Transaction, _parentSubs: Set<null | string>): void;
/**
* Observe all events that are created on this type.
*
@ -158,3 +158,4 @@ import { YEvent } from "../utils/YEvent.js";
import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
import { Snapshot } from "../utils/Snapshot.js";
//# sourceMappingURL=AbstractType.d.ts.map

1
dist/src/types/AbstractType.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"AbstractType.d.ts","sourceRoot":"","sources":["../../../src/types/AbstractType.js"],"names":[],"mappings":"AAgCA;IACE;;;OAGG;IACH,eAHW,IAAI,SACJ,MAAM,EAOhB;IAHC,QAAU;IACV,cAAkB;IAClB,kBAA8C;CAEjD;AAqDM,mCAHI,aAAa,GAAG,CAAC,SACjB,MAAM,4BAyEhB;AAWM,kDAJI,MAAM,iBAAiB,CAAC,SACxB,MAAM,OACN,MAAM,QAiChB;AAQM,mCAHI,aAAa,GAAG,CAAC,GAChB,MAAM,IAAI,CAAC,CAUtB;AAWM,yFAHI,WAAW,0BAerB;AAED;;;GAGG;AACH;IAEI;;OAEG;IACH,OAFU,IAAI,GAAC,IAAI,CAEF;IACjB;;OAEG;IACH,MAFU,IAAI,MAAM,EAAC,IAAI,CAAC,CAEL;IACrB;;OAEG;IACH,QAFU,IAAI,GAAC,IAAI,CAED;IAClB;;OAEG;IACH,KAFU,GAAG,GAAC,IAAI,CAEH;IACf,gBAAgB;IAChB;;;OAGG;IACH,KAFU,aAAa,SAAS,EAAC,WAAW,CAAC,CAEd;IAC/B;;;OAGG;IACH,MAFU,aAAa,MAAM,OAAO,GAAG,CAAC,CAAC,EAAC,WAAW,CAAC,CAEtB;IAChC;;OAEG;IACH,eAFU,IAAI,GAAG,MAAM,iBAAiB,CAAC,CAEhB;IAG3B;;OAEG;IACH,uCAEC;IAED;;;;;;;;;OASG;IACH,cAHW,GAAG,QACH,IAAI,GAAC,IAAI,QAKnB;IAED;;OAEG;IACH,SAFY,aAAa,SAAS,CAAC,CAIlC;IAED;;OAEG;IACH,SAFY,aAAa,SAAS,CAAC,CAIlC;IAED;;OAEG;IACH,iBAFW,eAAe,GAAG,eAAe,QAEvB;IAErB;;OAEG;IACH,0BAMC;IAED;;;;;;OAMG;IACH,2BAHW,WAAW,eACX,IAAI,IAAI,GAAC,MAAM,CAAC,QAM1B;IAED;;;;OAIG;IACH,kBAFoB,SAAS,QAAE,WAAW,KAAE,IAAI,QAI/C;IAED;;;;OAIG;IACH,sBAFoB,MAAM,OAAO,GAAG,CAAC,CAAC,QAAC,WAAW,KAAE,IAAI,QAIvD;IAED;;;;OAIG;IACH,oBAFoB,SAAS,QAAC,WAAW,KAAE,IAAI,QAI9C;IAED;;;;OAIG;IACH,wBAFoB,MAAM,OAAO,GAAG,CAAC,CAAC,QAAC,WAAW,KAAE,IAAI,QAIvD;IAED;;;OAGG;IACH,UAFY,GAAG,CAEH;CACb;AAWM,oCARI,aAAa,GAAG,CAAC,SACjB,MAAM,OACN,MAAM,GACL,MAAM,GAAG,CAAC,CA+BrB;AASM,sCANI,aAAa,GAAG,CAAC,GAChB,MAAM,GAAG,CAAC,CAkBrB;AAUM,8CAPI,aAAa,GAAG,CAAC,YACjB,QAAQ,GACP,MAAM,GAAG,CAAC,CAkBrB;AAWM,sCANI,aAAa,GAAG,CAAC,YACR,GAAG,QAAC,MAAM,QAAC,GAAG,KAAE,IAAI,QAiBvC;AAWM,wCAPI,aAAa,GAAG,CAAC,qBACN,MAAM,QAAC,aAAa,GAAG,CAAC,aAe7C;AASM,6CANI,aAAa,GAAG,CAAC,GAChB,iBAAiB,GAAG,CAAC,CA6ChC;AAaM,8CAPI,aAAa,GAAG,CAAC,YACR,GAAG,QAAC,MAAM,QAAC,aAAa,GAAG,CAAC,KAAE,IAAI,YAC3C,QAAQ,QAiBlB;AAUM,kCAPI,aAAa,GAAG,CAAC,SACjB,MAAM,GACL,GAAG,CAoBd;AAWM,yDARI,WAAW,UACX,aAAa,GAAG,CAAC,iBACjB,IAAI,kBACJ,MAAM;QAAO,MAAM,GAAC,GAAG;IAAE,MAAM,GAAG,CAAC,GAAC,OAAO,GAAC,MAAM,GAAC,IAAI,GAAC,MAAM,GAAC,UAAU,CAAC,QA0DpF;AAaM,oDARI,WAAW,UACX,aAAa,GAAG,CAAC,SACjB,MAAM,WACN,MAAM;QAAO,MAAM,GAAC,GAAG;IAAE,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,IAAI,GAAC,MAAM,GAAC,UAAU,CAAC,QA4C5E;AAaM,kDAPI,WAAW,UACX,aAAa,GAAG,CAAC,WACjB,MAAM;QAAO,MAAM,GAAC,GAAG;IAAE,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,IAAI,GAAC,MAAM,GAAC,UAAU,CAAC,QAe5E;AAWM,4CARI,WAAW,UACX,aAAa,GAAG,CAAC,SACjB,MAAM,UACN,MAAM,QAyChB;AAUM,2CAPI,WAAW,UACX,aAAa,GAAG,CAAC,OACjB,MAAM,QAUhB;AAWM,wCARI,WAAW,UACX,aAAa,GAAG,CAAC,OACjB,MAAM,SACN,MAAM,GAAC,MAAM,GAAC,IAAI,GAAC,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,UAAU,GAAC,aAAa,GAAG,CAAC,QAoC3E;AAUM,mCAPI,aAAa,GAAG,CAAC,OACjB,MAAM,GACL;QAAO,MAAM,GAAC,GAAG;IAAE,MAAM,GAAC,IAAI,GAAC,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,UAAU,GAAC,aAAa,GAAG,CAAC,GAAC,SAAS,CAQlG;AASM,sCANI,aAAa,GAAG,CAAC;QACT,MAAM,GAAC;YAAO,MAAM,GAAC,GAAG;QAAE,MAAM,GAAC,IAAI,GAAC,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,UAAU,GAAC,aAAa,GAAG,CAAC,GAAC,SAAS;EAgBhH;AAUM,mCAPI,aAAa,GAAG,CAAC,OACjB,MAAM,GACL,OAAO,CAQlB;AAWM,2CARI,aAAa,GAAG,CAAC,OACjB,MAAM,YACN,QAAQ,GACP;QAAO,MAAM,GAAC,GAAG;IAAE,MAAM,GAAC,IAAI,GAAC,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,UAAU,GAAC,aAAa,GAAG,CAAC,GAAC,SAAS,CAWlG;AASM,uCANI,IAAI,MAAM,EAAC,IAAI,CAAC,GACf,iBAAiB,MAAM,GAAG,CAAC,CAAC,CAK4F"}

View File

@ -20,11 +20,13 @@ export class YArrayEvent<T> extends YEvent<YArray<T>> {
export class YArray<T> extends AbstractType<YArrayEvent<T>> implements Iterable<T> {
/**
* Construct a new YArray containing the specified items.
* @template T
* @template {Object<string,any>|Array<any>|number|null|string|Uint8Array} T
* @param {Array<T>} items
* @return {YArray<T>}
*/
static from<T_1>(items: T_1[]): YArray<T_1>;
static from<T_1 extends string | number | any[] | Uint8Array | {
[x: string]: any;
} | null>(items: T_1[]): YArray<T_1>;
/**
* @type {Array<any>?}
* @private
@ -45,7 +47,10 @@ export class YArray<T> extends AbstractType<YArrayEvent<T>> implements Iterable<
* @param {Item} item
*/
_integrate(y: Doc, item: Item): void;
_copy(): YArray<any>;
/**
* @return {YArray<T>}
*/
_copy(): YArray<T>;
/**
* @return {YArray<T>}
*/
@ -127,7 +132,7 @@ export class YArray<T> extends AbstractType<YArrayEvent<T>> implements Iterable<
*/
map<M>(f: (arg0: T, arg1: number, arg2: YArray<T>) => M): M[];
/**
* Executes a provided function on once on overy element of this YArray.
* Executes a provided function once on overy element of this YArray.
*
* @param {function(T,number,YArray<T>):void} f A function to execute on every element of this YArray.
*/
@ -137,7 +142,7 @@ export class YArray<T> extends AbstractType<YArrayEvent<T>> implements Iterable<
*/
[Symbol.iterator](): IterableIterator<T>;
}
export function readYArray(decoder: UpdateDecoderV1 | UpdateDecoderV2): YArray<any>;
export function readYArray(_decoder: UpdateDecoderV1 | UpdateDecoderV2): YArray<any>;
import { YEvent } from "../utils/YEvent.js";
import { Transaction } from "../utils/Transaction.js";
import { AbstractType } from "./AbstractType.js";
@ -146,3 +151,4 @@ import { Doc } from "../utils/Doc.js";
import { Item } from "../structs/Item.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=YArray.d.ts.map

1
dist/src/types/YArray.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YArray.d.ts","sourceRoot":"","sources":["../../../src/types/YArray.js"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH;IACE;;;OAGG;IACH,oBAHW,OAAO,CAAC,CAAC,eACT,WAAW,EAKrB;IADC,0BAA+B;CAElC;AAED;;;;;GAKG;AACH,gFAFyB,CAAC;IAgBxB;;;;;OAKG;IACH;;yCAOC;IAxBC;;;OAGG;IACH,uBAAwB;IACxB;;OAEG;IACH,eAFU,MAAM,iBAAiB,CAAC,CAEX;IAkBzB;;;;;;;;;OASG;IACH,cAHW,GAAG,QACH,IAAI,QAMd;IAED;;OAEG;IACH,SAFY,OAAO,CAAC,CAAC,CAIpB;IAED;;OAEG;IACH,SAFY,OAAO,CAAC,CAAC,CAWpB;IAED,qBAEC;IAaD;;;;;;;;;;;;;;;OAeG;IACH,cAHW,MAAM,WACN,MAAM,CAAC,CAAC,QAUlB;IAED;;;;;;OAMG;IACH,cAJW,MAAM,CAAC,CAAC,QAYlB;IAED;;;;OAIG;IACH,iBAFW,MAAM,CAAC,CAAC,QAIlB;IAED;;;;;OAKG;IACH,cAHW,MAAM,WACN,MAAM,QAUhB;IAED;;;;;OAKG;IACH,WAHW,MAAM,GACL,CAAC,CAIZ;IAED;;;;OAIG;IACH,WAFY,MAAM,CAAC,CAAC,CAInB;IAED;;;;;;OAMG;IACH,6DAFY,MAAM,CAAC,CAAC,CAInB;IAED;;;;OAIG;IACH,UAFY,MAAM,GAAG,CAAC,CAIrB;IAED;;;;;;;;OAQG;IACH,iBAJoB,CAAC,QAAC,MAAM,QAAC,OAAO,CAAC,CAAC,aAMrC;IAED;;;;OAIG;IACH,kBAFoB,CAAC,QAAC,MAAM,QAAC,OAAO,CAAC,CAAC,KAAE,IAAI,QAI3C;IAED;;OAEG;IACH,qBAFY,iBAAiB,CAAC,CAAC,CAI9B;CAQF;AAQM,qCALI,eAAe,GAAG,eAAe,eAKM"}

View File

@ -41,7 +41,10 @@ export class YMap<MapType> extends AbstractType<YMapEvent<MapType>> implements I
* @param {Item} item
*/
_integrate(y: Doc, item: Item): void;
_copy(): YMap<any>;
/**
* @return {YMap<MapType>}
*/
_copy(): YMap<MapType>;
/**
* @return {YMap<MapType>}
*/
@ -92,11 +95,13 @@ export class YMap<MapType> extends AbstractType<YMapEvent<MapType>> implements I
delete(key: string): void;
/**
* Adds or updates an element with a specified key and value.
* @template {MapType} VAL
*
* @param {string} key The key of the element to add to this YMap
* @param {MapType} value The value of the element to add
* @param {VAL} value The value of the element to add
* @return {VAL}
*/
set(key: string, value: MapType): MapType;
set<VAL extends MapType>(key: string, value: VAL): VAL;
/**
* Returns a specified element from this YMap.
*
@ -122,7 +127,7 @@ export class YMap<MapType> extends AbstractType<YMapEvent<MapType>> implements I
*/
[Symbol.iterator](): IterableIterator<any>;
}
export function readYMap(decoder: UpdateDecoderV1 | UpdateDecoderV2): YMap<any>;
export function readYMap(_decoder: UpdateDecoderV1 | UpdateDecoderV2): YMap<any>;
import { YEvent } from "../utils/YEvent.js";
import { Transaction } from "../utils/Transaction.js";
import { AbstractType } from "./AbstractType.js";
@ -130,3 +135,4 @@ import { Doc } from "../utils/Doc.js";
import { Item } from "../structs/Item.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=YMap.d.ts.map

1
dist/src/types/YMap.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YMap.d.ts","sourceRoot":"","sources":["../../../src/types/YMap.js"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH;IACE;;;;OAIG;IACH,kBAJW,KAAK,CAAC,CAAC,eACP,WAAW,QACX,IAAI,GAAG,CAAC,EAKlB;IADC,sBAAuB;CAE1B;AAED;;;;;;GAMG;AACH,wFAFyB,OAAO;IAG9B;;;OAGG;IACH,sBAFW,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,cAe1C;IAXC;;;OAGG;IACH,uBAA0B;IAS5B;;;;;;;;;OASG;IACH,cAHW,GAAG,QACH,IAAI,QAQd;IAED;;OAEG;IACH,SAFY,KAAK,OAAO,CAAC,CAIxB;IAED;;OAEG;IACH,SAFY,KAAK,OAAO,CAAC,CAWxB;IAYD;;;;OAIG;IACH;YAFmB,MAAM,GAAC,GAAG;MAc5B;IAED;;;;OAIG;IACH,mBAEC;IAED;;;;OAIG;IACH,QAFY,iBAAiB,MAAM,CAAC,CAInC;IAED;;;;OAIG;IACH,UAFY,iBAAiB,GAAG,CAAC,CAIhC;IAED;;;;OAIG;IACH,WAFY,iBAAiB,GAAG,CAAC,CAIhC;IAED;;;;OAIG;IACH,kBAFoB,OAAO,QAAC,MAAM,QAAC,KAAK,OAAO,CAAC,KAAE,IAAI,QAQrD;IAWD;;;;OAIG;IACH,YAFW,MAAM,QAUhB;IAED;;;;;;;OAOG;IACH,8BAJW,MAAM,mBAahB;IAED;;;;;OAKG;IACH,SAHW,MAAM,GACL,OAAO,GAAC,SAAS,CAI5B;IAED;;;;;OAKG;IACH,SAHW,MAAM,GACL,OAAO,CAIlB;IAED;;OAEG;IACH,cAUC;IA5ED;;;;OAIG;IACH,qBAFY,iBAAiB,GAAG,CAAC,CAIhC;CA6EF;AAQM,mCALI,eAAe,GAAG,eAAe,aAKE"}

View File

@ -130,7 +130,7 @@ export class YText extends AbstractType<YTextEvent> {
* Apply a {@link Delta} on this shared YText type.
*
* @param {any} delta The changes to apply on this element.
* @param {object} [opts]
* @param {object} opts
* @param {boolean} [opts.sanitize] Sanitize input delta. Removes ending newlines if set to true.
*
*
@ -138,7 +138,7 @@ export class YText extends AbstractType<YTextEvent> {
*/
public applyDelta(delta: any, { sanitize }?: {
sanitize?: boolean | undefined;
} | undefined): void;
}): void;
/**
* Returns the Delta representation of this YText type.
*
@ -230,16 +230,15 @@ export class YText extends AbstractType<YTextEvent> {
*
* @note Xml-Text nodes don't have attributes. You can use this feature to assign properties to complete text-blocks.
*
* @param {Snapshot} [snapshot]
* @return {Object<string, any>} A JSON Object that describes the attributes.
*
* @public
*/
public getAttributes(snapshot?: Snapshot | undefined): {
public getAttributes(): {
[x: string]: any;
};
}
export function readYText(decoder: UpdateDecoderV1 | UpdateDecoderV2): YText;
export function readYText(_decoder: UpdateDecoderV1 | UpdateDecoderV2): YText;
/**
* Attributes that can be assigned to a selection of text.
*/
@ -254,3 +253,4 @@ import { Snapshot } from "../utils/Snapshot.js";
import { ID } from "../utils/ID.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=YText.d.ts.map

1
dist/src/types/YText.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YText.d.ts","sourceRoot":"","sources":["../../../src/types/YText.js"],"names":[],"mappings":"AA2CA;IACE;;;;;OAKG;IACH,kBALW,IAAI,GAAC,IAAI,SACT,IAAI,GAAC,IAAI,SACT,MAAM,qBACN,IAAI,MAAM,EAAC,GAAG,CAAC,EAOzB;IAJC,kBAAgB;IAChB,mBAAkB;IAClB,cAAkB;IAClB,oCAA0C;IAG5C;;OAEG;IACH,gBAkBC;CACF;AAqXM,6CAHI,KAAK,GACJ,MAAM,CA0BjB;AAyCD;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;IAUI;AAEJ;;;GAGG;AACH;IACE;;;;OAIG;IACH,mBAJW,KAAK,eACL,WAAW,QACX,IAAI,GAAG,CAAC,EAsBlB;IAlBC;;;;OAIG;IACH,yBAA6B;IAC7B;;;OAGG;IACH,aAFU,IAAI,MAAM,CAAC,CAEO;IA6B9B;;;;;;;OAOG;IACH;;;;;;;QAwLC;CACF;AAED;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,yCAWC;IATC;;;OAGG;IACH,iBAF2B,IAAI,WAE2C;IAC1E;;OAEG;IACH,eAFU,MAAM,iBAAiB,CAAC,CAEX;IAGzB;;;;OAIG;IACH,qBAEC;IAED;;;OAGG;IACH,cAHW,GAAG,QACH,IAAI,QAUd;IAED,eAEC;IAED;;OAEG;IACH,SAFY,KAAK,CAMhB;IAmFD;;;;;OAKG;IACH,iBAHY,MAAM,CAKjB;IAED;;;;;;;;;OASG;IACH,yBAPW,GAAG;QAEY,QAAQ;aA+BjC;IAED;;;;;;;;;OASG;IACH,8GALoB,SAAS,GAAG,OAAO,QAAE,EAAE,KAAE,GAAG,gBACpC,GAAG,CA0Gd;IAED;;;;;;;;;OASG;IACH,qBAPW,MAAM,uDAyBhB;IAED;;;;;;;;;OASG;IACH,0BAPW,MAAM,SACN,MAAM,GAAG,aAAa,GAAG,CAAC,eAC1B,cAAc,QAexB;IAED;;;;;;;OAOG;IACH,qBALW,MAAM,UACN,MAAM,QAgBhB;IAED;;;;;;;;;OASG;IACH,qBAPW,MAAM,UACN,MAAM,cACN,cAAc,QAqBxB;IAED;;;;;;;;OAQG;IACH,oDAQC;IAED;;;;;;;;;OASG;IACH,2DAJW,GAAG,QAYb;IAED;;;;;;;;;;OAUG;IACH,4CAJY,GAAG,CAMd;IAED;;;;;;;;OAQG;IACH;YAJmB,MAAM,GAAE,GAAG;MAM7B;CAQF;AASM,oCANI,eAAe,GAAG,eAAe,GAChC,KAAK,CAK+B;;;;6BAluBlC,MAAM"}

View File

@ -1,11 +1,20 @@
/**
* @typedef {Object|number|null|Array<any>|string|Uint8Array|AbstractType<any>} ValueTypes
*/
/**
* An YXmlElement imitates the behavior of a
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Element|Dom Element}.
*
* * An YXmlElement has attributes (key value pairs)
* * An YXmlElement has childElements that must inherit from YXmlElement
*
* @template {{ [key: string]: ValueTypes }} [KV={ [key: string]: string }]
*/
export class YXmlElement extends YXmlFragment {
export class YXmlElement<KV extends {
[key: string]: ValueTypes;
} = {
[key: string]: string;
}> extends YXmlFragment {
constructor(nodeName?: string);
nodeName: string;
/**
@ -15,11 +24,15 @@ export class YXmlElement extends YXmlFragment {
/**
* @type {YXmlElement|YXmlText|null}
*/
get nextSibling(): YXmlElement | YXmlText | null;
get nextSibling(): YXmlElement<{
[key: string]: string;
}> | YXmlText | null;
/**
* @type {YXmlElement|YXmlText|null}
*/
get prevSibling(): YXmlElement | YXmlText | null;
get prevSibling(): YXmlElement<{
[key: string]: string;
}> | YXmlText | null;
/**
* Creates an Item with the same effect as this Item (without position effect)
*
@ -27,13 +40,13 @@ export class YXmlElement extends YXmlFragment {
*/
_copy(): YXmlElement;
/**
* @return {YXmlElement}
* @return {YXmlElement<KV>}
*/
clone(): YXmlElement;
clone(): YXmlElement<KV>;
/**
* Removes an attribute from this YXmlElement.
*
* @param {String} attributeName The attribute name that is to be removed.
* @param {string} attributeName The attribute name that is to be removed.
*
* @public
*/
@ -41,26 +54,30 @@ export class YXmlElement extends YXmlFragment {
/**
* Sets or updates an attribute.
*
* @param {String} attributeName The attribute name that is to be set.
* @param {String} attributeValue The attribute value that is to be set.
* @template {keyof KV & string} KEY
*
* @param {KEY} attributeName The attribute name that is to be set.
* @param {KV[KEY]} attributeValue The attribute value that is to be set.
*
* @public
*/
public setAttribute(attributeName: string, attributeValue: string): void;
public setAttribute<KEY extends keyof KV & string>(attributeName: KEY, attributeValue: KV[KEY]): void;
/**
* Returns an attribute value that belongs to the attribute name.
*
* @param {String} attributeName The attribute name that identifies the
* @template {keyof KV & string} KEY
*
* @param {KEY} attributeName The attribute name that identifies the
* queried value.
* @return {String} The queried attribute value.
* @return {KV[KEY]|undefined} The queried attribute value.
*
* @public
*/
public getAttribute(attributeName: string): string;
public getAttribute<KEY_1 extends keyof KV & string>(attributeName: KEY_1): KV[KEY_1] | undefined;
/**
* Returns whether an attribute exists
*
* @param {String} attributeName The attribute name to check for existence.
* @param {string} attributeName The attribute name to check for existence.
* @return {boolean} whether the attribute exists.
*
* @public
@ -69,16 +86,17 @@ export class YXmlElement extends YXmlFragment {
/**
* Returns all attribute name/value pairs in a JSON Object.
*
* @return {Object<string, any>} A JSON Object that describes the attributes.
* @return {{ [Key in Extract<keyof KV,string>]?: KV[Key]}} A JSON Object that describes the attributes.
*
* @public
*/
public getAttributes(): {
[x: string]: any;
};
public getAttributes(): { [Key in Extract<keyof KV, string>]?: KV[Key] | undefined; };
}
export function readYXmlElement(decoder: UpdateDecoderV1 | UpdateDecoderV2): YXmlElement;
export type ValueTypes = Object | number | null | Array<any> | string | Uint8Array | AbstractType<any>;
import { YXmlFragment } from "./YXmlFragment.js";
import { YXmlText } from "./YXmlText.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
import { AbstractType } from "./AbstractType.js";
//# sourceMappingURL=YXmlElement.d.ts.map

1
dist/src/types/YXmlElement.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YXmlElement.d.ts","sourceRoot":"","sources":["../../../src/types/YXmlElement.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;;;;;GAQG;AACH;;;;;IACE,+BAOC;IALC,iBAAwB;IACxB;;OAEG;IACH,cAFU,IAAI,MAAM,EAAE,GAAG,CAAC,GAAC,IAAI,CAEF;IAG/B;;OAEG;IACH;;yBAGC;IAED;;OAEG;IACH;;yBAGC;IAoBD;;;;OAIG;IACH,SAFY,WAAW,CAItB;IAED;;OAEG;IACH,SAFY,YAAY,EAAE,CAAC,CAgB1B;IA6BD;;;;;;OAMG;IACH,sCAJW,MAAM,QAYhB;IAED;;;;;;;;;OASG;IACH,sGAQC;IAED;;;;;;;;;;OAUG;IACH,kGAEC;IAED;;;;;;;OAOG;IACH,mCALW,MAAM,GACL,OAAO,CAMlB;IAED;;;;;;OAMG;IACH,sFAEC;CA+CF;AAQM,yCALI,eAAe,GAAG,eAAe,GAChC,WAAW,CAIqD;yBA/O/D,MAAM,GAAC,MAAM,GAAC,IAAI,GAAC,MAAM,GAAG,CAAC,GAAC,MAAM,GAAC,UAAU,GAAC,aAAa,GAAG,CAAC"}

View File

@ -2,7 +2,9 @@
* @extends YEvent<YXmlElement|YXmlText|YXmlFragment>
* An Event that describes changes on a YXml Element or Yxml Fragment
*/
export class YXmlEvent extends YEvent<YXmlFragment | YXmlElement | YXmlText> {
export class YXmlEvent extends YEvent<YXmlFragment | YXmlElement<{
[key: string]: string;
}> | YXmlText> {
/**
* @param {YXmlElement|YXmlText|YXmlFragment} target The target on which the event is created.
* @param {Set<string|null>} subs The set of changed attributes. `null` is included if the
@ -28,3 +30,4 @@ import { YXmlElement } from "./YXmlElement.js";
import { YXmlText } from "./YXmlText.js";
import { YEvent } from "../utils/YEvent.js";
import { Transaction } from "../utils/Transaction.js";
//# sourceMappingURL=YXmlEvent.d.ts.map

1
dist/src/types/YXmlEvent.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YXmlEvent.d.ts","sourceRoot":"","sources":["../../../src/types/YXmlEvent.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;;;IACE;;;;;;OAMG;IACH,oBANW,WAAW,GAAC,QAAQ,GAAC,YAAY,QACjC,IAAI,MAAM,GAAC,IAAI,CAAC,eAEhB,WAAW,EAuBrB;IAlBC;;;;OAIG;IACH,yBAA6B;IAC7B;;;OAGG;IACH,mBAFU,IAAI,MAAM,CAAC,CAEa;CASrC"}

View File

@ -33,7 +33,9 @@ export class YXmlTreeWalker implements Iterable<YXmlElement | YXmlText | YXmlEle
*/
constructor(root: YXmlFragment | YXmlElement, f?: ((arg0: AbstractType<any>) => boolean) | undefined);
_filter: (arg0: AbstractType<any>) => boolean;
_root: YXmlFragment | YXmlElement;
_root: YXmlFragment | YXmlElement<{
[key: string]: string;
}>;
/**
* @type {Item}
*/
@ -67,7 +69,9 @@ export class YXmlFragment extends AbstractType<YXmlEvent> {
/**
* @type {YXmlElement|YXmlText|null}
*/
get firstChild(): YXmlElement | YXmlText | null;
get firstChild(): YXmlElement<{
[key: string]: string;
}> | YXmlText | null;
/**
* Integrate this type into the Yjs instance.
*
@ -218,11 +222,11 @@ export class YXmlFragment extends AbstractType<YXmlEvent> {
/**
* Executes a provided function on once on overy child element.
*
* @param {function(YXmlElement|YXmlText,number, typeof this):void} f A function to execute on every element of this YArray.
* @param {function(YXmlElement|YXmlText,number, typeof self):void} f A function to execute on every element of this YArray.
*/
forEach(f: (arg0: YXmlElement | YXmlText, arg1: number, arg2: YXmlFragment) => void): void;
forEach(f: (arg0: YXmlElement | YXmlText, arg1: number, arg2: typeof self) => void): void;
}
export function readYXmlFragment(decoder: UpdateDecoderV1 | UpdateDecoderV2): YXmlFragment;
export function readYXmlFragment(_decoder: UpdateDecoderV1 | UpdateDecoderV2): YXmlFragment;
/**
* Define the elements to which a set of CSS queries apply.
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors|CSS_Selectors}
@ -241,3 +245,4 @@ import { YXmlEvent } from "./YXmlEvent.js";
import { Doc } from "../utils/Doc.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=YXmlFragment.d.ts.map

1
dist/src/types/YXmlFragment.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YXmlFragment.d.ts","sourceRoot":"","sources":["../../../src/types/YXmlFragment.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;GAUG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AACH,gDAFyB,WAAW,GAAC,QAAQ,GAAC,WAAW,GAAC,QAAQ;IAGhE;;;OAGG;IACH,kBAHW,YAAY,GAAG,WAAW,cACjB,aAAa,GAAG,CAAC,KAAE,OAAO,eAU7C;IAPC,gBAHkB,aAAa,GAAG,CAAC,KAAE,OAAO,CAG5B;IAChB;;OAAiB;IACjB;;OAEG;IACH,cAFU,IAAI,CAEuC;IACrD,oBAAsB;IAOxB;;;;;;OAMG;IACH,eAJY,eAAe,WAAW,GAAC,QAAQ,GAAC,QAAQ,CAAC,CAsCxD;IA7CD,oCAEC;CA4CF;AAED;;;;;;;;GAQG;AACH;IACE,cAMC;IAJC;;OAEG;IACH,gBAFU,MAAM,GAAG,CAAC,GAAC,IAAI,CAED;IAG1B;;OAEG;IACH;;yBAGC;IAED;;;;;;;;;OASG;IACH,cAHW,GAAG,QACH,IAAI,QAMd;IAED,sBAEC;IAED;;OAEG;IACH,SAFY,YAAY,CAOvB;IAED,qBAEC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,uCAPoB,aAAa,GAAG,CAAC,KAAE,OAAO,GAGlC,cAAc,CAMzB;IAED;;;;;;;;;;;;;;OAcG;IACH,4BALW,YAAY,GACX,WAAW,GAAC,QAAQ,GAAC,QAAQ,GAAC,IAAI,CAc7C;IAED;;;;;;;;;;OAUG;IACH,+BALW,YAAY,GACX,MAAM,WAAW,GAAC,QAAQ,GAAC,QAAQ,GAAC,IAAI,CAAC,CAQpD;IAqBD;;OAEG;IACH,UAFY,MAAM,CAIjB;IAED;;;;;;;;;;;;;;OAcG;IACH;;6BAPW,GAAG,GAGF,IAAI,CAaf;IAED;;;;;;;;;OASG;IACH,cAHW,MAAM,WACN,MAAM,WAAW,GAAC,QAAQ,CAAC,QAWrC;IAED;;;;;;;;;OASG;IACH,iBAHW,IAAI,GAAC,IAAI,GAAC,WAAW,GAAC,QAAQ,WAC9B,MAAM,WAAW,GAAC,QAAQ,CAAC,QAgBrC;IAED;;;;;OAKG;IACH,cAHW,MAAM,qCAYhB;IAED;;;;OAIG;IACH,WAFY,MAAM,WAAW,GAAC,QAAQ,GAAC,QAAQ,CAAC,CAI/C;IAED;;;;OAIG;IACH,cAFW,MAAM,WAAW,GAAC,QAAQ,CAAC,QAIrC;IAED;;;;OAIG;IACH,iBAFW,MAAM,WAAW,GAAC,QAAQ,CAAC,QAIrC;IAED;;;;;OAKG;IACH,WAHW,MAAM,GACL,WAAW,GAAC,QAAQ,CAI/B;IAED;;;;;;OAMG;IACH,6DAFY,MAAM,WAAW,GAAC,QAAQ,CAAC,CAItC;IAED;;;;OAIG;IACH,kBAFoB,WAAW,GAAC,QAAQ,QAAC,MAAM,QAAE,WAAW,KAAE,IAAI,QAIjE;CAaF;AASM,2CANI,eAAe,GAAG,eAAe,GAChC,YAAY,CAKsC;;;;;2BAlZjD,MAAM;;;;mCAOR,MAAM,gCAEL,OAAO"}

View File

@ -43,3 +43,4 @@ export function readYXmlHook(decoder: UpdateDecoderV1 | UpdateDecoderV2): YXmlHo
import { YMap } from "./YMap.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=YXmlHook.d.ts.map

1
dist/src/types/YXmlHook.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YXmlHook.d.ts","sourceRoot":"","sources":["../../../src/types/YXmlHook.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH;IACE;;OAEG;IACH,sBAFW,MAAM,EAQhB;IAJC;;OAEG;IACH,UAFU,MAAM,CAEQ;IAG1B;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,SAFY,QAAQ,CAQnB;IAED;;;;;;;;;;;;;;OAcG;IACH;;6BAPW,GAAG,GAGF,OAAO,CAiBlB;CAcF;AASM,sCANI,eAAe,GAAG,eAAe,GAChC,QAAQ,CAMa"}

View File

@ -6,11 +6,15 @@ export class YXmlText extends YText {
/**
* @type {YXmlElement|YXmlText|null}
*/
get nextSibling(): YXmlElement | YXmlText | null;
get nextSibling(): YXmlElement<{
[key: string]: string;
}> | YXmlText | null;
/**
* @type {YXmlElement|YXmlText|null}
*/
get prevSibling(): YXmlElement | YXmlText | null;
get prevSibling(): YXmlElement<{
[key: string]: string;
}> | YXmlText | null;
_copy(): YXmlText;
/**
* @return {YXmlText}
@ -41,3 +45,4 @@ import { YText } from "./YText.js";
import { YXmlElement } from "./YXmlElement.js";
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
//# sourceMappingURL=YXmlText.d.ts.map

1
dist/src/types/YXmlText.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YXmlText.d.ts","sourceRoot":"","sources":["../../../src/types/YXmlText.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACE;;OAEG;IACH;;yBAGC;IAED;;OAEG;IACH;;yBAGC;IAED,kBAEC;IAED;;OAEG;IACH,SAFY,QAAQ,CAMnB;IAED;;;;;;;;;;;;;;OAcG;IACH;;6BAPW,GAAG,GAGF,IAAI,CAUf;IAED,gBAgCC;CAeF;AASM,sCANI,eAAe,GAAG,eAAe,GAChC,QAAQ,CAKiC"}

View File

@ -17,3 +17,4 @@ export class AbstractConnector extends Observable<any> {
}
import { Observable } from "lib0/observable";
import { Doc } from "./Doc.js";
//# sourceMappingURL=AbstractConnector.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"AbstractConnector.d.ts","sourceRoot":"","sources":["../../../src/utils/AbstractConnector.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH;IACE;;;OAGG;IACH,kBAHW,GAAG,aACH,GAAG,EAMb;IAFC,SAAe;IACf,eAA0B;CAE7B"}

View File

@ -46,3 +46,4 @@ import { DSEncoderV1 } from "./UpdateEncoder.js";
import { DSEncoderV2 } from "./UpdateEncoder.js";
import { DSDecoderV1 } from "./UpdateDecoder.js";
import { DSDecoderV2 } from "./UpdateDecoder.js";
//# sourceMappingURL=DeleteSet.d.ts.map

1
dist/src/utils/DeleteSet.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"DeleteSet.d.ts","sourceRoot":"","sources":["../../../src/utils/DeleteSet.js"],"names":[],"mappings":"AAgBA;IACE;;;OAGG;IACH,mBAHW,MAAM,OACN,MAAM,EAWhB;IARC;;OAEG;IACH,OAFU,MAAM,CAEE;IAClB;;OAEG;IACH,KAFU,MAAM,CAEF;CAEjB;AAED;;;;;;GAMG;AACH;IAEI;;OAEG;IACH,SAFU,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC,CAAC,CAEf;CAE3B;AAWM,mDANI,WAAW,MACX,SAAS,YACA,EAAE,GAAC,IAAI,KAAE,IAAI,QAW7B;AAUG,iCAPI,MAAM,UAAU,CAAC,SACjB,MAAM,GACL,MAAM,GAAC,IAAI,CAsBtB;AAUM,8BAPI,SAAS,MACT,EAAE,GACD,OAAO,CAQlB;AAQM,0CALI,SAAS,QA2BnB;AAMM,qCAHI,MAAM,SAAS,CAAC,GACf,SAAS,CAsBpB;AAWM,mCARI,SAAS,UACT,MAAM,SACN,MAAM,UACN,MAAM,QAOhB;AAEM,6CAA6C;AAS7C,mDANI,WAAW,GACV,SAAS,CA8BpB;AASM,wCANI,WAAW,GAAG,WAAW,MACzB,SAAS,QAsBnB;AASM,uCANI,WAAW,GAAG,WAAW,GACxB,SAAS,CAoBpB;AAeM,+CARI,WAAW,GAAG,WAAW,eACzB,WAAW,SACX,WAAW,GACV,UAAU,GAAC,IAAI,CA2D1B"}

View File

@ -15,9 +15,9 @@ export const generateNewClientId: typeof random.uint32;
*/
export class Doc extends Observable<string> {
/**
* @param {DocOpts} [opts] configuration
* @param {DocOpts} opts configuration
*/
constructor({ guid, collectionid, gc, gcFilter, meta, autoLoad, shouldLoad }?: DocOpts | undefined);
constructor({ guid, collectionid, gc, gcFilter, meta, autoLoad, shouldLoad }?: DocOpts);
gc: boolean;
gcFilter: (arg0: Item) => boolean;
clientID: number;
@ -48,8 +48,26 @@ export class Doc extends Observable<string> {
shouldLoad: boolean;
autoLoad: boolean;
meta: any;
/**
* This is set to true when the persistence provider loaded the document from the database or when the `sync` event fires.
* Note that not all providers implement this feature. Provider authors are encouraged to fire the `load` event when the doc content is loaded from the database.
*
* @type {boolean}
*/
isLoaded: boolean;
/**
* This is set to true when the connection provider has successfully synced with a backend.
* Note that when using peer-to-peer providers this event may not provide very useful.
* Also note that not all providers implement this feature. Provider authors are encouraged to fire
* the `sync` event when the doc has been synced (with `true` as a parameter) or if connection is
* lost (with false as a parameter).
*/
isSynced: boolean;
/**
* Promise that resolves once the document has been loaded from a presistence provider.
*/
whenLoaded: Promise<any>;
whenSynced: Promise<any>;
/**
* Notify the parent document that you request to load data into this subdocument (if it is a subdocument).
*
@ -66,12 +84,14 @@ export class Doc extends Observable<string> {
* that happened inside of the transaction are sent as one message to the
* other peers.
*
* @param {function(Transaction):void} f The function that should be executed as a transaction
* @template T
* @param {function(Transaction):T} f The function that should be executed as a transaction
* @param {any} [origin] Origin of who started the transaction. Will be stored on transaction.origin
* @return T
*
* @public
*/
public transact(f: (arg0: Transaction) => void, origin?: any): void;
public transact<T>(f: (arg0: Transaction) => T, origin?: any): T;
/**
* Define a shared data type.
*
@ -106,7 +126,7 @@ export class Doc extends Observable<string> {
*
* @public
*/
public getArray<T>(name?: string | undefined): YArray<T>;
public getArray<T_1>(name?: string | undefined): YArray<T_1>;
/**
* @param {string} [name]
* @return {YText}
@ -121,7 +141,7 @@ export class Doc extends Observable<string> {
*
* @public
*/
public getMap<T_1>(name?: string | undefined): YMap<T_1>;
public getMap<T_2>(name?: string | undefined): YMap<T_2>;
/**
* @param {string} [name]
* @return {YXmlFragment}
@ -187,3 +207,4 @@ import { YArray } from "../types/YArray.js";
import { YText } from "../types/YText.js";
import { YMap } from "../types/YMap.js";
import { YXmlFragment } from "../types/YXmlFragment.js";
//# sourceMappingURL=Doc.d.ts.map

1
dist/src/utils/Doc.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"Doc.d.ts","sourceRoot":"","sources":["../../../src/utils/Doc.js"],"names":[],"mappings":"AAqBA,uDAAgD;AAEhD;;;;;;;;;GASG;AAEH;;;GAGG;AACH;IACE;;OAEG;IACH,+EAFW,OAAO,EAqFjB;IAjFC,YAAY;IACZ,iBAnBmB,IAAI,KAAE,OAAO,CAmBR;IACxB,iBAAqC;IACrC,aAAgB;IAChB,4BAAgC;IAChC;;OAEG;IACH,OAFU,IAAI,MAAM,EAAE,aAAa,OAAO,GAAG,CAAC,CAAC,CAAC,CAE1B;IACtB,mBAA8B;IAC9B;;OAEG;IACH,cAFU,WAAW,GAAG,IAAI,CAEJ;IACxB;;OAEG;IACH,sBAFU,MAAM,WAAW,CAAC,CAEE;IAC9B;;OAEG;IACH,SAFU,IAAI,GAAG,CAAC,CAEM;IACxB;;;OAGG;IACH,OAFU,IAAI,QAEG;IACjB,oBAA4B;IAC5B,kBAAwB;IACxB,UAAgB;IAChB;;;;;OAKG;IACH,UAFU,OAAO,CAEI;IACrB;;;;;;OAMG;IACH,kBAAqB;IACrB;;OAEG;IACH,yBAKE;IAeE,yBAAwC;IAe9C;;;;;;OAMG;IACH,aAQC;IAED,uBAEC;IAED,8BAEC;IAED;;;;;;;;;;;;OAYG;IACH,6BANoB,WAAW,iBACpB,GAAG,KAOb;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,iBANW,MAAM,+BAEL,aAAa,GAAG,CAAC,CAoC5B;IAED;;;;;;OAMG;IACH,6DAGC;IAED;;;;;OAKG;IACH,2CAJY,KAAK,CAOhB;IAED;;;;;;OAMG;IACH,yDAGC;IAED;;;;;OAKG;IACH,kDAJY,YAAY,CAOvB;IAED;;;;;;;OAOG;IACH;YAFmB,MAAM,GAAE,GAAG;MAa7B;IA0BD;;;OAGG;IACH,cAHW,MAAM,eACM,GAAG,OAAE,GAAG,QAI9B;CASF;;;;;;;;;uBArTsB,IAAI,KAAE,OAAO;;;;;;;;;;;;WAGtB,GAAG"}

View File

@ -16,3 +16,4 @@ export function addEventHandlerListener<ARG0, ARG1>(eventHandler: EventHandler<A
export function removeEventHandlerListener<ARG0, ARG1>(eventHandler: EventHandler<ARG0, ARG1>, f: (arg0: ARG0, arg1: ARG1) => void): void;
export function removeAllEventHandlerListeners<ARG0, ARG1>(eventHandler: EventHandler<ARG0, ARG1>): void;
export function callEventHandlerListeners<ARG0, ARG1>(eventHandler: EventHandler<ARG0, ARG1>, arg0: ARG0, arg1: ARG1): void;
//# sourceMappingURL=EventHandler.d.ts.map

1
dist/src/utils/EventHandler.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"EventHandler.d.ts","sourceRoot":"","sources":["../../../src/utils/EventHandler.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH;IAEI;;OAEG;IACH,WAFyB,IAAI,QAAE,IAAI,KAAE,IAAI,IAE9B;CAEd;AASM,2EAAmD;AAanD,2HALwB,IAAI,UAMX;AAajB,8HANwB,IAAI,QAalC;AAUM,yGAEN;AAcM,4HACkC"}

View File

@ -23,3 +23,4 @@ export function findRootTypeKey(type: AbstractType<any>): string;
import * as encoding from "lib0/encoding";
import * as decoding from "lib0/decoding";
import { AbstractType } from "../types/AbstractType.js";
//# sourceMappingURL=ID.d.ts.map

1
dist/src/utils/ID.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../../../src/utils/ID.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,oBAHW,MAAM,SACN,MAAM,EAahB;IAVC;;;OAGG;IACH,QAFU,MAAM,CAEI;IACpB;;;OAGG;IACH,OAFU,MAAM,CAEE;CAErB;AASM,8BANI,EAAE,GAAG,IAAI,KACT,EAAE,GAAG,IAAI,GACR,OAAO,CAIsG;AASlH,iCANI,MAAM,SACN,MAAM,MAK+C;AASzD,iCANI,SAAS,OAAO,MAChB,EAAE,QAQZ;AAaM,gCANI,SAAS,OAAO,GACf,EAAE,CAM0D;AAajE,sCANI,aAAa,GAAG,CAAC,GAChB,MAAM,CAajB"}

View File

@ -17,12 +17,12 @@ export class PermanentUserData {
* @param {Doc} doc
* @param {number} clientid
* @param {string} userDescription
* @param {Object} [conf]
* @param {Object} conf
* @param {function(Transaction, DeleteSet):boolean} [conf.filter]
*/
setUserMapping(doc: Doc, clientid: number, userDescription: string, { filter }?: {
filter?: ((arg0: Transaction, arg1: DeleteSet) => boolean) | undefined;
} | undefined): void;
}): void;
/**
* @param {number} clientid
* @return {any}
@ -39,3 +39,4 @@ import { Doc } from "./Doc.js";
import { DeleteSet } from "./DeleteSet.js";
import { Transaction } from "./Transaction.js";
import { ID } from "./ID.js";
//# sourceMappingURL=PermanentUserData.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"PermanentUserData.d.ts","sourceRoot":"","sources":["../../../src/utils/PermanentUserData.js"],"names":[],"mappings":"AAcA;IACE;;;OAGG;IACH,iBAHW,GAAG,qCAmDb;IA3CC,kBAAuB;IACvB,SAAc;IACd;;;;OAIG;IACH,SAFU,IAAI,MAAM,EAAC,MAAM,CAAC,CAEJ;IACxB,4BAAc;IAqChB;;;;;;OAMG;IACH,oBANW,GAAG,YACH,MAAM,mBACN,MAAM;QAE0C,MAAM,WAA7C,WAAW,QAAE,SAAS,KAAE,OAAO;aA6ClD;IAED;;;OAGG;IACH,4BAHW,MAAM,GACL,GAAG,CAId;IAED;;;OAGG;IACH,uBAHW,EAAE,GACD,MAAM,GAAG,IAAI,CASxB;CACF"}

View File

@ -88,3 +88,4 @@ import { AbstractType } from "../types/AbstractType.js";
import * as encoding from "lib0/encoding";
import * as decoding from "lib0/decoding";
import { Doc } from "./Doc.js";
//# sourceMappingURL=RelativePosition.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"RelativePosition.d.ts","sourceRoot":"","sources":["../../../src/utils/RelativePosition.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IACE;;;;;OAKG;IACH,kBALW,EAAE,GAAC,IAAI,SACP,MAAM,GAAC,IAAI,QACX,EAAE,GAAC,IAAI,UACP,MAAM,EA2BhB;IAxBC;;OAEG;IACH,MAFU,EAAE,GAAC,IAAI,CAED;IAChB;;OAEG;IACH,OAFU,MAAM,GAAC,IAAI,CAEH;IAClB;;OAEG;IACH,MAFU,EAAE,GAAG,IAAI,CAEH;IAChB;;;;;;;;;;OAUG;IACH,OAFU,MAAM,CAEE;CAErB;AAMM,6CAHI,gBAAgB,GACf,GAAG,CAiBd;AAQM,qDALI,GAAG,GACF,gBAAgB,CAIuP;AAEnR;IACE;;;;OAIG;IACH,kBAJW,aAAa,GAAG,CAAC,SACjB,MAAM,8BAahB;IATC;;OAEG;IACH,MAFU,aAAa,GAAG,CAAC,CAEX;IAChB;;OAEG;IACH,OAFU,MAAM,CAEE;IAClB,cAAkB;CAErB;AASM,6CANI,aAAa,GAAG,CAAC,SACjB,MAAM,gDAKyF;AASnG,6CANI,aAAa,GAAG,CAAC,QACjB,EAAE,GAAC,IAAI,gDAcjB;AAYM,0DAPI,aAAa,GAAG,CAAC,SACjB,MAAM,+BAEL,gBAAgB,CA4B3B;AAQM,+CALI,SAAS,OAAO,QAChB,gBAAgB,oBAsB1B;AAMM,6CAHI,gBAAgB,GACf,UAAU,CAMrB;AAQM,8CALI,SAAS,OAAO,GACf,gBAAgB,CAwB3B;AAMM,mDAHI,UAAU,GACT,gBAAgB,CAEgF;AASrG,iEANI,gBAAgB,OAChB,GAAG,GACF,gBAAgB,GAAC,IAAI,CAyDhC;AASM,4CANI,gBAAgB,GAAC,IAAI,KACrB,gBAAgB,GAAC,IAAI,GACpB,OAAO,CAMlB"}

View File

@ -33,3 +33,4 @@ import { DSDecoderV2 } from "./UpdateDecoder.js";
import { Doc } from "./Doc.js";
import { Item } from "../structs/Item.js";
import { Transaction } from "./Transaction.js";
//# sourceMappingURL=Snapshot.d.ts.map

1
dist/src/utils/Snapshot.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"Snapshot.d.ts","sourceRoot":"","sources":["../../../src/utils/Snapshot.js"],"names":[],"mappings":"AAyBA;IACE;;;OAGG;IACH,gBAHW,SAAS,MACT,IAAI,MAAM,EAAC,MAAM,CAAC,EAY5B;IATC;;OAEG;IACH,IAFU,SAAS,CAEP;IACZ;;;OAGG;IACH,IAFU,IAAI,MAAM,EAAC,MAAM,CAAC,CAEhB;CAEf;AAOM,sCAJI,QAAQ,SACR,QAAQ,GACP,OAAO,CA6BlB;AAOM,2CAJI,QAAQ,oDAEP,UAAU,CAMrB;AAMM,yCAHI,QAAQ,GACP,UAAU,CAEiE;AAOhF,sCAJI,UAAU,oDAET,QAAQ,CAInB;AAMM,oCAHI,UAAU,GACT,QAAQ,CAEoF;AAOjG,mCAJI,SAAS,MACT,IAAI,MAAM,EAAC,MAAM,CAAC,GACjB,QAAQ,CAE0C;AAE9D,qCAAyE;AAMlE,8BAHI,GAAG,GACF,QAAQ,CAE+F;AAS5G,gCANI,IAAI,YACJ,QAAQ,GAAC,SAAS,WAOoG;AAM1H,0DAHI,WAAW,YACX,QAAQ,QAelB;AAgBM,iDALI,GAAG,YACH,QAAQ,6BAEP,GAAG,CA0Cd"}

View File

@ -31,3 +31,4 @@ import { GC } from "../structs/GC.js";
import { Item } from "../structs/Item.js";
import { ID } from "./ID.js";
import { Transaction } from "./Transaction.js";
//# sourceMappingURL=StructStore.d.ts.map

1
dist/src/utils/StructStore.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"StructStore.d.ts","sourceRoot":"","sources":["../../../src/utils/StructStore.js"],"names":[],"mappings":"AAUA;IAEI;;OAEG;IACH,SAFU,IAAI,MAAM,EAAC,MAAM,EAAE,GAAC,IAAI,CAAC,CAAC,CAEZ;IACxB;;OAEG;IACH;iBAF4B,IAAI,MAAM,EAAE,MAAM,CAAC;gBAAU,UAAU;aAEzC;IAC1B;;OAEG;IACH,WAFU,IAAI,GAAG,UAAU,CAEN;CAExB;AAYM,sCANI,WAAW,GACV,IAAI,MAAM,EAAC,MAAM,CAAC,CAY7B;AAUM,gCAPI,WAAW,UACX,MAAM,GACL,MAAM,CAYjB;AAQM,sCALI,WAAW,QAerB;AASM,iCANI,WAAW,UACX,EAAE,GAAC,IAAI,QAiBjB;AAWM,qCAPI,MAAM,IAAI,GAAC,EAAE,CAAC,SACd,MAAM,GACL,MAAM,CAiCjB;AAYM,4BAPI,WAAW,MACX,EAAE,GACD,EAAE,GAAC,IAAI,CAYlB;AAOiC,8BAAS,WAAW,QAAC,EAAE,GAAE,IAAI,CAAA;AAOxD,iDAJI,WAAW,WACX,MAAM,IAAI,GAAC,EAAE,CAAC,SACd,MAAM,UAUhB;AAYM,+CAPI,WAAW,MACX,EAAE,GACD,IAAI,CAQf;AAaM,6CARI,WAAW,SACX,WAAW,MACX,EAAE,GACD,IAAI,CAiBf;AAWM,qCAPI,WAAW,UACX,EAAE,GAAC,IAAI,aACP,EAAE,GAAC,IAAI,QAQjB;AAaM,4CARI,WAAW,WACX,MAAM,IAAI,GAAC,EAAE,CAAC,cACd,MAAM,OACN,MAAM,YACG,EAAE,GAAC,IAAI,KAAE,IAAI,QAkBhC"}

View File

@ -97,7 +97,7 @@ export function writeUpdateMessageFromTransaction(encoder: UpdateEncoderV1 | Upd
export function nextID(transaction: Transaction): import("./ID.js").ID;
export function addChangedTypeToTransaction(transaction: Transaction, type: AbstractType<YEvent<any>>, parentSub: string | null): void;
export function tryGc(ds: DeleteSet, store: StructStore, gcFilter: (arg0: Item) => boolean): void;
export function transact(doc: Doc, f: (arg0: Transaction) => void, origin?: any, local?: boolean): void;
export function transact<T>(doc: Doc, f: (arg0: Transaction) => T, origin?: any, local?: boolean): T;
import { Doc } from "./Doc.js";
import { DeleteSet } from "./DeleteSet.js";
import { AbstractType } from "../types/AbstractType.js";
@ -107,3 +107,4 @@ import { UpdateEncoderV1 } from "./UpdateEncoder.js";
import { UpdateEncoderV2 } from "./UpdateEncoder.js";
import { StructStore } from "./StructStore.js";
import { Item } from "../structs/Item.js";
//# sourceMappingURL=Transaction.d.ts.map

1
dist/src/utils/Transaction.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/utils/Transaction.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IACE;;;;OAIG;IACH,iBAJW,GAAG,UACH,GAAG,SACH,OAAO,EAkEjB;IA/DC;;;OAGG;IACH,KAFU,GAAG,CAEC;IACd;;;OAGG;IACH,WAFU,SAAS,CAEa;IAChC;;;OAGG;IACH,aAFU,mBAAkB,CAEgB;IAC5C;;;OAGG;IACH,YAFU,mBAAkB,CAED;IAC3B;;;;;OAKG;IACH,SAFU,IAAI,aAAa,OAAO,GAAG,CAAC,CAAC,EAAC,IAAI,SAAO,IAAI,CAAC,CAAC,CAEjC;IACxB;;;;OAIG;IACH,oBAFU,IAAI,aAAa,OAAO,GAAG,CAAC,CAAC,EAAC,MAAM,OAAO,GAAG,CAAC,CAAC,CAAC,CAExB;IACnC;;OAEG;IACH,eAFU,MAAM,cAAc,CAAC,CAER;IACvB;;OAEG;IACH,QAFU,GAAG,CAEO;IACpB;;;OAGG;IACH,MAFU,IAAI,GAAG,EAAC,GAAG,CAAC,CAED;IACrB;;;OAGG;IACH,OAFU,OAAO,CAEC;IAClB;;OAEG;IACH,cAFU,IAAI,GAAG,CAAC,CAEW;IAC7B;;OAEG;IACH,gBAFU,IAAI,GAAG,CAAC,CAEa;IAC/B;;OAEG;IACH,eAFU,IAAI,GAAG,CAAC,CAEY;CAEjC;AAOM,2DAJI,eAAe,GAAG,eAAe,eACjC,WAAW,GACV,OAAO,CAUlB;AAQM,oCALI,WAAW,wBAQrB;AAUM,yDAJI,WAAW,QACX,aAAa,OAAO,GAAG,CAAC,CAAC,aACzB,MAAM,GAAC,IAAI,QAOrB;AA4EM,0BAJI,SAAS,SACT,WAAW,mBACF,IAAI,KAAE,OAAO,QAKhC;AAqJM,iCAPI,GAAG,YACM,WAAW,iBACpB,GAAG,sBAyCb"}

View File

@ -1,3 +1,16 @@
export class StackItem {
/**
* @param {DeleteSet} deletions
* @param {DeleteSet} insertions
*/
constructor(deletions: DeleteSet, insertions: DeleteSet);
insertions: DeleteSet;
deletions: DeleteSet;
/**
* Use this to save and restore metadata like selection range
*/
meta: Map<any, any>;
}
/**
* @typedef {Object} UndoManagerOptions
* @property {number} [UndoManagerOptions.captureTimeout=500]
@ -137,23 +150,10 @@ export type UndoManagerOptions = {
*/
doc?: Doc | undefined;
};
import { DeleteSet } from "./DeleteSet.js";
import { Observable } from "lib0/observable";
import { AbstractType } from "../types/AbstractType.js";
import { Item } from "../structs/Item.js";
import { Transaction } from "./Transaction.js";
declare class StackItem {
/**
* @param {DeleteSet} deletions
* @param {DeleteSet} insertions
*/
constructor(deletions: DeleteSet, insertions: DeleteSet);
insertions: DeleteSet;
deletions: DeleteSet;
/**
* Use this to save and restore metadata like selection range
*/
meta: Map<any, any>;
}
import { Doc } from "./Doc.js";
import { DeleteSet } from "./DeleteSet.js";
export {};
//# sourceMappingURL=UndoManager.d.ts.map

1
dist/src/utils/UndoManager.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"UndoManager.d.ts","sourceRoot":"","sources":["../../../src/utils/UndoManager.js"],"names":[],"mappings":"AAmBA;IACE;;;OAGG;IACH,uBAHW,SAAS,cACT,SAAS,EASnB;IANC,sBAA4B;IAC5B,qBAA0B;IAC1B;;OAEG;IACH,oBAAqB;CAExB;AAmGD;;;;;;;;;;;GAWG;AAEH;;;;;;;;GAQG;AACH;IACE;;;OAGG;IACH,uBAHW,aAAa,GAAG,CAAC,GAAC,MAAM,aAAa,GAAG,CAAC,CAAC,sGAC1C,kBAAkB,EAoG5B;IAzFC;;OAEG;IACH,OAFU,MAAM,aAAa,GAAG,CAAC,CAAC,CAEnB;IAEf,qBArCmB,IAAI,KAAE,OAAO,CAqCA;IAEhC,yBAAoC;IACpC,2BAzCmB,WAAW,KAAE,OAAO,CAyCK;IAC5C;;OAEG;IACH,WAFU,MAAM,SAAS,CAAC,CAEP;IACnB;;OAEG;IACH,WAFU,MAAM,SAAS,CAAC,CAEP;IACnB;;;;OAIG;IACH,SAFU,OAAO,CAEG;IACpB,iBAAoB;IACpB,SAAc;IACd,mBAAmB;IACnB,gCAAoD;IACpD,uBAAoC;IACpC;;OAEG;IACH,uCAFW,WAAW,UAuDrB;IAOH;;OAEG;IACH,mBAFW,MAAM,aAAa,GAAG,CAAC,CAAC,GAAG,aAAa,GAAG,CAAC,QAStD;IAED;;OAEG;IACH,yBAFW,GAAG,QAIb;IAED;;OAEG;IACH,4BAFW,GAAG,QAIb;IAED,gEAcC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,sBAEC;IAED;;;;OAIG;IACH,QAFY,SAAS,QAWpB;IAED;;;;OAIG;IACH,QAFY,SAAS,QAWpB;IAED;;;;OAIG;IACH,WAFY,OAAO,CAIlB;IAED;;;;OAIG;IACH,WAFY,OAAO,CAIlB;CAOF;;;;;;iCArPsB,WAAW,KAAE,OAAO;;;;;;;2BACpB,IAAI,KAAE,OAAO"}

View File

@ -164,3 +164,4 @@ export class UpdateDecoderV2 extends DSDecoderV2 {
}
import * as decoding from "lib0/decoding";
import { ID } from "./ID.js";
//# sourceMappingURL=UpdateDecoder.d.ts.map

1
dist/src/utils/UpdateDecoder.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"UpdateDecoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateDecoder.js"],"names":[],"mappings":"AAMA;IACE;;OAEG;IACH,qBAFW,SAAS,OAAO,EAI1B;IADC,8BAA0B;IAG5B,sBAEC;IAED;;OAEG;IACH,eAFY,MAAM,CAIjB;IAED;;OAEG;IACH,aAFY,MAAM,CAIjB;CACF;AAED;IACE;;OAEG;IACH,cAFY,EAAE,CAIb;IAED;;OAEG;IACH,eAFY,EAAE,CAIb;IAED;;;OAGG;IACH,qBAEC;IAED;;OAEG;IACH,YAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,CAIjB;IAED;;OAEG;IACH,kBAFY,OAAO,CAIlB;IAED;;OAEG;IACH,eAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,WAFY,MAAM,CAIjB;IAED;;OAEG;IACH,WAFY,GAAG,CAId;IAED;;OAEG;IACH,WAFY,UAAU,CAIrB;IAED;;;;OAIG;IACH,YAFY,GAAG,CAId;IAED;;OAEG;IACH,WAFY,MAAM,CAIjB;CACF;AAED;IACE;;OAEG;IACH,qBAFW,SAAS,OAAO,EAQ1B;IALC;;OAEG;IACH,kBAAkB;IAClB,8BAA0B;IAG5B,sBAEC;IAED;;OAEG;IACH,eAFY,MAAM,CAKjB;IAED;;OAEG;IACH,aAFY,MAAM,CAMjB;CACF;AAED;IAMI;;;;;OAKG;IACH,MAFU,MAAM,MAAM,CAAC,CAET;IAEd,+CAA6F;IAC7F,0CAAwF;IACxF,gDAA8F;IAC9F,iDAA+F;IAC/F,yCAAmG;IACnG,sCAAoF;IACpF,+CAAyG;IACzG,2CAAyF;IACzF,uCAAqF;IAGvF;;OAEG;IACH,cAFY,EAAE,CAIb;IAED;;OAEG;IACH,eAFY,EAAE,CAIb;IAED;;;OAGG;IACH,qBAEC;IAED;;OAEG;IACH,YAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,MAAM,CAIjB;IAED;;OAEG;IACH,kBAFY,OAAO,CAIlB;IAED;;OAEG;IACH,eAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,WAFY,MAAM,CAIjB;IAED;;OAEG;IACH,WAFY,GAAG,CAId;IAED;;OAEG;IACH,WAFY,UAAU,CAIrB;IAED;;;;;;OAMG;IACH,YAFY,GAAG,CAId;IAED;;OAEG;IACH,WAFY,MAAM,CAWjB;CACF"}

View File

@ -161,3 +161,4 @@ export class UpdateEncoderV2 extends DSEncoderV2 {
}
import * as encoding from "lib0/encoding";
import { ID } from "./ID.js";
//# sourceMappingURL=UpdateEncoder.d.ts.map

1
dist/src/utils/UpdateEncoder.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"UpdateEncoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateEncoder.js"],"names":[],"mappings":"AAQA;IAEI,8BAA2C;IAG7C,2BAEC;IAED,sBAEC;IAED;;OAEG;IACH,oBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,gBAFW,MAAM,QAIhB;CACF;AAED;IACE;;OAEG;IACH,gBAFW,EAAE,QAKZ;IAED;;OAEG;IACH,iBAFW,EAAE,QAKZ;IAED;;;OAGG;IACH,oBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,gBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,eAFW,MAAM,QAIhB;IAED;;OAEG;IACH,wBAFW,OAAO,QAIjB;IAED;;OAEG;IACH,mBAFW,MAAM,QAIhB;IAED;;;;OAIG;IACH,cAFW,MAAM,QAIhB;IAED;;OAEG;IACH,cAFW,GAAG,QAIb;IAED;;OAEG;IACH,cAFW,UAAU,QAIpB;IAED;;OAEG;IACH,iBAFW,GAAG,QAIb;IAED;;OAEG;IACH,cAFW,MAAM,QAIhB;CACF;AAED;IAEI,8BAA2C;IAC3C,kBAAkB;IAGpB,2BAEC;IAED,sBAEC;IAED;;OAEG;IACH,oBAFW,MAAM,QAMhB;IAED;;OAEG;IACH,gBAFW,MAAM,QAQhB;CACF;AAED;IAGI;;OAEG;IACH,QAFU,IAAI,MAAM,EAAC,MAAM,CAAC,CAEL;IACvB;;;;;OAKG;IACH,UAFU,MAAM,CAEC;IACjB,+CAA0D;IAC1D,0CAAqD;IACrD,gDAA2D;IAC3D,iDAA4D;IAC5D,yCAA+D;IAC/D,sCAAiD;IACjD,+CAAqE;IACrE,2CAAsD;IACtD,uCAAkD;IAoBpD;;OAEG;IACH,gBAFW,EAAE,QAKZ;IAED;;OAEG;IACH,iBAFW,EAAE,QAKZ;IAED;;OAEG;IACH,oBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,gBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,eAFW,MAAM,QAIhB;IAED;;OAEG;IACH,wBAFW,OAAO,QAIjB;IAED;;OAEG;IACH,mBAFW,MAAM,QAIhB;IAED;;;;OAIG;IACH,cAFW,MAAM,QAIhB;IAED;;OAEG;IACH,cAFW,GAAG,QAIb;IAED;;OAEG;IACH,cAFW,UAAU,QAIpB;IAED;;;;;;OAMG;IACH,iBAFW,GAAG,QAIb;IAED;;;;;;;OAOG;IACH,cAFW,MAAM,QAwBhB;CACF"}

View File

@ -78,6 +78,11 @@ export class YEvent<T extends AbstractType<any>> {
newValue: any;
}>;
/**
* This is a computed property. Note that this can only be safely computed during the
* event call. Computing this property after other changes happened might result in
* unexpected behavior (incorrect computation of deltas). A safe way to collect changes
* is to store the `changes` or the `delta` object. Avoid storing the `transaction` object.
*
* @type {Array<{insert?: string | Array<any> | object | AbstractType<any>, retain?: number, delete?: number, attributes?: Object<string, any>}>}
*/
get delta(): {
@ -98,6 +103,11 @@ export class YEvent<T extends AbstractType<any>> {
*/
adds(struct: AbstractStruct): boolean;
/**
* This is a computed property. Note that this can only be safely computed during the
* event call. Computing this property after other changes happened might result in
* unexpected behavior (incorrect computation of deltas). A safe way to collect changes
* is to store the `changes` or the `delta` object. Avoid storing the `transaction` object.
*
* @type {{added:Set<Item>,deleted:Set<Item>,keys:Map<string,{action:'add'|'update'|'delete',oldValue:any}>,delta:Array<{insert?:Array<any>|string, delete?:number, retain?:number}>}}
*/
get changes(): {
@ -118,3 +128,4 @@ import { AbstractType } from "../types/AbstractType.js";
import { Transaction } from "./Transaction.js";
import { AbstractStruct } from "../structs/AbstractStruct.js";
import { Item } from "../structs/Item.js";
//# sourceMappingURL=YEvent.d.ts.map

1
dist/src/utils/YEvent.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"YEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/YEvent.js"],"names":[],"mappings":"AASA;;;GAGG;AACH;IACE;;;OAGG;IACH,oBAHW,CAAC,eACD,WAAW,EA8BrB;IA3BC;;;OAGG;IACH,QAFU,CAAC,CAES;IACpB;;;OAGG;IACH,eAFU,aAAa,GAAG,CAAC,CAEA;IAC3B;;;OAGG;IACH,aAFU,WAAW,CAES;IAC9B;;OAEG;IACH,UAFU,MAAM,GAAC,IAAI,CAED;IACpB;;OAEG;IACH;gBAFuC,KAAK,GAAG,QAAQ,GAAG,QAAQ;kBAAY,GAAG;kBAAY,GAAG;cAE/E;IACjB;;OAEG;IACH;;;;;;;eAAkB;IAGpB;;;;;;;;;;;;OAYG;IACH,gCAGC;IAED;;;;;;;OAOG;IACH,gBAHW,cAAc,GACb,OAAO,CAIlB;IAED;;OAEG;IACH;gBAFgC,KAAK,GAAG,QAAQ,GAAG,QAAQ;kBAAY,GAAG;kBAAY,GAAG;OAkDxF;IAED;;;;;;;OAOG;IACH;;;;;;;QAEC;IAED;;;;;;;OAOG;IACH,aAHW,cAAc,GACb,OAAO,CAIlB;IAED;;;;;;;OAOG;IACH;eAFiB,IAAI,IAAI,CAAC;iBAAS,IAAI,IAAI,CAAC;cAAM,IAAI,MAAM,EAAC;YAAC,MAAM,EAAC,KAAK,GAAC,QAAQ,GAAC,QAAQ,CAAC;YAAA,QAAQ,EAAC,GAAG,CAAA;SAAC,CAAC;eAAO,MAAM;YAAC,MAAM,CAAC,EAAC,MAAM,GAAG,CAAC,GAAC,MAAM,CAAC;YAAC,MAAM,CAAC,EAAC,MAAM,CAAC;YAAC,MAAM,CAAC,EAAC,MAAM,CAAA;SAAC,CAAC;MA+DnL;CACF"}

View File

@ -31,3 +31,4 @@ import { DSDecoderV1 } from "./UpdateDecoder.js";
import { DSDecoderV2 } from "./UpdateDecoder.js";
import { DSEncoderV1 } from "./UpdateEncoder.js";
import { DSEncoderV2 } from "./UpdateEncoder.js";
//# sourceMappingURL=encoding.d.ts.map

1
dist/src/utils/encoding.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../src/utils/encoding.js"],"names":[],"mappings":"AAiFO,6CAPI,eAAe,GAAG,eAAe,SACjC,WAAW,OACX,IAAI,MAAM,EAAC,MAAM,CAAC,QA2B5B;AAUM,+CAPI,eAAe,GAAG,eAAe,OACjC,GAAG,GACF,IAAI,MAAM,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,IAAI,GAAG,EAAE,CAAC,CAAA;CAAE,CAAC,CA2F7D;AA0KM,qDANI,eAAe,GAAG,eAAe,eACjC,WAAW,QAK2H;AAc1I,sCAPI,SAAS,OAAO,QAChB,GAAG,sBACH,GAAG,uEAwEgB;AAavB,oCANI,SAAS,OAAO,QAChB,GAAG,sBACH,GAAG,QAI8H;AAcrI,oCAPI,GAAG,UACH,UAAU,sBACV,GAAG,gFAQb;AAaM,kCANI,GAAG,UACH,UAAU,sBACV,GAAG,QAIiH;AAYxH,4CANI,eAAe,GAAG,eAAe,OACjC,GAAG,6DAQb;AAeM,2CAPI,GAAG,+GAGF,UAAU,CAuBrB;AAcM,yCANI,GAAG,sDAEF,UAAU,CAI2H;AAU1I,yCALI,WAAW,GAAG,WAAW,GACxB,IAAI,MAAM,EAAC,MAAM,CAAC,CAa7B;AAoBM,gDALI,UAAU,GACT,IAAI,MAAM,EAAC,MAAM,CAAC,CAIyF;AAOhH,0CAJI,WAAW,GAAG,WAAW,MACzB,IAAI,MAAM,EAAC,MAAM,CAAC,6BAU5B;AAQM,kDALI,WAAW,GAAG,WAAW,OACzB,GAAG,6BAIgG;AAWvG,yCANI,GAAG,GAAC,IAAI,MAAM,EAAC,MAAM,CAAC,oDAErB,UAAU,CAWrB;AAUM,uCALI,GAAG,GAAC,IAAI,MAAM,EAAC,MAAM,CAAC,GACrB,UAAU,CAI6D"}

View File

@ -1,3 +1,4 @@
export function isParentOf(parent: AbstractType<any>, child: Item | null): boolean;
import { AbstractType } from "../types/AbstractType.js";
import { Item } from "../structs/Item.js";
//# sourceMappingURL=isParentOf.d.ts.map

1
dist/src/utils/isParentOf.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"isParentOf.d.ts","sourceRoot":"","sources":["../../../src/utils/isParentOf.js"],"names":[],"mappings":"AAaO,mCAPI,aAAa,GAAG,CAAC,SACjB,IAAI,GAAC,IAAI,WAcnB"}

View File

@ -1,2 +1,3 @@
export function logType(type: AbstractType<any>): void;
import { AbstractType } from "../types/AbstractType.js";
//# sourceMappingURL=logging.d.ts.map

1
dist/src/utils/logging.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/utils/logging.js"],"names":[],"mappings":"AAYO,8BAFI,aAAa,GAAG,CAAC,QAW3B"}

View File

@ -64,9 +64,19 @@ export function parseUpdateMeta(update: Uint8Array): {
export function mergeUpdatesV2(updates: Array<Uint8Array>, YDecoder?: typeof UpdateDecoderV1 | typeof UpdateDecoderV2 | undefined, YEncoder?: typeof UpdateEncoderV2 | typeof UpdateEncoderV1 | undefined): Uint8Array;
export function diffUpdateV2(update: Uint8Array, sv: Uint8Array, YDecoder?: typeof UpdateDecoderV1 | typeof UpdateDecoderV2 | undefined, YEncoder?: typeof UpdateEncoderV2 | typeof UpdateEncoderV1 | undefined): Uint8Array;
export function diffUpdate(update: Uint8Array, sv: Uint8Array): Uint8Array;
export function convertUpdateFormat(update: Uint8Array, YDecoder: typeof UpdateDecoderV2 | typeof UpdateDecoderV1, YEncoder: typeof UpdateEncoderV2 | typeof UpdateEncoderV1): Uint8Array;
export function convertUpdateFormat(update: Uint8Array, blockTransformer: (arg0: Item | GC | Skip) => Item | GC | Skip, YDecoder: typeof UpdateDecoderV2 | typeof UpdateDecoderV1, YEncoder: typeof UpdateEncoderV2 | typeof UpdateEncoderV1): Uint8Array;
export function obfuscateUpdate(update: Uint8Array, opts?: ObfuscatorOptions | undefined): Uint8Array;
export function obfuscateUpdateV2(update: Uint8Array, opts?: ObfuscatorOptions | undefined): Uint8Array;
export function convertUpdateFormatV1ToV2(update: Uint8Array): Uint8Array;
export function convertUpdateFormatV2ToV1(update: Uint8Array): Uint8Array;
export type ObfuscatorOptions = {
formatting?: boolean | undefined;
subdocs?: boolean | undefined;
/**
* Whether to obfuscate nodeName / hookName
*/
yxml?: boolean | undefined;
};
import { GC } from "../structs/GC.js";
import { Item } from "../structs/Item.js";
import { Skip } from "../structs/Skip.js";
@ -76,3 +86,4 @@ import { UpdateEncoderV2 } from "./UpdateEncoder.js";
import { UpdateEncoderV1 } from "./UpdateEncoder.js";
import { DSEncoderV1 } from "./UpdateEncoder.js";
import { DSEncoderV2 } from "./UpdateEncoder.js";
//# sourceMappingURL=updates.d.ts.map

1
dist/src/utils/updates.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../src/utils/updates.js"],"names":[],"mappings":"AAoFA;IACE;;;OAGG;IACH,qBAHW,eAAe,GAAG,eAAe,eACjC,OAAO,EAWjB;IARC,gDAA6C;IAC7C;;OAEG;IACH,MAFU,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,EAAE,CAEjB;IAChB,cAAiB;IACjB,qBAA8B;IAIhC;;OAEG;IACH,QAFY,IAAI,GAAG,EAAE,GAAG,IAAI,GAAE,IAAI,CAQjC;CACF;AAMM,kCAHI,UAAU,QAGkD;AAOhE,oCAJI,UAAU,gFAcpB;AAMM,qCAHI,UAAU;;;EAG0D;AAOxE,uCAJI,UAAU;;;EAepB;AAED;IACE;;OAEG;IACH,qBAFW,eAAe,GAAG,eAAe,EAkB3C;IAfC,mBAAmB;IACnB,mBAAmB;IACnB,gBAAgB;IAChB,2CAAsB;IACtB;;;;;;;;;OASG;IACH;iBAF2B,MAAM;qBAAe,UAAU;QAEnC;CAE1B;AAMM,sCAHI,MAAM,UAAU,CAAC,GAChB,UAAU,CAE0E;AAQzF,sDALI,UAAU,aACV,kBAAkB,GAAG,kBAAkB,aACvC,sBAAsB,GAAG,sBAAsB,GAC9C,UAAU,CAgDrB;AAMM,oDAHI,UAAU,GACT,UAAU,CAEkG;AAOjH,0CAJI,UAAU,aACV,sBAAsB,GAAG,sBAAsB;UACtC,IAAI,MAAM,EAAC,MAAM,CAAC;QAAM,IAAI,MAAM,EAAC,MAAM,CAAC;EAkC7D;AAMM,wCAHI,UAAU,GACT;IAAE,IAAI,EAAE,IAAI,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,EAAE,EAAE,IAAI,MAAM,EAAC,MAAM,CAAC,CAAA;CAAE,CAEmB;AA0C5E,wCALI,MAAM,UAAU,CAAC,mJAGhB,UAAU,CAgIrB;AAQM,qCALI,UAAU,MACV,UAAU,8JAsCpB;AAMM,mCAHI,UAAU,MACV,UAAU,cAE+E;AAwE7F,4CALI,UAAU,2BACD,IAAI,GAAC,EAAE,GAAC,IAAI,KAAE,IAAI,GAAC,EAAE,GAAC,IAAI,YACnC,sBAAsB,GAAG,sBAAsB,YAC/C,sBAAsB,GAAG,sBAAsB,cAczD;AAmHM,wCAHI,UAAU,oDAGiH;AAM/H,0CAHI,UAAU,oDAGmH;AAKjI,kDAFI,UAAU,cAEiG;AAK/G,kDAFI,UAAU,cAEiG"}

14
dist/testHelper.mjs vendored
View File

@ -133,7 +133,7 @@ class TestYInstance extends Y.Doc {
* @param {TestYInstance} remoteClient
*/
_receive (message, remoteClient) {
map.setIfUndefined(this.receiving, remoteClient, () => []).push(message);
map.setIfUndefined(this.receiving, remoteClient, () => /** @type {Array<Uint8Array>} */ ([])).push(message);
}
}
@ -346,7 +346,7 @@ const compare = users => {
t.compare(userMapValues[i], userMapValues[i + 1]);
t.compare(userXmlValues[i], userXmlValues[i + 1]);
t.compare(userTextValues[i].map(/** @param {any} a */ a => typeof a.insert === 'string' ? a.insert : ' ').join('').length, users[i].getText('text').length);
t.compare(userTextValues[i], userTextValues[i + 1], '', (constructor, a, b) => {
t.compare(userTextValues[i], userTextValues[i + 1], '', (_constructor, a, b) => {
if (a instanceof Y.AbstractType) {
t.compare(a.toJSON(), b.toJSON());
} else if (a !== b) {
@ -369,8 +369,8 @@ const compare = users => {
const compareItemIDs = (a, b) => a === b || (a !== null && b != null && Y.compareIDs(a.id, b.id));
/**
* @param {import('../src/internals').StructStore} ss1
* @param {import('../src/internals').StructStore} ss2
* @param {import('../src/internals.js').StructStore} ss1
* @param {import('../src/internals.js').StructStore} ss2
*/
const compareStructStores = (ss1, ss2) => {
t.assert(ss1.clients.size === ss2.clients.size);
@ -412,13 +412,13 @@ const compareStructStores = (ss1, ss2) => {
};
/**
* @param {import('../src/internals').DeleteSet} ds1
* @param {import('../src/internals').DeleteSet} ds2
* @param {import('../src/internals.js').DeleteSet} ds1
* @param {import('../src/internals.js').DeleteSet} ds2
*/
const compareDS = (ds1, ds2) => {
t.assert(ds1.clients.size === ds2.clients.size);
ds1.clients.forEach((deleteItems1, client) => {
const deleteItems2 = /** @type {Array<import('../src/internals').DeleteItem>} */ (ds2.clients.get(client));
const deleteItems2 = /** @type {Array<import('../src/internals.js').DeleteItem>} */ (ds2.clients.get(client));
t.assert(deleteItems2 !== undefined && deleteItems1.length === deleteItems2.length);
for (let i = 0; i < deleteItems1.length; i++) {
const di1 = deleteItems1[i];

File diff suppressed because one or more lines are too long

4121
dist/tests.cjs vendored

File diff suppressed because one or more lines are too long

2
dist/tests.cjs.map vendored

File diff suppressed because one or more lines are too long

4141
dist/tests.js vendored

File diff suppressed because one or more lines are too long

2
dist/tests.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -2,3 +2,4 @@ export function testArrayCompatibilityV1(tc: t.TestCase): void;
export function testMapDecodingCompatibilityV1(tc: t.TestCase): void;
export function testTextDecodingCompatibilityV1(tc: t.TestCase): void;
import * as t from "lib0/testing";
//# sourceMappingURL=compatibility.tests.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"compatibility.tests.d.ts","sourceRoot":"","sources":["../../tests/compatibility.tests.js"],"names":[],"mappings":"AAeO,6CAFI,EAAE,QAAQ,QAQpB;AAKM,mDAFI,EAAE,QAAQ,QASpB;AAKM,oDAFI,EAAE,QAAQ,QASpB"}

View File

@ -1,10 +1,13 @@
export function testAfterTransactionRecursion(_tc: t.TestCase): void;
export function testOriginInTransaction(_tc: t.TestCase): void;
export function testClientIdDuplicateChange(tc: t.TestCase): void;
export function testGetTypeEmptyId(tc: t.TestCase): void;
export function testToJSON(tc: t.TestCase): void;
export function testSubdoc(tc: t.TestCase): void;
export function testSubdocLoadEdgeCases(tc: t.TestCase): void;
export function testSubdocLoadEdgeCasesAutoload(tc: t.TestCase): void;
export function testSubdocsUndo(tc: t.TestCase): void;
export function testLoadDocs(tc: t.TestCase): Promise<void>;
export function testClientIdDuplicateChange(_tc: t.TestCase): void;
export function testGetTypeEmptyId(_tc: t.TestCase): void;
export function testToJSON(_tc: t.TestCase): void;
export function testSubdoc(_tc: t.TestCase): void;
export function testSubdocLoadEdgeCases(_tc: t.TestCase): void;
export function testSubdocLoadEdgeCasesAutoload(_tc: t.TestCase): void;
export function testSubdocsUndo(_tc: t.TestCase): void;
export function testLoadDocsEvent(_tc: t.TestCase): Promise<void>;
export function testSyncDocsEvent(_tc: t.TestCase): Promise<void>;
import * as t from "lib0/testing";
//# sourceMappingURL=doc.tests.d.ts.map

1
dist/tests/doc.tests.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"doc.tests.d.ts","sourceRoot":"","sources":["../../tests/doc.tests.js"],"names":[],"mappings":"AAOO,mDAFI,EAAE,QAAQ,QAepB;AAKM,6CAFI,EAAE,QAAQ,QAsBpB;AAOM,iDAFI,EAAE,QAAQ,QAWpB;AAKM,wCAFI,EAAE,QAAQ,QAUpB;AAKM,gCAFI,EAAE,QAAQ,QAwBpB;AAKM,gCAFI,EAAE,QAAQ,QAgEpB;AAKM,6CAFI,EAAE,QAAQ,QA4CpB;AAKM,qDAFI,EAAE,QAAQ,QAuCpB;AAKM,qCAFI,EAAE,QAAQ,QAYpB;AAKM,uCAFI,EAAE,QAAQ,iBAapB;AAKM,uCAFI,EAAE,QAAQ,iBAsCpB"}

View File

@ -3,3 +3,4 @@ export function testPermanentUserData(tc: t.TestCase): Promise<void>;
export function testDiffStateVectorOfUpdateIsEmpty(tc: t.TestCase): void;
export function testDiffStateVectorOfUpdateIgnoresSkips(tc: t.TestCase): void;
import * as t from "lib0/testing";
//# sourceMappingURL=encoding.tests.d.ts.map

1
dist/tests/encoding.tests.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"encoding.tests.d.ts","sourceRoot":"","sources":["../../tests/encoding.tests.js"],"names":[],"mappings":"AAyBO,yCAFI,EAAE,QAAQ,QAcpB;AAQM,0CAFI,EAAE,QAAQ,iBAsBpB;AAMM,uDAFI,EAAE,QAAQ,QAepB;AAMM,4DAFI,EAAE,QAAQ,QAmBpB"}

View File

@ -1 +1,2 @@
export {};
//# sourceMappingURL=index.d.ts.map

1
dist/tests/index.d.ts.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tests/index.js"],"names":[],"mappings":""}

View File

@ -6,3 +6,4 @@ export function testRelativePositionCase5(tc: t.TestCase): void;
export function testRelativePositionCase6(tc: t.TestCase): void;
export function testRelativePositionAssociationDifference(tc: t.TestCase): void;
import * as t from "lib0/testing";
//# sourceMappingURL=relativePositions.tests.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"relativePositions.tests.d.ts","sourceRoot":"","sources":["../../tests/relativePositions.tests.js"],"names":[],"mappings":"AAyBO,8CAFI,EAAE,QAAQ,QAWpB;AAKM,8CAFI,EAAE,QAAQ,QAOpB;AAKM,8CAFI,EAAE,QAAQ,QASpB;AAKM,8CAFI,EAAE,QAAQ,QAOpB;AAKM,8CAFI,EAAE,QAAQ,QAQpB;AAKM,8CAFI,EAAE,QAAQ,QAMpB;AAKM,8DAFI,EAAE,QAAQ,QAcpB"}

Some files were not shown because too many files have changed in this diff Show More