@y/y 14.0.0-rc.0 → 14.0.0-rc.10

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.
Files changed (165) hide show
  1. package/dist/src/index.d.ts +24 -1
  2. package/dist/src/index.d.ts.map +1 -1
  3. package/dist/src/structs/AbstractStruct.d.ts +14 -17
  4. package/dist/src/structs/AbstractStruct.d.ts.map +1 -1
  5. package/dist/src/structs/GC.d.ts +9 -14
  6. package/dist/src/structs/GC.d.ts.map +1 -1
  7. package/dist/src/structs/Item.d.ts +573 -35
  8. package/dist/src/structs/Item.d.ts.map +1 -1
  9. package/dist/src/structs/Skip.d.ts +9 -11
  10. package/dist/src/structs/Skip.d.ts.map +1 -1
  11. package/dist/src/utils/AttributionManager.d.ts +25 -119
  12. package/dist/src/utils/AttributionManager.d.ts.map +1 -1
  13. package/dist/src/utils/BlockSet.d.ts +35 -0
  14. package/dist/src/utils/BlockSet.d.ts.map +1 -0
  15. package/dist/src/utils/Doc.d.ts +4 -9
  16. package/dist/src/utils/Doc.d.ts.map +1 -1
  17. package/dist/src/utils/ID.d.ts +0 -1
  18. package/dist/src/utils/ID.d.ts.map +1 -1
  19. package/dist/src/utils/RelativePosition.d.ts +0 -3
  20. package/dist/src/utils/RelativePosition.d.ts.map +1 -1
  21. package/dist/src/utils/Snapshot.d.ts +7 -11
  22. package/dist/src/utils/Snapshot.d.ts.map +1 -1
  23. package/dist/src/utils/StructStore.d.ts +45 -23
  24. package/dist/src/utils/StructStore.d.ts.map +1 -1
  25. package/dist/src/utils/Transaction.d.ts +6 -16
  26. package/dist/src/utils/Transaction.d.ts.map +1 -1
  27. package/dist/src/utils/UndoManager.d.ts +8 -9
  28. package/dist/src/utils/UndoManager.d.ts.map +1 -1
  29. package/dist/src/utils/UpdateDecoder.d.ts +1 -1
  30. package/dist/src/utils/UpdateDecoder.d.ts.map +1 -1
  31. package/dist/src/utils/UpdateEncoder.d.ts +0 -1
  32. package/dist/src/utils/UpdateEncoder.d.ts.map +1 -1
  33. package/dist/src/utils/YEvent.d.ts +12 -17
  34. package/dist/src/utils/YEvent.d.ts.map +1 -1
  35. package/dist/src/utils/attribution-manager-helpers.d.ts +99 -0
  36. package/dist/src/utils/attribution-manager-helpers.d.ts.map +1 -0
  37. package/dist/src/utils/content-helper.d.ts +2 -0
  38. package/dist/src/utils/content-helper.d.ts.map +1 -0
  39. package/dist/src/utils/delta-helpers.d.ts +0 -1
  40. package/dist/src/utils/delta-helpers.d.ts.map +1 -1
  41. package/dist/src/utils/encoding-helpers.d.ts +6 -0
  42. package/dist/src/utils/encoding-helpers.d.ts.map +1 -0
  43. package/dist/src/utils/encoding.d.ts +16 -14
  44. package/dist/src/utils/encoding.d.ts.map +1 -1
  45. package/dist/src/utils/ids.d.ts +327 -0
  46. package/dist/src/utils/ids.d.ts.map +1 -0
  47. package/dist/src/utils/isParentOf.d.ts +1 -2
  48. package/dist/src/utils/isParentOf.d.ts.map +1 -1
  49. package/dist/src/utils/logging.d.ts +0 -1
  50. package/dist/src/utils/logging.d.ts.map +1 -1
  51. package/dist/src/utils/meta.d.ts +15 -64
  52. package/dist/src/utils/meta.d.ts.map +1 -1
  53. package/dist/src/utils/schemas.d.ts +3 -0
  54. package/dist/src/utils/schemas.d.ts.map +1 -0
  55. package/dist/src/utils/transaction-helpers.d.ts +17 -0
  56. package/dist/src/utils/transaction-helpers.d.ts.map +1 -0
  57. package/dist/src/utils/updates.d.ts +19 -24
  58. package/dist/src/utils/updates.d.ts.map +1 -1
  59. package/dist/src/ytype.d.ts +41 -18
  60. package/dist/src/ytype.d.ts.map +1 -1
  61. package/global.d.ts +53 -0
  62. package/package.json +11 -14
  63. package/src/index.js +32 -124
  64. package/src/structs/AbstractStruct.js +21 -16
  65. package/src/structs/GC.js +15 -20
  66. package/src/structs/Item.js +994 -317
  67. package/src/structs/Skip.js +16 -19
  68. package/src/utils/AttributionManager.js +23 -178
  69. package/src/utils/BlockSet.js +291 -0
  70. package/src/utils/Doc.js +15 -29
  71. package/src/utils/ID.js +0 -2
  72. package/src/utils/RelativePosition.js +8 -18
  73. package/src/utils/Snapshot.js +12 -34
  74. package/src/utils/StructStore.js +89 -227
  75. package/src/utils/Transaction.js +58 -302
  76. package/src/utils/UndoManager.js +150 -15
  77. package/src/utils/UpdateDecoder.js +2 -3
  78. package/src/utils/UpdateEncoder.js +0 -4
  79. package/src/utils/YEvent.js +10 -16
  80. package/src/utils/attribution-manager-helpers.js +110 -0
  81. package/src/utils/content-helper.js +0 -0
  82. package/src/utils/delta-helpers.js +4 -10
  83. package/src/utils/encoding-helpers.js +110 -0
  84. package/src/utils/encoding.js +200 -126
  85. package/src/utils/{IdSet.js → ids.js} +703 -68
  86. package/src/utils/isParentOf.js +2 -4
  87. package/src/utils/logging.js +0 -4
  88. package/src/utils/meta.js +58 -47
  89. package/src/utils/schemas.js +3 -0
  90. package/src/utils/transaction-helpers.js +386 -0
  91. package/src/utils/updates.js +24 -250
  92. package/src/ytype.js +249 -82
  93. package/tests/testHelper.js +13 -12
  94. package/dist/src/internals.d.ts +0 -36
  95. package/dist/src/internals.d.ts.map +0 -1
  96. package/dist/src/structs/ContentAny.d.ts +0 -67
  97. package/dist/src/structs/ContentAny.d.ts.map +0 -1
  98. package/dist/src/structs/ContentBinary.d.ts +0 -64
  99. package/dist/src/structs/ContentBinary.d.ts.map +0 -1
  100. package/dist/src/structs/ContentDeleted.d.ts +0 -64
  101. package/dist/src/structs/ContentDeleted.d.ts.map +0 -1
  102. package/dist/src/structs/ContentDoc.d.ts +0 -72
  103. package/dist/src/structs/ContentDoc.d.ts.map +0 -1
  104. package/dist/src/structs/ContentEmbed.d.ts +0 -67
  105. package/dist/src/structs/ContentEmbed.d.ts.map +0 -1
  106. package/dist/src/structs/ContentFormat.d.ts +0 -69
  107. package/dist/src/structs/ContentFormat.d.ts.map +0 -1
  108. package/dist/src/structs/ContentJSON.d.ts +0 -70
  109. package/dist/src/structs/ContentJSON.d.ts.map +0 -1
  110. package/dist/src/structs/ContentString.d.ts +0 -70
  111. package/dist/src/structs/ContentString.d.ts.map +0 -1
  112. package/dist/src/structs/ContentType.d.ts +0 -77
  113. package/dist/src/structs/ContentType.d.ts.map +0 -1
  114. package/dist/src/utils/IdMap.d.ts +0 -164
  115. package/dist/src/utils/IdMap.d.ts.map +0 -1
  116. package/dist/src/utils/IdSet.d.ts +0 -163
  117. package/dist/src/utils/IdSet.d.ts.map +0 -1
  118. package/dist/src/utils/StructSet.d.ts +0 -27
  119. package/dist/src/utils/StructSet.d.ts.map +0 -1
  120. package/dist/tests/IdMap.tests.d.ts +0 -9
  121. package/dist/tests/IdMap.tests.d.ts.map +0 -1
  122. package/dist/tests/IdSet.tests.d.ts +0 -9
  123. package/dist/tests/IdSet.tests.d.ts.map +0 -1
  124. package/dist/tests/attribution.tests.d.ts +0 -9
  125. package/dist/tests/attribution.tests.d.ts.map +0 -1
  126. package/dist/tests/compatibility.tests.d.ts +0 -5
  127. package/dist/tests/compatibility.tests.d.ts.map +0 -1
  128. package/dist/tests/delta.tests.d.ts +0 -7
  129. package/dist/tests/delta.tests.d.ts.map +0 -1
  130. package/dist/tests/doc.tests.d.ts +0 -13
  131. package/dist/tests/doc.tests.d.ts.map +0 -1
  132. package/dist/tests/encoding.tests.d.ts +0 -5
  133. package/dist/tests/encoding.tests.d.ts.map +0 -1
  134. package/dist/tests/index.d.ts +0 -2
  135. package/dist/tests/index.d.ts.map +0 -1
  136. package/dist/tests/relativePositions.tests.d.ts +0 -11
  137. package/dist/tests/relativePositions.tests.d.ts.map +0 -1
  138. package/dist/tests/snapshot.tests.d.ts +0 -13
  139. package/dist/tests/snapshot.tests.d.ts.map +0 -1
  140. package/dist/tests/testHelper.d.ts +0 -168
  141. package/dist/tests/testHelper.d.ts.map +0 -1
  142. package/dist/tests/undo-redo.tests.d.ts +0 -27
  143. package/dist/tests/undo-redo.tests.d.ts.map +0 -1
  144. package/dist/tests/updates.tests.d.ts +0 -25
  145. package/dist/tests/updates.tests.d.ts.map +0 -1
  146. package/dist/tests/y-array.tests.d.ts +0 -43
  147. package/dist/tests/y-array.tests.d.ts.map +0 -1
  148. package/dist/tests/y-map.tests.d.ts +0 -42
  149. package/dist/tests/y-map.tests.d.ts.map +0 -1
  150. package/dist/tests/y-text.tests.d.ts +0 -49
  151. package/dist/tests/y-text.tests.d.ts.map +0 -1
  152. package/dist/tests/y-xml.tests.d.ts +0 -14
  153. package/dist/tests/y-xml.tests.d.ts.map +0 -1
  154. package/src/internals.js +0 -35
  155. package/src/structs/ContentAny.js +0 -115
  156. package/src/structs/ContentBinary.js +0 -93
  157. package/src/structs/ContentDeleted.js +0 -101
  158. package/src/structs/ContentDoc.js +0 -141
  159. package/src/structs/ContentEmbed.js +0 -98
  160. package/src/structs/ContentFormat.js +0 -105
  161. package/src/structs/ContentJSON.js +0 -119
  162. package/src/structs/ContentString.js +0 -113
  163. package/src/structs/ContentType.js +0 -152
  164. package/src/utils/IdMap.js +0 -673
  165. package/src/utils/StructSet.js +0 -137
