@fluidframework/sequence 2.61.0-355054 → 2.61.0-355603
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/api-report/sequence.legacy.beta.api.md +203 -15
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/internal.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +18 -18
- package/src/packageVersion.ts +1 -1
|
@@ -19,7 +19,40 @@ export function appendIntervalPropertyChangedToRevertibles(interval: SequenceInt
|
|
|
19
19
|
// @beta @legacy
|
|
20
20
|
export function appendSharedStringDeltaToRevertibles(string: ISharedString, delta: SequenceDeltaEvent, revertibles: SharedStringRevertible[]): void;
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
// @beta @legacy (undocumented)
|
|
23
|
+
export abstract class BaseSegment implements ISegment {
|
|
24
|
+
constructor(properties?: PropertySet);
|
|
25
|
+
// (undocumented)
|
|
26
|
+
protected addSerializedProps(jseg: IJSONSegment): void;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
append(other: ISegment): void;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
attribution?: IAttributionCollection<AttributionKey>;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
cachedLength: number;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
canAppend(segment: ISegment): boolean;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
abstract clone(): ISegment;
|
|
37
|
+
// (undocumented)
|
|
38
|
+
protected cloneInto(b: ISegment): void;
|
|
39
|
+
// (undocumented)
|
|
40
|
+
protected abstract createSplitSegmentAt(pos: number): BaseSegment | undefined;
|
|
41
|
+
// (undocumented)
|
|
42
|
+
hasProperty(key: string): boolean;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
isLeaf(): this is ISegment;
|
|
45
|
+
// (undocumented)
|
|
46
|
+
properties?: PropertySet;
|
|
47
|
+
// (undocumented)
|
|
48
|
+
splitAt(pos: number): ISegment | undefined;
|
|
49
|
+
// (undocumented)
|
|
50
|
+
abstract toJSONObject(): any;
|
|
51
|
+
// (undocumented)
|
|
52
|
+
readonly trackingCollection: TrackingGroupCollection;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
abstract readonly type: string;
|
|
55
|
+
}
|
|
23
56
|
|
|
24
57
|
// @beta @legacy (undocumented)
|
|
25
58
|
export function createOverlappingIntervalsIndex(sharedString: ISharedString): ISequenceOverlappingIntervalsIndex;
|
|
@@ -39,7 +72,13 @@ export interface IInterval {
|
|
|
39
72
|
overlaps(b: IInterval): boolean;
|
|
40
73
|
}
|
|
41
74
|
|
|
42
|
-
|
|
75
|
+
// @beta @legacy
|
|
76
|
+
export interface InteriorSequencePlace {
|
|
77
|
+
// (undocumented)
|
|
78
|
+
pos: number;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
side: Side;
|
|
81
|
+
}
|
|
43
82
|
|
|
44
83
|
// @beta @legacy
|
|
45
84
|
export const IntervalOpType: {
|
|
@@ -105,7 +144,28 @@ export enum IntervalType {
|
|
|
105
144
|
SlideOnRemove = 2,// SlideOnRemove is default behavior - all intervals are SlideOnRemove
|
|
106
145
|
}
|
|
107
146
|
|
|
108
|
-
|
|
147
|
+
// @beta @legacy
|
|
148
|
+
export interface ISegment {
|
|
149
|
+
// (undocumented)
|
|
150
|
+
append(segment: ISegment): void;
|
|
151
|
+
attribution?: IAttributionCollection<AttributionKey>;
|
|
152
|
+
cachedLength: number;
|
|
153
|
+
// (undocumented)
|
|
154
|
+
canAppend(segment: ISegment): boolean;
|
|
155
|
+
// (undocumented)
|
|
156
|
+
clone(): ISegment;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
isLeaf(): this is ISegment;
|
|
159
|
+
properties?: PropertySet;
|
|
160
|
+
// (undocumented)
|
|
161
|
+
splitAt(pos: number): ISegment | undefined;
|
|
162
|
+
// (undocumented)
|
|
163
|
+
toJSONObject(): any;
|
|
164
|
+
// (undocumented)
|
|
165
|
+
readonly trackingCollection: TrackingGroupCollection;
|
|
166
|
+
// (undocumented)
|
|
167
|
+
readonly type: string;
|
|
168
|
+
}
|
|
109
169
|
|
|
110
170
|
// @beta @legacy
|
|
111
171
|
export interface ISequenceDeltaRange<TOperation extends MergeTreeDeltaOperationTypes = MergeTreeDeltaOperationTypes> {
|
|
@@ -250,21 +310,102 @@ export interface ISharedString extends ISharedSegmentSequence<SharedStringSegmen
|
|
|
250
310
|
searchForMarker(startPos: number, markerLabel: string, forwards?: boolean): Marker | undefined;
|
|
251
311
|
}
|
|
252
312
|
|
|
253
|
-
|
|
313
|
+
// @beta @sealed @legacy (undocumented)
|
|
314
|
+
export interface LocalReferencePosition extends ReferencePosition {
|
|
315
|
+
// (undocumented)
|
|
316
|
+
addProperties(newProps: PropertySet): void;
|
|
317
|
+
// (undocumented)
|
|
318
|
+
callbacks?: Partial<Record<"beforeSlide" | "afterSlide", (ref: LocalReferencePosition) => void>>;
|
|
319
|
+
readonly canSlideToEndpoint?: boolean;
|
|
320
|
+
// (undocumented)
|
|
321
|
+
readonly trackingCollection: TrackingGroupCollection;
|
|
322
|
+
}
|
|
254
323
|
|
|
255
|
-
|
|
324
|
+
// @beta @legacy
|
|
325
|
+
export interface MapLike<T> {
|
|
326
|
+
// (undocumented)
|
|
327
|
+
[index: string]: T;
|
|
328
|
+
}
|
|
256
329
|
|
|
257
|
-
|
|
330
|
+
// @beta @legacy
|
|
331
|
+
export class Marker extends BaseSegment implements ReferencePosition, ISegment {
|
|
332
|
+
constructor(refType: ReferenceType, props?: PropertySet);
|
|
333
|
+
// (undocumented)
|
|
334
|
+
append(): void;
|
|
335
|
+
// (undocumented)
|
|
336
|
+
canAppend(segment: ISegment): boolean;
|
|
337
|
+
// (undocumented)
|
|
338
|
+
clone(): Marker;
|
|
339
|
+
// (undocumented)
|
|
340
|
+
protected createSplitSegmentAt(pos: number): undefined;
|
|
341
|
+
// (undocumented)
|
|
342
|
+
static fromJSONObject(spec: IJSONSegment): Marker | undefined;
|
|
343
|
+
// (undocumented)
|
|
344
|
+
getId(): string | undefined;
|
|
345
|
+
// (undocumented)
|
|
346
|
+
getOffset(): number;
|
|
347
|
+
// (undocumented)
|
|
348
|
+
getProperties(): PropertySet | undefined;
|
|
349
|
+
// (undocumented)
|
|
350
|
+
getSegment(): Marker;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
static is(segment: ISegment): segment is Marker;
|
|
353
|
+
// (undocumented)
|
|
354
|
+
static make(refType: ReferenceType, props?: PropertySet): Marker;
|
|
355
|
+
// (undocumented)
|
|
356
|
+
refType: ReferenceType;
|
|
357
|
+
// (undocumented)
|
|
358
|
+
toJSONObject(): IJSONMarkerSegment;
|
|
359
|
+
// (undocumented)
|
|
360
|
+
toString(): string;
|
|
361
|
+
// (undocumented)
|
|
362
|
+
static readonly type = "Marker";
|
|
363
|
+
// (undocumented)
|
|
364
|
+
readonly type = "Marker";
|
|
365
|
+
}
|
|
258
366
|
|
|
259
|
-
|
|
367
|
+
// @beta @legacy (undocumented)
|
|
368
|
+
export const MergeTreeDeltaType: {
|
|
369
|
+
readonly INSERT: 0;
|
|
370
|
+
readonly REMOVE: 1;
|
|
371
|
+
readonly ANNOTATE: 2;
|
|
372
|
+
readonly GROUP: 3;
|
|
373
|
+
readonly OBLITERATE: 4;
|
|
374
|
+
readonly OBLITERATE_SIDED: 5;
|
|
375
|
+
};
|
|
260
376
|
|
|
261
|
-
|
|
377
|
+
// @beta @legacy (undocumented)
|
|
378
|
+
export type MergeTreeDeltaType = (typeof MergeTreeDeltaType)[keyof typeof MergeTreeDeltaType];
|
|
262
379
|
|
|
263
|
-
|
|
380
|
+
// @beta @legacy
|
|
381
|
+
export type PropertySet = MapLike<any>;
|
|
264
382
|
|
|
265
|
-
|
|
383
|
+
// @beta @legacy
|
|
384
|
+
export interface ReferencePosition {
|
|
385
|
+
getOffset(): number;
|
|
386
|
+
getSegment(): ISegment | undefined;
|
|
387
|
+
// (undocumented)
|
|
388
|
+
isLeaf(): this is ISegment;
|
|
389
|
+
properties?: PropertySet;
|
|
390
|
+
// (undocumented)
|
|
391
|
+
refType: ReferenceType;
|
|
392
|
+
slidingPreference?: SlidingPreference;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// @beta @legacy
|
|
396
|
+
export enum ReferenceType {
|
|
397
|
+
RangeBegin = 16,
|
|
398
|
+
RangeEnd = 32,
|
|
399
|
+
// (undocumented)
|
|
400
|
+
Simple = 0,
|
|
401
|
+
SlideOnRemove = 64,
|
|
402
|
+
StayOnRemove = 128,
|
|
403
|
+
Tile = 1,
|
|
404
|
+
Transient = 256
|
|
405
|
+
}
|
|
266
406
|
|
|
267
|
-
|
|
407
|
+
// @beta @legacy
|
|
408
|
+
export const reservedMarkerIdKey = "markerId";
|
|
268
409
|
|
|
269
410
|
// @beta @legacy
|
|
270
411
|
export function revertSharedStringRevertibles(sharedString: ISharedString, revertibles: SharedStringRevertible[]): void;
|
|
@@ -324,7 +465,8 @@ export interface SequenceMaintenanceEvent extends SequenceEvent<MergeTreeMainten
|
|
|
324
465
|
readonly opArgs: IMergeTreeDeltaOpArgs | undefined;
|
|
325
466
|
}
|
|
326
467
|
|
|
327
|
-
|
|
468
|
+
// @beta @legacy
|
|
469
|
+
export type SequencePlace = number | "start" | "end" | InteriorSequencePlace;
|
|
328
470
|
|
|
329
471
|
// @beta @legacy
|
|
330
472
|
export const SharedString: ISharedObjectKind<ISharedString> & SharedObjectKind<ISharedString>;
|
|
@@ -338,10 +480,56 @@ export type SharedStringRevertible = MergeTreeDeltaRevertible | IntervalRevertib
|
|
|
338
480
|
// @beta @legacy (undocumented)
|
|
339
481
|
export type SharedStringSegment = TextSegment | Marker;
|
|
340
482
|
|
|
341
|
-
|
|
483
|
+
// @beta @legacy
|
|
484
|
+
export enum Side {
|
|
485
|
+
// (undocumented)
|
|
486
|
+
After = 1,
|
|
487
|
+
// (undocumented)
|
|
488
|
+
Before = 0
|
|
489
|
+
}
|
|
342
490
|
|
|
343
|
-
|
|
491
|
+
// @beta @legacy (undocumented)
|
|
492
|
+
export class TextSegment extends BaseSegment {
|
|
493
|
+
constructor(text: string, props?: PropertySet);
|
|
494
|
+
// (undocumented)
|
|
495
|
+
append(segment: ISegment): void;
|
|
496
|
+
// (undocumented)
|
|
497
|
+
canAppend(segment: ISegment): boolean;
|
|
498
|
+
// (undocumented)
|
|
499
|
+
clone(start?: number, end?: number): TextSegment;
|
|
500
|
+
// (undocumented)
|
|
501
|
+
protected createSplitSegmentAt(pos: number): TextSegment | undefined;
|
|
502
|
+
// (undocumented)
|
|
503
|
+
static fromJSONObject(spec: string | IJSONSegment): TextSegment | undefined;
|
|
504
|
+
// (undocumented)
|
|
505
|
+
static is(segment: ISegment): segment is TextSegment;
|
|
506
|
+
// (undocumented)
|
|
507
|
+
static make(text: string, props?: PropertySet): TextSegment;
|
|
508
|
+
// (undocumented)
|
|
509
|
+
text: string;
|
|
510
|
+
// (undocumented)
|
|
511
|
+
toJSONObject(): IJSONTextSegment | string;
|
|
512
|
+
// (undocumented)
|
|
513
|
+
toString(): string;
|
|
514
|
+
// (undocumented)
|
|
515
|
+
static readonly type = "TextSegment";
|
|
516
|
+
// (undocumented)
|
|
517
|
+
readonly type = "TextSegment";
|
|
518
|
+
}
|
|
344
519
|
|
|
345
|
-
|
|
520
|
+
// @beta @legacy (undocumented)
|
|
521
|
+
export class TrackingGroup implements ITrackingGroup {
|
|
522
|
+
constructor();
|
|
523
|
+
// (undocumented)
|
|
524
|
+
has(trackable: Trackable): boolean;
|
|
525
|
+
// (undocumented)
|
|
526
|
+
link(trackable: Trackable): void;
|
|
527
|
+
// (undocumented)
|
|
528
|
+
get size(): number;
|
|
529
|
+
// (undocumented)
|
|
530
|
+
get tracked(): readonly Trackable[];
|
|
531
|
+
// (undocumented)
|
|
532
|
+
unlink(trackable: Trackable): boolean;
|
|
533
|
+
}
|
|
346
534
|
|
|
347
535
|
```
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/sequence";
|
|
8
|
-
export declare const pkgVersion = "2.61.0-
|
|
8
|
+
export declare const pkgVersion = "2.61.0-355603";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/sequence";
|
|
11
|
-
exports.pkgVersion = "2.61.0-
|
|
11
|
+
exports.pkgVersion = "2.61.0-355603";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,0BAA0B,CAAC;AACrC,QAAA,UAAU,GAAG,eAAe,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.61.0-
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,0BAA0B,CAAC;AACrC,QAAA,UAAU,GAAG,eAAe,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.61.0-355603\";\n"]}
|
package/internal.d.ts
CHANGED
package/legacy.d.ts
CHANGED
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/sequence";
|
|
8
|
-
export declare const pkgVersion = "2.61.0-
|
|
8
|
+
export declare const pkgVersion = "2.61.0-355603";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.61.0-
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.61.0-355603\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/sequence",
|
|
3
|
-
"version": "2.61.0-
|
|
3
|
+
"version": "2.61.0-355603",
|
|
4
4
|
"description": "Distributed sequence",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -91,33 +91,33 @@
|
|
|
91
91
|
"temp-directory": "nyc/.nyc_output"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@fluid-internal/client-utils": "2.61.0-
|
|
95
|
-
"@fluidframework/core-interfaces": "2.61.0-
|
|
96
|
-
"@fluidframework/core-utils": "2.61.0-
|
|
97
|
-
"@fluidframework/datastore-definitions": "2.61.0-
|
|
98
|
-
"@fluidframework/driver-definitions": "2.61.0-
|
|
99
|
-
"@fluidframework/merge-tree": "2.61.0-
|
|
100
|
-
"@fluidframework/runtime-definitions": "2.61.0-
|
|
101
|
-
"@fluidframework/runtime-utils": "2.61.0-
|
|
102
|
-
"@fluidframework/shared-object-base": "2.61.0-
|
|
103
|
-
"@fluidframework/telemetry-utils": "2.61.0-
|
|
94
|
+
"@fluid-internal/client-utils": "2.61.0-355603",
|
|
95
|
+
"@fluidframework/core-interfaces": "2.61.0-355603",
|
|
96
|
+
"@fluidframework/core-utils": "2.61.0-355603",
|
|
97
|
+
"@fluidframework/datastore-definitions": "2.61.0-355603",
|
|
98
|
+
"@fluidframework/driver-definitions": "2.61.0-355603",
|
|
99
|
+
"@fluidframework/merge-tree": "2.61.0-355603",
|
|
100
|
+
"@fluidframework/runtime-definitions": "2.61.0-355603",
|
|
101
|
+
"@fluidframework/runtime-utils": "2.61.0-355603",
|
|
102
|
+
"@fluidframework/shared-object-base": "2.61.0-355603",
|
|
103
|
+
"@fluidframework/telemetry-utils": "2.61.0-355603",
|
|
104
104
|
"double-ended-queue": "^2.1.0-0",
|
|
105
105
|
"uuid": "^11.1.0"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
109
109
|
"@biomejs/biome": "~1.9.3",
|
|
110
|
-
"@fluid-internal/mocha-test-setup": "2.61.0-
|
|
111
|
-
"@fluid-private/stochastic-test-utils": "2.61.0-
|
|
112
|
-
"@fluid-private/test-dds-utils": "2.61.0-
|
|
110
|
+
"@fluid-internal/mocha-test-setup": "2.61.0-355603",
|
|
111
|
+
"@fluid-private/stochastic-test-utils": "2.61.0-355603",
|
|
112
|
+
"@fluid-private/test-dds-utils": "2.61.0-355603",
|
|
113
113
|
"@fluid-tools/benchmark": "^0.51.0",
|
|
114
|
-
"@fluid-tools/build-cli": "^0.58.
|
|
114
|
+
"@fluid-tools/build-cli": "^0.58.1",
|
|
115
115
|
"@fluidframework/build-common": "^2.0.3",
|
|
116
|
-
"@fluidframework/build-tools": "^0.58.
|
|
117
|
-
"@fluidframework/container-definitions": "2.61.0-
|
|
116
|
+
"@fluidframework/build-tools": "^0.58.1",
|
|
117
|
+
"@fluidframework/container-definitions": "2.61.0-355603",
|
|
118
118
|
"@fluidframework/eslint-config-fluid": "^6.0.0",
|
|
119
119
|
"@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.60.0",
|
|
120
|
-
"@fluidframework/test-runtime-utils": "2.61.0-
|
|
120
|
+
"@fluidframework/test-runtime-utils": "2.61.0-355603",
|
|
121
121
|
"@microsoft/api-extractor": "7.52.11",
|
|
122
122
|
"@types/diff": "^3.5.1",
|
|
123
123
|
"@types/double-ended-queue": "^2.1.0",
|
package/src/packageVersion.ts
CHANGED