@fluidframework/presence 2.92.0 → 2.100.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 +4 -4
- package/dist/alpha.d.ts +6 -4
- package/dist/beta.d.ts +5 -2
- package/dist/getPresence.d.ts +4 -9
- package/dist/getPresence.d.ts.map +1 -1
- package/dist/getPresence.js +6 -86
- package/dist/getPresence.js.map +1 -1
- package/dist/index.d.ts +4 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/legacy.alpha.d.ts +6 -4
- package/dist/package.json +1 -15
- package/dist/public.d.ts +69 -0
- package/lib/alpha.d.ts +6 -4
- package/lib/beta.d.ts +5 -2
- package/lib/getPresence.d.ts +4 -9
- package/lib/getPresence.d.ts.map +1 -1
- package/lib/getPresence.js +6 -85
- package/lib/getPresence.js.map +1 -1
- package/lib/index.d.ts +4 -13
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/lib/legacy.alpha.d.ts +6 -4
- package/lib/public.d.ts +69 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/package.json +32 -78
- package/dist/baseTypes.d.ts +0 -24
- package/dist/baseTypes.d.ts.map +0 -1
- package/dist/baseTypes.js +0 -7
- package/dist/baseTypes.js.map +0 -1
- package/dist/broadcastControls.d.ts +0 -37
- package/dist/broadcastControls.d.ts.map +0 -1
- package/dist/broadcastControls.js +0 -60
- package/dist/broadcastControls.js.map +0 -1
- package/dist/broadcastControlsTypes.d.ts +0 -38
- package/dist/broadcastControlsTypes.d.ts.map +0 -1
- package/dist/broadcastControlsTypes.js +0 -7
- package/dist/broadcastControlsTypes.js.map +0 -1
- package/dist/exposedInternalTypes.d.ts +0 -138
- package/dist/exposedInternalTypes.d.ts.map +0 -1
- package/dist/exposedInternalTypes.js +0 -19
- package/dist/exposedInternalTypes.js.map +0 -1
- package/dist/exposedUtilityTypes.d.ts +0 -108
- package/dist/exposedUtilityTypes.d.ts.map +0 -1
- package/dist/exposedUtilityTypes.js +0 -7
- package/dist/exposedUtilityTypes.js.map +0 -1
- package/dist/internalUtils.d.ts +0 -125
- package/dist/internalUtils.d.ts.map +0 -1
- package/dist/internalUtils.js +0 -99
- package/dist/internalUtils.js.map +0 -1
- package/dist/latestMapTypes.d.ts +0 -343
- package/dist/latestMapTypes.d.ts.map +0 -1
- package/dist/latestMapTypes.js +0 -7
- package/dist/latestMapTypes.js.map +0 -1
- package/dist/latestMapValueManager.d.ts +0 -52
- package/dist/latestMapValueManager.d.ts.map +0 -1
- package/dist/latestMapValueManager.js +0 -250
- package/dist/latestMapValueManager.js.map +0 -1
- package/dist/latestTypes.d.ts +0 -183
- package/dist/latestTypes.d.ts.map +0 -1
- package/dist/latestTypes.js +0 -7
- package/dist/latestTypes.js.map +0 -1
- package/dist/latestValueManager.d.ts +0 -10
- package/dist/latestValueManager.d.ts.map +0 -1
- package/dist/latestValueManager.js +0 -117
- package/dist/latestValueManager.js.map +0 -1
- package/dist/latestValueTypes.d.ts +0 -108
- package/dist/latestValueTypes.d.ts.map +0 -1
- package/dist/latestValueTypes.js +0 -7
- package/dist/latestValueTypes.js.map +0 -1
- package/dist/notificationsManager.d.ts +0 -27
- package/dist/notificationsManager.d.ts.map +0 -1
- package/dist/notificationsManager.js +0 -98
- package/dist/notificationsManager.js.map +0 -1
- package/dist/notificationsManagerTypes.d.ts +0 -144
- package/dist/notificationsManagerTypes.d.ts.map +0 -1
- package/dist/notificationsManagerTypes.js +0 -7
- package/dist/notificationsManagerTypes.js.map +0 -1
- package/dist/packageVersion.d.ts +0 -9
- package/dist/packageVersion.d.ts.map +0 -1
- package/dist/packageVersion.js +0 -12
- package/dist/packageVersion.js.map +0 -1
- package/dist/presence.d.ts +0 -229
- package/dist/presence.d.ts.map +0 -1
- package/dist/presence.js +0 -23
- package/dist/presence.js.map +0 -1
- package/dist/presenceDatastoreManager.d.ts +0 -149
- package/dist/presenceDatastoreManager.d.ts.map +0 -1
- package/dist/presenceDatastoreManager.js +0 -667
- package/dist/presenceDatastoreManager.js.map +0 -1
- package/dist/presenceManager.d.ts +0 -16
- package/dist/presenceManager.d.ts.map +0 -1
- package/dist/presenceManager.js +0 -140
- package/dist/presenceManager.js.map +0 -1
- package/dist/presenceStates.d.ts +0 -102
- package/dist/presenceStates.d.ts.map +0 -1
- package/dist/presenceStates.js +0 -231
- package/dist/presenceStates.js.map +0 -1
- package/dist/protocol.d.ts +0 -111
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -20
- package/dist/protocol.js.map +0 -1
- package/dist/runtimeTypes.d.ts +0 -26
- package/dist/runtimeTypes.d.ts.map +0 -1
- package/dist/runtimeTypes.js +0 -7
- package/dist/runtimeTypes.js.map +0 -1
- package/dist/stateDatastore.d.ts +0 -56
- package/dist/stateDatastore.d.ts.map +0 -1
- package/dist/stateDatastore.js +0 -22
- package/dist/stateDatastore.js.map +0 -1
- package/dist/stateFactory.d.ts +0 -18
- package/dist/stateFactory.d.ts.map +0 -1
- package/dist/stateFactory.js +0 -23
- package/dist/stateFactory.js.map +0 -1
- package/dist/statesManagerTypes.d.ts +0 -27
- package/dist/statesManagerTypes.d.ts.map +0 -1
- package/dist/statesManagerTypes.js +0 -7
- package/dist/statesManagerTypes.js.map +0 -1
- package/dist/systemWorkspace.d.ts +0 -58
- package/dist/systemWorkspace.d.ts.map +0 -1
- package/dist/systemWorkspace.js +0 -265
- package/dist/systemWorkspace.js.map +0 -1
- package/dist/timerManager.d.ts +0 -37
- package/dist/timerManager.d.ts.map +0 -1
- package/dist/timerManager.js +0 -65
- package/dist/timerManager.js.map +0 -1
- package/dist/types.d.ts +0 -132
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -7
- package/dist/types.js.map +0 -1
- package/dist/validatableTypes.d.ts +0 -69
- package/dist/validatableTypes.d.ts.map +0 -1
- package/dist/validatableTypes.js +0 -7
- package/dist/validatableTypes.js.map +0 -1
- package/dist/validatedGetter.d.ts +0 -18
- package/dist/validatedGetter.d.ts.map +0 -1
- package/dist/validatedGetter.js +0 -43
- package/dist/validatedGetter.js.map +0 -1
- package/dist/valueManager.d.ts +0 -15
- package/dist/valueManager.d.ts.map +0 -1
- package/dist/valueManager.js +0 -22
- package/dist/valueManager.js.map +0 -1
- package/lib/baseTypes.d.ts +0 -24
- package/lib/baseTypes.d.ts.map +0 -1
- package/lib/baseTypes.js +0 -6
- package/lib/baseTypes.js.map +0 -1
- package/lib/broadcastControls.d.ts +0 -37
- package/lib/broadcastControls.d.ts.map +0 -1
- package/lib/broadcastControls.js +0 -55
- package/lib/broadcastControls.js.map +0 -1
- package/lib/broadcastControlsTypes.d.ts +0 -38
- package/lib/broadcastControlsTypes.d.ts.map +0 -1
- package/lib/broadcastControlsTypes.js +0 -6
- package/lib/broadcastControlsTypes.js.map +0 -1
- package/lib/exposedInternalTypes.d.ts +0 -138
- package/lib/exposedInternalTypes.d.ts.map +0 -1
- package/lib/exposedInternalTypes.js +0 -16
- package/lib/exposedInternalTypes.js.map +0 -1
- package/lib/exposedUtilityTypes.d.ts +0 -108
- package/lib/exposedUtilityTypes.d.ts.map +0 -1
- package/lib/exposedUtilityTypes.js +0 -6
- package/lib/exposedUtilityTypes.js.map +0 -1
- package/lib/internalUtils.d.ts +0 -125
- package/lib/internalUtils.d.ts.map +0 -1
- package/lib/internalUtils.js +0 -90
- package/lib/internalUtils.js.map +0 -1
- package/lib/latestMapTypes.d.ts +0 -343
- package/lib/latestMapTypes.d.ts.map +0 -1
- package/lib/latestMapTypes.js +0 -6
- package/lib/latestMapTypes.js.map +0 -1
- package/lib/latestMapValueManager.d.ts +0 -52
- package/lib/latestMapValueManager.d.ts.map +0 -1
- package/lib/latestMapValueManager.js +0 -246
- package/lib/latestMapValueManager.js.map +0 -1
- package/lib/latestTypes.d.ts +0 -183
- package/lib/latestTypes.d.ts.map +0 -1
- package/lib/latestTypes.js +0 -6
- package/lib/latestTypes.js.map +0 -1
- package/lib/latestValueManager.d.ts +0 -10
- package/lib/latestValueManager.d.ts.map +0 -1
- package/lib/latestValueManager.js +0 -113
- package/lib/latestValueManager.js.map +0 -1
- package/lib/latestValueTypes.d.ts +0 -108
- package/lib/latestValueTypes.d.ts.map +0 -1
- package/lib/latestValueTypes.js +0 -6
- package/lib/latestValueTypes.js.map +0 -1
- package/lib/notificationsManager.d.ts +0 -27
- package/lib/notificationsManager.d.ts.map +0 -1
- package/lib/notificationsManager.js +0 -94
- package/lib/notificationsManager.js.map +0 -1
- package/lib/notificationsManagerTypes.d.ts +0 -144
- package/lib/notificationsManagerTypes.d.ts.map +0 -1
- package/lib/notificationsManagerTypes.js +0 -6
- package/lib/notificationsManagerTypes.js.map +0 -1
- package/lib/packageVersion.d.ts +0 -9
- package/lib/packageVersion.d.ts.map +0 -1
- package/lib/packageVersion.js +0 -9
- package/lib/packageVersion.js.map +0 -1
- package/lib/presence.d.ts +0 -229
- package/lib/presence.d.ts.map +0 -1
- package/lib/presence.js +0 -20
- package/lib/presence.js.map +0 -1
- package/lib/presenceDatastoreManager.d.ts +0 -149
- package/lib/presenceDatastoreManager.d.ts.map +0 -1
- package/lib/presenceDatastoreManager.js +0 -663
- package/lib/presenceDatastoreManager.js.map +0 -1
- package/lib/presenceManager.d.ts +0 -16
- package/lib/presenceManager.d.ts.map +0 -1
- package/lib/presenceManager.js +0 -136
- package/lib/presenceManager.js.map +0 -1
- package/lib/presenceStates.d.ts +0 -102
- package/lib/presenceStates.d.ts.map +0 -1
- package/lib/presenceStates.js +0 -225
- package/lib/presenceStates.js.map +0 -1
- package/lib/protocol.d.ts +0 -111
- package/lib/protocol.d.ts.map +0 -1
- package/lib/protocol.js +0 -17
- package/lib/protocol.js.map +0 -1
- package/lib/runtimeTypes.d.ts +0 -26
- package/lib/runtimeTypes.d.ts.map +0 -1
- package/lib/runtimeTypes.js +0 -6
- package/lib/runtimeTypes.js.map +0 -1
- package/lib/stateDatastore.d.ts +0 -56
- package/lib/stateDatastore.d.ts.map +0 -1
- package/lib/stateDatastore.js +0 -17
- package/lib/stateDatastore.js.map +0 -1
- package/lib/stateFactory.d.ts +0 -18
- package/lib/stateFactory.d.ts.map +0 -1
- package/lib/stateFactory.js +0 -20
- package/lib/stateFactory.js.map +0 -1
- package/lib/statesManagerTypes.d.ts +0 -27
- package/lib/statesManagerTypes.d.ts.map +0 -1
- package/lib/statesManagerTypes.js +0 -6
- package/lib/statesManagerTypes.js.map +0 -1
- package/lib/systemWorkspace.d.ts +0 -58
- package/lib/systemWorkspace.d.ts.map +0 -1
- package/lib/systemWorkspace.js +0 -261
- package/lib/systemWorkspace.js.map +0 -1
- package/lib/timerManager.d.ts +0 -37
- package/lib/timerManager.d.ts.map +0 -1
- package/lib/timerManager.js +0 -61
- package/lib/timerManager.js.map +0 -1
- package/lib/types.d.ts +0 -132
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -6
- package/lib/types.js.map +0 -1
- package/lib/validatableTypes.d.ts +0 -69
- package/lib/validatableTypes.d.ts.map +0 -1
- package/lib/validatableTypes.js +0 -6
- package/lib/validatableTypes.js.map +0 -1
- package/lib/validatedGetter.d.ts +0 -18
- package/lib/validatedGetter.d.ts.map +0 -1
- package/lib/validatedGetter.js +0 -39
- package/lib/validatedGetter.js.map +0 -1
- package/lib/valueManager.d.ts +0 -15
- package/lib/valueManager.d.ts.map +0 -1
- package/lib/valueManager.js +0 -17
- package/lib/valueManager.js.map +0 -1
package/README.md
CHANGED
|
@@ -203,7 +203,7 @@ function logOthersCounters(counterTracker: LatestMap<number, string>): void {
|
|
|
203
203
|
To access Presence APIs, use `getPresence()` with any `IFluidContainer`.
|
|
204
204
|
|
|
205
205
|
```typescript
|
|
206
|
-
import { getPresence } from "
|
|
206
|
+
import { getPresence } from "fluid-framework";
|
|
207
207
|
|
|
208
208
|
function usePresence(container: IFluidContainer): void {
|
|
209
209
|
const presence = getPresence(container);
|
|
@@ -213,8 +213,8 @@ function usePresence(container: IFluidContainer): void {
|
|
|
213
213
|
#### Schema Definition and Workspace
|
|
214
214
|
|
|
215
215
|
```typescript
|
|
216
|
-
import type { Latest, LatestMap, Presence, StatesWorkspaceSchema } from "@fluidframework/presence
|
|
217
|
-
import { StateFactory } from "@fluidframework/presence
|
|
216
|
+
import type { Latest, LatestMap, Presence, StatesWorkspaceSchema } from "@fluidframework/presence";
|
|
217
|
+
import { StateFactory } from "@fluidframework/presence";
|
|
218
218
|
|
|
219
219
|
interface PointXY { x: number; y: number }
|
|
220
220
|
|
|
@@ -414,7 +414,7 @@ When making such a request please include if the configuration already works (an
|
|
|
414
414
|
|
|
415
415
|
### Supported Runtimes
|
|
416
416
|
|
|
417
|
-
- NodeJs ^
|
|
417
|
+
- NodeJs ^22.22.2 except that we will drop support for it [when NodeJs 22 loses its upstream support on 2027-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS at least 1 year before 22 is end-of-life.
|
|
418
418
|
- Running Fluid in a Node.js environment with the `--no-experimental-fetch` flag is not supported.
|
|
419
419
|
- Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards).
|
|
420
420
|
|
package/dist/alpha.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
|
-
// #region @
|
|
20
|
+
// #region @public APIs
|
|
21
21
|
Accessor,
|
|
22
22
|
Attendee,
|
|
23
23
|
AttendeeId,
|
|
@@ -64,7 +64,10 @@ export {
|
|
|
64
64
|
StatesWorkspaceEntry,
|
|
65
65
|
StatesWorkspaceSchema,
|
|
66
66
|
ValueAccessor,
|
|
67
|
-
WorkspaceAddress,
|
|
67
|
+
WorkspaceAddress,
|
|
68
|
+
// #endregion
|
|
69
|
+
|
|
70
|
+
// #region @beta APIs
|
|
68
71
|
getPresence,
|
|
69
72
|
// #endregion
|
|
70
73
|
|
|
@@ -80,7 +83,6 @@ export {
|
|
|
80
83
|
NotificationsWithSubscriptionsConfiguration,
|
|
81
84
|
NotificationsWorkspace,
|
|
82
85
|
NotificationsWorkspaceSchema,
|
|
83
|
-
PresenceWithNotifications
|
|
84
|
-
getPresenceAlpha
|
|
86
|
+
PresenceWithNotifications
|
|
85
87
|
// #endregion
|
|
86
88
|
} from "./index.js";
|
package/dist/beta.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
|
-
// #region @
|
|
20
|
+
// #region @public APIs
|
|
21
21
|
Accessor,
|
|
22
22
|
Attendee,
|
|
23
23
|
AttendeeId,
|
|
@@ -64,7 +64,10 @@ export {
|
|
|
64
64
|
StatesWorkspaceEntry,
|
|
65
65
|
StatesWorkspaceSchema,
|
|
66
66
|
ValueAccessor,
|
|
67
|
-
WorkspaceAddress,
|
|
67
|
+
WorkspaceAddress,
|
|
68
|
+
// #endregion
|
|
69
|
+
|
|
70
|
+
// #region @beta APIs
|
|
68
71
|
getPresence
|
|
69
72
|
// #endregion
|
|
70
73
|
} from "./index.js";
|
package/dist/getPresence.d.ts
CHANGED
|
@@ -2,25 +2,20 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
import type { Presence } from "@fluid-internal/presence-definitions";
|
|
5
6
|
import type { IFluidContainer } from "@fluidframework/fluid-static";
|
|
6
7
|
import type { IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
7
|
-
import type { Presence, PresenceWithNotifications } from "./presence.js";
|
|
8
8
|
/**
|
|
9
9
|
* Acquire a {@link Presence} from a Fluid Container
|
|
10
10
|
* @param fluidContainer - Fluid Container to acquire the map from
|
|
11
11
|
* @returns the {@link Presence}
|
|
12
12
|
*
|
|
13
13
|
* @beta
|
|
14
|
-
*/
|
|
15
|
-
export declare const getPresence: (fluidContainer: IFluidContainer) => Presence;
|
|
16
|
-
/**
|
|
17
|
-
* Acquire a {@link PresenceWithNotifications} from a Fluid Container
|
|
18
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
19
|
-
* @returns the {@link PresenceWithNotifications}
|
|
20
14
|
*
|
|
21
|
-
* @
|
|
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}
|
|
22
17
|
*/
|
|
23
|
-
export declare
|
|
18
|
+
export declare const getPresence: (fluidContainer: IFluidContainer) => Presence;
|
|
24
19
|
/**
|
|
25
20
|
* Get {@link Presence} from a Fluid Data Store Context
|
|
26
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPresence.d.ts","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
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,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,KAAK,EAEX,sBAAsB,EACtB,MAAM,8CAA8C,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,cAAc,EAAE,eAAe,KAAK,QAA2B,CAAC;AAW3F;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAGzF"}
|
package/dist/getPresence.js
CHANGED
|
@@ -4,101 +4,21 @@
|
|
|
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.getPresence = void 0;
|
|
8
|
+
const extension_1 = require("@fluid-internal/presence-runtime/extension");
|
|
8
9
|
const internal_1 = require("@fluidframework/core-utils/internal");
|
|
9
10
|
const internal_2 = require("@fluidframework/fluid-static/internal");
|
|
10
|
-
const packageVersion_js_1 = require("./packageVersion.js");
|
|
11
|
-
const presenceManager_js_1 = require("./presenceManager.js");
|
|
12
|
-
const presenceCompatibility = {
|
|
13
|
-
generation: 1,
|
|
14
|
-
version: packageVersion_js_1.pkgVersion,
|
|
15
|
-
capabilities: new Set([]),
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Minimal compatible package version.
|
|
19
|
-
* If an existing presence extension is registered with this version or higher,
|
|
20
|
-
* it can be used instead of instantiating new instance from this version of
|
|
21
|
-
* the package (assuming also capabilities are compatible).
|
|
22
|
-
*/
|
|
23
|
-
const minimalCompatiblePackageVersion = "2.71.0";
|
|
24
|
-
function assertCompatibilityInvariants(compatibility) {
|
|
25
|
-
(0, internal_1.assert)(compatibility.generation === presenceCompatibility.generation, 0xc97 /* Presence compatibility generation mismatch. */);
|
|
26
|
-
(0, internal_1.assert)(compatibility.version.startsWith("2."), 0xc98 /* Registered version is not major version 2. */);
|
|
27
|
-
(0, internal_1.assert)(Number.parseFloat(compatibility.version.slice(2)) <
|
|
28
|
-
Number.parseFloat(presenceCompatibility.version.slice(2)), 0xc99 /* Registered version is not less than the current version. */);
|
|
29
|
-
(0, internal_1.assert)(presenceCompatibility.capabilities.size === 0, 0xc9a /* Presence capabilities should be empty. */);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Common Presence manager for a container
|
|
33
|
-
*/
|
|
34
|
-
class ContainerPresenceManager {
|
|
35
|
-
constructor(host) {
|
|
36
|
-
// ContainerExtensionFactory return elements
|
|
37
|
-
this.compatibility = presenceCompatibility;
|
|
38
|
-
this.extension = this;
|
|
39
|
-
this.interface = this.manager = (0, presenceManager_js_1.createPresenceManager)({
|
|
40
|
-
...host,
|
|
41
|
-
submitSignal: (message) => {
|
|
42
|
-
host.submitAddressedSignal([], message);
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
handleVersionOrCapabilitiesMismatch(ourExistingInstantiation, newCompatibilityRequest) {
|
|
47
|
-
(0, internal_1.assert)(ourExistingInstantiation.compatibility === presenceCompatibility, 0xc9b /* Presence extension called without own compatibility details */);
|
|
48
|
-
assertCompatibilityInvariants(newCompatibilityRequest);
|
|
49
|
-
// There have not yet been any changes that would require action to upgrade.
|
|
50
|
-
// But also mixed runtime versions are not yet expected.
|
|
51
|
-
(0, internal_1.fail)(0xcb1 /* Presence is only expected to be accessed with a single version. */);
|
|
52
|
-
}
|
|
53
|
-
onNewUse() {
|
|
54
|
-
// No-op
|
|
55
|
-
}
|
|
56
|
-
processSignal(addressChain, message, local) {
|
|
57
|
-
this.manager.processSignal(addressChain, message, local);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
const extensionId = "dis:bb89f4c0-80fd-4f0c-8469-4f2848ee7f4a";
|
|
61
|
-
const ContainerPresenceFactory = {
|
|
62
|
-
hostRequirements: {
|
|
63
|
-
minSupportedGeneration: 1,
|
|
64
|
-
requiredFeatures: [],
|
|
65
|
-
},
|
|
66
|
-
instanceExpectations: { ...presenceCompatibility, version: minimalCompatiblePackageVersion },
|
|
67
|
-
resolvePriorInstantiation(existingInstantiation) {
|
|
68
|
-
// Validate assumptions about existing instance
|
|
69
|
-
assertCompatibilityInvariants(existingInstantiation.compatibility);
|
|
70
|
-
// There have not yet been any changes that would require action to upgrade.
|
|
71
|
-
// But also mixed runtime versions are not yet expected.
|
|
72
|
-
(0, internal_1.fail)(0xcb2 /* Presence is only expected to be accessed with a single version. */);
|
|
73
|
-
},
|
|
74
|
-
instantiateExtension(host) {
|
|
75
|
-
return new ContainerPresenceManager(host);
|
|
76
|
-
},
|
|
77
|
-
[Symbol.hasInstance]: (instance) => {
|
|
78
|
-
return instance instanceof ContainerPresenceManager;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
11
|
/**
|
|
82
12
|
* Acquire a {@link Presence} from a Fluid Container
|
|
83
13
|
* @param fluidContainer - Fluid Container to acquire the map from
|
|
84
14
|
* @returns the {@link Presence}
|
|
85
15
|
*
|
|
86
16
|
* @beta
|
|
87
|
-
*/
|
|
88
|
-
exports.getPresence = getPresenceAlpha;
|
|
89
|
-
/**
|
|
90
|
-
* Acquire a {@link PresenceWithNotifications} from a Fluid Container
|
|
91
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
92
|
-
* @returns the {@link PresenceWithNotifications}
|
|
93
17
|
*
|
|
94
|
-
* @
|
|
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}
|
|
95
20
|
*/
|
|
96
|
-
|
|
97
|
-
(0, internal_1.assert)((0, internal_2.isInternalFluidContainer)(fluidContainer), 0xa2f /* IFluidContainer was not recognized. Only Containers generated by the Fluid Framework are supported. */);
|
|
98
|
-
const presence = fluidContainer.acquireExtension(extensionId, ContainerPresenceFactory);
|
|
99
|
-
return presence;
|
|
100
|
-
}
|
|
101
|
-
exports.getPresenceAlpha = getPresenceAlpha;
|
|
21
|
+
exports.getPresence = internal_2.getPresenceAlpha;
|
|
102
22
|
function assertContextHasExtensionProvider(context) {
|
|
103
23
|
(0, internal_1.assert)("getExtension" in context, 0xc9c /* Data store context does not implement ContainerExtensionProvider */);
|
|
104
24
|
}
|
|
@@ -109,7 +29,7 @@ function assertContextHasExtensionProvider(context) {
|
|
|
109
29
|
*/
|
|
110
30
|
function getPresenceFromDataStoreContext(context) {
|
|
111
31
|
assertContextHasExtensionProvider(context);
|
|
112
|
-
return context.getExtension(extensionId, ContainerPresenceFactory);
|
|
32
|
+
return context.getExtension(extension_1.extensionId, extension_1.ContainerPresenceFactory);
|
|
113
33
|
}
|
|
114
34
|
exports.getPresenceFromDataStoreContext = getPresenceFromDataStoreContext;
|
|
115
35
|
//# sourceMappingURL=getPresence.js.map
|
package/dist/getPresence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPresence.js","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"getPresence.js","sourceRoot":"","sources":["../src/getPresence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,0EAGoD;AACpD,kEAA6D;AAE7D,oEAAyE;AAMzE;;;;;;;;;GASG;AACU,QAAA,WAAW,GAAkD,2BAAgB,CAAC;AAE3F,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 { IFluidContainer } from \"@fluidframework/fluid-static\";\nimport { getPresenceAlpha } from \"@fluidframework/fluid-static/internal\";\nimport type {\n\tFluidDataStoreContextInternal,\n\tIFluidDataStoreContext,\n} from \"@fluidframework/runtime-definitions/internal\";\n\n/**\n * Acquire a {@link Presence} from a Fluid Container\n * @param fluidContainer - Fluid Container to acquire the map from\n * @returns the {@link Presence}\n *\n * @beta\n *\n * @deprecated Import from `fluid-framework` instead. This export will be removed in the 2.110.0 release.\n * See {@link https://github.com/microsoft/FluidFramework/issues/26397}\n */\nexport const getPresence: (fluidContainer: IFluidContainer) => Presence = getPresenceAlpha;\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
|
@@ -9,17 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
|
-
export type { ClientConnectionId } from "
|
|
13
|
-
export
|
|
14
|
-
export {
|
|
15
|
-
export
|
|
16
|
-
export { getPresence, getPresenceAlpha, getPresenceFromDataStoreContext, } from "./getPresence.js";
|
|
17
|
-
export type { KeySchemaValidator, LatestMap, LatestMapArguments, LatestMapArgumentsRaw, LatestMapClientData, LatestMapConfiguration, LatestMapEvents, LatestMapFactory, LatestMapItemRemovedClientData, LatestMapItemUpdatedClientData, LatestMapRaw, LatestMapRawConfiguration, LatestMapRawEvents, StateMap, } from "./latestMapTypes.js";
|
|
18
|
-
export type { Latest, LatestArguments, LatestArgumentsRaw, LatestConfiguration, LatestEvents, LatestFactory, LatestRaw, LatestRawConfiguration, LatestRawEvents, } from "./latestTypes.js";
|
|
19
|
-
export type { Accessor, LatestClientData, LatestData, LatestMetadata, ProxiedValueAccessor, RawValueAccessor, StateSchemaValidator, ValueAccessor, } from "./latestValueTypes.js";
|
|
20
|
-
export { Notifications } from "./notificationsManager.js";
|
|
21
|
-
export type { NotificationEmitter, NotificationListenable, NotificationsConfiguration, NotificationSubscriberSignatures, NotificationsManager, NotificationsManagerEvents, NotificationsWithSubscriptionsConfiguration, } from "./notificationsManagerTypes.js";
|
|
22
|
-
export { StateFactory } from "./stateFactory.js";
|
|
23
|
-
export type { InternalTypes as InternalPresenceTypes } from "./exposedInternalTypes.js";
|
|
24
|
-
export type { InternalUtilityTypes as InternalPresenceUtilityTypes } from "./exposedUtilityTypes.js";
|
|
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
|
+
export { AttendeeStatus } from "@fluid-internal/presence-definitions";
|
|
14
|
+
export { Notifications, StateFactory, } from "@fluid-internal/presence-runtime/states";
|
|
15
|
+
export { getPresence, getPresenceFromDataStoreContext, } from "./getPresence.js";
|
|
25
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;
|
|
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,EACN,WAAW,EACX,+BAA+B,GAC/B,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "AttendeeStatus", { enumerable: true, get: function () { return
|
|
7
|
+
exports.getPresenceFromDataStoreContext = exports.getPresence = exports.StateFactory = exports.Notifications = exports.AttendeeStatus = void 0;
|
|
8
|
+
var presence_definitions_1 = require("@fluid-internal/presence-definitions");
|
|
9
|
+
Object.defineProperty(exports, "AttendeeStatus", { enumerable: true, get: function () { return presence_definitions_1.AttendeeStatus; } });
|
|
10
|
+
// Re-export from presence-runtime
|
|
11
|
+
var states_1 = require("@fluid-internal/presence-runtime/states");
|
|
12
|
+
Object.defineProperty(exports, "Notifications", { enumerable: true, get: function () { return states_1.Notifications; } });
|
|
13
|
+
Object.defineProperty(exports, "StateFactory", { enumerable: true, get: function () { return states_1.StateFactory; } });
|
|
14
|
+
// Local exports
|
|
10
15
|
var getPresence_js_1 = require("./getPresence.js");
|
|
11
16
|
Object.defineProperty(exports, "getPresence", { enumerable: true, get: function () { return getPresence_js_1.getPresence; } });
|
|
12
|
-
Object.defineProperty(exports, "getPresenceAlpha", { enumerable: true, get: function () { return getPresence_js_1.getPresenceAlpha; } });
|
|
13
17
|
Object.defineProperty(exports, "getPresenceFromDataStoreContext", { enumerable: true, get: function () { return getPresence_js_1.getPresenceFromDataStoreContext; } });
|
|
14
|
-
var notificationsManager_js_1 = require("./notificationsManager.js");
|
|
15
|
-
Object.defineProperty(exports, "Notifications", { enumerable: true, get: function () { return notificationsManager_js_1.Notifications; } });
|
|
16
|
-
var stateFactory_js_1 = require("./stateFactory.js");
|
|
17
|
-
Object.defineProperty(exports, "StateFactory", { enumerable: true, get: function () { return stateFactory_js_1.StateFactory; } });
|
|
18
18
|
//# 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;;;
|
|
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,mDAG0B;AAFzB,6GAAA,WAAW,OAAA;AACX,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 {\n\tgetPresence,\n\tgetPresenceFromDataStoreContext,\n} from \"./getPresence.js\";\n"]}
|
package/dist/legacy.alpha.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
|
-
// #region @
|
|
20
|
+
// #region @public APIs
|
|
21
21
|
Accessor,
|
|
22
22
|
Attendee,
|
|
23
23
|
AttendeeId,
|
|
@@ -64,7 +64,10 @@ export {
|
|
|
64
64
|
StatesWorkspaceEntry,
|
|
65
65
|
StatesWorkspaceSchema,
|
|
66
66
|
ValueAccessor,
|
|
67
|
-
WorkspaceAddress,
|
|
67
|
+
WorkspaceAddress,
|
|
68
|
+
// #endregion
|
|
69
|
+
|
|
70
|
+
// #region @beta APIs
|
|
68
71
|
getPresence,
|
|
69
72
|
// #endregion
|
|
70
73
|
|
|
@@ -80,8 +83,7 @@ export {
|
|
|
80
83
|
NotificationsWithSubscriptionsConfiguration,
|
|
81
84
|
NotificationsWorkspace,
|
|
82
85
|
NotificationsWorkspaceSchema,
|
|
83
|
-
PresenceWithNotifications,
|
|
84
|
-
getPresenceAlpha,
|
|
86
|
+
PresenceWithNotifications,
|
|
85
87
|
// #endregion
|
|
86
88
|
|
|
87
89
|
// #region @legacyAlpha APIs
|
package/dist/package.json
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@fluidframework/presence",
|
|
3
2
|
"type": "commonjs",
|
|
4
|
-
"
|
|
5
|
-
"./beta": {
|
|
6
|
-
"types": "./beta.d.ts",
|
|
7
|
-
"default": "./index.js"
|
|
8
|
-
},
|
|
9
|
-
"./alpha": {
|
|
10
|
-
"types": "./alpha.d.ts",
|
|
11
|
-
"default": "./index.js"
|
|
12
|
-
},
|
|
13
|
-
"./legacy/alpha": {
|
|
14
|
-
"types": "./legacy.alpha.d.ts",
|
|
15
|
-
"default": "./index.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
3
|
+
"sideEffects": false
|
|
18
4
|
}
|
package/dist/public.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints --resolutionConditions require --outFileLegacyAlpha legacy.alpha --outDir ./dist" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Package for client presence within a connected session.
|
|
13
|
+
*
|
|
14
|
+
* See {@link https://github.com/microsoft/FluidFramework/tree/main/packages/framework/presence#readme | README.md } for an overview of the package.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
// #region @public APIs
|
|
21
|
+
Accessor,
|
|
22
|
+
Attendee,
|
|
23
|
+
AttendeeId,
|
|
24
|
+
AttendeeStatus,
|
|
25
|
+
AttendeesEvents,
|
|
26
|
+
BroadcastControlSettings,
|
|
27
|
+
BroadcastControls,
|
|
28
|
+
ClientConnectionId,
|
|
29
|
+
InternalPresenceTypes,
|
|
30
|
+
KeySchemaValidator,
|
|
31
|
+
Latest,
|
|
32
|
+
LatestArguments,
|
|
33
|
+
LatestArgumentsRaw,
|
|
34
|
+
LatestClientData,
|
|
35
|
+
LatestConfiguration,
|
|
36
|
+
LatestData,
|
|
37
|
+
LatestEvents,
|
|
38
|
+
LatestFactory,
|
|
39
|
+
LatestMap,
|
|
40
|
+
LatestMapArguments,
|
|
41
|
+
LatestMapArgumentsRaw,
|
|
42
|
+
LatestMapClientData,
|
|
43
|
+
LatestMapConfiguration,
|
|
44
|
+
LatestMapEvents,
|
|
45
|
+
LatestMapFactory,
|
|
46
|
+
LatestMapItemRemovedClientData,
|
|
47
|
+
LatestMapItemUpdatedClientData,
|
|
48
|
+
LatestMapRaw,
|
|
49
|
+
LatestMapRawConfiguration,
|
|
50
|
+
LatestMapRawEvents,
|
|
51
|
+
LatestMetadata,
|
|
52
|
+
LatestRaw,
|
|
53
|
+
LatestRawConfiguration,
|
|
54
|
+
LatestRawEvents,
|
|
55
|
+
Presence,
|
|
56
|
+
PresenceEvents,
|
|
57
|
+
ProxiedValueAccessor,
|
|
58
|
+
RawValueAccessor,
|
|
59
|
+
StateFactory,
|
|
60
|
+
StateMap,
|
|
61
|
+
StateSchemaValidator,
|
|
62
|
+
StatesWorkspace,
|
|
63
|
+
StatesWorkspaceEntries,
|
|
64
|
+
StatesWorkspaceEntry,
|
|
65
|
+
StatesWorkspaceSchema,
|
|
66
|
+
ValueAccessor,
|
|
67
|
+
WorkspaceAddress
|
|
68
|
+
// #endregion
|
|
69
|
+
} from "./index.js";
|
package/lib/alpha.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
|
-
// #region @
|
|
20
|
+
// #region @public APIs
|
|
21
21
|
Accessor,
|
|
22
22
|
Attendee,
|
|
23
23
|
AttendeeId,
|
|
@@ -64,7 +64,10 @@ export {
|
|
|
64
64
|
StatesWorkspaceEntry,
|
|
65
65
|
StatesWorkspaceSchema,
|
|
66
66
|
ValueAccessor,
|
|
67
|
-
WorkspaceAddress,
|
|
67
|
+
WorkspaceAddress,
|
|
68
|
+
// #endregion
|
|
69
|
+
|
|
70
|
+
// #region @beta APIs
|
|
68
71
|
getPresence,
|
|
69
72
|
// #endregion
|
|
70
73
|
|
|
@@ -80,7 +83,6 @@ export {
|
|
|
80
83
|
NotificationsWithSubscriptionsConfiguration,
|
|
81
84
|
NotificationsWorkspace,
|
|
82
85
|
NotificationsWorkspaceSchema,
|
|
83
|
-
PresenceWithNotifications
|
|
84
|
-
getPresenceAlpha
|
|
86
|
+
PresenceWithNotifications
|
|
85
87
|
// #endregion
|
|
86
88
|
} from "./index.js";
|
package/lib/beta.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
|
-
// #region @
|
|
20
|
+
// #region @public APIs
|
|
21
21
|
Accessor,
|
|
22
22
|
Attendee,
|
|
23
23
|
AttendeeId,
|
|
@@ -64,7 +64,10 @@ export {
|
|
|
64
64
|
StatesWorkspaceEntry,
|
|
65
65
|
StatesWorkspaceSchema,
|
|
66
66
|
ValueAccessor,
|
|
67
|
-
WorkspaceAddress,
|
|
67
|
+
WorkspaceAddress,
|
|
68
|
+
// #endregion
|
|
69
|
+
|
|
70
|
+
// #region @beta APIs
|
|
68
71
|
getPresence
|
|
69
72
|
// #endregion
|
|
70
73
|
} from "./index.js";
|
package/lib/getPresence.d.ts
CHANGED
|
@@ -2,25 +2,20 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
import type { Presence } from "@fluid-internal/presence-definitions";
|
|
5
6
|
import type { IFluidContainer } from "@fluidframework/fluid-static";
|
|
6
7
|
import type { IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
7
|
-
import type { Presence, PresenceWithNotifications } from "./presence.js";
|
|
8
8
|
/**
|
|
9
9
|
* Acquire a {@link Presence} from a Fluid Container
|
|
10
10
|
* @param fluidContainer - Fluid Container to acquire the map from
|
|
11
11
|
* @returns the {@link Presence}
|
|
12
12
|
*
|
|
13
13
|
* @beta
|
|
14
|
-
*/
|
|
15
|
-
export declare const getPresence: (fluidContainer: IFluidContainer) => Presence;
|
|
16
|
-
/**
|
|
17
|
-
* Acquire a {@link PresenceWithNotifications} from a Fluid Container
|
|
18
|
-
* @param fluidContainer - Fluid Container to acquire the map from
|
|
19
|
-
* @returns the {@link PresenceWithNotifications}
|
|
20
14
|
*
|
|
21
|
-
* @
|
|
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}
|
|
22
17
|
*/
|
|
23
|
-
export declare
|
|
18
|
+
export declare const getPresence: (fluidContainer: IFluidContainer) => Presence;
|
|
24
19
|
/**
|
|
25
20
|
* Get {@link Presence} from a Fluid Data Store Context
|
|
26
21
|
*
|
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;
|
|
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,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,KAAK,EAEX,sBAAsB,EACtB,MAAM,8CAA8C,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,cAAc,EAAE,eAAe,KAAK,QAA2B,CAAC;AAW3F;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAGzF"}
|