@@ -2,10 +2,6 @@ export function followRedone(store: StructStore, id: ID): {
2
2
  item: Item;
3
3
  diff: number;
4
4
  };
5
- export function keepItem(item: Item | null, keep: boolean): void;
6
- export function splitItem(transaction: Transaction | null, leftItem: Item, diff: number): Item;
7
- export function splitStruct(transaction: Transaction | null, leftStruct: AbstractStruct, diff: number): GC | Item;
8
- export function redoItem(transaction: Transaction, item: Item, redoitems: Set<Item>, itemsToDelete: IdSet, ignoreRemoteMapChanges: boolean, um: import("../utils/UndoManager.js").UndoManager): Item | null;
9
5
  /**
10
6
  * Abstract class that represents any content.
11
7
  */
@@ -16,11 +12,11 @@ export class Item extends AbstractStruct {
16
12
  * @param {ID | null} origin
17
13
  * @param {Item | null} right
18
14
  * @param {ID | null} rightOrigin
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.
15
+ * @param {YType|ID|string|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, is string if child of top-level-parent
20
16
  * @param {string | null} parentSub
21
17
  * @param {AbstractContent} content
22
18
  */
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);
19
+ constructor(id: ID, left: Item | null, origin: ID | null, right: Item | null, rightOrigin: ID | null, parent: YType | ID | string | null, parentSub: string | null, content: AbstractContent);
24
20
  /**
25
21
  * The item that was originally to the left of this item.
26
22
  * @type {ID | null}
@@ -42,9 +38,9 @@ export class Item extends AbstractStruct {
42
38
  */
43
39
  rightOrigin: ID | null;
44
40
  /**
45
- * @type {YType|ID|null}
41
+ * @type {YType|ID|string|null}
46
42
  */
47
- parent: YType | ID | null;
43
+ parent: YType | ID | string | null;
48
44
  /**
49
45
  * If the parent refers to this item with some kind of key (e.g. YMap, the
50
46
  * key is specified here. The key is then used to refer to the list in which
@@ -91,14 +87,6 @@ export class Item extends AbstractStruct {
91
87
  */
92
88
  get deleted(): boolean;
93
89
  markDeleted(): void;
94
- /**
95
- * Return the creator clientID of the missing op or define missing items and return null.
96
- *
97
- * @param {Transaction} transaction
98
- * @param {StructStore} store
99
- * @return {null | number}
100
- */
101
- getMissing(transaction: Transaction, store: StructStore): null | number;
102
90
  /**
103
91
  * Returns the next non-deleted item
104
92
  */
@@ -129,14 +117,19 @@ export class Item extends AbstractStruct {
129
117
  * @param {boolean} parentGCd
130
118
  */
131
119
  gc(tr: Transaction, parentGCd: boolean): void;
120
+ /**
121
+ * Split this into two items
122
+ * @param {Transaction?} transaction
123
+ * @param {number} diff
124
+ * @return {Item}
125
+ */
126
+ split(transaction: Transaction | null, diff: number): Item;
127
+ get ref(): 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
128
+ /**
129
+ * @type {true}
130
+ */
131
+ isItem: true;
132
132
  }
133
- export function readItemContent(decoder: UpdateDecoderV1 | UpdateDecoderV2, info: number): AbstractContent;
134
- /**
135
- * A lookup map for reading Item content.
136
- *
137
- * @type {Array<function(UpdateDecoderV1 | UpdateDecoderV2):AbstractContent>}
138
- */
139
- export const contentRefs: Array<(arg0: UpdateDecoderV1 | UpdateDecoderV2) => AbstractContent>;
140
133
  /**
141
134
  * Do not implement this class!
142
135
  */
@@ -192,20 +185,565 @@ export class AbstractContent {
192
185
  * @param {number} _offsetEnd
193
186
  */
194
187
  write(_encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
188
+ /**
189
+ * @return {1|2|3|4|5|6|7|8|9}
190
+ */
191
+ getRef(): 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
192
+ }
193
+ export class ContentAny {
194
+ /**
195
+ * @param {Array<any>} arr
196
+ */
197
+ constructor(arr: Array<any>);
198
+ /**
199
+ * @type {Array<any>}
200
+ */
201
+ arr: Array<any>;
202
+ /**
203
+ * @return {number}
204
+ */
205
+ getLength(): number;
206
+ /**
207
+ * @return {Array<any>}
208
+ */
209
+ getContent(): Array<any>;
210
+ /**
211
+ * @return {boolean}
212
+ */
213
+ isCountable(): boolean;
214
+ /**
215
+ * @return {ContentAny}
216
+ */
217
+ copy(): ContentAny;
218
+ /**
219
+ * @param {number} offset
220
+ * @return {ContentAny}
221
+ */
222
+ splice(offset: number): ContentAny;
223
+ /**
224
+ * @param {ContentAny} right
225
+ * @return {boolean}
226
+ */
227
+ mergeWith(right: ContentAny): boolean;
228
+ /**
229
+ * @param {Transaction} _transaction
230
+ * @param {Item} _item
231
+ */
232
+ integrate(_transaction: Transaction, _item: Item): void;
233
+ /**
234
+ * @param {Transaction} _transaction
235
+ */
236
+ delete(_transaction: Transaction): void;
237
+ /**
238
+ * @param {Transaction} _tr
239
+ */
240
+ gc(_tr: Transaction): void;
241
+ /**
242
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
243
+ * @param {number} offset
244
+ * @param {number} offsetEnd
245
+ */
246
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
247
+ /**
248
+ * @return {8}
249
+ */
250
+ getRef(): 8;
251
+ }
252
+ export class ContentBinary {
253
+ /**
254
+ * @param {Uint8Array} content
255
+ */
256
+ constructor(content: Uint8Array);
257
+ content: Uint8Array<ArrayBufferLike>;
258
+ /**
259
+ * @return {number}
260
+ */
261
+ getLength(): number;
262
+ /**
263
+ * @return {Array<any>}
264
+ */
265
+ getContent(): Array<any>;
266
+ /**
267
+ * @return {boolean}
268
+ */
269
+ isCountable(): boolean;
270
+ /**
271
+ * @return {ContentBinary}
272
+ */
273
+ copy(): ContentBinary;
274
+ /**
275
+ * @param {number} _offset
276
+ * @return {ContentBinary}
277
+ */
278
+ splice(_offset: number): ContentBinary;
279
+ /**
280
+ * @param {ContentBinary} _right
281
+ * @return {boolean}
282
+ */
283
+ mergeWith(_right: ContentBinary): boolean;
284
+ /**
285
+ * @param {Transaction} _transaction
286
+ * @param {Item} _item
287
+ */
288
+ integrate(_transaction: Transaction, _item: Item): void;
289
+ /**
290
+ * @param {Transaction} _transaction
291
+ */
292
+ delete(_transaction: Transaction): void;
293
+ /**
294
+ * @param {Transaction} _tr
295
+ */
296
+ gc(_tr: Transaction): void;
297
+ /**
298
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
299
+ * @param {number} _offset
300
+ * @param {number} _offsetEnd
301
+ */
302
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
303
+ /**
304
+ * @return {3}
305
+ */
306
+ getRef(): 3;
307
+ }
308
+ export class ContentDeleted {
309
+ /**
310
+ * @param {number} len
311
+ */
312
+ constructor(len: number);
313
+ len: number;
314
+ /**
315
+ * @return {number}
316
+ */
317
+ getLength(): number;
318
+ /**
319
+ * @return {Array<any>}
320
+ */
321
+ getContent(): Array<any>;
322
+ /**
323
+ * @return {boolean}
324
+ */
325
+ isCountable(): boolean;
326
+ /**
327
+ * @return {ContentDeleted}
328
+ */
329
+ copy(): ContentDeleted;
330
+ /**
331
+ * @param {number} offset
332
+ * @return {ContentDeleted}
333
+ */
334
+ splice(offset: number): ContentDeleted;
335
+ /**
336
+ * @param {ContentDeleted} right
337
+ * @return {boolean}
338
+ */
339
+ mergeWith(right: ContentDeleted): boolean;
340
+ /**
341
+ * @param {Transaction} transaction
342
+ * @param {Item} item
343
+ */
344
+ integrate(transaction: Transaction, item: Item): void;
345
+ /**
346
+ * @param {Transaction} _transaction
347
+ */
348
+ delete(_transaction: Transaction): void;
349
+ /**
350
+ * @param {Transaction} _tr
351
+ */
352
+ gc(_tr: Transaction): void;
353
+ /**
354
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
355
+ * @param {number} offset
356
+ * @param {number} offsetEnd
357
+ */
358
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
359
+ /**
360
+ * @return {1}
361
+ */
362
+ getRef(): 1;
363
+ }
364
+ /**
365
+ * @private
366
+ */
367
+ export class ContentDoc {
368
+ /**
369
+ * @param {string} guid
370
+ * @param {Object<string,any>} opts
371
+ */
372
+ constructor(guid: string, opts: {
373
+ [x: string]: any;
374
+ });
375
+ /**
376
+ * @type {Doc?}
377
+ */
378
+ doc: Doc | null;
379
+ guid: string;
380
+ opts: {
381
+ [x: string]: any;
382
+ };
383
+ /**
384
+ * @return {number}
385
+ */
386
+ getLength(): number;
387
+ /**
388
+ * @return {Array<any>}
389
+ */
390
+ getContent(): Array<any>;
391
+ /**
392
+ * @return {boolean}
393
+ */
394
+ isCountable(): boolean;
395
+ /**
396
+ * @return {ContentDoc}
397
+ */
398
+ copy(): ContentDoc;
399
+ /**
400
+ * @param {number} _offset
401
+ * @return {ContentDoc}
402
+ */
403
+ splice(_offset: number): ContentDoc;
404
+ /**
405
+ * @param {ContentDoc} _right
406
+ * @return {boolean}
407
+ */
408
+ mergeWith(_right: ContentDoc): boolean;
409
+ /**
410
+ * @param {Transaction} transaction
411
+ * @param {Item} item
412
+ */
413
+ integrate(transaction: Transaction, item: Item): void;
414
+ /**
415
+ * @param {Transaction} transaction
416
+ */
417
+ delete(transaction: Transaction): void;
418
+ /**
419
+ * @param {Transaction} _tr
420
+ */
421
+ gc(_tr: Transaction): void;
422
+ /**
423
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
424
+ * @param {number} _offset
425
+ * @param {number} _offsetEnd
426
+ */
427
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
428
+ /**
429
+ * @return {9}
430
+ */
431
+ getRef(): 9;
432
+ }
433
+ export function createContentDocFromDoc(ydoc: Doc): ContentDoc;
434
+ /**
435
+ * @private
436
+ */
437
+ export class ContentEmbed {
438
+ /**
439
+ * @param {Object} embed
440
+ */
441
+ constructor(embed: Object);
442
+ embed: Object;
443
+ /**
444
+ * @return {number}
445
+ */
446
+ getLength(): number;
447
+ /**
448
+ * @return {Array<any>}
449
+ */
450
+ getContent(): Array<any>;
451
+ /**
452
+ * @return {boolean}
453
+ */
454
+ isCountable(): boolean;
455
+ /**
456
+ * @return {ContentEmbed}
457
+ */
458
+ copy(): ContentEmbed;
459
+ /**
460
+ * @param {number} _offset
461
+ * @return {ContentEmbed}
462
+ */
463
+ splice(_offset: number): ContentEmbed;
464
+ /**
465
+ * @param {ContentEmbed} _right
466
+ * @return {boolean}
467
+ */
468
+ mergeWith(_right: ContentEmbed): boolean;
469
+ /**
470
+ * @param {Transaction} _transaction
471
+ * @param {Item} _item
472
+ */
473
+ integrate(_transaction: Transaction, _item: Item): void;
474
+ /**
475
+ * @param {Transaction} _transaction
476
+ */
477
+ delete(_transaction: Transaction): void;
478
+ /**
479
+ * @param {Transaction} _tr
480
+ */
481
+ gc(_tr: Transaction): void;
482
+ /**
483
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
484
+ * @param {number} _offset
485
+ * @param {number} _offsetEnd
486
+ */
487
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
488
+ /**
489
+ * @return {5}
490
+ */
491
+ getRef(): 5;
492
+ }
493
+ /**
494
+ * @private
495
+ */
496
+ export class ContentFormat {
497
+ /**
498
+ * @param {string} key
499
+ * @param {Object} value
500
+ */
501
+ constructor(key: string, value: Object);
502
+ key: string;
503
+ value: Object;
504
+ /**
505
+ * @return {number}
506
+ */
507
+ getLength(): number;
508
+ /**
509
+ * @return {Array<any>}
510
+ */
511
+ getContent(): Array<any>;
512
+ /**
513
+ * @return {boolean}
514
+ */
515
+ isCountable(): boolean;
516
+ /**
517
+ * @return {ContentFormat}
518
+ */
519
+ copy(): ContentFormat;
520
+ /**
521
+ * @param {number} _offset
522
+ * @return {ContentFormat}
523
+ */
524
+ splice(_offset: number): ContentFormat;
525
+ /**
526
+ * @param {ContentFormat} _right
527
+ * @return {boolean}
528
+ */
529
+ mergeWith(_right: ContentFormat): boolean;
530
+ /**
531
+ * @param {Transaction} _transaction
532
+ * @param {Item} item
533
+ */
534
+ integrate(_transaction: Transaction, item: Item): void;
535
+ /**
536
+ * @param {Transaction} _transaction
537
+ */
538
+ delete(_transaction: Transaction): void;
539
+ /**
540
+ * @param {Transaction} _tr
541
+ */
542
+ gc(_tr: Transaction): void;
543
+ /**
544
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
545
+ * @param {number} _offset
546
+ * @param {number} _offsetEnd
547
+ */
548
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
549
+ /**
550
+ * @return {6}
551
+ */
552
+ getRef(): 6;
553
+ }
554
+ /**
555
+ * @private
556
+ */
557
+ export class ContentJSON {
558
+ /**
559
+ * @param {Array<any>} arr
560
+ */
561
+ constructor(arr: Array<any>);
562
+ /**
563
+ * @type {Array<any>}
564
+ */
565
+ arr: Array<any>;
566
+ /**
567
+ * @return {number}
568
+ */
569
+ getLength(): number;
570
+ /**
571
+ * @return {Array<any>}
572
+ */
573
+ getContent(): Array<any>;
574
+ /**
575
+ * @return {boolean}
576
+ */
577
+ isCountable(): boolean;
578
+ /**
579
+ * @return {ContentJSON}
580
+ */
581
+ copy(): ContentJSON;
582
+ /**
583
+ * @param {number} offset
584
+ * @return {ContentJSON}
585
+ */
586
+ splice(offset: number): ContentJSON;
587
+ /**
588
+ * @param {ContentJSON} right
589
+ * @return {boolean}
590
+ */
591
+ mergeWith(right: ContentJSON): boolean;
592
+ /**
593
+ * @param {Transaction} _transaction
594
+ * @param {Item} _item
595
+ */
596
+ integrate(_transaction: Transaction, _item: Item): void;
597
+ /**
598
+ * @param {Transaction} _transaction
599
+ */
600
+ delete(_transaction: Transaction): void;
601
+ /**
602
+ * @param {Transaction} _tr
603
+ */
604
+ gc(_tr: Transaction): void;
605
+ /**
606
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
607
+ * @param {number} offset
608
+ * @param {number} offsetEnd
609
+ */
610
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
611
+ /**
612
+ * @return {2}
613
+ */
614
+ getRef(): 2;
615
+ }
616
+ /**
617
+ * @private
618
+ */
619
+ export class ContentString {
620
+ /**
621
+ * @param {string} str
622
+ */
623
+ constructor(str: string);
624
+ /**
625
+ * @type {string}
626
+ */
627
+ str: string;
195
628
  /**
196
629
  * @return {number}
197
630
  */
198
- getRef(): number;
631
+ getLength(): number;
632
+ /**
633
+ * @return {Array<any>}
634
+ */
635
+ getContent(): Array<any>;
636
+ /**
637
+ * @return {boolean}
638
+ */
639
+ isCountable(): boolean;
640
+ /**
641
+ * @return {ContentString}
642
+ */
643
+ copy(): ContentString;
644
+ /**
645
+ * @param {number} offset
646
+ * @return {ContentString}
647
+ */
648
+ splice(offset: number): ContentString;
649
+ /**
650
+ * @param {ContentString} right
651
+ * @return {boolean}
652
+ */
653
+ mergeWith(right: ContentString): boolean;
654
+ /**
655
+ * @param {Transaction} _transaction
656
+ * @param {Item} _item
657
+ */
658
+ integrate(_transaction: Transaction, _item: Item): void;
659
+ /**
660
+ * @param {Transaction} _transaction
661
+ */
662
+ delete(_transaction: Transaction): void;
663
+ /**
664
+ * @param {Transaction} _tr
665
+ */
666
+ gc(_tr: Transaction): void;
667
+ /**
668
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
669
+ * @param {number} offset
670
+ * @param {number} offsetEnd
671
+ */
672
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number, offsetEnd: number): void;
673
+ /**
674
+ * @return {4}
675
+ */
676
+ getRef(): 4;
677
+ }
678
+ export const YArrayRefID: 0;
679
+ export const YMapRefID: 1;
680
+ export const YTextRefID: 2;
681
+ export const YXmlElementRefID: 3;
682
+ export const YXmlFragmentRefID: 4;
683
+ export const YXmlHookRefID: 5;
684
+ export const YXmlTextRefID: 6;
685
+ /**
686
+ * @private
687
+ */
688
+ export class ContentType {
689
+ /**
690
+ * @param {import('../ytype.js').YType} type
691
+ */
692
+ constructor(type: import("../ytype.js").YType);
693
+ /**
694
+ * @type {import('../ytype.js').YType}
695
+ */
696
+ type: import("../ytype.js").YType;
697
+ /**
698
+ * @return {number}
699
+ */
700
+ getLength(): number;
701
+ /**
702
+ * @return {Array<any>}
703
+ */
704
+ getContent(): Array<any>;
705
+ /**
706
+ * @return {boolean}
707
+ */
708
+ isCountable(): boolean;
709
+ /**
710
+ * @return {ContentType}
711
+ */
712
+ copy(): ContentType;
713
+ /**
714
+ * @param {number} _offset
715
+ * @return {ContentType}
716
+ */
717
+ splice(_offset: number): ContentType;
718
+ /**
719
+ * @param {ContentType} _right
720
+ * @return {boolean}
721
+ */
722
+ mergeWith(_right: ContentType): boolean;
723
+ /**
724
+ * @param {Transaction} transaction
725
+ * @param {Item} item
726
+ */
727
+ integrate(transaction: Transaction, item: Item): void;
728
+ /**
729
+ * @param {Transaction} transaction
730
+ */
731
+ delete(transaction: Transaction): void;
732
+ /**
733
+ * @param {Transaction} tr
734
+ */
735
+ gc(tr: Transaction): void;
736
+ /**
737
+ * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
738
+ * @param {number} _offset
739
+ * @param {number} _offsetEnd
740
+ */
741
+ write(encoder: UpdateEncoderV1 | UpdateEncoderV2, _offset: number, _offsetEnd: number): void;
742
+ /**
743
+ * @return {7}
744
+ */
745
+ getRef(): 7;
199
746
  }
200
- import { StructStore } from '../internals.js';
201
- import { ID } from '../internals.js';
202
- import { Transaction } from '../internals.js';
203
- import { AbstractStruct } from '../internals.js';
204
- import { GC } from '../internals.js';
205
- import { IdSet } from '../internals.js';
206
- import { YType } from '../internals.js';
207
- import { UpdateDecoderV1 } from '../internals.js';
208
- import { UpdateDecoderV2 } from '../internals.js';
209
- import { UpdateEncoderV1 } from '../internals.js';
210
- import { UpdateEncoderV2 } from '../internals.js';
747
+ import { ID } from '../utils/ID.js';
748
+ import { AbstractStruct } from '../structs/AbstractStruct.js';
211
749
  //# sourceMappingURL=Item.d.ts.map
@@ -1 +1 @@
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,IAAI,GAAC,IAAI,CAyGpB;AAED;;GAEG;AACH;IACE;;;;;;;;;OASG;IACH,gBATW,EAAE,QACF,IAAI,GAAG,IAAI,UACX,EAAE,GAAG,IAAI,SACT,IAAI,GAAG,IAAI,eACX,EAAE,GAAG,IAAI,UACT,KAAK,GAAC,EAAE,GAAC,IAAI,aACb,MAAM,GAAG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Y,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"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/structs/Item.js"],"names":[],"mappings":"AAyBO,oCAJI,WAAW,MACX,EAAE,GACD;IAAC,IAAI,EAAC,IAAI,CAAC;IAAC,IAAI,EAAC,MAAM,CAAA;CAAC,CAoBnC;AAED;;GAEG;AACH;IACE;;;;;;;;;OASG;IACH,gBATW,EAAE,QACF,IAAI,GAAG,IAAI,UACX,EAAE,GAAG,IAAI,SACT,IAAI,GAAG,IAAI,eACX,EAAE,GAAG,IAAI,UACT,KAAK,GAAC,EAAE,GAAC,MAAM,GAAC,IAAI,aACpB,MAAM,GAAG,IAAI,WACb,eAAe,EAsDzB;IAlDC;;;OAGG;IACH,QAFU,EAAE,GAAG,IAAI,CAEC;IACpB;;;OAGG;IACH,MAFU,IAAI,GAAG,IAAI,CAEL;IAChB;;;OAGG;IACH,OAFU,IAAI,GAAG,IAAI,CAEH;IAClB;;;OAGG;IACH,aAFU,EAAE,GAAG,IAAI,CAEW;IAC9B;;OAEG;IACH,QAFU,KAAK,GAAC,EAAE,GAAC,MAAM,GAAC,IAAI,CAEV;IAC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BAA6B,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,CAAC,CAIZ;CACF;mBAt+CyD,gBAAgB;+BAFzB,8BAA8B"}
@@ -14,20 +14,18 @@ export class Skip extends AbstractStruct {
14
14
  * @param {number} offset
15
15
  */
16
16
  write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number): void;
