@y/y 14.0.0-18 → 14.0.0-20
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 +20 -6
- 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 +19 -16
- package/dist/src/utils/IdMap.d.ts.map +1 -1
- package/dist/src/utils/IdSet.d.ts +2 -2
- 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/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/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/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 +43 -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 +3 -9
- 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 +1 -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 +152 -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 +281 -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 +97 -0
- package/src/utils/ts.js +3 -0
- package/src/utils/updates.js +711 -0
- package/src/ytype.js +1962 -0
- package/dist/Skip-wRT7BKFP.js +0 -11877
- package/dist/Skip-wRT7BKFP.js.map +0 -1
- package/dist/index-BV-j5wdP.js +0 -163
- package/dist/index-BV-j5wdP.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
|
@@ -62,15 +62,15 @@ export class Transaction {
|
|
|
62
62
|
* All types that were directly modified (property added or child
|
|
63
63
|
* inserted/deleted). New types are not included in this Set.
|
|
64
64
|
* Maps from type to parentSubs (`item.parentSub = null` for YArray)
|
|
65
|
-
* @type {Map<
|
|
65
|
+
* @type {Map<YType,Set<String|null>>}
|
|
66
66
|
*/
|
|
67
|
-
changed: Map<
|
|
67
|
+
changed: Map<YType, Set<string | null>>;
|
|
68
68
|
/**
|
|
69
69
|
* Stores the events for the types that observe also child elements.
|
|
70
70
|
* It is mainly used by `observeDeep`.
|
|
71
|
-
* @type {Map<
|
|
71
|
+
* @type {Map<YType,Array<YEvent<any>>>}
|
|
72
72
|
*/
|
|
73
|
-
changedParentTypes: Map<
|
|
73
|
+
changedParentTypes: Map<YType, Array<YEvent<any>>>;
|
|
74
74
|
/**
|
|
75
75
|
* @type {Array<AbstractStruct>}
|
|
76
76
|
*/
|
|
@@ -123,11 +123,15 @@ export class Transaction {
|
|
|
123
123
|
}
|
|
124
124
|
export function writeUpdateMessageFromTransaction(encoder: UpdateEncoderV1 | UpdateEncoderV2, transaction: Transaction): boolean;
|
|
125
125
|
export function nextID(transaction: Transaction): import("./ID.js").ID;
|
|
126
|
-
export function addChangedTypeToTransaction(transaction: Transaction, type:
|
|
126
|
+
export function addChangedTypeToTransaction(transaction: Transaction, type: YType, parentSub: string | null): void;
|
|
127
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
|
+
export function cleanupYTextFormatting(type: YType): number;
|
|
130
|
+
export function cleanupYTextAfterTransaction(transaction: Transaction): void;
|
|
128
131
|
export function transact<T>(doc: Doc, f: (arg0: Transaction) => T, origin?: any, local?: boolean): T;
|
|
129
132
|
import { Doc } from '../internals.js';
|
|
130
133
|
import { IdSet } from '../internals.js';
|
|
134
|
+
import { YType } from '../ytype.js';
|
|
131
135
|
import { YEvent } from '../internals.js';
|
|
132
136
|
import { AbstractStruct } from '../internals.js';
|
|
133
137
|
import { UpdateEncoderV1 } from '../internals.js';
|
|
@@ -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":"AAwBA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IACE;;;;OAIG;IACH,iBAJW,GAAG,UACH,GAAG,SACH,OAAO,EA+EjB;IA5EC;;;OAGG;IACH,KAFU,GAAG,CAEC;IACd;;OAEG;IACH,iBAA8B;IAC9B;;;OAGG;IACH,gBAA6B;IAC7B;;OAEG;IACH,iBAA8B;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;AAOM,2DAJI,eAAe,GAAG,eAAe,eACjC,WAAW,GACV,OAAO,CASlB;AAQM,oCALI,WAAW,wBAQrB;AAUM,yDAJI,WAAW,QACX,KAAK,aACL,MAAM,GAAC,IAAI,QAOrB;AAyFM,0BAJI,WAAW,SACX,KAAK,YACL,CAAS,IAAI,EAAJ,IAAI,KAAE,OAAO,QAKhC;AAwDM,kDATI,WAAW,SACX,IAAI,QACJ,IAAI,GAAC,IAAI,mBACT,GAAG,CAAC,MAAM,EAAC,GAAG,CAAC,kBACf,GAAG,CAAC,MAAM,EAAC,GAAG,CAAC,GACd,MAAM,CAwDjB;AAcM,6CAHI,KAAK,GACJ,MAAM,CA2BjB;AAQM,0DAFI,WAAW,QAsCrB;AA6IM,yBARM,CAAC,OACH,GAAG,KACH,CAAS,IAAW,EAAX,WAAW,KAAE,CAAC,WACvB,GAAG,oBACF,CAAC,CAwCZ;oBAhpBM,iBAAiB;sBAAjB,iBAAiB;sBAEF,aAAa;uBAF5B,iBAAiB;+BAAjB,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;qBAAjB,iBAAiB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export class StackItem {
|
|
2
2
|
/**
|
|
3
|
-
* @param {IdSet} deletions
|
|
4
3
|
* @param {IdSet} insertions
|
|
4
|
+
* @param {IdSet} deletions
|
|
5
5
|
*/
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
constructor(insertions: IdSet, deletions: IdSet);
|
|
7
|
+
inserts: IdSet;
|
|
8
|
+
deletes: IdSet;
|
|
9
9
|
/**
|
|
10
10
|
* Use this to save and restore metadata like selection range
|
|
11
11
|
*/
|
|
@@ -28,7 +28,7 @@ export class StackItem {
|
|
|
28
28
|
* @property {StackItem} StackItemEvent.stackItem
|
|
29
29
|
* @property {any} StackItemEvent.origin
|
|
30
30
|
* @property {'undo'|'redo'} StackItemEvent.type
|
|
31
|
-
* @property {Map<
|
|
31
|
+
* @property {Map<YType,Array<YEvent<any>>>} StackItemEvent.changedParentTypes
|
|
32
32
|
*/
|
|
33
33
|
/**
|
|
34
34
|
* Fires 'stack-item-added' event when a stack item was added to either the undo- or
|
|
@@ -49,14 +49,14 @@ export class UndoManager extends ObservableV2<{
|
|
|
49
49
|
'stack-item-updated': (arg0: StackItemEvent, arg1: UndoManager) => void;
|
|
50
50
|
}> {
|
|
51
51
|
/**
|
|
52
|
-
* @param {Doc|
|
|
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 |
|
|
55
|
+
constructor(typeScope: Doc | YType | Array<YType>, { captureTimeout, captureTransaction, deleteFilter, trackedOrigins, ignoreRemoteMapChanges, doc }?: UndoManagerOptions);
|
|
56
56
|
/**
|
|
57
|
-
* @type {Array<
|
|
57
|
+
* @type {Array<YType | Doc>}
|
|
58
58
|
*/
|
|
59
|
-
scope: Array<
|
|
59
|
+
scope: Array<YType | Doc>;
|
|
60
60
|
doc: Doc;
|
|
61
61
|
deleteFilter: (arg0: Item) => boolean;
|
|
62
62
|
trackedOrigins: Set<any>;
|
|
@@ -92,9 +92,9 @@ export class UndoManager extends ObservableV2<{
|
|
|
92
92
|
/**
|
|
93
93
|
* Extend the scope.
|
|
94
94
|
*
|
|
95
|
-
* @param {Array<
|
|
95
|
+
* @param {Array<YType | Doc> | YType | Doc} ytypes
|
|
96
96
|
*/
|
|
97
|
-
addToScope(ytypes: Array<
|
|
97
|
+
addToScope(ytypes: Array<YType | Doc> | YType | Doc): void;
|
|
98
98
|
/**
|
|
99
99
|
* @param {any} origin
|
|
100
100
|
*/
|
|
@@ -150,6 +150,7 @@ export class UndoManager extends ObservableV2<{
|
|
|
150
150
|
*/
|
|
151
151
|
canRedo(): boolean;
|
|
152
152
|
}
|
|
153
|
+
export function undoContentIds(ydoc: Doc, contentIds: import("./meta.js").ContentIds): void;
|
|
153
154
|
export type UndoManagerOptions = {
|
|
154
155
|
captureTimeout?: number | undefined;
|
|
155
156
|
/**
|
|
@@ -177,10 +178,11 @@ export type StackItemEvent = {
|
|
|
177
178
|
stackItem: StackItem;
|
|
178
179
|
origin: any;
|
|
179
180
|
type: "undo" | "redo";
|
|
180
|
-
changedParentTypes: Map<
|
|
181
|
+
changedParentTypes: Map<YType, Array<YEvent<any>>>;
|
|
181
182
|
};
|
|
182
183
|
import { IdSet } from '../internals.js';
|
|
183
184
|
import { ObservableV2 } from 'lib0/observable';
|
|
185
|
+
import { YType } from '../internals.js';
|
|
184
186
|
import { Doc } from '../internals.js';
|
|
185
187
|
import { Item } from '../internals.js';
|
|
186
188
|
import { Transaction } from '../internals.js';
|
|
@@ -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":"AAmBA;IACE;;;OAGG;IACH,wBAHW,KAAK,aACL,KAAK,EASf;IANC,eAAyB;IACzB,eAAwB;IACxB;;OAEG;IACH,oBAAqB;CAExB;AAgGD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH;wBAF8C,CAAS,IAAc,EAAd,cAAc,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FY,OAAO,CAIlB;CAOF;AAUM,qCAHI,GAAG,cACH,OAAO,WAAW,EAAE,UAAU,QAMxC;;;;;;iCAlRsB,WAAW,KAAE,OAAO;;;;;;;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;;sBAtIpC,iBAAiB;6BAKK,iBAAiB;sBALvC,iBAAiB;oBAAjB,iBAAiB;qBAAjB,iBAAiB;4BAAjB,iBAAiB;uBAAjB,iBAAiB"}
|
|
@@ -159,6 +159,8 @@ export class UpdateEncoderV2 extends IdSetEncoderV2 {
|
|
|
159
159
|
*/
|
|
160
160
|
writeKey(key: string): void;
|
|
161
161
|
}
|
|
162
|
+
export type IdSetEncoder = IdSetEncoderV1 | IdSetEncoderV2;
|
|
163
|
+
export type UpdateEncoder = UpdateEncoderV1 | UpdateEncoderV2;
|
|
162
164
|
import * as encoding from 'lib0/encoding';
|
|
163
165
|
import { ID } from '../internals.js';
|
|
164
166
|
//# sourceMappingURL=UpdateEncoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateEncoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateEncoder.js"],"names":[],"mappings":"AAOA;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,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;
|
|
1
|
+
{"version":3,"file":"UpdateEncoder.d.ts","sourceRoot":"","sources":["../../../src/utils/UpdateEncoder.js"],"names":[],"mappings":"AAOA;IAEI,8BAA2C;IAG7C,wCAEC;IAED,yBAEC;IAED;;OAEG;IACH,uBAFW,MAAM,QAIhB;IAED;;O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,UAAU,QAIpB;IAED;;;;;;OAMG;IACH,iBAFW,GAAG,QAIb;IAED;;;;;;;OAOG;IACH,cAFW,MAAM,QAwBhB;CACF;2BAGY,cAAc,GAAG,cAAc;4BAG/B,eAAe,GAAG,eAAe;0BApUpB,eAAe;mBAIlC,iBAAiB"}
|
|
@@ -1,44 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @template {AbstractType<any,any>} Target
|
|
2
|
+
* @template {delta.DeltaConf} DConf
|
|
6
3
|
* YEvent describes the changes on a YType.
|
|
7
4
|
*/
|
|
8
|
-
export class YEvent<
|
|
5
|
+
export class YEvent<DConf extends delta.DeltaConf> {
|
|
9
6
|
/**
|
|
10
|
-
* @param {
|
|
7
|
+
* @param {YType<DConf>} target The changed type.
|
|
11
8
|
* @param {Transaction} transaction
|
|
12
9
|
* @param {Set<any>?} subs The keys that changed
|
|
13
10
|
*/
|
|
14
|
-
constructor(target:
|
|
11
|
+
constructor(target: YType<DConf>, transaction: Transaction, subs: Set<any> | null);
|
|
15
12
|
/**
|
|
16
13
|
* The type on which this event was created on.
|
|
17
|
-
* @type {
|
|
14
|
+
* @type {YType<DConf>}
|
|
18
15
|
*/
|
|
19
|
-
target:
|
|
16
|
+
target: YType<DConf>;
|
|
20
17
|
/**
|
|
21
18
|
* The current target on which the observe callback is called.
|
|
22
|
-
* @type {
|
|
19
|
+
* @type {YType<any>}
|
|
23
20
|
*/
|
|
24
|
-
currentTarget:
|
|
21
|
+
currentTarget: YType<any>;
|
|
25
22
|
/**
|
|
26
23
|
* The transaction that triggered this event.
|
|
27
24
|
* @type {Transaction}
|
|
28
25
|
*/
|
|
29
26
|
transaction: Transaction;
|
|
30
27
|
/**
|
|
31
|
-
* @type {
|
|
28
|
+
* @type {delta.Delta<import('../ytype.js').DeltaConfDeltaToYType<DConf>>|null}
|
|
32
29
|
*/
|
|
33
|
-
_delta:
|
|
30
|
+
_delta: delta.Delta<import("../ytype.js").DeltaConfDeltaToYType<DConf>> | null;
|
|
34
31
|
/**
|
|
35
|
-
* @type {
|
|
32
|
+
* @type {delta.Delta<DConf>|null}
|
|
36
33
|
*/
|
|
37
|
-
_deltaDeep:
|
|
38
|
-
/**
|
|
39
|
-
* @type {Array<string|number>|null}
|
|
40
|
-
*/
|
|
41
|
-
_path: Array<string | number> | null;
|
|
34
|
+
_deltaDeep: delta.Delta<DConf> | null;
|
|
42
35
|
/**
|
|
43
36
|
* Whether the children changed.
|
|
44
37
|
* @type {Boolean}
|
|
@@ -50,20 +43,6 @@ export class YEvent<Target extends AbstractType<any, any>> {
|
|
|
50
43
|
* @type {Set<string>}
|
|
51
44
|
*/
|
|
52
45
|
keysChanged: Set<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Computes the path from `y` to the changed type.
|
|
55
|
-
*
|
|
56
|
-
* @todo v14 should standardize on path: Array<{parent, index}> because that is easier to work with.
|
|
57
|
-
*
|
|
58
|
-
* The following property holds:
|
|
59
|
-
* @example
|
|
60
|
-
* let type = y
|
|
61
|
-
* event.path.forEach(dir => {
|
|
62
|
-
* type = type.get(dir)
|
|
63
|
-
* })
|
|
64
|
-
* type === event.target // => true
|
|
65
|
-
*/
|
|
66
|
-
get path(): (string | number)[];
|
|
67
46
|
/**
|
|
68
47
|
* Check if a struct is deleted by this event.
|
|
69
48
|
*
|
|
@@ -87,34 +66,34 @@ export class YEvent<Target extends AbstractType<any, any>> {
|
|
|
87
66
|
* @param {AbstractAttributionManager} am
|
|
88
67
|
* @param {object} [opts]
|
|
89
68
|
* @param {Deep} [opts.deep]
|
|
90
|
-
* @return {
|
|
69
|
+
* @return {Deep extends true ? delta.Delta<DConf> : delta.Delta<import('../internals.js').DeltaConfDeltaToYType<DConf>>} The Delta representation of this type.
|
|
91
70
|
*
|
|
92
71
|
* @public
|
|
93
72
|
*/
|
|
94
73
|
public getDelta<Deep extends boolean = false>(am?: AbstractAttributionManager, { deep }?: {
|
|
95
74
|
deep?: Deep | undefined;
|
|
96
|
-
}):
|
|
75
|
+
}): Deep extends true ? delta.Delta<DConf> : delta.Delta<import("../internals.js").DeltaConfDeltaToYType<DConf>>;
|
|
97
76
|
/**
|
|
98
77
|
* Compute the changes in the delta format.
|
|
99
78
|
* A {@link https://quilljs.com/docs/delta/|Quill Delta}) that represents the changes on the document.
|
|
100
79
|
*
|
|
101
|
-
* @type {
|
|
80
|
+
* @type {delta.Delta<import('../internals.js').DeltaConfDeltaToYType<DConf>>} The Delta representation of this type.
|
|
102
81
|
* @public
|
|
103
82
|
*/
|
|
104
|
-
public get delta():
|
|
83
|
+
public get delta(): delta.Delta<import("../internals.js").DeltaConfDeltaToYType<DConf>>;
|
|
105
84
|
/**
|
|
106
85
|
* Compute the changes in the delta format.
|
|
107
86
|
* A {@link https://quilljs.com/docs/delta/|Quill Delta}) that represents the changes on the document.
|
|
108
87
|
*
|
|
109
|
-
* @type {
|
|
88
|
+
* @type {delta.Delta<DConf>} The Delta representation of this type.
|
|
110
89
|
* @public
|
|
111
90
|
*/
|
|
112
|
-
public get deltaDeep():
|
|
91
|
+
public get deltaDeep(): delta.Delta<DConf>;
|
|
113
92
|
}
|
|
114
|
-
export
|
|
115
|
-
import { AbstractType } from '../internals.js';
|
|
116
|
-
import { Transaction } from '../internals.js';
|
|
93
|
+
export function getPathTo(parent: YType, child: YType, am?: AbstractAttributionManager): Array<string | number>;
|
|
117
94
|
import * as delta from 'lib0/delta';
|
|
95
|
+
import { YType } from '../internals.js';
|
|
96
|
+
import { Transaction } from '../internals.js';
|
|
118
97
|
import { AbstractStruct } from '../internals.js';
|
|
119
98
|
import { AbstractAttributionManager } from '../internals.js';
|
|
120
99
|
//# sourceMappingURL=YEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/YEvent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YEvent.d.ts","sourceRoot":"","sources":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,CAAC,MAAM,GAAC,MAAM,CAAC,CAqB/B;uBAlLsB,YAAY;sBAH5B,iBAAiB;4BAAjB,iBAAiB;+BAAjB,iBAAiB;2CAAjB,iBAAiB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function isParentOf(parent: import("../
|
|
1
|
+
export function isParentOf(parent: import("../ytype.js").YType, child: Item | null): boolean;
|
|
2
2
|
import { Item } from '../internals.js';
|
|
3
3
|
//# sourceMappingURL=isParentOf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isParentOf.d.ts","sourceRoot":"","sources":["../../../src/utils/isParentOf.js"],"names":[],"mappings":"AAYO,mCAPI,OAAO,
|
|
1
|
+
{"version":3,"file":"isParentOf.d.ts","sourceRoot":"","sources":["../../../src/utils/isParentOf.js"],"names":[],"mappings":"AAYO,mCAPI,OAAO,aAAa,EAAE,KAAK,SAC3B,IAAI,GAAC,IAAI,WAcnB;qBApBoB,iBAAiB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function logType(type:
|
|
2
|
-
import {
|
|
1
|
+
export function logType(type: YType<any>): void;
|
|
2
|
+
import { YType } from '../internals.js';
|
|
3
3
|
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/utils/logging.js"],"names":[],"mappings":"AAWO,8BAFI,
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/utils/logging.js"],"names":[],"mappings":"AAWO,8BAFI,KAAK,CAAC,GAAG,CAAC,QAWpB;sBAlBM,iBAAiB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export function createContentIds(inserts: import("./IdSet.js").IdSet, deletes: import("./IdSet.js").IdSet): {
|
|
2
|
+
inserts: idset.IdSet;
|
|
3
|
+
deletes: idset.IdSet;
|
|
4
|
+
};
|
|
5
|
+
export function createContentIdsFromContentMap(contentMap: ContentMap): {
|
|
6
|
+
inserts: idset.IdSet;
|
|
7
|
+
deletes: idset.IdSet;
|
|
8
|
+
};
|
|
9
|
+
export function createContentIdsFromDoc(ydoc: import("./Doc.js").Doc): {
|
|
10
|
+
inserts: idset.IdSet;
|
|
11
|
+
deletes: idset.IdSet;
|
|
12
|
+
};
|
|
13
|
+
export function createContentIdsFromDocDiff(ydocPrev: import("./Doc.js").Doc, ydocNext: import("./Doc.js").Doc): {
|
|
14
|
+
inserts: idset.IdSet;
|
|
15
|
+
deletes: idset.IdSet;
|
|
16
|
+
};
|
|
17
|
+
export function excludeContentIds(content: ContentIds, excludeContent: ContentIds): {
|
|
18
|
+
inserts: idset.IdSet;
|
|
19
|
+
deletes: idset.IdSet;
|
|
20
|
+
};
|
|
21
|
+
export function createContentMap(inserts: import("./IdMap.js").IdMap<any>, deletes: import("./IdMap.js").IdMap<any>): {
|
|
22
|
+
inserts: idmap.IdMap<any>;
|
|
23
|
+
deletes: idmap.IdMap<any>;
|
|
24
|
+
};
|
|
25
|
+
export function createContentMapFromContentIds(contentIds: ContentIds, insertAttrs: Array<idmap.ContentAttribute<any>>, deleteAttrs?: Array<idmap.ContentAttribute<any>>): {
|
|
26
|
+
inserts: idmap.IdMap<any>;
|
|
27
|
+
deletes: idmap.IdMap<any>;
|
|
28
|
+
};
|
|
29
|
+
export function writeContentIds(encoder: import("./UpdateEncoder.js").IdSetEncoder, contentIds: ContentIds): void;
|
|
30
|
+
export function encodeContentIds(contentIds: ContentIds): void;
|
|
31
|
+
export function writeContentMap(encoder: import("./UpdateEncoder.js").IdSetEncoder, contentMap: ContentMap): void;
|
|
32
|
+
export function encodeContentMap(contentMap: ContentMap): void;
|
|
33
|
+
export type ContentIds = {
|
|
34
|
+
inserts: import("./IdSet.js").IdSet;
|
|
35
|
+
deletes: import("./IdSet.js").IdSet;
|
|
36
|
+
};
|
|
37
|
+
export type ContentMap = {
|
|
38
|
+
inserts: import("./IdMap.js").IdMap<any>;
|
|
39
|
+
deletes: import("./IdMap.js").IdMap<any>;
|
|
40
|
+
};
|
|
41
|
+
import * as idset from './IdSet.js';
|
|
42
|
+
import * as idmap from './IdMap.js';
|
|
43
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/utils/meta.js"],"names":[],"mappings":"AAoBO,0CAHI,OAAO,YAAY,EAAE,KAAK,WAC1B,OAAO,YAAY,EAAE,KAAK;;;EAEuC;AAKrE,2DAFI,UAAU;;;EAKpB;AAKM,8CAFI,OAAO,UAAU,EAAE,GAAG;;;EAKhC;AAMM,sDAHI,OAAO,UAAU,EAAE,GAAG,YACtB,OAAO,UAAU,EAAE,GAAG;;;EAGwD;AAMlF,2CAHI,UAAU,kBACV,UAAU;;;EAGiH;AAM/H,0CAHI,OAAO,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,WAC/B,OAAO,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC;;;EAEkC;AAOrE,2DAJI,UAAU,eACV,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,gBAClC,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;;;EAK5C;AAMM,yCAHI,OAAO,oBAAoB,EAAE,YAAY,cACzC,UAAU,QAKpB;AAKM,6CAFI,UAAU,QAE0E;AAQxF,yCAHI,OAAO,oBAAoB,EAAE,YAAY,cACzC,UAAU,QAKpB;AAKM,6CAFI,UAAU,QAE0E;yBAvFlF;IAAE,OAAO,EAAE,OAAO,YAAY,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,YAAY,EAAE,KAAK,CAAA;CAAE;yBAI5E;IAAE,OAAO,EAAE,OAAO,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;CAAE;uBAR5E,YAAY;uBADZ,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/utils/ts.js"],"names":[],"mappings":"qBACa;QAAO,MAAM,GAAC,GAAG;CAAC,GAAC,KAAK,CAAC,GAAG,CAAC,GAAC,MAAM,GAAC,IAAI,GAAC,MAAM,GAAC,UAAU,YAAQ,OAAO,aAAa,EAAE,KAAK"}
|
|
@@ -53,14 +53,8 @@ export class LazyStructWriter {
|
|
|
53
53
|
export function mergeUpdates(updates: Array<Uint8Array<ArrayBuffer>>): Uint8Array<ArrayBuffer>;
|
|
54
54
|
export function encodeStateVectorFromUpdateV2(update: Uint8Array, YEncoder?: typeof IdSetEncoderV1 | typeof IdSetEncoderV2, YDecoder?: typeof UpdateDecoderV1 | typeof UpdateDecoderV2): Uint8Array;
|
|
55
55
|
export function encodeStateVectorFromUpdate(update: Uint8Array): Uint8Array;
|
|
56
|
-
export function
|
|
57
|
-
|
|
58
|
-
deletes: import("./IdSet.js").IdSet;
|
|
59
|
-
};
|
|
60
|
-
export function readUpdateIdRanges(update: Uint8Array): {
|
|
61
|
-
inserts: import("./IdSet.js").IdSet;
|
|
62
|
-
deletes: import("./IdSet.js").IdSet;
|
|
63
|
-
};
|
|
56
|
+
export function readUpdateToContentIdsV2(update: Uint8Array, YDecoder?: typeof UpdateDecoderV2 | typeof UpdateDecoderV1): import("./meta.js").ContentIds;
|
|
57
|
+
export function readUpdateToContentIds(update: Uint8Array): import("./meta.js").ContentIds;
|
|
64
58
|
export function mergeUpdatesV2(updates: Array<Uint8Array<ArrayBuffer>>, YDecoder?: typeof UpdateDecoderV1 | typeof UpdateDecoderV2, YEncoder?: typeof UpdateEncoderV1 | typeof UpdateEncoderV2): Uint8Array<ArrayBuffer>;
|
|
65
59
|
export function diffUpdateV2(update: Uint8Array, sv: Uint8Array, YDecoder?: typeof UpdateDecoderV1 | typeof UpdateDecoderV2, YEncoder?: typeof UpdateEncoderV1 | typeof UpdateEncoderV2): Uint8Array<ArrayBuffer>;
|
|
66
60
|
export function diffUpdate(update: Uint8Array, sv: Uint8Array): Uint8Array<ArrayBuffer>;
|
|
@@ -75,7 +69,7 @@ export type ObfuscatorOptions = {
|
|
|
75
69
|
/**
|
|
76
70
|
* Whether to obfuscate nodeName / hookName
|
|
77
71
|
*/
|
|
78
|
-
|
|
72
|
+
name?: boolean | undefined;
|
|
79
73
|
};
|
|
80
74
|
import { GC } from '../internals.js';
|
|
81
75
|
import { Item } from '../internals.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../src/utils/updates.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../src/utils/updates.js"],"names":[],"mappings":"AAkFA;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;AAMhE,oCAHI,UAAU,aACV,OAAO,eAAe,GAAG,OAAO,eAAe,QAYzD;AAMM,qCAHI,UAAU;;;EAG0D;AAOxE,uCAJI,UAAU,aACV,OAAO,eAAe,GAAG,OAAO,eAAe;;;EAczD;AAED;IACE;;OAEG;IACH,qBAFW,eAAe,GAAG,eAAe,EAkB3C;IAfC,mBAAmB;IACnB,mBAAmB;IACnB,gBAAgB;IAChB,2CAAsB;IACtB;;;;;;;;;OASG;IACH,eAFU,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,UAAU,CAAA;KAAE,CAAC,CAEtC;CAE1B;AAMM,sCAHI,KAAK,CAAC,UAAU,CAAC,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