@fluidframework/map 2.0.0-internal.7.1.1 → 2.0.0-internal.7.2.1
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 +4 -0
- package/api-extractor.json +1 -13
- package/dist/directory.d.ts +28 -4
- package/dist/directory.d.ts.map +1 -1
- package/dist/directory.js +2 -0
- package/dist/directory.js.map +1 -1
- package/dist/interfaces.d.ts +23 -1
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/localValues.d.ts +4 -0
- package/dist/localValues.d.ts.map +1 -1
- package/dist/localValues.js +2 -0
- package/dist/localValues.js.map +1 -1
- package/dist/map.d.ts +172 -982
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +3 -0
- package/dist/map.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/directory.d.ts +28 -4
- package/lib/directory.d.ts.map +1 -1
- package/lib/directory.js +2 -0
- package/lib/directory.js.map +1 -1
- package/lib/interfaces.d.ts +23 -1
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/localValues.d.ts +4 -0
- package/lib/localValues.d.ts.map +1 -1
- package/lib/localValues.js +2 -0
- package/lib/localValues.js.map +1 -1
- package/lib/map.d.ts +3 -0
- package/lib/map.d.ts.map +1 -1
- package/lib/map.js +3 -0
- package/lib/map.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +18 -19
- package/src/directory.ts +28 -4
- package/src/interfaces.ts +23 -1
- package/src/localValues.ts +4 -0
- package/src/map.ts +3 -0
- package/src/packageVersion.ts +1 -1
- package/dist/map-alpha.d.ts +0 -897
- package/dist/map-beta.d.ts +0 -897
- package/dist/map-public.d.ts +0 -897
package/src/interfaces.ts
CHANGED
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Type of "valueChanged" event parameter.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
16
18
|
*/
|
|
17
19
|
export interface IValueChanged {
|
|
18
20
|
/**
|
|
@@ -32,6 +34,8 @@ export interface IValueChanged {
|
|
|
32
34
|
* Interface describing actions on a directory.
|
|
33
35
|
*
|
|
34
36
|
* @remarks When used as a Map, operates on its keys.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
35
39
|
*/
|
|
36
40
|
// TODO: Use `unknown` instead (breaking change).
|
|
37
41
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -112,7 +116,11 @@ export interface IDirectory
|
|
|
112
116
|
|
|
113
117
|
/**
|
|
114
118
|
* Events emitted in response to changes to the directory data.
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
115
121
|
* These events only emit on the {@link ISharedDirectory} itself, and not on subdirectories.
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
116
124
|
*/
|
|
117
125
|
export interface ISharedDirectoryEvents extends ISharedObjectEvents {
|
|
118
126
|
/**
|
|
@@ -185,6 +193,8 @@ export interface ISharedDirectoryEvents extends ISharedObjectEvents {
|
|
|
185
193
|
|
|
186
194
|
/**
|
|
187
195
|
* Events emitted in response to changes to the directory data.
|
|
196
|
+
*
|
|
197
|
+
* @public
|
|
188
198
|
*/
|
|
189
199
|
export interface IDirectoryEvents extends IEvent {
|
|
190
200
|
/**
|
|
@@ -265,6 +275,8 @@ export interface IDirectoryEvents extends IEvent {
|
|
|
265
275
|
* Provides a hierarchical organization of map-like data structures as SubDirectories.
|
|
266
276
|
* The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.
|
|
267
277
|
* SubDirectories can be retrieved for use as working directories.
|
|
278
|
+
*
|
|
279
|
+
* @public
|
|
268
280
|
*/
|
|
269
281
|
export interface ISharedDirectory
|
|
270
282
|
extends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>,
|
|
@@ -278,7 +290,9 @@ export interface ISharedDirectory
|
|
|
278
290
|
}
|
|
279
291
|
|
|
280
292
|
/**
|
|
281
|
-
* Type of "valueChanged" event parameter for {@link ISharedDirectory}
|
|
293
|
+
* Type of "valueChanged" event parameter for {@link ISharedDirectory}.
|
|
294
|
+
*
|
|
295
|
+
* @public
|
|
282
296
|
*/
|
|
283
297
|
export interface IDirectoryValueChanged extends IValueChanged {
|
|
284
298
|
/**
|
|
@@ -289,6 +303,8 @@ export interface IDirectoryValueChanged extends IValueChanged {
|
|
|
289
303
|
|
|
290
304
|
/**
|
|
291
305
|
* Events emitted in response to changes to the {@link ISharedMap | map} data.
|
|
306
|
+
*
|
|
307
|
+
* @public
|
|
292
308
|
*/
|
|
293
309
|
export interface ISharedMapEvents extends ISharedObjectEvents {
|
|
294
310
|
/**
|
|
@@ -327,6 +343,8 @@ export interface ISharedMapEvents extends ISharedObjectEvents {
|
|
|
327
343
|
* {@link @fluidframework/datastore#FluidObjectHandle}.
|
|
328
344
|
*
|
|
329
345
|
* For more information, including example usages, see {@link https://fluidframework.com/docs/data-structures/map/}.
|
|
346
|
+
*
|
|
347
|
+
* @public
|
|
330
348
|
*/
|
|
331
349
|
// TODO: Use `unknown` instead (breaking change).
|
|
332
350
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -371,6 +389,8 @@ export interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string,
|
|
|
371
389
|
* channel ID.
|
|
372
390
|
*
|
|
373
391
|
* @deprecated This type is legacy and deprecated.
|
|
392
|
+
*
|
|
393
|
+
* @public
|
|
374
394
|
*/
|
|
375
395
|
export interface ISerializableValue {
|
|
376
396
|
/**
|
|
@@ -387,6 +407,8 @@ export interface ISerializableValue {
|
|
|
387
407
|
|
|
388
408
|
/**
|
|
389
409
|
* Serialized {@link ISerializableValue} counterpart.
|
|
410
|
+
*
|
|
411
|
+
* @public
|
|
390
412
|
*/
|
|
391
413
|
export interface ISerializedValue {
|
|
392
414
|
/**
|
package/src/localValues.ts
CHANGED
|
@@ -16,6 +16,8 @@ import { ISerializableValue, ISerializedValue } from "./interfaces";
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A local value to be stored in a container type Distributed Data Store (DDS).
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
19
21
|
*/
|
|
20
22
|
export interface ILocalValue {
|
|
21
23
|
/**
|
|
@@ -97,6 +99,8 @@ export class PlainLocalValue implements ILocalValue {
|
|
|
97
99
|
/**
|
|
98
100
|
* Enables a container type {@link https://fluidframework.com/docs/build/dds/ | DDS} to produce and store local
|
|
99
101
|
* values with minimal awareness of how those objects are stored, serialized, and deserialized.
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
100
104
|
*/
|
|
101
105
|
export class LocalValueMaker {
|
|
102
106
|
/**
|
package/src/map.ts
CHANGED
|
@@ -30,6 +30,7 @@ const snapshotFileName = "header";
|
|
|
30
30
|
* {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link SharedMap}.
|
|
31
31
|
*
|
|
32
32
|
* @sealed
|
|
33
|
+
* @public
|
|
33
34
|
*/
|
|
34
35
|
export class MapFactory implements IChannelFactory {
|
|
35
36
|
/**
|
|
@@ -88,6 +89,8 @@ export class MapFactory implements IChannelFactory {
|
|
|
88
89
|
|
|
89
90
|
/**
|
|
90
91
|
* {@inheritDoc ISharedMap}
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
91
94
|
*/
|
|
92
95
|
export class SharedMap extends SharedObject<ISharedMapEvents> implements ISharedMap {
|
|
93
96
|
/**
|
package/src/packageVersion.ts
CHANGED