@fluidframework/container-definitions 2.0.0-dev.7.4.0.216897 → 2.0.0-dev.7.4.0.217212

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.
Files changed (45) hide show
  1. package/api-report/container-definitions.api.md +35 -35
  2. package/dist/audience.d.ts +2 -2
  3. package/dist/audience.js.map +1 -1
  4. package/dist/container-definitions-alpha.d.ts +1125 -56
  5. package/dist/container-definitions-untrimmed.d.ts +39 -39
  6. package/dist/deltas.d.ts +7 -7
  7. package/dist/deltas.js.map +1 -1
  8. package/dist/error.d.ts +2 -2
  9. package/dist/error.js.map +1 -1
  10. package/dist/fluidModule.d.ts +1 -1
  11. package/dist/fluidModule.js.map +1 -1
  12. package/dist/fluidPackage.d.ts +7 -7
  13. package/dist/fluidPackage.js +1 -1
  14. package/dist/fluidPackage.js.map +1 -1
  15. package/dist/loader.d.ts +12 -12
  16. package/dist/loader.js.map +1 -1
  17. package/dist/runtime.d.ts +8 -8
  18. package/dist/runtime.js +2 -2
  19. package/dist/runtime.js.map +1 -1
  20. package/lib/audience.d.ts +2 -2
  21. package/lib/audience.js.map +1 -1
  22. package/lib/container-definitions-alpha.d.ts +1125 -56
  23. package/lib/container-definitions-untrimmed.d.ts +39 -39
  24. package/lib/deltas.d.ts +7 -7
  25. package/lib/deltas.js.map +1 -1
  26. package/lib/error.d.ts +2 -2
  27. package/lib/error.js.map +1 -1
  28. package/lib/fluidModule.d.ts +1 -1
  29. package/lib/fluidModule.js.map +1 -1
  30. package/lib/fluidPackage.d.ts +7 -7
  31. package/lib/fluidPackage.js +1 -1
  32. package/lib/fluidPackage.js.map +1 -1
  33. package/lib/loader.d.ts +12 -12
  34. package/lib/loader.js.map +1 -1
  35. package/lib/runtime.d.ts +8 -8
  36. package/lib/runtime.js +2 -2
  37. package/lib/runtime.js.map +1 -1
  38. package/package.json +3 -3
  39. package/src/audience.ts +2 -2
  40. package/src/deltas.ts +7 -7
  41. package/src/error.ts +2 -2
  42. package/src/fluidModule.ts +1 -1
  43. package/src/fluidPackage.ts +7 -7
  44. package/src/loader.ts +12 -12
  45. package/src/runtime.ts +8 -8
@@ -36,14 +36,14 @@ import { IUsageError } from '@fluidframework/core-interfaces';
36
36
  import { IVersion } from '@fluidframework/protocol-definitions';
37
37
  import { MessageType } from '@fluidframework/protocol-definitions';
38
38
 
39
- // @internal
39
+ // @alpha
40
40
  export enum AttachState {
41
41
  Attached = "Attached",
42
42
  Attaching = "Attaching",
43
43
  Detached = "Detached"
44
44
  }
45
45
 
