@y/y 14.0.0-rc.2 → 14.0.0-rc.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 +36 -12
- package/dist/src/index.d.ts +24 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/structs/AbstractStruct.d.ts +14 -17
- package/dist/src/structs/AbstractStruct.d.ts.map +1 -1
- package/dist/src/structs/GC.d.ts +9 -14
- package/dist/src/structs/GC.d.ts.map +1 -1
- package/dist/src/structs/Item.d.ts +569 -31
- package/dist/src/structs/Item.d.ts.map +1 -1
- package/dist/src/structs/Skip.d.ts +9 -11
- package/dist/src/structs/Skip.d.ts.map +1 -1
- package/dist/src/utils/BlockSet.d.ts +8 -7
- package/dist/src/utils/BlockSet.d.ts.map +1 -1
- package/dist/src/utils/Doc.d.ts +4 -9
- package/dist/src/utils/Doc.d.ts.map +1 -1
- package/dist/src/utils/ID.d.ts +0 -1
- package/dist/src/utils/ID.d.ts.map +1 -1
- package/dist/src/utils/RelativePosition.d.ts +2 -5
- package/dist/src/utils/RelativePosition.d.ts.map +1 -1
- package/dist/src/utils/Renderer.d.ts +144 -0
- package/dist/src/utils/Renderer.d.ts.map +1 -0
- package/dist/src/utils/Snapshot.d.ts +7 -11
- package/dist/src/utils/Snapshot.d.ts.map +1 -1
- package/dist/src/utils/StructStore.d.ts +45 -23
- package/dist/src/utils/StructStore.d.ts.map +1 -1
- package/dist/src/utils/Transaction.d.ts +11 -21
- package/dist/src/utils/Transaction.d.ts.map +1 -1
- package/dist/src/utils/UndoManager.d.ts +13 -14
- package/dist/src/utils/UndoManager.d.ts.map +1 -1
- package/dist/src/utils/UpdateDecoder.d.ts +1 -1
- package/dist/src/utils/UpdateDecoder.d.ts.map +1 -1
- package/dist/src/utils/UpdateEncoder.d.ts +0 -1
- package/dist/src/utils/UpdateEncoder.d.ts.map +1 -1
- package/dist/src/utils/YEvent.d.ts +22 -26
- package/dist/src/utils/YEvent.d.ts.map +1 -1
- package/dist/src/utils/content-helper.d.ts +2 -0
- package/dist/src/utils/content-helper.d.ts.map +1 -0
- package/dist/src/utils/delta-helpers.d.ts +2 -3
- package/dist/src/utils/delta-helpers.d.ts.map +1 -1
- package/dist/src/utils/encoding-helpers.d.ts +6 -0
- package/dist/src/utils/encoding-helpers.d.ts.map +1 -0
- package/dist/src/utils/encoding.d.ts +16 -18
- package/dist/src/utils/encoding.d.ts.map +1 -1
- package/dist/src/utils/ids.d.ts +331 -0
- package/dist/src/utils/ids.d.ts.map +1 -0
- package/dist/src/utils/isParentOf.d.ts +1 -2
- package/dist/src/utils/isParentOf.d.ts.map +1 -1
- package/dist/src/utils/logging.d.ts +0 -1
- package/dist/src/utils/logging.d.ts.map +1 -1
- package/dist/src/utils/meta.d.ts +15 -64
- package/dist/src/utils/meta.d.ts.map +1 -1
- package/dist/src/utils/renderer-helpers.d.ts +99 -0
- package/dist/src/utils/renderer-helpers.d.ts.map +1 -0
- package/dist/src/utils/schemas.d.ts +3 -0
- package/dist/src/utils/schemas.d.ts.map +1 -0
- package/dist/src/utils/transaction-helpers.d.ts +18 -0
- package/dist/src/utils/transaction-helpers.d.ts.map +1 -0
- package/dist/src/utils/updates.d.ts +19 -25
- package/dist/src/utils/updates.d.ts.map +1 -1
- package/dist/src/ytype.d.ts +144 -41
- package/dist/src/ytype.d.ts.map +1 -1
- package/global.d.ts +53 -0
- package/package.json +12 -16
- package/src/index.js +32 -124
- package/src/structs/AbstractStruct.js +21 -16
- package/src/structs/GC.js +15 -20
- package/src/structs/Item.js +992 -318
- package/src/structs/Skip.js +16 -19
- package/src/utils/BlockSet.js +20 -20
- package/src/utils/Doc.js +18 -29
- package/src/utils/ID.js +0 -2
- package/src/utils/RelativePosition.js +15 -25
- package/src/utils/{AttributionManager.js → Renderer.js} +42 -197
- package/src/utils/Snapshot.js +15 -37
- package/src/utils/StructStore.js +89 -227
- package/src/utils/Transaction.js +89 -321
- package/src/utils/UndoManager.js +157 -19
- package/src/utils/UpdateDecoder.js +2 -3
- package/src/utils/UpdateEncoder.js +0 -4
- package/src/utils/YEvent.js +20 -26
- package/src/utils/content-helper.js +0 -0
- package/src/utils/delta-helpers.js +21 -42
- package/src/utils/encoding-helpers.js +110 -0
- package/src/utils/encoding.js +197 -122
- package/src/utils/ids.js +1527 -0
- package/src/utils/isParentOf.js +2 -4
- package/src/utils/logging.js +0 -4
- package/src/utils/meta.js +57 -46
- package/src/utils/renderer-helpers.js +110 -0
- package/src/utils/schemas.js +3 -0
- package/src/utils/transaction-helpers.js +413 -0
- package/src/utils/updates.js +24 -146
- package/src/ytype.js +626 -255
- package/tests/testHelper.js +10 -12
- package/dist/src/internals.d.ts +0 -36
- package/dist/src/internals.d.ts.map +0 -1
- package/dist/src/structs/ContentAny.d.ts +0 -67
- package/dist/src/structs/ContentAny.d.ts.map +0 -1
- package/dist/src/structs/ContentBinary.d.ts +0 -64
- package/dist/src/structs/ContentBinary.d.ts.map +0 -1
- package/dist/src/structs/ContentDeleted.d.ts +0 -64
- package/dist/src/structs/ContentDeleted.d.ts.map +0 -1
- package/dist/src/structs/ContentDoc.d.ts +0 -72
- package/dist/src/structs/ContentDoc.d.ts.map +0 -1
- package/dist/src/structs/ContentEmbed.d.ts +0 -67
- package/dist/src/structs/ContentEmbed.d.ts.map +0 -1
- package/dist/src/structs/ContentFormat.d.ts +0 -69
- package/dist/src/structs/ContentFormat.d.ts.map +0 -1
- package/dist/src/structs/ContentJSON.d.ts +0 -70
- package/dist/src/structs/ContentJSON.d.ts.map +0 -1
- package/dist/src/structs/ContentString.d.ts +0 -70
- package/dist/src/structs/ContentString.d.ts.map +0 -1
- package/dist/src/structs/ContentType.d.ts +0 -77
- package/dist/src/structs/ContentType.d.ts.map +0 -1
- package/dist/src/utils/AttributionManager.d.ts +0 -238
- package/dist/src/utils/AttributionManager.d.ts.map +0 -1
- package/dist/src/utils/IdMap.d.ts +0 -164
- package/dist/src/utils/IdMap.d.ts.map +0 -1
- package/dist/src/utils/IdSet.d.ts +0 -163
- package/dist/src/utils/IdSet.d.ts.map +0 -1
- package/dist/tests/IdMap.tests.d.ts +0 -9
- package/dist/tests/IdMap.tests.d.ts.map +0 -1
- package/dist/tests/IdSet.tests.d.ts +0 -9
- package/dist/tests/IdSet.tests.d.ts.map +0 -1
- package/dist/tests/attribution.tests.d.ts +0 -9
- package/dist/tests/attribution.tests.d.ts.map +0 -1
- package/dist/tests/compatibility.tests.d.ts +0 -5
- package/dist/tests/compatibility.tests.d.ts.map +0 -1
- package/dist/tests/delta.tests.d.ts +0 -7
- package/dist/tests/delta.tests.d.ts.map +0 -1
- package/dist/tests/doc.tests.d.ts +0 -13
- package/dist/tests/doc.tests.d.ts.map +0 -1
- package/dist/tests/encoding.tests.d.ts +0 -5
- package/dist/tests/encoding.tests.d.ts.map +0 -1
- package/dist/tests/index.d.ts +0 -2
- package/dist/tests/index.d.ts.map +0 -1
- package/dist/tests/relativePositions.tests.d.ts +0 -11
- package/dist/tests/relativePositions.tests.d.ts.map +0 -1
- package/dist/tests/snapshot.tests.d.ts +0 -14
- package/dist/tests/snapshot.tests.d.ts.map +0 -1
- package/dist/tests/testHelper.d.ts +0 -171
- package/dist/tests/testHelper.d.ts.map +0 -1
- package/dist/tests/undo-redo.tests.d.ts +0 -27
- package/dist/tests/undo-redo.tests.d.ts.map +0 -1
- package/dist/tests/updates.tests.d.ts +0 -26
- package/dist/tests/updates.tests.d.ts.map +0 -1
- package/dist/tests/y-array.tests.d.ts +0 -43
- package/dist/tests/y-array.tests.d.ts.map +0 -1
- package/dist/tests/y-map.tests.d.ts +0 -42
- package/dist/tests/y-map.tests.d.ts.map +0 -1
- package/dist/tests/y-text.tests.d.ts +0 -49
- package/dist/tests/y-text.tests.d.ts.map +0 -1
- package/dist/tests/y-xml.tests.d.ts +0 -14
- package/dist/tests/y-xml.tests.d.ts.map +0 -1
- package/src/internals.js +0 -35
- package/src/structs/ContentAny.js +0 -115
- package/src/structs/ContentBinary.js +0 -93
- package/src/structs/ContentDeleted.js +0 -101
- package/src/structs/ContentDoc.js +0 -141
- package/src/structs/ContentEmbed.js +0 -98
- package/src/structs/ContentFormat.js +0 -105
- package/src/structs/ContentJSON.js +0 -119
- package/src/structs/ContentString.js +0 -113
- package/src/structs/ContentType.js +0 -152
- package/src/utils/IdMap.js +0 -673
- package/src/utils/IdSet.js +0 -825
|
@@ -5,7 +5,7 @@ export class BlockSet {
|
|
|
5
5
|
* @type {Map<number, BlockRange>}
|
|
6
6
|
*/
|
|
7
7
|
clients: Map<number, BlockRange>;
|
|
8
|
-
toIdSet(): import("./
|
|
8
|
+
toIdSet(): import("./ids.js").IdSet;
|
|
9
9
|
/**
|
|
10
10
|
* Remove id-ranges from update - convert them to skip if applicable.
|
|
11
11
|
*
|
|
@@ -19,16 +19,17 @@ export class BlockSet {
|
|
|
19
19
|
}
|
|
20
20
|
declare class BlockRange {
|
|
21
21
|
/**
|
|
22
|
-
* @param {Array<Item|GC>} refs
|
|
22
|
+
* @param {Array<Item|GC|Skip>} refs
|
|
23
23
|
*/
|
|
24
|
-
constructor(refs: Array<Item | GC>);
|
|
24
|
+
constructor(refs: Array<Item | GC | Skip>);
|
|
25
25
|
i: number;
|
|
26
26
|
/**
|
|
27
|
-
* @type {Array<Item | GC>}
|
|
27
|
+
* @type {Array<Item | GC | Skip>}
|
|
28
28
|
*/
|
|
29
|
-
refs: Array<Item | GC>;
|
|
29
|
+
refs: Array<Item | GC | Skip>;
|
|
30
30
|
}
|
|
31
|
-
import { Item } from '../
|
|
32
|
-
import { GC } from '../
|
|
31
|
+
import { Item } from '../structs/Item.js';
|
|
32
|
+
import { GC } from '../structs/GC.js';
|
|
33
|
+
import { Skip } from '../structs/Skip.js';
|
|
33
34
|
export {};
|
|
34
35
|
//# sourceMappingURL=BlockSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockSet.d.ts","sourceRoot":"","sources":["../../../src/utils/BlockSet.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockSet.d.ts","sourceRoot":"","sources":["../../../src/utils/BlockSet.js"],"names":[],"mappings":"AAyBO,sCANI,eAAe,GAAG,eAAe,GAChC,QAAQ,CA6DnB;AAMM,uCAHI,eAAe,GAAG,eAAe,UACjC,QAAQ,QAUlB;AAeD;IAEI;;OAEG;IACH,SAFU,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAEN;IAG7B,oCAmBC;IAED;;;;OAIG;IACH,iBAFW,KAAK,QAgCf;IAED;;OAEG;IACH,oBAFW,QAAQ,QAgHlB;CACF;AAjMD;IACE;;OAEG;IACH,kBAFW,KAAK,CAAC,IAAI,GAAC,EAAE,GAAC,IAAI,CAAC,EAQ7B;IALC,UAAU;IACV;;OAEG;IACH,MAFU,KAAK,CAAC,IAAI,GAAG,EAAE,GAAG,IAAI,CAAC,CAEjB;CAEnB;qBAnGoB,oBAAoB;mBAMtB,kBAAkB;qBAHhB,oBAAoB"}
|
package/dist/src/utils/Doc.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export const generateNewClientId: typeof random.uint32;
|
|
2
1
|
/**
|
|
3
2
|
* @typedef {Object} DocOpts
|
|
4
3
|
* @property {boolean} [DocOpts.gc=true] Disable garbage collection (default: gc=true)
|
|
@@ -108,11 +107,10 @@ export class Doc extends ObservableV2<DocEvents> {
|
|
|
108
107
|
* @template T
|
|
109
108
|
* @param {function(Transaction):T} f The function that should be executed as a transaction
|
|
110
109
|
* @param {any} [origin] Origin of who started the transaction. Will be stored on transaction.origin
|
|
110
|
+
* @param {boolean} [local]
|
|
111
111
|
* @return T
|
|
112
|
-
*
|
|
113
|
-
* @public
|
|
114
112
|
*/
|
|
115
|
-
|
|
113
|
+
transact<T>(f: (arg0: Transaction) => T, origin?: any, local?: boolean): T;
|
|
116
114
|
/**
|
|
117
115
|
* Define a shared data type.
|
|
118
116
|
*
|
|
@@ -139,8 +137,8 @@ export class Doc extends ObservableV2<DocEvents> {
|
|
|
139
137
|
toJSON(): {
|
|
140
138
|
[x: string]: any;
|
|
141
139
|
};
|
|
140
|
+
$type: import("lib0/schema").Schema<Doc>;
|
|
142
141
|
}
|
|
143
|
-
export function cloneDoc(ydoc: Doc, opts?: DocOpts): Doc;
|
|
144
142
|
export type DocOpts = {
|
|
145
143
|
/**
|
|
146
144
|
* Disable garbage collection (default: gc=true)
|
|
@@ -195,10 +193,7 @@ export type DocEvents = {
|
|
|
195
193
|
removed: Set<Doc>;
|
|
196
194
|
}, arg1: Doc, arg2: Transaction) => void;
|
|
197
195
|
};
|
|
198
|
-
import * as random from 'lib0/random';
|
|
199
196
|
import { ObservableV2 } from 'lib0/observable';
|
|
200
|
-
import { Item } from '../internals.js';
|
|
201
197
|
import { YType } from '../ytype.js';
|
|
202
|
-
import { StructStore } from '
|
|
203
|
-
import { Transaction } from '../internals.js';
|
|
198
|
+
import { StructStore } from './StructStore.js';
|
|
204
199
|
//# 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":"AAeA;;;;;;;;;;;;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,GA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IAAW,EAAX,WAAW,EAAE,IAAG,EAAH,GAAG,KAAE,IAAI;6BAC/B,CAAS,IAAW,EAAX,WAAW,EAAE,IAAG,EAAH,GAAG,KAAE,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;;6BAtC1E,iBAAiB;sBAQxB,aAAa;4BAFP,kBAAkB"}
|
package/dist/src/utils/ID.d.ts
CHANGED
|
@@ -22,5 +22,4 @@ export function readID(decoder: decoding.Decoder): ID;
|
|
|
22
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 { YType } from '../internals.js';
|
|
26
25
|
//# sourceMappingURL=ID.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../../../src/utils/ID.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../../../src/utils/ID.js"],"names":[],"mappings":"AAIA;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"}
|
|
@@ -76,16 +76,13 @@ export class AbsolutePosition {
|
|
|
76
76
|
}
|
|
77
77
|
export function createAbsolutePosition(type: YType<any>, index: number, assoc?: number): AbsolutePosition;
|
|
78
78
|
export function createRelativePosition(type: YType<any>, item: ID | null, assoc?: number): RelativePosition;
|
|
79
|
-
export function createRelativePositionFromTypeIndex(type: YType, index: number, assoc?: number,
|
|
79
|
+
export function createRelativePositionFromTypeIndex(type: YType, index: number, assoc?: number, renderer?: import("../utils/Renderer.js").AbstractRenderer): RelativePosition;
|
|
80
80
|
export function writeRelativePosition(encoder: encoding.Encoder, rpos: RelativePosition): encoding.Encoder;
|
|
81
81
|
export function encodeRelativePosition(rpos: RelativePosition): Uint8Array;
|
|
82
82
|
export function readRelativePosition(decoder: decoding.Decoder): RelativePosition;
|
|
83
83
|
export function decodeRelativePosition(uint8Array: Uint8Array): RelativePosition;
|
|
84
|
-
export function createAbsolutePositionFromRelativePosition(rpos: RelativePosition, doc: Doc, followUndoneDeletions?: boolean,
|
|
84
|
+
export function createAbsolutePositionFromRelativePosition(rpos: RelativePosition, doc: Doc, followUndoneDeletions?: boolean, renderer?: import("../utils/Renderer.js").AbstractRenderer): AbsolutePosition | null;
|
|
85
85
|
export function compareRelativePositions(a: RelativePosition | null, b: RelativePosition | null): boolean;
|
|
86
|
-
import { ID } from '../internals.js';
|
|
87
|
-
import { YType } from '../internals.js';
|
|
88
86
|
import * as encoding from 'lib0/encoding';
|
|
89
87
|
import * as decoding from 'lib0/decoding';
|
|
90
|
-
import { Doc } from '../internals.js';
|
|
91
88
|
//# sourceMappingURL=RelativePosition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelativePosition.d.ts","sourceRoot":"","sources":["../../../src/utils/RelativePosition.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RelativePosition.d.ts","sourceRoot":"","sources":["../../../src/utils/RelativePosition.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;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,KAAK,CAAC,GAAG,CAAC,SACV,MAAM,UACN,MAAM,EAYhB;IATC;;OAEG;IACH,MAFU,KAAK,CAAC,GAAG,CAAC,CAEJ;IAChB;;OAEG;IACH,OAFU,MAAM,CAEE;IAClB,cAAkB;CAErB;AASM,6CANI,KAAK,CAAC,GAAG,CAAC,SACV,MAAM,UACN,MAAM,oBAIyF;AASnG,6CANI,KAAK,CAAC,GAAG,CAAC,QACV,EAAE,GAAC,IAAI,UACP,MAAM,oBAahB;AAaM,0DARI,KAAK,SACL,MAAM,UACN,MAAM,aACN,OAAO,sBAAsB,EAAE,gBAAgB,GAC9C,gBAAgB,CA2B3B;AAQM,+CALI,QAAQ,CAAC,OAAO,QAChB,gBAAgB,oBAsB1B;AAMM,6CAHI,gBAAgB,GACf,UAAU,CAMrB;AAQM,8CALI,QAAQ,CAAC,OAAO,GACf,gBAAgB,CAwB3B;AAMM,mDAHI,UAAU,GACT,gBAAgB,CAEgF;AAiCrG,iEARI,gBAAgB,OAChB,GAAG,0BACH,OAAO,aACP,OAAO,sBAAsB,EAAE,gBAAgB,GAC9C,gBAAgB,GAAC,IAAI,CAuDhC;AASM,4CANI,gBAAgB,GAAC,IAAI,KACrB,gBAAgB,GAAC,IAAI,GACpB,OAAO,CAMlB;0BArVyB,eAAe;0BACf,eAAe"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @implements AbstractRenderer
|
|
3
|
+
*
|
|
4
|
+
* @extends {ObservableV2<{change:(idset:IdSet,origin:any,local:boolean)=>void}>}
|
|
5
|
+
*/
|
|
6
|
+
export class TwosetRenderer extends ObservableV2<{
|
|
7
|
+
change: (idset: IdSet, origin: any, local: boolean) => void;
|
|
8
|
+
}> implements AbstractRenderer {
|
|
9
|
+
/**
|
|
10
|
+
* @param {IdMap<any>} inserts
|
|
11
|
+
* @param {IdMap<any>} deletes
|
|
12
|
+
*/
|
|
13
|
+
constructor(inserts: IdMap<any>, deletes: IdMap<any>);
|
|
14
|
+
inserts: import("./ids.js").IdMap<any>;
|
|
15
|
+
deletes: import("./ids.js").IdMap<any>;
|
|
16
|
+
get $type(): import("lib0/schema").Schema<import("./renderer-helpers.js").AbstractRenderer>;
|
|
17
|
+
/**
|
|
18
|
+
* @param {Array<AttributedContent<any>>} contents - where to write the result
|
|
19
|
+
* @param {number} client
|
|
20
|
+
* @param {number} clock
|
|
21
|
+
* @param {boolean} deleted
|
|
22
|
+
* @param {AbstractContent} content
|
|
23
|
+
* @param {0|1|2} shouldRender - whether this should render or just result in a `retain` operation
|
|
24
|
+
*/
|
|
25
|
+
readContent(contents: Array<AttributedContent<any>>, client: number, clock: number, deleted: boolean, content: AbstractContent, shouldRender: 0 | 1 | 2): void;
|
|
26
|
+
/**
|
|
27
|
+
* @param {Item} item
|
|
28
|
+
* @return {number}
|
|
29
|
+
*/
|
|
30
|
+
contentLength(item: Item): number;
|
|
31
|
+
}
|
|
32
|
+
export class Attributions {
|
|
33
|
+
inserts: import("./ids.js").IdMap<any>;
|
|
34
|
+
deletes: import("./ids.js").IdMap<any>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @implements AbstractRenderer
|
|
38
|
+
*
|
|
39
|
+
* @extends {ObservableV2<{change:(idset:IdSet,origin:any,local:boolean)=>void}>}
|
|
40
|
+
*/
|
|
41
|
+
export class DiffRenderer extends ObservableV2<{
|
|
42
|
+
change: (idset: IdSet, origin: any, local: boolean) => void;
|
|
43
|
+
}> implements AbstractRenderer {
|
|
44
|
+
/**
|
|
45
|
+
* @param {Doc} prevDoc
|
|
46
|
+
* @param {Doc} nextDoc
|
|
47
|
+
* @param {Object} [options] - options for the renderer
|
|
48
|
+
* @param {Attributions?} [options.attrs] - the attributes to apply to the diff
|
|
49
|
+
*/
|
|
50
|
+
constructor(prevDoc: Doc, nextDoc: Doc, { attrs }?: {
|
|
51
|
+
attrs?: Attributions | null | undefined;
|
|
52
|
+
});
|
|
53
|
+
inserts: import("./ids.js").IdMap<any>;
|
|
54
|
+
deletes: import("./ids.js").IdMap<any>;
|
|
55
|
+
_prevDoc: import("./Doc.js").Doc;
|
|
56
|
+
_prevDocStore: import("./StructStore.js").StructStore;
|
|
57
|
+
_nextDoc: import("./Doc.js").Doc;
|
|
58
|
+
_nextBOH: (arg0: Transaction, arg1: import("./Doc.js").Doc) => void;
|
|
59
|
+
_prevBOH: (arg0: Transaction, arg1: import("./Doc.js").Doc) => void;
|
|
60
|
+
_prevUpdateListener: (arg0: Uint8Array<ArrayBuffer>, arg1: any, arg2: import("./Doc.js").Doc, arg3: Transaction) => void;
|
|
61
|
+
_ndUpdateListener: (arg0: Uint8Array<ArrayBuffer>, arg1: any, arg2: import("./Doc.js").Doc, arg3: Transaction) => void;
|
|
62
|
+
_afterTrListener: (arg0: Transaction, arg1: import("./Doc.js").Doc) => void;
|
|
63
|
+
suggestionMode: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Optionally limit origins that may sync changes to the main doc if suggestion-mode is
|
|
66
|
+
* disabled.
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<any>?}
|
|
69
|
+
*/
|
|
70
|
+
suggestionOrigins: Array<any> | null;
|
|
71
|
+
_destroyHandler: (arg0: import("./Doc.js").Doc) => void;
|
|
72
|
+
get $type(): import("lib0/schema").Schema<import("./renderer-helpers.js").AbstractRenderer>;
|
|
73
|
+
acceptAllChanges(): void;
|
|
74
|
+
rejectAllChanges(): void;
|
|
75
|
+
/**
|
|
76
|
+
* @param {ID} start
|
|
77
|
+
* @param {ID} end
|
|
78
|
+
*/
|
|
79
|
+
acceptChanges(start: ID, end?: ID): void;
|
|
80
|
+
/**
|
|
81
|
+
* @param {ID} start
|
|
82
|
+
* @param {ID} end
|
|
83
|
+
*/
|
|
84
|
+
rejectChanges(start: ID, end?: ID): void;
|
|
85
|
+
/**
|
|
86
|
+
* @param {Array<AttributedContent<any>>} contents - where to write the result
|
|
87
|
+
* @param {number} client
|
|
88
|
+
* @param {number} clock
|
|
89
|
+
* @param {boolean} deleted
|
|
90
|
+
* @param {AbstractContent} _content
|
|
91
|
+
* @param {0|1|2} shouldRender - whether this should render or just result in a `retain` operation
|
|
92
|
+
*/
|
|
93
|
+
readContent(contents: Array<AttributedContent<any>>, client: number, clock: number, deleted: boolean, _content: AbstractContent, shouldRender: 0 | 1 | 2): void;
|
|
94
|
+
/**
|
|
95
|
+
* @param {Item} item
|
|
96
|
+
* @return {number}
|
|
97
|
+
*/
|
|
98
|
+
contentLength(item: Item): number;
|
|
99
|
+
}
|
|
100
|
+
export function createDiffRenderer(prevDoc: Doc, nextDoc: Doc, options?: {
|
|
101
|
+
attrs?: import("./ids.js").ContentMap | null | undefined;
|
|
102
|
+
}): DiffRenderer;
|
|
103
|
+
/**
|
|
104
|
+
* Intended for projects that used the v13 snapshot feature. With this renderer you can
|
|
105
|
+
* read content similar to the previous snapshot api. Requires that `ydoc.gc` is turned off.
|
|
106
|
+
*
|
|
107
|
+
* @implements AbstractRenderer
|
|
108
|
+
*
|
|
109
|
+
* @extends {ObservableV2<{change:(idset:IdSet,origin:any,local:boolean)=>void}>}
|
|
110
|
+
*/
|
|
111
|
+
export class SnapshotRenderer extends ObservableV2<{
|
|
112
|
+
change: (idset: IdSet, origin: any, local: boolean) => void;
|
|
113
|
+
}> implements AbstractRenderer {
|
|
114
|
+
/**
|
|
115
|
+
* @param {Snapshot} prevSnapshot
|
|
116
|
+
* @param {Snapshot} nextSnapshot
|
|
117
|
+
* @param {Object} [options] - options for the renderer
|
|
118
|
+
* @param {Array<ContentAttribute>} [options.attrs] - the attributes to apply to the diff
|
|
119
|
+
*/
|
|
120
|
+
constructor(prevSnapshot: Snapshot, nextSnapshot: Snapshot);
|
|
121
|
+
prevSnapshot: import("./Snapshot.js").Snapshot;
|
|
122
|
+
nextSnapshot: import("./Snapshot.js").Snapshot;
|
|
123
|
+
attrs: import("./ids.js").IdMap<any>;
|
|
124
|
+
get $type(): import("lib0/schema").Schema<import("./renderer-helpers.js").AbstractRenderer>;
|
|
125
|
+
/**
|
|
126
|
+
* @param {Array<AttributedContent<any>>} contents - where to write the result
|
|
127
|
+
* @param {number} client
|
|
128
|
+
* @param {number} clock
|
|
129
|
+
* @param {boolean} _deleted
|
|
130
|
+
* @param {AbstractContent} content
|
|
131
|
+
* @param {0|1|2} shouldRender - whether this should render or just result in a `retain` operation
|
|
132
|
+
*/
|
|
133
|
+
readContent(contents: Array<AttributedContent<any>>, client: number, clock: number, _deleted: boolean, content: AbstractContent, shouldRender: 0 | 1 | 2): void;
|
|
134
|
+
/**
|
|
135
|
+
* @param {Item} item
|
|
136
|
+
* @return {number}
|
|
137
|
+
*/
|
|
138
|
+
contentLength(item: Item): number;
|
|
139
|
+
}
|
|
140
|
+
export function createSnapshotRenderer(prevSnapshot: Snapshot, nextSnapshot?: Snapshot): SnapshotRenderer;
|
|
141
|
+
import { ObservableV2 } from 'lib0/observable';
|
|
142
|
+
import { AttributedContent } from './renderer-helpers.js';
|
|
143
|
+
export { baseRenderer, BaseRenderer, AbstractRenderer, $renderer } from "./renderer-helpers.js";
|
|
144
|
+
//# sourceMappingURL=Renderer.d.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OAOG;IACH,sBAPW,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,UAC7B,MAAM,SACN,MAAM,WACN,OAAO,YACP,eAAe,gBACf,CAAC,GAAC,CAAC,GAAC,CAAC,QAkCf;IAED;;;OAGG;IACH,oBAHW,IAAI,GACH,MAAM,CAYjB;CACF;AAUM,4CALI,GAAG,WACH,GAAG,YAEX;IAA8B,KAAK;CACrC,gBAC2G;AAE5G;;;;;;;GAOG;AACH;YAFkC,CAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,GAAG,EAAC,KAAK,EAAC,OAAO,KAAG,IAAI;cAF/D,gBAAgB;IAK7B;;;;;OAKG;IACH,0BALW,QAAQ,gBACR,QAAQ,EAgBlB;IAVC,+CAAgC;IAChC,+CAAgC;IAQhC,qCAAwE;IAG1E,4FAAiC;IAEjC;;;;;;;OAOG;IACH,sBAPW,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,UAC7B,MAAM,SACN,MAAM,YACN,OAAO,WACP,eAAe,gBACf,CAAC,GAAC,CAAC,GAAC,CAAC,QAsBf;IAED;;;OAGG;IACH,oBAHW,IAAI,GACH,MAAM,CASjB;CACF;AAMM,qDAHI,QAAQ,iBACR,QAAQ,oBAEkH;6BAjfxG,iBAAiB;kCAaD,uBAAuB"}
|
|
@@ -22,19 +22,15 @@ export function decodeSnapshot(buf: Uint8Array): Snapshot;
|
|
|
22
22
|
export function createSnapshot(ds: IdSet, sm: Map<number, number>): Snapshot;
|
|
23
23
|
export const emptySnapshot: Snapshot;
|
|
24
24
|
export function snapshot(doc: Doc): Snapshot;
|
|
25
|
-
export function isVisible(item: Item, snapshot: Snapshot | undefined): boolean;
|
|
26
25
|
export function splitSnapshotAffectedStructs(transaction: Transaction, snapshot: Snapshot): void;
|
|
27
26
|
export function createDocFromSnapshot(originDoc: Doc, snapshot: Snapshot, newDoc?: Doc): Doc;
|
|
28
27
|
export function snapshotContainsUpdateV2(snapshot: Snapshot, update: Uint8Array, YDecoder?: typeof UpdateDecoderV2 | typeof UpdateDecoderV1): boolean;
|
|
29
28
|
export function snapshotContainsUpdate(snapshot: Snapshot, update: Uint8Array): boolean;
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { Transaction } from '../internals.js';
|
|
38
|
-
import { UpdateDecoderV2 } from '../internals.js';
|
|
39
|
-
import { UpdateDecoderV1 } from '../internals.js';
|
|
29
|
+
import { IdSetEncoderV1 } from './UpdateEncoder.js';
|
|
30
|
+
import { IdSetEncoderV2 } from './UpdateEncoder.js';
|
|
31
|
+
import { IdSetDecoderV1 } from './UpdateDecoder.js';
|
|
32
|
+
import { IdSetDecoderV2 } from './UpdateDecoder.js';
|
|
33
|
+
import { Doc } from './Doc.js';
|
|
34
|
+
import { UpdateDecoderV2 } from './UpdateDecoder.js';
|
|
35
|
+
import { UpdateDecoderV1 } from './UpdateDecoder.js';
|
|
40
36
|
//# sourceMappingURL=Snapshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snapshot.d.ts","sourceRoot":"","sources":["../../../src/utils/Snapshot.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Snapshot.d.ts","sourceRoot":"","sources":["../../../src/utils/Snapshot.js"],"names":[],"mappings":"AAeA;IACE;;;OAGG;IACH,gBAHW,KAAK,MACL,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,EAY5B;IATC;;OAEG;IACH,IAFU,KAAK,CAEH;IACZ;;;OAGG;IACH,IAFU,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAEhB;CAEf;AAOM,sCAJI,QAAQ,SACR,QAAQ,GACP,OAAO,CAclB;AAOM,2CAJI,QAAQ,YACR,cAAc,GAAG,cAAc,GAC9B,UAAU,CAMrB;AAMM,yCAHI,QAAQ,GACP,UAAU,CAEoE;AAOnF,sCAJI,UAAU,YACV,cAAc,GAAG,cAAc,GAC9B,QAAQ,CAInB;AAMM,oCAHI,UAAU,GACT,QAAQ,CAEuF;AAOpG,mCAJI,KAAK,MACL,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,GACjB,QAAQ,CAE0C;AAE9D,qCAAqE;AAM9D,8BAHI,GAAG,GACF,QAAQ,CAE+F;AAM5G,0DAHI,WAAW,YACX,QAAQ,QAelB;AAgBM,iDALI,GAAG,YACH,QAAQ,WACR,GAAG,GACF,GAAG,CA0Cd;AAOM,mDAJI,QAAQ,UACR,UAAU,aACV,OAAO,eAAe,GAAG,OAAO,eAAe,WAczD;AAMM,iDAHI,QAAQ,UACR,UAAU,WAEkG;+BA1LvD,oBAAoB;+BAApB,oBAAoB;+BADH,oBAAoB;+BAApB,oBAAoB;oBAGjF,UAAU;gCAHmD,oBAAoB;gCAApB,oBAAoB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export class StructStore {
|
|
2
2
|
/**
|
|
3
|
-
* @type {Map<number,Array<GC|Item>>}
|
|
3
|
+
* @type {Map<number,Array<GC|Item|Skip>>}
|
|
4
4
|
*/
|
|
5
|
-
clients: Map<number, Array<GC | Item>>;
|
|
5
|
+
clients: Map<number, Array<GC | Item | Skip>>;
|
|
6
6
|
/**
|
|
7
7
|
* @type {null | { missing: Map<number, number>, update: Uint8Array<ArrayBuffer> }}
|
|
8
8
|
*/
|
|
@@ -14,28 +14,50 @@ export class StructStore {
|
|
|
14
14
|
* @type {null | Uint8Array<ArrayBuffer>}
|
|
15
15
|
*/
|
|
16
16
|
pendingDs: null | Uint8Array<ArrayBuffer>;
|
|
17
|
-
skips: import("./
|
|
18
|
-
get ds(): import("./
|
|
17
|
+
skips: import("./ids.js").IdSet;
|
|
18
|
+
get ds(): import("./ids.js").IdSet;
|
|
19
|
+
/**
|
|
20
|
+
* @param {GC|Item|Skip} struct
|
|
21
|
+
* @function
|
|
22
|
+
*/
|
|
23
|
+
add(struct: GC | Item | Skip): void;
|
|
24
|
+
/**
|
|
25
|
+
* Expects that id is actually in store. This function throws or is an infinite loop otherwise.
|
|
26
|
+
*
|
|
27
|
+
* @param {ID} id
|
|
28
|
+
* @return {GC|Item}
|
|
29
|
+
*/
|
|
30
|
+
get(id: ID): GC | Item;
|
|
31
|
+
/**
|
|
32
|
+
* Expects that id is actually in store. This function throws or is an infinite loop otherwise.
|
|
33
|
+
*
|
|
34
|
+
* @param {ID} id
|
|
35
|
+
* @return {Item}
|
|
36
|
+
*/
|
|
37
|
+
getItem(id: ID): Item;
|
|
38
|
+
/**
|
|
39
|
+
* Get the next expected clock for a specific client.
|
|
40
|
+
*
|
|
41
|
+
* @param {number} client
|
|
42
|
+
* @return {number}
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
* @function
|
|
46
|
+
*/
|
|
47
|
+
public getClock(client: number): number;
|
|
48
|
+
/**
|
|
49
|
+
* Perform a binary search on a sorted array
|
|
50
|
+
* @param {ID} id
|
|
51
|
+
* @return {{ structs: Array<GC|Item|Skip>, index: number }}
|
|
52
|
+
*
|
|
53
|
+
* @function
|
|
54
|
+
*/
|
|
55
|
+
getIndex(id: ID): {
|
|
56
|
+
structs: Array<GC | Item | Skip>;
|
|
57
|
+
index: number;
|
|
58
|
+
};
|
|
19
59
|
}
|
|
20
60
|
export function getStateVector(store: StructStore): Map<number, number>;
|
|
21
|
-
export function getState(store: StructStore, client: number): number;
|
|
22
61
|
export function integrityCheck(store: StructStore): void;
|
|
23
|
-
|
|
24
|
-
export function findIndexSS(structs: Array<Item | GC>, clock: number): number;
|
|
25
|
-
export function find(store: StructStore, id: ID): GC | Item;
|
|
26
|
-
/**
|
|
27
|
-
* Expects that id is actually in store. This function throws or is an infinite loop otherwise.
|
|
28
|
-
* @private
|
|
29
|
-
* @function
|
|
30
|
-
*/
|
|
31
|
-
export const getItem: (arg0: StructStore, arg1: ID) => Item;
|
|
32
|
-
export function findIndexCleanStart(transaction: Transaction | null, structs: Array<Item | GC>, clock: number): number;
|
|
33
|
-
export function getItemCleanStart(transaction: Transaction, id: ID): Item;
|
|
34
|
-
export function getItemCleanEnd(transaction: Transaction, store: StructStore, id: ID): Item;
|
|
35
|
-
export function replaceStruct(tr: Transaction, struct: GC | Item, newStruct: GC | Item): void;
|
|
36
|
-
export function iterateStructs(transaction: Transaction, structs: Array<Item | GC>, clockStart: number, len: number, f: (arg0: GC | Item) => void): void;
|
|
37
|
-
import { GC } from '../internals.js';
|
|
38
|
-
import { Item } from '../internals.js';
|
|
39
|
-
import { ID } from '../internals.js';
|
|
40
|
-
import { Transaction } from '../internals.js';
|
|
62
|
+
import { Skip } from '../structs/Skip.js';
|
|
41
63
|
//# sourceMappingURL=StructStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StructStore.d.ts","sourceRoot":"","sources":["../../../src/utils/StructStore.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StructStore.d.ts","sourceRoot":"","sources":["../../../src/utils/StructStore.js"],"names":[],"mappings":"AAKA;IAEI;;OAEG;IACH,SAFU,GAAG,CAAC,MAAM,EAAC,KAAK,CAAC,EAAE,GAAC,IAAI,GAAC,IAAI,CAAC,CAAC,CAEjB;IAExB;;OAEG;IACH,gBAFU,IAAI,GAAG;QAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;KAAE,CAExD;IAC1B;;OAEG;IACH,WAFU,IAAI,GAAG,UAAU,CAAC,WAAW,CAAC,CAEnB;IACrB,gCAA0B;IAG5B,mCAEC;IAED;;;OAGG;IACH,YAHW,EAAE,GAAC,IAAI,GAAC,IAAI,QA4BtB;IAED;;;;;OAKG;IACH,QAHW,EAAE,GACD,EAAE,GAAC,IAAI,CAKlB;IAED;;;;;OAKG;IACH,YAHW,EAAE,GACD,IAAI,CAKf;IAED;;;;;;;;OAQG;IACH,wBANW,MAAM,GACL,MAAM,CAYjB;IAED;;;;;;OAMG;IACH,aALW,EAAE,GACD;QAAE,OAAO,EAAE,KAAK,CAAC,EAAE,GAAC,IAAI,GAAC,IAAI,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAQ1D;CACF;AAYM,sCANI,WAAW,GACV,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAe7B;AAQM,sCALI,WAAW,QAerB;qBAtJoB,oBAAoB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const generateNewClientId: typeof random.uint53;
|
|
1
2
|
/**
|
|
2
3
|
* A transaction is created for every change on the Yjs model. It is possible
|
|
3
4
|
* to bundle changes on the Yjs model in a single transaction to
|
|
@@ -7,18 +8,18 @@
|
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* const ydoc = new Y.Doc()
|
|
10
|
-
* const map = ydoc.
|
|
11
|
+
* const map = ydoc.get('map')
|
|
11
12
|
* // Log content when change is triggered
|
|
12
13
|
* map.observe(() => {
|
|
13
14
|
* console.log('change triggered')
|
|
14
15
|
* })
|
|
15
16
|
* // Each change on the map type triggers a log message:
|
|
16
|
-
* map.
|
|
17
|
-
* map.
|
|
17
|
+
* map.setAttr('a', 0) // => "change triggered"
|
|
18
|
+
* map.setAttr('b', 0) // => "change triggered"
|
|
18
19
|
* // When put in a transaction, it will trigger the log after the transaction:
|
|
19
20
|
* ydoc.transact(() => {
|
|
20
|
-
* map.
|
|
21
|
-
* map.
|
|
21
|
+
* map.setAttr('a', 1)
|
|
22
|
+
* map.setAttr('b', 1)
|
|
22
23
|
* }) // => "change triggered"
|
|
23
24
|
*
|
|
24
25
|
* @public
|
|
@@ -38,16 +39,16 @@ export class Transaction {
|
|
|
38
39
|
/**
|
|
39
40
|
* Describes the set of deleted items by ids
|
|
40
41
|
*/
|
|
41
|
-
deleteSet: IdSet;
|
|
42
|
+
deleteSet: import("./ids.js").IdSet;
|
|
42
43
|
/**
|
|
43
44
|
* Describes the set of items that are cleaned up / deleted by ids. It is a subset of
|
|
44
45
|
* this.deleteSet
|
|
45
46
|
*/
|
|
46
|
-
cleanUps: IdSet;
|
|
47
|
+
cleanUps: import("./ids.js").IdSet;
|
|
47
48
|
/**
|
|
48
49
|
* Describes the set of inserted items by ids
|
|
49
50
|
*/
|
|
50
|
-
insertSet: IdSet;
|
|
51
|
+
insertSet: import("./ids.js").IdSet;
|
|
51
52
|
/**
|
|
52
53
|
* Holds the state before the transaction started.
|
|
53
54
|
* @type {Map<Number,Number>?}
|
|
@@ -121,20 +122,9 @@ export class Transaction {
|
|
|
121
122
|
*/
|
|
122
123
|
get afterState(): Map<number, number>;
|
|
123
124
|
}
|
|
124
|
-
export function writeUpdateMessageFromTransaction(encoder: UpdateEncoderV1 | UpdateEncoderV2, transaction: Transaction): boolean;
|
|
125
|
-
export function nextID(transaction: Transaction): import("./ID.js").ID;
|
|
126
|
-
export function addChangedTypeToTransaction(transaction: Transaction, type: YType, parentSub: string | null): void;
|
|
127
|
-
export function tryGc(tr: Transaction, idset: IdSet, gcFilter: (arg0: Item) => boolean): void;
|
|
128
|
-
export function cleanupFormattingGap(transaction: Transaction, start: Item, curr: Item | null, startAttributes: Map<string, any>, currAttributes: Map<string, any>): number;
|
|
129
125
|
export function cleanupYTextFormatting(type: YType): number;
|
|
130
126
|
export function cleanupYTextAfterTransaction(transaction: Transaction): void;
|
|
131
127
|
export function transact<T>(doc: Doc, f: (arg0: Transaction) => T, origin?: any, local?: boolean): T;
|
|
132
|
-
import
|
|
133
|
-
import {
|
|
134
|
-
import { YType } from '../ytype.js';
|
|
135
|
-
import { YEvent } from '../internals.js';
|
|
136
|
-
import { AbstractStruct } from '../internals.js';
|
|
137
|
-
import { UpdateEncoderV1 } from '../internals.js';
|
|
138
|
-
import { UpdateEncoderV2 } from '../internals.js';
|
|
139
|
-
import { Item } from '../internals.js';
|
|
128
|
+
import * as random from 'lib0/random';
|
|
129
|
+
import { YEvent } from './YEvent.js';
|
|
140
130
|
//# sourceMappingURL=Transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/utils/Transaction.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/utils/Transaction.js"],"names":[],"mappings":"AAiBA,uDAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IACE;;;;OAIG;IACH,iBAJW,GAAG,UACH,GAAG,SACH,OAAO,EA+EjB;IA5EC;;;OAGG;IACH,KAFU,GAAG,CAEC;IACd;;OAEG;IACH,oCAA8B;IAC9B;;;OAGG;IACH,mCAA6B;IAC7B;;OAEG;IACH,oCAA8B;IAC9B;;;OAGG;IACH,cAFU,GAAG,gBAAe,OAAC,CAEL;IACxB;;;OAGG;IACH,aAFU,GAAG,gBAAe,OAAC,CAEN;IACvB;;;;;OAKG;IACH,SAFU,GAAG,CAAC,KAAK,EAAC,GAAG,CAAC,SAAO,IAAI,CAAC,CAAC,CAEb;IACxB;;;;OAIG;IACH,oBAFU,GAAG,CAAC,KAAK,EAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAEJ;IACnC;;OAEG;IACH,eAFU,KAAK,CAAC,cAAc,CAAC,CAER;IACvB;;OAEG;IACH,QAFU,GAAG,CAEO;IACpB;;;OAGG;IACH,MAFU,GAAG,CAAC,GAAG,EAAC,GAAG,CAAC,CAED;IACrB;;;OAGG;IACH,OAFU,OAAO,CAEC;IAClB;;OAEG;IACH,cAFU,GAAG,CAAC,GAAG,CAAC,CAEW;IAC7B;;OAEG;IACH,gBAFU,GAAG,CAAC,GAAG,CAAC,CAEa;IAC/B;;OAEG;IACH,eAFU,GAAG,CAAC,GAAG,CAAC,CAEY;IAC9B;;OAEG;IACH,wBAFU,OAAO,CAEkB;IACnC,eAAkB;IAGpB;;;;;OAKG;IACH,mBAFU,GAAG,gBAAe,CAW3B;IAED;;;;;OAKG;IACH,kBAFU,GAAG,gBAAe,CAc3B;CACF;AAcM,6CAHI,KAAK,GACJ,MAAM,CA2BjB;AAoJM,0DAFI,WAAW,QAsCrB;AAcM,yBATM,CAAC,OACH,GAAG,KACH,CAAS,IAAW,EAAX,WAAW,KAAE,CAAC,WACvB,GAAG,UACH,OAAO,GACN,CAAC,CAwCZ;wBAvauB,aAAa;uBAJd,aAAa"}
|
|
@@ -4,8 +4,8 @@ export class StackItem {
|
|
|
4
4
|
* @param {IdSet} deletions
|
|
5
5
|
*/
|
|
6
6
|
constructor(insertions: IdSet, deletions: IdSet);
|
|
7
|
-
inserts: IdSet;
|
|
8
|
-
deletes: IdSet;
|
|
7
|
+
inserts: import("./ids.js").IdSet;
|
|
8
|
+
deletes: import("./ids.js").IdSet;
|
|
9
9
|
/**
|
|
10
10
|
* Use this to save and restore metadata like selection range
|
|
11
11
|
*/
|
|
@@ -20,7 +20,7 @@ export class StackItem {
|
|
|
20
20
|
* filter returns false, the type/item won't be deleted even it is in the
|
|
21
21
|
* undo/redo scope.
|
|
22
22
|
* @property {Set<any>} [UndoManagerOptions.trackedOrigins=new Set([null])]
|
|
23
|
-
* @property {boolean} [
|
|
23
|
+
* @property {boolean} [ignoreRemoteAttributeChanges] By default, the UndoManager will never overwrite remote changes. In some cases this might be the expected behavior. This property enables overwriting remote changes on attribute changes. (previously named `ignoreRemoteMapChanges`)
|
|
24
24
|
* @property {Doc} [doc] The document that this UndoManager operates on. Only needed if typeScope is empty.
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
@@ -52,7 +52,7 @@ export class UndoManager extends ObservableV2<{
|
|
|
52
52
|
* @param {Doc|YType|Array<YType>} typeScope Limits the scope of the UndoManager. If this is set to a ydoc instance, all changes on that ydoc will be undone. If set to a specific type, only changes on that type or its children will be undone. Also accepts an array of types.
|
|
53
53
|
* @param {UndoManagerOptions} options
|
|
54
54
|
*/
|
|
55
|
-
constructor(typeScope: Doc | YType | Array<YType>, { captureTimeout, captureTransaction, deleteFilter, trackedOrigins,
|
|
55
|
+
constructor(typeScope: Doc | YType | Array<YType>, { captureTimeout, captureTransaction, deleteFilter, trackedOrigins, ignoreRemoteAttributeChanges, doc }?: UndoManagerOptions);
|
|
56
56
|
/**
|
|
57
57
|
* @type {Array<YType | Doc>}
|
|
58
58
|
*/
|
|
@@ -83,7 +83,7 @@ export class UndoManager extends ObservableV2<{
|
|
|
83
83
|
*/
|
|
84
84
|
currStackItem: StackItem | null;
|
|
85
85
|
lastChange: number;
|
|
86
|
-
|
|
86
|
+
ignoreRemoteAttributeChanges: boolean;
|
|
87
87
|
captureTimeout: number;
|
|
88
88
|
/**
|
|
89
89
|
* @param {Transaction} transaction
|
|
@@ -150,7 +150,9 @@ export class UndoManager extends ObservableV2<{
|
|
|
150
150
|
*/
|
|
151
151
|
canRedo(): boolean;
|
|
152
152
|
}
|
|
153
|
-
export function undoContentIds(ydoc: Doc, contentIds:
|
|
153
|
+
export function undoContentIds(ydoc: Doc, contentIds: ContentIds, opts?: UndoManagerOptions): void;
|
|
154
|
+
export function redoItem(transaction: Transaction, item: Item, redoitems: Set<Item>, itemsToDelete: IdSet, ignoreRemoteAttributeChanges: boolean, um: import("../utils/UndoManager.js").UndoManager): Item | null;
|
|
155
|
+
export function keepItem(item: Item | null, keep: boolean): void;
|
|
154
156
|
export type UndoManagerOptions = {
|
|
155
157
|
captureTimeout?: number | undefined;
|
|
156
158
|
/**
|
|
@@ -166,9 +168,9 @@ export type UndoManagerOptions = {
|
|
|
166
168
|
deleteFilter?: ((arg0: Item) => boolean) | undefined;
|
|
167
169
|
trackedOrigins?: Set<any> | undefined;
|
|
168
170
|
/**
|
|
169
|
-
*
|
|
171
|
+
* By default, the UndoManager will never overwrite remote changes. In some cases this might be the expected behavior. This property enables overwriting remote changes on attribute changes. (previously named `ignoreRemoteMapChanges`)
|
|
170
172
|
*/
|
|
171
|
-
|
|
173
|
+
ignoreRemoteAttributeChanges?: boolean | undefined;
|
|
172
174
|
/**
|
|
173
175
|
* The document that this UndoManager operates on. Only needed if typeScope is empty.
|
|
174
176
|
*/
|
|
@@ -180,11 +182,8 @@ export type StackItemEvent = {
|
|
|
180
182
|
type: "undo" | "redo";
|
|
181
183
|
changedParentTypes: Map<YType, Array<YEvent<any>>>;
|
|
182
184
|
};
|
|
183
|
-
import { IdSet } from '../internals.js';
|
|
184
185
|
import { ObservableV2 } from 'lib0/observable';
|
|
185
|
-
import { YType } from '../
|
|
186
|
-
import { Doc } from '
|
|
187
|
-
import { Item } from '../
|
|
188
|
-
import { Transaction } from '../internals.js';
|
|
189
|
-
import { YEvent } from '../internals.js';
|
|
186
|
+
import { YType } from '../ytype.js';
|
|
187
|
+
import { Doc } from './Doc.js';
|
|
188
|
+
import { Item } from '../structs/Item.js';
|
|
190
189
|
//# sourceMappingURL=UndoManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoManager.d.ts","sourceRoot":"","sources":["../../../src/utils/UndoManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UndoManager.d.ts","sourceRoot":"","sources":["../../../src/utils/UndoManager.js"],"names":[],"mappings":"AAeA;IACE;;;OAGG;IACH,wBAHW,KAAK,aACL,KAAK,EASf;IANC,kCAAyB;IACzB,kCAAwB;IACxB;;OAEG;IACH,oBAAqB;CAExB;AAgGD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH;wBAF8C,CAAS,IAAc,EAAd,cAAc,EAAE,IAAW,EAAX,WAAW,KAAE,IAAI;yBAAuB,CAAS,IAAc,EAAd,cAAc,EAAE,IAAW,EAAX,WAAW,KAAE,IAAI;qBAAmB,CAAS,IAAwD,EAAxD;QAAE,gBAAgB,EAAE,OAAO,CAAC;QAAC,gBAAgB,EAAE,OAAO,CAAA;KAAE,KAAE,IAAI;0BAAwB,CAAS,IAAc,EAAd,cAAc,EAAE,IAAW,EAAX,WAAW,KAAE,IAAI;;IAGnT;;;OAGG;IACH,u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;;;;2BACpB,IAAI,KAAE,OAAO;;;;;;;;;;;;eAWtB,SAAS;YACT,GAAG;UACH,MAAM,GAAC,MAAM;wBACb,GAAG,CAAC,KAAK,EAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;;6BA3Id,iBAAiB;sBAUxB,aAAa;oBADf,UAAU;qBANK,oBAAoB"}
|
|
@@ -167,5 +167,5 @@ export class UpdateDecoderV2 extends IdSetDecoderV2 {
|
|
|
167
167
|
}
|
|
168
168
|
export type IdSetDecoder = IdSetDecoderV1 | IdSetDecoderV2;
|
|
169
169
|
import * as decoding from 'lib0/decoding';
|
|
170
|
-
import { ID } from '
|
|
170
|
+
import { ID } from './ID.js';
|
|
171
171
|
//# sourceMappingURL=UpdateDecoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDecoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateDecoder.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateDecoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateDecoder.js"],"names":[],"mappings":"AAKA;;GAEG;AAEH;IACE;;OAEG;IACH,qBAFW,QAAQ,CAAC,OAAO,EAI1B;IADC,+CAA0B;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,QAAQ,CAAC,OAAO,EAQ1B;IALC;;OAEG;IACH,kBAAkB;IAClB,+CAA0B;IAG5B,sBAEC;IAED;;OAEG;IACH,eAFY,MAAM,CAKjB;IAED;;OAEG;IACH,aAFY,MAAM,CAMjB;CACF;AAED;IAMI;;;;;OAKG;IACH,MAFU,KAAK,CAAC,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;2BArRY,cAAc,GAAG,cAAc;0BALlB,eAAe;mBAEZ,SAAS"}
|
|
@@ -162,5 +162,4 @@ export class UpdateEncoderV2 extends IdSetEncoderV2 {
|
|
|
162
162
|
export type IdSetEncoder = IdSetEncoderV1 | IdSetEncoderV2;
|
|
163
163
|
export type UpdateEncoder = UpdateEncoderV1 | UpdateEncoderV2;
|
|
164
164
|
import * as encoding from 'lib0/encoding';
|
|
165
|
-
import { ID } from '../internals.js';
|
|
166
165
|
//# sourceMappingURL=UpdateEncoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateEncoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateEncoder.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateEncoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateEncoder.js"],"names":[],"mappings":"AAGA;IAEI,8BAA2C;IAG7C,wCAEC;IAED,yBAEC;IAED;;OAEG;IACH,uBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,mBAFW,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,wCAEC;IAED,yBAEC;IAED;;OAEG;IACH,uBAFW,MAAM,QAMhB;IAED;;OAEG;IACH,mBAFW,MAAM,QAQhB;CACF;AAED;IAGI;;OAEG;IACH,QAFU,GAAG,CAAC,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,QAK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