@fluidframework/presence 2.103.0 → 2.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/alpha.d.ts +0 -4
- package/dist/beta.d.ts +1 -5
- package/dist/getPresence.d.ts +0 -12
- package/dist/getPresence.d.ts.map +1 -1
- package/dist/getPresence.js +1 -13
- package/dist/getPresence.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/legacy.alpha.d.ts +0 -4
- package/lib/alpha.d.ts +0 -4
- package/lib/beta.d.ts +1 -5
- package/lib/getPresence.d.ts +0 -12
- package/lib/getPresence.d.ts.map +1 -1
- package/lib/getPresence.js +0 -12
- package/lib/getPresence.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legacy.alpha.d.ts +0 -4
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ API documentation for **@fluidframework/presence** is available at <https://flui
|
|
|
43
43
|
|
|
44
44
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
45
45
|
|
|
46
|
-
<!-- AUTO-GENERATED-CONTENT:START (INCLUDE:path=../../../
|
|
46
|
+
<!-- AUTO-GENERATED-CONTENT:START (INCLUDE:path=../../../website/docs/build/presence.mdx&start=19) -->
|
|
47
47
|
|
|
48
48
|
<!-- prettier-ignore-start -->
|
|
49
49
|
<!-- NOTE: This section is automatically generated by embedding the referenced file contents. Do not update these generated contents directly. -->
|
package/dist/alpha.d.ts
CHANGED
package/dist/beta.d.ts
CHANGED
package/dist/getPresence.d.ts
CHANGED
|
@@ -3,19 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import type { Presence } from "@fluid-internal/presence-definitions";
|
|
6
|
-
import type { IFluidContainer } from "@fluidframework/fluid-static";
|
|
7
6
|
import type { IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
8
|
-
/**
|
|
9
|
-
* Acquire a {@link Presence} from a Fluid Container
|
|
10
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
11
|
-
* @returns the {@link Presence}
|
|
12
|
-
*
|
|
13
|
-
* @beta
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Import from `fluid-framework` instead. This export will be removed in the 2.110.0 release.
|
|
16
|
-
* See {@link https://github.com/microsoft/FluidFramework/issues/26397}
|
|
17
|
-
*/
|
|
18
|
-
export declare const getPresence: (fluidContainer: IFluidContainer) => Presence;
|
|
19
7
|
/**
|
|
20
8
|
* Get {@link Presence} from a Fluid Data Store Context
|
|
21
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPresence.d.ts","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAMrE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getPresence.d.ts","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAMrE,OAAO,KAAK,EAEX,sBAAsB,EACtB,MAAM,8CAA8C,CAAC;AAWtD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAGzF"}
|
package/dist/getPresence.js
CHANGED
|
@@ -4,21 +4,9 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.getPresenceFromDataStoreContext =
|
|
7
|
+
exports.getPresenceFromDataStoreContext = void 0;
|
|
8
8
|
const extension_1 = require("@fluid-internal/presence-runtime/extension");
|
|
9
9
|
const internal_1 = require("@fluidframework/core-utils/internal");
|
|
10
|
-
const internal_2 = require("@fluidframework/fluid-static/internal");
|
|
11
|
-
/**
|
|
12
|
-
* Acquire a {@link Presence} from a Fluid Container
|
|
13
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
14
|
-
* @returns the {@link Presence}
|
|
15
|
-
*
|
|
16
|
-
* @beta
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Import from `fluid-framework` instead. This export will be removed in the 2.110.0 release.
|
|
19
|
-
* See {@link https://github.com/microsoft/FluidFramework/issues/26397}
|
|
20
|
-
*/
|
|
21
|
-
exports.getPresence = internal_2.getPresenceAlpha;
|
|
22
10
|
function assertContextHasExtensionProvider(context) {
|
|
23
11
|
(0, internal_1.assert)("getExtension" in context, 0xc9c /* Data store context does not implement ContainerExtensionProvider */);
|
|
24
12
|
}
|
package/dist/getPresence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPresence.js","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,0EAGoD;AACpD,kEAA6D;
|
|
1
|
+
{"version":3,"file":"getPresence.js","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,0EAGoD;AACpD,kEAA6D;AAM7D,SAAS,iCAAiC,CACzC,OAA+B;IAE/B,IAAA,iBAAM,EACL,cAAc,IAAI,OAAO,EACzB,KAAK,CAAC,sEAAsE,CAC5E,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAgB,+BAA+B,CAAC,OAA+B;IAC9E,iCAAiC,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,OAAO,CAAC,YAAY,CAAC,uBAAW,EAAE,oCAAwB,CAAC,CAAC;AACpE,CAAC;AAHD,0EAGC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { Presence } from \"@fluid-internal/presence-definitions\";\nimport {\n\tContainerPresenceFactory,\n\textensionId,\n} from \"@fluid-internal/presence-runtime/extension\";\nimport { assert } from \"@fluidframework/core-utils/internal\";\nimport type {\n\tFluidDataStoreContextInternal,\n\tIFluidDataStoreContext,\n} from \"@fluidframework/runtime-definitions/internal\";\n\nfunction assertContextHasExtensionProvider(\n\tcontext: IFluidDataStoreContext,\n): asserts context is FluidDataStoreContextInternal {\n\tassert(\n\t\t\"getExtension\" in context,\n\t\t0xc9c /* Data store context does not implement ContainerExtensionProvider */,\n\t);\n}\n\n/**\n * Get {@link Presence} from a Fluid Data Store Context\n *\n * @legacy @alpha\n */\nexport function getPresenceFromDataStoreContext(context: IFluidDataStoreContext): Presence {\n\tassertContextHasExtensionProvider(context);\n\treturn context.getExtension(extensionId, ContainerPresenceFactory);\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
export type { Accessor, Attendee, AttendeeId, AttendeesEvents, BroadcastControls, BroadcastControlSettings, ClientConnectionId, InternalPresenceTypes, InternalPresenceUtilityTypes, KeySchemaValidator, Latest, LatestArguments, LatestArgumentsRaw, LatestClientData, LatestConfiguration, LatestData, LatestEvents, LatestFactory, LatestMap, LatestMapArguments, LatestMapArgumentsRaw, LatestMapClientData, LatestMapConfiguration, LatestMapEvents, LatestMapFactory, LatestMapItemRemovedClientData, LatestMapItemUpdatedClientData, LatestMapRaw, LatestMapRawConfiguration, LatestMapRawEvents, LatestMetadata, LatestRaw, LatestRawConfiguration, LatestRawEvents, NotificationEmitter, NotificationListenable, NotificationsConfiguration, NotificationsManager, NotificationsManagerEvents, NotificationSubscriberSignatures, NotificationsWithSubscriptionsConfiguration, NotificationsWorkspace, NotificationsWorkspaceSchema, Presence, PresenceEvents, PresenceWithNotifications, ProxiedValueAccessor, RawValueAccessor, StateMap, StateSchemaValidator, StatesWorkspace, StatesWorkspaceEntries, StatesWorkspaceEntry, StatesWorkspaceSchema, ValueAccessor, WorkspaceAddress, } from "@fluid-internal/presence-definitions";
|
|
13
13
|
export { AttendeeStatus } from "@fluid-internal/presence-definitions";
|
|
14
14
|
export { Notifications, StateFactory, } from "@fluid-internal/presence-runtime/states";
|
|
15
|
-
export {
|
|
15
|
+
export { getPresenceFromDataStoreContext } from "./getPresence.js";
|
|
16
16
|
//# 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;;;;;;GAMG;AAGH,YAAY,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,8BAA8B,EAC9B,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,gCAAgC,EAChC,2CAA2C,EAC3C,sBAAsB,EACtB,4BAA4B,EAC5B,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,yCAAyC,CAAC;AAGjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAGH,YAAY,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,8BAA8B,EAC9B,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,gCAAgC,EAChC,2CAA2C,EAC3C,sBAAsB,EACtB,4BAA4B,EAC5B,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.getPresenceFromDataStoreContext = exports.
|
|
7
|
+
exports.getPresenceFromDataStoreContext = exports.StateFactory = exports.Notifications = exports.AttendeeStatus = void 0;
|
|
8
8
|
var presence_definitions_1 = require("@fluid-internal/presence-definitions");
|
|
9
9
|
Object.defineProperty(exports, "AttendeeStatus", { enumerable: true, get: function () { return presence_definitions_1.AttendeeStatus; } });
|
|
10
10
|
// Re-export from presence-runtime
|
|
@@ -13,6 +13,5 @@ Object.defineProperty(exports, "Notifications", { enumerable: true, get: functio
|
|
|
13
13
|
Object.defineProperty(exports, "StateFactory", { enumerable: true, get: function () { return states_1.StateFactory; } });
|
|
14
14
|
// Local exports
|
|
15
15
|
var getPresence_js_1 = require("./getPresence.js");
|
|
16
|
-
Object.defineProperty(exports, "getPresence", { enumerable: true, get: function () { return getPresence_js_1.getPresence; } });
|
|
17
16
|
Object.defineProperty(exports, "getPresenceFromDataStoreContext", { enumerable: true, get: function () { return getPresence_js_1.getPresenceFromDataStoreContext; } });
|
|
18
17
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAqEH,6EAAsE;AAA7D,sHAAA,cAAc,OAAA;AAEvB,kCAAkC;AAClC,kEAGiD;AAFhD,uGAAA,aAAa,OAAA;AACb,sGAAA,YAAY,OAAA;AAGb,gBAAgB;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAqEH,6EAAsE;AAA7D,sHAAA,cAAc,OAAA;AAEvB,kCAAkC;AAClC,kEAGiD;AAFhD,uGAAA,aAAa,OAAA;AACb,sGAAA,YAAY,OAAA;AAGb,gBAAgB;AAChB,mDAAmE;AAA1D,iIAAA,+BAA+B,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Package for client presence within a connected session.\n *\n * See {@link https://github.com/microsoft/FluidFramework/tree/main/packages/framework/presence#readme | README.md } for an overview of the package.\n *\n * @packageDocumentation\n */\n\n// Re-export from presence-definitions\nexport type {\n\tAccessor,\n\tAttendee,\n\tAttendeeId,\n\tAttendeesEvents,\n\tBroadcastControls,\n\tBroadcastControlSettings,\n\tClientConnectionId,\n\tInternalPresenceTypes,\n\tInternalPresenceUtilityTypes,\n\tKeySchemaValidator,\n\tLatest,\n\tLatestArguments,\n\tLatestArgumentsRaw,\n\tLatestClientData,\n\tLatestConfiguration,\n\tLatestData,\n\tLatestEvents,\n\tLatestFactory,\n\tLatestMap,\n\tLatestMapArguments,\n\tLatestMapArgumentsRaw,\n\tLatestMapClientData,\n\tLatestMapConfiguration,\n\tLatestMapEvents,\n\tLatestMapFactory,\n\tLatestMapItemRemovedClientData,\n\tLatestMapItemUpdatedClientData,\n\tLatestMapRaw,\n\tLatestMapRawConfiguration,\n\tLatestMapRawEvents,\n\tLatestMetadata,\n\tLatestRaw,\n\tLatestRawConfiguration,\n\tLatestRawEvents,\n\tNotificationEmitter,\n\tNotificationListenable,\n\tNotificationsConfiguration,\n\tNotificationsManager,\n\tNotificationsManagerEvents,\n\tNotificationSubscriberSignatures,\n\tNotificationsWithSubscriptionsConfiguration,\n\tNotificationsWorkspace,\n\tNotificationsWorkspaceSchema,\n\tPresence,\n\tPresenceEvents,\n\tPresenceWithNotifications,\n\tProxiedValueAccessor,\n\tRawValueAccessor,\n\tStateMap,\n\tStateSchemaValidator,\n\tStatesWorkspace,\n\tStatesWorkspaceEntries,\n\tStatesWorkspaceEntry,\n\tStatesWorkspaceSchema,\n\tValueAccessor,\n\tWorkspaceAddress,\n} from \"@fluid-internal/presence-definitions\";\nexport { AttendeeStatus } from \"@fluid-internal/presence-definitions\";\n\n// Re-export from presence-runtime\nexport {\n\tNotifications,\n\tStateFactory,\n} from \"@fluid-internal/presence-runtime/states\";\n\n// Local exports\nexport { getPresenceFromDataStoreContext } from \"./getPresence.js\";\n"]}
|
package/dist/legacy.alpha.d.ts
CHANGED
package/lib/alpha.d.ts
CHANGED
package/lib/beta.d.ts
CHANGED
package/lib/getPresence.d.ts
CHANGED
|
@@ -3,19 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import type { Presence } from "@fluid-internal/presence-definitions";
|
|
6
|
-
import type { IFluidContainer } from "@fluidframework/fluid-static";
|
|
7
6
|
import type { IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
8
|
-
/**
|
|
9
|
-
* Acquire a {@link Presence} from a Fluid Container
|
|
10
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
11
|
-
* @returns the {@link Presence}
|
|
12
|
-
*
|
|
13
|
-
* @beta
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Import from `fluid-framework` instead. This export will be removed in the 2.110.0 release.
|
|
16
|
-
* See {@link https://github.com/microsoft/FluidFramework/issues/26397}
|
|
17
|
-
*/
|
|
18
|
-
export declare const getPresence: (fluidContainer: IFluidContainer) => Presence;
|
|
19
7
|
/**
|
|
20
8
|
* Get {@link Presence} from a Fluid Data Store Context
|
|
21
9
|
*
|
package/lib/getPresence.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPresence.d.ts","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAMrE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getPresence.d.ts","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAMrE,OAAO,KAAK,EAEX,sBAAsB,EACtB,MAAM,8CAA8C,CAAC;AAWtD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAGzF"}
|
package/lib/getPresence.js
CHANGED
|
@@ -4,18 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ContainerPresenceFactory, extensionId, } from "@fluid-internal/presence-runtime/extension";
|
|
6
6
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
7
|
-
import { getPresenceAlpha } from "@fluidframework/fluid-static/internal";
|
|
8
|
-
/**
|
|
9
|
-
* Acquire a {@link Presence} from a Fluid Container
|
|
10
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
11
|
-
* @returns the {@link Presence}
|
|
12
|
-
*
|
|
13
|
-
* @beta
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Import from `fluid-framework` instead. This export will be removed in the 2.110.0 release.
|
|
16
|
-
* See {@link https://github.com/microsoft/FluidFramework/issues/26397}
|
|
17
|
-
*/
|
|
18
|
-
export const getPresence = getPresenceAlpha;
|
|
19
7
|
function assertContextHasExtensionProvider(context) {
|
|
20
8
|
assert("getExtension" in context, 0xc9c /* Data store context does not implement ContainerExtensionProvider */);
|
|
21
9
|
}
|
package/lib/getPresence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPresence.js","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,wBAAwB,EACxB,WAAW,GACX,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"getPresence.js","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,wBAAwB,EACxB,WAAW,GACX,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAM7D,SAAS,iCAAiC,CACzC,OAA+B;IAE/B,MAAM,CACL,cAAc,IAAI,OAAO,EACzB,KAAK,CAAC,sEAAsE,CAC5E,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAAC,OAA+B;IAC9E,iCAAiC,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAC;AACpE,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { Presence } from \"@fluid-internal/presence-definitions\";\nimport {\n\tContainerPresenceFactory,\n\textensionId,\n} from \"@fluid-internal/presence-runtime/extension\";\nimport { assert } from \"@fluidframework/core-utils/internal\";\nimport type {\n\tFluidDataStoreContextInternal,\n\tIFluidDataStoreContext,\n} from \"@fluidframework/runtime-definitions/internal\";\n\nfunction assertContextHasExtensionProvider(\n\tcontext: IFluidDataStoreContext,\n): asserts context is FluidDataStoreContextInternal {\n\tassert(\n\t\t\"getExtension\" in context,\n\t\t0xc9c /* Data store context does not implement ContainerExtensionProvider */,\n\t);\n}\n\n/**\n * Get {@link Presence} from a Fluid Data Store Context\n *\n * @legacy @alpha\n */\nexport function getPresenceFromDataStoreContext(context: IFluidDataStoreContext): Presence {\n\tassertContextHasExtensionProvider(context);\n\treturn context.getExtension(extensionId, ContainerPresenceFactory);\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
export type { Accessor, Attendee, AttendeeId, AttendeesEvents, BroadcastControls, BroadcastControlSettings, ClientConnectionId, InternalPresenceTypes, InternalPresenceUtilityTypes, KeySchemaValidator, Latest, LatestArguments, LatestArgumentsRaw, LatestClientData, LatestConfiguration, LatestData, LatestEvents, LatestFactory, LatestMap, LatestMapArguments, LatestMapArgumentsRaw, LatestMapClientData, LatestMapConfiguration, LatestMapEvents, LatestMapFactory, LatestMapItemRemovedClientData, LatestMapItemUpdatedClientData, LatestMapRaw, LatestMapRawConfiguration, LatestMapRawEvents, LatestMetadata, LatestRaw, LatestRawConfiguration, LatestRawEvents, NotificationEmitter, NotificationListenable, NotificationsConfiguration, NotificationsManager, NotificationsManagerEvents, NotificationSubscriberSignatures, NotificationsWithSubscriptionsConfiguration, NotificationsWorkspace, NotificationsWorkspaceSchema, Presence, PresenceEvents, PresenceWithNotifications, ProxiedValueAccessor, RawValueAccessor, StateMap, StateSchemaValidator, StatesWorkspace, StatesWorkspaceEntries, StatesWorkspaceEntry, StatesWorkspaceSchema, ValueAccessor, WorkspaceAddress, } from "@fluid-internal/presence-definitions";
|
|
13
13
|
export { AttendeeStatus } from "@fluid-internal/presence-definitions";
|
|
14
14
|
export { Notifications, StateFactory, } from "@fluid-internal/presence-runtime/states";
|
|
15
|
-
export {
|
|
15
|
+
export { getPresenceFromDataStoreContext } from "./getPresence.js";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAGH,YAAY,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,8BAA8B,EAC9B,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,gCAAgC,EAChC,2CAA2C,EAC3C,sBAAsB,EACtB,4BAA4B,EAC5B,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,yCAAyC,CAAC;AAGjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAGH,YAAY,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,8BAA8B,EAC9B,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,gCAAgC,EAChC,2CAA2C,EAC3C,sBAAsB,EACtB,4BAA4B,EAC5B,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -6,5 +6,5 @@ export { AttendeeStatus } from "@fluid-internal/presence-definitions";
|
|
|
6
6
|
// Re-export from presence-runtime
|
|
7
7
|
export { Notifications, StateFactory, } from "@fluid-internal/presence-runtime/states";
|
|
8
8
|
// Local exports
|
|
9
|
-
export {
|
|
9
|
+
export { getPresenceFromDataStoreContext } from "./getPresence.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqEH,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE,kCAAkC;AAClC,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,yCAAyC,CAAC;AAEjD,gBAAgB;AAChB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqEH,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE,kCAAkC;AAClC,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,yCAAyC,CAAC;AAEjD,gBAAgB;AAChB,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Package for client presence within a connected session.\n *\n * See {@link https://github.com/microsoft/FluidFramework/tree/main/packages/framework/presence#readme | README.md } for an overview of the package.\n *\n * @packageDocumentation\n */\n\n// Re-export from presence-definitions\nexport type {\n\tAccessor,\n\tAttendee,\n\tAttendeeId,\n\tAttendeesEvents,\n\tBroadcastControls,\n\tBroadcastControlSettings,\n\tClientConnectionId,\n\tInternalPresenceTypes,\n\tInternalPresenceUtilityTypes,\n\tKeySchemaValidator,\n\tLatest,\n\tLatestArguments,\n\tLatestArgumentsRaw,\n\tLatestClientData,\n\tLatestConfiguration,\n\tLatestData,\n\tLatestEvents,\n\tLatestFactory,\n\tLatestMap,\n\tLatestMapArguments,\n\tLatestMapArgumentsRaw,\n\tLatestMapClientData,\n\tLatestMapConfiguration,\n\tLatestMapEvents,\n\tLatestMapFactory,\n\tLatestMapItemRemovedClientData,\n\tLatestMapItemUpdatedClientData,\n\tLatestMapRaw,\n\tLatestMapRawConfiguration,\n\tLatestMapRawEvents,\n\tLatestMetadata,\n\tLatestRaw,\n\tLatestRawConfiguration,\n\tLatestRawEvents,\n\tNotificationEmitter,\n\tNotificationListenable,\n\tNotificationsConfiguration,\n\tNotificationsManager,\n\tNotificationsManagerEvents,\n\tNotificationSubscriberSignatures,\n\tNotificationsWithSubscriptionsConfiguration,\n\tNotificationsWorkspace,\n\tNotificationsWorkspaceSchema,\n\tPresence,\n\tPresenceEvents,\n\tPresenceWithNotifications,\n\tProxiedValueAccessor,\n\tRawValueAccessor,\n\tStateMap,\n\tStateSchemaValidator,\n\tStatesWorkspace,\n\tStatesWorkspaceEntries,\n\tStatesWorkspaceEntry,\n\tStatesWorkspaceSchema,\n\tValueAccessor,\n\tWorkspaceAddress,\n} from \"@fluid-internal/presence-definitions\";\nexport { AttendeeStatus } from \"@fluid-internal/presence-definitions\";\n\n// Re-export from presence-runtime\nexport {\n\tNotifications,\n\tStateFactory,\n} from \"@fluid-internal/presence-runtime/states\";\n\n// Local exports\nexport { getPresenceFromDataStoreContext } from \"./getPresence.js\";\n"]}
|
package/lib/legacy.alpha.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/presence",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.111.0",
|
|
4
4
|
"description": "A component for lightweight data sharing within a single session",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -61,22 +61,21 @@
|
|
|
61
61
|
"!**/test/**"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@fluid-internal/presence-definitions": "~2.
|
|
65
|
-
"@fluid-internal/presence-runtime": "~2.
|
|
66
|
-
"@fluidframework/core-utils": "~2.
|
|
67
|
-
"@fluidframework/
|
|
68
|
-
"@fluidframework/runtime-definitions": "~2.103.0"
|
|
64
|
+
"@fluid-internal/presence-definitions": "~2.111.0",
|
|
65
|
+
"@fluid-internal/presence-runtime": "~2.111.0",
|
|
66
|
+
"@fluidframework/core-utils": "~2.111.0",
|
|
67
|
+
"@fluidframework/runtime-definitions": "~2.111.0"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
70
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
72
71
|
"@biomejs/biome": "~2.4.5",
|
|
73
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
72
|
+
"@fluid-internal/mocha-test-setup": "~2.111.0",
|
|
74
73
|
"@fluid-tools/build-cli": "^0.65.0",
|
|
75
74
|
"@fluidframework/build-common": "^2.0.3",
|
|
76
75
|
"@fluidframework/build-tools": "^0.65.0",
|
|
77
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
76
|
+
"@fluidframework/eslint-config-fluid": "^13.0.0",
|
|
78
77
|
"@microsoft/api-extractor": "7.58.1",
|
|
79
|
-
"concurrently": "^
|
|
78
|
+
"concurrently": "^10.0.3",
|
|
80
79
|
"copyfiles": "^2.4.1",
|
|
81
80
|
"cross-env": "^10.1.0",
|
|
82
81
|
"eslint": "~9.39.1",
|