46
- // @internal
46
+ // @alpha
47
47
  export namespace ConnectionState {
48
48
  export type CatchingUp = 1;
49
49
  export type Connected = 2;
@@ -51,7 +51,7 @@ export namespace ConnectionState {
51
51
  export type EstablishingConnection = 3;
52
52
  }
53
53
 
54
- // @internal
54
+ // @alpha
55
55
  export type ConnectionState = ConnectionState.Disconnected | ConnectionState.EstablishingConnection | ConnectionState.CatchingUp | ConnectionState.Connected;
56
56
 
57
57
  // @internal @deprecated
@@ -77,25 +77,25 @@ export const ContainerErrorTypes: {
77
77
  // @internal (undocumented)
78
78
  export type ContainerErrorTypes = (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];
79
79
 
80
- // @internal
80
+ // @alpha
81
81
  export interface ContainerWarning extends IErrorBase {
82
82
  logged?: boolean;
83
83
  }
84
84
 
85
- // @internal
85
+ // @alpha
86
86
  export interface IAudience extends EventEmitter {
87
87
  getMember(clientId: string): IClient | undefined;
88
88
  getMembers(): Map<string, IClient>;
89
89
  on(event: "addMember" | "removeMember", listener: (clientId: string, client: IClient) => void): this;
90
90
  }
91
91
 
92
- // @internal
92
+ // @alpha
93
93
  export interface IAudienceOwner extends IAudience {
94
94
  addMember(clientId: string, details: IClient): void;
95
95
  removeMember(clientId: string): boolean;
96
96
  }
97
97
 
98
- // @internal
98
+ // @alpha
99
99
  export interface IBatchMessage {
100
100
  // (undocumented)
101
101
  compression?: string;
@@ -112,7 +112,7 @@ export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComp
112
112
  load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
113
113
  }
114
114
 
115
- // @internal
115
+ // @alpha
116
116
  export interface IConnectionDetails {
117
117
  checkpointSequenceNumber: number | undefined;
118
118
  // (undocumented)
@@ -123,7 +123,7 @@ export interface IConnectionDetails {
123
123
  serviceConfiguration: IClientConfiguration;
124
124
  }
125
125
 
126
- // @internal
126
+ // @alpha
127
127
  export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRouter {
128
128
  attach(request: IRequest, attachProps?: {
129
129
  deltaConnection?: "none" | "delayed";
@@ -161,7 +161,7 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
161
161
  serialize(): string;
162
162
  }
163
163
 
164
- // @internal
164
+ // @alpha
165
165
  export interface IContainerContext {
166
166
  readonly attachState: AttachState;
167
167
  // (undocumented)
@@ -214,7 +214,7 @@ export interface IContainerContext {
214
214
  updateDirtyContainerState(dirty: boolean): void;
215
215
  }
216
216
 
217
- // @internal
217
+ // @alpha
218
218
  export interface IContainerEvents extends IEvent {
219
219
  (event: "readonly", listener: (readonly: boolean) => void): void;
220
220
  (event: "connected", listener: (clientId: string) => void): any;
@@ -239,10 +239,10 @@ export interface IContainerLoadMode {
239
239
  pauseAfterLoad?: boolean;
240
240
  }
241
241
 
242
- // @internal
242
+ // @alpha
243
243
  export type ICriticalContainerError = IErrorBase;
244
244
 
245
- // @internal
245
+ // @alpha
246
246
  export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender {
247
247
  readonly active: boolean;
248
248
  readonly clientDetails: IClientDetails;
@@ -263,7 +263,7 @@ export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>
263
263
  readonly version: string;
264
264
  }
265
265
 
266
- // @internal
266
+ // @alpha
267
267
  export interface IDeltaManagerEvents extends IEvent {
268
268
  // @deprecated (undocumented)
269
269
  (event: "prepareSend", listener: (messageBuffer: any[]) => void): any;
@@ -279,7 +279,7 @@ export interface IDeltaManagerEvents extends IEvent {
279
279
  }) => void): any;
280
280
  }
281
281
 
282
- // @internal
282
+ // @alpha
283
283
  export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, IDisposable {
284
284
  idle: boolean;
285
285
  length: number;
@@ -294,14 +294,14 @@ export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, ID
294
294
  }>;
295
295
  }
296
296
 
297
- // @internal
297
+ // @alpha
298
298
  export interface IDeltaQueueEvents<T> extends IErrorEvent {
299
299
  (event: "push", listener: (task: T) => void): any;
300
300
  (event: "op", listener: (task: T) => void): any;
301
301
  (event: "idle", listener: (count: number, duration: number) => void): any;
302
302
  }
303
303
 
304
- // @internal
304
+ // @alpha
305
305
  export interface IDeltaSender {
306
306
  flush(): void;
307
307
  }
@@ -325,22 +325,22 @@ export interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironmen
325
325
  };
326
326
  }
327
327
 
328
- // @internal
328
+ // @alpha
329
329
  export interface IFluidCodeDetails {
330
330
  readonly config?: IFluidCodeDetailsConfig;
331
331
  readonly package: string | Readonly<IFluidPackage>;
332
332
  }
333
333
 
334
- // @internal (undocumented)
334
+ // @alpha (undocumented)
335
335
  export const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer;
336
336
 
337
- // @internal
337
+ // @alpha
338
338
  export interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
339
339
  compare(a: IFluidCodeDetails, b: IFluidCodeDetails): Promise<number | undefined>;
340
340
  satisfies(candidate: IFluidCodeDetails, constraint: IFluidCodeDetails): Promise<boolean>;
341
341
  }
342
342
 
343
- // @internal
343
+ // @alpha
344
344
  export interface IFluidCodeDetailsConfig {
345
345
  // (undocumented)
346
346
  readonly [key: string]: string;
@@ -351,7 +351,7 @@ export interface IFluidCodeResolver {
351
351
  resolveCodeDetails(details: IFluidCodeDetails): Promise<IResolvedFluidCodeDetails>;
352
352
  }
353
353
 
354
- // @internal (undocumented)
354
+ // @alpha (undocumented)
355
355
  export interface IFluidModule {
356
356
  // (undocumented)
357
357
  fluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;
@@ -363,7 +363,7 @@ export interface IFluidModuleWithDetails {
363
363
  module: IFluidModule;
364
364
  }
365
365
 
366
- // @internal
366
+ // @alpha
367
367
  export interface IFluidPackage {
368
368
  [key: string]: unknown;
369
369
  fluid: {
@@ -372,7 +372,7 @@ export interface IFluidPackage {
372
372
  name: string;
373
373
  }
374
374
 
375
- // @internal
375
+ // @alpha
376
376
  export interface IFluidPackageEnvironment {
377
377
  [target: string]: undefined | {
378
378
  files: string[];
@@ -382,7 +382,7 @@ export interface IFluidPackageEnvironment {
382
382
 
383
383
  export { IGenericError }
384
384
 
385
- // @internal
385
+ // @alpha
386
386
  export interface IGetPendingLocalStateProps {
387
387
  readonly notifyImminentClosure: boolean;
388
388
  readonly stopBlobAttachingSignal?: AbortSignal;
@@ -400,7 +400,7 @@ export interface IHostLoader extends ILoader {
400
400
  }): Promise<IContainer>;
401
401
  }
402
402
 
403
- // @internal
403
+ // @alpha
404
404
  export interface ILoader extends Partial<IProvideLoader> {
405
405
  // @deprecated (undocumented)
406
406
  readonly IFluidRouter: IFluidRouter;
@@ -424,7 +424,7 @@ export interface ILoaderHeader {
424
424
  [LoaderHeader.version]: string | undefined;
425
425
  }
426
426
 
427
- // @internal (undocumented)
427
+ // @alpha (undocumented)
428
428
  export type ILoaderOptions = {
429
429
  [key in string | number]: any;
430
430
  } & {
@@ -441,19 +441,19 @@ export interface IPendingLocalState {
441
441
  url: string;
442
442
  }
443
443
 
444
- // @internal (undocumented)
444
+ // @alpha (undocumented)
445
445
  export interface IProvideFluidCodeDetailsComparer {
446
446
  // (undocumented)
447
447
  readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
448
448
  }
449
449
 
450
- // @internal (undocumented)
450
+ // @alpha (undocumented)
451
451
  export interface IProvideLoader {
452
452
  // (undocumented)
453
453
  readonly ILoader: ILoader;
454
454
  }
455
455
 
456
- // @internal (undocumented)
456
+ // @alpha (undocumented)
457
457
  export interface IProvideRuntimeFactory {
458
458
  // (undocumented)
459
459
  readonly IRuntimeFactory: IRuntimeFactory;
@@ -465,7 +465,7 @@ export interface IResolvedFluidCodeDetails extends IFluidCodeDetails {
465
465
  readonly resolvedPackageCacheId: string | undefined;
466
466
  }
467
467
 
468
- // @internal
468
+ // @alpha
469
469
  export interface IRuntime extends IDisposable {
470
470
  createSummary(blobRedirectTable?: Map<string, string>): ISummaryTree;
471
471
  getEntryPoint(): Promise<FluidObject | undefined>;
@@ -481,10 +481,10 @@ export interface IRuntime extends IDisposable {
481
481
  setConnectionState(connected: boolean, clientId?: string): any;
482
482
  }
483
483
 
484
- // @internal (undocumented)
484
+ // @alpha (undocumented)
485
485
  export const IRuntimeFactory: keyof IProvideRuntimeFactory;
486
486
 
487
- // @internal
487
+ // @alpha
488
488
  export interface IRuntimeFactory extends IProvideRuntimeFactory {
489
489
  instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
490
490
  }
@@ -498,7 +498,7 @@ export const isFluidCodeDetails: (details: unknown) => details is Readonly<IFlui
498
498
  // @internal
499
499
  export const isFluidPackage: (pkg: unknown) => pkg is Readonly<IFluidPackage>;
500
500
 
501
- // @internal
501
+ // @alpha
502
502
  export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
503
503
  // (undocumented)
504
504
  blobsContents: {
@@ -527,7 +527,7 @@ export enum LoaderHeader {
527
527
  version = "version"
528
528
  }
529
529
 
530
- // @internal (undocumented)
530
+ // @alpha (undocumented)
531
531
  export type ReadOnlyInfo = {
532
532
  readonly readonly: false | undefined;
533
533
  } | {
@@ -6,7 +6,7 @@ import { EventEmitter } from "events";
6
6
  import { IClient } from "@fluidframework/protocol-definitions";
7
7
  /**
8
8
  * Manages the state and the members for {@link IAudience}
9
- * @internal
9
+ * @alpha
10
10
  */
11
11
  export interface IAudienceOwner extends IAudience {
12
12
  /**
@@ -24,7 +24,7 @@ export interface IAudienceOwner extends IAudience {
24
24
  *
25
25
  * See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`
26
26
  * class.
27
- * @internal
27
+ * @alpha
28
28
  */
29
29
  export interface IAudience extends EventEmitter {
30
30
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"audience.js","sourceRoot":"","sources":["../src/audience.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// False positive: this is an import from the `events` package, not from Node.\n// eslint-disable-next-line unicorn/prefer-node-protocol\nimport { EventEmitter } from \"events\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\n\n/**\n * Manages the state and the members for {@link IAudience}\n * @internal\n */\nexport interface IAudienceOwner extends IAudience {\n\t/**\n\t * Adds a new client to the audience\n\t */\n\taddMember(clientId: string, details: IClient): void;\n\n\t/**\n\t * Removes a client from the audience. Only emits an event if a client is actually removed\n\t * @returns if a client was removed from the audience\n\t */\n\tremoveMember(clientId: string): boolean;\n}\n\n/**\n * Audience represents all clients connected to the op stream, both read-only and read/write.\n *\n * See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`\n * class.\n * @internal\n */\nexport interface IAudience extends EventEmitter {\n\t/**\n\t * See {@link https://nodejs.dev/learn/the-nodejs-event-emitter | here} for an overview of `EventEmitter.on`.\n\t */\n\ton(\n\t\tevent: \"addMember\" | \"removeMember\",\n\t\tlistener: (clientId: string, client: IClient) => void,\n\t): this;\n\n\t/**\n\t * List all clients connected to the op stream, keyed off their clientId\n\t */\n\tgetMembers(): Map<string, IClient>;\n\n\t/**\n\t * Get details about the connected client with the specified clientId,\n\t * or undefined if the specified client isn't connected\n\t */\n\tgetMember(clientId: string): IClient | undefined;\n}\n"]}
1
+ {"version":3,"file":"audience.js","sourceRoot":"","sources":["../src/audience.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// False positive: this is an import from the `events` package, not from Node.\n// eslint-disable-next-line unicorn/prefer-node-protocol\nimport { EventEmitter } from \"events\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\n\n/**\n * Manages the state and the members for {@link IAudience}\n * @alpha\n */\nexport interface IAudienceOwner extends IAudience {\n\t/**\n\t * Adds a new client to the audience\n\t */\n\taddMember(clientId: string, details: IClient): void;\n\n\t/**\n\t * Removes a client from the audience. Only emits an event if a client is actually removed\n\t * @returns if a client was removed from the audience\n\t */\n\tremoveMember(clientId: string): boolean;\n}\n\n/**\n * Audience represents all clients connected to the op stream, both read-only and read/write.\n *\n * See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`\n * class.\n * @alpha\n */\nexport interface IAudience extends EventEmitter {\n\t/**\n\t * See {@link https://nodejs.dev/learn/the-nodejs-event-emitter | here} for an overview of `EventEmitter.on`.\n\t */\n\ton(\n\t\tevent: \"addMember\" | \"removeMember\",\n\t\tlistener: (clientId: string, client: IClient) => void,\n\t): this;\n\n\t/**\n\t * List all clients connected to the op stream, keyed off their clientId\n\t */\n\tgetMembers(): Map<string, IClient>;\n\n\t/**\n\t * Get details about the connected client with the specified clientId,\n\t * or undefined if the specified client isn't connected\n\t */\n\tgetMember(clientId: string): IClient | undefined;\n}\n"]}