@fluidframework/container-definitions 2.0.0-dev.6.4.0.192049 → 2.0.0-dev.7.2.0.203917
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/CHANGELOG.md +92 -0
- package/api-extractor.json +1 -1
- package/api-report/container-definitions.api.md +530 -0
- package/dist/audience.d.ts +2 -0
- package/dist/audience.d.ts.map +1 -1
- package/dist/audience.js.map +1 -1
- package/dist/browserPackage.d.ts +3 -0
- package/dist/browserPackage.d.ts.map +1 -1
- package/dist/browserPackage.js +1 -0
- package/dist/browserPackage.js.map +1 -1
- package/dist/container-definitions-alpha.d.ts +1447 -0
- package/dist/container-definitions-beta.d.ts +1442 -0
- package/dist/container-definitions-public.d.ts +1442 -0
- package/dist/container-definitions-untrimmed.d.ts +1447 -0
- package/dist/deltas.d.ts +15 -3
- package/dist/deltas.d.ts.map +1 -1
- package/dist/deltas.js.map +1 -1
- package/dist/error.d.ts +9 -2
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +3 -1
- package/dist/error.js.map +1 -1
- package/dist/fluidModule.d.ts +3 -0
- package/dist/fluidModule.d.ts.map +1 -1
- package/dist/fluidModule.js.map +1 -1
- package/dist/fluidPackage.d.ts +16 -0
- package/dist/fluidPackage.d.ts.map +1 -1
- package/dist/fluidPackage.js +8 -0
- package/dist/fluidPackage.js.map +1 -1
- package/dist/loader.d.ts +35 -18
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +2 -1
- package/dist/loader.js.map +1 -1
- package/dist/runtime.d.ts +16 -7
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +5 -1
- package/dist/runtime.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/audience.d.ts +2 -0
- package/lib/audience.d.ts.map +1 -1
- package/lib/audience.js.map +1 -1
- package/lib/browserPackage.d.ts +3 -0
- package/lib/browserPackage.d.ts.map +1 -1
- package/lib/browserPackage.js +1 -0
- package/lib/browserPackage.js.map +1 -1
- package/lib/deltas.d.ts +15 -3
- package/lib/deltas.d.ts.map +1 -1
- package/lib/deltas.js.map +1 -1
- package/lib/error.d.ts +9 -2
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +2 -0
- package/lib/error.js.map +1 -1
- package/lib/fluidModule.d.ts +3 -0
- package/lib/fluidModule.d.ts.map +1 -1
- package/lib/fluidModule.js.map +1 -1
- package/lib/fluidPackage.d.ts +16 -0
- package/lib/fluidPackage.d.ts.map +1 -1
- package/lib/fluidPackage.js +8 -0
- package/lib/fluidPackage.js.map +1 -1
- package/lib/loader.d.ts +35 -18
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.js +1 -0
- package/lib/loader.js.map +1 -1
- package/lib/runtime.d.ts +16 -7
- package/lib/runtime.d.ts.map +1 -1
- package/lib/runtime.js +4 -0
- package/lib/runtime.js.map +1 -1
- package/package.json +16 -17
- package/src/audience.ts +4 -0
- package/src/browserPackage.ts +3 -0
- package/src/deltas.ts +23 -2
- package/src/error.ts +9 -1
- package/src/fluidModule.ts +3 -0
- package/src/fluidPackage.ts +16 -0
- package/src/loader.ts +37 -16
- package/src/runtime.ts +16 -7
package/dist/deltas.d.ts
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { IDisposable, IEventProvider, IEvent, IErrorEvent } from "@fluidframework/core-interfaces";
|
|
5
|
+
import { IDisposable, IEventProvider, IEvent, IErrorEvent, IErrorBase } from "@fluidframework/core-interfaces";
|
|
6
6
|
import { IAnyDriverError } from "@fluidframework/driver-definitions";
|
|
7
7
|
import { IClientConfiguration, IClientDetails, IDocumentMessage, ISequencedDocumentMessage, ISignalMessage, ITokenClaims } from "@fluidframework/protocol-definitions";
|
|
8
8
|
/**
|
|
9
9
|
* Contract representing the result of a newly established connection to the server for syncing deltas.
|
|
10
|
+
* @public
|
|
10
11
|
*/
|
|
11
12
|
export interface IConnectionDetails {
|
|
12
13
|
clientId: string;
|
|
@@ -26,6 +27,7 @@ export interface IConnectionDetails {
|
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Contract supporting delivery of outbound messages to the server
|
|
30
|
+
* @public
|
|
29
31
|
*/
|
|
30
32
|
export interface IDeltaSender {
|
|
31
33
|
/**
|
|
@@ -35,6 +37,7 @@ export interface IDeltaSender {
|
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Events emitted by {@link IDeltaManager}.
|
|
40
|
+
* @public
|
|
38
41
|
*/
|
|
39
42
|
export interface IDeltaManagerEvents extends IEvent {
|
|
40
43
|
/**
|
|
@@ -96,10 +99,14 @@ export interface IDeltaManagerEvents extends IEvent {
|
|
|
96
99
|
*
|
|
97
100
|
* - `readonly`: Whether or not the delta manager is now read-only.
|
|
98
101
|
*/
|
|
99
|
-
(event: "readonly", listener: (readonly: boolean
|
|
102
|
+
(event: "readonly", listener: (readonly: boolean, readonlyConnectionReason?: {
|
|
103
|
+
reason: string;
|
|
104
|
+
error?: IErrorBase;
|
|
105
|
+
}) => void): any;
|
|
100
106
|
}
|
|
101
107
|
/**
|
|
102
108
|
* Manages the transmission of ops between the runtime and storage.
|
|
109
|
+
* @public
|
|
103
110
|
*/
|
|
104
111
|
export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender {
|
|
105
112
|
/**
|
|
@@ -167,6 +174,7 @@ export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>
|
|
|
167
174
|
}
|
|
168
175
|
/**
|
|
169
176
|
* Events emitted by {@link IDeltaQueue}.
|
|
177
|
+
* @public
|
|
170
178
|
*/
|
|
171
179
|
export interface IDeltaQueueEvents<T> extends IErrorEvent {
|
|
172
180
|
/**
|
|
@@ -206,6 +214,7 @@ export interface IDeltaQueueEvents<T> extends IErrorEvent {
|
|
|
206
214
|
}
|
|
207
215
|
/**
|
|
208
216
|
* Queue of ops to be sent to or processed from storage
|
|
217
|
+
* @public
|
|
209
218
|
*/
|
|
210
219
|
export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, IDisposable {
|
|
211
220
|
/**
|
|
@@ -248,7 +257,10 @@ export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, ID
|
|
|
248
257
|
duration: number;
|
|
249
258
|
}>;
|
|
250
259
|
}
|
|
251
|
-
|
|
260
|
+
/**
|
|
261
|
+
* @public
|
|
262
|
+
*/
|
|
263
|
+
export type ReadOnlyInfo = {
|
|
252
264
|
readonly readonly: false | undefined;
|
|
253
265
|
} | {
|
|
254
266
|
readonly readonly: true;
|
package/dist/deltas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deltas.d.ts","sourceRoot":"","sources":["../src/deltas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"deltas.d.ts","sourceRoot":"","sources":["../src/deltas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,WAAW,EACX,cAAc,EACd,MAAM,EACN,WAAW,EACX,UAAU,EACV,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EACN,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,MAAM,sCAAsC,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,oBAAoB,EAAE,oBAAoB,CAAC;IAE3C;;;;;;;;;OASG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7C;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACd;AAED;;;GAG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AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {
|
|
1
|
+
{"version":3,"file":"deltas.js","sourceRoot":"","sources":["../src/deltas.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 {\n\tIDisposable,\n\tIEventProvider,\n\tIEvent,\n\tIErrorEvent,\n\tIErrorBase,\n} from \"@fluidframework/core-interfaces\";\nimport { IAnyDriverError } from \"@fluidframework/driver-definitions\";\nimport {\n\tIClientConfiguration,\n\tIClientDetails,\n\tIDocumentMessage,\n\tISequencedDocumentMessage,\n\tISignalMessage,\n\tITokenClaims,\n} from \"@fluidframework/protocol-definitions\";\n\n/**\n * Contract representing the result of a newly established connection to the server for syncing deltas.\n * @public\n */\nexport interface IConnectionDetails {\n\tclientId: string;\n\tclaims: ITokenClaims;\n\tserviceConfiguration: IClientConfiguration;\n\n\t/**\n\t * Last known sequence number to ordering service at the time of connection.\n\t *\n\t * @remarks\n\t *\n\t * It may lap actual last sequence number (quite a bit, if container is very active).\n\t * But it's the best information for client to figure out how far it is behind, at least\n\t * for \"read\" connections. \"write\" connections may use own \"join\" op to similar information,\n\t * that is likely to be more up-to-date.\n\t */\n\tcheckpointSequenceNumber: number | undefined;\n}\n\n/**\n * Contract supporting delivery of outbound messages to the server\n * @public\n */\nexport interface IDeltaSender {\n\t/**\n\t * Flush all pending messages through the outbound queue\n\t */\n\tflush(): void;\n}\n\n/**\n * Events emitted by {@link IDeltaManager}.\n * @public\n */\nexport interface IDeltaManagerEvents extends IEvent {\n\t/**\n\t * @deprecated No replacement API recommended.\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"prepareSend\", listener: (messageBuffer: any[]) => void);\n\n\t/**\n\t * @deprecated No replacement API recommended.\n\t */\n\t(event: \"submitOp\", listener: (message: IDocumentMessage) => void);\n\n\t/**\n\t * Emitted immediately after processing an incoming operation (op).\n\t *\n\t * @remarks\n\t *\n\t * Note: this event is not intended for general use.\n\t * Prefer to listen to events on the appropriate ultimate recipients of the ops, rather than listening to the\n\t * ops directly on the {@link IDeltaManager}.\n\t *\n\t * Listener parameters:\n\t *\n\t * - `message`: The op that was processed.\n\t *\n\t * - `processingTime`: The amount of time it took to process the inbound operation (op), expressed in milliseconds.\n\t */\n\t(event: \"op\", listener: (message: ISequencedDocumentMessage, processingTime: number) => void);\n\n\t/**\n\t * Emitted periodically with latest information on network roundtrip latency\n\t */\n\t(event: \"pong\", listener: (latency: number) => void);\n\n\t/**\n\t * Emitted when the {@link IDeltaManager} completes connecting to the Fluid service.\n\t *\n\t * @remarks\n\t * This occurs once we've received the connect_document_success message from the server,\n\t * and happens prior to the client's join message (if there is a join message).\n\t *\n\t * Listener parameters:\n\t *\n\t * - `details`: Connection metadata.\n\t *\n\t * - `opsBehind`: An estimate of far behind the client is relative to the service in terms of ops.\n\t * Will not be specified if an estimate cannot be determined.\n\t */\n\t(event: \"connect\", listener: (details: IConnectionDetails, opsBehind?: number) => void);\n\n\t/**\n\t * Emitted when the {@link IDeltaManager} becomes disconnected from the Fluid service.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `reason`: Describes the reason for which the delta manager was disconnected.\n\t * - `error` : error if any for the disconnect.\n\t */\n\t(event: \"disconnect\", listener: (reason: string, error?: IAnyDriverError) => void);\n\n\t/**\n\t * Emitted when read/write permissions change.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `readonly`: Whether or not the delta manager is now read-only.\n\t */\n\t(\n\t\tevent: \"readonly\",\n\t\tlistener: (\n\t\t\treadonly: boolean,\n\t\t\treadonlyConnectionReason?: { reason: string; error?: IErrorBase },\n\t\t) => void,\n\t);\n}\n\n/**\n * Manages the transmission of ops between the runtime and storage.\n * @public\n */\nexport interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender {\n\t/**\n\t * The queue of inbound delta messages\n\t */\n\treadonly inbound: IDeltaQueue<T>;\n\n\t/**\n\t * The queue of outbound delta messages\n\t */\n\treadonly outbound: IDeltaQueue<U[]>;\n\n\t/**\n\t * The queue of inbound delta signals\n\t */\n\treadonly inboundSignal: IDeltaQueue<ISignalMessage>;\n\n\t/**\n\t * The current minimum sequence number\n\t */\n\treadonly minimumSequenceNumber: number;\n\n\t/**\n\t * The last sequence number processed by the delta manager\n\t */\n\treadonly lastSequenceNumber: number;\n\n\t/**\n\t * The last message processed by the delta manager\n\t */\n\treadonly lastMessage: ISequencedDocumentMessage | undefined;\n\n\t/**\n\t * The latest sequence number the delta manager is aware of\n\t */\n\treadonly lastKnownSeqNumber: number;\n\n\t/**\n\t * The initial sequence number set when attaching the op handler\n\t */\n\treadonly initialSequenceNumber: number;\n\n\t/**\n\t * Tells if current connection has checkpoint information.\n\t * I.e. we know how far behind the client was at the time of establishing connection\n\t */\n\treadonly hasCheckpointSequenceNumber: boolean;\n\n\t/**\n\t * Details of client\n\t */\n\treadonly clientDetails: IClientDetails;\n\n\t/**\n\t * Protocol version being used to communicate with the service\n\t */\n\treadonly version: string;\n\n\t/**\n\t * Max message size allowed to the delta manager\n\t */\n\treadonly maxMessageSize: number;\n\n\t/**\n\t * Service configuration provided by the service.\n\t */\n\treadonly serviceConfiguration: IClientConfiguration | undefined;\n\n\t/**\n\t * Flag to indicate whether the client can write or not.\n\t */\n\treadonly active: boolean;\n\n\treadonly readOnlyInfo: ReadOnlyInfo;\n\n\t/**\n\t * Submit a signal to the service to be broadcast to other connected clients, but not persisted\n\t */\n\t// TODO: use `unknown` instead (API breaking)\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tsubmitSignal(content: any): void;\n}\n\n/**\n * Events emitted by {@link IDeltaQueue}.\n * @public\n */\nexport interface IDeltaQueueEvents<T> extends IErrorEvent {\n\t/**\n\t * Emitted when a task is enqueued.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `task`: The task being enqueued.\n\t */\n\t(event: \"push\", listener: (task: T) => void);\n\n\t/**\n\t * Emitted immediately after processing an enqueued task and removing it from the queue.\n\t *\n\t * @remarks\n\t *\n\t * Note: this event is not intended for general use.\n\t * Prefer to listen to events on the appropriate ultimate recipients of the ops, rather than listening to the\n\t * ops directly on the {@link IDeltaQueue}.\n\t *\n\t * Listener parameters:\n\t *\n\t * - `task`: The task that was processed.\n\t */\n\t(event: \"op\", listener: (task: T) => void);\n\n\t/**\n\t * Emitted when the queue of tasks to process is emptied.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `count`: The number of events (`T`) processed before becoming idle.\n\t *\n\t * - `duration`: The amount of time it took to process elements (in milliseconds).\n\t *\n\t * @see {@link IDeltaQueue.idle}\n\t */\n\t(event: \"idle\", listener: (count: number, duration: number) => void);\n}\n\n/**\n * Queue of ops to be sent to or processed from storage\n * @public\n */\nexport interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, IDisposable {\n\t/**\n\t * Flag indicating whether or not the queue was paused\n\t */\n\tpaused: boolean;\n\n\t/**\n\t * The number of messages remaining in the queue\n\t */\n\tlength: number;\n\n\t/**\n\t * Flag indicating whether or not the queue is idle.\n\t * I.e. there are no remaining messages to processes.\n\t */\n\tidle: boolean;\n\n\t/**\n\t * Pauses processing on the queue.\n\t *\n\t * @returns A promise which resolves when processing has been paused.\n\t */\n\tpause(): Promise<void>;\n\n\t/**\n\t * Resumes processing on the queue\n\t */\n\tresume(): void;\n\n\t/**\n\t * Peeks at the next message in the queue\n\t */\n\tpeek(): T | undefined;\n\n\t/**\n\t * Returns all the items in the queue as an array. Does not remove them from the queue.\n\t */\n\ttoArray(): T[];\n\n\t/**\n\t * returns number of ops processed and time it took to process these ops.\n\t * Zeros if queue did not process anything (had no messages, was paused or had hit an error before)\n\t */\n\twaitTillProcessingDone(): Promise<{ count: number; duration: number }>;\n}\n\n/**\n * @public\n */\nexport type ReadOnlyInfo =\n\t| {\n\t\t\treadonly readonly: false | undefined;\n\t }\n\t| {\n\t\t\treadonly readonly: true;\n\n\t\t\t/**\n\t\t\t * Read-only because `forceReadOnly()` was called.\n\t\t\t */\n\t\t\treadonly forced: boolean;\n\n\t\t\t/**\n\t\t\t * Read-only because client does not have write permissions for document.\n\t\t\t */\n\t\t\treadonly permissions: boolean | undefined;\n\n\t\t\t/**\n\t\t\t * Read-only with no delta stream connection.\n\t\t\t */\n\t\t\treadonly storageOnly: boolean;\n\n\t\t\t/**\n\t\t\t * Extra info on why connection to delta stream is not possible.\n\t\t\t *\n\t\t\t * @remarks This info might be provided if {@link ReadOnlyInfo.storageOnly} is set to `true`.\n\t\t\t */\n\t\t\treadonly storageOnlyReason?: string;\n\t };\n"]}
|
package/dist/error.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { IErrorBase } from "@fluidframework/core-interfaces";
|
|
6
6
|
/**
|
|
7
7
|
* Different error types the ClientSession may report out to the Host.
|
|
8
|
+
* @public
|
|
8
9
|
*/
|
|
9
10
|
export declare const ContainerErrorTypes: {
|
|
10
11
|
/**
|
|
@@ -18,11 +19,15 @@ export declare const ContainerErrorTypes: {
|
|
|
18
19
|
readonly dataProcessingError: "dataProcessingError";
|
|
19
20
|
readonly usageError: "usageError";
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type ContainerErrorTypes = (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];
|
|
22
26
|
/**
|
|
23
27
|
* Different error types the Container may report out to the Host.
|
|
24
28
|
*
|
|
25
29
|
* @deprecated ContainerErrorType is being deprecated as a public export. Please use {@link ContainerErrorTypes#clientSessionExpiredError} instead.
|
|
30
|
+
* @public
|
|
26
31
|
*/
|
|
27
32
|
export declare enum ContainerErrorType {
|
|
28
33
|
/**
|
|
@@ -53,6 +58,7 @@ export declare enum ContainerErrorType {
|
|
|
53
58
|
}
|
|
54
59
|
/**
|
|
55
60
|
* Represents warnings raised on container.
|
|
61
|
+
* @public
|
|
56
62
|
*/
|
|
57
63
|
export interface ContainerWarning extends IErrorBase {
|
|
58
64
|
/**
|
|
@@ -77,6 +83,7 @@ export interface ContainerWarning extends IErrorBase {
|
|
|
77
83
|
*
|
|
78
84
|
* - {@link @fluidframework/routerlicious-driver#RouterliciousErrorType}
|
|
79
85
|
*
|
|
86
|
+
* @public
|
|
80
87
|
*/
|
|
81
|
-
export
|
|
88
|
+
export type ICriticalContainerError = IErrorBase;
|
|
82
89
|
//# sourceMappingURL=error.d.ts.map
|
package/dist/error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmB,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE9E
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmB,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAE/B;;;OAGG;;;;;;;CAEM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjG;;;;;GAKG;AACH,oBAAY,kBAAkB;IAC7B;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;OAEG;IACH,UAAU,eAAe;IAEzB;;;OAGG;IACH,yBAAyB,8BAA8B;CACvD;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IACnD;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC"}
|
package/dist/error.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.ContainerErrorType = exports.ContainerErrorTypes = void 0;
|
|
|
8
8
|
const core_interfaces_1 = require("@fluidframework/core-interfaces");
|
|
9
9
|
/**
|
|
10
10
|
* Different error types the ClientSession may report out to the Host.
|
|
11
|
+
* @public
|
|
11
12
|
*/
|
|
12
13
|
exports.ContainerErrorTypes = {
|
|
13
14
|
...core_interfaces_1.FluidErrorTypes,
|
|
@@ -21,6 +22,7 @@ exports.ContainerErrorTypes = {
|
|
|
21
22
|
* Different error types the Container may report out to the Host.
|
|
22
23
|
*
|
|
23
24
|
* @deprecated ContainerErrorType is being deprecated as a public export. Please use {@link ContainerErrorTypes#clientSessionExpiredError} instead.
|
|
25
|
+
* @public
|
|
24
26
|
*/
|
|
25
27
|
var ContainerErrorType;
|
|
26
28
|
(function (ContainerErrorType) {
|
|
@@ -49,5 +51,5 @@ var ContainerErrorType;
|
|
|
49
51
|
* aids in safely deleting unused objects.
|
|
50
52
|
*/
|
|
51
53
|
ContainerErrorType["clientSessionExpiredError"] = "clientSessionExpiredError";
|
|
52
|
-
})(ContainerErrorType
|
|
54
|
+
})(ContainerErrorType || (exports.ContainerErrorType = ContainerErrorType = {}));
|
|
53
55
|
//# sourceMappingURL=error.js.map
|
package/dist/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,qEAA8E;AAE9E
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,qEAA8E;AAE9E;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IAClC,GAAG,iCAAe;IAClB;;;OAGG;IACH,yBAAyB,EAAE,2BAA2B;CAC7C,CAAC;AAOX;;;;;GAKG;AACH,IAAY,kBA+BX;AA/BD,WAAY,kBAAkB;IAC7B;;OAEG;IACH,mDAA6B,CAAA;IAE7B;;OAEG;IACH,yDAAmC,CAAA;IAEnC;;OAEG;IACH,iEAA2C,CAAA;IAE3C;;OAEG;IACH,iEAA2C,CAAA;IAE3C;;OAEG;IACH,+CAAyB,CAAA;IAEzB;;;OAGG;IACH,6EAAuD,CAAA;AACxD,CAAC,EA/BW,kBAAkB,kCAAlB,kBAAkB,QA+B7B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { FluidErrorTypes, IErrorBase } from \"@fluidframework/core-interfaces\";\n\n/**\n * Different error types the ClientSession may report out to the Host.\n * @public\n */\nexport const ContainerErrorTypes = {\n\t...FluidErrorTypes,\n\t/**\n\t * Error indicating an client session has expired. Currently this only happens when GC is allowed on a document and\n\t * aids in safely deleting unused objects.\n\t */\n\tclientSessionExpiredError: \"clientSessionExpiredError\",\n} as const;\n\n/**\n * @public\n */\nexport type ContainerErrorTypes = (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];\n\n/**\n * Different error types the Container may report out to the Host.\n *\n * @deprecated ContainerErrorType is being deprecated as a public export. Please use {@link ContainerErrorTypes#clientSessionExpiredError} instead.\n * @public\n */\nexport enum ContainerErrorType {\n\t/**\n\t * Some error, most likely an exception caught by runtime and propagated to container as critical error\n\t */\n\tgenericError = \"genericError\",\n\n\t/**\n\t * Throttling error from server. Server is busy and is asking not to reconnect for some time\n\t */\n\tthrottlingError = \"throttlingError\",\n\n\t/**\n\t * Data loss error detected by Container / DeltaManager. Likely points to storage issue.\n\t */\n\tdataCorruptionError = \"dataCorruptionError\",\n\n\t/**\n\t * Error encountered when processing an operation. May correlate with data corruption.\n\t */\n\tdataProcessingError = \"dataProcessingError\",\n\n\t/**\n\t * Error indicating an API is being used improperly resulting in an invalid operation.\n\t */\n\tusageError = \"usageError\",\n\n\t/**\n\t * Error indicating an client session has expired. Currently this only happens when GC is allowed on a document and\n\t * aids in safely deleting unused objects.\n\t */\n\tclientSessionExpiredError = \"clientSessionExpiredError\",\n}\n\n/**\n * Represents warnings raised on container.\n * @public\n */\nexport interface ContainerWarning extends IErrorBase {\n\t/**\n\t * Whether this error has already been logged. Used to avoid logging errors twice.\n\t *\n\t * @defaultValue `false`\n\t */\n\tlogged?: boolean;\n}\n\n/**\n * Represents errors raised on container.\n *\n * @see\n *\n * The following are commonly thrown error types, but `errorType` could be any string.\n *\n * - {@link @fluidframework/core-interfaces#ContainerErrorType}\n *\n * - {@link @fluidframework/driver-definitions#DriverErrorType}\n *\n * - {@link @fluidframework/odsp-driver-definitions#OdspErrorType}\n *\n * - {@link @fluidframework/routerlicious-driver#RouterliciousErrorType}\n *\n * @public\n */\nexport type ICriticalContainerError = IErrorBase;\n"]}
|
package/dist/fluidModule.d.ts
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
import { FluidObject } from "@fluidframework/core-interfaces";
|
|
6
6
|
import { IProvideFluidCodeDetailsComparer } from "./fluidPackage";
|
|
7
7
|
import { IRuntimeFactory } from "./runtime";
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
8
11
|
export interface IFluidModule {
|
|
9
12
|
fluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;
|
|
10
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluidModule.d.ts","sourceRoot":"","sources":["../src/fluidModule.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC5B,WAAW,EAAE,WAAW,CAAC,eAAe,GAAG,gCAAgC,CAAC,CAAC;CAC7E"}
|
|
1
|
+
{"version":3,"file":"fluidModule.d.ts","sourceRoot":"","sources":["../src/fluidModule.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,WAAW,EAAE,WAAW,CAAC,eAAe,GAAG,gCAAgC,CAAC,CAAC;CAC7E"}
|
package/dist/fluidModule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluidModule.js","sourceRoot":"","sources":["../src/fluidModule.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 { FluidObject } from \"@fluidframework/core-interfaces\";\nimport { IProvideFluidCodeDetailsComparer } from \"./fluidPackage\";\nimport { IRuntimeFactory } from \"./runtime\";\n\nexport interface IFluidModule {\n\tfluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"fluidModule.js","sourceRoot":"","sources":["../src/fluidModule.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 { FluidObject } from \"@fluidframework/core-interfaces\";\nimport { IProvideFluidCodeDetailsComparer } from \"./fluidPackage\";\nimport { IRuntimeFactory } from \"./runtime\";\n\n/**\n * @public\n */\nexport interface IFluidModule {\n\tfluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;\n}\n"]}
|
package/dist/fluidPackage.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Specifies an environment on Fluid property of a IFluidPackage.
|
|
7
|
+
* @public
|
|
7
8
|
*/
|
|
8
9
|
export interface IFluidPackageEnvironment {
|
|
9
10
|
/**
|
|
@@ -30,6 +31,7 @@ export interface IFluidPackageEnvironment {
|
|
|
30
31
|
* While compatible with the npm package format it is not necessary that that package is an
|
|
31
32
|
* npm package:
|
|
32
33
|
* {@link https://stackoverflow.com/questions/10065564/add-custom-metadata-or-config-to-package-json-is-it-valid}
|
|
34
|
+
* @public
|
|
33
35
|
*/
|
|
34
36
|
export interface IFluidPackage {
|
|
35
37
|
/**
|
|
@@ -56,16 +58,19 @@ export interface IFluidPackage {
|
|
|
56
58
|
/**
|
|
57
59
|
* Check if the package.json defines a Fluid package
|
|
58
60
|
* @param pkg - the package json data to check if it is a Fluid package.
|
|
61
|
+
* @public
|
|
59
62
|
*/
|
|
60
63
|
export declare const isFluidPackage: (pkg: unknown) => pkg is Readonly<IFluidPackage>;
|
|
61
64
|
/**
|
|
62
65
|
* Package manager configuration. Provides a key value mapping of config values
|
|
66
|
+
* @public
|
|
63
67
|
*/
|
|
64
68
|
export interface IFluidCodeDetailsConfig {
|
|
65
69
|
readonly [key: string]: string;
|
|
66
70
|
}
|
|
67
71
|
/**
|
|
68
72
|
* Data structure used to describe the code to load on the Fluid document
|
|
73
|
+
* @public
|
|
69
74
|
*/
|
|
70
75
|
export interface IFluidCodeDetails {
|
|
71
76
|
/**
|
|
@@ -81,13 +86,24 @@ export interface IFluidCodeDetails {
|
|
|
81
86
|
*/
|
|
82
87
|
readonly config?: IFluidCodeDetailsConfig;
|
|
83
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Determines if any object is an IFluidCodeDetails
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
84
93
|
export declare const isFluidCodeDetails: (details: unknown) => details is Readonly<IFluidCodeDetails>;
|
|
94
|
+
/**
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
85
97
|
export declare const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer;
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
86
101
|
export interface IProvideFluidCodeDetailsComparer {
|
|
87
102
|
readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
|
|
88
103
|
}
|
|
89
104
|
/**
|
|
90
105
|
* Provides capability to compare Fluid code details.
|
|
106
|
+
* @public
|
|
91
107
|
*/
|
|
92
108
|
export interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
|
|
93
109
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluidPackage.d.ts","sourceRoot":"","sources":["../src/fluidPackage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"fluidPackage.d.ts","sourceRoot":"","sources":["../src/fluidPackage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACxC;;;OAGG;IACH,CAAC,MAAM,EAAE,MAAM,GACZ,SAAS,GACT;QACA;;;;WAIG;QACH,KAAK,EAAE,MAAM,EAAE,CAAC;QAEhB;;;;WAIG;QACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;CACL;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE;QACN;;;WAGG;QACH,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,wBAAwB,CAAC;KAC5D,CAAC;IACF;;;;OAIG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAS,OAAO,mCAGgB,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACvC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEnD;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,YAAa,OAAO,2CAQlD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,gCAClB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD,QAAQ,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;CAC9D;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,gCAAgC;IAClF;;;;;OAKG;IACH,SAAS,CAAC,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzF;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACjF"}
|
package/dist/fluidPackage.js
CHANGED
|
@@ -8,11 +8,16 @@ exports.IFluidCodeDetailsComparer = exports.isFluidCodeDetails = exports.isFluid
|
|
|
8
8
|
/**
|
|
9
9
|
* Check if the package.json defines a Fluid package
|
|
10
10
|
* @param pkg - the package json data to check if it is a Fluid package.
|
|
11
|
+
* @public
|
|
11
12
|
*/
|
|
12
13
|
const isFluidPackage = (pkg) => typeof pkg === "object" &&
|
|
13
14
|
typeof pkg?.name === "string" &&
|
|
14
15
|
typeof pkg?.fluid === "object";
|
|
15
16
|
exports.isFluidPackage = isFluidPackage;
|
|
17
|
+
/**
|
|
18
|
+
* Determines if any object is an IFluidCodeDetails
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
16
21
|
const isFluidCodeDetails = (details) => {
|
|
17
22
|
const maybeCodeDetails = details;
|
|
18
23
|
return (typeof maybeCodeDetails === "object" &&
|
|
@@ -21,5 +26,8 @@ const isFluidCodeDetails = (details) => {
|
|
|
21
26
|
(maybeCodeDetails?.config === undefined || typeof maybeCodeDetails?.config === "object"));
|
|
22
27
|
};
|
|
23
28
|
exports.isFluidCodeDetails = isFluidCodeDetails;
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
24
32
|
exports.IFluidCodeDetailsComparer = "IFluidCodeDetailsComparer";
|
|
25
33
|
//# sourceMappingURL=fluidPackage.js.map
|
package/dist/fluidPackage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluidPackage.js","sourceRoot":"","sources":["../src/fluidPackage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"fluidPackage.js","sourceRoot":"","sources":["../src/fluidPackage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA4DH;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAAC,GAAY,EAAkC,EAAE,CAC9E,OAAO,GAAG,KAAK,QAAQ;IACvB,OAAQ,GAA8B,EAAE,IAAI,KAAK,QAAQ;IACzD,OAAQ,GAA8B,EAAE,KAAK,KAAK,QAAQ,CAAC;AAH/C,QAAA,cAAc,kBAGiC;AA8B5D;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAgB,EAA0C,EAAE;IAC9F,MAAM,gBAAgB,GAAG,OAAiD,CAAC;IAC3E,OAAO,CACN,OAAO,gBAAgB,KAAK,QAAQ;QACpC,CAAC,OAAO,gBAAgB,EAAE,OAAO,KAAK,QAAQ;YAC7C,IAAA,sBAAc,EAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC3C,CAAC,gBAAgB,EAAE,MAAM,KAAK,SAAS,IAAI,OAAO,gBAAgB,EAAE,MAAM,KAAK,QAAQ,CAAC,CACxF,CAAC;AACH,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEF;;GAEG;AACU,QAAA,yBAAyB,GACrC,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Specifies an environment on Fluid property of a IFluidPackage.\n * @public\n */\nexport interface IFluidPackageEnvironment {\n\t/**\n\t * The name of the target. For a browser environment, this could be umd for scripts\n\t * or css for styles.\n\t */\n\t[target: string]:\n\t\t| undefined\n\t\t| {\n\t\t\t\t/**\n\t\t\t\t * List of files for the target. These can be relative or absolute.\n\t\t\t\t * The code loader should resolve relative paths, and validate all\n\t\t\t\t * full urls.\n\t\t\t\t */\n\t\t\t\tfiles: string[];\n\n\t\t\t\t/**\n\t\t\t\t * General access for extended fields as specific usages will\n\t\t\t\t * likely have additional infornamation like a definition\n\t\t\t\t * of Library, the entrypoint for umd packages.\n\t\t\t\t */\n\t\t\t\t[key: string]: unknown;\n\t\t };\n}\n\n/**\n * Fluid-specific properties expected on a package to be loaded by the code loader.\n * While compatible with the npm package format it is not necessary that that package is an\n * npm package:\n * {@link https://stackoverflow.com/questions/10065564/add-custom-metadata-or-config-to-package-json-is-it-valid}\n * @public\n */\nexport interface IFluidPackage {\n\t/**\n\t * The name of the package that this code represnets\n\t */\n\tname: string;\n\t/**\n\t * This object represents the Fluid specific properties of the package\n\t */\n\tfluid: {\n\t\t/**\n\t\t * The name of the of the environment. This should be something like browser, or node\n\t\t * and contain the necessary targets for loading this code in that environment.\n\t\t */\n\t\t[environment: string]: undefined | IFluidPackageEnvironment;\n\t};\n\t/**\n\t * General access for extended fields as specific usages will\n\t * likely have additional infornamation like a definition of\n\t * compatible versions, or deployment information like rings or rollouts.\n\t */\n\t[key: string]: unknown;\n}\n\n/**\n * Check if the package.json defines a Fluid package\n * @param pkg - the package json data to check if it is a Fluid package.\n * @public\n */\nexport const isFluidPackage = (pkg: unknown): pkg is Readonly<IFluidPackage> =>\n\ttypeof pkg === \"object\" &&\n\ttypeof (pkg as Partial<IFluidPackage>)?.name === \"string\" &&\n\ttypeof (pkg as Partial<IFluidPackage>)?.fluid === \"object\";\n\n/**\n * Package manager configuration. Provides a key value mapping of config values\n * @public\n */\nexport interface IFluidCodeDetailsConfig {\n\treadonly [key: string]: string;\n}\n\n/**\n * Data structure used to describe the code to load on the Fluid document\n * @public\n */\nexport interface IFluidCodeDetails {\n\t/**\n\t * The code package to be used on the Fluid document. This is either the package name which will be loaded\n\t * from a package manager. Or the expanded Fluid package.\n\t */\n\treadonly package: string | Readonly<IFluidPackage>;\n\n\t/**\n\t * Configuration details. This includes links to the package manager and base CDNs.\n\t *\n\t * @remarks This is strictly consumer-defined data.\n\t * Its contents and semantics (including whether or not this data is present) are completely up to the consumer.\n\t */\n\treadonly config?: IFluidCodeDetailsConfig;\n}\n\n/**\n * Determines if any object is an IFluidCodeDetails\n * @public\n */\nexport const isFluidCodeDetails = (details: unknown): details is Readonly<IFluidCodeDetails> => {\n\tconst maybeCodeDetails = details as Partial<IFluidCodeDetails> | undefined;\n\treturn (\n\t\ttypeof maybeCodeDetails === \"object\" &&\n\t\t(typeof maybeCodeDetails?.package === \"string\" ||\n\t\t\tisFluidPackage(maybeCodeDetails?.package)) &&\n\t\t(maybeCodeDetails?.config === undefined || typeof maybeCodeDetails?.config === \"object\")\n\t);\n};\n\n/**\n * @public\n */\nexport const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer =\n\t\"IFluidCodeDetailsComparer\";\n\n/**\n * @public\n */\nexport interface IProvideFluidCodeDetailsComparer {\n\treadonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;\n}\n\n/**\n * Provides capability to compare Fluid code details.\n * @public\n */\nexport interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {\n\t/**\n\t * Determines if the `candidate` code details satisfy the constraints specified in `constraint` code details.\n\t *\n\t * Similar semantics to:\n\t * {@link https://github.com/npm/node-semver#usage}\n\t */\n\tsatisfies(candidate: IFluidCodeDetails, constraint: IFluidCodeDetails): Promise<boolean>;\n\n\t/**\n\t * Return a number representing the ascending sort order of the `a` and `b` code details:\n\t *\n\t * - `< 0` if `a < b`.\n\t *\n\t * - `= 0` if `a === b`.\n\t *\n\t * - `> 0` if `a > b`.\n\t *\n\t * - `undefined` if `a` is not comparable to `b`.\n\t *\n\t * Similar semantics to:\n\t * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#description | Array.sort}\n\t */\n\tcompare(a: IFluidCodeDetails, b: IFluidCodeDetails): Promise<number | undefined>;\n}\n"]}
|
package/dist/loader.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { AttachState } from "./runtime";
|
|
|
13
13
|
import { IFluidCodeDetails, IFluidPackage, IProvideFluidCodeDetailsComparer } from "./fluidPackage";
|
|
14
14
|
/**
|
|
15
15
|
* Encapsulates a module entry point with corresponding code details.
|
|
16
|
+
* @public
|
|
16
17
|
*/
|
|
17
18
|
export interface IFluidModuleWithDetails {
|
|
18
19
|
/**
|
|
@@ -30,6 +31,7 @@ export interface IFluidModuleWithDetails {
|
|
|
30
31
|
/**
|
|
31
32
|
* Fluid code loader resolves a code module matching the document schema, i.e. code details, such as
|
|
32
33
|
* a package name and package version range.
|
|
34
|
+
* @public
|
|
33
35
|
*/
|
|
34
36
|
export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer> {
|
|
35
37
|
/**
|
|
@@ -43,6 +45,7 @@ export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComp
|
|
|
43
45
|
/**
|
|
44
46
|
* The interface returned from a IFluidCodeResolver which represents IFluidCodeDetails
|
|
45
47
|
* that have been resolved and are ready to load
|
|
48
|
+
* @public
|
|
46
49
|
*/
|
|
47
50
|
export interface IResolvedFluidCodeDetails extends IFluidCodeDetails {
|
|
48
51
|
/**
|
|
@@ -60,6 +63,7 @@ export interface IResolvedFluidCodeDetails extends IFluidCodeDetails {
|
|
|
60
63
|
* The Fluid code resolver is coupled to a specific cdn and knows how to resolve
|
|
61
64
|
* the code detail for loading from that cdn. This include resolving to the most recent
|
|
62
65
|
* version of package that supports the provided code details.
|
|
66
|
+
* @public
|
|
63
67
|
*/
|
|
64
68
|
export interface IFluidCodeResolver {
|
|
65
69
|
/**
|
|
@@ -72,6 +76,7 @@ export interface IFluidCodeResolver {
|
|
|
72
76
|
}
|
|
73
77
|
/**
|
|
74
78
|
* Events emitted by the {@link IContainer} "upwards" to the Loader and Host.
|
|
79
|
+
* @public
|
|
75
80
|
*/
|
|
76
81
|
export interface IContainerEvents extends IEvent {
|
|
77
82
|
/**
|
|
@@ -216,6 +221,7 @@ export interface IContainerEvents extends IEvent {
|
|
|
216
221
|
/**
|
|
217
222
|
* Namespace for the different connection states a container can be in.
|
|
218
223
|
* PLEASE NOTE: The sequence of the numerical values does no correspond to the typical connection state progression.
|
|
224
|
+
* @public
|
|
219
225
|
*/
|
|
220
226
|
export declare namespace ConnectionState {
|
|
221
227
|
/**
|
|
@@ -240,10 +246,12 @@ export declare namespace ConnectionState {
|
|
|
240
246
|
}
|
|
241
247
|
/**
|
|
242
248
|
* Type defining the different states of connectivity a Container can be in.
|
|
249
|
+
* @public
|
|
243
250
|
*/
|
|
244
|
-
export
|
|
251
|
+
export type ConnectionState = ConnectionState.Disconnected | ConnectionState.EstablishingConnection | ConnectionState.CatchingUp | ConnectionState.Connected;
|
|
245
252
|
/**
|
|
246
253
|
* The Host's view of a Container and its connection to storage
|
|
254
|
+
* @public
|
|
247
255
|
*/
|
|
248
256
|
export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRouter {
|
|
249
257
|
/**
|
|
@@ -330,9 +338,13 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
|
|
|
330
338
|
*/
|
|
331
339
|
getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
|
|
332
340
|
/**
|
|
341
|
+
* @deprecated Requesting will not be supported in a future major release.
|
|
342
|
+
* Instead, access the objects in a Fluid Container using entryPoint, and then navigate from there using
|
|
343
|
+
* app-specific logic (e.g. retrieving handles from the entryPoint's DDSes, or a container's entryPoint object
|
|
344
|
+
* could implement a request paradigm itself)
|
|
345
|
+
*
|
|
333
346
|
* IMPORTANT: This overload is provided for back-compat where IContainer.request(\{ url: "/" \}) is already implemented and used.
|
|
334
347
|
* The functionality it can provide (if the Container implementation is built for it) is redundant with @see {@link IContainer.getEntryPoint}.
|
|
335
|
-
* Once that API is mandatory on IContainer, this overload will be deprecated.
|
|
336
348
|
*
|
|
337
349
|
* Refer to Removing-IFluidRouter.md for details on migrating from the request pattern to using entryPoint.
|
|
338
350
|
*
|
|
@@ -346,19 +358,16 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
|
|
|
346
358
|
* Issue a request against the container for a resource.
|
|
347
359
|
* @param request - The request to be issued against the container
|
|
348
360
|
*
|
|
349
|
-
* @deprecated
|
|
361
|
+
* @deprecated Requesting an arbitrary URL with headers will not be supported in a future major release.
|
|
350
362
|
* Instead, access the objects in a Fluid Container using entryPoint, and then navigate from there using
|
|
351
363
|
* app-specific logic (e.g. retrieving handles from the entryPoint's DDSes, or a container's entryPoint object
|
|
352
364
|
* could implement a request paradigm itself)
|
|
353
365
|
*
|
|
354
|
-
* NOTE: IContainer.request(\{url: "/"\}) is not yet deprecated. If and only if the Container implementation supports it,
|
|
355
|
-
* that overload may be used as a proxy for getting the entryPoint until {@link IContainer.getEntryPoint} is mandatory.
|
|
356
|
-
*
|
|
357
366
|
* Refer to Removing-IFluidRouter.md for details on migrating from the request pattern to using entryPoint.
|
|
358
367
|
*/
|
|
359
368
|
request(request: IRequest): Promise<IResponse>;
|
|
360
369
|
/**
|
|
361
|
-
* @deprecated
|
|
370
|
+
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
362
371
|
*/
|
|
363
372
|
readonly IFluidRouter: IFluidRouter;
|
|
364
373
|
/**
|
|
@@ -421,18 +430,12 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
|
|
|
421
430
|
/**
|
|
422
431
|
* Exposes the entryPoint for the container.
|
|
423
432
|
* Use this as the primary way of getting access to the user-defined logic within the container.
|
|
424
|
-
* If the method is undefined or the returned promise returns undefined (meaning that exposing the entryPoint
|
|
425
|
-
* hasn't been implemented in a particular scenario) fall back to the current approach of requesting the default
|
|
426
|
-
* object of the container through the request pattern.
|
|
427
|
-
*
|
|
428
|
-
* @remarks The plan is that eventually IContainer will no longer implement IFluidRouter (and thus won't have a
|
|
429
|
-
* request() method), this method will no longer be optional, and it will become the only way to access
|
|
430
|
-
* the entryPoint for the container.
|
|
431
433
|
*/
|
|
432
|
-
getEntryPoint
|
|
434
|
+
getEntryPoint(): Promise<FluidObject | undefined>;
|
|
433
435
|
}
|
|
434
436
|
/**
|
|
435
437
|
* The Runtime's view of the Loader, used for loading Containers
|
|
438
|
+
* @public
|
|
436
439
|
*/
|
|
437
440
|
export interface ILoader extends Partial<IProvideLoader> {
|
|
438
441
|
/**
|
|
@@ -446,16 +449,17 @@ export interface ILoader extends Partial<IProvideLoader> {
|
|
|
446
449
|
*/
|
|
447
450
|
resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;
|
|
448
451
|
/**
|
|
449
|
-
* @deprecated
|
|
452
|
+
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the Container's IFluidRouter/request.
|
|
450
453
|
*/
|
|
451
454
|
request(request: IRequest): Promise<IResponse>;
|
|
452
455
|
/**
|
|
453
|
-
* @deprecated
|
|
456
|
+
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the Container's IFluidRouter/request.
|
|
454
457
|
*/
|
|
455
458
|
readonly IFluidRouter: IFluidRouter;
|
|
456
459
|
}
|
|
457
460
|
/**
|
|
458
461
|
* The Host's view of the Loader, used for loading Containers
|
|
462
|
+
* @public
|
|
459
463
|
*/
|
|
460
464
|
export interface IHostLoader extends ILoader {
|
|
461
465
|
/**
|
|
@@ -469,7 +473,10 @@ export interface IHostLoader extends ILoader {
|
|
|
469
473
|
*/
|
|
470
474
|
rehydrateDetachedContainerFromSnapshot(snapshot: string): Promise<IContainer>;
|
|
471
475
|
}
|
|
472
|
-
|
|
476
|
+
/**
|
|
477
|
+
* @public
|
|
478
|
+
*/
|
|
479
|
+
export type ILoaderOptions = {
|
|
473
480
|
[key in string | number]: any;
|
|
474
481
|
} & {
|
|
475
482
|
/**
|
|
@@ -497,6 +504,7 @@ export declare type ILoaderOptions = {
|
|
|
497
504
|
};
|
|
498
505
|
/**
|
|
499
506
|
* Accepted header keys for requests coming to the Loader
|
|
507
|
+
* @public
|
|
500
508
|
*/
|
|
501
509
|
export declare enum LoaderHeader {
|
|
502
510
|
/**
|
|
@@ -523,6 +531,9 @@ export declare enum LoaderHeader {
|
|
|
523
531
|
*/
|
|
524
532
|
version = "version"
|
|
525
533
|
}
|
|
534
|
+
/**
|
|
535
|
+
* @public
|
|
536
|
+
*/
|
|
526
537
|
export interface IContainerLoadMode {
|
|
527
538
|
opsBeforeReturn?: undefined | "sequenceNumber" | "cached" | "all";
|
|
528
539
|
deltaConnection?: "none" | "delayed" | undefined;
|
|
@@ -533,6 +544,7 @@ export interface IContainerLoadMode {
|
|
|
533
544
|
}
|
|
534
545
|
/**
|
|
535
546
|
* Set of Request Headers that the Loader understands and may inspect or modify
|
|
547
|
+
* @public
|
|
536
548
|
*/
|
|
537
549
|
export interface ILoaderHeader {
|
|
538
550
|
/**
|
|
@@ -549,6 +561,9 @@ export interface ILoaderHeader {
|
|
|
549
561
|
[LoaderHeader.reconnect]: boolean;
|
|
550
562
|
[LoaderHeader.version]: string | undefined;
|
|
551
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* @public
|
|
566
|
+
*/
|
|
552
567
|
export interface IProvideLoader {
|
|
553
568
|
readonly ILoader: ILoader;
|
|
554
569
|
}
|
|
@@ -556,6 +571,7 @@ export interface IProvideLoader {
|
|
|
556
571
|
* @deprecated 0.48, This API will be removed in 0.50
|
|
557
572
|
* No replacement since it is not expected anyone will depend on this outside container-loader
|
|
558
573
|
* See {@link https://github.com/microsoft/FluidFramework/issues/9711} for context.
|
|
574
|
+
* @public
|
|
559
575
|
*/
|
|
560
576
|
export interface IPendingLocalState {
|
|
561
577
|
url: string;
|
|
@@ -566,6 +582,7 @@ export interface IPendingLocalState {
|
|
|
566
582
|
* in separate property: {@link ISnapshotTreeWithBlobContents.blobsContents}.
|
|
567
583
|
*
|
|
568
584
|
* @remarks This is used as the `ContainerContext`'s base snapshot when attaching.
|
|
585
|
+
* @public
|
|
569
586
|
*/
|
|
570
587
|
export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
|
|
571
588
|
blobsContents: {
|
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,QAAQ,EACR,SAAS,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,QAAQ,EACR,SAAS,EAET,YAAY,EACZ,WAAW,EACX,MAAM,EACN,cAAc,EACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACx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,MAAM,GAAG,SAAS,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,6BAA8B,SAAQ,aAAa;IACnE,aAAa,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,CAAC;IACnD,KAAK,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,6BAA6B,CAAA;KAAE,CAAC;CACzD"}
|
package/dist/loader.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.LoaderHeader = void 0;
|
|
8
8
|
/**
|
|
9
9
|
* Accepted header keys for requests coming to the Loader
|
|
10
|
+
* @public
|
|
10
11
|
*/
|
|
11
12
|
var LoaderHeader;
|
|
12
13
|
(function (LoaderHeader) {
|
|
@@ -33,5 +34,5 @@ var LoaderHeader;
|
|
|
33
34
|
* otherwise, version sha to load snapshot
|
|
34
35
|
*/
|
|
35
36
|
LoaderHeader["version"] = "version";
|
|
36
|
-
})(LoaderHeader
|
|
37
|
+
})(LoaderHeader || (exports.LoaderHeader = LoaderHeader = {}));
|
|
37
38
|
//# sourceMappingURL=loader.js.map
|