fluid-framework 2.60.0 → 2.61.0-355054

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/alpha.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
- export * from "./lib/alpha.js";
11
+ export * from "lib/alpha.js";
@@ -2000,7 +2000,7 @@ export type UnsafeUnknownSchema = typeof UnsafeUnknownSchema;
2000
2000
  export type ValidateRecursiveSchema<T extends ValidateRecursiveSchemaTemplate<T>> = true;
2001
2001
 
2002
2002
  // @public @system
2003
- export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchema> = TreeNodeSchema<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
2003
+ export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchemaClass> = TreeNodeSchemaClass<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
2004
2004
  [NodeKind.Object]: T["info"] extends RestrictiveStringRecord<ImplicitFieldSchema> ? InsertableObjectFromSchemaRecord<T["info"]> : unknown;
2005
2005
  [NodeKind.Array]: T["info"] extends ImplicitAllowedTypes ? Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>> : unknown;
2006
2006
  [NodeKind.Map]: T["info"] extends ImplicitAllowedTypes ? Iterable<[string, InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>]> : unknown;
@@ -1075,7 +1075,7 @@ export type UnionToTuple<Union, A extends unknown[] = [], First = PopUnion<Union
1075
1075
  export type ValidateRecursiveSchema<T extends ValidateRecursiveSchemaTemplate<T>> = true;
1076
1076
 
1077
1077
  // @public @system
1078
- export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchema> = TreeNodeSchema<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1078
+ export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchemaClass> = TreeNodeSchemaClass<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1079
1079
  [NodeKind.Object]: T["info"] extends RestrictiveStringRecord<ImplicitFieldSchema> ? InsertableObjectFromSchemaRecord<T["info"]> : unknown;
1080
1080
  [NodeKind.Array]: T["info"] extends ImplicitAllowedTypes ? Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>> : unknown;
1081
1081
  [NodeKind.Map]: T["info"] extends ImplicitAllowedTypes ? Iterable<[string, InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>]> : unknown;
@@ -4,6 +4,17 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ // @beta
8
+ export function adaptEnum<TScope extends string, const TEnum extends Record<string, string | number>>(factory: SchemaFactory<TScope>, members: TEnum): (<TValue extends TEnum[keyof TEnum]>(value: TValue) => TValue extends unknown ? TreeNode & {
9
+ readonly value: TValue;
10
+ } : never) & { readonly [Property in keyof TEnum]: TreeNodeSchemaClass<ScopedSchemaName<TScope, TEnum[Property]>, NodeKind.Object, TreeNode & {
11
+ readonly value: TEnum[Property];
12
+ }, Record<string, never>, true, Record<string, never>, undefined>; } & {
13
+ readonly schema: UnionToTuple<{ readonly [Property in keyof TEnum]: TreeNodeSchemaClass<ScopedSchemaName<TScope, TEnum[Property]>, NodeKind.Object, TreeNode & {
14
+ readonly value: TEnum[Property];
15
+ }, Record<string, never>, true, Record<string, never>, undefined>; }[keyof TEnum]>;
16
+ };
17
+
7
18
  // @public @system
8
19
  export type AllowedTypes = readonly LazyItem<TreeNodeSchema>[];
9
20
 
@@ -78,6 +89,17 @@ interface DefaultProvider extends ErasedType<"@fluidframework/tree.FieldProvider
78
89
  // @beta @legacy (undocumented)
79
90
  export type DeserializeCallback = (properties: PropertySet) => void;
80
91
 
