fluid-framework 2.0.0-dev-rc.5.0.0.265721 → 2.0.0-dev-rc.5.0.0.268409
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/{fluid-framework.api.md → fluid-framework.alpha.api.md} +63 -35
- package/api-report/fluid-framework.beta.api.md +642 -0
- package/api-report/fluid-framework.public.api.md +642 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +7 -5
- package/dist/public.d.ts +7 -5
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +7 -5
- package/lib/public.d.ts +7 -5
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +13 -13
- package/src/index.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## API Report File for "fluid-framework"
|
|
1
|
+
## Alpha API Report File for "fluid-framework"
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { Client } from '@fluidframework/merge-tree/internal';
|
|
8
8
|
import { ErasedType } from '@fluidframework/core-interfaces';
|
|
9
9
|
import { IChannel } from '@fluidframework/datastore-definitions/internal';
|
|
10
|
-
import
|
|
10
|
+
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
11
11
|
import type { IErrorBase } from '@fluidframework/core-interfaces';
|
|
12
12
|
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
13
13
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
@@ -24,7 +24,6 @@ import { IMergeTreeMaintenanceCallbackArgs } from '@fluidframework/merge-tree/in
|
|
|
24
24
|
import { IRelativePosition } from '@fluidframework/merge-tree/internal';
|
|
25
25
|
import { ISegment } from '@fluidframework/merge-tree/internal';
|
|
26
26
|
import { ISegmentAction } from '@fluidframework/merge-tree/internal';
|
|
27
|
-
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
28
27
|
import { ISharedObjectKind } from '@fluidframework/shared-object-base/internal';
|
|
29
28
|
import { LocalReferencePosition } from '@fluidframework/merge-tree/internal';
|
|
30
29
|
import { Marker } from '@fluidframework/merge-tree/internal';
|
|
@@ -106,14 +105,6 @@ export interface DefaultProvider extends ErasedType<"@fluidframework/tree.FieldP
|
|
|
106
105
|
// @alpha (undocumented)
|
|
107
106
|
export type DeserializeCallback = (properties: PropertySet) => void;
|
|
108
107
|
|
|
109
|
-
// @public
|
|
110
|
-
export const disposeSymbol: unique symbol;
|
|
111
|
-
|
|
112
|
-
// @public
|
|
113
|
-
export type Events<E> = {
|
|
114
|
-
[P in (string | symbol) & keyof E as IsEvent<E[P]> extends true ? P : never]: E[P];
|
|
115
|
-
};
|
|
116
|
-
|
|
117
108
|
// @public
|
|
118
109
|
export type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;
|
|
119
110
|
|
|
@@ -152,6 +143,13 @@ export type FlexList<Item = unknown> = readonly LazyItem<Item>[];
|
|
|
152
143
|
// @public
|
|
153
144
|
export type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;
|
|
154
145
|
|
|
146
|
+
// @public
|
|
147
|
+
export interface IBranchOrigin {
|
|
148
|
+
id: string;
|
|
149
|
+
minimumSequenceNumber: number;
|
|
150
|
+
sequenceNumber: number;
|
|
151
|
+
}
|
|
152
|
+
|
|
155
153
|
// @public
|
|
156
154
|
export interface IConnection {
|
|
157
155
|
readonly id: string;
|
|
@@ -162,7 +160,7 @@ export interface IConnection {
|
|
|
162
160
|
export type ICriticalContainerError = IErrorBase;
|
|
163
161
|
|
|
164
162
|
// @alpha
|
|
165
|
-
export interface IDirectory extends Map<string, any>, IEventProvider<IDirectoryEvents>, Partial<
|
|
163
|
+
export interface IDirectory extends Map<string, any>, IEventProvider<IDirectoryEvents>, Partial<IDisposable> {
|
|
166
164
|
readonly absolutePath: string;
|
|
167
165
|
countSubDirectory?(): number;
|
|
168
166
|
createSubDirectory(subdirName: string): IDirectory;
|
|
@@ -189,11 +187,6 @@ export interface IDirectoryValueChanged extends IValueChanged {
|
|
|
189
187
|
path: string;
|
|
190
188
|
}
|
|
191
189
|
|
|
192
|
-
// @public
|
|
193
|
-
export interface IDisposable {
|
|
194
|
-
[disposeSymbol](): void;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
190
|
// @public @sealed
|
|
198
191
|
export interface IFluidContainer<TContainerSchema extends ContainerSchema = ContainerSchema> extends IEventProvider<IFluidContainerEvents> {
|
|
199
192
|
attach(props?: ContainerAttachProps): Promise<string>;
|
|
@@ -362,8 +355,27 @@ export enum IntervalType {
|
|
|
362
355
|
// (undocumented)
|
|
363
356
|
Simple = 0,
|
|
364
357
|
SlideOnRemove = 2,// SlideOnRemove is default behavior - all intervals are SlideOnRemove
|
|
365
|
-
|
|
366
|
-
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// @public
|
|
361
|
+
export interface ISequencedDocumentMessage {
|
|
362
|
+
clientId: string | null;
|
|
363
|
+
clientSequenceNumber: number;
|
|
364
|
+
// @deprecated
|
|
365
|
+
compression?: string;
|
|
366
|
+
contents: unknown;
|
|
367
|
+
data?: string;
|
|
368
|
+
// @deprecated
|
|
369
|
+
expHash1?: string;
|
|
370
|
+
metadata?: unknown;
|
|
371
|
+
minimumSequenceNumber: number;
|
|
372
|
+
origin?: IBranchOrigin;
|
|
373
|
+
referenceSequenceNumber: number;
|
|
374
|
+
sequenceNumber: number;
|
|
375
|
+
serverMetadata?: unknown;
|
|
376
|
+
timestamp: number;
|
|
377
|
+
traces?: ITrace[];
|
|
378
|
+
type: string;
|
|
367
379
|
}
|
|
368
380
|
|
|
369
381
|
// @alpha
|
|
@@ -416,9 +428,6 @@ export interface IServiceAudienceEvents<M extends IMember> extends IEvent {
|
|
|
416
428
|
(event: "memberRemoved", listener: MemberChangedListener<M>): void;
|
|
417
429
|
}
|
|
418
430
|
|
|
419
|
-
// @public
|
|
420
|
-
export type IsEvent<Event> = Event extends (...args: any[]) => any ? true : false;
|
|
421
|
-
|
|
422
431
|
// @alpha
|
|
423
432
|
export interface ISharedDirectory extends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>, Omit<IDirectory, "on" | "once" | "off"> {
|
|
424
433
|
// (undocumented)
|
|
@@ -532,15 +541,20 @@ export interface ISharedString extends ISharedSegmentSequence<SharedStringSegmen
|
|
|
532
541
|
}
|
|
533
542
|
|
|
534
543
|
// @public
|
|
535
|
-
export
|
|
536
|
-
on<K extends keyof Events<E>>(eventName: K, listener: E[K]): () => void;
|
|
537
|
-
}
|
|
544
|
+
export type IsListener<TListener> = TListener extends (...args: any[]) => void ? true : false;
|
|
538
545
|
|
|
539
546
|
// @public
|
|
540
547
|
export class IterableTreeArrayContent<T> implements Iterable<T> {
|
|
541
548
|
[Symbol.iterator](): Iterator<T>;
|
|
542
549
|
}
|
|
543
550
|
|
|
551
|
+
// @public
|
|
552
|
+
export interface ITrace {
|
|
553
|
+
action: string;
|
|
554
|
+
service: string;
|
|
555
|
+
timestamp: number;
|
|
556
|
+
}
|
|
557
|
+
|
|
544
558
|
// @public
|
|
545
559
|
export interface ITree extends IFluidLoadable {
|
|
546
560
|
schematize<TRoot extends ImplicitFieldSchema>(config: TreeConfiguration<TRoot>): TreeView<TRoot>;
|
|
@@ -560,6 +574,16 @@ export interface IValueChanged {
|
|
|
560
574
|
// @public
|
|
561
575
|
export type LazyItem<Item = unknown> = Item | (() => Item);
|
|
562
576
|
|
|
577
|
+
// @public
|
|
578
|
+
export interface Listenable<TListeners extends object> {
|
|
579
|
+
on<K extends keyof Listeners<TListeners>>(eventName: K, listener: TListeners[K]): Off;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// @public
|
|
583
|
+
export type Listeners<T extends object> = {
|
|
584
|
+
[P in (string | symbol) & keyof T as IsListener<T[P]> extends true ? P : never]: T[P];
|
|
585
|
+
};
|
|
586
|
+
|
|
563
587
|
// @public
|
|
564
588
|
export interface MakeNominal {
|
|
565
589
|
}
|
|
@@ -587,9 +611,9 @@ export type NodeFromSchemaUnsafe<T extends Unenforced<TreeNodeSchema>> = T exten
|
|
|
587
611
|
// @public
|
|
588
612
|
export interface NodeInDocumentConstraint {
|
|
589
613
|
// (undocumented)
|
|
590
|
-
node: TreeNode;
|
|
614
|
+
readonly node: TreeNode;
|
|
591
615
|
// (undocumented)
|
|
592
|
-
type: "nodeInDocument";
|
|
616
|
+
readonly type: "nodeInDocument";
|
|
593
617
|
}
|
|
594
618
|
|
|
595
619
|
// @public
|
|
@@ -610,6 +634,9 @@ export type ObjectFromSchemaRecordUnsafe<T extends Unenforced<RestrictiveReadonl
|
|
|
610
634
|
-readonly [Property in keyof T]: TreeFieldFromImplicitFieldUnsafe<T[Property]>;
|
|
611
635
|
};
|
|
612
636
|
|
|
637
|
+
// @public
|
|
638
|
+
export type Off = () => void;
|
|
639
|
+
|
|
613
640
|
// @public
|
|
614
641
|
export type RestrictiveReadonlyRecord<K extends symbol | string, T> = {
|
|
615
642
|
readonly [P in symbol | string]: P extends K ? T : never;
|
|
@@ -617,7 +644,7 @@ export type RestrictiveReadonlyRecord<K extends symbol | string, T> = {
|
|
|
617
644
|
|
|
618
645
|
// @public
|
|
619
646
|
export interface Revertible {
|
|
620
|
-
|
|
647
|
+
dispose(): void;
|
|
621
648
|
revert(): void;
|
|
622
649
|
revert(dispose: boolean): void;
|
|
623
650
|
readonly status: RevertibleStatus;
|
|
@@ -643,12 +670,12 @@ export interface RunTransaction {
|
|
|
643
670
|
<TView extends TreeView<ImplicitFieldSchema>, TResult>(tree: TView, transaction: (root: TView["root"]) => TResult | typeof rollback): TResult | typeof rollback;
|
|
644
671
|
<TNode extends TreeNode>(node: TNode, transaction: (node: TNode) => void): void;
|
|
645
672
|
<TView extends TreeView<ImplicitFieldSchema>>(tree: TView, transaction: (root: TView["root"]) => void): void;
|
|
646
|
-
<TNode extends TreeNode, TResult>(node: TNode, transaction: (node: TNode) => TResult, preconditions?: TransactionConstraint[]): TResult;
|
|
647
|
-
<TView extends TreeView<ImplicitFieldSchema>, TResult>(tree: TView, transaction: (root: TView["root"]) => TResult, preconditions?: TransactionConstraint[]): TResult;
|
|
648
|
-
<TNode extends TreeNode, TResult>(node: TNode, transaction: (node: TNode) => TResult | typeof rollback, preconditions?: TransactionConstraint[]): TResult | typeof rollback;
|
|
649
|
-
<TView extends TreeView<ImplicitFieldSchema>, TResult>(tree: TView, transaction: (root: TView["root"]) => TResult | typeof rollback, preconditions?: TransactionConstraint[]): TResult | typeof rollback;
|
|
650
|
-
<TNode extends TreeNode>(node: TNode, transaction: (node: TNode) => void, preconditions?: TransactionConstraint[]): void;
|
|
651
|
-
<TView extends TreeView<ImplicitFieldSchema>>(tree: TView, transaction: (root: TView["root"]) => void, preconditions?: TransactionConstraint[]): void;
|
|
673
|
+
<TNode extends TreeNode, TResult>(node: TNode, transaction: (node: TNode) => TResult, preconditions?: readonly TransactionConstraint[]): TResult;
|
|
674
|
+
<TView extends TreeView<ImplicitFieldSchema>, TResult>(tree: TView, transaction: (root: TView["root"]) => TResult, preconditions?: readonly TransactionConstraint[]): TResult;
|
|
675
|
+
<TNode extends TreeNode, TResult>(node: TNode, transaction: (node: TNode) => TResult | typeof rollback, preconditions?: readonly TransactionConstraint[]): TResult | typeof rollback;
|
|
676
|
+
<TView extends TreeView<ImplicitFieldSchema>, TResult>(tree: TView, transaction: (root: TView["root"]) => TResult | typeof rollback, preconditions?: readonly TransactionConstraint[]): TResult | typeof rollback;
|
|
677
|
+
<TNode extends TreeNode>(node: TNode, transaction: (node: TNode) => void, preconditions?: readonly TransactionConstraint[]): void;
|
|
678
|
+
<TView extends TreeView<ImplicitFieldSchema>>(tree: TView, transaction: (root: TView["root"]) => void, preconditions?: readonly TransactionConstraint[]): void;
|
|
652
679
|
readonly rollback: typeof rollback;
|
|
653
680
|
}
|
|
654
681
|
|
|
@@ -942,13 +969,14 @@ export type TreeObjectNodeUnsafe<T extends Unenforced<RestrictiveReadonlyRecord<
|
|
|
942
969
|
export enum TreeStatus {
|
|
943
970
|
Deleted = 2,
|
|
944
971
|
InDocument = 0,
|
|
972
|
+
New = 3,
|
|
945
973
|
Removed = 1
|
|
946
974
|
}
|
|
947
975
|
|
|
948
976
|
// @public
|
|
949
977
|
export interface TreeView<TSchema extends ImplicitFieldSchema> extends IDisposable {
|
|
950
978
|
readonly error?: SchemaIncompatible;
|
|
951
|
-
readonly events:
|
|
979
|
+
readonly events: Listenable<TreeViewEvents>;
|
|
952
980
|
get root(): TreeFieldFromImplicitField<TSchema>;
|
|
953
981
|
set root(newRoot: InsertableTreeFieldFromImplicitField<TSchema>);
|
|
954
982
|
upgradeSchema(): void;
|