17
- /**
18
- * @param {Transaction} _transaction
19
- * @param {StructStore} _store
20
- * @return {null | number}
21
- */
22
- getMissing(_transaction: Transaction, _store: StructStore): null | number;
23
17
  /**
24
18
  * @param {number} diff
25
19
  */
26
20
  splice(diff: number): Skip;
21
+ /**
22
+ * @type {10}
23
+ */
24
+ ref: 10;
25
+ /**
26
+ * @type {false}
27
+ */
28
+ isItem: false;
27
29
  }
28
- import { AbstractStruct } from '../internals.js';
29
- import { UpdateEncoderV1 } from '../internals.js';
30
- import { UpdateEncoderV2 } from '../internals.js';
31
- import { Transaction } from '../internals.js';
32
- import { StructStore } from '../internals.js';
30
+ import { AbstractStruct } from './AbstractStruct.js';
33
31
  //# sourceMappingURL=Skip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skip.d.ts","sourceRoot":"","sources":["../../../src/structs/Skip.js"],"names":[],"mappings":"AAUA,kCAAmC,EAAE,CAAA;AAErC;;GAEG;AACH;IAKE,eAAY;IAEZ;;;OAGG;IACH,iBAHW,IAAI,GACH,OAAO,CAQlB;IAeD;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAMhB;IAED;;;;OAIG;IACH,yBAJW,WAAW,UACX,WAAW,GACV,IAAI,GAAG,MAAM,CAIxB;IAED;;OAEG;IACH,aAFW,MAAM,QAMhB;CACF;+BApEM,iBAAiB;gCAAjB,iBAAiB;gCAAjB,iBAAiB;4BAAjB,iBAAiB;4BAAjB,iBAAiB"}
1
+ {"version":3,"file":"Skip.d.ts","sourceRoot":"","sources":["../../../src/structs/Skip.js"],"names":[],"mappings":"AAKA,kCAAmC,EAAE,CAAA;AAErC;;GAEG;AACH;IAKE,eAAY;IAEZ;;;OAGG;IACH,iBAHW,IAAI,GACH,OAAO,CAQlB;IAgBD;;;OAGG;IACH,eAHW,eAAe,GAAG,eAAe,UACjC,MAAM,QAMhB;IAED;;OAEG;IACH,aAFW,MAAM,QAMhB;IAGH;;OAEG;IACH,KAFU,EAAE,CAEM;IAElB;;OAEG;IACH,QAFU,KAAK,CAEM;CAVpB;+BA3D8B,qBAAqB"}