@y/y 14.0.0-19 → 14.0.0-21
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/README.md +7 -5
- package/dist/src/index.d.ts +2 -1
- package/dist/src/internals.d.ts +2 -9
- package/dist/src/structs/ContentType.d.ts +6 -12
- package/dist/src/structs/ContentType.d.ts.map +1 -1
- package/dist/src/structs/Item.d.ts +5 -6
- package/dist/src/structs/Item.d.ts.map +1 -1
- package/dist/src/utils/AttributionManager.d.ts +16 -14
- package/dist/src/utils/AttributionManager.d.ts.map +1 -1
- package/dist/src/utils/Doc.d.ts +7 -70
- package/dist/src/utils/Doc.d.ts.map +1 -1
- package/dist/src/utils/ID.d.ts +2 -2
- package/dist/src/utils/ID.d.ts.map +1 -1
- package/dist/src/utils/IdMap.d.ts +22 -19
- package/dist/src/utils/IdMap.d.ts.map +1 -1
- package/dist/src/utils/IdSet.d.ts +6 -6
- package/dist/src/utils/IdSet.d.ts.map +1 -1
- package/dist/src/utils/RelativePosition.d.ts +8 -8
- package/dist/src/utils/RelativePosition.d.ts.map +1 -1
- package/dist/src/utils/Snapshot.d.ts +3 -3
- package/dist/src/utils/Snapshot.d.ts.map +1 -1
- package/dist/src/utils/Transaction.d.ts +9 -5
- package/dist/src/utils/Transaction.d.ts.map +1 -1
- package/dist/src/utils/UndoManager.d.ts +14 -12
- package/dist/src/utils/UndoManager.d.ts.map +1 -1
- package/dist/src/utils/UpdateDecoder.d.ts +8 -4
- package/dist/src/utils/UpdateDecoder.d.ts.map +1 -1
- package/dist/src/utils/UpdateEncoder.d.ts +2 -0
- package/dist/src/utils/UpdateEncoder.d.ts.map +1 -1
- package/dist/src/utils/YEvent.d.ts +21 -42
- package/dist/src/utils/YEvent.d.ts.map +1 -1
- package/dist/src/utils/encoding.d.ts +3 -3
- package/dist/src/utils/encoding.d.ts.map +1 -1
- package/dist/src/utils/isParentOf.d.ts +1 -1
- package/dist/src/utils/isParentOf.d.ts.map +1 -1
- package/dist/src/utils/logging.d.ts +2 -2
- package/dist/src/utils/logging.d.ts.map +1 -1
- package/dist/src/utils/meta.d.ts +71 -0
- package/dist/src/utils/meta.d.ts.map +1 -0
- package/dist/src/utils/ts.d.ts +4 -0
- package/dist/src/utils/ts.d.ts.map +1 -0
- package/dist/src/utils/updates.d.ts +11 -11
- package/dist/src/utils/updates.d.ts.map +1 -1
- package/dist/src/ytype.d.ts +498 -0
- package/dist/src/ytype.d.ts.map +1 -0
- package/dist/tests/IdMap.tests.d.ts.map +1 -1
- package/dist/tests/attribution.tests.d.ts +1 -0
- package/dist/tests/attribution.tests.d.ts.map +1 -1
- package/dist/tests/compatibility.tests.d.ts.map +1 -1
- package/dist/tests/doc.tests.d.ts.map +1 -1
- package/dist/tests/relativePositions.tests.d.ts +9 -9
- package/dist/tests/relativePositions.tests.d.ts.map +1 -1
- package/dist/tests/snapshot.tests.d.ts.map +1 -1
- package/dist/tests/testHelper.d.ts +28 -27
- package/dist/tests/testHelper.d.ts.map +1 -1
- package/dist/tests/undo-redo.tests.d.ts.map +1 -1
- package/dist/tests/updates.tests.d.ts +2 -1
- package/dist/tests/updates.tests.d.ts.map +1 -1
- package/dist/tests/y-array.tests.d.ts +0 -2
- package/dist/tests/y-array.tests.d.ts.map +1 -1
- package/dist/tests/y-map.tests.d.ts +0 -3
- package/dist/tests/y-map.tests.d.ts.map +1 -1
- package/dist/tests/y-text.tests.d.ts +1 -1
- package/dist/tests/y-text.tests.d.ts.map +1 -1
- package/dist/tests/y-xml.tests.d.ts +0 -1
- package/dist/tests/y-xml.tests.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/index.js +156 -0
- package/src/internals.js +35 -0
- package/src/structs/AbstractStruct.js +59 -0
- package/src/structs/ContentAny.js +115 -0
- package/src/structs/ContentBinary.js +93 -0
- package/src/structs/ContentDeleted.js +101 -0
- package/src/structs/ContentDoc.js +141 -0
- package/src/structs/ContentEmbed.js +98 -0
- package/src/structs/ContentFormat.js +105 -0
- package/src/structs/ContentJSON.js +119 -0
- package/src/structs/ContentString.js +113 -0
- package/src/structs/ContentType.js +152 -0
- package/src/structs/GC.js +80 -0
- package/src/structs/Item.js +841 -0
- package/src/structs/Skip.js +75 -0
- package/src/utils/AttributionManager.js +653 -0
- package/src/utils/Doc.js +266 -0
- package/src/utils/EventHandler.js +87 -0
- package/src/utils/ID.js +89 -0
- package/src/utils/IdMap.js +673 -0
- package/src/utils/IdSet.js +825 -0
- package/src/utils/RelativePosition.js +352 -0
- package/src/utils/Snapshot.js +220 -0
- package/src/utils/StructSet.js +137 -0
- package/src/utils/StructStore.js +289 -0
- package/src/utils/Transaction.js +671 -0
- package/src/utils/UndoManager.js +406 -0
- package/src/utils/UpdateDecoder.js +285 -0
- package/src/utils/UpdateEncoder.js +327 -0
- package/src/utils/YEvent.js +189 -0
- package/src/utils/delta-helpers.js +54 -0
- package/src/utils/encoding.js +623 -0
- package/src/utils/isParentOf.js +21 -0
- package/src/utils/logging.js +21 -0
- package/src/utils/meta.js +190 -0
- package/src/utils/ts.js +3 -0
- package/src/utils/updates.js +802 -0
- package/src/ytype.js +1962 -0
- package/dist/Skip-CE05BUF8.js +0 -11875
- package/dist/Skip-CE05BUF8.js.map +0 -1
- package/dist/index-C21sDQ5u.js +0 -163
- package/dist/index-C21sDQ5u.js.map +0 -1
- package/dist/internals.js +0 -25
- package/dist/internals.js.map +0 -1
- package/dist/src/types/AbstractType.d.ts +0 -239
- package/dist/src/types/AbstractType.d.ts.map +0 -1
- package/dist/src/types/YArray.d.ts +0 -128
- package/dist/src/types/YArray.d.ts.map +0 -1
- package/dist/src/types/YMap.d.ts +0 -112
- package/dist/src/types/YMap.d.ts.map +0 -1
- package/dist/src/types/YText.d.ts +0 -216
- package/dist/src/types/YText.d.ts.map +0 -1
- package/dist/src/types/YXmlElement.d.ts +0 -106
- package/dist/src/types/YXmlElement.d.ts.map +0 -1
- package/dist/src/types/YXmlFragment.d.ts +0 -143
- package/dist/src/types/YXmlFragment.d.ts.map +0 -1
- package/dist/src/types/YXmlHook.d.ts +0 -32
- package/dist/src/types/YXmlHook.d.ts.map +0 -1
- package/dist/src/types/YXmlText.d.ts +0 -34
- package/dist/src/types/YXmlText.d.ts.map +0 -1
- package/dist/src/utils/AbstractConnector.d.ts +0 -20
- package/dist/src/utils/AbstractConnector.d.ts.map +0 -1
- package/dist/src/utils/types.d.ts +0 -7
- package/dist/src/utils/types.d.ts.map +0 -1
- package/dist/testHelper.js +0 -617
- package/dist/testHelper.js.map +0 -1
- package/dist/yjs.js +0 -26
- package/dist/yjs.js.map +0 -1
package/README.md
CHANGED
|
@@ -231,11 +231,13 @@ document private.
|
|
|
231
231
|
</dd>
|
|
232
232
|
<dt><a href="https://github.com/liveblocks/liveblocks">@liveblocks/yjs </a> 🌟</dt>
|
|
233
233
|
<dd>
|
|
234
|
-
<a href="https://liveblocks.io/
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
<a href="https://liveblocks.io/docs/api-reference/liveblocks-yjs">
|
|
235
|
+
Liveblocks Yjs
|
|
236
|
+
</a>
|
|
237
|
+
provides a fully hosted WebSocket infrastructure and persisted data
|
|
238
|
+
store for Yjs documents. No configuration or maintenance is required. It
|
|
239
|
+
also features Yjs webhook events, REST API to read and update Yjs
|
|
240
|
+
documents, and a browser DevTools extension.
|
|
239
241
|
</dd>
|
|
240
242
|
<dt><a href="https://github.com/ueberdosis/hocuspocus">Hocuspocus</a> ⭐</dt>
|
|
241
243
|
<dd>
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./utils/meta.js";
|
|
2
|
+
export { Doc, Transaction, YType as Type, YEvent, Item, AbstractStruct, GC, Skip, ContentBinary, ContentDeleted, ContentDoc, ContentEmbed, ContentFormat, ContentJSON, ContentAny, ContentString, ContentType, getTypeChildren, createRelativePositionFromTypeIndex, createRelativePositionFromJSON, createAbsolutePositionFromRelativePosition, compareRelativePositions, AbsolutePosition, RelativePosition, ID, createID, compareIDs, getState, Snapshot, createSnapshot, cleanupYTextFormatting, snapshot, emptySnapshot, findRootTypeKey, findIndexSS, getItem, getItemCleanStart, getItemCleanEnd, typeMapGetSnapshot, typeMapGetAllSnapshot, createDocFromSnapshot, applyUpdate, applyUpdateV2, readUpdate, readUpdateV2, encodeStateAsUpdate, encodeStateAsUpdateV2, encodeStateVector, UndoManager, decodeSnapshot, encodeSnapshot, decodeSnapshotV2, encodeSnapshotV2, decodeStateVector, logUpdate, logUpdateV2, decodeUpdate, decodeUpdateV2, relativePositionToJSON, isParentOf, equalSnapshots, tryGc, transact, logType, mergeUpdates, mergeUpdatesV2, encodeStateVectorFromUpdate, encodeStateVectorFromUpdateV2, encodeRelativePosition, decodeRelativePosition, diffUpdate, diffUpdateV2, convertUpdateFormatV1ToV2, convertUpdateFormatV2ToV1, obfuscateUpdate, obfuscateUpdateV2, UpdateEncoderV1, UpdateEncoderV2, UpdateDecoderV1, UpdateDecoderV2, snapshotContainsUpdate, IdSet, equalIdSets, createDeleteSetFromStructStore, IdMap, createIdMap, createContentAttribute, createInsertSetFromStructStore, diffIdMap, diffIdSet, ContentAttribute, encodeIdMap, createIdMapFromIdSet, TwosetAttributionManager, noAttributionsManager, AbstractAttributionManager, iterateStructsByIdSet, createAttributionManagerFromDiff, DiffAttributionManager, createAttributionManagerFromSnapshots, SnapshotAttributionManager, createIdSet, mergeIdSets, cloneDoc, createContentIdsFromUpdate, createContentIdsFromUpdateV2, insertIntoIdMap, insertIntoIdSet, mergeIdMaps, readIdMap, readIdSet, decodeIdMap, diffDocsToDelta, getPathTo, Attributions, filterIdMap, undoContentIds, intersectUpdateWithContentIds, intersectUpdateWithContentIdsV2, createDocFromUpdate, createDocFromUpdateV2 } from "./internals.js";
|
|
2
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/internals.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./utils/AbstractConnector.js";
|
|
2
1
|
export * from "./utils/IdSet.js";
|
|
3
2
|
export * from "./utils/Doc.js";
|
|
4
3
|
export * from "./utils/UpdateDecoder.js";
|
|
@@ -19,14 +18,8 @@ export * from "./utils/StructSet.js";
|
|
|
19
18
|
export * from "./utils/IdMap.js";
|
|
20
19
|
export * from "./utils/AttributionManager.js";
|
|
21
20
|
export * from "./utils/delta-helpers.js";
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./types/YMap.js";
|
|
25
|
-
export * from "./types/YText.js";
|
|
26
|
-
export * from "./types/YXmlFragment.js";
|
|
27
|
-
export * from "./types/YXmlElement.js";
|
|
28
|
-
export * from "./types/YXmlHook.js";
|
|
29
|
-
export * from "./types/YXmlText.js";
|
|
21
|
+
export * from "./utils/meta.js";
|
|
22
|
+
export * from "./ytype.js";
|
|
30
23
|
export * from "./structs/AbstractStruct.js";
|
|
31
24
|
export * from "./structs/GC.js";
|
|
32
25
|
export * from "./structs/ContentBinary.js";
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @type {Array<(decoder: UpdateDecoderV1 | UpdateDecoderV2)=>(import('../utils/types.js').YType)>}
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
5
|
-
export const typeRefs: Array<(decoder: UpdateDecoderV1 | UpdateDecoderV2) => (import("../utils/types.js").YType)>;
|
|
6
1
|
export const YArrayRefID: 0;
|
|
7
2
|
export const YMapRefID: 1;
|
|
8
3
|
export const YTextRefID: 2;
|
|
@@ -15,13 +10,13 @@ export const YXmlTextRefID: 6;
|
|
|
15
10
|
*/
|
|
16
11
|
export class ContentType {
|
|
17
12
|
/**
|
|
18
|
-
* @param {
|
|
13
|
+
* @param {import('../ytype.js').YType} type
|
|
19
14
|
*/
|
|
20
|
-
constructor(type:
|
|
15
|
+
constructor(type: import("../ytype.js").YType);
|
|
21
16
|
/**
|
|
22
|
-
* @type {
|
|
17
|
+
* @type {import('../ytype.js').YType}
|
|
23
18
|
*/
|
|
24
|
-
type:
|
|
19
|
+
type: import("../ytype.js").YType;
|
|
25
20
|
/**
|
|
26
21
|
* @return {number}
|
|
27
22
|
*/
|
|
@@ -73,11 +68,10 @@ export class ContentType {
|
|
|
73
68
|
getRef(): number;
|
|
74
69
|
}
|
|
75
70
|
export function readContentType(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentType;
|
|
76
|
-
export type YType_CT = import("../utils/types.js").YType;
|
|
77
|
-
import { UpdateDecoderV1 } from '../internals.js';
|
|
78
|
-
import { UpdateDecoderV2 } from '../internals.js';
|
|
79
71
|
import { Transaction } from '../internals.js';
|
|
80
72
|
import { Item } from '../internals.js';
|
|
81
73
|
import { UpdateEncoderV1 } from '../internals.js';
|
|
82
74
|
import { UpdateEncoderV2 } from '../internals.js';
|
|
75
|
+
import { UpdateDecoderV1 } from '../internals.js';
|
|
76
|
+
import { UpdateDecoderV2 } from '../internals.js';
|
|
83
77
|
//# sourceMappingURL=ContentType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentType.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentType.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentType.d.ts","sourceRoot":"","sources":["../../../src/structs/ContentType.js"],"names":[],"mappings":"AAOA,0BAA2B,CAAC,CAAA;AAC5B,wBAAyB,CAAC,CAAA;AAC1B,yBAA0B,CAAC,CAAA;AAC3B,+BAAgC,CAAC,CAAA;AACjC,gCAAiC,CAAC,CAAA;AAClC,4BAA6B,CAAC,CAAA;AAC9B,4BAA6B,CAAC,CAAA;AAE9B;;GAEG;AACH;IACE;;OAEG;IACH,kBAFW,OAAO,aAAa,EAAE,KAAK,EAOrC;IAJC;;OAEG;IACH,MAFU,OAAO,aAAa,EAAE,KAAK,CAErB;IAGlB;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,GAAG,CAAC,CAIrB;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;OAEG;IACH,QAFY,WAAW,CAItB;IAED;;;OAGG;IACH,gBAHW,MAAM,GACL,WAAW,CAItB;IAED;;;OAGG;IACH,kBAHW,WAAW,GACV,OAAO,CAIlB;IAED;;;OAGG;IACH,uBAHW,WAAW,QACX,IAAI,QAId;IAED;;OAEG;IACH,oBAFW,WAAW,QAyBrB;IAED;;OAEG;IACH,OAFW,WAAW,QAgBrB;IAED;;;;OAIG;IACH,eAJW,eAAe,GAAG,eAAe,WACjC,MAAM,cACN,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;AAQM,yCAHI,eAAe,GAAG,eAAe,GAChC,WAAW,CAEsD;4BArJtE,iBAAiB;qBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -16,11 +16,11 @@ export class Item extends AbstractStruct {
|
|
|
16
16
|
* @param {ID | null} origin
|
|
17
17
|
* @param {Item | null} right
|
|
18
18
|
* @param {ID | null} rightOrigin
|
|
19
|
-
* @param {
|
|
19
|
+
* @param {YType|ID|null} parent Is a type if integrated, is null if it is possible to copy parent from left or right, is ID before integration to search for it.
|
|
20
20
|
* @param {string | null} parentSub
|
|
21
21
|
* @param {AbstractContent} content
|
|
22
22
|
*/
|
|
23
|
-
constructor(id: ID, left: Item | null, origin: ID | null, right: Item | null, rightOrigin: ID | null, parent:
|
|
23
|
+
constructor(id: ID, left: Item | null, origin: ID | null, right: Item | null, rightOrigin: ID | null, parent: YType | ID | null, parentSub: string | null, content: AbstractContent);
|
|
24
24
|
/**
|
|
25
25
|
* The item that was originally to the left of this item.
|
|
26
26
|
* @type {ID | null}
|
|
@@ -42,9 +42,9 @@ export class Item extends AbstractStruct {
|
|
|
42
42
|
*/
|
|
43
43
|
rightOrigin: ID | null;
|
|
44
44
|
/**
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {YType|ID|null}
|
|
46
46
|
*/
|
|
47
|
-
parent:
|
|
47
|
+
parent: YType | ID | null;
|
|
48
48
|
/**
|
|
49
49
|
* If the parent refers to this item with some kind of key (e.g. YMap, the
|
|
50
50
|
* key is specified here. The key is then used to refer to the list in which
|
|
@@ -197,14 +197,13 @@ export class AbstractContent {
|
|
|
197
197
|
*/
|
|
198
198
|
getRef(): number;
|
|
199
199
|
}
|
|
200
|
-
export type YType__ = import("../utils/types.js").YType;
|
|
201
200
|
import { StructStore } from '../internals.js';
|
|
202
201
|
import { ID } from '../internals.js';
|
|
203
202
|
import { Transaction } from '../internals.js';
|
|
204
203
|
import { AbstractStruct } from '../internals.js';
|
|
205
204
|
import { GC } from '../internals.js';
|
|
206
205
|
import { IdSet } from '../internals.js';
|
|
207
|
-
import {
|
|
206
|
+
import { YType } from '../internals.js';
|
|
208
207
|
import { UpdateDecoderV1 } from '../internals.js';
|
|
209
208
|
import { UpdateDecoderV2 } from '../internals.js';
|
|
210
209
|
import { UpdateEncoderV1 } from '../internals.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/structs/Item.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/structs/Item.js"],"names":[],"mappings":"AAsCO,oCAJI,WAAW,MACX,EAAE,GACD;IAAC,IAAI,EAAC,IAAI,CAAC;IAAC,IAAI,EAAC,MAAM,CAAA;CAAC,CAoBnC;AAWM,+BAHI,IAAI,GAAC,IAAI,QACT,OAAO,QAOjB;AAYM,uCARI,WAAW,OAAC,YACZ,IAAI,QACJ,MAAM,GACL,IAAI,CA8Cf;AAYM,yCARI,WAAW,OAAC,cACZ,cAAc,QACd,MAAM,GACL,EAAE,GAAC,IAAI,CAalB;AAsBM,sCAXI,WAAW,QACX,IAAI,aACJ,GAAG,CAAC,IAAI,CAAC,iBACT,KAAK,0BACL,OAAO,MACP,OAAO,yBAAyB,EAAE,WAAW,GAE5C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,EAAjC,eAAe,GAAG,eAAe,KAAE,eAAe,CAAC,CAc3E;AAED;;GAEG;AACH;IACE;;OAEG;IACH,aAFY,MAAM,CAIjB;IAED;;OAEG;IACH,cAFY,KAAK,CAAC,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,iBAFW,WAAW,QAIrB;IAED;;;;OAIG;IACH,gBAJW,eAAe,GAAG,eAAe,WACjC,MAAM,cACN,MAAM,QAIhB;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;CACF;4BA/yBM,iBAAiB;mBAAjB,iBAAiB;4BAAjB,iBAAiB;+BAAjB,iBAAiB;mBAAjB,iBAAiB;sBAAjB,iBAAiB;sBAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB"}
|
|
@@ -8,7 +8,7 @@ export const attributionJsonSchema: s.Schema<{
|
|
|
8
8
|
} | undefined;
|
|
9
9
|
formatAt?: number | undefined;
|
|
10
10
|
}>;
|
|
11
|
-
export function createAttributionFromAttributionItems(attrs: Array<import("./IdMap.js").
|
|
11
|
+
export function createAttributionFromAttributionItems(attrs: Array<import("./IdMap.js").ContentAttribute<any>> | null, deleted: boolean): Attribution | null;
|
|
12
12
|
/**
|
|
13
13
|
* @template T
|
|
14
14
|
*/
|
|
@@ -17,14 +17,14 @@ export class AttributedContent<T> {
|
|
|
17
17
|
* @param {AbstractContent} content
|
|
18
18
|
* @param {number} clock
|
|
19
19
|
* @param {boolean} deleted
|
|
20
|
-
* @param {Array<import('./IdMap.js').
|
|
20
|
+
* @param {Array<import('./IdMap.js').ContentAttribute<T>> | null} attrs
|
|
21
21
|
* @param {0|1|2} renderBehavior
|
|
22
22
|
*/
|
|
23
|
-
constructor(content: AbstractContent, clock: number, deleted: boolean, attrs: Array<import("./IdMap.js").
|
|
23
|
+
constructor(content: AbstractContent, clock: number, deleted: boolean, attrs: Array<import("./IdMap.js").ContentAttribute<T>> | null, renderBehavior: 0 | 1 | 2);
|
|
24
24
|
content: AbstractContent;
|
|
25
25
|
clock: number;
|
|
26
26
|
deleted: boolean;
|
|
27
|
-
attrs: import("./IdMap.js").
|
|
27
|
+
attrs: import("./IdMap.js").ContentAttribute<T>[] | null;
|
|
28
28
|
render: boolean;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -116,6 +116,10 @@ export class NoAttributionsManager extends ObservableV2<{
|
|
|
116
116
|
contentLength(item: Item): number;
|
|
117
117
|
}
|
|
118
118
|
export const noAttributionsManager: NoAttributionsManager;
|
|
119
|
+
export class Attributions {
|
|
120
|
+
inserts: IdMap<any>;
|
|
121
|
+
deletes: IdMap<any>;
|
|
122
|
+
}
|
|
119
123
|
/**
|
|
120
124
|
* @implements AbstractAttributionManager
|
|
121
125
|
*
|
|
@@ -128,10 +132,10 @@ export class DiffAttributionManager extends ObservableV2<{
|
|
|
128
132
|
* @param {Doc} prevDoc
|
|
129
133
|
* @param {Doc} nextDoc
|
|
130
134
|
* @param {Object} [options] - options for the attribution manager
|
|
131
|
-
* @param {
|
|
135
|
+
* @param {Attributions?} [options.attrs] - the attributes to apply to the diff
|
|
132
136
|
*/
|
|
133
137
|
constructor(prevDoc: Doc, nextDoc: Doc, { attrs }?: {
|
|
134
|
-
attrs?:
|
|
138
|
+
attrs?: Attributions | null | undefined;
|
|
135
139
|
});
|
|
136
140
|
inserts: IdMap<any>;
|
|
137
141
|
deletes: IdMap<any>;
|
|
@@ -152,6 +156,8 @@ export class DiffAttributionManager extends ObservableV2<{
|
|
|
152
156
|
*/
|
|
153
157
|
suggestionOrigins: Array<any> | null;
|
|
154
158
|
_destroyHandler: (arg0: Doc) => void;
|
|
159
|
+
acceptAllChanges(): void;
|
|
160
|
+
rejectAllChanges(): void;
|
|
155
161
|
/**
|
|
156
162
|
* @param {ID} start
|
|
157
163
|
* @param {ID} end
|
|
@@ -178,7 +184,7 @@ export class DiffAttributionManager extends ObservableV2<{
|
|
|
178
184
|
contentLength(item: Item): number;
|
|
179
185
|
}
|
|
180
186
|
export function createAttributionManagerFromDiff(prevDoc: Doc, nextDoc: Doc, options?: {
|
|
181
|
-
attrs?:
|
|
187
|
+
attrs?: Attributions | null | undefined;
|
|
182
188
|
}): DiffAttributionManager;
|
|
183
189
|
/**
|
|
184
190
|
* Intended for projects that used the v13 snapshot feature. With this AttributionManager you can
|
|
@@ -195,11 +201,9 @@ export class SnapshotAttributionManager extends ObservableV2<{
|
|
|
195
201
|
* @param {Snapshot} prevSnapshot
|
|
196
202
|
* @param {Snapshot} nextSnapshot
|
|
197
203
|
* @param {Object} [options] - options for the attribution manager
|
|
198
|
-
* @param {Array<import('./IdMap.js').
|
|
204
|
+
* @param {Array<import('./IdMap.js').ContentAttribute<any>>} [options.attrs] - the attributes to apply to the diff
|
|
199
205
|
*/
|
|
200
|
-
constructor(prevSnapshot: Snapshot, nextSnapshot: Snapshot
|
|
201
|
-
attrs?: import("./IdMap.js").AttributionItem<any>[] | undefined;
|
|
202
|
-
});
|
|
206
|
+
constructor(prevSnapshot: Snapshot, nextSnapshot: Snapshot);
|
|
203
207
|
prevSnapshot: Snapshot;
|
|
204
208
|
nextSnapshot: Snapshot;
|
|
205
209
|
attrs: IdMap<any>;
|
|
@@ -218,9 +222,7 @@ export class SnapshotAttributionManager extends ObservableV2<{
|
|
|
218
222
|
*/
|
|
219
223
|
contentLength(item: Item): number;
|
|
220
224
|
}
|
|
221
|
-
export function createAttributionManagerFromSnapshots(prevSnapshot: Snapshot, nextSnapshot?: Snapshot
|
|
222
|
-
attrs?: import("./IdMap.js").AttributionItem<any>[] | undefined;
|
|
223
|
-
}): SnapshotAttributionManager;
|
|
225
|
+
export function createAttributionManagerFromSnapshots(prevSnapshot: Snapshot, nextSnapshot?: Snapshot): SnapshotAttributionManager;
|
|
224
226
|
export type Attribution = s.Unwrap<typeof attributionJsonSchema>;
|
|
225
227
|
import * as s from 'lib0/schema';
|
|
226
228
|
import { AbstractContent } from '../internals.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributionManager.d.ts","sourceRoot":"","sources":["../../../src/utils/AttributionManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AttributionManager.d.ts","sourceRoot":"","sources":["../../../src/utils/AttributionManager.js"],"names":[],"mappings":"AAqCA;;;;;;;;;GAOE;AAcK,6DAJI,KAAK,CAAC,OAAO,YAAY,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,OAAC,WAClD,OAAO,GACN,WAAW,OAAC,CAgCvB;AAED;;GAEG;AACH,+BAFa,CAAC;IAGZ;;;;;;OAMG;IACH,qBANW,eAAe,SACf,MAAM,WACN,OAAO,SACP,KAAK,CAAC,OAAO,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,kBACtD,CAAC,GAAC,CAAC,GAAC,CAAC,EAQf;IALC,yBAAsB;IACtB,cAAkB;IAClB,iBAAsB;IACtB,yDAAkB;IAClB,gBAAwG;CAE3G;AAED;;;;;;;GAOG;AACH;YAFkC,CAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,GAAG,EAAC,KAAK,EAAC,OAAO,KAAG,IAAI;;;IAG5E;;;;;;;OAOG;IACH,uBAPW,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,WAC7B,MAAM,UACN,MAAM,YACN,OAAO,YACP,eAAe,iBACf,CAAC,GAAC,CAAC,GAAC,CAAC,QAIf;IAED;;;;;;;;OAQG;IACH,qBAHW,IAAI,GACH,MAAM,CAIjB;CACF;AAED;;;;GAIG;AACH;YAFkC,CAAC,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 @@
|
|
|
1
1
|
export const generateNewClientId: typeof random.uint32;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef {import('../utils/types.js').YTypeConstructors} YTypeConstructors
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {import('../utils/types.js').YType} YType
|
|
7
|
-
*/
|
|
8
2
|
/**
|
|
9
3
|
* @typedef {Object} DocOpts
|
|
10
4
|
* @property {boolean} [DocOpts.gc=true] Disable garbage collection (default: gc=true)
|
|
@@ -122,68 +116,18 @@ export class Doc extends ObservableV2<DocEvents> {
|
|
|
122
116
|
/**
|
|
123
117
|
* Define a shared data type.
|
|
124
118
|
*
|
|
125
|
-
* Multiple calls of `ydoc.get(name
|
|
119
|
+
* Multiple calls of `ydoc.get(name)` yield the same result
|
|
126
120
|
* and do not overwrite each other. I.e.
|
|
127
|
-
* `ydoc.get(name
|
|
121
|
+
* `ydoc.get(name) === ydoc.get(name)`
|
|
128
122
|
*
|
|
129
123
|
* After this method is called, the type is also available on `ydoc.share.get(name)`.
|
|
130
124
|
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* Also use the typed methods `getText(name)`, `getArray(name)`, ..
|
|
134
|
-
*
|
|
135
|
-
* @template {YTypeConstructors} [TypeC=typeof AbstractType]
|
|
136
|
-
* @example
|
|
137
|
-
* const ydoc = new Y.Doc(..)
|
|
138
|
-
* const appState = {
|
|
139
|
-
* document: ydoc.getText('document')
|
|
140
|
-
* comments: ydoc.getArray('comments')
|
|
141
|
-
* }
|
|
142
|
-
*
|
|
143
|
-
* @param {string} name
|
|
144
|
-
* @param {TypeC} TypeConstructor The constructor of the type definition. E.g. Y.Text, Y.Array, Y.Map, ...
|
|
145
|
-
* @return {AbstractType} The created type. Constructed with TypeConstructor
|
|
146
|
-
*
|
|
147
|
-
* @public
|
|
148
|
-
*/
|
|
149
|
-
public get<TypeC extends YTypeConstructors = typeof AbstractType>(name: string, TypeConstructor?: TypeC): AbstractType;
|
|
150
|
-
/**
|
|
151
|
-
* @template T
|
|
152
|
-
* @param {string} [name]
|
|
153
|
-
* @return {YArray<T>}
|
|
154
|
-
*
|
|
155
|
-
* @public
|
|
156
|
-
*/
|
|
157
|
-
public getArray<T>(name?: string): YArray<T>;
|
|
158
|
-
/**
|
|
159
|
-
* @param {string} [name]
|
|
160
|
-
* @return {YText}
|
|
125
|
+
* @param {string} key
|
|
126
|
+
* @param {string?} name Type-name
|
|
161
127
|
*
|
|
162
|
-
* @
|
|
163
|
-
*/
|
|
164
|
-
public getText(name?: string): YText;
|
|
165
|
-
/**
|
|
166
|
-
* @template T
|
|
167
|
-
* @param {string} [name]
|
|
168
|
-
* @return {YMap<T>}
|
|
169
|
-
*
|
|
170
|
-
* @public
|
|
171
|
-
*/
|
|
172
|
-
public getMap<T>(name?: string): YMap<T>;
|
|
173
|
-
/**
|
|
174
|
-
* @param {string} [name]
|
|
175
|
-
* @return {YXmlElement}
|
|
176
|
-
*
|
|
177
|
-
* @public
|
|
178
|
-
*/
|
|
179
|
-
public getXmlElement(name?: string): YXmlElement;
|
|
180
|
-
/**
|
|
181
|
-
* @param {string} [name]
|
|
182
|
-
* @return {YXmlFragment}
|
|
183
|
-
*
|
|
184
|
-
* @public
|
|
128
|
+
* @return {YType}
|
|
185
129
|
*/
|
|
186
|
-
|
|
130
|
+
get(key?: string, name?: string | null): YType;
|
|
187
131
|
/**
|
|
188
132
|
* Converts the entire document into a js object, recursively traversing each yjs type
|
|
189
133
|
* Doesn't log types that have not been defined (using ydoc.getType(..)).
|
|
@@ -197,8 +141,6 @@ export class Doc extends ObservableV2<DocEvents> {
|
|
|
197
141
|
};
|
|
198
142
|
}
|
|
199
143
|
export function cloneDoc(ydoc: Doc, opts?: DocOpts): Doc;
|
|
200
|
-
export type YTypeConstructors = import("../utils/types.js").YTypeConstructors;
|
|
201
|
-
export type YType = import("../utils/types.js").YType;
|
|
202
144
|
export type DocOpts = {
|
|
203
145
|
/**
|
|
204
146
|
* Disable garbage collection (default: gc=true)
|
|
@@ -256,12 +198,7 @@ export type DocEvents = {
|
|
|
256
198
|
import * as random from 'lib0/random';
|
|
257
199
|
import { ObservableV2 } from 'lib0/observable';
|
|
258
200
|
import { Item } from '../internals.js';
|
|
201
|
+
import { YType } from '../ytype.js';
|
|
259
202
|
import { StructStore } from '../internals.js';
|
|
260
203
|
import { Transaction } from '../internals.js';
|
|
261
|
-
import { AbstractType } from '../internals.js';
|
|
262
|
-
import { YArray } from '../internals.js';
|
|
263
|
-
import { YText } from '../internals.js';
|
|
264
|
-
import { YMap } from '../internals.js';
|
|
265
|
-
import { YXmlElement } from '../internals.js';
|
|
266
|
-
import { YXmlFragment } from '../internals.js';
|
|
267
204
|
//# sourceMappingURL=Doc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Doc.d.ts","sourceRoot":"","sources":["../../../src/utils/Doc.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Doc.d.ts","sourceRoot":"","sources":["../../../src/utils/Doc.js"],"names":[],"mappings":"AAmBA,uDAAgD;AAEhD;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;;GAGG;AACH;IACE;;OAEG;IACH,gGAFW,OAAO,EAwFjB;IApFC,YAAY;IACZ,iBAtCmB,IAAI,KAAE,OAAO,CAsCR;IACxB,iBAAqC;IACrC,aAAgB;IAChB,4BAAgC;IAChC,yBAAsC;IACtC,2BAAyC;IACzC;;OAEG;IACH,OAFU,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAEN;IACtB,mBAA8B;IAC9B;;OAEG;IACH,cAFU,WAAW,GAAG,IAAI,CAEJ;IACxB;;OAEG;IACH,sBAFU,KAAK,CAAC,WAAW,CAAC,CAEE;IAC9B;;OAEG;IACH,SAFU,GAAG,CAAC,GAAG,CAAC,CAEM;IACxB;;;OAGG;IACH,OAFU,IAAI,OAAC,CAEE;IACjB,oBAA4B;IAC5B,kBAAwB;IACxB,UAAgB;IAChB;;;;;O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AE,IAAI;0BAC/B,CAAS,IAAG,EAAH,GAAG,EAAE,IAAkB,EAAlB,KAAK,CAAC,WAAW,CAAC,KAAE,IAAI;aACtC,CAAS,IAAwD,EAAxD;QAAE,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;QAAC,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,CAAA;KAAE,EAAE,IAAG,EAAH,GAAG,EAAE,IAAW,EAAX,WAAW,KAAE,IAAI;;wBAlC/E,aAAa;6BADR,iBAAiB;qBAHvC,iBAAiB;sBAEF,aAAa;4BAF5B,iBAAiB;4BAAjB,iBAAiB"}
|
package/dist/src/utils/ID.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export function compareIDs(a: ID | null, b: ID | null): boolean;
|
|
|
19
19
|
export function createID(client: number, clock: number): ID;
|
|
20
20
|
export function writeID(encoder: encoding.Encoder, id: ID): void;
|
|
21
21
|
export function readID(decoder: decoding.Decoder): ID;
|
|
22
|
-
export function findRootTypeKey(type:
|
|
22
|
+
export function findRootTypeKey(type: YType<any>): string;
|
|
23
23
|
import * as encoding from 'lib0/encoding';
|
|
24
24
|
import * as decoding from 'lib0/decoding';
|
|
25
|
-
import {
|
|
25
|
+
import { YType } from '../internals.js';
|
|
26
26
|
//# sourceMappingURL=ID.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../../../src/utils/ID.js"],"names":[],"mappings":"AAMA;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,QAAQ,CAAC,OAAO,MAChB,EAAE,QAQZ;AAaM,gCANI,QAAQ,CAAC,OAAO,GACf,EAAE,CAM0D;AAajE,sCANI,
|
|
1
|
+
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../../../src/utils/ID.js"],"names":[],"mappings":"AAMA;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,QAAQ,CAAC,OAAO,MAChB,EAAE,QAQZ;AAaM,gCANI,QAAQ,CAAC,OAAO,GACf,EAAE,CAM0D;AAajE,sCANI,KAAK,CAAC,GAAG,CAAC,GACT,MAAM,CAajB;0BArFyB,eAAe;0BADf,eAAe;sBAFnB,iBAAiB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @todo rename this to `Attribute`
|
|
3
3
|
* @template V
|
|
4
4
|
*/
|
|
5
|
-
export class
|
|
5
|
+
export class ContentAttribute<V> {
|
|
6
6
|
/**
|
|
7
7
|
* @param {string} name
|
|
8
8
|
* @param {V} val
|
|
@@ -12,7 +12,7 @@ export class AttributionItem<V> {
|
|
|
12
12
|
val: V;
|
|
13
13
|
hash(): string;
|
|
14
14
|
}
|
|
15
|
-
export function
|
|
15
|
+
export function createContentAttribute<V>(name: string, val: V): ContentAttribute<V>;
|
|
16
16
|
export function idmapAttrsEqual<T_1>(a: Array<T_1>, b: Array<T_1>): boolean;
|
|
17
17
|
/**
|
|
18
18
|
* @template Attrs
|
|
@@ -21,9 +21,9 @@ export class AttrRange<Attrs> {
|
|
|
21
21
|
/**
|
|
22
22
|
* @param {number} clock
|
|
23
23
|
* @param {number} len
|
|
24
|
-
* @param {Array<
|
|
24
|
+
* @param {Array<ContentAttribute<Attrs>>} attrs
|
|
25
25
|
*/
|
|
26
|
-
constructor(clock: number, len: number, attrs: Array<
|
|
26
|
+
constructor(clock: number, len: number, attrs: Array<ContentAttribute<Attrs>>);
|
|
27
27
|
/**
|
|
28
28
|
* @readonly
|
|
29
29
|
*/
|
|
@@ -35,14 +35,14 @@ export class AttrRange<Attrs> {
|
|
|
35
35
|
/**
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
readonly attrs:
|
|
38
|
+
readonly attrs: ContentAttribute<Attrs>[];
|
|
39
39
|
/**
|
|
40
40
|
* @param {number} clock
|
|
41
41
|
* @param {number} len
|
|
42
42
|
*/
|
|
43
43
|
copyWith(clock: number, len: number): AttrRange<Attrs>;
|
|
44
44
|
}
|
|
45
|
-
export function createMaybeAttrRange<Attrs>(clock: number, len: number, attrs: Array<
|
|
45
|
+
export function createMaybeAttrRange<Attrs>(clock: number, len: number, attrs: Array<ContentAttribute<Attrs>> | null): MaybeAttrRange<Attrs>;
|
|
46
46
|
/**
|
|
47
47
|
* Whenever this is instantiated, it must receive a fresh array of ops, not something copied.
|
|
48
48
|
*
|
|
@@ -62,16 +62,17 @@ export class AttrRanges<Attrs> {
|
|
|
62
62
|
/**
|
|
63
63
|
* @param {number} clock
|
|
64
64
|
* @param {number} length
|
|
65
|
-
* @param {Array<
|
|
65
|
+
* @param {Array<ContentAttribute<Attrs>>} attrs
|
|
66
66
|
*/
|
|
67
|
-
add(clock: number, length: number, attrs: Array<
|
|
67
|
+
add(clock: number, length: number, attrs: Array<ContentAttribute<Attrs>>): void;
|
|
68
68
|
/**
|
|
69
69
|
* Return the list of id ranges, sorted and merged.
|
|
70
70
|
*/
|
|
71
71
|
getIds(): AttrRange<Attrs>[];
|
|
72
72
|
}
|
|
73
73
|
export function mergeIdMaps<T_1>(ams: Array<IdMap<T_1>>): IdMap<T_1>;
|
|
74
|
-
export function createIdMapFromIdSet(idset: IdSet, attrs: Array<
|
|
74
|
+
export function createIdMapFromIdSet(idset: IdSet, attrs: Array<ContentAttribute<any>>): IdMap<any>;
|
|
75
|
+
export function createIdSetFromIdMap(idmap: IdMap<any>): IdSet;
|
|
75
76
|
/**
|
|
76
77
|
* @template Attrs
|
|
77
78
|
*/
|
|
@@ -81,17 +82,18 @@ export class IdMap<Attrs> {
|
|
|
81
82
|
*/
|
|
82
83
|
clients: Map<number, AttrRanges<Attrs>>;
|
|
83
84
|
/**
|
|
84
|
-
* @type {Map<string,
|
|
85
|
+
* @type {Map<string, ContentAttribute<Attrs>>}
|
|
85
86
|
*/
|
|
86
|
-
attrsH: Map<string,
|
|
87
|
+
attrsH: Map<string, ContentAttribute<Attrs>>;
|
|
87
88
|
/**
|
|
88
|
-
* @type {Set<
|
|
89
|
+
* @type {Set<ContentAttribute<Attrs>>}
|
|
89
90
|
*/
|
|
90
|
-
attrs: Set<
|
|
91
|
+
attrs: Set<ContentAttribute<Attrs>>;
|
|
91
92
|
/**
|
|
92
93
|
* @param {(attrRange:AttrRange<Attrs>, client:number) => void} f
|
|
93
94
|
*/
|
|
94
95
|
forEach(f: (attrRange: AttrRange<Attrs>, client: number) => void): void;
|
|
96
|
+
isEmpty(): boolean;
|
|
95
97
|
/**
|
|
96
98
|
* @param {ID} id
|
|
97
99
|
* @return {boolean}
|
|
@@ -124,9 +126,9 @@ export class IdMap<Attrs> {
|
|
|
124
126
|
* @param {number} client
|
|
125
127
|
* @param {number} clock
|
|
126
128
|
* @param {number} len
|
|
127
|
-
* @param {Array<
|
|
129
|
+
* @param {Array<ContentAttribute<Attrs>>} attrs
|
|
128
130
|
*/
|
|
129
|
-
add(client: number, clock: number, len: number, attrs: Array<
|
|
131
|
+
add(client: number, clock: number, len: number, attrs: Array<ContentAttribute<Attrs>>): void;
|
|
130
132
|
/**
|
|
131
133
|
* @param {number} client
|
|
132
134
|
* @param {number} clock
|
|
@@ -136,7 +138,7 @@ export class IdMap<Attrs> {
|
|
|
136
138
|
}
|
|
137
139
|
export function writeIdMap<Attr>(encoder: IdSetEncoderV1 | IdSetEncoderV2, idmap: IdMap<Attr>): void;
|
|
138
140
|
export function encodeIdMap(idmap: IdMap<any>): Uint8Array<ArrayBuffer>;
|
|
139
|
-
export function readIdMap(decoder:
|
|
141
|
+
export function readIdMap(decoder: IdSetDecoderV1 | IdSetDecoderV2): IdMap<any>;
|
|
140
142
|
export function decodeIdMap(data: Uint8Array): IdMap<any>;
|
|
141
143
|
export function createIdMap(): IdMap<any>;
|
|
142
144
|
/**
|
|
@@ -147,15 +149,16 @@ export function createIdMap(): IdMap<any>;
|
|
|
147
149
|
export const insertIntoIdMap: <S extends IdSet | IdMap<any>>(dest: S, src: S) => void;
|
|
148
150
|
export function diffIdMap<ISet extends IdMap<any>>(set: ISet, exclude: IdSet | IdMap<any>): ISet;
|
|
149
151
|
export const intersectMaps: <SetA extends IdSet | IdMap<any>, SetB extends IdSet | IdMap<any>>(setA: SetA, setB: SetB) => SetA extends IdMap<infer A> ? (SetB extends IdMap<infer B> ? IdMap<A | B> : IdMap<A>) : IdSet;
|
|
152
|
+
export function filterIdMap<Attrs>(idmap: IdMap<Attrs>, predicate: (attr: Array<ContentAttribute<Attrs>>) => boolean): IdMap<Attrs>;
|
|
150
153
|
export type MaybeAttrRange<Attrs> = {
|
|
151
154
|
clock: number;
|
|
152
155
|
len: number;
|
|
153
|
-
attrs: Array<
|
|
156
|
+
attrs: Array<ContentAttribute<Attrs>> | null;
|
|
154
157
|
};
|
|
155
158
|
import { IdSet } from '../internals.js';
|
|
156
159
|
import { ID } from '../internals.js';
|
|
157
160
|
import { IdSetEncoderV1 } from '../internals.js';
|
|
158
161
|
import { IdSetEncoderV2 } from '../internals.js';
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
162
|
+
import { IdSetDecoderV1 } from '../internals.js';
|
|
163
|
+
import { IdSetDecoderV2 } from '../internals.js';
|
|
161
164
|
//# sourceMappingURL=IdMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdMap.d.ts","sourceRoot":"","sources":["../../../src/utils/IdMap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdMap.d.ts","sourceRoot":"","sources":["../../../src/utils/IdMap.js"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,8BAFa,CAAC;IAGZ;;;OAGG;IACH,kBAHW,MAAM,OACN,CAAC,EAKX;IAFC,aAAgB;IAChB,OAAc;IAGhB,eAKC;CACF;AAQM,uCALM,CAAC,QACH,MAAM,OACN,CAAC,GACA,gBAAgB,CAAC,CAAC,CAAC,CAEqD;AAe7E,wCAHI,KAAK,CAAC,GAAC,CAAC,KACR,KAAK,CAAC,GAAC,CAAC,WAEgF;AASnG;;GAEG;AACH,uBAFa,KAAK;IAGhB;;;;OAIG;IACH,mBAJW,MAAM,OACN,MAAM,SACN,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,EAexC;IAZC;;OAEG;IACH,uBAAkB;IAClB;;OAEG;IACH,qBAAc;IACd;;OAEG;IACH,0CAAkB;IAGpB;;;OAGG;IACH,gBAHW,MAAM,OACN,MAAM,oBAIhB;CACF;AAeM,qCAPM,KAAK,SAEP,MAAM,OACN,MAAM,SACN,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAC,GAC9B,cAAc,CAAC,KAAK,CAAC,CAE+E;AAEhH;;;;GAIG;AACH,wBAFa,KAAK;IAGhB;;OAEG;IACH,iBAFW,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAQjC;IALC,gBAAmB;IACnB;;OAEG;IACH,aAAe;IAGjB,0BAEC;IAED;;;;OAIG;IACH,WAJW,MAAM,UACN,MAAM,SACN,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,QAMxC;IAED;;OAEG;IACH,6BA2EC;CACF;AAUM,sCAHI,KAAK,CAAC,KAAK,CAAC,GAAC,CAAC,CAAC,GACd,KAAK,CAAC,GAAC,CAAC,CAgCnB;AAMM,4CAHI,KAAK,SACL,KAAK,CAAC,gBAAgB,CAAC,GAAG,C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qC;AAE5C;;;;GAIG;AACH,sFAA+C;AAWxC,0BALmB,IAAI,SAAhB,KAAK,CAAC,GAAG,CAAE,OACd,IAAI,WACJ,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GACjB,IAAI,CAOf;AAED,wNAA2C;AAWpC,4BALM,KAAK,SACP,KAAK,CAAC,KAAK,CAAC,aACZ,CAAC,IAAI,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,KAAK,OAAO,GAChD,KAAK,CAAC,KAAK,CAAC,CAwBvB;2BAvjBY,KAAK,IACL;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAC,CAAA;CAAE;sBAhG5E,iBAAiB;mBAAjB,iBAAiB;+BAAjB,iBAAiB;+BAAjB,iBAAiB;+BAAjB,iBAAiB;+BAAjB,iBAAiB"}
|
|
@@ -20,9 +20,9 @@ export class IdRange {
|
|
|
20
20
|
/**
|
|
21
21
|
* Helper method making this compatible with IdMap.
|
|
22
22
|
*
|
|
23
|
-
* @return {Array<import('./IdMap.js').
|
|
23
|
+
* @return {Array<import('./IdMap.js').ContentAttribute<any>>}
|
|
24
24
|
*/
|
|
25
|
-
get attrs(): Array<import("./IdMap.js").
|
|
25
|
+
get attrs(): Array<import("./IdMap.js").ContentAttribute<any>>;
|
|
26
26
|
}
|
|
27
27
|
export class MaybeIdRange {
|
|
28
28
|
/**
|
|
@@ -145,8 +145,8 @@ export function createDeleteSetFromStructStore(ss: StructStore): IdSet;
|
|
|
145
145
|
export function _createInsertSliceFromStructs(structs: Array<GC | Item>, filterDeleted: boolean): IdRange[];
|
|
146
146
|
export function createInsertSetFromStructStore(ss: import("../internals.js").StructStore, filterDeleted: boolean): IdSet;
|
|
147
147
|
export function writeIdSet(encoder: IdSetEncoderV1 | IdSetEncoderV2, idSet: IdSet): void;
|
|
148
|
-
export function readIdSet(decoder:
|
|
149
|
-
export function readAndApplyDeleteSet(decoder:
|
|
148
|
+
export function readIdSet(decoder: IdSetDecoderV1 | IdSetDecoderV2): IdSet;
|
|
149
|
+
export function readAndApplyDeleteSet(decoder: IdSetDecoderV1 | IdSetDecoderV2, transaction: Transaction, store: StructStore): Uint8Array<ArrayBuffer> | null;
|
|
150
150
|
export function equalIdSets(ds1: IdSet, ds2: IdSet): boolean;
|
|
151
151
|
import * as traits from 'lib0/traits';
|
|
152
152
|
import { ID } from '../internals.js';
|
|
@@ -158,6 +158,6 @@ import { AbstractStruct } from '../internals.js';
|
|
|
158
158
|
import { StructStore } from '../internals.js';
|
|
159
159
|
import { IdSetEncoderV1 } from '../internals.js';
|
|
160
160
|
import { IdSetEncoderV2 } from '../internals.js';
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
161
|
+
import { IdSetDecoderV1 } from '../internals.js';
|
|
162
|
+
import { IdSetDecoderV2 } from '../internals.js';
|
|
163
163
|
//# sourceMappingURL=IdSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdSet.d.ts","sourceRoot":"","sources":["../../../src/utils/IdSet.js"],"names":[],"mappings":"AAkBA;IACE;;;OAGG;IACH,mBAHW,MAAM,OACN,MAAM,EAWhB;IARC;;OAEG;IACH,OAFU,MAAM,CAEE;IAClB;;OAEG;IACH,KAFU,MAAM,CAEF;IAGhB;;;OAGG;IACH,gBAHW,MAAM,OACN,MAAM,WAIhB;IAED;;;;OAIG;IACH,aAFY,KAAK,CAAC,OAAO,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"IdSet.d.ts","sourceRoot":"","sources":["../../../src/utils/IdSet.js"],"names":[],"mappings":"AAkBA;IACE;;;OAGG;IACH,mBAHW,MAAM,OACN,MAAM,EAWhB;IARC;;OAEG;IACH,OAFU,MAAM,CAEE;IAClB;;OAEG;IACH,KAFU,MAAM,CAEF;IAGhB;;;OAGG;IACH,gBAHW,MAAM,OACN,MAAM,W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