@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/dist/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/dist/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":"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;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;AAEjF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,cAAc,IACrD,eAAe,CAAC,CAAC,CAAC,GAClB,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,cAAc,IAAI;IACvD,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;CACzC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,cAAc,IAAI;IACzD,QAAQ,CAAC,UAAU,EAAE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