fluid-framework 2.3.0-288113 → 2.3.1
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 +84 -0
- package/README.md +4 -0
- package/alpha.d.ts +11 -0
- package/api-extractor/api-extractor-lint-alpha.cjs.json +6 -0
- package/api-extractor/api-extractor-lint-alpha.esm.json +6 -0
- package/api-extractor/api-extractor-lint-beta.cjs.json +6 -0
- package/api-extractor/api-extractor-lint-beta.esm.json +6 -0
- package/api-extractor/api-extractor.current.json +4 -1
- package/api-report/fluid-framework.alpha.api.md +1012 -0
- package/api-report/fluid-framework.beta.api.md +21 -11
- package/api-report/fluid-framework.legacy.alpha.api.md +8 -13
- package/api-report/fluid-framework.legacy.public.api.md +8 -13
- package/api-report/fluid-framework.public.api.md +8 -13
- package/beta.d.ts +11 -0
- package/dist/alpha.d.ts +146 -0
- package/dist/beta.d.ts +129 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +0 -1
- package/dist/public.d.ts +0 -1
- package/lib/alpha.d.ts +146 -0
- package/lib/beta.d.ts +129 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -6
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +0 -1
- package/lib/public.d.ts +0 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +46 -16
- package/src/index.ts +7 -9
|
@@ -563,9 +563,9 @@ type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string
|
|
|
563
563
|
// @public
|
|
564
564
|
type NodeBuilderDataUnsafe<T extends Unenforced<TreeNodeSchema>> = T extends TreeNodeSchema<string, NodeKind, unknown, infer TBuild> ? TBuild : never;
|
|
565
565
|
|
|
566
|
-
// @
|
|
567
|
-
export interface NodeChangedData {
|
|
568
|
-
readonly changedProperties?: ReadonlySet<string>;
|
|
566
|
+
// @beta @sealed
|
|
567
|
+
export interface NodeChangedData<TNode extends TreeNode = TreeNode> {
|
|
568
|
+
readonly changedProperties?: ReadonlySet<TNode extends WithType<string, NodeKind.Object, infer TInfo> ? string & keyof TInfo : string>;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
// @public
|
|
@@ -679,7 +679,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
679
679
|
constructor(scope: TScope);
|
|
680
680
|
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>;
|
|
681
681
|
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>;
|
|
682
|
-
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, {
|
|
682
|
+
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, {
|
|
683
683
|
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
684
684
|
}, false, T>;
|
|
685
685
|
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>;
|
|
@@ -687,7 +687,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
687
687
|
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>;
|
|
688
688
|
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>;
|
|
689
689
|
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>;
|
|
690
|
-
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, {
|
|
690
|
+
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, {
|
|
691
691
|
[Symbol.iterator](): Iterator<[
|
|
692
692
|
string,
|
|
693
693
|
InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>
|
|
@@ -778,12 +778,22 @@ interface TreeArrayNodeBase<out T, in TNew, in TMoveFrom> extends ReadonlyArray<
|
|
|
778
778
|
export interface TreeArrayNodeUnsafe<TAllowedTypes extends Unenforced<ImplicitAllowedTypes>> extends TreeArrayNodeBase<TreeNodeFromImplicitAllowedTypesUnsafe<TAllowedTypes>, InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TAllowedTypes>, TreeArrayNode> {
|
|
779
779
|
}
|
|
780
780
|
|
|
781
|
+
// @beta @sealed
|
|
782
|
+
export const TreeBeta: {
|
|
783
|
+
readonly on: <K extends keyof TreeChangeEventsBeta<TNode>, TNode extends TreeNode>(node: TNode, eventName: K, listener: NoInfer<TreeChangeEventsBeta<TNode>[K]>) => () => void;
|
|
784
|
+
};
|
|
785
|
+
|
|
781
786
|
// @public @sealed
|
|
782
|
-
export interface TreeChangeEvents
|
|
783
|
-
nodeChanged(
|
|
787
|
+
export interface TreeChangeEvents {
|
|
788
|
+
nodeChanged(unstable?: unknown): void;
|
|
784
789
|
treeChanged(): void;
|
|
785
790
|
}
|
|
786
791
|
|
|
792
|
+
// @beta @sealed
|
|
793
|
+
export interface TreeChangeEventsBeta<TNode extends TreeNode = TreeNode> extends TreeChangeEvents {
|
|
794
|
+
nodeChanged: (data: NodeChangedData<TNode> & (TNode extends WithType<string, NodeKind.Map | NodeKind.Object> ? Required<Pick<NodeChangedData<TNode>, "changedProperties">> : unknown)) => void;
|
|
795
|
+
}
|
|
796
|
+
|
|
787
797
|
// @public
|
|
788
798
|
export type TreeFieldFromImplicitField<TSchema extends ImplicitFieldSchema = FieldSchema> = TSchema extends FieldSchema<infer Kind, infer Types> ? ApplyKind<TreeNodeFromImplicitAllowedTypes<Types>, Kind, false> : TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : unknown;
|
|
789
799
|
|
|
@@ -823,7 +833,7 @@ export abstract class TreeNode implements WithType {
|
|
|
823
833
|
export interface TreeNodeApi {
|
|
824
834
|
is<TSchema extends ImplicitAllowedTypes>(value: unknown, schema: TSchema): value is TreeNodeFromImplicitAllowedTypes<TSchema>;
|
|
825
835
|
key(node: TreeNode): string | number;
|
|
826
|
-
on<K extends keyof TreeChangeEvents
|
|
836
|
+
on<K extends keyof TreeChangeEvents>(node: TreeNode, eventName: K, listener: TreeChangeEvents[K]): () => void;
|
|
827
837
|
parent(node: TreeNode): TreeNode | undefined;
|
|
828
838
|
schema(node: TreeNode | TreeLeafValue): TreeNodeSchema;
|
|
829
839
|
shortId(node: TreeNode): number | string | undefined;
|
|
@@ -861,7 +871,7 @@ interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind exte
|
|
|
861
871
|
}
|
|
862
872
|
|
|
863
873
|
// @public
|
|
864
|
-
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object>;
|
|
874
|
+
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object, T>;
|
|
865
875
|
|
|
866
876
|
// @public
|
|
867
877
|
export type TreeObjectNodeUnsafe<T extends Unenforced<RestrictiveReadonlyRecord<string, ImplicitFieldSchema>>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecordUnsafe<T> & WithType<TypeName, NodeKind.Object>;
|
|
@@ -925,10 +935,10 @@ export type ValidateRecursiveSchema<T extends TreeNodeSchemaClass<string, NodeKi
|
|
|
925
935
|
}[T["kind"]]>> = true;
|
|
926
936
|
|
|
927
937
|
// @public @sealed
|
|
928
|
-
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind> {
|
|
938
|
+
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
|
|
929
939
|
// @deprecated
|
|
930
940
|
get [typeNameSymbol](): TName;
|
|
931
|
-
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind>;
|
|
941
|
+
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, unknown, never, boolean, TInfo>;
|
|
932
942
|
}
|
|
933
943
|
|
|
934
944
|
```
|
|
@@ -869,11 +869,6 @@ type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string
|
|
|
869
869
|
// @public
|
|
870
870
|
type NodeBuilderDataUnsafe<T extends Unenforced<TreeNodeSchema>> = T extends TreeNodeSchema<string, NodeKind, unknown, infer TBuild> ? TBuild : never;
|
|
871
871
|
|
|
872
|
-
// @public
|
|
873
|
-
export interface NodeChangedData {
|
|
874
|
-
readonly changedProperties?: ReadonlySet<string>;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
872
|
// @public
|
|
878
873
|
export type NodeFromSchema<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, infer TNode> ? TNode : never;
|
|
879
874
|
|
|
@@ -985,7 +980,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
985
980
|
constructor(scope: TScope);
|
|
986
981
|
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>;
|
|
987
982
|
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>;
|
|
988
|
-
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, {
|
|
983
|
+
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, {
|
|
989
984
|
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
990
985
|
}, false, T>;
|
|
991
986
|
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>;
|
|
@@ -993,7 +988,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
993
988
|
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>;
|
|
994
989
|
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>;
|
|
995
990
|
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>;
|
|
996
|
-
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, {
|
|
991
|
+
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, {
|
|
997
992
|
[Symbol.iterator](): Iterator<[
|
|
998
993
|
string,
|
|
999
994
|
InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>
|
|
@@ -1176,8 +1171,8 @@ export interface TreeArrayNodeUnsafe<TAllowedTypes extends Unenforced<ImplicitAl
|
|
|
1176
1171
|
}
|
|
1177
1172
|
|
|
1178
1173
|
// @public @sealed
|
|
1179
|
-
export interface TreeChangeEvents
|
|
1180
|
-
nodeChanged(
|
|
1174
|
+
export interface TreeChangeEvents {
|
|
1175
|
+
nodeChanged(unstable?: unknown): void;
|
|
1181
1176
|
treeChanged(): void;
|
|
1182
1177
|
}
|
|
1183
1178
|
|
|
@@ -1220,7 +1215,7 @@ export abstract class TreeNode implements WithType {
|
|
|
1220
1215
|
export interface TreeNodeApi {
|
|
1221
1216
|
is<TSchema extends ImplicitAllowedTypes>(value: unknown, schema: TSchema): value is TreeNodeFromImplicitAllowedTypes<TSchema>;
|
|
1222
1217
|
key(node: TreeNode): string | number;
|
|
1223
|
-
on<K extends keyof TreeChangeEvents
|
|
1218
|
+
on<K extends keyof TreeChangeEvents>(node: TreeNode, eventName: K, listener: TreeChangeEvents[K]): () => void;
|
|
1224
1219
|
parent(node: TreeNode): TreeNode | undefined;
|
|
1225
1220
|
schema(node: TreeNode | TreeLeafValue): TreeNodeSchema;
|
|
1226
1221
|
shortId(node: TreeNode): number | string | undefined;
|
|
@@ -1258,7 +1253,7 @@ interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind exte
|
|
|
1258
1253
|
}
|
|
1259
1254
|
|
|
1260
1255
|
// @public
|
|
1261
|
-
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object>;
|
|
1256
|
+
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object, T>;
|
|
1262
1257
|
|
|
1263
1258
|
// @public
|
|
1264
1259
|
export type TreeObjectNodeUnsafe<T extends Unenforced<RestrictiveReadonlyRecord<string, ImplicitFieldSchema>>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecordUnsafe<T> & WithType<TypeName, NodeKind.Object>;
|
|
@@ -1322,10 +1317,10 @@ export type ValidateRecursiveSchema<T extends TreeNodeSchemaClass<string, NodeKi
|
|
|
1322
1317
|
}[T["kind"]]>> = true;
|
|
1323
1318
|
|
|
1324
1319
|
// @public @sealed
|
|
1325
|
-
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind> {
|
|
1320
|
+
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
|
|
1326
1321
|
// @deprecated
|
|
1327
1322
|
get [typeNameSymbol](): TName;
|
|
1328
|
-
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind>;
|
|
1323
|
+
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, unknown, never, boolean, TInfo>;
|
|
1329
1324
|
}
|
|
1330
1325
|
|
|
1331
1326
|
```
|
|
@@ -599,11 +599,6 @@ type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string
|
|
|
599
599
|
// @public
|
|
600
600
|
type NodeBuilderDataUnsafe<T extends Unenforced<TreeNodeSchema>> = T extends TreeNodeSchema<string, NodeKind, unknown, infer TBuild> ? TBuild : never;
|
|
601
601
|
|
|
602
|
-
// @public
|
|
603
|
-
export interface NodeChangedData {
|
|
604
|
-
readonly changedProperties?: ReadonlySet<string>;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
602
|
// @public
|
|
608
603
|
export type NodeFromSchema<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, infer TNode> ? TNode : never;
|
|
609
604
|
|
|
@@ -715,7 +710,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
715
710
|
constructor(scope: TScope);
|
|
716
711
|
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>;
|
|
717
712
|
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>;
|
|
718
|
-
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, {
|
|
713
|
+
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, {
|
|
719
714
|
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
720
715
|
}, false, T>;
|
|
721
716
|
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>;
|
|
@@ -723,7 +718,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
723
718
|
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>;
|
|
724
719
|
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>;
|
|
725
720
|
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>;
|
|
726
|
-
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, {
|
|
721
|
+
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, {
|
|
727
722
|
[Symbol.iterator](): Iterator<[
|
|
728
723
|
string,
|
|
729
724
|
InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>
|
|
@@ -819,8 +814,8 @@ export interface TreeArrayNodeUnsafe<TAllowedTypes extends Unenforced<ImplicitAl
|
|
|
819
814
|
}
|
|
820
815
|
|
|
821
816
|
// @public @sealed
|
|
822
|
-
export interface TreeChangeEvents
|
|
823
|
-
nodeChanged(
|
|
817
|
+
export interface TreeChangeEvents {
|
|
818
|
+
nodeChanged(unstable?: unknown): void;
|
|
824
819
|
treeChanged(): void;
|
|
825
820
|
}
|
|
826
821
|
|
|
@@ -863,7 +858,7 @@ export abstract class TreeNode implements WithType {
|
|
|
863
858
|
export interface TreeNodeApi {
|
|
864
859
|
is<TSchema extends ImplicitAllowedTypes>(value: unknown, schema: TSchema): value is TreeNodeFromImplicitAllowedTypes<TSchema>;
|
|
865
860
|
key(node: TreeNode): string | number;
|
|
866
|
-
on<K extends keyof TreeChangeEvents
|
|
861
|
+
on<K extends keyof TreeChangeEvents>(node: TreeNode, eventName: K, listener: TreeChangeEvents[K]): () => void;
|
|
867
862
|
parent(node: TreeNode): TreeNode | undefined;
|
|
868
863
|
schema(node: TreeNode | TreeLeafValue): TreeNodeSchema;
|
|
869
864
|
shortId(node: TreeNode): number | string | undefined;
|
|
@@ -901,7 +896,7 @@ interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind exte
|
|
|
901
896
|
}
|
|
902
897
|
|
|
903
898
|
// @public
|
|
904
|
-
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object>;
|
|
899
|
+
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object, T>;
|
|
905
900
|
|
|
906
901
|
// @public
|
|
907
902
|
export type TreeObjectNodeUnsafe<T extends Unenforced<RestrictiveReadonlyRecord<string, ImplicitFieldSchema>>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecordUnsafe<T> & WithType<TypeName, NodeKind.Object>;
|
|
@@ -965,10 +960,10 @@ export type ValidateRecursiveSchema<T extends TreeNodeSchemaClass<string, NodeKi
|
|
|
965
960
|
}[T["kind"]]>> = true;
|
|
966
961
|
|
|
967
962
|
// @public @sealed
|
|
968
|
-
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind> {
|
|
963
|
+
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
|
|
969
964
|
// @deprecated
|
|
970
965
|
get [typeNameSymbol](): TName;
|
|
971
|
-
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind>;
|
|
966
|
+
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, unknown, never, boolean, TInfo>;
|
|
972
967
|
}
|
|
973
968
|
|
|
974
969
|
```
|
|
@@ -563,11 +563,6 @@ type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string
|
|
|
563
563
|
// @public
|
|
564
564
|
type NodeBuilderDataUnsafe<T extends Unenforced<TreeNodeSchema>> = T extends TreeNodeSchema<string, NodeKind, unknown, infer TBuild> ? TBuild : never;
|
|
565
565
|
|
|
566
|
-
// @public
|
|
567
|
-
export interface NodeChangedData {
|
|
568
|
-
readonly changedProperties?: ReadonlySet<string>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
566
|
// @public
|
|
572
567
|
export type NodeFromSchema<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, infer TNode> ? TNode : never;
|
|
573
568
|
|
|
@@ -679,7 +674,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
679
674
|
constructor(scope: TScope);
|
|
680
675
|
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>;
|
|
681
676
|
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>;
|
|
682
|
-
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, {
|
|
677
|
+
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, {
|
|
683
678
|
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>;
|
|
684
679
|
}, false, T>;
|
|
685
680
|
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>;
|
|
@@ -687,7 +682,7 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
|
|
|
687
682
|
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>;
|
|
688
683
|
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchema<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>;
|
|
689
684
|
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>;
|
|
690
|
-
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, {
|
|
685
|
+
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, {
|
|
691
686
|
[Symbol.iterator](): Iterator<[
|
|
692
687
|
string,
|
|
693
688
|
InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>
|
|
@@ -779,8 +774,8 @@ export interface TreeArrayNodeUnsafe<TAllowedTypes extends Unenforced<ImplicitAl
|
|
|
779
774
|
}
|
|
780
775
|
|
|
781
776
|
// @public @sealed
|
|
782
|
-
export interface TreeChangeEvents
|
|
783
|
-
nodeChanged(
|
|
777
|
+
export interface TreeChangeEvents {
|
|
778
|
+
nodeChanged(unstable?: unknown): void;
|
|
784
779
|
treeChanged(): void;
|
|
785
780
|
}
|
|
786
781
|
|
|
@@ -823,7 +818,7 @@ export abstract class TreeNode implements WithType {
|
|
|
823
818
|
export interface TreeNodeApi {
|
|
824
819
|
is<TSchema extends ImplicitAllowedTypes>(value: unknown, schema: TSchema): value is TreeNodeFromImplicitAllowedTypes<TSchema>;
|
|
825
820
|
key(node: TreeNode): string | number;
|
|
826
|
-
on<K extends keyof TreeChangeEvents
|
|
821
|
+
on<K extends keyof TreeChangeEvents>(node: TreeNode, eventName: K, listener: TreeChangeEvents[K]): () => void;
|
|
827
822
|
parent(node: TreeNode): TreeNode | undefined;
|
|
828
823
|
schema(node: TreeNode | TreeLeafValue): TreeNodeSchema;
|
|
829
824
|
shortId(node: TreeNode): number | string | undefined;
|
|
@@ -861,7 +856,7 @@ interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind exte
|
|
|
861
856
|
}
|
|
862
857
|
|
|
863
858
|
// @public
|
|
864
|
-
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object>;
|
|
859
|
+
export type TreeObjectNode<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecord<T> & WithType<TypeName, NodeKind.Object, T>;
|
|
865
860
|
|
|
866
861
|
// @public
|
|
867
862
|
export type TreeObjectNodeUnsafe<T extends Unenforced<RestrictiveReadonlyRecord<string, ImplicitFieldSchema>>, TypeName extends string = string> = TreeNode & ObjectFromSchemaRecordUnsafe<T> & WithType<TypeName, NodeKind.Object>;
|
|
@@ -925,10 +920,10 @@ export type ValidateRecursiveSchema<T extends TreeNodeSchemaClass<string, NodeKi
|
|
|
925
920
|
}[T["kind"]]>> = true;
|
|
926
921
|
|
|
927
922
|
// @public @sealed
|
|
928
|
-
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind> {
|
|
923
|
+
export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
|
|
929
924
|
// @deprecated
|
|
930
925
|
get [typeNameSymbol](): TName;
|
|
931
|
-
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind>;
|
|
926
|
+
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, unknown, never, boolean, TInfo>;
|
|
932
927
|
}
|
|
933
928
|
|
|
934
929
|
```
|
package/beta.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export * from "./lib/beta.js";
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Bundles a collection of Fluid Framework client libraries for easy use when paired with a corresponding service client
|
|
13
|
+
* package (e.g. `@fluidframework/azure-client`, `@fluidframework/tinylicious-client`, or `@fluidframework/odsp-client (BETA)`).
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
// Unrestricted APIs
|
|
20
|
+
InternalTypes,
|
|
21
|
+
|
|
22
|
+
// @public APIs
|
|
23
|
+
AllowedTypes,
|
|
24
|
+
AttachState,
|
|
25
|
+
CommitKind,
|
|
26
|
+
CommitMetadata,
|
|
27
|
+
ConnectionState,
|
|
28
|
+
ConnectionStateType,
|
|
29
|
+
ContainerAttachProps,
|
|
30
|
+
ContainerSchema,
|
|
31
|
+
ErasedType,
|
|
32
|
+
FieldKind,
|
|
33
|
+
FieldProps,
|
|
34
|
+
FieldSchema,
|
|
35
|
+
FieldSchemaUnsafe,
|
|
36
|
+
FluidObject,
|
|
37
|
+
FluidObjectProviderKeys,
|
|
38
|
+
IConnection,
|
|
39
|
+
ICriticalContainerError,
|
|
40
|
+
IDisposable,
|
|
41
|
+
IErrorBase,
|
|
42
|
+
IErrorEvent,
|
|
43
|
+
IEvent,
|
|
44
|
+
IEventProvider,
|
|
45
|
+
IEventThisPlaceHolder,
|
|
46
|
+
IEventTransformer,
|
|
47
|
+
IFluidContainer,
|
|
48
|
+
IFluidContainerEvents,
|
|
49
|
+
IFluidHandle,
|
|
50
|
+
IFluidHandleErased,
|
|
51
|
+
IFluidLoadable,
|
|
52
|
+
IMember,
|
|
53
|
+
IProvideFluidLoadable,
|
|
54
|
+
IServiceAudience,
|
|
55
|
+
IServiceAudienceEvents,
|
|
56
|
+
ITelemetryBaseProperties,
|
|
57
|
+
ITree,
|
|
58
|
+
ITreeConfigurationOptions,
|
|
59
|
+
ITreeViewConfiguration,
|
|
60
|
+
ImplicitAllowedTypes,
|
|
61
|
+
ImplicitFieldSchema,
|
|
62
|
+
InitialObjects,
|
|
63
|
+
InsertableObjectFromSchemaRecordUnsafe,
|
|
64
|
+
InsertableTreeFieldFromImplicitField,
|
|
65
|
+
InsertableTreeFieldFromImplicitFieldUnsafe,
|
|
66
|
+
InsertableTreeNodeFromImplicitAllowedTypes,
|
|
67
|
+
InsertableTreeNodeFromImplicitAllowedTypesUnsafe,
|
|
68
|
+
InsertableTypedNode,
|
|
69
|
+
InternalTreeNode,
|
|
70
|
+
IsListener,
|
|
71
|
+
IterableTreeArrayContent,
|
|
72
|
+
LazyItem,
|
|
73
|
+
Listenable,
|
|
74
|
+
Listeners,
|
|
75
|
+
MakeNominal,
|
|
76
|
+
MapNodeInsertableData,
|
|
77
|
+
MemberChangedListener,
|
|
78
|
+
Myself,
|
|
79
|
+
NodeFromSchema,
|
|
80
|
+
NodeInDocumentConstraint,
|
|
81
|
+
NodeKind,
|
|
82
|
+
Off,
|
|
83
|
+
ReplaceIEventThisPlaceHolder,
|
|
84
|
+
RestrictiveReadonlyRecord,
|
|
85
|
+
Revertible,
|
|
86
|
+
RevertibleFactory,
|
|
87
|
+
RevertibleStatus,
|
|
88
|
+
RunTransaction,
|
|
89
|
+
SchemaCompatibilityStatus,
|
|
90
|
+
SchemaFactory,
|
|
91
|
+
SharedObjectKind,
|
|
92
|
+
SharedTree,
|
|
93
|
+
Tagged,
|
|
94
|
+
TelemetryBaseEventPropertyType,
|
|
95
|
+
TransactionConstraint,
|
|
96
|
+
TransformedEvent,
|
|
97
|
+
Tree,
|
|
98
|
+
TreeArrayNode,
|
|
99
|
+
TreeArrayNodeUnsafe,
|
|
100
|
+
TreeChangeEvents,
|
|
101
|
+
TreeFieldFromImplicitField,
|
|
102
|
+
TreeLeafValue,
|
|
103
|
+
TreeMapNode,
|
|
104
|
+
TreeMapNodeUnsafe,
|
|
105
|
+
TreeNode,
|
|
106
|
+
TreeNodeApi,
|
|
107
|
+
TreeNodeFromImplicitAllowedTypes,
|
|
108
|
+
TreeNodeSchema,
|
|
109
|
+
TreeNodeSchemaClass,
|
|
110
|
+
TreeNodeSchemaCore,
|
|
111
|
+
TreeObjectNode,
|
|
112
|
+
TreeObjectNodeUnsafe,
|
|
113
|
+
TreeStatus,
|
|
114
|
+
TreeView,
|
|
115
|
+
TreeViewConfiguration,
|
|
116
|
+
TreeViewEvents,
|
|
117
|
+
Unenforced,
|
|
118
|
+
Unhydrated,
|
|
119
|
+
ValidateRecursiveSchema,
|
|
120
|
+
WithType,
|
|
121
|
+
isFluidHandle,
|
|
122
|
+
rollback,
|
|
123
|
+
typeSchemaSymbol,
|
|
124
|
+
|
|
125
|
+
// @beta APIs
|
|
126
|
+
NodeChangedData,
|
|
127
|
+
TreeBeta,
|
|
128
|
+
TreeChangeEventsBeta,
|
|
129
|
+
|
|
130
|
+
// @alpha APIs
|
|
131
|
+
FixRecursiveArraySchema,
|
|
132
|
+
JsonArrayNodeSchema,
|
|
133
|
+
JsonFieldSchema,
|
|
134
|
+
JsonLeafNodeSchema,
|
|
135
|
+
JsonLeafSchemaType,
|
|
136
|
+
JsonMapNodeSchema,
|
|
137
|
+
JsonNodeSchema,
|
|
138
|
+
JsonNodeSchemaBase,
|
|
139
|
+
JsonObjectNodeSchema,
|
|
140
|
+
JsonRefPath,
|
|
141
|
+
JsonSchemaId,
|
|
142
|
+
JsonSchemaRef,
|
|
143
|
+
JsonSchemaType,
|
|
144
|
+
JsonTreeSchema,
|
|
145
|
+
getJsonSchema
|
|
146
|
+
} from "./index.js";
|
package/dist/beta.d.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Bundles a collection of Fluid Framework client libraries for easy use when paired with a corresponding service client
|
|
13
|
+
* package (e.g. `@fluidframework/azure-client`, `@fluidframework/tinylicious-client`, or `@fluidframework/odsp-client (BETA)`).
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
// Unrestricted APIs
|
|
20
|
+
InternalTypes,
|
|
21
|
+
|
|
22
|
+
// @public APIs
|
|
23
|
+
AllowedTypes,
|
|
24
|
+
AttachState,
|
|
25
|
+
CommitKind,
|
|
26
|
+
CommitMetadata,
|
|
27
|
+
ConnectionState,
|
|
28
|
+
ConnectionStateType,
|
|
29
|
+
ContainerAttachProps,
|
|
30
|
+
ContainerSchema,
|
|
31
|
+
ErasedType,
|
|
32
|
+
FieldKind,
|
|
33
|
+
FieldProps,
|
|
34
|
+
FieldSchema,
|
|
35
|
+
FieldSchemaUnsafe,
|
|
36
|
+
FluidObject,
|
|
37
|
+
FluidObjectProviderKeys,
|
|
38
|
+
IConnection,
|
|
39
|
+
ICriticalContainerError,
|
|
40
|
+
IDisposable,
|
|
41
|
+
IErrorBase,
|
|
42
|
+
IErrorEvent,
|
|
43
|
+
IEvent,
|
|
44
|
+
IEventProvider,
|
|
45
|
+
IEventThisPlaceHolder,
|
|
46
|
+
IEventTransformer,
|
|
47
|
+
IFluidContainer,
|
|
48
|
+
IFluidContainerEvents,
|
|
49
|
+
IFluidHandle,
|
|
50
|
+
IFluidHandleErased,
|
|
51
|
+
IFluidLoadable,
|
|
52
|
+
IMember,
|
|
53
|
+
IProvideFluidLoadable,
|
|
54
|
+
IServiceAudience,
|
|
55
|
+
IServiceAudienceEvents,
|
|
56
|
+
ITelemetryBaseProperties,
|
|
57
|
+
ITree,
|
|
58
|
+
ITreeConfigurationOptions,
|
|
59
|
+
ITreeViewConfiguration,
|
|
60
|
+
ImplicitAllowedTypes,
|
|
61
|
+
ImplicitFieldSchema,
|
|
62
|
+
InitialObjects,
|
|
63
|
+
InsertableObjectFromSchemaRecordUnsafe,
|
|
64
|
+
InsertableTreeFieldFromImplicitField,
|
|
65
|
+
InsertableTreeFieldFromImplicitFieldUnsafe,
|
|
66
|
+
InsertableTreeNodeFromImplicitAllowedTypes,
|
|
67
|
+
InsertableTreeNodeFromImplicitAllowedTypesUnsafe,
|
|
68
|
+
InsertableTypedNode,
|
|
69
|
+
InternalTreeNode,
|
|
70
|
+
IsListener,
|
|
71
|
+
IterableTreeArrayContent,
|
|
72
|
+
LazyItem,
|
|
73
|
+
Listenable,
|
|
74
|
+
Listeners,
|
|
75
|
+
MakeNominal,
|
|
76
|
+
MapNodeInsertableData,
|
|
77
|
+
MemberChangedListener,
|
|
78
|
+
Myself,
|
|
79
|
+
NodeFromSchema,
|
|
80
|
+
NodeInDocumentConstraint,
|
|
81
|
+
NodeKind,
|
|
82
|
+
Off,
|
|
83
|
+
ReplaceIEventThisPlaceHolder,
|
|
84
|
+
RestrictiveReadonlyRecord,
|
|
85
|
+
Revertible,
|
|
86
|
+
RevertibleFactory,
|
|
87
|
+
RevertibleStatus,
|
|
88
|
+
RunTransaction,
|
|
89
|
+
SchemaCompatibilityStatus,
|
|
90
|
+
SchemaFactory,
|
|
91
|
+
SharedObjectKind,
|
|
92
|
+
SharedTree,
|
|
93
|
+
Tagged,
|
|
94
|
+
TelemetryBaseEventPropertyType,
|
|
95
|
+
TransactionConstraint,
|
|
96
|
+
TransformedEvent,
|
|
97
|
+
Tree,
|
|
98
|
+
TreeArrayNode,
|
|
99
|
+
TreeArrayNodeUnsafe,
|
|
100
|
+
TreeChangeEvents,
|
|
101
|
+
TreeFieldFromImplicitField,
|
|
102
|
+
TreeLeafValue,
|
|
103
|
+
TreeMapNode,
|
|
104
|
+
TreeMapNodeUnsafe,
|
|
105
|
+
TreeNode,
|
|
106
|
+
TreeNodeApi,
|
|
107
|
+
TreeNodeFromImplicitAllowedTypes,
|
|
108
|
+
TreeNodeSchema,
|
|
109
|
+
TreeNodeSchemaClass,
|
|
110
|
+
TreeNodeSchemaCore,
|
|
111
|
+
TreeObjectNode,
|
|
112
|
+
TreeObjectNodeUnsafe,
|
|
113
|
+
TreeStatus,
|
|
114
|
+
TreeView,
|
|
115
|
+
TreeViewConfiguration,
|
|
116
|
+
TreeViewEvents,
|
|
117
|
+
Unenforced,
|
|
118
|
+
Unhydrated,
|
|
119
|
+
ValidateRecursiveSchema,
|
|
120
|
+
WithType,
|
|
121
|
+
isFluidHandle,
|
|
122
|
+
rollback,
|
|
123
|
+
typeSchemaSymbol,
|
|
124
|
+
|
|
125
|
+
// @beta APIs
|
|
126
|
+
NodeChangedData,
|
|
127
|
+
TreeBeta,
|
|
128
|
+
TreeChangeEventsBeta
|
|
129
|
+
} from "./index.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type { SharedObjectKind } from "@fluidframework/shared-object-base";
|
|
|
17
17
|
export type { IErrorBase, IEventProvider, IDisposable, IEvent, IEventThisPlaceHolder, IErrorEvent, ErasedType, IFluidHandle, IFluidLoadable, ITelemetryBaseProperties, IEventTransformer, IProvideFluidLoadable, IFluidHandleErased, TransformedEvent, TelemetryBaseEventPropertyType, Tagged, ReplaceIEventThisPlaceHolder, FluidObject, // Linked in doc comment
|
|
18
18
|
FluidObjectProviderKeys, } from "@fluidframework/core-interfaces";
|
|
19
19
|
export type { isFluidHandle } from "@fluidframework/runtime-utils";
|
|
20
|
-
export * from "@fluidframework/tree";
|
|
20
|
+
export * from "@fluidframework/tree/alpha";
|
|
21
21
|
import type { SharedObjectKind } from "@fluidframework/shared-object-base";
|
|
22
22
|
import type { ITree } from "@fluidframework/tree";
|
|
23
23
|
/**
|
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,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,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,8BAA8B,EAC9B,MAAM,EACN,4BAA4B,EAC5B,WAAW,EAAE,wBAAwB;AACrC,uBAAuB,GACvB,MAAM,iCAAiC,CAAC;AAEzC,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
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,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,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,8BAA8B,EAC9B,MAAM,EACN,4BAA4B,EAC5B,WAAW,EAAE,wBAAwB;AACrC,uBAAuB,GACvB,MAAM,iCAAiC,CAAC;AAEzC,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAKnE,cAAc,4BAA4B,CAAC;AAQ3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,KAAK,CAAsB,CAAC;AAQtE,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,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,4BAA4B,EAC5B,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,sBAAsB,GACtB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,GACZ,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EACX,aAAa,EACb,mBAAmB,GACnB,MAAM,6CAA6C,CAAC;AAErD,YAAY,EACX,yBAAyB,EAAE,iCAAiC;AAC5D,aAAa,EAAE,yCAAyC;AACxD,MAAM,GACN,MAAM,6CAA6C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,12 +23,10 @@ var container_definitions_1 = require("@fluidframework/container-definitions");
|
|
|
23
23
|
Object.defineProperty(exports, "AttachState", { enumerable: true, get: function () { return container_definitions_1.AttachState; } });
|
|
24
24
|
var container_loader_1 = require("@fluidframework/container-loader");
|
|
25
25
|
Object.defineProperty(exports, "ConnectionState", { enumerable: true, get: function () { return container_loader_1.ConnectionState; } });
|
|
26
|
-
// Let the tree package manage its own API surface
|
|
27
|
-
// Note: this only surfaces the `@public` API items from the tree package.
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line no-restricted-syntax, import/export
|
|
31
|
-
__exportStar(require("@fluidframework/tree"), exports);
|
|
26
|
+
// Let the tree package manage its own API surface.
|
|
27
|
+
// Note: this only surfaces the `@public, @beta and @alpha` API items from the tree package.
|
|
28
|
+
// eslint-disable-next-line no-restricted-syntax, import/no-internal-modules
|
|
29
|
+
__exportStar(require("@fluidframework/tree/alpha"), exports);
|
|
32
30
|
const internal_1 = require("@fluidframework/tree/internal");
|
|
33
31
|
/**
|
|
34
32
|
* A hierarchical data structure for collaboratively editing strongly typed JSON-like trees
|