@fluidframework/fluid-static 2.0.0-internal.3.0.1 → 2.0.0-internal.3.1.0
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/.eslintrc.js +8 -10
- package/.mocharc.js +2 -2
- package/CHANGELOG.md +48 -51
- package/api-extractor.json +2 -2
- package/dist/fluidContainer.d.ts.map +1 -1
- package/dist/fluidContainer.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/rootDataObject.d.ts.map +1 -1
- package/dist/rootDataObject.js +3 -1
- package/dist/rootDataObject.js.map +1 -1
- package/dist/serviceAudience.d.ts.map +1 -1
- package/dist/serviceAudience.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -4
- package/dist/utils.js.map +1 -1
- package/lib/fluidContainer.d.ts.map +1 -1
- package/lib/fluidContainer.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/rootDataObject.d.ts.map +1 -1
- package/lib/rootDataObject.js +3 -1
- package/lib/rootDataObject.js.map +1 -1
- package/lib/serviceAudience.d.ts.map +1 -1
- package/lib/serviceAudience.js.map +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -4
- package/lib/utils.js.map +1 -1
- package/package.json +105 -104
- package/prettier.config.cjs +1 -1
- package/src/fluidContainer.ts +264 -260
- package/src/index.ts +6 -2
- package/src/rootDataObject.ts +152 -148
- package/src/serviceAudience.ts +137 -134
- package/src/types.ts +105 -101
- package/src/utils.ts +30 -42
- package/tsconfig.esnext.json +5 -5
- package/tsconfig.json +10 -16
package/src/fluidContainer.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { TypedEventEmitter } from "@fluidframework/common-utils";
|
|
|
6
6
|
import { IFluidLoadable } from "@fluidframework/core-interfaces";
|
|
7
7
|
import { IEvent, IEventProvider } from "@fluidframework/common-definitions";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
AttachState,
|
|
10
|
+
IContainer,
|
|
11
|
+
ICriticalContainerError,
|
|
12
|
+
ConnectionState,
|
|
13
13
|
} from "@fluidframework/container-definitions";
|
|
14
14
|
import type { IRootDataObject, LoadableObjectClass, LoadableObjectRecord } from "./types";
|
|
15
15
|
|
|
@@ -17,59 +17,59 @@ import type { IRootDataObject, LoadableObjectClass, LoadableObjectRecord } from
|
|
|
17
17
|
* Events emitted from {@link IFluidContainer}.
|
|
18
18
|
*/
|
|
19
19
|
export interface IFluidContainerEvents extends IEvent {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Emitted when the {@link IFluidContainer} completes connecting to the Fluid service.
|
|
22
|
+
*
|
|
23
|
+
* @remarks Reflects connection state changes against the (delta) service acknowledging ops/edits.
|
|
24
|
+
*
|
|
25
|
+
* @see
|
|
26
|
+
*
|
|
27
|
+
* - {@link IFluidContainer.connectionState}
|
|
28
|
+
*
|
|
29
|
+
* - {@link IFluidContainer.connect}
|
|
30
|
+
*/
|
|
31
|
+
(event: "connected", listener: () => void): void;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Emitted when the {@link IFluidContainer} becomes disconnected from the Fluid service.
|
|
35
|
+
*
|
|
36
|
+
* @remarks Reflects connection state changes against the (delta) service acknowledging ops/edits.
|
|
37
|
+
*
|
|
38
|
+
* @see
|
|
39
|
+
*
|
|
40
|
+
* - {@link IFluidContainer.connectionState}
|
|
41
|
+
*
|
|
42
|
+
* - {@link IFluidContainer.disconnect}
|
|
43
|
+
*/
|
|
44
|
+
(event: "disconnected", listener: () => void): void;
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Emitted when all local changes/edits have been acknowledged by the service.
|
|
48
|
+
*
|
|
49
|
+
* @remarks "dirty" event will be emitted when the next local change has been made.
|
|
50
|
+
*
|
|
51
|
+
* @see {@link IFluidContainer.isDirty}
|
|
52
|
+
*/
|
|
53
|
+
(event: "saved", listener: () => void): void;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Emitted when the first local change has been made, following a "saved" event.
|
|
57
|
+
*
|
|
58
|
+
* @remarks "saved" event will be emitted once all local changes have been acknowledged by the service.
|
|
59
|
+
*
|
|
60
|
+
* @see {@link IFluidContainer.isDirty}
|
|
61
|
+
*/
|
|
62
|
+
(event: "dirty", listener: () => void): void;
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Emitted when the {@link IFluidContainer} is closed, which permanently disables it.
|
|
66
|
+
*
|
|
67
|
+
* @remarks Listener parameters:
|
|
68
|
+
*
|
|
69
|
+
* - `error`: If the container was closed due to error (as opposed to an explicit call to
|
|
70
|
+
* {@link IFluidContainer.dispose}), this will contain details about the error that caused it.
|
|
71
|
+
*/
|
|
72
|
+
(event: "disposed", listener: (error?: ICriticalContainerError) => void);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -79,115 +79,115 @@ export interface IFluidContainerEvents extends IEvent {
|
|
|
79
79
|
* @remarks Note: external implementations of this interface are not supported.
|
|
80
80
|
*/
|
|
81
81
|
export interface IFluidContainer extends IEventProvider<IFluidContainerEvents> {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Provides the current connected state of the container
|
|
84
|
+
*/
|
|
85
|
+
readonly connectionState: ConnectionState;
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
87
|
+
/**
|
|
88
|
+
* A container is considered **dirty** if it has local changes that have not yet been acknowledged by the service.
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
*
|
|
92
|
+
* You should always check the `isDirty` flag before closing the container or navigating away from the page.
|
|
93
|
+
* Closing the container while `isDirty === true` may result in the loss of operations that have not yet been
|
|
94
|
+
* acknowledged by the service.
|
|
95
|
+
*
|
|
96
|
+
* A container is considered dirty in the following cases:
|
|
97
|
+
*
|
|
98
|
+
* 1. The container has been created in the detached state, and either it has not been attached yet or it is
|
|
99
|
+
* in the process of being attached (container is in `attaching` state). If container is closed prior to being
|
|
100
|
+
* attached, host may never know if the file was created or not.
|
|
101
|
+
*
|
|
102
|
+
* 2. The container was attached, but it has local changes that have not yet been saved to service endpoint.
|
|
103
|
+
* This occurs as part of normal op flow where pending operation (changes) are awaiting acknowledgement from the
|
|
104
|
+
* service. In some cases this can be due to lack of network connection. If the network connection is down,
|
|
105
|
+
* it needs to be restored for the pending changes to be acknowledged.
|
|
106
|
+
*/
|
|
107
|
+
readonly isDirty: boolean;
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Whether or not the container is disposed, which permanently disables it.
|
|
111
|
+
*/
|
|
112
|
+
readonly disposed: boolean;
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
/**
|
|
115
|
+
* The collection of data objects and Distributed Data Stores (DDSes) that were specified by the schema.
|
|
116
|
+
*
|
|
117
|
+
* @remarks These data objects and DDSes exist for the lifetime of the container.
|
|
118
|
+
*/
|
|
119
|
+
readonly initialObjects: LoadableObjectRecord;
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
/**
|
|
122
|
+
* The current attachment state of the container.
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
*
|
|
126
|
+
* Once a container has been attached, it remains attached.
|
|
127
|
+
* When loading an existing container, it will already be attached.
|
|
128
|
+
*/
|
|
129
|
+
readonly attachState: AttachState;
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
131
|
+
/**
|
|
132
|
+
* A newly created container starts detached from the collaborative service.
|
|
133
|
+
* Calling `attach()` uploads the new container to the service and connects to the collaborative service.
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
*
|
|
137
|
+
* This should only be called when the container is in the
|
|
138
|
+
* {@link @fluidframework/container-definitions#AttachState.Detatched} state.
|
|
139
|
+
*
|
|
140
|
+
* This can be determined by observing {@link IFluidContainer.attachState}.
|
|
141
|
+
*
|
|
142
|
+
* @returns A promise which resolves when the attach is complete, with the string identifier of the container.
|
|
143
|
+
*/
|
|
144
|
+
attach(): Promise<string>;
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Attempts to connect the container to the delta stream and process operations.
|
|
148
|
+
*
|
|
149
|
+
* @throws Will throw an error if connection is unsuccessful.
|
|
150
|
+
*
|
|
151
|
+
* @remarks
|
|
152
|
+
*
|
|
153
|
+
* This should only be called when the container is in the
|
|
154
|
+
* {@link @fluidframework/container-definitions#ConnectionState.Disconnected} state.
|
|
155
|
+
*
|
|
156
|
+
* This can be determined by observing {@link IFluidContainer.connectionState}.
|
|
157
|
+
*/
|
|
158
|
+
connect(): void;
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Disconnects the container from the delta stream and stops processing operations.
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
*
|
|
165
|
+
* This should only be called when the container is in the
|
|
166
|
+
* {@link @fluidframework/container-definitions#ConnectionState.Connected} state.
|
|
167
|
+
*
|
|
168
|
+
* This can be determined by observing {@link IFluidContainer.connectionState}.
|
|
169
|
+
*/
|
|
170
|
+
disconnect(): void;
|
|
171
171
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
172
|
+
/**
|
|
173
|
+
* Create a new data object or Distributed Data Store (DDS) of the specified type.
|
|
174
|
+
*
|
|
175
|
+
* @remarks
|
|
176
|
+
*
|
|
177
|
+
* In order to share the data object or DDS with other
|
|
178
|
+
* collaborators and retrieve it later, store its handle in a collection like a SharedDirectory from your
|
|
179
|
+
* initialObjects.
|
|
180
|
+
*
|
|
181
|
+
* @param objectClass - The class of the `DataObject` or `SharedObject` to create.
|
|
182
|
+
*
|
|
183
|
+
* @typeParam T - The class of the `DataObject` or `SharedObject`.
|
|
184
|
+
*/
|
|
185
|
+
create<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T>;
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Dispose of the container instance, permanently disabling it.
|
|
189
|
+
*/
|
|
190
|
+
dispose(): void;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
/**
|
|
@@ -198,123 +198,127 @@ export interface IFluidContainer extends IEventProvider<IFluidContainerEvents> {
|
|
|
198
198
|
* Note: this implementation is not complete. Consumers who rely on {@link IFluidContainer.attach}
|
|
199
199
|
* will need to utilize or provide a service-specific implementation of this type that implements that method.
|
|
200
200
|
*/
|
|
201
|
-
export class FluidContainer
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
201
|
+
export class FluidContainer
|
|
202
|
+
extends TypedEventEmitter<IFluidContainerEvents>
|
|
203
|
+
implements IFluidContainer
|
|
204
|
+
{
|
|
205
|
+
private readonly connectedHandler = () => this.emit("connected");
|
|
206
|
+
private readonly disconnectedHandler = () => this.emit("disconnected");
|
|
207
|
+
private readonly disposedHandler = (error?: ICriticalContainerError) =>
|
|
208
|
+
this.emit("disposed", error);
|
|
209
|
+
private readonly savedHandler = () => this.emit("saved");
|
|
210
|
+
private readonly dirtyHandler = () => this.emit("dirty");
|
|
207
211
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
public constructor(
|
|
213
|
+
private readonly container: IContainer,
|
|
214
|
+
private readonly rootDataObject: IRootDataObject,
|
|
215
|
+
) {
|
|
216
|
+
super();
|
|
217
|
+
container.on("connected", this.connectedHandler);
|
|
218
|
+
container.on("closed", this.disposedHandler);
|
|
219
|
+
container.on("disconnected", this.disconnectedHandler);
|
|
220
|
+
container.on("saved", this.savedHandler);
|
|
221
|
+
container.on("dirty", this.dirtyHandler);
|
|
222
|
+
}
|
|
219
223
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
/**
|
|
225
|
+
* {@inheritDoc IFluidContainer.isDirty}
|
|
226
|
+
*/
|
|
227
|
+
public get isDirty(): boolean {
|
|
228
|
+
return this.container.isDirty;
|
|
229
|
+
}
|
|
226
230
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
/**
|
|
232
|
+
* {@inheritDoc IFluidContainer.attachState}
|
|
233
|
+
*/
|
|
234
|
+
public get attachState(): AttachState {
|
|
235
|
+
return this.container.attachState;
|
|
236
|
+
}
|
|
233
237
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
/**
|
|
239
|
+
* {@inheritDoc IFluidContainer.disposed}
|
|
240
|
+
*/
|
|
241
|
+
public get disposed() {
|
|
242
|
+
return this.container.closed;
|
|
243
|
+
}
|
|
240
244
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
/**
|
|
246
|
+
* {@inheritDoc IFluidContainer.connectionState}
|
|
247
|
+
*/
|
|
248
|
+
public get connectionState(): ConnectionState {
|
|
249
|
+
return this.container.connectionState;
|
|
250
|
+
}
|
|
247
251
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
/**
|
|
253
|
+
* {@inheritDoc IFluidContainer.initialObjects}
|
|
254
|
+
*/
|
|
255
|
+
public get initialObjects() {
|
|
256
|
+
return this.rootDataObject.initialObjects;
|
|
257
|
+
}
|
|
254
258
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
259
|
+
/**
|
|
260
|
+
* Incomplete base implementation of {@link IFluidContainer.attach}.
|
|
261
|
+
*
|
|
262
|
+
* @remarks
|
|
263
|
+
*
|
|
264
|
+
* Note: this implementation will unconditionally throw.
|
|
265
|
+
* Consumers who rely on this will need to utilize or provide a service specific implementation of this base type
|
|
266
|
+
* that provides an implementation of this method.
|
|
267
|
+
*
|
|
268
|
+
* The reason is because externally we are presenting a separation between the service and the `FluidContainer`,
|
|
269
|
+
* but internally this separation is not there.
|
|
270
|
+
*/
|
|
271
|
+
public async attach(): Promise<string> {
|
|
272
|
+
if (this.container.attachState !== AttachState.Detached) {
|
|
273
|
+
throw new Error("Cannot attach container. Container is not in detached state.");
|
|
274
|
+
}
|
|
275
|
+
throw new Error("Cannot attach container. Attach method not provided.");
|
|
276
|
+
}
|
|
273
277
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
/**
|
|
279
|
+
* {@inheritDoc IFluidContainer.connect}
|
|
280
|
+
*/
|
|
281
|
+
public async connect(): Promise<void> {
|
|
282
|
+
this.container.connect?.();
|
|
283
|
+
}
|
|
280
284
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
/**
|
|
286
|
+
* {@inheritDoc IFluidContainer.connect}
|
|
287
|
+
*/
|
|
288
|
+
public async disconnect(): Promise<void> {
|
|
289
|
+
this.container.disconnect?.();
|
|
290
|
+
}
|
|
287
291
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
/**
|
|
293
|
+
* {@inheritDoc IFluidContainer.create}
|
|
294
|
+
*/
|
|
295
|
+
public async create<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T> {
|
|
296
|
+
return this.rootDataObject.create(objectClass);
|
|
297
|
+
}
|
|
294
298
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
299
|
+
/**
|
|
300
|
+
* {@inheritDoc IFluidContainer.dispose}
|
|
301
|
+
*/
|
|
302
|
+
public dispose() {
|
|
303
|
+
this.container.close();
|
|
304
|
+
this.container.off("connected", this.connectedHandler);
|
|
305
|
+
this.container.off("closed", this.disposedHandler);
|
|
306
|
+
this.container.off("disconnected", this.disconnectedHandler);
|
|
307
|
+
this.container.off("saved", this.savedHandler);
|
|
308
|
+
this.container.off("dirty", this.dirtyHandler);
|
|
309
|
+
}
|
|
306
310
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
311
|
+
/**
|
|
312
|
+
* FOR INTERNAL USE ONLY. NOT FOR EXTERNAL USE.
|
|
313
|
+
* We make no stability guarantees here whatsoever.
|
|
314
|
+
*
|
|
315
|
+
* Gets the underlying {@link @fluidframework/container-definitions#IContainer}.
|
|
316
|
+
*
|
|
317
|
+
* @remarks Used to power debug tooling.
|
|
318
|
+
*
|
|
319
|
+
* @internal
|
|
320
|
+
*/
|
|
321
|
+
public readonly INTERNAL_CONTAINER_DO_NOT_USE?: () => IContainer = () => {
|
|
322
|
+
return this.container;
|
|
323
|
+
};
|
|
320
324
|
}
|
package/src/index.ts
CHANGED
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
export { FluidContainer, IFluidContainer, IFluidContainerEvents } from "./fluidContainer";
|
|
13
|
-
export {
|
|
13
|
+
export {
|
|
14
|
+
DOProviderContainerRuntimeFactory,
|
|
15
|
+
RootDataObject,
|
|
16
|
+
RootDataObjectProps,
|
|
17
|
+
} from "./rootDataObject";
|
|
14
18
|
export { ServiceAudience } from "./serviceAudience";
|
|
15
19
|
export {
|
|
16
20
|
ContainerSchema,
|
|
@@ -26,5 +30,5 @@ export {
|
|
|
26
30
|
LoadableObjectRecord,
|
|
27
31
|
MemberChangedListener,
|
|
28
32
|
SharedObjectClass,
|
|
29
|
-
|
|
33
|
+
Myself,
|
|
30
34
|
} from "./types";
|