@fluidframework/map 1.4.0-121020 → 2.0.0-dev-rc.1.0.0.225277
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 +12 -11
- package/.mocharc.js +12 -0
- package/CHANGELOG.md +162 -0
- package/README.md +24 -8
- package/api-extractor-esm.json +4 -0
- package/api-extractor-lint.json +4 -0
- package/api-extractor.json +2 -2
- package/api-report/map.api.md +297 -0
- package/dist/{directory.js → directory.cjs} +749 -228
- package/dist/directory.cjs.map +1 -0
- package/dist/directory.d.ts +567 -34
- package/dist/directory.d.ts.map +1 -1
- package/dist/index.cjs +27 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/{interfaces.js → interfaces.cjs} +1 -1
- package/dist/interfaces.cjs.map +1 -0
- package/dist/interfaces.d.ts +167 -184
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/internalInterfaces.cjs +7 -0
- package/dist/internalInterfaces.cjs.map +1 -0
- package/dist/internalInterfaces.d.ts +101 -0
- package/dist/internalInterfaces.d.ts.map +1 -0
- package/dist/{localValues.js → localValues.cjs} +15 -3
- package/dist/localValues.cjs.map +1 -0
- package/dist/localValues.d.ts +17 -6
- package/dist/localValues.d.ts.map +1 -1
- package/dist/map-alpha.d.ts +982 -0
- package/dist/map-beta.d.ts +275 -0
- package/dist/map-public.d.ts +275 -0
- package/dist/map-untrimmed.d.ts +996 -0
- package/dist/{map.js → map.cjs} +39 -34
- package/dist/map.cjs.map +1 -0
- package/dist/map.d.ts +10 -17
- package/dist/map.d.ts.map +1 -1
- package/dist/{mapKernel.js → mapKernel.cjs} +122 -79
- package/dist/mapKernel.cjs.map +1 -0
- package/dist/mapKernel.d.ts +17 -48
- package/dist/mapKernel.d.ts.map +1 -1
- package/dist/{packageVersion.js → packageVersion.cjs} +2 -2
- package/dist/packageVersion.cjs.map +1 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/lib/directory.d.mts +902 -0
- package/lib/directory.d.mts.map +1 -0
- package/lib/{directory.js → directory.mjs} +736 -199
- package/lib/directory.mjs.map +1 -0
- package/lib/index.d.mts +9 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.mjs +8 -0
- package/lib/index.mjs.map +1 -0
- package/lib/{interfaces.d.ts → interfaces.d.mts} +168 -185
- package/lib/interfaces.d.mts.map +1 -0
- package/lib/{interfaces.js → interfaces.mjs} +1 -1
- package/lib/interfaces.mjs.map +1 -0
- package/lib/internalInterfaces.d.mts +101 -0
- package/lib/internalInterfaces.d.mts.map +1 -0
- package/lib/internalInterfaces.mjs +6 -0
- package/lib/internalInterfaces.mjs.map +1 -0
- package/lib/{localValues.d.ts → localValues.d.mts} +19 -8
- package/lib/localValues.d.mts.map +1 -0
- package/lib/{localValues.js → localValues.mjs} +15 -3
- package/lib/localValues.mjs.map +1 -0
- package/lib/map-alpha.d.mts +970 -0
- package/lib/map-beta.d.mts +263 -0
- package/lib/map-public.d.mts +263 -0
- package/lib/map-untrimmed.d.mts +984 -0
- package/lib/{map.d.ts → map.d.mts} +12 -19
- package/lib/map.d.mts.map +1 -0
- package/lib/{map.js → map.mjs} +40 -35
- package/lib/map.mjs.map +1 -0
- package/lib/{mapKernel.d.ts → mapKernel.d.mts} +19 -50
- package/lib/mapKernel.d.mts.map +1 -0
- package/lib/{mapKernel.js → mapKernel.mjs} +116 -73
- package/lib/mapKernel.mjs.map +1 -0
- package/lib/{packageVersion.d.ts → packageVersion.d.mts} +2 -2
- package/lib/packageVersion.d.mts.map +1 -0
- package/lib/{packageVersion.js → packageVersion.mjs} +2 -2
- package/lib/packageVersion.mjs.map +1 -0
- package/package.json +143 -65
- package/prettier.config.cjs +8 -0
- package/src/directory.ts +2544 -1727
- package/src/index.ts +31 -5
- package/src/interfaces.ts +346 -345
- package/src/internalInterfaces.ts +119 -0
- package/src/localValues.ts +103 -96
- package/src/map.ts +362 -351
- package/src/mapKernel.ts +755 -722
- package/src/packageVersion.ts +1 -1
- package/tsc-multi.test.json +4 -0
- package/tsconfig.json +10 -15
- package/dist/directory.js.map +0 -1
- package/dist/index.js +0 -34
- package/dist/index.js.map +0 -1
- package/dist/interfaces.js.map +0 -1
- package/dist/localValues.js.map +0 -1
- package/dist/map.js.map +0 -1
- package/dist/mapKernel.js.map +0 -1
- package/dist/packageVersion.js.map +0 -1
- package/lib/directory.d.ts +0 -369
- package/lib/directory.d.ts.map +0 -1
- package/lib/directory.js.map +0 -1
- package/lib/index.d.ts +0 -20
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -20
- package/lib/index.js.map +0 -1
- package/lib/interfaces.d.ts.map +0 -1
- package/lib/interfaces.js.map +0 -1
- package/lib/localValues.d.ts.map +0 -1
- package/lib/localValues.js.map +0 -1
- package/lib/map.d.ts.map +0 -1
- package/lib/map.js.map +0 -1
- package/lib/mapKernel.d.ts.map +0 -1
- package/lib/mapKernel.js.map +0 -1
- package/lib/packageVersion.d.ts.map +0 -1
- package/lib/packageVersion.js.map +0 -1
- package/tsconfig.esnext.json +0 -7
package/dist/directory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EACH,yBAAyB,EAE5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAa,MAAM,oCAAoC,CAAC;AAG/F,OAAO,EACH,UAAU,EAGV,kBAAkB,EAElB,gBAAgB,EAChB,sBAAsB,E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AC,2BAA2B;IA2DnC;;;;OAIG;IACH,OAAO,CAAC,yCAAyC;IAWjD;;;;;;;;;OASG;IACH,OAAO,CAAC,gCAAgC;IA4GxC;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;;OAGG;IACH,OAAO,CAAC,SAAS;IAKjB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAalB;;;;;;OAMG;IACH,OAAO,CAAC,OAAO;IAWf;;;;;;;OAOG;IACH,OAAO,CAAC,sBAAsB;IAqC9B,OAAO,CAAC,4BAA4B;IASpC;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IAsB9B,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,wBAAwB;CAQhC"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SharedMap = exports.MapFactory = exports.LocalValueMaker = exports.SharedDirectory = exports.DirectoryFactory = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* The `map` library provides interfaces and implementing classes for map-like distributed data structures.
|
|
10
|
+
*
|
|
11
|
+
* @remarks The following distributed data structures are defined in this library:
|
|
12
|
+
*
|
|
13
|
+
* - {@link SharedMap}
|
|
14
|
+
*
|
|
15
|
+
* - {@link SharedDirectory}
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
var directory_1 = require("./directory.cjs");
|
|
20
|
+
Object.defineProperty(exports, "DirectoryFactory", { enumerable: true, get: function () { return directory_1.DirectoryFactory; } });
|
|
21
|
+
Object.defineProperty(exports, "SharedDirectory", { enumerable: true, get: function () { return directory_1.SharedDirectory; } });
|
|
22
|
+
var localValues_1 = require("./localValues.cjs");
|
|
23
|
+
Object.defineProperty(exports, "LocalValueMaker", { enumerable: true, get: function () { return localValues_1.LocalValueMaker; } });
|
|
24
|
+
var map_1 = require("./map.cjs");
|
|
25
|
+
Object.defineProperty(exports, "MapFactory", { enumerable: true, get: function () { return map_1.MapFactory; } });
|
|
26
|
+
Object.defineProperty(exports, "SharedMap", { enumerable: true, get: function () { return map_1.SharedMap; } });
|
|
27
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;;;;;;;GAUG;AAEH,6CAeqB;AAdpB,6GAAA,gBAAgB,OAAA;AAahB,4GAAA,eAAe,OAAA;AAchB,iDAA6D;AAApD,8GAAA,eAAe,OAAA;AACxB,iCAA8C;AAArC,iGAAA,UAAU,OAAA;AAAE,gGAAA,SAAS,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * The `map` library provides interfaces and implementing classes for map-like distributed data structures.\n *\n * @remarks The following distributed data structures are defined in this library:\n *\n * - {@link SharedMap}\n *\n * - {@link SharedDirectory}\n *\n * @packageDocumentation\n */\n\nexport {\n\tDirectoryFactory,\n\tICreateInfo,\n\tIDirectoryClearOperation,\n\tIDirectoryCreateSubDirectoryOperation,\n\tIDirectoryDataObject,\n\tIDirectoryDeleteOperation,\n\tIDirectoryDeleteSubDirectoryOperation,\n\tIDirectoryKeyOperation,\n\tIDirectoryNewStorageFormat,\n\tIDirectoryOperation,\n\tIDirectorySetOperation,\n\tIDirectoryStorageOperation,\n\tIDirectorySubDirectoryOperation,\n\tSharedDirectory,\n} from \"./directory\";\nexport {\n\tIDirectory,\n\tIDirectoryEvents,\n\tIDirectoryValueChanged,\n\tISerializableValue,\n\tISerializedValue,\n\tISharedDirectory,\n\tISharedDirectoryEvents,\n\tISharedMap,\n\tISharedMapEvents,\n\tIValueChanged,\n} from \"./interfaces\";\nexport { LocalValueMaker, ILocalValue } from \"./localValues\";\nexport { MapFactory, SharedMap } from \"./map\";\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The `map`
|
|
6
|
+
* The `map` library provides interfaces and implementing classes for map-like distributed data structures.
|
|
7
7
|
*
|
|
8
|
-
* @remarks The following distributed data structures are defined in this
|
|
8
|
+
* @remarks The following distributed data structures are defined in this library:
|
|
9
9
|
*
|
|
10
10
|
* - {@link SharedMap}
|
|
11
11
|
*
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @packageDocumentation
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export * from "./directory";
|
|
16
|
+
export { DirectoryFactory, ICreateInfo, IDirectoryClearOperation, IDirectoryCreateSubDirectoryOperation, IDirectoryDataObject, IDirectoryDeleteOperation, IDirectoryDeleteSubDirectoryOperation, IDirectoryKeyOperation, IDirectoryNewStorageFormat, IDirectoryOperation, IDirectorySetOperation, IDirectoryStorageOperation, IDirectorySubDirectoryOperation, SharedDirectory, } from "./directory";
|
|
17
|
+
export { IDirectory, IDirectoryEvents, IDirectoryValueChanged, ISerializableValue, ISerializedValue, ISharedDirectory, ISharedDirectoryEvents, ISharedMap, ISharedMapEvents, IValueChanged, } from "./interfaces";
|
|
19
18
|
export { LocalValueMaker, ILocalValue } from "./localValues";
|
|
19
|
+
export { MapFactory, SharedMap } from "./map";
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EACN,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,qCAAqC,EACrC,oBAAoB,EACpB,yBAAyB,EACzB,qCAAqC,EACrC,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,eAAe,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.cjs","sourceRoot":"","sources":["../src/interfaces.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 { ISharedObject, ISharedObjectEvents } from \"@fluidframework/shared-object-base\";\nimport {\n\tIDisposable,\n\tIEvent,\n\tIEventProvider,\n\tIEventThisPlaceHolder,\n} from \"@fluidframework/core-interfaces\";\n\n/**\n * Type of \"valueChanged\" event parameter.\n * @sealed\n * @public\n */\nexport interface IValueChanged {\n\t/**\n\t * The key storing the value that changed.\n\t */\n\tkey: string;\n\n\t/**\n\t * The value that was stored at the key prior to the change.\n\t */\n\t// TODO: Use `unknown` instead (breaking change).\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tpreviousValue: any;\n}\n\n/**\n * Interface describing actions on a directory.\n *\n * @remarks When used as a Map, operates on its keys.\n * @alpha\n */\n// TODO: Use `unknown` instead (breaking change).\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface IDirectory\n\textends Map<string, any>,\n\t\tIEventProvider<IDirectoryEvents>,\n\t\tPartial<IDisposable> {\n\t/**\n\t * The absolute path of the directory.\n\t */\n\treadonly absolutePath: string;\n\n\t/**\n\t * Retrieves the value stored at the given key from the directory.\n\t * @param key - Key to retrieve from\n\t * @returns The stored value, or undefined if the key is not set\n\t */\n\t// TODO: Use `unknown` instead (breaking change).\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tget<T = any>(key: string): T | undefined;\n\n\t/**\n\t * Sets the value stored at key to the provided value.\n\t * @param key - Key to set at\n\t * @param value - Value to set\n\t * @returns The IDirectory itself\n\t */\n\tset<T = unknown>(key: string, value: T): this;\n\n\t/**\n\t * Get the number of sub directory within the directory.\n\t * @returns The number of sub directory within a directory.\n\t */\n\tcountSubDirectory?(): number;\n\n\t/**\n\t * Creates an IDirectory child of this IDirectory, or retrieves the existing IDirectory child if one with the\n\t * same name already exists.\n\t * @param subdirName - Name of the new child directory to create\n\t * @returns The IDirectory child that was created or retrieved\n\t */\n\tcreateSubDirectory(subdirName: string): IDirectory;\n\n\t/**\n\t * Gets an IDirectory child of this IDirectory, if it exists.\n\t * @param subdirName - Name of the child directory to get\n\t * @returns The requested IDirectory\n\t */\n\tgetSubDirectory(subdirName: string): IDirectory | undefined;\n\n\t/**\n\t * Checks whether this directory has a child directory with the given name.\n\t * @param subdirName - Name of the child directory to check\n\t * @returns True if it exists, false otherwise\n\t */\n\thasSubDirectory(subdirName: string): boolean;\n\n\t/**\n\t * Deletes an IDirectory child of this IDirectory, if it exists, along with all descendent keys and directories.\n\t * @param subdirName - Name of the child directory to delete\n\t * @returns True if the IDirectory existed and was deleted, false if it did not exist\n\t */\n\tdeleteSubDirectory(subdirName: string): boolean;\n\n\t/**\n\t * Gets an iterator over the IDirectory children of this IDirectory.\n\t * @returns The IDirectory iterator\n\t */\n\tsubdirectories(): IterableIterator<[string, IDirectory]>;\n\n\t/**\n\t * Get an IDirectory within the directory, in order to use relative paths from that location.\n\t * @param relativePath - Path of the IDirectory to get, relative to this IDirectory\n\t * @returns The requested IDirectory\n\t */\n\tgetWorkingDirectory(relativePath: string): IDirectory | undefined;\n}\n\n/**\n * Events emitted in response to changes to the directory data.\n *\n * @remarks\n * These events only emit on the {@link ISharedDirectory} itself, and not on subdirectories.\n * @alpha\n */\nexport interface ISharedDirectoryEvents extends ISharedObjectEvents {\n\t/**\n\t * Emitted when a key is set or deleted. This is emitted for any key in the {@link ISharedDirectory} or any\n\t * subdirectory.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `changed` - Information on the key that changed, its value prior to the change, and the path to the\n\t * key that changed.\n\t *\n\t * - `local` - Whether the change originated from this client.\n\t *\n\t * - `target` - The {@link ISharedDirectory} itself.\n\t */\n\t(\n\t\tevent: \"valueChanged\",\n\t\tlistener: (\n\t\t\tchanged: IDirectoryValueChanged,\n\t\t\tlocal: boolean,\n\t\t\ttarget: IEventThisPlaceHolder,\n\t\t) => void,\n\t);\n\n\t/**\n\t * Emitted when the {@link ISharedDirectory} is cleared.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `local` - Whether the clear originated from this client.\n\t *\n\t * - `target` - The {@link ISharedDirectory} itself.\n\t */\n\t(event: \"clear\", listener: (local: boolean, target: IEventThisPlaceHolder) => void);\n\n\t/**\n\t * Emitted when a subdirectory is created.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `path` - The relative path to the subdirectory that is created.\n\t * It is relative from the object which raises the event.\n\t *\n\t * - `local` - Whether the create originated from the this client.\n\t *\n\t * - `target` - The {@link ISharedDirectory} itself.\n\t */\n\t(\n\t\tevent: \"subDirectoryCreated\",\n\t\tlistener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n\n\t/**\n\t * Emitted when a subdirectory is deleted.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `path` - The relative path to the subdirectory that is deleted.\n\t * It is relative from the object which raises the event.\n\t *\n\t * - `local` - Whether the delete originated from the this client.\n\t *\n\t * - `target` - The {@link ISharedDirectory} itself.\n\t */\n\t(\n\t\tevent: \"subDirectoryDeleted\",\n\t\tlistener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n}\n\n/**\n * Events emitted in response to changes to the directory data.\n * @alpha\n */\nexport interface IDirectoryEvents extends IEvent {\n\t/**\n\t * Emitted when a key is set or deleted. As opposed to the\n\t * {@link SharedDirectory}'s valueChanged event, this is emitted only on the {@link IDirectory} that directly\n\t * contains the key.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `changed` - Information on the key that changed and its value prior to the change.\n\t *\n\t * - `local` - Whether the change originated from this client.\n\t *\n\t * - `target` - The {@link IDirectory} itself.\n\t */\n\t(\n\t\tevent: \"containedValueChanged\",\n\t\tlistener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n\n\t/**\n\t * Emitted when a subdirectory is created. Also emitted when a delete\n\t * of a subdirectory is rolled back.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `path` - The relative path to the subdirectory that is created.\n\t * It is relative from the object which raises the event.\n\t *\n\t * - `local` - Whether the creation originated from the this client.\n\t *\n\t * - `target` - The {@link ISharedDirectory} itself.\n\t */\n\t(\n\t\tevent: \"subDirectoryCreated\",\n\t\tlistener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n\n\t/**\n\t * Emitted when a subdirectory is deleted.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `path` - The relative path to the subdirectory that is deleted.\n\t * It is relative from the object which raises the event.\n\t *\n\t * - `local` - Whether the delete originated from the this client.\n\t *\n\t * - `target` - The {@link ISharedDirectory} itself.\n\t */\n\t(\n\t\tevent: \"subDirectoryDeleted\",\n\t\tlistener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n\n\t/**\n\t * Emitted when this sub directory is deleted.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `target` - The {@link IDirectory} itself.\n\t */\n\t(event: \"disposed\", listener: (target: IEventThisPlaceHolder) => void);\n\n\t/**\n\t * Emitted when this previously deleted sub directory is restored.\n\t * This event only needs to be handled in the case of rollback. If your application does\n\t * not use the local rollback feature, you can ignore this event.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `target` - The {@link IDirectory} itself.\n\t */\n\t(event: \"undisposed\", listener: (target: IEventThisPlaceHolder) => void);\n}\n\n/**\n * Provides a hierarchical organization of map-like data structures as SubDirectories.\n * The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.\n * SubDirectories can be retrieved for use as working directories.\n * @alpha\n */\nexport interface ISharedDirectory\n\textends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>,\n\t\tOmit<IDirectory, \"on\" | \"once\" | \"off\"> {\n\t// The Omit type excludes symbols, which we don't want to exclude. Adding them back here manually.\n\t// https://github.com/microsoft/TypeScript/issues/31671\n\t// TODO: Use `unknown` instead (breaking change).\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t[Symbol.iterator](): IterableIterator<[string, any]>;\n\treadonly [Symbol.toStringTag]: string;\n}\n\n/**\n * Type of \"valueChanged\" event parameter for {@link ISharedDirectory}.\n * @alpha\n */\nexport interface IDirectoryValueChanged extends IValueChanged {\n\t/**\n\t * The absolute path to the IDirectory storing the key which changed.\n\t */\n\tpath: string;\n}\n\n/**\n * Events emitted in response to changes to the {@link ISharedMap | map} data.\n * @sealed\n * @public\n */\nexport interface ISharedMapEvents extends ISharedObjectEvents {\n\t/**\n\t * Emitted when a key is set or deleted.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `changed` - Information on the key that changed and its value prior to the change.\n\t *\n\t * - `local` - Whether the change originated from this client.\n\t *\n\t * - `target` - The {@link ISharedMap} itself.\n\t */\n\t(\n\t\tevent: \"valueChanged\",\n\t\tlistener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n\n\t/**\n\t * Emitted when the map is cleared.\n\t *\n\t * @remarks Listener parameters:\n\t *\n\t * - `local` - Whether the clear originated from this client.\n\t *\n\t * - `target` - The {@link ISharedMap} itself.\n\t */\n\t(event: \"clear\", listener: (local: boolean, target: IEventThisPlaceHolder) => void);\n}\n\n/**\n * The SharedMap distributed data structure can be used to store key-value pairs. It provides the same API for setting\n * and retrieving values that JavaScript developers are accustomed to with the\n * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map | Map} built-in object.\n * However, the keys of a SharedMap must be strings, and the values must either be a JSON-serializable object or a\n * {@link @fluidframework/datastore#FluidObjectHandle}.\n *\n * For more information, including example usages, see {@link https://fluidframework.com/docs/data-structures/map/}.\n * @sealed\n * @public\n */\n// TODO: Use `unknown` instead (breaking change).\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string, any> {\n\t/**\n\t * Retrieves the given key from the map if it exists.\n\t * @param key - Key to retrieve from\n\t * @returns The stored value, or undefined if the key is not set\n\t */\n\t// TODO: Use `unknown` instead (breaking change).\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tget<T = any>(key: string): T | undefined;\n\n\t/**\n\t * Sets the value stored at key to the provided value.\n\t * @param key - Key to set\n\t * @param value - Value to set\n\t * @returns The {@link ISharedMap} itself\n\t */\n\tset<T = unknown>(key: string, value: T): this;\n}\n\n/**\n * The _ready-for-serialization_ format of values contained in DDS contents. This allows us to use\n * {@link ISerializableValue.\"type\"} to understand whether they're storing a Plain JavaScript object,\n * a {@link @fluidframework/shared-object-base#SharedObject}, or a value type.\n *\n * @remarks\n *\n * Note that the in-memory equivalent of ISerializableValue is ILocalValue (similarly holding a type, but with\n * the _in-memory representation_ of the value instead). An ISerializableValue is what gets passed to\n * JSON.stringify and comes out of JSON.parse. This format is used both for snapshots (loadCore/populate)\n * and ops (set).\n *\n * If type is Plain, it must be a plain JS object that can survive a JSON.stringify/parse. E.g. a URL object will\n * just get stringified to a URL string and not rehydrate as a URL object on the other side. It may contain members\n * that are ISerializedHandle (the serialized form of a handle).\n *\n * If type is a value type then it must be amongst the types registered via registerValueType or we won't know how\n * to serialize/deserialize it (we rely on its factory via .load() and .store()). Its value will be type-dependent.\n * If type is Shared, then the in-memory value will just be a reference to the SharedObject. Its value will be a\n * channel ID.\n *\n * @deprecated This type is legacy and deprecated.\n * @alpha\n */\nexport interface ISerializableValue {\n\t/**\n\t * A type annotation to help indicate how the value serializes.\n\t */\n\ttype: string;\n\n\t/**\n\t * The JSONable representation of the value.\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tvalue: any;\n}\n\n/**\n * Serialized {@link ISerializableValue} counterpart.\n * @alpha\n */\nexport interface ISerializedValue {\n\t/**\n\t * A type annotation to help indicate how the value serializes.\n\t */\n\ttype: string;\n\n\t/**\n\t * String representation of the value.\n\t *\n\t * @remarks Will be undefined if the original value was undefined.\n\t */\n\tvalue: string | undefined;\n}\n"]}
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { ISharedObject, ISharedObjectEvents } from "@fluidframework/shared-object-base";
|
|
6
|
-
import { IDisposable, IEvent, IEventProvider, IEventThisPlaceHolder } from "@fluidframework/
|
|
6
|
+
import { IDisposable, IEvent, IEventProvider, IEventThisPlaceHolder } from "@fluidframework/core-interfaces";
|
|
7
7
|
/**
|
|
8
8
|
* Type of "valueChanged" event parameter.
|
|
9
|
+
* @sealed
|
|
10
|
+
* @public
|
|
9
11
|
*/
|
|
10
12
|
export interface IValueChanged {
|
|
11
13
|
/**
|
|
@@ -20,8 +22,8 @@ export interface IValueChanged {
|
|
|
20
22
|
/**
|
|
21
23
|
* Interface describing actions on a directory.
|
|
22
24
|
*
|
|
23
|
-
* @remarks
|
|
24
|
-
*
|
|
25
|
+
* @remarks When used as a Map, operates on its keys.
|
|
26
|
+
* @alpha
|
|
25
27
|
*/
|
|
26
28
|
export interface IDirectory extends Map<string, any>, IEventProvider<IDirectoryEvents>, Partial<IDisposable> {
|
|
27
29
|
/**
|
|
@@ -40,7 +42,7 @@ export interface IDirectory extends Map<string, any>, IEventProvider<IDirectoryE
|
|
|
40
42
|
* @param value - Value to set
|
|
41
43
|
* @returns The IDirectory itself
|
|
42
44
|
*/
|
|
43
|
-
set<T =
|
|
45
|
+
set<T = unknown>(key: string, value: T): this;
|
|
44
46
|
/**
|
|
45
47
|
* Get the number of sub directory within the directory.
|
|
46
48
|
* @returns The number of sub directory within a directory.
|
|
@@ -84,167 +86,142 @@ export interface IDirectory extends Map<string, any>, IEventProvider<IDirectoryE
|
|
|
84
86
|
getWorkingDirectory(relativePath: string): IDirectory | undefined;
|
|
85
87
|
}
|
|
86
88
|
/**
|
|
87
|
-
* Events emitted in response to changes to the directory data.
|
|
88
|
-
* and not on subdirectories.
|
|
89
|
+
* Events emitted in response to changes to the directory data.
|
|
89
90
|
*
|
|
90
91
|
* @remarks
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* ### "valueChanged"
|
|
95
|
-
*
|
|
96
|
-
* The valueChanged event is emitted when a key is set or deleted. This is emitted for any key in the ISharedDirectory
|
|
97
|
-
* or any subdirectory.
|
|
98
|
-
*
|
|
99
|
-
* #### Listener signature
|
|
100
|
-
*
|
|
101
|
-
* ```typescript
|
|
102
|
-
* (
|
|
103
|
-
* changed: IDirectoryValueChanged,
|
|
104
|
-
* local: boolean,
|
|
105
|
-
* target: IEventThisPlaceHolder,
|
|
106
|
-
* ) => void
|
|
107
|
-
* ```
|
|
108
|
-
* - `changed` - Information on the key that changed, its value prior to the change, and the path to the key that
|
|
109
|
-
* changed.
|
|
110
|
-
*
|
|
111
|
-
* - `local` - Whether the change originated from this client.
|
|
112
|
-
*
|
|
113
|
-
* - `target` - The ISharedDirectory itself.
|
|
114
|
-
*
|
|
115
|
-
* ### "clear"
|
|
116
|
-
*
|
|
117
|
-
* The clear event is emitted when the ISharedDirectory is cleared.
|
|
118
|
-
*
|
|
119
|
-
* #### Listener signature
|
|
120
|
-
*
|
|
121
|
-
* ```typescript
|
|
122
|
-
* (local: boolean, target: IEventThisPlaceHolder) => void
|
|
123
|
-
* ```
|
|
124
|
-
* - `local` - Whether the clear originated from this client.
|
|
125
|
-
*
|
|
126
|
-
* - `target` - The ISharedDirectory itself.
|
|
127
|
-
*
|
|
128
|
-
* ### "subDirectoryCreated"
|
|
129
|
-
*
|
|
130
|
-
* The subDirectoryCreated event is emitted when a subdirectory is created.
|
|
131
|
-
*
|
|
132
|
-
* #### Listener signature
|
|
133
|
-
*
|
|
134
|
-
* ```typescript
|
|
135
|
-
* (path: string, local: boolean, target: IEventThisPlaceHolder) => void
|
|
136
|
-
* ```
|
|
137
|
-
* - `path` - The relative path to the subdirectory that is created.
|
|
138
|
-
* It is relative from the object which raises the event.
|
|
139
|
-
*
|
|
140
|
-
* - `local` - Whether the create originated from the this client.
|
|
141
|
-
*
|
|
142
|
-
* - `target` - The ISharedDirectory itself.
|
|
143
|
-
*
|
|
144
|
-
* ###"subDirectoryDeleted"
|
|
145
|
-
*
|
|
146
|
-
* The subDirectoryDeleted event is emitted when a subdirectory is deleted.
|
|
147
|
-
*
|
|
148
|
-
* #### Listener signature
|
|
149
|
-
*
|
|
150
|
-
* ```typescript
|
|
151
|
-
* (path: string, local: boolean, target: IEventThisPlaceHolder) => void
|
|
152
|
-
* ```
|
|
153
|
-
* - `path` - The relative path to the subdirectory that is deleted.
|
|
154
|
-
* It is relative from the object which raises the event.
|
|
155
|
-
*
|
|
156
|
-
* - `local` - Whether the delete originated from the this client.
|
|
157
|
-
*
|
|
158
|
-
* - `target` - The ISharedDirectory itself.
|
|
92
|
+
* These events only emit on the {@link ISharedDirectory} itself, and not on subdirectories.
|
|
93
|
+
* @alpha
|
|
159
94
|
*/
|
|
160
95
|
export interface ISharedDirectoryEvents extends ISharedObjectEvents {
|
|
96
|
+
/**
|
|
97
|
+
* Emitted when a key is set or deleted. This is emitted for any key in the {@link ISharedDirectory} or any
|
|
98
|
+
* subdirectory.
|
|
99
|
+
*
|
|
100
|
+
* @remarks Listener parameters:
|
|
101
|
+
*
|
|
102
|
+
* - `changed` - Information on the key that changed, its value prior to the change, and the path to the
|
|
103
|
+
* key that changed.
|
|
104
|
+
*
|
|
105
|
+
* - `local` - Whether the change originated from this client.
|
|
106
|
+
*
|
|
107
|
+
* - `target` - The {@link ISharedDirectory} itself.
|
|
108
|
+
*/
|
|
161
109
|
(event: "valueChanged", listener: (changed: IDirectoryValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
110
|
+
/**
|
|
111
|
+
* Emitted when the {@link ISharedDirectory} is cleared.
|
|
112
|
+
*
|
|
113
|
+
* @remarks Listener parameters:
|
|
114
|
+
*
|
|
115
|
+
* - `local` - Whether the clear originated from this client.
|
|
116
|
+
*
|
|
117
|
+
* - `target` - The {@link ISharedDirectory} itself.
|
|
118
|
+
*/
|
|
162
119
|
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
120
|
+
/**
|
|
121
|
+
* Emitted when a subdirectory is created.
|
|
122
|
+
*
|
|
123
|
+
* @remarks Listener parameters:
|
|
124
|
+
*
|
|
125
|
+
* - `path` - The relative path to the subdirectory that is created.
|
|
126
|
+
* It is relative from the object which raises the event.
|
|
127
|
+
*
|
|
128
|
+
* - `local` - Whether the create originated from the this client.
|
|
129
|
+
*
|
|
130
|
+
* - `target` - The {@link ISharedDirectory} itself.
|
|
131
|
+
*/
|
|
163
132
|
(event: "subDirectoryCreated", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
133
|
+
/**
|
|
134
|
+
* Emitted when a subdirectory is deleted.
|
|
135
|
+
*
|
|
136
|
+
* @remarks Listener parameters:
|
|
137
|
+
*
|
|
138
|
+
* - `path` - The relative path to the subdirectory that is deleted.
|
|
139
|
+
* It is relative from the object which raises the event.
|
|
140
|
+
*
|
|
141
|
+
* - `local` - Whether the delete originated from the this client.
|
|
142
|
+
*
|
|
143
|
+
* - `target` - The {@link ISharedDirectory} itself.
|
|
144
|
+
*/
|
|
164
145
|
(event: "subDirectoryDeleted", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
165
146
|
}
|
|
166
147
|
/**
|
|
167
148
|
* Events emitted in response to changes to the directory data.
|
|
168
|
-
*
|
|
169
|
-
* @remarks
|
|
170
|
-
*
|
|
171
|
-
* The following is the list of events emitted.
|
|
172
|
-
*
|
|
173
|
-
* ### "containedValueChanged"
|
|
174
|
-
*
|
|
175
|
-
* The containedValueChanged event is emitted when a key is set or deleted. As opposed to the SharedDirectory's
|
|
176
|
-
* valueChanged event, this is emitted only on the IDirectory that directly contains the key.
|
|
177
|
-
*
|
|
178
|
-
* #### Listener signature
|
|
179
|
-
*
|
|
180
|
-
* ```typescript
|
|
181
|
-
* (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void
|
|
182
|
-
* ```
|
|
183
|
-
* - `changed` - Information on the key that changed and its value prior to the change.
|
|
184
|
-
*
|
|
185
|
-
* - `local` - Whether the change originated from this client.
|
|
186
|
-
*
|
|
187
|
-
* - `target` - The IDirectory itself.
|
|
188
|
-
*
|
|
189
|
-
* ### "subDirectoryCreated"
|
|
190
|
-
*
|
|
191
|
-
* The subDirectoryCreated event is emitted when a subdirectory is created.
|
|
192
|
-
*
|
|
193
|
-
* #### Listener signature
|
|
194
|
-
*
|
|
195
|
-
* ```typescript
|
|
196
|
-
* (path: string, local: boolean, target: IEventThisPlaceHolder) => void
|
|
197
|
-
* ```
|
|
198
|
-
* - `path` - The relative path to the subdirectory that is created.
|
|
199
|
-
* It is relative from the object which raises the event.
|
|
200
|
-
*
|
|
201
|
-
* - `local` - Whether the creation originated from the this client.
|
|
202
|
-
*
|
|
203
|
-
* - `target` - The ISharedDirectory itself.
|
|
204
|
-
*
|
|
205
|
-
* ### "subDirectoryDeleted"
|
|
206
|
-
*
|
|
207
|
-
* The subDirectoryDeleted event is emitted when a subdirectory is deleted.
|
|
208
|
-
*
|
|
209
|
-
* #### Listener signature
|
|
210
|
-
*
|
|
211
|
-
* ```typescript
|
|
212
|
-
* (path: string, local: boolean, target: IEventThisPlaceHolder) => void
|
|
213
|
-
* ```
|
|
214
|
-
* - `path` - The relative path to the subdirectory that is deleted.
|
|
215
|
-
* It is relative from the object which raises the event.
|
|
216
|
-
*
|
|
217
|
-
* - `local` - Whether the delete originated from the this client.
|
|
218
|
-
*
|
|
219
|
-
* - `target` - The ISharedDirectory itself.
|
|
220
|
-
*
|
|
221
|
-
* ### "disposed"
|
|
222
|
-
*
|
|
223
|
-
* The dispose event is emitted when this sub directory is deleted.
|
|
224
|
-
*
|
|
225
|
-
* #### Listener signature
|
|
226
|
-
*
|
|
227
|
-
* ```typescript
|
|
228
|
-
* (local: boolean, target: IEventThisPlaceHolder) => void
|
|
229
|
-
* ```
|
|
230
|
-
*
|
|
231
|
-
* - `target` - The IDirectory itself.
|
|
149
|
+
* @alpha
|
|
232
150
|
*/
|
|
233
151
|
export interface IDirectoryEvents extends IEvent {
|
|
152
|
+
/**
|
|
153
|
+
* Emitted when a key is set or deleted. As opposed to the
|
|
154
|
+
* {@link SharedDirectory}'s valueChanged event, this is emitted only on the {@link IDirectory} that directly
|
|
155
|
+
* contains the key.
|
|
156
|
+
*
|
|
157
|
+
* @remarks Listener parameters:
|
|
158
|
+
*
|
|
159
|
+
* - `changed` - Information on the key that changed and its value prior to the change.
|
|
160
|
+
*
|
|
161
|
+
* - `local` - Whether the change originated from this client.
|
|
162
|
+
*
|
|
163
|
+
* - `target` - The {@link IDirectory} itself.
|
|
164
|
+
*/
|
|
234
165
|
(event: "containedValueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
166
|
+
/**
|
|
167
|
+
* Emitted when a subdirectory is created. Also emitted when a delete
|
|
168
|
+
* of a subdirectory is rolled back.
|
|
169
|
+
*
|
|
170
|
+
* @remarks Listener parameters:
|
|
171
|
+
*
|
|
172
|
+
* - `path` - The relative path to the subdirectory that is created.
|
|
173
|
+
* It is relative from the object which raises the event.
|
|
174
|
+
*
|
|
175
|
+
* - `local` - Whether the creation originated from the this client.
|
|
176
|
+
*
|
|
177
|
+
* - `target` - The {@link ISharedDirectory} itself.
|
|
178
|
+
*/
|
|
235
179
|
(event: "subDirectoryCreated", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
180
|
+
/**
|
|
181
|
+
* Emitted when a subdirectory is deleted.
|
|
182
|
+
*
|
|
183
|
+
* @remarks Listener parameters:
|
|
184
|
+
*
|
|
185
|
+
* - `path` - The relative path to the subdirectory that is deleted.
|
|
186
|
+
* It is relative from the object which raises the event.
|
|
187
|
+
*
|
|
188
|
+
* - `local` - Whether the delete originated from the this client.
|
|
189
|
+
*
|
|
190
|
+
* - `target` - The {@link ISharedDirectory} itself.
|
|
191
|
+
*/
|
|
236
192
|
(event: "subDirectoryDeleted", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
193
|
+
/**
|
|
194
|
+
* Emitted when this sub directory is deleted.
|
|
195
|
+
*
|
|
196
|
+
* @remarks Listener parameters:
|
|
197
|
+
*
|
|
198
|
+
* - `target` - The {@link IDirectory} itself.
|
|
199
|
+
*/
|
|
237
200
|
(event: "disposed", listener: (target: IEventThisPlaceHolder) => void): any;
|
|
201
|
+
/**
|
|
202
|
+
* Emitted when this previously deleted sub directory is restored.
|
|
203
|
+
* This event only needs to be handled in the case of rollback. If your application does
|
|
204
|
+
* not use the local rollback feature, you can ignore this event.
|
|
205
|
+
*
|
|
206
|
+
* @remarks Listener parameters:
|
|
207
|
+
*
|
|
208
|
+
* - `target` - The {@link IDirectory} itself.
|
|
209
|
+
*/
|
|
210
|
+
(event: "undisposed", listener: (target: IEventThisPlaceHolder) => void): any;
|
|
238
211
|
}
|
|
239
212
|
/**
|
|
240
|
-
*
|
|
213
|
+
* Provides a hierarchical organization of map-like data structures as SubDirectories.
|
|
214
|
+
* The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.
|
|
215
|
+
* SubDirectories can be retrieved for use as working directories.
|
|
216
|
+
* @alpha
|
|
241
217
|
*/
|
|
242
218
|
export interface ISharedDirectory extends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>, Omit<IDirectory, "on" | "once" | "off"> {
|
|
243
219
|
[Symbol.iterator](): IterableIterator<[string, any]>;
|
|
244
220
|
readonly [Symbol.toStringTag]: string;
|
|
245
221
|
}
|
|
246
222
|
/**
|
|
247
|
-
* Type of "valueChanged" event parameter for
|
|
223
|
+
* Type of "valueChanged" event parameter for {@link ISharedDirectory}.
|
|
224
|
+
* @alpha
|
|
248
225
|
*/
|
|
249
226
|
export interface IDirectoryValueChanged extends IValueChanged {
|
|
250
227
|
/**
|
|
@@ -253,69 +230,64 @@ export interface IDirectoryValueChanged extends IValueChanged {
|
|
|
253
230
|
path: string;
|
|
254
231
|
}
|
|
255
232
|
/**
|
|
256
|
-
* Events emitted in response to changes to the map data.
|
|
257
|
-
*
|
|
258
|
-
* @
|
|
259
|
-
*
|
|
260
|
-
* The following is the list of events emitted.
|
|
261
|
-
*
|
|
262
|
-
* ### "valueChanged"
|
|
263
|
-
*
|
|
264
|
-
* The valueChanged event is emitted when a key is set or deleted.
|
|
265
|
-
*
|
|
266
|
-
* #### Listener signature
|
|
267
|
-
*
|
|
268
|
-
* ```typescript
|
|
269
|
-
* (
|
|
270
|
-
* changed: IValueChanged,
|
|
271
|
-
* local: boolean,
|
|
272
|
-
* target: IEventThisPlaceHolder,
|
|
273
|
-
* ) => void
|
|
274
|
-
* ```
|
|
275
|
-
* - `changed` - Information on the key that changed and its value prior to the change.
|
|
276
|
-
*
|
|
277
|
-
* - `local` - Whether the change originated from this client.
|
|
278
|
-
*
|
|
279
|
-
* - `target` - The map itself.
|
|
280
|
-
*
|
|
281
|
-
* ### "clear"
|
|
282
|
-
*
|
|
283
|
-
* The clear event is emitted when the map is cleared.
|
|
284
|
-
*
|
|
285
|
-
* #### Listener signature
|
|
286
|
-
*
|
|
287
|
-
* ```typescript
|
|
288
|
-
* (local: boolean, target: IEventThisPlaceHolder) => void
|
|
289
|
-
* ```
|
|
290
|
-
* - `local` - Whether the clear originated from this client.
|
|
291
|
-
*
|
|
292
|
-
* - `target` - The map itself.
|
|
233
|
+
* Events emitted in response to changes to the {@link ISharedMap | map} data.
|
|
234
|
+
* @sealed
|
|
235
|
+
* @public
|
|
293
236
|
*/
|
|
294
237
|
export interface ISharedMapEvents extends ISharedObjectEvents {
|
|
238
|
+
/**
|
|
239
|
+
* Emitted when a key is set or deleted.
|
|
240
|
+
*
|
|
241
|
+
* @remarks Listener parameters:
|
|
242
|
+
*
|
|
243
|
+
* - `changed` - Information on the key that changed and its value prior to the change.
|
|
244
|
+
*
|
|
245
|
+
* - `local` - Whether the change originated from this client.
|
|
246
|
+
*
|
|
247
|
+
* - `target` - The {@link ISharedMap} itself.
|
|
248
|
+
*/
|
|
295
249
|
(event: "valueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
250
|
+
/**
|
|
251
|
+
* Emitted when the map is cleared.
|
|
252
|
+
*
|
|
253
|
+
* @remarks Listener parameters:
|
|
254
|
+
*
|
|
255
|
+
* - `local` - Whether the clear originated from this client.
|
|
256
|
+
*
|
|
257
|
+
* - `target` - The {@link ISharedMap} itself.
|
|
258
|
+
*/
|
|
296
259
|
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
297
260
|
}
|
|
298
261
|
/**
|
|
299
|
-
*
|
|
262
|
+
* The SharedMap distributed data structure can be used to store key-value pairs. It provides the same API for setting
|
|
263
|
+
* and retrieving values that JavaScript developers are accustomed to with the
|
|
264
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map | Map} built-in object.
|
|
265
|
+
* However, the keys of a SharedMap must be strings, and the values must either be a JSON-serializable object or a
|
|
266
|
+
* {@link @fluidframework/datastore#FluidObjectHandle}.
|
|
267
|
+
*
|
|
268
|
+
* For more information, including example usages, see {@link https://fluidframework.com/docs/data-structures/map/}.
|
|
269
|
+
* @sealed
|
|
270
|
+
* @public
|
|
300
271
|
*/
|
|
301
272
|
export interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string, any> {
|
|
302
273
|
/**
|
|
303
|
-
* Retrieves the given key from the map.
|
|
274
|
+
* Retrieves the given key from the map if it exists.
|
|
304
275
|
* @param key - Key to retrieve from
|
|
305
276
|
* @returns The stored value, or undefined if the key is not set
|
|
306
277
|
*/
|
|
307
278
|
get<T = any>(key: string): T | undefined;
|
|
308
279
|
/**
|
|
309
280
|
* Sets the value stored at key to the provided value.
|
|
310
|
-
* @param key - Key to set
|
|
281
|
+
* @param key - Key to set
|
|
311
282
|
* @param value - Value to set
|
|
312
|
-
* @returns The ISharedMap itself
|
|
283
|
+
* @returns The {@link ISharedMap} itself
|
|
313
284
|
*/
|
|
314
|
-
set<T =
|
|
285
|
+
set<T = unknown>(key: string, value: T): this;
|
|
315
286
|
}
|
|
316
287
|
/**
|
|
317
288
|
* The _ready-for-serialization_ format of values contained in DDS contents. This allows us to use
|
|
318
|
-
* ISerializableValue.type to understand whether they're storing a Plain
|
|
289
|
+
* {@link ISerializableValue."type"} to understand whether they're storing a Plain JavaScript object,
|
|
290
|
+
* a {@link @fluidframework/shared-object-base#SharedObject}, or a value type.
|
|
319
291
|
*
|
|
320
292
|
* @remarks
|
|
321
293
|
*
|
|
@@ -323,13 +295,18 @@ export interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string,
|
|
|
323
295
|
* the _in-memory representation_ of the value instead). An ISerializableValue is what gets passed to
|
|
324
296
|
* JSON.stringify and comes out of JSON.parse. This format is used both for snapshots (loadCore/populate)
|
|
325
297
|
* and ops (set).
|
|
298
|
+
*
|
|
326
299
|
* If type is Plain, it must be a plain JS object that can survive a JSON.stringify/parse. E.g. a URL object will
|
|
327
300
|
* just get stringified to a URL string and not rehydrate as a URL object on the other side. It may contain members
|
|
328
301
|
* that are ISerializedHandle (the serialized form of a handle).
|
|
302
|
+
*
|
|
329
303
|
* If type is a value type then it must be amongst the types registered via registerValueType or we won't know how
|
|
330
304
|
* to serialize/deserialize it (we rely on its factory via .load() and .store()). Its value will be type-dependent.
|
|
331
305
|
* If type is Shared, then the in-memory value will just be a reference to the SharedObject. Its value will be a
|
|
332
|
-
* channel ID.
|
|
306
|
+
* channel ID.
|
|
307
|
+
*
|
|
308
|
+
* @deprecated This type is legacy and deprecated.
|
|
309
|
+
* @alpha
|
|
333
310
|
*/
|
|
334
311
|
export interface ISerializableValue {
|
|
335
312
|
/**
|
|
@@ -341,6 +318,10 @@ export interface ISerializableValue {
|
|
|
341
318
|
*/
|
|
342
319
|
value: any;
|
|
343
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Serialized {@link ISerializableValue} counterpart.
|
|
323
|
+
* @alpha
|
|
324
|
+
*/
|
|
344
325
|
export interface ISerializedValue {
|
|
345
326
|
/**
|
|
346
327
|
* A type annotation to help indicate how the value serializes.
|
|
@@ -348,6 +329,8 @@ export interface ISerializedValue {
|
|
|
348
329
|
type: string;
|
|
349
330
|
/**
|
|
350
331
|
* String representation of the value.
|
|
332
|
+
*
|
|
333
|
+
* @remarks Will be undefined if the original value was undefined.
|
|
351
334
|
*/
|
|
352
335
|
value: string | undefined;
|
|
353
336
|
}
|
package/dist/interfaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,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,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAEzC;;;;;OAKG;IACH,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAEH,KAAK,EAAE,GAAG,CAAC;CACX;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internalInterfaces.cjs","sourceRoot":"","sources":["../src/internalInterfaces.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// eslint-disable-next-line import/no-deprecated\nimport { ISerializableValue } from \"./interfaces\";\nimport { ILocalValue } from \"./localValues\";\n\n/**\n * Operation indicating a value should be set for a key.\n */\nexport interface IMapSetOperation {\n\t/**\n\t * String identifier of the operation type.\n\t */\n\ttype: \"set\";\n\n\t/**\n\t * Map key being modified.\n\t */\n\tkey: string;\n\n\t/**\n\t * Value to be set on the key.\n\t */\n\t// eslint-disable-next-line import/no-deprecated\n\tvalue: ISerializableValue;\n}\n\n/**\n * Operation indicating the map should be cleared.\n */\nexport interface IMapClearOperation {\n\t/**\n\t * String identifier of the operation type.\n\t */\n\ttype: \"clear\";\n}\n\n/**\n * Operation indicating a key should be deleted from the map.\n */\nexport interface IMapDeleteOperation {\n\t/**\n\t * String identifier of the operation type.\n\t */\n\ttype: \"delete\";\n\n\t/**\n\t * Map key being modified.\n\t */\n\tkey: string;\n}\n\n/**\n * Metadata for an local `edit` operation.\n */\nexport interface IMapKeyEditLocalOpMetadata {\n\t/**\n\t * String identifier of the operation type.\n\t */\n\ttype: \"edit\";\n\n\t/**\n\t * Unique identifier for the local operation.\n\t */\n\tpendingMessageId: number;\n\n\t/**\n\t * Local value prior to the edit.\n\t */\n\tpreviousValue: ILocalValue;\n}\n\n/**\n * Metadata for an local `add` operation.\n */\nexport interface IMapKeyAddLocalOpMetadata {\n\t/**\n\t * String identifier of the operation type.\n\t */\n\ttype: \"add\";\n\n\t/**\n\t * Unique identifier for the local operation.\n\t */\n\tpendingMessageId: number;\n}\n\n/**\n * Metadata for an local `clear` operation.\n */\nexport interface IMapClearLocalOpMetadata {\n\t/**\n\t * String identifier of the operation type.\n\t */\n\ttype: \"clear\";\n\n\t/**\n\t * Unique identifier for the local operation.\n\t */\n\tpendingMessageId: number;\n\n\t/**\n\t * Local map contents prior to clearing it.\n\t */\n\tpreviousMap?: Map<string, ILocalValue>;\n}\n\n/**\n * Metadata for a local operation associated with a specific key entry in the map.\n */\nexport type MapKeyLocalOpMetadata = IMapKeyEditLocalOpMetadata | IMapKeyAddLocalOpMetadata;\n\n/**\n * Metadata for a local operation.\n */\nexport type MapLocalOpMetadata = IMapClearLocalOpMetadata | MapKeyLocalOpMetadata;\n"]}
|