@fluidframework/sequence 2.91.0 → 2.93.0
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/api-report/sequence.legacy.beta.api.md +2 -2
- package/dist/IntervalCollectionValues.d.ts +3 -3
- package/dist/IntervalCollectionValues.d.ts.map +1 -1
- package/dist/IntervalCollectionValues.js.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/intervalCollection.d.ts +6 -5
- package/dist/intervalCollection.d.ts.map +1 -1
- package/dist/intervalCollection.js +10 -9
- package/dist/intervalCollection.js.map +1 -1
- package/dist/intervalCollectionMap.d.ts +4 -5
- package/dist/intervalCollectionMap.d.ts.map +1 -1
- package/dist/intervalCollectionMap.js +3 -3
- package/dist/intervalCollectionMap.js.map +1 -1
- package/dist/intervalCollectionMapInterfaces.d.ts +3 -3
- package/dist/intervalCollectionMapInterfaces.d.ts.map +1 -1
- package/dist/intervalCollectionMapInterfaces.js.map +1 -1
- package/dist/intervalIndex/endpointInRangeIndex.d.ts +2 -2
- package/dist/intervalIndex/endpointInRangeIndex.d.ts.map +1 -1
- package/dist/intervalIndex/endpointInRangeIndex.js.map +1 -1
- package/dist/intervalIndex/endpointIndex.d.ts +2 -2
- package/dist/intervalIndex/endpointIndex.d.ts.map +1 -1
- package/dist/intervalIndex/endpointIndex.js.map +1 -1
- package/dist/intervalIndex/index.d.ts +7 -7
- package/dist/intervalIndex/index.d.ts.map +1 -1
- package/dist/intervalIndex/index.js.map +1 -1
- package/dist/intervalIndex/overlappingIntervalsIndex.d.ts +3 -3
- package/dist/intervalIndex/overlappingIntervalsIndex.d.ts.map +1 -1
- package/dist/intervalIndex/overlappingIntervalsIndex.js.map +1 -1
- package/dist/intervalIndex/sequenceIntervalIndexes.d.ts +2 -2
- package/dist/intervalIndex/sequenceIntervalIndexes.d.ts.map +1 -1
- package/dist/intervalIndex/sequenceIntervalIndexes.js.map +1 -1
- package/dist/intervalIndex/startpointInRangeIndex.d.ts +2 -2
- package/dist/intervalIndex/startpointInRangeIndex.d.ts.map +1 -1
- package/dist/intervalIndex/startpointInRangeIndex.js.map +1 -1
- package/dist/intervalTree.d.ts +3 -2
- package/dist/intervalTree.d.ts.map +1 -1
- package/dist/intervalTree.js.map +1 -1
- package/dist/intervals/index.d.ts +2 -2
- package/dist/intervals/index.d.ts.map +1 -1
- package/dist/intervals/index.js.map +1 -1
- package/dist/intervals/intervalUtils.d.ts +2 -1
- package/dist/intervals/intervalUtils.d.ts.map +1 -1
- package/dist/intervals/intervalUtils.js +0 -1
- package/dist/intervals/intervalUtils.js.map +1 -1
- package/dist/intervals/sequenceInterval.d.ts +5 -3
- package/dist/intervals/sequenceInterval.d.ts.map +1 -1
- package/dist/intervals/sequenceInterval.js.map +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/public.d.ts +1 -1
- package/dist/revertibles.d.ts +5 -4
- package/dist/revertibles.d.ts.map +1 -1
- package/dist/revertibles.js +26 -20
- package/dist/revertibles.js.map +1 -1
- package/dist/sequence.d.ts +8 -6
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +9 -10
- package/dist/sequence.js.map +1 -1
- package/dist/sequenceDeltaEvent.d.ts +2 -1
- package/dist/sequenceDeltaEvent.d.ts.map +1 -1
- package/dist/sequenceDeltaEvent.js +2 -2
- package/dist/sequenceDeltaEvent.js.map +1 -1
- package/dist/sequenceFactory.d.ts +3 -2
- package/dist/sequenceFactory.d.ts.map +1 -1
- package/dist/sequenceFactory.js +3 -2
- package/dist/sequenceFactory.js.map +1 -1
- package/dist/sharedSequence.d.ts +3 -2
- package/dist/sharedSequence.d.ts.map +1 -1
- package/dist/sharedSequence.js.map +1 -1
- package/dist/sharedString.d.ts +3 -2
- package/dist/sharedString.d.ts.map +1 -1
- package/dist/sharedString.js.map +1 -1
- package/eslint.config.mts +16 -4
- package/internal.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/IntervalCollectionValues.d.ts +3 -3
- package/lib/IntervalCollectionValues.d.ts.map +1 -1
- package/lib/IntervalCollectionValues.js +1 -1
- package/lib/IntervalCollectionValues.js.map +1 -1
- package/lib/index.d.ts +10 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/intervalCollection.d.ts +6 -5
- package/lib/intervalCollection.d.ts.map +1 -1
- package/lib/intervalCollection.js +10 -9
- package/lib/intervalCollection.js.map +1 -1
- package/lib/intervalCollectionMap.d.ts +4 -5
- package/lib/intervalCollectionMap.d.ts.map +1 -1
- package/lib/intervalCollectionMap.js +3 -3
- package/lib/intervalCollectionMap.js.map +1 -1
- package/lib/intervalCollectionMapInterfaces.d.ts +3 -3
- package/lib/intervalCollectionMapInterfaces.d.ts.map +1 -1
- package/lib/intervalCollectionMapInterfaces.js.map +1 -1
- package/lib/intervalIndex/endpointInRangeIndex.d.ts +2 -2
- package/lib/intervalIndex/endpointInRangeIndex.d.ts.map +1 -1
- package/lib/intervalIndex/endpointInRangeIndex.js +1 -1
- package/lib/intervalIndex/endpointInRangeIndex.js.map +1 -1
- package/lib/intervalIndex/endpointIndex.d.ts +2 -2
- package/lib/intervalIndex/endpointIndex.d.ts.map +1 -1
- package/lib/intervalIndex/endpointIndex.js.map +1 -1
- package/lib/intervalIndex/index.d.ts +7 -7
- package/lib/intervalIndex/index.d.ts.map +1 -1
- package/lib/intervalIndex/index.js.map +1 -1
- package/lib/intervalIndex/overlappingIntervalsIndex.d.ts +3 -3
- package/lib/intervalIndex/overlappingIntervalsIndex.d.ts.map +1 -1
- package/lib/intervalIndex/overlappingIntervalsIndex.js +1 -1
- package/lib/intervalIndex/overlappingIntervalsIndex.js.map +1 -1
- package/lib/intervalIndex/sequenceIntervalIndexes.d.ts +2 -2
- package/lib/intervalIndex/sequenceIntervalIndexes.d.ts.map +1 -1
- package/lib/intervalIndex/sequenceIntervalIndexes.js.map +1 -1
- package/lib/intervalIndex/startpointInRangeIndex.d.ts +2 -2
- package/lib/intervalIndex/startpointInRangeIndex.d.ts.map +1 -1
- package/lib/intervalIndex/startpointInRangeIndex.js +1 -1
- package/lib/intervalIndex/startpointInRangeIndex.js.map +1 -1
- package/lib/intervalTree.d.ts +3 -2
- package/lib/intervalTree.d.ts.map +1 -1
- package/lib/intervalTree.js +1 -1
- package/lib/intervalTree.js.map +1 -1
- package/lib/intervals/index.d.ts +2 -2
- package/lib/intervals/index.d.ts.map +1 -1
- package/lib/intervals/index.js.map +1 -1
- package/lib/intervals/intervalUtils.d.ts +2 -1
- package/lib/intervals/intervalUtils.d.ts.map +1 -1
- package/lib/intervals/intervalUtils.js +0 -1
- package/lib/intervals/intervalUtils.js.map +1 -1
- package/lib/intervals/sequenceInterval.d.ts +5 -3
- package/lib/intervals/sequenceInterval.d.ts.map +1 -1
- package/lib/intervals/sequenceInterval.js.map +1 -1
- package/lib/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/lib/public.d.ts +1 -1
- package/lib/revertibles.d.ts +5 -4
- package/lib/revertibles.d.ts.map +1 -1
- package/lib/revertibles.js +26 -20
- package/lib/revertibles.js.map +1 -1
- package/lib/sequence.d.ts +8 -6
- package/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +11 -12
- package/lib/sequence.js.map +1 -1
- package/lib/sequenceDeltaEvent.d.ts +2 -1
- package/lib/sequenceDeltaEvent.d.ts.map +1 -1
- package/lib/sequenceDeltaEvent.js +2 -2
- package/lib/sequenceDeltaEvent.js.map +1 -1
- package/lib/sequenceFactory.d.ts +3 -2
- package/lib/sequenceFactory.d.ts.map +1 -1
- package/lib/sequenceFactory.js +3 -2
- package/lib/sequenceFactory.js.map +1 -1
- package/lib/sharedSequence.d.ts +3 -2
- package/lib/sharedSequence.d.ts.map +1 -1
- package/lib/sharedSequence.js +1 -1
- package/lib/sharedSequence.js.map +1 -1
- package/lib/sharedString.d.ts +3 -2
- package/lib/sharedString.d.ts.map +1 -1
- package/lib/sharedString.js +1 -1
- package/lib/sharedString.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +27 -32
- package/src/IntervalCollectionValues.ts +4 -6
- package/src/index.ts +25 -25
- package/src/intervalCollection.ts +25 -20
- package/src/intervalCollectionMap.ts +8 -8
- package/src/intervalCollectionMapInterfaces.ts +4 -4
- package/src/intervalIndex/endpointInRangeIndex.ts +7 -8
- package/src/intervalIndex/endpointIndex.ts +3 -2
- package/src/intervalIndex/index.ts +7 -7
- package/src/intervalIndex/overlappingIntervalsIndex.ts +8 -9
- package/src/intervalIndex/sequenceIntervalIndexes.ts +2 -2
- package/src/intervalIndex/startpointInRangeIndex.ts +7 -8
- package/src/intervalTree.ts +3 -3
- package/src/intervals/index.ts +6 -6
- package/src/intervals/intervalUtils.ts +2 -1
- package/src/intervals/sequenceInterval.ts +7 -6
- package/src/packageVersion.ts +1 -1
- package/src/revertibles.ts +35 -26
- package/src/sequence.ts +25 -26
- package/src/sequenceDeltaEvent.ts +6 -4
- package/src/sequenceFactory.ts +6 -4
- package/src/sharedSequence.ts +3 -7
- package/src/sharedString.ts +3 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -647,7 +647,7 @@ When making such a request please include if the configuration already works (an
|
|
|
647
647
|
|
|
648
648
|
### Supported Runtimes
|
|
649
649
|
|
|
650
|
-
- NodeJs ^
|
|
650
|
+
- NodeJs ^22.22.2 except that we will drop support for it [when NodeJs 22 loses its upstream support on 2027-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS at least 1 year before 22 is end-of-life.
|
|
651
651
|
- Running Fluid in a Node.js environment with the `--no-experimental-fetch` flag is not supported.
|
|
652
652
|
- Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards).
|
|
653
653
|
|
|
@@ -179,7 +179,7 @@ export interface ISequenceDeltaRange<TOperation extends MergeTreeDeltaOperationT
|
|
|
179
179
|
export interface ISequenceIntervalCollection extends TypedEventEmitter<ISequenceIntervalCollectionEvents> {
|
|
180
180
|
// (undocumented)
|
|
181
181
|
[Symbol.iterator](): Iterator<SequenceInterval>;
|
|
182
|
-
add(
|
|
182
|
+
add(input: {
|
|
183
183
|
start: SequencePlace;
|
|
184
184
|
end: SequencePlace;
|
|
185
185
|
props?: PropertySet;
|
|
@@ -189,7 +189,7 @@ export interface ISequenceIntervalCollection extends TypedEventEmitter<ISequence
|
|
|
189
189
|
// (undocumented)
|
|
190
190
|
readonly attached: boolean;
|
|
191
191
|
attachIndex(index: SequenceIntervalIndex): void;
|
|
192
|
-
change(id: string,
|
|
192
|
+
change(id: string, input: {
|
|
193
193
|
start?: SequencePlace;
|
|
194
194
|
end?: SequencePlace;
|
|
195
195
|
props?: PropertySet;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
6
|
-
import { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
5
|
+
import type { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
6
|
+
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
7
7
|
import type { IntervalCollection } from "./intervalCollection.js";
|
|
8
|
-
import { ISerializableIntervalCollection } from "./intervalCollectionMapInterfaces.js";
|
|
8
|
+
import type { ISerializableIntervalCollection } from "./intervalCollectionMapInterfaces.js";
|
|
9
9
|
export declare function makeSerializable(localValue: IntervalCollection, serializer: IFluidSerializer, bind: IFluidHandle, version: "1" | "2"): ISerializableIntervalCollection;
|
|
10
10
|
//# sourceMappingURL=IntervalCollectionValues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntervalCollectionValues.d.ts","sourceRoot":"","sources":["../src/IntervalCollectionValues.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"IntervalCollectionValues.d.ts","sourceRoot":"","sources":["../src/IntervalCollectionValues.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,wBAAgB,gBAAgB,CAC/B,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,gBAAgB,EAC5B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,GAAG,GAAG,GAAG,GAChB,+BAA+B,CAQjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntervalCollectionValues.js","sourceRoot":"","sources":["../src/IntervalCollectionValues.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"IntervalCollectionValues.js","sourceRoot":"","sources":["../src/IntervalCollectionValues.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,0EAA+E;AAK/E,SAAgB,gBAAgB,CAC/B,UAA8B,EAC9B,UAA4B,EAC5B,IAAkB,EAClB,OAAkB;IAElB,MAAM,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,KAAK,GAAG,IAAA,2BAAgB,EAAC,eAAe,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAClE,OAAO;QACN,IAAI,EAAE,gCAAgC;QACtC,KAAK,EAAE,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;KACjC,CAAC;AACH,CAAC;AAbD,4CAaC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IFluidHandle } from \"@fluidframework/core-interfaces\";\nimport type { IFluidSerializer } from \"@fluidframework/shared-object-base/internal\";\nimport { serializeHandles } from \"@fluidframework/shared-object-base/internal\";\n\nimport type { IntervalCollection } from \"./intervalCollection.js\";\nimport type { ISerializableIntervalCollection } from \"./intervalCollectionMapInterfaces.js\";\n\nexport function makeSerializable(\n\tlocalValue: IntervalCollection,\n\tserializer: IFluidSerializer,\n\tbind: IFluidHandle,\n\tversion: \"1\" | \"2\",\n): ISerializableIntervalCollection {\n\tconst storedValueType = localValue.serializeInternal(version);\n\n\tconst value = serializeHandles(storedValueType, serializer, bind);\n\treturn {\n\t\ttype: \"sharedStringIntervalCollection\",\n\t\tvalue: value && JSON.parse(value),\n\t};\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
*/
|
|
17
|
-
export { SequenceOptions } from "./intervalCollectionMapInterfaces.js";
|
|
18
|
-
export { IInterval, IntervalOpType, IntervalType, ISerializedInterval, SequenceInterval, SerializedIntervalDelta, IntervalStickiness, } from "./intervals/index.js";
|
|
19
|
-
export { DeserializeCallback, ISequenceIntervalCollection, ISequenceIntervalCollectionEvents, } from "./intervalCollection.js";
|
|
20
|
-
export { SequenceIntervalIndex, SequenceIntervalIndexes, ISequenceOverlappingIntervalsIndex, IEndpointIndex, createOverlappingIntervalsIndex, createEndpointIndex, } from "./intervalIndex/index.js";
|
|
21
|
-
export { appendAddIntervalToRevertibles, appendChangeIntervalToRevertibles, appendDeleteIntervalToRevertibles, appendIntervalPropertyChangedToRevertibles, appendSharedStringDeltaToRevertibles, discardSharedStringRevertibles, IntervalRevertible, revertSharedStringRevertibles, SharedStringRevertible, } from "./revertibles.js";
|
|
22
|
-
export { ISharedSegmentSequenceEvents, SharedSegmentSequence, ISharedSegmentSequence, } from "./sequence.js";
|
|
23
|
-
export { ISequenceDeltaRange, SequenceDeltaEvent, SequenceEvent, SequenceMaintenanceEvent, } from "./sequenceDeltaEvent.js";
|
|
17
|
+
export type { SequenceOptions } from "./intervalCollectionMapInterfaces.js";
|
|
18
|
+
export { type IInterval, IntervalOpType, IntervalType, type ISerializedInterval, type SequenceInterval, type SerializedIntervalDelta, IntervalStickiness, } from "./intervals/index.js";
|
|
19
|
+
export type { DeserializeCallback, ISequenceIntervalCollection, ISequenceIntervalCollectionEvents, } from "./intervalCollection.js";
|
|
20
|
+
export { type SequenceIntervalIndex, type SequenceIntervalIndexes, type ISequenceOverlappingIntervalsIndex, type IEndpointIndex, createOverlappingIntervalsIndex, createEndpointIndex, } from "./intervalIndex/index.js";
|
|
21
|
+
export { appendAddIntervalToRevertibles, appendChangeIntervalToRevertibles, appendDeleteIntervalToRevertibles, appendIntervalPropertyChangedToRevertibles, appendSharedStringDeltaToRevertibles, discardSharedStringRevertibles, type IntervalRevertible, revertSharedStringRevertibles, type SharedStringRevertible, } from "./revertibles.js";
|
|
22
|
+
export { type ISharedSegmentSequenceEvents, SharedSegmentSequence, type ISharedSegmentSequence, } from "./sequence.js";
|
|
23
|
+
export type { ISequenceDeltaRange, SequenceDeltaEvent, SequenceEvent, SequenceMaintenanceEvent, } from "./sequenceDeltaEvent.js";
|
|
24
24
|
export { SharedString } from "./sequenceFactory.js";
|
|
25
|
-
export { getTextAndMarkers, ISharedString, SharedStringSegment, SharedStringClass, } from "./sharedString.js";
|
|
26
|
-
export { IJSONRunSegment, SharedSequence, SubSequence } from "./sharedSequence.js";
|
|
27
|
-
export { ISegment, Marker, BaseSegment, ReferencePosition, ReferenceType, PropertySet, MapLike, TextSegment, MergeTreeDeltaType, reservedMarkerIdKey, reservedTileLabelsKey, reservedRangeLabelsKey, TrackingGroup, LocalReferencePosition, Side, InteriorSequencePlace, SequencePlace, } from "@fluidframework/merge-tree/internal";
|
|
25
|
+
export { getTextAndMarkers, type ISharedString, type SharedStringSegment, SharedStringClass, } from "./sharedString.js";
|
|
26
|
+
export { type IJSONRunSegment, SharedSequence, SubSequence } from "./sharedSequence.js";
|
|
27
|
+
export { type ISegment, Marker, BaseSegment, type ReferencePosition, ReferenceType, type PropertySet, type MapLike, TextSegment, MergeTreeDeltaType, reservedMarkerIdKey, reservedTileLabelsKey, reservedRangeLabelsKey, TrackingGroup, type LocalReferencePosition, Side, type InteriorSequencePlace, type SequencePlace, } from "@fluidframework/merge-tree/internal";
|
|
28
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AACH,YAAY,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EACN,KAAK,SAAS,EACd,cAAc,EACd,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,kBAAkB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,mBAAmB,EACnB,2BAA2B,EAC3B,iCAAiC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,cAAc,EACnB,+BAA+B,EAC/B,mBAAmB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,8BAA8B,EAC9B,iCAAiC,EACjC,iCAAiC,EACjC,0CAA0C,EAC1C,oCAAoC,EACpC,8BAA8B,EAC9B,KAAK,kBAAkB,EACvB,6BAA6B,EAC7B,KAAK,sBAAsB,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,KAAK,4BAA4B,EACjC,qBAAqB,EACrB,KAAK,sBAAsB,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EACX,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,wBAAwB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EACN,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,iBAAiB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAExF,OAAO,EACN,KAAK,QAAQ,EACb,MAAM,EACN,WAAW,EACX,KAAK,iBAAiB,EACtB,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,KAAK,sBAAsB,EAC3B,IAAI,EACJ,KAAK,qBAAqB,EAC1B,KAAK,aAAa,GAClB,MAAM,qCAAqC,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAeH,iDAQ8B;AAN7B,0GAAA,cAAc,OAAA;AACd,wGAAA,YAAY,OAAA;AAIZ,8GAAA,kBAAkB,OAAA;AAOnB,qDAOkC;AAFjC,2HAAA,+BAA+B,OAAA;AAC/B,+GAAA,mBAAmB,OAAA;AAEpB,mDAU0B;AATzB,gIAAA,8BAA8B,OAAA;AAC9B,mIAAA,iCAAiC,OAAA;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,yGAAA,aAAa,OAAA;AAEb,gGAAA,IAAI,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Supports distributed data structures which are list-like.\n *\n * This library's main export is {@link SharedString}, a DDS for storing and simultaneously editing a sequence of\n * text.\n *\n * See the package's README for a high-level introduction to `SharedString`'s feature set.\n * @remarks Note that SharedString is a sequence DDS but it has additional specialized features and behaviors for\n * working with text.\n *\n * @packageDocumentation\n */\nexport type { SequenceOptions } from \"./intervalCollectionMapInterfaces.js\";\nexport {\n\ttype IInterval,\n\tIntervalOpType,\n\tIntervalType,\n\ttype ISerializedInterval,\n\ttype SequenceInterval,\n\ttype SerializedIntervalDelta,\n\tIntervalStickiness,\n} from \"./intervals/index.js\";\nexport type {\n\tDeserializeCallback,\n\tISequenceIntervalCollection,\n\tISequenceIntervalCollectionEvents,\n} from \"./intervalCollection.js\";\nexport {\n\ttype SequenceIntervalIndex,\n\ttype SequenceIntervalIndexes,\n\ttype ISequenceOverlappingIntervalsIndex,\n\ttype IEndpointIndex,\n\tcreateOverlappingIntervalsIndex,\n\tcreateEndpointIndex,\n} from \"./intervalIndex/index.js\";\nexport {\n\tappendAddIntervalToRevertibles,\n\tappendChangeIntervalToRevertibles,\n\tappendDeleteIntervalToRevertibles,\n\tappendIntervalPropertyChangedToRevertibles,\n\tappendSharedStringDeltaToRevertibles,\n\tdiscardSharedStringRevertibles,\n\ttype IntervalRevertible,\n\trevertSharedStringRevertibles,\n\ttype SharedStringRevertible,\n} from \"./revertibles.js\";\nexport {\n\ttype ISharedSegmentSequenceEvents,\n\tSharedSegmentSequence,\n\ttype ISharedSegmentSequence,\n} from \"./sequence.js\";\nexport type {\n\tISequenceDeltaRange,\n\tSequenceDeltaEvent,\n\tSequenceEvent,\n\tSequenceMaintenanceEvent,\n} from \"./sequenceDeltaEvent.js\";\nexport { SharedString } from \"./sequenceFactory.js\";\nexport {\n\tgetTextAndMarkers,\n\ttype ISharedString,\n\ttype SharedStringSegment,\n\tSharedStringClass,\n} from \"./sharedString.js\";\nexport { type IJSONRunSegment, SharedSequence, SubSequence } from \"./sharedSequence.js\";\n\nexport {\n\ttype ISegment,\n\tMarker,\n\tBaseSegment,\n\ttype ReferencePosition,\n\tReferenceType,\n\ttype PropertySet,\n\ttype MapLike,\n\tTextSegment,\n\tMergeTreeDeltaType,\n\treservedMarkerIdKey,\n\treservedTileLabelsKey,\n\treservedRangeLabelsKey,\n\tTrackingGroup,\n\ttype LocalReferencePosition,\n\tSide,\n\ttype InteriorSequencePlace,\n\ttype SequencePlace,\n} from \"@fluidframework/merge-tree/internal\";\n"]}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
6
|
-
import { IEvent } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
8
|
-
import { Client, LocalReferencePosition, PropertySet,
|
|
9
|
-
import {
|
|
6
|
+
import type { IEvent } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
8
|
+
import type { Client, LocalReferencePosition, PropertySet, SequencePlace } from "@fluidframework/merge-tree/internal";
|
|
9
|
+
import { Side } from "@fluidframework/merge-tree/internal";
|
|
10
|
+
import type { IIntervalCollectionTypeOperationValue, IntervalAddLocalMetadata, IntervalChangeLocalMetadata, SequenceOptions } from "./intervalCollectionMapInterfaces.js";
|
|
10
11
|
import { type IEndpointIndex, type IIdIntervalIndex, type ISequenceOverlappingIntervalsIndex, type SequenceIntervalIndex } from "./intervalIndex/index.js";
|
|
11
|
-
import { CompressedSerializedInterval, ISerializedInterval, SequenceInterval, SequenceIntervalClass, SerializedIntervalDelta } from "./intervals/index.js";
|
|
12
|
+
import type { CompressedSerializedInterval, ISerializedInterval, SequenceInterval, SequenceIntervalClass, SerializedIntervalDelta } from "./intervals/index.js";
|
|
12
13
|
import type { ISharedSegmentSequence } from "./sequence.js";
|
|
13
14
|
export type ISerializedIntervalCollectionV1 = ISerializedInterval[];
|
|
14
15
|
export interface ISerializedIntervalCollectionV2 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intervalCollection.d.ts","sourceRoot":"","sources":["../src/intervalCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"intervalCollection.d.ts","sourceRoot":"","sources":["../src/intervalCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAO9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EACX,MAAM,EAEN,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAKN,IAAI,EAKJ,MAAM,qCAAqC,CAAC;AAI7C,OAAO,KAAK,EACX,qCAAqC,EACrC,wBAAwB,EACxB,2BAA2B,EAE3B,eAAe,EACf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACX,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,MAAM,+BAA+B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BAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAQlE;;OAEG;IACI,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;CAO9D;AASD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAC1C,iBAAiB,EAAE,sBAAsB,GACvC,eAAe,GAAG,SAAS,CAM7B"}
|
|
@@ -14,8 +14,8 @@ const uuid_1 = require("uuid");
|
|
|
14
14
|
const index_js_1 = require("./intervalIndex/index.js");
|
|
15
15
|
const index_js_2 = require("./intervals/index.js");
|
|
16
16
|
function sidesFromStickiness(stickiness) {
|
|
17
|
-
const startSide = (stickiness & index_js_2.IntervalStickiness.START)
|
|
18
|
-
const endSide = (stickiness & index_js_2.IntervalStickiness.END)
|
|
17
|
+
const startSide = (stickiness & index_js_2.IntervalStickiness.START) === 0 ? internal_2.Side.Before : internal_2.Side.After;
|
|
18
|
+
const endSide = (stickiness & index_js_2.IntervalStickiness.END) === 0 ? internal_2.Side.After : internal_2.Side.Before;
|
|
19
19
|
return { startSide, endSide };
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -321,8 +321,9 @@ class IntervalCollection extends client_utils_1.TypedEventEmitter {
|
|
|
321
321
|
}
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
|
-
default:
|
|
324
|
+
default: {
|
|
325
325
|
(0, internal_1.unreachableCase)(type);
|
|
326
|
+
}
|
|
326
327
|
}
|
|
327
328
|
}
|
|
328
329
|
process(op, local, message, maybeMetadata) {
|
|
@@ -351,8 +352,9 @@ class IntervalCollection extends client_utils_1.TypedEventEmitter {
|
|
|
351
352
|
localOpMetadata);
|
|
352
353
|
break;
|
|
353
354
|
}
|
|
354
|
-
default:
|
|
355
|
+
default: {
|
|
355
356
|
(0, internal_1.unreachableCase)(opName);
|
|
357
|
+
}
|
|
356
358
|
}
|
|
357
359
|
const pending = clearEmptyPendingEntry(this.pending, id);
|
|
358
360
|
if (pending !== undefined) {
|
|
@@ -398,8 +400,9 @@ class IntervalCollection extends client_utils_1.TypedEventEmitter {
|
|
|
398
400
|
this.removeIntervalById(id);
|
|
399
401
|
break;
|
|
400
402
|
}
|
|
401
|
-
default:
|
|
403
|
+
default: {
|
|
402
404
|
throw new Error("unknown ops should not be stashed");
|
|
405
|
+
}
|
|
403
406
|
}
|
|
404
407
|
}
|
|
405
408
|
rebaseReferenceWithSegmentSlide(ref, localSeq, squash) {
|
|
@@ -875,10 +878,8 @@ class IntervalCollection extends client_utils_1.TypedEventEmitter {
|
|
|
875
878
|
throw new internal_3.LoggingError("attachSequence must be called");
|
|
876
879
|
}
|
|
877
880
|
const interval = this.localCollection.addInterval(id, toSequencePlace(serializedInterval.start, serializedInterval.startSide ?? internal_2.Side.Before), toSequencePlace(serializedInterval.end, serializedInterval.endSide ?? internal_2.Side.Before), properties, op);
|
|
878
|
-
if (interval) {
|
|
879
|
-
|
|
880
|
-
this.onDeserialize(interval);
|
|
881
|
-
}
|
|
881
|
+
if (interval && this.onDeserialize) {
|
|
882
|
+
this.onDeserialize(interval);
|
|
882
883
|
}
|
|
883
884
|
this.emit("addInterval", interval, local, op);
|
|
884
885
|
return interval;
|