fluid-framework 2.118.0 → 3.0.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 +450 -75
- package/README.md +55 -52
- package/{api-extractor.json → api-extractor/api-extractor-model.json} +1 -1
- package/api-report/fluid-framework.alpha.api.md +132 -136
- package/api-report/fluid-framework.beta.api.md +123 -84
- package/api-report/fluid-framework.legacy.beta.api.md +131 -88
- package/api-report/fluid-framework.legacy.public.api.md +31 -38
- package/api-report/fluid-framework.public.api.md +27 -36
- package/dist/alpha.d.ts +16 -13
- package/dist/beta.d.ts +11 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +11 -0
- package/lib/alpha.d.ts +17 -14
- package/lib/beta.d.ts +12 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +12 -1
- package/lib/public.d.ts +1 -1
- package/package.json +49 -54
- package/src/index.ts +1 -0
- package/tsconfig.json +1 -1
- package/alpha.d.ts +0 -11
- package/beta.d.ts +0 -11
- package/legacy.d.ts +0 -11
- /package/api-extractor/{api-extractor.current.json → api-extractor-report.current.json} +0 -0
- /package/api-extractor/{api-extractor.legacy.json → api-extractor-report.legacy.json} +0 -0
|
@@ -235,17 +235,19 @@ export interface IConnection {
|
|
|
235
235
|
export type ICriticalContainerError = IErrorBase;
|
|
236
236
|
|
|
237
237
|
// @public @sealed @legacy
|
|
238
|
-
export interface IDirectory extends
|
|
238
|
+
export interface IDirectory extends FluidMap<string, any>, IEventProvider<IDirectoryEvents>, Partial<IDisposable> {
|
|
239
239
|
readonly absolutePath: string;
|
|
240
|
+
clear(): void;
|
|
240
241
|
countSubDirectory?(): number;
|
|
241
242
|
createSubDirectory(subdirName: string): IDirectory;
|
|
243
|
+
delete(key: string): boolean;
|
|
242
244
|
deleteSubDirectory(subdirName: string): boolean;
|
|
243
245
|
get<T = any>(key: string): T | undefined;
|
|
244
246
|
getSubDirectory(subdirName: string): IDirectory | undefined;
|
|
245
247
|
getWorkingDirectory(relativePath: string): IDirectory | undefined;
|
|
246
248
|
hasSubDirectory(subdirName: string): boolean;
|
|
247
249
|
set<T = unknown>(key: string, value: T): this;
|
|
248
|
-
subdirectories():
|
|
250
|
+
subdirectories(): FluidIterableIterator<[string, IDirectory]>;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
// @public @sealed @legacy
|
|
@@ -563,7 +565,7 @@ declare namespace InternalTypes {
|
|
|
563
565
|
FieldHasDefault,
|
|
564
566
|
ScopedSchemaName,
|
|
565
567
|
DefaultProvider,
|
|
566
|
-
|
|
568
|
+
schemaIdentifierBrand,
|
|
567
569
|
InsertableObjectFromSchemaRecord,
|
|
568
570
|
FlexList,
|
|
569
571
|
FlexListToUnion,
|
|
@@ -611,10 +613,10 @@ export interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
|
|
|
611
613
|
eventName: string;
|
|
612
614
|
}
|
|
613
615
|
|
|
614
|
-
// @public
|
|
616
|
+
// @public @input
|
|
615
617
|
export interface ITelemetryBaseLogger {
|
|
616
618
|
minLogLevel?: LogLevel | undefined;
|
|
617
|
-
send(event: ITelemetryBaseEvent, logLevel
|
|
619
|
+
send(event: ITelemetryBaseEvent, logLevel: LogLevel): void;
|
|
618
620
|
}
|
|
619
621
|
|
|
620
622
|
// @public
|
|
@@ -674,10 +676,6 @@ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
|
674
676
|
|
|
675
677
|
// @public
|
|
676
678
|
export interface LogLevelConst {
|
|
677
|
-
// @deprecated
|
|
678
|
-
readonly default: 20;
|
|
679
|
-
// @deprecated
|
|
680
|
-
readonly error: 30;
|
|
681
679
|
readonly essential: 30;
|
|
682
680
|
readonly info: 20;
|
|
683
681
|
readonly verbose: 10;
|
|
@@ -746,7 +744,7 @@ export type ObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFie
|
|
|
746
744
|
export type Off = () => void;
|
|
747
745
|
|
|
748
746
|
// @public @sealed @system
|
|
749
|
-
export interface ReadonlyArrayNode<out T = TreeNode | TreeLeafValue> extends
|
|
747
|
+
export interface ReadonlyArrayNode<out T = TreeNode | TreeLeafValue> extends FluidReadonlyArray<T>, Awaited<TreeNode & WithType<string, NodeKind.Array>> {
|
|
750
748
|
}
|
|
751
749
|
|
|
752
750
|
// @public
|
|
@@ -817,21 +815,16 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
817
815
|
scope: TScope);
|
|
818
816
|
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>;
|
|
819
817
|
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>;
|
|
820
|
-
arrayRecursive<const Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, System_Unsafe.TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array
|
|
818
|
+
arrayRecursive<const Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, System_Unsafe.TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, {
|
|
821
819
|
[Symbol.iterator](): Iterator<System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
822
820
|
}, false, T, undefined>;
|
|
823
821
|
protected getStructuralType(fullName: string, types: TreeNodeSchema | readonly TreeNodeSchema[], builder: () => TreeNodeSchema): TreeNodeSchema;
|
|
824
822
|
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>;
|
|
825
823
|
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>;
|
|
826
824
|
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>;
|
|
827
|
-
mapRecursive<Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, System_Unsafe.TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map
|
|
828
|
-
[Symbol.iterator](): Iterator<[
|
|
829
|
-
|
|
830
|
-
System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>
|
|
831
|
-
]>;
|
|
832
|
-
} | {
|
|
833
|
-
readonly [x: string]: System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>;
|
|
834
|
-
}, false, T, undefined>;
|
|
825
|
+
mapRecursive<Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, System_Unsafe.TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, {
|
|
826
|
+
[Symbol.iterator](): Iterator<[string, System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>]>;
|
|
827
|
+
} | { readonly [P in string]: System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>; }, false, T, undefined>;
|
|
835
828
|
object<const Name extends TName, const T extends RestrictiveStringRecord<ImplicitFieldSchema>>(name: Name, fields: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNode<T, ScopedSchemaName<TScope, Name>>, object & InsertableObjectFromSchemaRecord<T>, true, T>;
|
|
836
829
|
objectRecursive<const Name extends TName, const T extends RestrictiveStringRecord<System_Unsafe.ImplicitFieldSchemaUnsafe>>(name: Name, t: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, System_Unsafe.TreeObjectNodeUnsafe<T, ScopedSchemaName<TScope, Name>>, object & System_Unsafe.InsertableObjectFromSchemaRecordUnsafe<T>, false, T>;
|
|
837
830
|
readonly scope: TScope;
|
|
@@ -840,6 +833,9 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
840
833
|
// @public @system
|
|
841
834
|
export const SchemaFactory_base: SchemaStatics & (new () => SchemaStatics);
|
|
842
835
|
|
|
836
|
+
// @public @system
|
|
837
|
+
const schemaIdentifierBrand: unique symbol;
|
|
838
|
+
|
|
843
839
|
// @public @sealed @system
|
|
844
840
|
export interface SchemaStatics {
|
|
845
841
|
readonly boolean: LeafSchema<"boolean", boolean>;
|
|
@@ -919,18 +915,20 @@ export namespace System_Unsafe {
|
|
|
919
915
|
};
|
|
920
916
|
// @sealed @system
|
|
921
917
|
export interface ReadonlyMapInlined<K, T extends ImplicitAllowedTypesUnsafe> {
|
|
922
|
-
[Symbol.iterator]():
|
|
923
|
-
|
|
918
|
+
[Symbol.iterator](): FluidIterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>;
|
|
919
|
+
// (undocumented)
|
|
920
|
+
readonly [Symbol.toStringTag]: string;
|
|
921
|
+
entries(): FluidIterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>;
|
|
924
922
|
// (undocumented)
|
|
925
|
-
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypesUnsafe<T>, key: K, map:
|
|
923
|
+
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypesUnsafe<T>, key: K, map: FluidReadonlyMap<K, TreeNodeFromImplicitAllowedTypesUnsafe<T>>) => void, thisArg?: any): void;
|
|
926
924
|
// (undocumented)
|
|
927
925
|
get(key: K): TreeNodeFromImplicitAllowedTypesUnsafe<T> | undefined;
|
|
928
926
|
// (undocumented)
|
|
929
927
|
has(key: K): boolean;
|
|
930
|
-
keys():
|
|
928
|
+
keys(): FluidIterableIterator<K>;
|
|
931
929
|
// (undocumented)
|
|
932
930
|
readonly size: number;
|
|
933
|
-
values():
|
|
931
|
+
values(): FluidIterableIterator<TreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
934
932
|
}
|
|
935
933
|
// @sealed @system
|
|
936
934
|
export interface TreeArrayNodeUnsafe<TAllowedTypes extends ImplicitAllowedTypesUnsafe> extends TreeArrayNode<TAllowedTypes, TreeNodeFromImplicitAllowedTypesUnsafe<TAllowedTypes>, InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TAllowedTypes>> {
|
|
@@ -1006,7 +1004,7 @@ export interface TreeArrayNode<TAllowedTypes extends System_Unsafe.ImplicitAllow
|
|
|
1006
1004
|
push(...value: readonly (TNew | IterableTreeArrayContent<TNew>)[]): void;
|
|
1007
1005
|
removeAt(index: number): void;
|
|
1008
1006
|
removeRange(start?: number, end?: number): void;
|
|
1009
|
-
values():
|
|
1007
|
+
values(): FluidIterableIterator<T>;
|
|
1010
1008
|
}
|
|
1011
1009
|
|
|
1012
1010
|
// @public
|
|
@@ -1017,7 +1015,7 @@ export const TreeArrayNode: {
|
|
|
1017
1015
|
// @public @sealed
|
|
1018
1016
|
export interface TreeChangeEvents {
|
|
1019
1017
|
nodeChanged(unstable?: unknown): void;
|
|
1020
|
-
treeChanged(): void;
|
|
1018
|
+
treeChanged(unstable?: unknown): void;
|
|
1021
1019
|
}
|
|
1022
1020
|
|
|
1023
1021
|
// @public
|
|
@@ -1027,21 +1025,20 @@ export type TreeFieldFromImplicitField<TSchema extends ImplicitFieldSchema = Fie
|
|
|
1027
1025
|
export type TreeLeafValue = number | string | boolean | IFluidHandle | null;
|
|
1028
1026
|
|
|
1029
1027
|
// @public @sealed
|
|
1030
|
-
export interface TreeMapNode<T extends ImplicitAllowedTypes = ImplicitAllowedTypes> extends
|
|
1028
|
+
export interface TreeMapNode<T extends ImplicitAllowedTypes = ImplicitAllowedTypes> extends FluidReadonlyMap<string, TreeNodeFromImplicitAllowedTypes<T>>, TreeNode {
|
|
1031
1029
|
delete(key: string): void;
|
|
1032
|
-
entries():
|
|
1033
|
-
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypes<T>, key: string, map:
|
|
1034
|
-
keys():
|
|
1030
|
+
entries(): FluidIterableIterator<[string, TreeNodeFromImplicitAllowedTypes<T>]>;
|
|
1031
|
+
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypes<T>, key: string, map: FluidReadonlyMap<string, TreeNodeFromImplicitAllowedTypes<T>>) => void, thisArg?: any): void;
|
|
1032
|
+
keys(): FluidIterableIterator<string>;
|
|
1035
1033
|
set(key: string, value: InsertableTreeNodeFromImplicitAllowedTypes<T> | undefined): void;
|
|
1036
|
-
values():
|
|
1034
|
+
values(): FluidIterableIterator<TreeNodeFromImplicitAllowedTypes<T>>;
|
|
1037
1035
|
}
|
|
1038
1036
|
|
|
1039
1037
|
// @public @sealed
|
|
1040
1038
|
export abstract class TreeNode implements WithType {
|
|
1039
|
+
abstract get [schemaIdentifierBrand](): string;
|
|
1041
1040
|
static [Symbol.hasInstance](value: unknown): value is TreeNode;
|
|
1042
1041
|
static [Symbol.hasInstance]<TSchema extends abstract new (...args: any[]) => TreeNode>(this: TSchema, value: unknown): value is InstanceType<TSchema>;
|
|
1043
|
-
// @deprecated
|
|
1044
|
-
abstract get [typeNameSymbol](): string;
|
|
1045
1042
|
abstract get [typeSchemaSymbol](): TreeNodeSchemaClass;
|
|
1046
1043
|
protected constructor(token: unknown);
|
|
1047
1044
|
}
|
|
@@ -1127,9 +1124,6 @@ export interface TreeViewEvents {
|
|
|
1127
1124
|
schemaChanged(): void;
|
|
1128
1125
|
}
|
|
1129
1126
|
|
|
1130
|
-
// @public @deprecated @system
|
|
1131
|
-
const typeNameSymbol: unique symbol;
|
|
1132
|
-
|
|
1133
1127
|
// @public @system
|
|
1134
1128
|
export const typeSchemaSymbol: unique symbol;
|
|
1135
1129
|
|
|
@@ -1169,8 +1163,7 @@ export interface ViewableTree {
|
|
|
1169
1163
|
|
|
1170
1164
|
// @public @sealed
|
|
1171
1165
|
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
|
|
1172
|
-
|
|
1173
|
-
get [typeNameSymbol](): TName;
|
|
1166
|
+
get [schemaIdentifierBrand](): TName;
|
|
1174
1167
|
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>;
|
|
1175
1168
|
}
|
|
1176
1169
|
|
|
@@ -535,7 +535,7 @@ declare namespace InternalTypes {
|
|
|
535
535
|
FieldHasDefault,
|
|
536
536
|
ScopedSchemaName,
|
|
537
537
|
DefaultProvider,
|
|
538
|
-
|
|
538
|
+
schemaIdentifierBrand,
|
|
539
539
|
InsertableObjectFromSchemaRecord,
|
|
540
540
|
FlexList,
|
|
541
541
|
FlexListToUnion,
|
|
@@ -583,10 +583,10 @@ export interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
|
|
|
583
583
|
eventName: string;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
// @public
|
|
586
|
+
// @public @input
|
|
587
587
|
export interface ITelemetryBaseLogger {
|
|
588
588
|
minLogLevel?: LogLevel | undefined;
|
|
589
|
-
send(event: ITelemetryBaseEvent, logLevel
|
|
589
|
+
send(event: ITelemetryBaseEvent, logLevel: LogLevel): void;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
// @public
|
|
@@ -640,10 +640,6 @@ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
|
640
640
|
|
|
641
641
|
// @public
|
|
642
642
|
export interface LogLevelConst {
|
|
643
|
-
// @deprecated
|
|
644
|
-
readonly default: 20;
|
|
645
|
-
// @deprecated
|
|
646
|
-
readonly error: 30;
|
|
647
643
|
readonly essential: 30;
|
|
648
644
|
readonly info: 20;
|
|
649
645
|
readonly verbose: 10;
|
|
@@ -712,7 +708,7 @@ export type ObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFie
|
|
|
712
708
|
export type Off = () => void;
|
|
713
709
|
|
|
714
710
|
// @public @sealed @system
|
|
715
|
-
export interface ReadonlyArrayNode<out T = TreeNode | TreeLeafValue> extends
|
|
711
|
+
export interface ReadonlyArrayNode<out T = TreeNode | TreeLeafValue> extends FluidReadonlyArray<T>, Awaited<TreeNode & WithType<string, NodeKind.Array>> {
|
|
716
712
|
}
|
|
717
713
|
|
|
718
714
|
// @public
|
|
@@ -783,21 +779,16 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
783
779
|
scope: TScope);
|
|
784
780
|
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>;
|
|
785
781
|
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>;
|
|
786
|
-
arrayRecursive<const Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, System_Unsafe.TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array
|
|
782
|
+
arrayRecursive<const Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, System_Unsafe.TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, {
|
|
787
783
|
[Symbol.iterator](): Iterator<System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
788
784
|
}, false, T, undefined>;
|
|
789
785
|
protected getStructuralType(fullName: string, types: TreeNodeSchema | readonly TreeNodeSchema[], builder: () => TreeNodeSchema): TreeNodeSchema;
|
|
790
786
|
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>;
|
|
791
787
|
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>;
|
|
792
788
|
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>;
|
|
793
|
-
mapRecursive<Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, System_Unsafe.TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map
|
|
794
|
-
[Symbol.iterator](): Iterator<[
|
|
795
|
-
|
|
796
|
-
System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>
|
|
797
|
-
]>;
|
|
798
|
-
} | {
|
|
799
|
-
readonly [x: string]: System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>;
|
|
800
|
-
}, false, T, undefined>;
|
|
789
|
+
mapRecursive<Name extends TName, const T extends System_Unsafe.ImplicitAllowedTypesUnsafe>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, System_Unsafe.TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, {
|
|
790
|
+
[Symbol.iterator](): Iterator<[string, System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>]>;
|
|
791
|
+
} | { readonly [P in string]: System_Unsafe.InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>; }, false, T, undefined>;
|
|
801
792
|
object<const Name extends TName, const T extends RestrictiveStringRecord<ImplicitFieldSchema>>(name: Name, fields: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNode<T, ScopedSchemaName<TScope, Name>>, object & InsertableObjectFromSchemaRecord<T>, true, T>;
|
|
802
793
|
objectRecursive<const Name extends TName, const T extends RestrictiveStringRecord<System_Unsafe.ImplicitFieldSchemaUnsafe>>(name: Name, t: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, System_Unsafe.TreeObjectNodeUnsafe<T, ScopedSchemaName<TScope, Name>>, object & System_Unsafe.InsertableObjectFromSchemaRecordUnsafe<T>, false, T>;
|
|
803
794
|
readonly scope: TScope;
|
|
@@ -806,6 +797,9 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
806
797
|
// @public @system
|
|
807
798
|
export const SchemaFactory_base: SchemaStatics & (new () => SchemaStatics);
|
|
808
799
|
|
|
800
|
+
// @public @system
|
|
801
|
+
const schemaIdentifierBrand: unique symbol;
|
|
802
|
+
|
|
809
803
|
// @public @sealed @system
|
|
810
804
|
export interface SchemaStatics {
|
|
811
805
|
readonly boolean: LeafSchema<"boolean", boolean>;
|
|
@@ -885,18 +879,20 @@ export namespace System_Unsafe {
|
|
|
885
879
|
};
|
|
886
880
|
// @sealed @system
|
|
887
881
|
export interface ReadonlyMapInlined<K, T extends ImplicitAllowedTypesUnsafe> {
|
|
888
|
-
[Symbol.iterator]():
|
|
889
|
-
|
|
882
|
+
[Symbol.iterator](): FluidIterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>;
|
|
883
|
+
// (undocumented)
|
|
884
|
+
readonly [Symbol.toStringTag]: string;
|
|
885
|
+
entries(): FluidIterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>;
|
|
890
886
|
// (undocumented)
|
|
891
|
-
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypesUnsafe<T>, key: K, map:
|
|
887
|
+
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypesUnsafe<T>, key: K, map: FluidReadonlyMap<K, TreeNodeFromImplicitAllowedTypesUnsafe<T>>) => void, thisArg?: any): void;
|
|
892
888
|
// (undocumented)
|
|
893
889
|
get(key: K): TreeNodeFromImplicitAllowedTypesUnsafe<T> | undefined;
|
|
894
890
|
// (undocumented)
|
|
895
891
|
has(key: K): boolean;
|
|
896
|
-
keys():
|
|
892
|
+
keys(): FluidIterableIterator<K>;
|
|
897
893
|
// (undocumented)
|
|
898
894
|
readonly size: number;
|
|
899
|
-
values():
|
|
895
|
+
values(): FluidIterableIterator<TreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
900
896
|
}
|
|
901
897
|
// @sealed @system
|
|
902
898
|
export interface TreeArrayNodeUnsafe<TAllowedTypes extends ImplicitAllowedTypesUnsafe> extends TreeArrayNode<TAllowedTypes, TreeNodeFromImplicitAllowedTypesUnsafe<TAllowedTypes>, InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TAllowedTypes>> {
|
|
@@ -972,7 +968,7 @@ export interface TreeArrayNode<TAllowedTypes extends System_Unsafe.ImplicitAllow
|
|
|
972
968
|
push(...value: readonly (TNew | IterableTreeArrayContent<TNew>)[]): void;
|
|
973
969
|
removeAt(index: number): void;
|
|
974
970
|
removeRange(start?: number, end?: number): void;
|
|
975
|
-
values():
|
|
971
|
+
values(): FluidIterableIterator<T>;
|
|
976
972
|
}
|
|
977
973
|
|
|
978
974
|
// @public
|
|
@@ -983,7 +979,7 @@ export const TreeArrayNode: {
|
|
|
983
979
|
// @public @sealed
|
|
984
980
|
export interface TreeChangeEvents {
|
|
985
981
|
nodeChanged(unstable?: unknown): void;
|
|
986
|
-
treeChanged(): void;
|
|
982
|
+
treeChanged(unstable?: unknown): void;
|
|
987
983
|
}
|
|
988
984
|
|
|
989
985
|
// @public
|
|
@@ -993,21 +989,20 @@ export type TreeFieldFromImplicitField<TSchema extends ImplicitFieldSchema = Fie
|
|
|
993
989
|
export type TreeLeafValue = number | string | boolean | IFluidHandle | null;
|
|
994
990
|
|
|
995
991
|
// @public @sealed
|
|
996
|
-
export interface TreeMapNode<T extends ImplicitAllowedTypes = ImplicitAllowedTypes> extends
|
|
992
|
+
export interface TreeMapNode<T extends ImplicitAllowedTypes = ImplicitAllowedTypes> extends FluidReadonlyMap<string, TreeNodeFromImplicitAllowedTypes<T>>, TreeNode {
|
|
997
993
|
delete(key: string): void;
|
|
998
|
-
entries():
|
|
999
|
-
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypes<T>, key: string, map:
|
|
1000
|
-
keys():
|
|
994
|
+
entries(): FluidIterableIterator<[string, TreeNodeFromImplicitAllowedTypes<T>]>;
|
|
995
|
+
forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypes<T>, key: string, map: FluidReadonlyMap<string, TreeNodeFromImplicitAllowedTypes<T>>) => void, thisArg?: any): void;
|
|
996
|
+
keys(): FluidIterableIterator<string>;
|
|
1001
997
|
set(key: string, value: InsertableTreeNodeFromImplicitAllowedTypes<T> | undefined): void;
|
|
1002
|
-
values():
|
|
998
|
+
values(): FluidIterableIterator<TreeNodeFromImplicitAllowedTypes<T>>;
|
|
1003
999
|
}
|
|
1004
1000
|
|
|
1005
1001
|
// @public @sealed
|
|
1006
1002
|
export abstract class TreeNode implements WithType {
|
|
1003
|
+
abstract get [schemaIdentifierBrand](): string;
|
|
1007
1004
|
static [Symbol.hasInstance](value: unknown): value is TreeNode;
|
|
1008
1005
|
static [Symbol.hasInstance]<TSchema extends abstract new (...args: any[]) => TreeNode>(this: TSchema, value: unknown): value is InstanceType<TSchema>;
|
|
1009
|
-
// @deprecated
|
|
1010
|
-
abstract get [typeNameSymbol](): string;
|
|
1011
1006
|
abstract get [typeSchemaSymbol](): TreeNodeSchemaClass;
|
|
1012
1007
|
protected constructor(token: unknown);
|
|
1013
1008
|
}
|
|
@@ -1093,9 +1088,6 @@ export interface TreeViewEvents {
|
|
|
1093
1088
|
schemaChanged(): void;
|
|
1094
1089
|
}
|
|
1095
1090
|
|
|
1096
|
-
// @public @deprecated @system
|
|
1097
|
-
const typeNameSymbol: unique symbol;
|
|
1098
|
-
|
|
1099
1091
|
// @public @system
|
|
1100
1092
|
export const typeSchemaSymbol: unique symbol;
|
|
1101
1093
|
|
|
@@ -1135,8 +1127,7 @@ export interface ViewableTree {
|
|
|
1135
1127
|
|
|
1136
1128
|
// @public @sealed
|
|
1137
1129
|
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
|
|
1138
|
-
|
|
1139
|
-
get [typeNameSymbol](): TName;
|
|
1130
|
+
get [schemaIdentifierBrand](): TName;
|
|
1140
1131
|
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>;
|
|
1141
1132
|
}
|
|
1142
1133
|
|
package/dist/alpha.d.ts
CHANGED
|
@@ -159,6 +159,12 @@ export {
|
|
|
159
159
|
AnnotatedAllowedTypeUnsafe,
|
|
160
160
|
AnnotatedAllowedTypes,
|
|
161
161
|
AnnotatedAllowedTypesUnsafe,
|
|
162
|
+
ArrayNodeDeltaOp,
|
|
163
|
+
ArrayNodeInsertOp,
|
|
164
|
+
ArrayNodeRemoveOp,
|
|
165
|
+
ArrayNodeRetainOp,
|
|
166
|
+
ArrayNodeTreeChangedDeltaOp,
|
|
167
|
+
ArrayNodeTreeChangedRetainOp,
|
|
162
168
|
CodecWriteOptionsBeta,
|
|
163
169
|
ConciseTree,
|
|
164
170
|
ErasedBaseType,
|
|
@@ -175,6 +181,9 @@ export {
|
|
|
175
181
|
JsonCompatibleObject,
|
|
176
182
|
KeyEncodingOptions,
|
|
177
183
|
NodeChangedData,
|
|
184
|
+
NodeChangedDataDelta,
|
|
185
|
+
NodeChangedDataProperties,
|
|
186
|
+
NodeChangedDataTreeDelta,
|
|
178
187
|
ObjectSchemaOptions,
|
|
179
188
|
PopUnion,
|
|
180
189
|
RecordNodeInsertableData,
|
|
@@ -197,6 +206,7 @@ export {
|
|
|
197
206
|
TreeBeta,
|
|
198
207
|
TreeBranch,
|
|
199
208
|
TreeChangeEventsBeta,
|
|
209
|
+
TreeContextBeta,
|
|
200
210
|
TreeEncodingOptions,
|
|
201
211
|
TreeIndex,
|
|
202
212
|
TreeIndexKey,
|
|
@@ -216,6 +226,7 @@ export {
|
|
|
216
226
|
configuredSharedTreeBeta,
|
|
217
227
|
createIdentifierIndex,
|
|
218
228
|
createIndependentTreeBeta,
|
|
229
|
+
createIndependentTreeView,
|
|
219
230
|
createTreeIndex,
|
|
220
231
|
enumFromStrings,
|
|
221
232
|
onAssertionFailure,
|
|
@@ -228,14 +239,8 @@ export {
|
|
|
228
239
|
ArrayNodeCustomizableSchema,
|
|
229
240
|
ArrayNodeCustomizableSchemaAlpha,
|
|
230
241
|
ArrayNodeCustomizableSchemaUnsafe,
|
|
231
|
-
ArrayNodeDeltaOp,
|
|
232
|
-
ArrayNodeInsertOp,
|
|
233
242
|
ArrayNodePojoEmulationSchema,
|
|
234
|
-
ArrayNodeRemoveOp,
|
|
235
|
-
ArrayNodeRetainOp,
|
|
236
243
|
ArrayNodeSchema,
|
|
237
|
-
ArrayNodeTreeChangedDeltaOp,
|
|
238
|
-
ArrayNodeTreeChangedRetainOp,
|
|
239
244
|
ArrayPlaceAnchor,
|
|
240
245
|
ChangeMetadata,
|
|
241
246
|
CodecName,
|
|
@@ -310,10 +315,6 @@ export {
|
|
|
310
315
|
MapNodePojoEmulationSchema,
|
|
311
316
|
MapNodeSchema,
|
|
312
317
|
NoChangeConstraint,
|
|
313
|
-
NodeChangedDataAlpha,
|
|
314
|
-
NodeChangedDataDelta,
|
|
315
|
-
NodeChangedDataProperties,
|
|
316
|
-
NodeChangedDataTreeDelta,
|
|
317
318
|
NodeProvider,
|
|
318
319
|
NodeSchemaOptionsAlpha,
|
|
319
320
|
ObjectNodeSchema,
|
|
@@ -372,7 +373,6 @@ export {
|
|
|
372
373
|
TreeBranchCommitMetadata,
|
|
373
374
|
TreeBranchEvents,
|
|
374
375
|
TreeBranchHistory,
|
|
375
|
-
TreeChangeEventsAlpha,
|
|
376
376
|
TreeCompressionStrategy,
|
|
377
377
|
TreeContextAlpha,
|
|
378
378
|
TreeDataStoreOptions,
|
|
@@ -392,9 +392,9 @@ export {
|
|
|
392
392
|
VoidTransactionCallbackStatusAlpha,
|
|
393
393
|
allowUnused,
|
|
394
394
|
asAlpha,
|
|
395
|
-
asTreeViewAlpha,
|
|
396
395
|
checkCompatibility,
|
|
397
396
|
cloneWithReplacements,
|
|
397
|
+
codePointCount,
|
|
398
398
|
comparePersistedSchema,
|
|
399
399
|
configuredSharedTree,
|
|
400
400
|
configuredSharedTreeAlpha,
|
|
@@ -402,6 +402,7 @@ export {
|
|
|
402
402
|
createArrayInsertionAnchor,
|
|
403
403
|
createBasicRegistryKey,
|
|
404
404
|
createIndependentTreeAlpha,
|
|
405
|
+
createIndependentTreeViewAlpha,
|
|
405
406
|
decodeSchemaCompatibilitySnapshot,
|
|
406
407
|
defineDataStore,
|
|
407
408
|
defineTreeDataStore,
|
|
@@ -411,6 +412,7 @@ export {
|
|
|
411
412
|
evaluateLazySchema,
|
|
412
413
|
exportCompatibilitySchemaSnapshot,
|
|
413
414
|
extractPersistedSchema,
|
|
415
|
+
featureVersion,
|
|
414
416
|
generateSchemaFromSimpleSchema,
|
|
415
417
|
getJsonSchema,
|
|
416
418
|
getPresenceAlpha,
|
|
@@ -429,6 +431,7 @@ export {
|
|
|
429
431
|
replaceHandles,
|
|
430
432
|
replaceVerboseTreeHandles,
|
|
431
433
|
sharedObjectRegistryFromIterable,
|
|
432
|
-
trackDirtyNodes
|
|
434
|
+
trackDirtyNodes,
|
|
435
|
+
utf16LengthForCodePoints
|
|
433
436
|
// #endregion
|
|
434
437
|
} from "./index.js";
|
package/dist/beta.d.ts
CHANGED
|
@@ -159,6 +159,12 @@ export {
|
|
|
159
159
|
AnnotatedAllowedTypeUnsafe,
|
|
160
160
|
AnnotatedAllowedTypes,
|
|
161
161
|
AnnotatedAllowedTypesUnsafe,
|
|
162
|
+
ArrayNodeDeltaOp,
|
|
163
|
+
ArrayNodeInsertOp,
|
|
164
|
+
ArrayNodeRemoveOp,
|
|
165
|
+
ArrayNodeRetainOp,
|
|
166
|
+
ArrayNodeTreeChangedDeltaOp,
|
|
167
|
+
ArrayNodeTreeChangedRetainOp,
|
|
162
168
|
CodecWriteOptionsBeta,
|
|
163
169
|
ConciseTree,
|
|
164
170
|
ErasedBaseType,
|
|
@@ -175,6 +181,9 @@ export {
|
|
|
175
181
|
JsonCompatibleObject,
|
|
176
182
|
KeyEncodingOptions,
|
|
177
183
|
NodeChangedData,
|
|
184
|
+
NodeChangedDataDelta,
|
|
185
|
+
NodeChangedDataProperties,
|
|
186
|
+
NodeChangedDataTreeDelta,
|
|
178
187
|
ObjectSchemaOptions,
|
|
179
188
|
PopUnion,
|
|
180
189
|
RecordNodeInsertableData,
|
|
@@ -197,6 +206,7 @@ export {
|
|
|
197
206
|
TreeBeta,
|
|
198
207
|
TreeBranch,
|
|
199
208
|
TreeChangeEventsBeta,
|
|
209
|
+
TreeContextBeta,
|
|
200
210
|
TreeEncodingOptions,
|
|
201
211
|
TreeIndex,
|
|
202
212
|
TreeIndexKey,
|
|
@@ -216,6 +226,7 @@ export {
|
|
|
216
226
|
configuredSharedTreeBeta,
|
|
217
227
|
createIdentifierIndex,
|
|
218
228
|
createIndependentTreeBeta,
|
|
229
|
+
createIndependentTreeView,
|
|
219
230
|
createTreeIndex,
|
|
220
231
|
enumFromStrings,
|
|
221
232
|
onAssertionFailure,
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export * from "@fluidframework/tree/alpha";
|
|
|
25
25
|
export { defineDataStore, sharedObjectRegistryFromIterable, } from "@fluidframework/shared-object-base/internal";
|
|
26
26
|
export type { DataStoreOptions, SharedObjectCreator, SharedObjectRegistry, SharedObjectKey, SharedObjectKindAlpha, DataStoreContext, } from "@fluidframework/shared-object-base/internal";
|
|
27
27
|
export type { DataStoreCreator, DataStoreKey, DataStoreKind, DataStoreRegistry, FluidContainer, FluidContainerAttached, FluidContainerWithService, OldestSupportedServiceClientVersion, Registry, RegistryKey, ServiceClient, ServiceOptions, } from "@fluidframework/driver-definitions/internal";
|
|
28
|
-
export { createBasicRegistryKey, lookupInRegistry, } from "@fluidframework/driver-definitions/internal";
|
|
28
|
+
export { createBasicRegistryKey, featureVersion, lookupInRegistry, } from "@fluidframework/driver-definitions/internal";
|
|
29
29
|
import type { SharedObjectKind } from "@fluidframework/shared-object-base";
|
|
30
30
|
import type { ITree } from "@fluidframework/tree";
|
|
31
31
|
import { type SharedTreeOptions } from "@fluidframework/tree/internal";
|
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;;;;;GAKG;AAMH,YAAY,EACX,eAAe,IAAI,mBAAmB,EAAE,0CAA0C;AAClF,uBAAuB,GACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,YAAY,EACX,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,YAAY,EACX,UAAU,EACV,cAAc,EACd,WAAW,EACX,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,MAAM,EACN,4BAA4B,EAC5B,WAAW,EAAE,wBAAwB;AACrC,uBAAuB,EAAE,sBAAsB;AAE/C,SAAS,EACT,UAAU,EACV,UAAU,EACV,GAAG,GAEH,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACX,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,GAChB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,YAAY,EAAE,aAAa,EAAE,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EAAE,iBAAiB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAExF;AAQD,YAAY,EACX,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,aAAa,GACb,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE1E,YAAY,EACX,mBAAmB,EACnB,qBAAqB,EACrB,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,sBAAsB,EACtB,2BAA2B,EAC3B,iCAAiC,EACjC,qBAAqB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,GACxB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,YAAY,EACX,aAAa,EACb,mBAAmB,EACnB,iBAAiB,GACjB,MAAM,6CAA6C,CAAC;AAErD,YAAY,EACX,yBAAyB,EAAE,iCAAiC;AAC5D,aAAa,EAAE,yCAAyC;AACxD,MAAM,GACN,MAAM,6CAA6C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.SharedString = exports.SharedMap = exports.SharedDirectory = exports.
|
|
21
|
+
exports.SharedString = exports.SharedMap = exports.SharedDirectory = exports.SharedTree = exports.lookupInRegistry = exports.featureVersion = exports.createBasicRegistryKey = exports.sharedObjectRegistryFromIterable = exports.defineDataStore = exports.onAssertionFailure = exports.getPresenceAlpha = exports.getPresence = exports.ConnectionState = exports.AttachState = void 0;
|
|
22
|
+
exports.configuredSharedTree = configuredSharedTree;
|
|
22
23
|
var container_definitions_1 = require("@fluidframework/container-definitions");
|
|
23
24
|
Object.defineProperty(exports, "AttachState", { enumerable: true, get: function () { return container_definitions_1.AttachState; } });
|
|
24
25
|
var container_loader_1 = require("@fluidframework/container-loader");
|
|
@@ -47,6 +48,7 @@ Object.defineProperty(exports, "defineDataStore", { enumerable: true, get: funct
|
|
|
47
48
|
Object.defineProperty(exports, "sharedObjectRegistryFromIterable", { enumerable: true, get: function () { return internal_3.sharedObjectRegistryFromIterable; } });
|
|
48
49
|
var internal_4 = require("@fluidframework/driver-definitions/internal");
|
|
49
50
|
Object.defineProperty(exports, "createBasicRegistryKey", { enumerable: true, get: function () { return internal_4.createBasicRegistryKey; } });
|
|
51
|
+
Object.defineProperty(exports, "featureVersion", { enumerable: true, get: function () { return internal_4.featureVersion; } });
|
|
50
52
|
Object.defineProperty(exports, "lookupInRegistry", { enumerable: true, get: function () { return internal_4.lookupInRegistry; } });
|
|
51
53
|
const internal_5 = require("@fluidframework/tree/internal");
|
|
52
54
|
/**
|
|
@@ -88,7 +90,6 @@ exports.SharedTree = internal_5.SharedTree;
|
|
|
88
90
|
function configuredSharedTree(options) {
|
|
89
91
|
return (0, internal_5.configuredSharedTree)(options);
|
|
90
92
|
}
|
|
91
|
-
exports.configuredSharedTree = configuredSharedTree;
|
|
92
93
|
var internal_6 = require("@fluidframework/map/internal");
|
|
93
94
|
Object.defineProperty(exports, "SharedDirectory", { enumerable: true, get: function () { return internal_6.SharedDirectory; } });
|
|
94
95
|
Object.defineProperty(exports, "SharedMap", { enumerable: true, get: function () { return internal_6.SharedMap; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AA6KH,oDAEC;AA9JD,+EAAoE;AAA3D,oHAAA,WAAW,OAAA;AACpB,qEAAmE;AAA1D,mHAAA,eAAe,OAAA;AAcxB,kEAAsF;AAA7E,uGAAA,WAAW,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAyCtC,gEAAyE;AAAhE,8GAAA,kBAAkB,OAAA;AAI3B,mDAAmD;AACnD,4FAA4F;AAC5F;;;;MAIG;AACH,6DAA2C;AAE3C,0EAA0E;AAC1E,+BAA+B;AAC/B,8BAA8B;AAC9B,kEAAkE;AAClE,4BAA4B;AAE5B,iHAAiH;AACjH,wEAGqD;AAFpD,2GAAA,eAAe,OAAA;AACf,4HAAA,gCAAgC,OAAA;AAwBjC,wEAOqD;AANpD,kHAAA,sBAAsB,OAAA;AACtB,0GAAA,cAAc,OAAA;AACd,4GAAA,gBAAgB,OAAA;AAQjB,4DAIuC;AAEvC;;;;;;;;;GASG;AACU,QAAA,UAAU,GAA4B,qBAAkB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAC,OAA0B;IAC9D,OAAO,IAAA,+BAA4B,EAAC,OAAO,CAAC,CAAC;AAC9C,CAAC;AAmBD,yDAA0E;AAAjE,2GAAA,eAAe,OAAA;AAAE,qGAAA,SAAS,OAAA;AA4BnC,8DAAiE;AAAxD,wGAAA,YAAY,OAAA;AAcrB,4BAA4B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Bundles a collection of Fluid Framework client libraries for easy use when paired with a corresponding service client\n * package (e.g. `@fluidframework/azure-client`, `@fluidframework/tinylicious-client`, or `@fluidframework/odsp-client (BETA)`).\n *\n * @packageDocumentation\n */\n\n// ===============================================================\n// #region Public, Beta and Alpha (non-legacy) exports\n// #region Basic re-exports\n\nexport type {\n\tConnectionState as ConnectionStateType, // TODO: deduplicate ConnectionState types\n\tICriticalContainerError,\n} from \"@fluidframework/container-definitions\";\nexport { AttachState } from \"@fluidframework/container-definitions\";\nexport { ConnectionState } from \"@fluidframework/container-loader\";\nexport type {\n\tContainerAttachProps,\n\tContainerSchema,\n\tIConnection,\n\tIFluidContainer,\n\tIFluidContainerEvents,\n\tIMember,\n\tInitialObjects,\n\tIServiceAudience,\n\tIServiceAudienceEvents,\n\tMemberChangedListener,\n\tMyself,\n} from \"@fluidframework/fluid-static\";\nexport { getPresence, getPresenceAlpha } from \"@fluidframework/fluid-static/internal\";\nexport type { SharedObjectKind } from \"@fluidframework/shared-object-base\";\nexport type {\n\tIErrorBase,\n\tIEventProvider,\n\tIDisposable,\n\tIEvent,\n\tIEventThisPlaceHolder,\n\tIErrorEvent,\n\tErasedType,\n\tIFluidHandle,\n\tIFluidLoadable,\n\tITelemetryBaseEvent,\n\tITelemetryBaseLogger,\n\tITelemetryBaseProperties,\n\tIEventTransformer,\n\tIProvideFluidLoadable,\n\tIFluidHandleErased,\n\tLogLevel,\n\tLogLevelConst,\n\tTransformedEvent,\n\tTelemetryBaseEventPropertyType,\n\tTagged,\n\tReplaceIEventThisPlaceHolder,\n\tFluidObject, // Linked in doc comment\n\tFluidObjectProviderKeys, // Used by FluidObject\n\t/* eslint-disable import-x/export -- The event APIs are known to conflict, and this is intended as the exports via `@fluidframework/core-interfaces` are preferred over the deprecated ones from `@fluidframework/tree`. */\n\tListeners,\n\tIsListener,\n\tListenable,\n\tOff,\n\t/* eslint-enable import-x/export */\n} from \"@fluidframework/core-interfaces\";\nexport type {\n\tErasedBaseType,\n\tFluidIterable,\n\tFluidIterableIterator,\n\tFluidMap,\n\tFluidReadonlyArray,\n\tFluidReadonlyMap,\n} from \"@fluidframework/core-interfaces/internal\";\nexport { onAssertionFailure } from \"@fluidframework/core-utils/internal\";\n\nexport type { isFluidHandle } from \"@fluidframework/runtime-utils\";\n\n// Let the tree package manage its own API surface.\n// Note: this only surfaces the `@public, @beta and @alpha` API items from the tree package.\n/* eslint-disable-next-line\n\tno-restricted-syntax,\n\timport-x/no-internal-modules,\n\timport-x/export -- This re-exports all non-conflicting APIs from `@fluidframework/tree`. In cases where * exports conflict with named exports, the named exports take precedence per https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-getexportednames. This does trigger the `import-x/export` lint warning (which is intentionally disabled here). This approach ensures that the non-deprecated versions of the event APIs from `@fluidframework/core-interfaces` (provided as named indirect exports) eclipse the deprecated ones from `@fluidframework/tree`. The preferred versions of the event APIs are those exported via `@fluidframework/core-interfaces`.\n\t*/\nexport * from \"@fluidframework/tree/alpha\";\n\n// End of basic public+beta+alpha exports - nothing above this line should\n// depend on an /internal path.\n// #endregion Basic re-exports\n// ---------------------------------------------------------------\n// #region Custom re-exports\n\n// These are alpha APIs, but this package doesn't have an alpha entry point so they are imported from \"internal\".\nexport {\n\tdefineDataStore,\n\tsharedObjectRegistryFromIterable,\n} from \"@fluidframework/shared-object-base/internal\";\nexport type {\n\tDataStoreOptions,\n\tSharedObjectCreator,\n\tSharedObjectRegistry,\n\tSharedObjectKey,\n\tSharedObjectKindAlpha,\n\tDataStoreContext,\n} from \"@fluidframework/shared-object-base/internal\";\nexport type {\n\tDataStoreCreator,\n\tDataStoreKey,\n\tDataStoreKind,\n\tDataStoreRegistry,\n\tFluidContainer,\n\tFluidContainerAttached,\n\tFluidContainerWithService,\n\tOldestSupportedServiceClientVersion,\n\tRegistry,\n\tRegistryKey,\n\tServiceClient,\n\tServiceOptions,\n} from \"@fluidframework/driver-definitions/internal\";\nexport {\n\tcreateBasicRegistryKey,\n\tfeatureVersion,\n\tlookupInRegistry,\n\t// Due to this currently referencing several existing public types we do not want to stabilize as reexports from here,\n\t// do not reexport getContainerAudience for now.\n\t// getContainerAudience,\n} from \"@fluidframework/driver-definitions/internal\";\n\nimport type { SharedObjectKind } from \"@fluidframework/shared-object-base\";\nimport type { ITree } from \"@fluidframework/tree\";\nimport {\n\tSharedTree as OriginalSharedTree,\n\tconfiguredSharedTree as originalConfiguredSharedTree,\n\ttype SharedTreeOptions,\n} from \"@fluidframework/tree/internal\";\n\n/**\n * A hierarchical data structure for collaboratively editing strongly typed JSON-like trees\n * of objects, arrays, and other data types.\n * @privateRemarks\n * Here we reexport SharedTree, but with the `@legacy` types (`ISharedObjectKind`) removed, just keeping the `SharedObjectKind`.\n * Doing this requires creating this new typed export rather than relying on a reexport directly from the tree package.\n * The tree package itself does not do this because it's API needs to be usable from the encapsulated API which requires `ISharedObjectKind`.\n * This package however is not intended for use by users of the encapsulated API, and therefore it can discard that interface.\n * @public\n */\nexport const SharedTree: SharedObjectKind<ITree> = OriginalSharedTree;\n\n/**\n * {@link SharedTree} but allowing a non-default configuration.\n * @remarks\n * This is useful for debugging and testing.\n * For example, it can be used to opt into extra validation or see if opting out of some optimizations fixes an issue.\n *\n * With great care, and knowledge of the support and stability of the options exposed here,\n * this can also be used to opt into some features early or for performance tuning.\n *\n * @example\n * ```typescript\n * import {\n * \tTreeCompressionStrategy,\n * \tconfiguredSharedTree,\n * \tFormatValidatorBasic,\n * \tForestTypeReference,\n * } from \"fluid-framework/alpha\";\n * const SharedTree = configuredSharedTree({\n * \tforest: ForestTypeReference,\n * \tjsonValidator: FormatValidatorBasic,\n * \ttreeEncodeType: TreeCompressionStrategy.Uncompressed,\n * });\n * ```\n * @alpha\n */\nexport function configuredSharedTree(options: SharedTreeOptions): SharedObjectKind<ITree> {\n\treturn originalConfiguredSharedTree(options);\n}\n\n// #endregion Custom re-exports\n// #endregion\n\n// ===============================================================\n// #region Legacy exports\n\nexport type {\n\tIDirectory,\n\tIDirectoryEvents,\n\tIDirectoryValueChanged,\n\tISharedDirectory,\n\tISharedDirectoryEvents,\n\tISharedMap,\n\tISharedMapEvents,\n\tIValueChanged,\n} from \"@fluidframework/map/internal\";\n\nexport { SharedDirectory, SharedMap } from \"@fluidframework/map/internal\";\n\nexport type {\n\tDeserializeCallback,\n\tInteriorSequencePlace,\n\tIInterval,\n\tIntervalStickiness,\n\tISequenceDeltaRange,\n\tISerializedInterval,\n\tISharedSegmentSequenceEvents,\n\tISharedString,\n\tSequencePlace,\n\tSharedStringSegment,\n\tSide,\n\tISharedSegmentSequence,\n\tISequenceIntervalCollection,\n\tISequenceIntervalCollectionEvents,\n\tSequenceIntervalIndex,\n} from \"@fluidframework/sequence/internal\";\n\nexport type {\n\tIntervalType,\n\tSequenceDeltaEvent,\n\tSequenceEvent,\n\tSequenceInterval,\n\tSequenceMaintenanceEvent,\n} from \"@fluidframework/sequence/internal\";\n\nexport { SharedString } from \"@fluidframework/sequence/internal\";\n\nexport type {\n\tISharedObject,\n\tISharedObjectEvents,\n\tISharedObjectKind,\n} from \"@fluidframework/shared-object-base/internal\";\n\nexport type {\n\tISequencedDocumentMessage, // Leaked via ISharedObjectEvents\n\tIBranchOrigin, // Required for ISequencedDocumentMessage\n\tITrace, // Required for ISequencedDocumentMessage\n} from \"@fluidframework/driver-definitions/internal\";\n\n// #endregion Legacy exports\n"]}
|
package/dist/legacy.d.ts
CHANGED
|
@@ -166,6 +166,12 @@ export {
|
|
|
166
166
|
AnnotatedAllowedTypeUnsafe,
|
|
167
167
|
AnnotatedAllowedTypes,
|
|
168
168
|
AnnotatedAllowedTypesUnsafe,
|
|
169
|
+
ArrayNodeDeltaOp,
|
|
170
|
+
ArrayNodeInsertOp,
|
|
171
|
+
ArrayNodeRemoveOp,
|
|
172
|
+
ArrayNodeRetainOp,
|
|
173
|
+
ArrayNodeTreeChangedDeltaOp,
|
|
174
|
+
ArrayNodeTreeChangedRetainOp,
|
|
169
175
|
CodecWriteOptionsBeta,
|
|
170
176
|
ConciseTree,
|
|
171
177
|
ErasedBaseType,
|
|
@@ -182,6 +188,9 @@ export {
|
|
|
182
188
|
JsonCompatibleObject,
|
|
183
189
|
KeyEncodingOptions,
|
|
184
190
|
NodeChangedData,
|
|
191
|
+
NodeChangedDataDelta,
|
|
192
|
+
NodeChangedDataProperties,
|
|
193
|
+
NodeChangedDataTreeDelta,
|
|
185
194
|
ObjectSchemaOptions,
|
|
186
195
|
PopUnion,
|
|
187
196
|
RecordNodeInsertableData,
|
|
@@ -204,6 +213,7 @@ export {
|
|
|
204
213
|
TreeBeta,
|
|
205
214
|
TreeBranch,
|
|
206
215
|
TreeChangeEventsBeta,
|
|
216
|
+
TreeContextBeta,
|
|
207
217
|
TreeEncodingOptions,
|
|
208
218
|
TreeIndex,
|
|
209
219
|
TreeIndexKey,
|
|
@@ -223,6 +233,7 @@ export {
|
|
|
223
233
|
configuredSharedTreeBeta,
|
|
224
234
|
createIdentifierIndex,
|
|
225
235
|
createIndependentTreeBeta,
|
|
236
|
+
createIndependentTreeView,
|
|
226
237
|
createTreeIndex,
|
|
227
238
|
enumFromStrings,
|
|
228
239
|
onAssertionFailure,
|