92
+ // @beta
93
+ export function enumFromStrings<TScope extends string, const Members extends readonly string[]>(factory: SchemaFactory<TScope>, members: Members): (<TValue extends Members[number]>(value: TValue) => TValue extends unknown ? TreeNode & {
94
+ readonly value: TValue;
95
+ } : never) & { [Index in Extract<keyof Members, `${number}`> extends `${infer N extends number}` ? N : never as Members[Index]]: TreeNodeSchemaClass<ScopedSchemaName<TScope, Members[Index]>, NodeKind.Object, TreeNode & {
96
+ readonly value: Members[Index];
97
+ }, Record<string, never>, true, Record<string, never>, undefined>; } & {
98
+ readonly schema: UnionToTuple<Members[number] extends unknown ? { [Index in Extract<keyof Members, `${number}`> extends `${infer N extends number}` ? N : never as Members[Index]]: TreeNodeSchemaClass<ScopedSchemaName<TScope, Members[Index]>, NodeKind.Object, TreeNode & {
99
+ readonly value: Members[Index];
100
+ }, Record<string, never>, true, Record<string, never>, undefined>; }[Members[number]] : never>;
101
+ };
102
+
81
103
  // @public @sealed
82
104
  export abstract class ErasedType<out Name = unknown> {
83
105
  static [Symbol.hasInstance](value: never): value is never;
@@ -146,6 +168,15 @@ export type FluidObject<T = unknown> = {
146
168
  // @public
147
169
  export type FluidObjectProviderKeys<T, TProp extends keyof T = keyof T> = string extends TProp ? never : number extends TProp ? never : TProp extends keyof Required<T>[TProp] ? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] ? TProp : never : never;
148
170
 
171
+ // @beta @input
172
+ export interface ForestOptions {
173
+ readonly forest?: ForestType;
174
+ }
175
+
176
+ // @beta @sealed
177
+ export interface ForestType extends ErasedType<"ForestType"> {
178
+ }
179
+
149
180
  // @beta @legacy
150
181
  export interface IBranchOrigin {
151
182
  id: string;
@@ -830,6 +861,11 @@ export type Myself<M extends IMember = IMember> = M & {
830
861
  // @public @system
831
862
  type NodeBuilderData<T extends TreeNodeSchemaCore<string, NodeKind, boolean>> = T extends TreeNodeSchemaCore<string, NodeKind, boolean, unknown, infer TBuild> ? TBuild : never;
832
863
 
864
+ // @beta @sealed
865
+ export interface NodeChangedData<TNode extends TreeNode = TreeNode> {
866
+ readonly changedProperties?: ReadonlySet<TNode extends WithType<string, NodeKind.Object, infer TInfo> ? string & keyof TInfo : string>;
867
+ }
868
+
833
869
  // @public
834
870
  export type NodeFromSchema<T extends TreeNodeSchema> = T extends TreeNodeSchemaClass<string, NodeKind, infer TNode> ? TNode : T extends TreeNodeSchemaNonClass<string, NodeKind, infer TNode> ? TNode : never;
835
871
 
@@ -869,6 +905,9 @@ export type ObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFie
869
905
  // @public
870
906
  export type Off = () => void;
871
907
 
908
+ // @beta @system
909
+ export type PopUnion<Union, AsOverloadedFunction = UnionToIntersection<Union extends unknown ? (f: Union) => void : never>> = AsOverloadedFunction extends (a: infer First) => void ? First : never;
910
+
872
911
  // @public @sealed @system
873
912
  export interface ReadonlyArrayNode<out T = TreeNode | TreeLeafValue> extends ReadonlyArray<T>, Awaited<TreeNode & WithType<string, NodeKind.Array>> {
874
913
  }
@@ -981,6 +1020,11 @@ export class SchemaFactory<out TScope extends string | undefined = string | unde
981
1020
  static readonly string: LeafSchema<"string", string>;
982
1021
  }
983
1022
 
1023
+ // @beta
1024
+ export class SchemaFactoryBeta<out TScope extends string | undefined = string | undefined, TName extends number | string = string> extends SchemaFactory<TScope, TName> {
1025
+ scopedFactory<const T extends TName, TNameInner extends number | string = string>(name: T): SchemaFactoryBeta<ScopedSchemaName<TScope, T>, TNameInner>;
1026
+ }
1027
+
984
1028
  // @public @sealed @system
985
1029
  export interface SchemaStatics {
986
1030
  readonly boolean: LeafSchema<"boolean", boolean>;
@@ -1098,6 +1142,11 @@ export interface SimpleNodeSchemaBase<out TNodeKind extends NodeKind, out TCusto
1098
1142
  readonly metadata: NodeSchemaMetadata<TCustomMetadata>;
1099
1143
  }
1100
1144
 
1145
+ // @beta
1146
+ export function singletonSchema<TScope extends string, TName extends string | number>(factory: SchemaFactory<TScope, TName>, name: TName): TreeNodeSchemaClass<ScopedSchemaName<TScope, TName>, NodeKind.Object, TreeNode & {
1147
+ readonly value: TName;
1148
+ }, Record<string, never>, true, Record<string, never>, undefined>;
1149
+
1101
1150
  // @public @system
1102
1151
  export namespace System_Unsafe {
1103
1152
  // @system
@@ -1234,12 +1283,26 @@ export const TreeArrayNode: {
1234
1283
  readonly spread: <T>(content: Iterable<T>) => IterableTreeArrayContent<T>;
1235
1284
  };
1236
1285
 
1286
+ // @beta @sealed @system
1287
+ export interface TreeBeta {
1288
+ clone<const TSchema extends ImplicitFieldSchema>(node: TreeFieldFromImplicitField<TSchema>): TreeFieldFromImplicitField<TSchema>;
1289
+ on<K extends keyof TreeChangeEventsBeta<TNode>, TNode extends TreeNode>(node: TNode, eventName: K, listener: NoInfer<TreeChangeEventsBeta<TNode>[K]>): () => void;
1290
+ }
1291
+
1292
+ // @beta
1293
+ export const TreeBeta: TreeBeta;
1294
+
1237
1295
  // @public @sealed
1238
1296
  export interface TreeChangeEvents {
1239
1297
  nodeChanged(unstable?: unknown): void;
1240
1298
  treeChanged(): void;
1241
1299
  }
1242
1300
 
1301
+ // @beta @sealed
1302
+ export interface TreeChangeEventsBeta<TNode extends TreeNode = TreeNode> extends TreeChangeEvents {
1303
+ nodeChanged: (data: NodeChangedData<TNode> & (TNode extends WithType<string, NodeKind.Map | NodeKind.Object | NodeKind.Record> ? Required<Pick<NodeChangedData<TNode>, "changedProperties">> : unknown)) => void;
1304
+ }
1305
+
1243
1306
  // @public
1244
1307
  export type TreeFieldFromImplicitField<TSchema extends ImplicitFieldSchema = FieldSchema> = TSchema extends FieldSchema<infer Kind, infer Types> ? ApplyKind<TreeNodeFromImplicitAllowedTypes<Types>, Kind> : TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TreeNode | TreeLeafValue | undefined;
1245
1308
 
@@ -1363,11 +1426,14 @@ export type Unhydrated<T> = T;
1363
1426
  // @public @system
1364
1427
  export type UnionToIntersection<T> = (T extends T ? (k: T) => unknown : never) extends (k: infer U) => unknown ? U : never;
1365
1428
 
1429
+ // @beta @system
1430
+ export type UnionToTuple<Union, A extends unknown[] = [], First = PopUnion<Union>> = IsUnion<Union> extends true ? UnionToTuple<Exclude<Union, First>, [First, ...A]> : [Union, ...A];
1431
+
1366
1432
  // @public
1367
1433
  export type ValidateRecursiveSchema<T extends ValidateRecursiveSchemaTemplate<T>> = true;
1368
1434
 
1369
1435
  // @public @system
1370
- export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchema> = TreeNodeSchema<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1436
+ export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchemaClass> = TreeNodeSchemaClass<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1371
1437
  [NodeKind.Object]: T["info"] extends RestrictiveStringRecord<ImplicitFieldSchema> ? InsertableObjectFromSchemaRecord<T["info"]> : unknown;
1372
1438
  [NodeKind.Array]: T["info"] extends ImplicitAllowedTypes ? Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>> : unknown;
1373
1439
  [NodeKind.Map]: T["info"] extends ImplicitAllowedTypes ? Iterable<[string, InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>]> : unknown;
@@ -1043,7 +1043,7 @@ export type UnionToIntersection<T> = (T extends T ? (k: T) => unknown : never) e
1043
1043
  export type ValidateRecursiveSchema<T extends ValidateRecursiveSchemaTemplate<T>> = true;
1044
1044
 
1045
1045
  // @public @system
1046
- export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchema> = TreeNodeSchema<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1046
+ export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchemaClass> = TreeNodeSchemaClass<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1047
1047
  [NodeKind.Object]: T["info"] extends RestrictiveStringRecord<ImplicitFieldSchema> ? InsertableObjectFromSchemaRecord<T["info"]> : unknown;
1048
1048
  [NodeKind.Array]: T["info"] extends ImplicitAllowedTypes ? Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>> : unknown;
1049
1049
  [NodeKind.Map]: T["info"] extends ImplicitAllowedTypes ? Iterable<[string, InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>]> : unknown;
@@ -1009,7 +1009,7 @@ export type UnionToIntersection<T> = (T extends T ? (k: T) => unknown : never) e
1009
1009
  export type ValidateRecursiveSchema<T extends ValidateRecursiveSchemaTemplate<T>> = true;
1010
1010
 
1011
1011
  // @public @system
1012
- export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchema> = TreeNodeSchema<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1012
+ export type ValidateRecursiveSchemaTemplate<T extends TreeNodeSchemaClass> = TreeNodeSchemaClass<string, NodeKind.Array | NodeKind.Map | NodeKind.Object | NodeKind.Record, TreeNode & WithType<T["identifier"], T["kind"]>, {
1013
1013
  [NodeKind.Object]: T["info"] extends RestrictiveStringRecord<ImplicitFieldSchema> ? InsertableObjectFromSchemaRecord<T["info"]> : unknown;
1014
1014
  [NodeKind.Array]: T["info"] extends ImplicitAllowedTypes ? Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>> : unknown;
1015
1015
  [NodeKind.Map]: T["info"] extends ImplicitAllowedTypes ? Iterable<[string, InsertableTreeNodeFromImplicitAllowedTypes<T["info"]>]> : unknown;
package/beta.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
- export * from "./lib/beta.js";
11
+ export * from "lib/beta.js";
package/dist/alpha.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,8 +132,9 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol,
135
+ // #endregion
134
136
 
135
- // @beta APIs
137
+ // #region @beta APIs
136
138
  ForestOptions,
137
139
  ForestType,
138
140
  NodeChangedData,
@@ -144,8 +146,9 @@ export {
144
146
  adaptEnum,
145
147
  enumFromStrings,
146
148
  singletonSchema,
149
+ // #endregion
147
150
 
148
- // @alpha APIs
151
+ // #region @alpha APIs
149
152
  AllowedTypeMetadata,
150
153
  AllowedTypesMetadata,
151
154
  AnnotatedAllowedType,
@@ -295,4 +298,5 @@ export {
295
298
  replaceHandles,
296
299
  replaceVerboseTreeHandles,
297
300
  typeboxValidator
301
+ // #endregion
298
302
  } from "./index.js";
package/dist/beta.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,8 +132,9 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol,
135
+ // #endregion
134
136
 
135
- // @beta APIs
137
+ // #region @beta APIs
136
138
  ForestOptions,
137
139
  ForestType,
138
140
  NodeChangedData,
@@ -144,4 +146,5 @@ export {
144
146
  adaptEnum,
145
147
  enumFromStrings,
146
148
  singletonSchema
149
+ // #endregion
147
150
  } from "./index.js";
package/dist/legacy.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,13 +132,32 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol,
135
+ // #endregion
134
136
 
135
- // @legacy APIs
136
- DeserializeCallback,
137
- IBranchOrigin,
137
+ // #region @legacyPublic APIs
138
138
  IDirectory,
139
139
  IDirectoryEvents,
140
140
  IDirectoryValueChanged,
141
+ IValueChanged,
142
+ // #endregion
143
+
144
+ // #region @beta APIs
145
+ ForestOptions,
146
+ ForestType,
147
+ NodeChangedData,
148
+ PopUnion,
149
+ SchemaFactoryBeta,
150
+ TreeBeta,
151
+ TreeChangeEventsBeta,
152
+ UnionToTuple,
153
+ adaptEnum,
154
+ enumFromStrings,
155
+ singletonSchema,
156
+ // #endregion
157
+
158
+ // #region @legacyBeta APIs
159
+ DeserializeCallback,
160
+ IBranchOrigin,
141
161
  IInterval,
142
162
  ISequenceDeltaRange,
143
163
  ISequenceIntervalCollection,
@@ -154,7 +174,6 @@ export {
154
174
  ISharedSegmentSequenceEvents,
155
175
  ISharedString,
156
176
  ITrace,
157
- IValueChanged,
158
177
  InteriorSequencePlace,
159
178
  IntervalStickiness,
160
179
  IntervalType,
@@ -169,4 +188,5 @@ export {
169
188
  SharedString,
170
189
  SharedStringSegment,
171
190
  Side
191
+ // #endregion
172
192
  } from "./index.js";
package/dist/public.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,4 +132,5 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol
135
+ // #endregion
134
136
  } from "./index.js";
package/legacy.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
- export * from "./lib/legacy.js";
11
+ export * from "lib/legacy.js";
package/lib/alpha.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,8 +132,9 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol,
135
+ // #endregion
134
136
 
135
- // @beta APIs
137
+ // #region @beta APIs
136
138
  ForestOptions,
137
139
  ForestType,
138
140
  NodeChangedData,
@@ -144,8 +146,9 @@ export {
144
146
  adaptEnum,
145
147
  enumFromStrings,
146
148
  singletonSchema,
149
+ // #endregion
147
150
 
148
- // @alpha APIs
151
+ // #region @alpha APIs
149
152
  AllowedTypeMetadata,
150
153
  AllowedTypesMetadata,
151
154
  AnnotatedAllowedType,
@@ -295,4 +298,5 @@ export {
295
298
  replaceHandles,
296
299
  replaceVerboseTreeHandles,
297
300
  typeboxValidator
301
+ // #endregion
298
302
  } from "./index.js";
package/lib/beta.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,8 +132,9 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol,
135
+ // #endregion
134
136
 
135
- // @beta APIs
137
+ // #region @beta APIs
136
138
  ForestOptions,
137
139
  ForestType,
138
140
  NodeChangedData,
@@ -144,4 +146,5 @@ export {
144
146
  adaptEnum,
145
147
  enumFromStrings,
146
148
  singletonSchema
149
+ // #endregion
147
150
  } from "./index.js";
package/lib/legacy.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,13 +132,32 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol,
135
+ // #endregion
134
136
 
135
- // @legacy APIs
136
- DeserializeCallback,
137
- IBranchOrigin,
137
+ // #region @legacyPublic APIs
138
138
  IDirectory,
139
139
  IDirectoryEvents,
140
140
  IDirectoryValueChanged,
141
+ IValueChanged,
142
+ // #endregion
143
+
144
+ // #region @beta APIs
145
+ ForestOptions,
146
+ ForestType,
147
+ NodeChangedData,
148
+ PopUnion,
149
+ SchemaFactoryBeta,
150
+ TreeBeta,
151
+ TreeChangeEventsBeta,
152
+ UnionToTuple,
153
+ adaptEnum,
154
+ enumFromStrings,
155
+ singletonSchema,
156
+ // #endregion
157
+
158
+ // #region @legacyBeta APIs
159
+ DeserializeCallback,
160
+ IBranchOrigin,
141
161
  IInterval,
142
162
  ISequenceDeltaRange,
143
163
  ISequenceIntervalCollection,
@@ -154,7 +174,6 @@ export {
154
174
  ISharedSegmentSequenceEvents,
155
175
  ISharedString,
156
176
  ITrace,
157
- IValueChanged,
158
177
  InteriorSequencePlace,
159
178
  IntervalStickiness,
160
179
  IntervalType,
@@ -169,4 +188,5 @@ export {
169
188
  SharedString,
170
189
  SharedStringSegment,
171
190
  Side
191
+ // #endregion
172
192
  } from "./index.js";
package/lib/public.d.ts CHANGED
@@ -16,10 +16,11 @@
16
16
  */
17
17
 
18
18
  export {
19
- // Unrestricted APIs
19
+ // #region Unrestricted APIs
20
20
  InternalTypes,
21
-
22
- // @public APIs
21
+ // #endregion
22
+
23
+ // #region @public APIs
23
24
  AllowedTypes,
24
25
  AttachState,
25
26
  CommitKind,
@@ -131,4 +132,5 @@ export {
131
132
  isFluidHandle,
132
133
  rollback,
133
134
  typeSchemaSymbol
135
+ // #endregion
134
136
  } from "./index.js";
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
8
+ "packageVersion": "7.52.11"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluid-framework",
3
- "version": "2.60.0",
3
+ "version": "2.61.0-355054",
4
4
  "description": "The main entry point into Fluid Framework public packages",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -57,26 +57,26 @@
57
57
  "main": "lib/index.js",
58
58
  "types": "lib/public.d.ts",
59
59
  "dependencies": {
60
- "@fluidframework/container-definitions": "~2.60.0",
61
- "@fluidframework/container-loader": "~2.60.0",
62
- "@fluidframework/core-interfaces": "~2.60.0",
63
- "@fluidframework/core-utils": "~2.60.0",
64
- "@fluidframework/driver-definitions": "~2.60.0",
65
- "@fluidframework/fluid-static": "~2.60.0",
66
- "@fluidframework/map": "~2.60.0",
67
- "@fluidframework/runtime-utils": "~2.60.0",
68
- "@fluidframework/sequence": "~2.60.0",
69
- "@fluidframework/shared-object-base": "~2.60.0",
70
- "@fluidframework/tree": "~2.60.0"
60
+ "@fluidframework/container-definitions": "2.61.0-355054",
61
+ "@fluidframework/container-loader": "2.61.0-355054",
62
+ "@fluidframework/core-interfaces": "2.61.0-355054",
63
+ "@fluidframework/core-utils": "2.61.0-355054",
64
+ "@fluidframework/driver-definitions": "2.61.0-355054",
65
+ "@fluidframework/fluid-static": "2.61.0-355054",
66
+ "@fluidframework/map": "2.61.0-355054",
67
+ "@fluidframework/runtime-utils": "2.61.0-355054",
68
+ "@fluidframework/sequence": "2.61.0-355054",
69
+ "@fluidframework/shared-object-base": "2.61.0-355054",
70
+ "@fluidframework/tree": "2.61.0-355054"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@arethetypeswrong/cli": "^0.17.1",
74
74
  "@biomejs/biome": "~1.9.3",
75
- "@fluid-tools/build-cli": "^0.57.0",
75
+ "@fluid-tools/build-cli": "^0.58.2",
76
76
  "@fluidframework/build-common": "^2.0.3",
77
- "@fluidframework/build-tools": "^0.57.0",
77
+ "@fluidframework/build-tools": "^0.58.2",
78
78
  "@fluidframework/eslint-config-fluid": "^6.0.0",
79
- "@microsoft/api-extractor": "7.52.8",
79
+ "@microsoft/api-extractor": "7.52.11",
80
80
  "@types/node": "^18.19.0",
81
81
  "concurrently": "^8.2.1",
82
82
  "copyfiles": "^2.4.1",
@@ -103,8 +103,8 @@
103
103
  },
104
104
  "scripts": {
105
105
  "api": "fluid-build . --task api",
106
- "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
107
- "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
106
+ "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist",
107
+ "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat",
108
108
  "build": "fluid-build . --task build",
109
109
  "build:api-reports": "concurrently \"npm:build:api-reports:*\"",
110
110
  "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json",