@fluidframework/fluid-static 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.216897
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +0 -4
- package/api-report/fluid-static.api.md +24 -25
- package/dist/fluid-static-alpha.d.ts +53 -548
- package/dist/fluid-static-beta.d.ts +53 -548
- package/dist/fluid-static-public.d.ts +53 -548
- package/dist/fluid-static-untrimmed.d.ts +32 -2
- package/dist/fluidContainer.cjs +4 -2
- package/dist/fluidContainer.cjs.map +1 -1
- package/dist/fluidContainer.d.ts +7 -2
- package/dist/fluidContainer.d.ts.map +1 -1
- package/dist/rootDataObject.cjs +4 -0
- package/dist/rootDataObject.cjs.map +1 -1
- package/dist/rootDataObject.d.ts +4 -0
- package/dist/rootDataObject.d.ts.map +1 -1
- package/dist/serviceAudience.cjs +4 -0
- package/dist/serviceAudience.cjs.map +1 -1
- package/dist/serviceAudience.d.ts +4 -0
- package/dist/serviceAudience.d.ts.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -1
- package/lib/fluid-static-alpha.d.ts +53 -548
- package/lib/fluid-static-beta.d.ts +53 -548
- package/lib/fluid-static-public.d.ts +53 -548
- package/lib/fluid-static-untrimmed.d.ts +32 -2
- package/lib/fluidContainer.d.ts +7 -2
- package/lib/fluidContainer.d.ts.map +1 -1
- package/lib/fluidContainer.mjs +4 -2
- package/lib/fluidContainer.mjs.map +1 -1
- package/lib/rootDataObject.d.ts +4 -0
- package/lib/rootDataObject.d.ts.map +1 -1
- package/lib/rootDataObject.mjs +4 -0
- package/lib/rootDataObject.mjs.map +1 -1
- package/lib/serviceAudience.d.ts +4 -0
- package/lib/serviceAudience.d.ts.map +1 -1
- package/lib/serviceAudience.mjs +4 -0
- package/lib/serviceAudience.mjs.map +1 -1
- package/lib/types.d.ts +17 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/types.mjs.map +1 -1
- package/package.json +16 -15
- package/src/fluidContainer.ts +7 -2
- package/src/rootDataObject.ts +4 -0
- package/src/serviceAudience.ts +4 -0
- package/src/types.ts +17 -0
package/lib/types.d.ts
CHANGED
|
@@ -7,17 +7,20 @@ import { IChannelFactory } from "@fluidframework/datastore-definitions";
|
|
|
7
7
|
import { IFluidDataStoreFactory } from "@fluidframework/runtime-definitions";
|
|
8
8
|
/**
|
|
9
9
|
* A mapping of string identifiers to instantiated `DataObject`s or `SharedObject`s.
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export type LoadableObjectRecord = Record<string, IFluidLoadable>;
|
|
12
13
|
/**
|
|
13
14
|
* A mapping of string identifiers to classes that will later be used to instantiate a corresponding `DataObject`
|
|
14
15
|
* or `SharedObject` in a {@link LoadableObjectRecord}.
|
|
16
|
+
* @internal
|
|
15
17
|
*/
|
|
16
18
|
export type LoadableObjectClassRecord = Record<string, LoadableObjectClass<any>>;
|
|
17
19
|
/**
|
|
18
20
|
* A class object of `DataObject` or `SharedObject`.
|
|
19
21
|
*
|
|
20
22
|
* @typeParam T - The class of the `DataObject` or `SharedObject`.
|
|
23
|
+
* @internal
|
|
21
24
|
*/
|
|
22
25
|
export type LoadableObjectClass<T extends IFluidLoadable> = DataObjectClass<T> | SharedObjectClass<T>;
|
|
23
26
|
/**
|
|
@@ -25,6 +28,7 @@ export type LoadableObjectClass<T extends IFluidLoadable> = DataObjectClass<T> |
|
|
|
25
28
|
* constructor that will return the type of the `DataObject`.
|
|
26
29
|
*
|
|
27
30
|
* @typeParam T - The class of the `DataObject`.
|
|
31
|
+
* @internal
|
|
28
32
|
*/
|
|
29
33
|
export type DataObjectClass<T extends IFluidLoadable> = {
|
|
30
34
|
readonly factory: IFluidDataStoreFactory;
|
|
@@ -34,6 +38,7 @@ export type DataObjectClass<T extends IFluidLoadable> = {
|
|
|
34
38
|
* constructor that will return the type of the `DataObject`.
|
|
35
39
|
*
|
|
36
40
|
* @typeParam T - The class of the `SharedObject`.
|
|
41
|
+
* @internal
|
|
37
42
|
*/
|
|
38
43
|
export type SharedObjectClass<T extends IFluidLoadable> = {
|
|
39
44
|
readonly getFactory: () => IChannelFactory;
|
|
@@ -42,6 +47,7 @@ export type SharedObjectClass<T extends IFluidLoadable> = {
|
|
|
42
47
|
* An object with a constructor that will return an {@link @fluidframework/core-interfaces#IFluidLoadable}.
|
|
43
48
|
*
|
|
44
49
|
* @typeParam T - The class of the loadable object.
|
|
50
|
+
* @internal
|
|
45
51
|
*/
|
|
46
52
|
export type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[]) => T;
|
|
47
53
|
/**
|
|
@@ -51,6 +57,7 @@ export type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[])
|
|
|
51
57
|
*
|
|
52
58
|
* It includes both the instances of objects that are initially available upon `Container` creation, as well
|
|
53
59
|
* as the types of objects that may be dynamically created throughout the lifetime of the `Container`.
|
|
60
|
+
* @internal
|
|
54
61
|
*/
|
|
55
62
|
export interface ContainerSchema {
|
|
56
63
|
/**
|
|
@@ -84,12 +91,16 @@ export interface ContainerSchema {
|
|
|
84
91
|
*/
|
|
85
92
|
dynamicObjectTypes?: LoadableObjectClass<any>[];
|
|
86
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
87
97
|
export interface IProvideRootDataObject {
|
|
88
98
|
readonly IRootDataObject?: IRootDataObject;
|
|
89
99
|
}
|
|
90
100
|
/**
|
|
91
101
|
* Holds the collection of objects that the container was initially created with, as well as provides the ability
|
|
92
102
|
* to dynamically create further objects during usage.
|
|
103
|
+
* @internal
|
|
93
104
|
*/
|
|
94
105
|
export interface IRootDataObject extends IProvideRootDataObject {
|
|
95
106
|
/**
|
|
@@ -112,6 +123,7 @@ export interface IRootDataObject extends IProvideRootDataObject {
|
|
|
112
123
|
* @param member - The service-specific member object for the client.
|
|
113
124
|
*
|
|
114
125
|
* @see See {@link IServiceAudienceEvents} for usage details.
|
|
126
|
+
* @internal
|
|
115
127
|
*/
|
|
116
128
|
export type MemberChangedListener<M extends IMember> = (clientId: string, member: M) => void;
|
|
117
129
|
/**
|
|
@@ -123,6 +135,7 @@ export type MemberChangedListener<M extends IMember> = (clientId: string, member
|
|
|
123
135
|
* {@link IServiceAudience.getMembers} method will emit events.
|
|
124
136
|
*
|
|
125
137
|
* @typeParam M - A service-specific {@link IMember} implementation.
|
|
138
|
+
* @internal
|
|
126
139
|
*/
|
|
127
140
|
export interface IServiceAudienceEvents<M extends IMember> extends IEvent {
|
|
128
141
|
/**
|
|
@@ -153,6 +166,7 @@ export interface IServiceAudienceEvents<M extends IMember> extends IEvent {
|
|
|
153
166
|
* details about the connecting client, such as device information, environment, or a username.
|
|
154
167
|
*
|
|
155
168
|
* @typeParam M - A service-specific {@link IMember} type.
|
|
169
|
+
* @internal
|
|
156
170
|
*/
|
|
157
171
|
export interface IServiceAudience<M extends IMember> extends IEventProvider<IServiceAudienceEvents<M>> {
|
|
158
172
|
/**
|
|
@@ -170,6 +184,7 @@ export interface IServiceAudience<M extends IMember> extends IEventProvider<ISer
|
|
|
170
184
|
* Base interface for information for each connection made to the Fluid session.
|
|
171
185
|
*
|
|
172
186
|
* @remarks This interface can be extended to provide additional information specific to each service.
|
|
187
|
+
* @internal
|
|
173
188
|
*/
|
|
174
189
|
export interface IConnection {
|
|
175
190
|
/**
|
|
@@ -185,6 +200,7 @@ export interface IConnection {
|
|
|
185
200
|
* Base interface to be implemented to fetch each service's member.
|
|
186
201
|
*
|
|
187
202
|
* @remarks This interface can be extended by each service to provide additional service-specific user metadata.
|
|
203
|
+
* @internal
|
|
188
204
|
*/
|
|
189
205
|
export interface IMember {
|
|
190
206
|
/**
|
|
@@ -198,6 +214,7 @@ export interface IMember {
|
|
|
198
214
|
}
|
|
199
215
|
/**
|
|
200
216
|
* An extended member object that includes currentConnection
|
|
217
|
+
* @internal
|
|
201
218
|
*/
|
|
202
219
|
export type Myself<M extends IMember = IMember> = M & {
|
|
203
220
|
currentConnection: string;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
package/lib/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IEvent, IEventProvider, IFluidLoadable } from \"@fluidframework/core-interfaces\";\nimport { IChannelFactory } from \"@fluidframework/datastore-definitions\";\nimport { IFluidDataStoreFactory } from \"@fluidframework/runtime-definitions\";\n\n/**\n * A mapping of string identifiers to instantiated `DataObject`s or `SharedObject`s.\n */\nexport type LoadableObjectRecord = Record<string, IFluidLoadable>;\n\n/**\n * A mapping of string identifiers to classes that will later be used to instantiate a corresponding `DataObject`\n * or `SharedObject` in a {@link LoadableObjectRecord}.\n */\nexport type LoadableObjectClassRecord = Record<string, LoadableObjectClass<any>>;\n\n/**\n * A class object of `DataObject` or `SharedObject`.\n *\n * @typeParam T - The class of the `DataObject` or `SharedObject`.\n */\nexport type LoadableObjectClass<T extends IFluidLoadable> =\n\t| DataObjectClass<T>\n\t| SharedObjectClass<T>;\n\n/**\n * A class that has a factory that can create a `DataObject` and a\n * constructor that will return the type of the `DataObject`.\n *\n * @typeParam T - The class of the `DataObject`.\n */\nexport type DataObjectClass<T extends IFluidLoadable> = {\n\treadonly factory: IFluidDataStoreFactory;\n} & LoadableObjectCtor<T>;\n\n/**\n * A class that has a factory that can create a DDSes (`SharedObject`s) and a\n * constructor that will return the type of the `DataObject`.\n *\n * @typeParam T - The class of the `SharedObject`.\n */\nexport type SharedObjectClass<T extends IFluidLoadable> = {\n\treadonly getFactory: () => IChannelFactory;\n} & LoadableObjectCtor<T>;\n\n/**\n * An object with a constructor that will return an {@link @fluidframework/core-interfaces#IFluidLoadable}.\n *\n * @typeParam T - The class of the loadable object.\n */\nexport type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[]) => T;\n\n/**\n * Declares the Fluid objects that will be available in the {@link IFluidContainer | Container}.\n *\n * @remarks\n *\n * It includes both the instances of objects that are initially available upon `Container` creation, as well\n * as the types of objects that may be dynamically created throughout the lifetime of the `Container`.\n */\nexport interface ContainerSchema {\n\t/**\n\t * Defines loadable objects that will be created when the {@link IFluidContainer | Container} is first created.\n\t *\n\t * @remarks It uses the key as the id and the value as the loadable object to create.\n\t *\n\t * @example\n\t *\n\t * In the example below two objects will be created when the `Container` is first\n\t * created. One with id \"map1\" that will return a `SharedMap` and the other with\n\t * id \"pair1\" that will return a `KeyValueDataObject`.\n\t *\n\t * ```typescript\n\t * {\n\t * map1: SharedMap,\n\t * pair1: KeyValueDataObject,\n\t * }\n\t * ```\n\t */\n\tinitialObjects: LoadableObjectClassRecord;\n\n\t/**\n\t * Loadable objects that can be created after the initial {@link IFluidContainer | Container} creation.\n\t *\n\t * @remarks\n\t *\n\t * Types defined in `initialObjects` will always be available and are not required to be provided here.\n\t *\n\t * For best practice it's recommended to define all the dynamic types you create even if they are\n\t * included via initialObjects.\n\t */\n\tdynamicObjectTypes?: LoadableObjectClass<any>[];\n}\n\nexport interface IProvideRootDataObject {\n\treadonly IRootDataObject?: IRootDataObject;\n}\n\n/**\n * Holds the collection of objects that the container was initially created with, as well as provides the ability\n * to dynamically create further objects during usage.\n */\nexport interface IRootDataObject extends IProvideRootDataObject {\n\t/**\n\t * Provides a record of the initial objects defined on creation.\n\t */\n\treadonly initialObjects: LoadableObjectRecord;\n\n\t/**\n\t * Dynamically creates a new detached collaborative object (DDS/DataObject).\n\t *\n\t * @param objectClass - Type of the collaborative object to be created.\n\t *\n\t * @typeParam T - The class of the `DataObject` or `SharedObject`.\n\t */\n\tcreate<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T>;\n}\n\n/**\n * Signature for {@link IMember} change events.\n *\n * @param clientId - A unique identifier for the client.\n * @param member - The service-specific member object for the client.\n *\n * @see See {@link IServiceAudienceEvents} for usage details.\n */\nexport type MemberChangedListener<M extends IMember> = (clientId: string, member: M) => void;\n\n/**\n * Events that trigger when the roster of members in the Fluid session change.\n *\n * @remarks\n *\n * Only changes that would be reflected in the returned map of {@link IServiceAudience}'s\n * {@link IServiceAudience.getMembers} method will emit events.\n *\n * @typeParam M - A service-specific {@link IMember} implementation.\n */\nexport interface IServiceAudienceEvents<M extends IMember> extends IEvent {\n\t/**\n\t * Emitted when a {@link IMember | member}(s) are either added or removed.\n\t *\n\t * @eventProperty\n\t */\n\t(event: \"membersChanged\", listener: () => void): void;\n\n\t/**\n\t * Emitted when a {@link IMember | member} joins the audience.\n\t *\n\t * @eventProperty\n\t */\n\t(event: \"memberAdded\", listener: MemberChangedListener<M>): void;\n\n\t/**\n\t * Emitted when a {@link IMember | member} leaves the audience.\n\t *\n\t * @eventProperty\n\t */\n\t(event: \"memberRemoved\", listener: MemberChangedListener<M>): void;\n}\n\n/**\n * Base interface to be implemented to fetch each service's audience.\n *\n * @remarks\n *\n * The type parameter `M` allows consumers to further extend the client object with service-specific\n * details about the connecting client, such as device information, environment, or a username.\n *\n * @typeParam M - A service-specific {@link IMember} type.\n */\nexport interface IServiceAudience<M extends IMember>\n\textends IEventProvider<IServiceAudienceEvents<M>> {\n\t/**\n\t * Returns an map of all users currently in the Fluid session where key is the userId and the value is the\n\t * member object. The implementation may choose to exclude certain connections from the returned map.\n\t * E.g. ServiceAudience excludes non-interactive connections to represent only the roster of live users.\n\t */\n\tgetMembers(): Map<string, M>;\n\n\t/**\n\t * Returns the current active user on this client once they are connected. Otherwise, returns undefined.\n\t */\n\tgetMyself(): Myself<M> | undefined;\n}\n\n/**\n * Base interface for information for each connection made to the Fluid session.\n *\n * @remarks This interface can be extended to provide additional information specific to each service.\n */\nexport interface IConnection {\n\t/**\n\t * A unique ID for the connection. A single user may have multiple connections, each with a different ID.\n\t */\n\tid: string;\n\n\t/**\n\t * Whether the connection is in read or read/write mode.\n\t */\n\tmode: \"write\" | \"read\";\n}\n\n/**\n * Base interface to be implemented to fetch each service's member.\n *\n * @remarks This interface can be extended by each service to provide additional service-specific user metadata.\n */\nexport interface IMember {\n\t/**\n\t * An ID for the user, unique among each individual user connecting to the session.\n\t */\n\tuserId: string;\n\n\t/**\n\t * The set of connections the user has made, e.g. from multiple tabs or devices.\n\t */\n\tconnections: IConnection[];\n}\n\n/**\n * An extended member object that includes currentConnection\n */\nexport type Myself<M extends IMember = IMember> = M & { currentConnection: string };\n"]}
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IEvent, IEventProvider, IFluidLoadable } from \"@fluidframework/core-interfaces\";\nimport { IChannelFactory } from \"@fluidframework/datastore-definitions\";\nimport { IFluidDataStoreFactory } from \"@fluidframework/runtime-definitions\";\n\n/**\n * A mapping of string identifiers to instantiated `DataObject`s or `SharedObject`s.\n * @internal\n */\nexport type LoadableObjectRecord = Record<string, IFluidLoadable>;\n\n/**\n * A mapping of string identifiers to classes that will later be used to instantiate a corresponding `DataObject`\n * or `SharedObject` in a {@link LoadableObjectRecord}.\n * @internal\n */\nexport type LoadableObjectClassRecord = Record<string, LoadableObjectClass<any>>;\n\n/**\n * A class object of `DataObject` or `SharedObject`.\n *\n * @typeParam T - The class of the `DataObject` or `SharedObject`.\n * @internal\n */\nexport type LoadableObjectClass<T extends IFluidLoadable> =\n\t| DataObjectClass<T>\n\t| SharedObjectClass<T>;\n\n/**\n * A class that has a factory that can create a `DataObject` and a\n * constructor that will return the type of the `DataObject`.\n *\n * @typeParam T - The class of the `DataObject`.\n * @internal\n */\nexport type DataObjectClass<T extends IFluidLoadable> = {\n\treadonly factory: IFluidDataStoreFactory;\n} & LoadableObjectCtor<T>;\n\n/**\n * A class that has a factory that can create a DDSes (`SharedObject`s) and a\n * constructor that will return the type of the `DataObject`.\n *\n * @typeParam T - The class of the `SharedObject`.\n * @internal\n */\nexport type SharedObjectClass<T extends IFluidLoadable> = {\n\treadonly getFactory: () => IChannelFactory;\n} & LoadableObjectCtor<T>;\n\n/**\n * An object with a constructor that will return an {@link @fluidframework/core-interfaces#IFluidLoadable}.\n *\n * @typeParam T - The class of the loadable object.\n * @internal\n */\nexport type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[]) => T;\n\n/**\n * Declares the Fluid objects that will be available in the {@link IFluidContainer | Container}.\n *\n * @remarks\n *\n * It includes both the instances of objects that are initially available upon `Container` creation, as well\n * as the types of objects that may be dynamically created throughout the lifetime of the `Container`.\n * @internal\n */\nexport interface ContainerSchema {\n\t/**\n\t * Defines loadable objects that will be created when the {@link IFluidContainer | Container} is first created.\n\t *\n\t * @remarks It uses the key as the id and the value as the loadable object to create.\n\t *\n\t * @example\n\t *\n\t * In the example below two objects will be created when the `Container` is first\n\t * created. One with id \"map1\" that will return a `SharedMap` and the other with\n\t * id \"pair1\" that will return a `KeyValueDataObject`.\n\t *\n\t * ```typescript\n\t * {\n\t * map1: SharedMap,\n\t * pair1: KeyValueDataObject,\n\t * }\n\t * ```\n\t */\n\tinitialObjects: LoadableObjectClassRecord;\n\n\t/**\n\t * Loadable objects that can be created after the initial {@link IFluidContainer | Container} creation.\n\t *\n\t * @remarks\n\t *\n\t * Types defined in `initialObjects` will always be available and are not required to be provided here.\n\t *\n\t * For best practice it's recommended to define all the dynamic types you create even if they are\n\t * included via initialObjects.\n\t */\n\tdynamicObjectTypes?: LoadableObjectClass<any>[];\n}\n\n/**\n * @internal\n */\nexport interface IProvideRootDataObject {\n\treadonly IRootDataObject?: IRootDataObject;\n}\n\n/**\n * Holds the collection of objects that the container was initially created with, as well as provides the ability\n * to dynamically create further objects during usage.\n * @internal\n */\nexport interface IRootDataObject extends IProvideRootDataObject {\n\t/**\n\t * Provides a record of the initial objects defined on creation.\n\t */\n\treadonly initialObjects: LoadableObjectRecord;\n\n\t/**\n\t * Dynamically creates a new detached collaborative object (DDS/DataObject).\n\t *\n\t * @param objectClass - Type of the collaborative object to be created.\n\t *\n\t * @typeParam T - The class of the `DataObject` or `SharedObject`.\n\t */\n\tcreate<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T>;\n}\n\n/**\n * Signature for {@link IMember} change events.\n *\n * @param clientId - A unique identifier for the client.\n * @param member - The service-specific member object for the client.\n *\n * @see See {@link IServiceAudienceEvents} for usage details.\n * @internal\n */\nexport type MemberChangedListener<M extends IMember> = (clientId: string, member: M) => void;\n\n/**\n * Events that trigger when the roster of members in the Fluid session change.\n *\n * @remarks\n *\n * Only changes that would be reflected in the returned map of {@link IServiceAudience}'s\n * {@link IServiceAudience.getMembers} method will emit events.\n *\n * @typeParam M - A service-specific {@link IMember} implementation.\n * @internal\n */\nexport interface IServiceAudienceEvents<M extends IMember> extends IEvent {\n\t/**\n\t * Emitted when a {@link IMember | member}(s) are either added or removed.\n\t *\n\t * @eventProperty\n\t */\n\t(event: \"membersChanged\", listener: () => void): void;\n\n\t/**\n\t * Emitted when a {@link IMember | member} joins the audience.\n\t *\n\t * @eventProperty\n\t */\n\t(event: \"memberAdded\", listener: MemberChangedListener<M>): void;\n\n\t/**\n\t * Emitted when a {@link IMember | member} leaves the audience.\n\t *\n\t * @eventProperty\n\t */\n\t(event: \"memberRemoved\", listener: MemberChangedListener<M>): void;\n}\n\n/**\n * Base interface to be implemented to fetch each service's audience.\n *\n * @remarks\n *\n * The type parameter `M` allows consumers to further extend the client object with service-specific\n * details about the connecting client, such as device information, environment, or a username.\n *\n * @typeParam M - A service-specific {@link IMember} type.\n * @internal\n */\nexport interface IServiceAudience<M extends IMember>\n\textends IEventProvider<IServiceAudienceEvents<M>> {\n\t/**\n\t * Returns an map of all users currently in the Fluid session where key is the userId and the value is the\n\t * member object. The implementation may choose to exclude certain connections from the returned map.\n\t * E.g. ServiceAudience excludes non-interactive connections to represent only the roster of live users.\n\t */\n\tgetMembers(): Map<string, M>;\n\n\t/**\n\t * Returns the current active user on this client once they are connected. Otherwise, returns undefined.\n\t */\n\tgetMyself(): Myself<M> | undefined;\n}\n\n/**\n * Base interface for information for each connection made to the Fluid session.\n *\n * @remarks This interface can be extended to provide additional information specific to each service.\n * @internal\n */\nexport interface IConnection {\n\t/**\n\t * A unique ID for the connection. A single user may have multiple connections, each with a different ID.\n\t */\n\tid: string;\n\n\t/**\n\t * Whether the connection is in read or read/write mode.\n\t */\n\tmode: \"write\" | \"read\";\n}\n\n/**\n * Base interface to be implemented to fetch each service's member.\n *\n * @remarks This interface can be extended by each service to provide additional service-specific user metadata.\n * @internal\n */\nexport interface IMember {\n\t/**\n\t * An ID for the user, unique among each individual user connecting to the session.\n\t */\n\tuserId: string;\n\n\t/**\n\t * The set of connections the user has made, e.g. from multiple tabs or devices.\n\t */\n\tconnections: IConnection[];\n}\n\n/**\n * An extended member object that includes currentConnection\n * @internal\n */\nexport type Myself<M extends IMember = IMember> = M & { currentConnection: string };\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/fluid-static",
|
|
3
|
-
"version": "2.0.0-dev.7.4.0.
|
|
3
|
+
"version": "2.0.0-dev.7.4.0.216897",
|
|
4
4
|
"description": "A tool to enable consumption of Fluid Data Objects without requiring custom container code.",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
"temp-directory": "nyc/.nyc_output"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fluid-internal/client-utils": "2.0.0-dev.7.4.0.
|
|
51
|
-
"@fluidframework/aqueduct": "2.0.0-dev.7.4.0.
|
|
52
|
-
"@fluidframework/container-definitions": "2.0.0-dev.7.4.0.
|
|
53
|
-
"@fluidframework/container-loader": "2.0.0-dev.7.4.0.
|
|
54
|
-
"@fluidframework/container-runtime-definitions": "2.0.0-dev.7.4.0.
|
|
55
|
-
"@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.
|
|
56
|
-
"@fluidframework/datastore-definitions": "2.0.0-dev.7.4.0.
|
|
50
|
+
"@fluid-internal/client-utils": "2.0.0-dev.7.4.0.216897",
|
|
51
|
+
"@fluidframework/aqueduct": "2.0.0-dev.7.4.0.216897",
|
|
52
|
+
"@fluidframework/container-definitions": "2.0.0-dev.7.4.0.216897",
|
|
53
|
+
"@fluidframework/container-loader": "2.0.0-dev.7.4.0.216897",
|
|
54
|
+
"@fluidframework/container-runtime-definitions": "2.0.0-dev.7.4.0.216897",
|
|
55
|
+
"@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.216897",
|
|
56
|
+
"@fluidframework/datastore-definitions": "2.0.0-dev.7.4.0.216897",
|
|
57
57
|
"@fluidframework/protocol-definitions": "^3.0.0",
|
|
58
|
-
"@fluidframework/request-handler": "2.0.0-dev.7.4.0.
|
|
59
|
-
"@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.
|
|
60
|
-
"@fluidframework/runtime-utils": "2.0.0-dev.7.4.0.
|
|
58
|
+
"@fluidframework/request-handler": "2.0.0-dev.7.4.0.216897",
|
|
59
|
+
"@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.216897",
|
|
60
|
+
"@fluidframework/runtime-utils": "2.0.0-dev.7.4.0.216897"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@fluid-tools/build-cli": "^0.28.0",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"@fluidframework/build-tools": "^0.28.0",
|
|
66
66
|
"@fluidframework/eslint-config-fluid": "^3.1.0",
|
|
67
67
|
"@fluidframework/fluid-static-previous": "npm:@fluidframework/fluid-static@2.0.0-internal.7.2.0",
|
|
68
|
-
"@fluidframework/map": "2.0.0-dev.7.4.0.
|
|
69
|
-
"@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.
|
|
70
|
-
"@fluidframework/sequence": "2.0.0-dev.7.4.0.
|
|
68
|
+
"@fluidframework/map": "2.0.0-dev.7.4.0.216897",
|
|
69
|
+
"@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.216897",
|
|
70
|
+
"@fluidframework/sequence": "2.0.0-dev.7.4.0.216897",
|
|
71
71
|
"@microsoft/api-extractor": "^7.38.3",
|
|
72
72
|
"@types/mocha": "^9.1.1",
|
|
73
73
|
"@types/node": "^16.18.38",
|
|
@@ -109,12 +109,13 @@
|
|
|
109
109
|
"build:docs": "fluid-build . --task api",
|
|
110
110
|
"build:esnext": "tsc-multi --config ../../../common/build/build-common/tsc-multi.esm.json",
|
|
111
111
|
"build:test": "tsc-multi --config ./tsc-multi.test.json",
|
|
112
|
+
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
112
113
|
"ci:build:docs": "api-extractor run",
|
|
113
114
|
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
114
115
|
"eslint": "eslint --format stylish src",
|
|
115
116
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
116
117
|
"format": "npm run prettier:fix",
|
|
117
|
-
"lint": "npm run prettier && npm run eslint",
|
|
118
|
+
"lint": "npm run prettier && npm run check:release-tags && npm run eslint",
|
|
118
119
|
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
|
|
119
120
|
"prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
120
121
|
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
package/src/fluidContainer.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type { ContainerSchema, IRootDataObject, LoadableObjectClass } from "./ty
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Extract the type of 'initialObjects' from the given {@link ContainerSchema} type.
|
|
17
|
+
* @internal
|
|
17
18
|
*/
|
|
18
19
|
export type InitialObjects<T extends ContainerSchema> = {
|
|
19
20
|
// Construct a LoadableObjectRecord type by enumerating the keys of
|
|
@@ -30,6 +31,7 @@ export type InitialObjects<T extends ContainerSchema> = {
|
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* Events emitted from {@link IFluidContainer}.
|
|
34
|
+
* @internal
|
|
33
35
|
*/
|
|
34
36
|
export interface IFluidContainerEvents extends IEvent {
|
|
35
37
|
/**
|
|
@@ -94,6 +96,7 @@ export interface IFluidContainerEvents extends IEvent {
|
|
|
94
96
|
* @typeparam TContainerSchema - Used to determine the type of 'initialObjects'.
|
|
95
97
|
*
|
|
96
98
|
* @remarks Note: external implementations of this interface are not supported.
|
|
99
|
+
* @internal
|
|
97
100
|
*/
|
|
98
101
|
export interface IFluidContainer<TContainerSchema extends ContainerSchema = ContainerSchema>
|
|
99
102
|
extends IEventProvider<IFluidContainerEvents> {
|
|
@@ -208,6 +211,9 @@ export interface IFluidContainer<TContainerSchema extends ContainerSchema = Cont
|
|
|
208
211
|
dispose(): void;
|
|
209
212
|
}
|
|
210
213
|
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
211
217
|
export function createFluidContainer<
|
|
212
218
|
TContainerSchema extends ContainerSchema = ContainerSchema,
|
|
213
219
|
>(props: {
|
|
@@ -226,6 +232,7 @@ export function createFluidContainer<
|
|
|
226
232
|
* Note: this implementation is not complete. Consumers who rely on {@link IFluidContainer.attach}
|
|
227
233
|
* will need to utilize or provide a service-specific implementation of this type that implements that method.
|
|
228
234
|
* @deprecated use {@link createFluidContainer} and {@link IFluidContainer} instead
|
|
235
|
+
* @internal
|
|
229
236
|
*/
|
|
230
237
|
export class FluidContainer<TContainerSchema extends ContainerSchema = ContainerSchema>
|
|
231
238
|
extends TypedEventEmitter<IFluidContainerEvents>
|
|
@@ -344,8 +351,6 @@ export class FluidContainer<TContainerSchema extends ContainerSchema = Container
|
|
|
344
351
|
* Gets the underlying {@link @fluidframework/container-definitions#IContainer}.
|
|
345
352
|
*
|
|
346
353
|
* @remarks Used to power debug tooling.
|
|
347
|
-
*
|
|
348
|
-
* @internal
|
|
349
354
|
*/
|
|
350
355
|
public readonly INTERNAL_CONTAINER_DO_NOT_USE?: () => IContainer = () => {
|
|
351
356
|
return this.container;
|
package/src/rootDataObject.ts
CHANGED
|
@@ -143,6 +143,9 @@ class RootDataObject
|
|
|
143
143
|
|
|
144
144
|
const rootDataStoreId = "rootDOId";
|
|
145
145
|
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
146
149
|
export function createDOProviderContainerRuntimeFactory(props: {
|
|
147
150
|
schema: ContainerSchema;
|
|
148
151
|
}): IRuntimeFactory {
|
|
@@ -157,6 +160,7 @@ export function createDOProviderContainerRuntimeFactory(props: {
|
|
|
157
160
|
* This data object is dynamically customized (registry and initial objects) based on the schema provided.
|
|
158
161
|
* to the container runtime factory.
|
|
159
162
|
* @deprecated use {@link createDOProviderContainerRuntimeFactory} instead
|
|
163
|
+
* @internal
|
|
160
164
|
*/
|
|
161
165
|
export class DOProviderContainerRuntimeFactory extends BaseContainerRuntimeFactory {
|
|
162
166
|
private readonly rootDataObjectFactory: DataObjectFactory<
|
package/src/serviceAudience.ts
CHANGED
|
@@ -8,6 +8,9 @@ import { IAudience, IContainer } from "@fluidframework/container-definitions";
|
|
|
8
8
|
import { IClient } from "@fluidframework/protocol-definitions";
|
|
9
9
|
import { IServiceAudience, IServiceAudienceEvents, IMember, Myself } from "./types";
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
11
14
|
export function createServiceAudience<M extends IMember = IMember>(props: {
|
|
12
15
|
container: IContainer;
|
|
13
16
|
createServiceMember: (audienceMember: IClient) => M;
|
|
@@ -31,6 +34,7 @@ export function createServiceAudience<M extends IMember = IMember>(props: {
|
|
|
31
34
|
*
|
|
32
35
|
* @typeParam M - A service-specific {@link IMember} implementation.
|
|
33
36
|
* @deprecated use {@link createServiceAudience} and {@link IServiceAudience} instead
|
|
37
|
+
* @internal
|
|
34
38
|
*/
|
|
35
39
|
export abstract class ServiceAudience<M extends IMember = IMember>
|
|
36
40
|
extends TypedEventEmitter<IServiceAudienceEvents<M>>
|
package/src/types.ts
CHANGED
|
@@ -9,12 +9,14 @@ import { IFluidDataStoreFactory } from "@fluidframework/runtime-definitions";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A mapping of string identifiers to instantiated `DataObject`s or `SharedObject`s.
|
|
12
|
+
* @internal
|
|
12
13
|
*/
|
|
13
14
|
export type LoadableObjectRecord = Record<string, IFluidLoadable>;
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* A mapping of string identifiers to classes that will later be used to instantiate a corresponding `DataObject`
|
|
17
18
|
* or `SharedObject` in a {@link LoadableObjectRecord}.
|
|
19
|
+
* @internal
|
|
18
20
|
*/
|
|
19
21
|
export type LoadableObjectClassRecord = Record<string, LoadableObjectClass<any>>;
|
|
20
22
|
|
|
@@ -22,6 +24,7 @@ export type LoadableObjectClassRecord = Record<string, LoadableObjectClass<any>>
|
|
|
22
24
|
* A class object of `DataObject` or `SharedObject`.
|
|
23
25
|
*
|
|
24
26
|
* @typeParam T - The class of the `DataObject` or `SharedObject`.
|
|
27
|
+
* @internal
|
|
25
28
|
*/
|
|
26
29
|
export type LoadableObjectClass<T extends IFluidLoadable> =
|
|
27
30
|
| DataObjectClass<T>
|
|
@@ -32,6 +35,7 @@ export type LoadableObjectClass<T extends IFluidLoadable> =
|
|
|
32
35
|
* constructor that will return the type of the `DataObject`.
|
|
33
36
|
*
|
|
34
37
|
* @typeParam T - The class of the `DataObject`.
|
|
38
|
+
* @internal
|
|
35
39
|
*/
|
|
36
40
|
export type DataObjectClass<T extends IFluidLoadable> = {
|
|
37
41
|
readonly factory: IFluidDataStoreFactory;
|
|
@@ -42,6 +46,7 @@ export type DataObjectClass<T extends IFluidLoadable> = {
|
|
|
42
46
|
* constructor that will return the type of the `DataObject`.
|
|
43
47
|
*
|
|
44
48
|
* @typeParam T - The class of the `SharedObject`.
|
|
49
|
+
* @internal
|
|
45
50
|
*/
|
|
46
51
|
export type SharedObjectClass<T extends IFluidLoadable> = {
|
|
47
52
|
readonly getFactory: () => IChannelFactory;
|
|
@@ -51,6 +56,7 @@ export type SharedObjectClass<T extends IFluidLoadable> = {
|
|
|
51
56
|
* An object with a constructor that will return an {@link @fluidframework/core-interfaces#IFluidLoadable}.
|
|
52
57
|
*
|
|
53
58
|
* @typeParam T - The class of the loadable object.
|
|
59
|
+
* @internal
|
|
54
60
|
*/
|
|
55
61
|
export type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[]) => T;
|
|
56
62
|
|
|
@@ -61,6 +67,7 @@ export type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[])
|
|
|
61
67
|
*
|
|
62
68
|
* It includes both the instances of objects that are initially available upon `Container` creation, as well
|
|
63
69
|
* as the types of objects that may be dynamically created throughout the lifetime of the `Container`.
|
|
70
|
+
* @internal
|
|
64
71
|
*/
|
|
65
72
|
export interface ContainerSchema {
|
|
66
73
|
/**
|
|
@@ -96,6 +103,9 @@ export interface ContainerSchema {
|
|
|
96
103
|
dynamicObjectTypes?: LoadableObjectClass<any>[];
|
|
97
104
|
}
|
|
98
105
|
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
99
109
|
export interface IProvideRootDataObject {
|
|
100
110
|
readonly IRootDataObject?: IRootDataObject;
|
|
101
111
|
}
|
|
@@ -103,6 +113,7 @@ export interface IProvideRootDataObject {
|
|
|
103
113
|
/**
|
|
104
114
|
* Holds the collection of objects that the container was initially created with, as well as provides the ability
|
|
105
115
|
* to dynamically create further objects during usage.
|
|
116
|
+
* @internal
|
|
106
117
|
*/
|
|
107
118
|
export interface IRootDataObject extends IProvideRootDataObject {
|
|
108
119
|
/**
|
|
@@ -127,6 +138,7 @@ export interface IRootDataObject extends IProvideRootDataObject {
|
|
|
127
138
|
* @param member - The service-specific member object for the client.
|
|
128
139
|
*
|
|
129
140
|
* @see See {@link IServiceAudienceEvents} for usage details.
|
|
141
|
+
* @internal
|
|
130
142
|
*/
|
|
131
143
|
export type MemberChangedListener<M extends IMember> = (clientId: string, member: M) => void;
|
|
132
144
|
|
|
@@ -139,6 +151,7 @@ export type MemberChangedListener<M extends IMember> = (clientId: string, member
|
|
|
139
151
|
* {@link IServiceAudience.getMembers} method will emit events.
|
|
140
152
|
*
|
|
141
153
|
* @typeParam M - A service-specific {@link IMember} implementation.
|
|
154
|
+
* @internal
|
|
142
155
|
*/
|
|
143
156
|
export interface IServiceAudienceEvents<M extends IMember> extends IEvent {
|
|
144
157
|
/**
|
|
@@ -172,6 +185,7 @@ export interface IServiceAudienceEvents<M extends IMember> extends IEvent {
|
|
|
172
185
|
* details about the connecting client, such as device information, environment, or a username.
|
|
173
186
|
*
|
|
174
187
|
* @typeParam M - A service-specific {@link IMember} type.
|
|
188
|
+
* @internal
|
|
175
189
|
*/
|
|
176
190
|
export interface IServiceAudience<M extends IMember>
|
|
177
191
|
extends IEventProvider<IServiceAudienceEvents<M>> {
|
|
@@ -192,6 +206,7 @@ export interface IServiceAudience<M extends IMember>
|
|
|
192
206
|
* Base interface for information for each connection made to the Fluid session.
|
|
193
207
|
*
|
|
194
208
|
* @remarks This interface can be extended to provide additional information specific to each service.
|
|
209
|
+
* @internal
|
|
195
210
|
*/
|
|
196
211
|
export interface IConnection {
|
|
197
212
|
/**
|
|
@@ -209,6 +224,7 @@ export interface IConnection {
|
|
|
209
224
|
* Base interface to be implemented to fetch each service's member.
|
|
210
225
|
*
|
|
211
226
|
* @remarks This interface can be extended by each service to provide additional service-specific user metadata.
|
|
227
|
+
* @internal
|
|
212
228
|
*/
|
|
213
229
|
export interface IMember {
|
|
214
230
|
/**
|
|
@@ -224,5 +240,6 @@ export interface IMember {
|
|
|
224
240
|
|
|
225
241
|
/**
|
|
226
242
|
* An extended member object that includes currentConnection
|
|
243
|
+
* @internal
|
|
227
244
|
*/
|
|
228
245
|
export type Myself<M extends IMember = IMember> = M & { currentConnection: string };
|