@microsoft/live-share-react 1.0.0-preview.8 → 1.0.1-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -34
- package/bin/index.d.ts +6 -6
- package/bin/index.js +6 -6
- package/bin/interfaces/LiveInterfaceExtensions.d.ts +25 -8
- package/bin/interfaces/LiveInterfaceExtensions.d.ts.map +1 -1
- package/bin/interfaces/LiveInterfaceExtensions.js +5 -5
- package/bin/interfaces/index.d.ts +1 -1
- package/bin/interfaces/index.js +1 -1
- package/bin/internal/errors.d.ts +26 -0
- package/bin/internal/errors.d.ts.map +1 -0
- package/bin/internal/errors.js +39 -0
- package/bin/internal/errors.js.map +1 -0
- package/bin/internal/index.d.ts +4 -0
- package/bin/internal/index.d.ts.map +1 -0
- package/bin/internal/index.js +4 -0
- package/bin/internal/index.js.map +1 -0
- package/bin/internal/type-guards.d.ts +6 -0
- package/bin/internal/type-guards.d.ts.map +1 -0
- package/bin/internal/type-guards.js +8 -0
- package/bin/internal/type-guards.js.map +1 -0
- package/bin/{internal-hooks → internal}/useSharedStateRegistry.d.ts +30 -30
- package/bin/internal/useSharedStateRegistry.d.ts.map +1 -0
- package/bin/{internal-hooks → internal}/useSharedStateRegistry.js +101 -99
- package/bin/internal/useSharedStateRegistry.js.map +1 -0
- package/bin/live-hooks/index.d.ts +6 -6
- package/bin/live-hooks/index.js +6 -6
- package/bin/live-hooks/useLiveCanvas.d.ts +27 -27
- package/bin/live-hooks/useLiveCanvas.d.ts.map +1 -1
- package/bin/live-hooks/useLiveCanvas.js +158 -166
- package/bin/live-hooks/useLiveCanvas.js.map +1 -1
- package/bin/live-hooks/useLiveEvent.d.ts +21 -21
- package/bin/live-hooks/useLiveEvent.d.ts.map +1 -1
- package/bin/live-hooks/useLiveEvent.js +100 -85
- package/bin/live-hooks/useLiveEvent.js.map +1 -1
- package/bin/live-hooks/useLivePresence.d.ts +25 -25
- package/bin/live-hooks/useLivePresence.d.ts.map +1 -1
- package/bin/live-hooks/useLivePresence.js +106 -92
- package/bin/live-hooks/useLivePresence.js.map +1 -1
- package/bin/live-hooks/useLiveState.d.ts +19 -19
- package/bin/live-hooks/useLiveState.d.ts.map +1 -1
- package/bin/live-hooks/useLiveState.js +79 -70
- package/bin/live-hooks/useLiveState.js.map +1 -1
- package/bin/live-hooks/useLiveTimer.d.ts +7 -7
- package/bin/live-hooks/useLiveTimer.d.ts.map +1 -1
- package/bin/live-hooks/useLiveTimer.js +150 -131
- package/bin/live-hooks/useLiveTimer.js.map +1 -1
- package/bin/live-hooks/useMediaSynchronizer.d.ts +22 -22
- package/bin/live-hooks/useMediaSynchronizer.d.ts.map +1 -1
- package/bin/live-hooks/useMediaSynchronizer.js +206 -161
- package/bin/live-hooks/useMediaSynchronizer.js.map +1 -1
- package/bin/providers/AzureProvider.d.ts +33 -33
- package/bin/providers/AzureProvider.d.ts.map +1 -1
- package/bin/providers/AzureProvider.js +101 -101
- package/bin/providers/AzureProvider.js.map +1 -1
- package/bin/providers/LiveShareProvider.d.ts +62 -41
- package/bin/providers/LiveShareProvider.d.ts.map +1 -1
- package/bin/providers/LiveShareProvider.js +68 -65
- package/bin/providers/LiveShareProvider.js.map +1 -1
- package/bin/providers/index.d.ts +2 -2
- package/bin/providers/index.js +2 -2
- package/bin/shared-hooks/index.d.ts +3 -4
- package/bin/shared-hooks/index.d.ts.map +1 -1
- package/bin/shared-hooks/index.js +3 -4
- package/bin/shared-hooks/index.js.map +1 -1
- package/bin/shared-hooks/useDynamicDDS.d.ts +18 -18
- package/bin/shared-hooks/useDynamicDDS.d.ts.map +1 -1
- package/bin/shared-hooks/useDynamicDDS.js +67 -67
- package/bin/shared-hooks/useDynamicDDS.js.map +1 -1
- package/bin/shared-hooks/useSharedMap.d.ts +21 -21
- package/bin/shared-hooks/useSharedMap.d.ts.map +1 -1
- package/bin/shared-hooks/useSharedMap.js +112 -105
- package/bin/shared-hooks/useSharedMap.js.map +1 -1
- package/bin/shared-hooks/useSharedState.d.ts +20 -20
- package/bin/shared-hooks/useSharedState.d.ts.map +1 -1
- package/bin/shared-hooks/useSharedState.js +72 -62
- package/bin/shared-hooks/useSharedState.js.map +1 -1
- package/bin/types/ActionTypes.d.ts +111 -29
- package/bin/types/ActionTypes.d.ts.map +1 -1
- package/bin/types/ActionTypes.js +5 -5
- package/bin/types/PropTypes.d.ts +7 -7
- package/bin/types/PropTypes.d.ts.map +1 -1
- package/bin/types/PropTypes.js +5 -5
- package/bin/types/ResultTypes.d.ts +174 -162
- package/bin/types/ResultTypes.d.ts.map +1 -1
- package/bin/types/ResultTypes.js +5 -5
- package/bin/types/index.d.ts +3 -3
- package/bin/types/index.js +3 -3
- package/bin/utils/index.d.ts +1 -1
- package/bin/utils/index.js +1 -1
- package/bin/utils/type-check.d.ts +14 -14
- package/bin/utils/type-check.js +53 -53
- package/package.json +18 -14
- package/src/interfaces/LiveInterfaceExtensions.ts +19 -2
- package/src/internal/errors.ts +48 -0
- package/src/internal/index.ts +3 -0
- package/src/internal/type-guards.ts +9 -0
- package/src/{internal-hooks → internal}/useSharedStateRegistry.ts +6 -5
- package/src/live-hooks/useLiveCanvas.ts +12 -20
- package/src/live-hooks/useLiveEvent.ts +41 -22
- package/src/live-hooks/useLivePresence.ts +52 -33
- package/src/live-hooks/useLiveState.ts +48 -53
- package/src/live-hooks/useLiveTimer.ts +50 -41
- package/src/live-hooks/useMediaSynchronizer.ts +108 -41
- package/src/providers/AzureProvider.tsx +3 -8
- package/src/providers/LiveShareProvider.tsx +46 -16
- package/src/shared-hooks/index.ts +0 -1
- package/src/shared-hooks/useDynamicDDS.ts +15 -8
- package/src/shared-hooks/useSharedMap.ts +48 -22
- package/src/shared-hooks/useSharedState.ts +15 -5
- package/src/types/ActionTypes.ts +100 -15
- package/src/types/ResultTypes.ts +23 -9
- package/bin/internal-hooks/index.d.ts +0 -2
- package/bin/internal-hooks/index.d.ts.map +0 -1
- package/bin/internal-hooks/index.js +0 -2
- package/bin/internal-hooks/index.js.map +0 -1
- package/bin/internal-hooks/useDynamicDDSRegistry.d.ts +0 -14
- package/bin/internal-hooks/useDynamicDDSRegistry.d.ts.map +0 -1
- package/bin/internal-hooks/useDynamicDDSRegistry.js +0 -142
- package/bin/internal-hooks/useDynamicDDSRegistry.js.map +0 -1
- package/bin/internal-hooks/useSharedStateRegistry.d.ts.map +0 -1
- package/bin/internal-hooks/useSharedStateRegistry.js.map +0 -1
- package/bin/internal-hooks/useStateRef.d.ts +0 -7
- package/bin/internal-hooks/useStateRef.d.ts.map +0 -1
- package/bin/internal-hooks/useStateRef.js +0 -15
- package/bin/internal-hooks/useStateRef.js.map +0 -1
- package/bin/live-hooks/useLiveAICompletion.d.ts +0 -29
- package/bin/live-hooks/useLiveAICompletion.d.ts.map +0 -1
- package/bin/live-hooks/useLiveAICompletion.js +0 -186
- package/bin/live-hooks/useLiveAICompletion.js.map +0 -1
- package/bin/live-hooks/useLiveCoPilot.d.ts +0 -28
- package/bin/live-hooks/useLiveCoPilot.d.ts.map +0 -1
- package/bin/live-hooks/useLiveCoPilot.js +0 -178
- package/bin/live-hooks/useLiveCoPilot.js.map +0 -1
- package/bin/live-share-turbo/AzureTurboClient.d.ts +0 -39
- package/bin/live-share-turbo/AzureTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/AzureTurboClient.js +0 -56
- package/bin/live-share-turbo/AzureTurboClient.js.map +0 -1
- package/bin/live-share-turbo/LiveShareTurboClient.d.ts +0 -53
- package/bin/live-share-turbo/LiveShareTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/LiveShareTurboClient.js +0 -69
- package/bin/live-share-turbo/LiveShareTurboClient.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboDataObject.d.ts +0 -31
- package/bin/live-share-turbo/dds-objects/TurboDataObject.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboDataObject.js +0 -75
- package/bin/live-share-turbo/dds-objects/TurboDataObject.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.d.ts +0 -48
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.js +0 -104
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.d.ts +0 -28
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.js +0 -68
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.d.ts +0 -60
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.js +0 -111
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.d.ts +0 -77
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.js +0 -137
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveState.d.ts +0 -30
- package/bin/live-share-turbo/dds-objects/TurboLiveState.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveState.js +0 -74
- package/bin/live-share-turbo/dds-objects/TurboLiveState.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.d.ts +0 -61
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.js +0 -108
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/index.d.ts +0 -8
- package/bin/live-share-turbo/dds-objects/index.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/index.js +0 -8
- package/bin/live-share-turbo/dds-objects/index.js.map +0 -1
- package/bin/live-share-turbo/index.d.ts +0 -5
- package/bin/live-share-turbo/index.d.ts.map +0 -1
- package/bin/live-share-turbo/index.js +0 -5
- package/bin/live-share-turbo/index.js.map +0 -1
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.d.ts +0 -15
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.js +0 -2
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.js.map +0 -1
- package/bin/live-share-turbo/interfaces/index.d.ts +0 -3
- package/bin/live-share-turbo/interfaces/index.d.ts.map +0 -1
- package/bin/live-share-turbo/interfaces/index.js +0 -3
- package/bin/live-share-turbo/interfaces/index.js.map +0 -1
- package/bin/live-share-turbo/internals/FluidTurboClient.d.ts +0 -39
- package/bin/live-share-turbo/internals/FluidTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/internals/FluidTurboClient.js +0 -121
- package/bin/live-share-turbo/internals/FluidTurboClient.js.map +0 -1
- package/bin/live-share-turbo/internals/index.d.ts +0 -2
- package/bin/live-share-turbo/internals/index.d.ts.map +0 -1
- package/bin/live-share-turbo/internals/index.js +0 -2
- package/bin/live-share-turbo/internals/index.js.map +0 -1
- package/bin/live-share-turbo/internals/types.d.ts +0 -4
- package/bin/live-share-turbo/internals/types.d.ts.map +0 -1
- package/bin/live-share-turbo/internals/types.js +0 -2
- package/bin/live-share-turbo/internals/types.js.map +0 -1
- package/bin/providers/FluidContextProvider.d.ts +0 -34
- package/bin/providers/FluidContextProvider.d.ts.map +0 -1
- package/bin/providers/FluidContextProvider.js +0 -99
- package/bin/providers/FluidContextProvider.js.map +0 -1
- package/bin/providers/LiveShareContextProvider.d.ts +0 -42
- package/bin/providers/LiveShareContextProvider.d.ts.map +0 -1
- package/bin/providers/LiveShareContextProvider.js +0 -63
- package/bin/providers/LiveShareContextProvider.js.map +0 -1
- package/bin/shared-hooks/useLockedTask.d.ts +0 -11
- package/bin/shared-hooks/useLockedTask.d.ts.map +0 -1
- package/bin/shared-hooks/useLockedTask.js +0 -82
- package/bin/shared-hooks/useLockedTask.js.map +0 -1
- package/bin/shared-hooks/useTaskManager.d.ts +0 -13
- package/bin/shared-hooks/useTaskManager.d.ts.map +0 -1
- package/bin/shared-hooks/useTaskManager.js +0 -86
- package/bin/shared-hooks/useTaskManager.js.map +0 -1
- package/bin/utils/getContainerSchema.d.ts +0 -8
- package/bin/utils/getContainerSchema.d.ts.map +0 -1
- package/bin/utils/getContainerSchema.js +0 -41
- package/bin/utils/getContainerSchema.js.map +0 -1
- package/src/internal-hooks/index.ts +0 -1
- package/src/shared-hooks/useTaskManager.ts +0 -82
- package/tinylicious.log +0 -4
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
11
|
-
import { LiveMediaSession, } from "@microsoft/live-share-media";
|
|
12
|
-
export class TurboLiveMediaSession extends TurboDataObject {
|
|
13
|
-
constructor(dataObject) {
|
|
14
|
-
const onDidOverrideDataObject = () => __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
if (this._isInitialized) {
|
|
16
|
-
try {
|
|
17
|
-
yield this.dataObject.initialize(this._allowedRoles);
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error(error);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
super(dataObject, [], onDidOverrideDataObject);
|
|
25
|
-
this._isInitialized = false;
|
|
26
|
-
}
|
|
27
|
-
get isInitialized() {
|
|
28
|
-
return this._isInitialized;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Extension point that lets applications replace the default logic for throttling the sessions
|
|
32
|
-
* local sync behavior.
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* The `LiveMediaCoordinator` is fairly aggressive at wanting to keep the local media player
|
|
36
|
-
* in sync with the rest of the group. This aggressiveness can result in the coordinator sending
|
|
37
|
-
* new sync actions before the local player has finished responding to the previous sync action.
|
|
38
|
-
* The `ActionThrottler` gives apps fine grain control over how aggressive they want sync to be.
|
|
39
|
-
*
|
|
40
|
-
* By default, a `RepeatedAction` throttler is used which prevents the same sync action from
|
|
41
|
-
* being sent within an adjustable time period.
|
|
42
|
-
*/
|
|
43
|
-
get actionThrottler() {
|
|
44
|
-
return this.dataObject.actionThrottler;
|
|
45
|
-
}
|
|
46
|
-
set actionThrottler(value) {
|
|
47
|
-
this.dataObject.actionThrottler = value;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* The group coordinator for the session.
|
|
51
|
-
*/
|
|
52
|
-
get coordinator() {
|
|
53
|
-
return this.dataObject.coordinator;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns the logger used by the session and coordinator.
|
|
57
|
-
*
|
|
58
|
-
* @remarks
|
|
59
|
-
* This is used by the `MediaPlayerSynchronizer` to log events.
|
|
60
|
-
*/
|
|
61
|
-
get logger() {
|
|
62
|
-
return this.dataObject.logger;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* initialize the object.
|
|
66
|
-
* @param allowedRoles Optional. List of roles allowed to send events.
|
|
67
|
-
*/
|
|
68
|
-
initialize(allowedRoles) {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
yield this.dataObject.initialize(allowedRoles);
|
|
71
|
-
this._allowedRoles = allowedRoles;
|
|
72
|
-
this._isInitialized = true;
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Registers an action handler with the session.
|
|
77
|
-
* @param action Name of the action to register a handler for.
|
|
78
|
-
* @param handler Function called when the action is triggered.
|
|
79
|
-
*/
|
|
80
|
-
setActionHandler(action, handler) {
|
|
81
|
-
return this.dataObject.setActionHandler(action, handler);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Registers a handler that will be queried anytime the group coordinate needs to know the
|
|
85
|
-
* local players transport state and position.
|
|
86
|
-
*/
|
|
87
|
-
setRequestPlayerStateHandler(handler) {
|
|
88
|
-
return this.dataObject.setRequestPlayerStateHandler(handler);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Begins synchronizing the playback of a media element.
|
|
92
|
-
* @param player Something that "looks like" and HTML Media Element.
|
|
93
|
-
* @returns A new synchronizer instance. Call `synchronizer.end()` to stop synchronizing the elements playback.
|
|
94
|
-
*/
|
|
95
|
-
synchronize(player) {
|
|
96
|
-
return this.dataObject.synchronize(player);
|
|
97
|
-
}
|
|
98
|
-
static create(turboClient, uniqueKey, onDidFirstInitialize) {
|
|
99
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
const results = yield turboClient.getDDS(`<LiveMediaSession>:${uniqueKey}`, LiveMediaSession, (dds) => {
|
|
101
|
-
return new TurboLiveMediaSession(dds);
|
|
102
|
-
});
|
|
103
|
-
const dds = results.dds;
|
|
104
|
-
if (results.created) {
|
|
105
|
-
onDidFirstInitialize === null || onDidFirstInitialize === void 0 ? void 0 : onDidFirstInitialize(dds);
|
|
106
|
-
}
|
|
107
|
-
return dds;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=TurboLiveMediaSession.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboLiveMediaSession.js","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboLiveMediaSession.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAIH,gBAAgB,GAInB,MAAM,6BAA6B,CAAC;AAErC,MAAM,OAAO,qBAAsB,SAAQ,eAG1C;IAIG,YAAY,UAA4B;QACpC,MAAM,uBAAuB,GAAG,GAAS,EAAE;YACvC,IAAI,IAAI,CAAC,cAAc,EAAE;gBACrB,IAAI;oBACA,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBACxD;gBAAC,OAAO,KAAU,EAAE;oBACjB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;iBACxB;aACJ;QACL,CAAC,CAAA,CAAC;QACF,KAAK,CAAC,UAAU,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAC;QAb3C,mBAAc,GAAY,KAAK,CAAC;IAcxC,CAAC;IAED,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAW,eAAe;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAC3C,CAAC;IAED,IAAW,eAAe,CAAC,KAAkC;QACzD,IAAI,CAAC,UAAU,CAAC,eAAe,GAAG,KAAK,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;IAED;;;OAGG;IACU,UAAU,CAAC,YAAgC;;YACpD,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YAC/C,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC/B,CAAC;KAAA;IAED;;;;OAIG;IACI,gBAAgB,CACnB,MAAkC,EAClC,OAAyC;QAEzC,OAAO,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,4BAA4B,CAAC,OAAgC;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,MAAoB;QACnC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAO,MAAM,CACtB,WAA8B,EAC9B,SAAiB,EACjB,oBAA2D;;YAE3D,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,CACpC,sBAAsB,SAAS,EAAE,EACjC,gBAAgB,EAChB,CAAC,GAAmB,EAAyB,EAAE;gBAC3C,OAAO,IAAI,qBAAqB,CAAC,GAAuB,CAAC,CAAC;YAC9D,CAAC,CACJ,CAAC;YACF,MAAM,GAAG,GAAG,OAAO,CAAC,GAA4B,CAAC;YACjD,IAAI,OAAO,CAAC,OAAO,EAAE;gBACjB,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAG,GAAG,CAAC,CAAC;aAC/B;YACD,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CACJ"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ILivePresenceEvents, LivePresence, LivePresenceUser, PresenceState } from "@microsoft/live-share";
|
|
2
|
-
import { IFluidTurboClient } from "../../live-share-react/bin/live-share-turbo/interfaces";
|
|
3
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
4
|
-
export declare class TurboLivePresence<TData extends object = object> extends TurboDataObject<ILivePresenceEvents<TData>, LivePresence<TData>> {
|
|
5
|
-
private _isInitialized;
|
|
6
|
-
private _userId?;
|
|
7
|
-
private _data?;
|
|
8
|
-
private _state?;
|
|
9
|
-
constructor(dataObject: LivePresence<TData>);
|
|
10
|
-
get isInitialized(): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Number of seconds without a presence update before a remote user is considered offline.
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Defaults to a value of `20` seconds. The minimum value is 0.1 seconds for testing purposes.
|
|
16
|
-
*/
|
|
17
|
-
get expirationPeriod(): number;
|
|
18
|
-
set expirationPeriod(value: number);
|
|
19
|
-
/**
|
|
20
|
-
* Optional data object shared by the user.
|
|
21
|
-
*/
|
|
22
|
-
get data(): TData | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* The users current presence state.
|
|
25
|
-
*/
|
|
26
|
-
get state(): PresenceState;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the ID of the local user.
|
|
29
|
-
*/
|
|
30
|
-
get userId(): string;
|
|
31
|
-
/**
|
|
32
|
-
* initialize the object.
|
|
33
|
-
* @param allowedRoles Optional. List of roles allowed to send events.
|
|
34
|
-
*/
|
|
35
|
-
initialize(userId?: string, data?: TData, state?: PresenceState): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Returns a snapshot of the current list of presence objects being tracked.
|
|
38
|
-
* @returns Array of presence objects.
|
|
39
|
-
*/
|
|
40
|
-
toArray(): LivePresenceUser<TData>[];
|
|
41
|
-
/**
|
|
42
|
-
* Updates the users presence state and/or shared data object.
|
|
43
|
-
*
|
|
44
|
-
* @remarks
|
|
45
|
-
* This will trigger the immediate broadcast of the users presence to all other clients.
|
|
46
|
-
* @param state Optional. Presence state to change.
|
|
47
|
-
* @param data Optional. Data object to change. A deep copy of the data object is saved to avoid any future changes.
|
|
48
|
-
*/
|
|
49
|
-
updatePresence(state?: PresenceState, data?: TData): void;
|
|
50
|
-
/**
|
|
51
|
-
* Enumerates each user the object is tracking presence for.
|
|
52
|
-
* @param callback Function to call for each user.
|
|
53
|
-
* @param callback.user Current presence information for a user.
|
|
54
|
-
* @param filter Optional. Presence state to filter enumeration to.
|
|
55
|
-
*/
|
|
56
|
-
forEach(callback: (user: LivePresenceUser<TData>) => void, filter?: PresenceState): void;
|
|
57
|
-
/**
|
|
58
|
-
* Counts the number of users that the object is tracking presence for.
|
|
59
|
-
* @param filter Optional. Presence state to filter count to.
|
|
60
|
-
* @returns Total number of other users we've seen or number of users with a given presence status.
|
|
61
|
-
*/
|
|
62
|
-
getCount(filter?: PresenceState): number;
|
|
63
|
-
/**
|
|
64
|
-
* Returns the current presence info for a specific client ID.
|
|
65
|
-
* @param clientId The ID of the client to retrieve.
|
|
66
|
-
* @returns The current presence information for the client if they've connected to the space.
|
|
67
|
-
*/
|
|
68
|
-
getPresenceForClient(clientId: string): LivePresenceUser<TData> | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Returns the current presence info for a specific user.
|
|
71
|
-
* @param userId The ID of the user to retrieve.
|
|
72
|
-
* @returns The current presence information for the user if they've connected to the space.
|
|
73
|
-
*/
|
|
74
|
-
getPresenceForUser(userId: string): LivePresenceUser<TData> | undefined;
|
|
75
|
-
static create<TData extends object = object>(turboClient: IFluidTurboClient, uniqueKey: string, onDidFirstInitialize?: (dds: TurboLivePresence<TData>) => void): Promise<TurboLivePresence<TData>>;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=TurboLivePresence.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboLivePresence.d.ts","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboLivePresence.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,aAAa,EAEhB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,iBAAiB,CAC1B,KAAK,SAAS,MAAM,GAAG,MAAM,CAC/B,SAAQ,eAAe,CACrB,mBAAmB,CAAC,KAAK,CAAC,EAC1B,YAAY,CAAC,KAAK,CAAC,CACtB;IACG,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,KAAK,CAAC,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAC,CAAgB;gBAEnB,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC;IAiB3C,IAAW,aAAa,IAAI,OAAO,CAElC;IAED;;;;;OAKG;IACH,IAAW,gBAAgB,IAAI,MAAM,CAEpC;IAED,IAAW,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAExC;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,KAAK,GAAG,SAAS,CAEnC;IAED;;OAEG;IACH,IAAW,KAAK,IAAI,aAAa,CAEhC;IAED;;OAEG;IACH,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACU,UAAU,CACnB,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,KAAK,EACZ,KAAK,gBAAuB,GAC7B,OAAO,CAAC,IAAI,CAAC;IAQhB;;;OAGG;IACI,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;IAI3C;;;;;;;OAOG;IACI,cAAc,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI;IAIhE;;;;;OAKG;IACI,OAAO,CACV,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,IAAI,EACjD,MAAM,CAAC,EAAE,aAAa,GACvB,IAAI;IAIP;;;;OAIG;IACI,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,MAAM;IAI/C;;;;OAIG;IACI,oBAAoB,CACvB,QAAQ,EAAE,MAAM,GACjB,gBAAgB,CAAC,KAAK,CAAC,GAAG,SAAS;IAItC;;;;OAIG;IACI,kBAAkB,CACrB,MAAM,EAAE,MAAM,GACf,gBAAgB,CAAC,KAAK,CAAC,GAAG,SAAS;WAIlB,MAAM,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EACpD,WAAW,EAAE,iBAAiB,EAC9B,SAAS,EAAE,MAAM,EACjB,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,IAAI,GAC/D,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CAiBvC"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { LivePresence, PresenceState, LivePresenceEvents, } from "@microsoft/live-share";
|
|
11
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
12
|
-
export class TurboLivePresence extends TurboDataObject {
|
|
13
|
-
constructor(dataObject) {
|
|
14
|
-
const onDidOverrideDataObject = () => __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
if (this._isInitialized) {
|
|
16
|
-
try {
|
|
17
|
-
yield this.dataObject.initialize(this._userId, this._data, this._state);
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error(error);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
super(dataObject, Object.keys(LivePresenceEvents), onDidOverrideDataObject);
|
|
25
|
-
this._isInitialized = false;
|
|
26
|
-
}
|
|
27
|
-
get isInitialized() {
|
|
28
|
-
return this._isInitialized;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Number of seconds without a presence update before a remote user is considered offline.
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* Defaults to a value of `20` seconds. The minimum value is 0.1 seconds for testing purposes.
|
|
35
|
-
*/
|
|
36
|
-
get expirationPeriod() {
|
|
37
|
-
return this.dataObject.expirationPeriod;
|
|
38
|
-
}
|
|
39
|
-
set expirationPeriod(value) {
|
|
40
|
-
this.dataObject.expirationPeriod = value;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Optional data object shared by the user.
|
|
44
|
-
*/
|
|
45
|
-
get data() {
|
|
46
|
-
return this.dataObject.data;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* The users current presence state.
|
|
50
|
-
*/
|
|
51
|
-
get state() {
|
|
52
|
-
return this.dataObject.state;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Returns the ID of the local user.
|
|
56
|
-
*/
|
|
57
|
-
get userId() {
|
|
58
|
-
return this.dataObject.userId;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* initialize the object.
|
|
62
|
-
* @param allowedRoles Optional. List of roles allowed to send events.
|
|
63
|
-
*/
|
|
64
|
-
initialize(userId, data, state = PresenceState.online) {
|
|
65
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
yield this.dataObject.initialize(userId, data, state);
|
|
67
|
-
this._userId = userId;
|
|
68
|
-
this._data = data;
|
|
69
|
-
this._state = state;
|
|
70
|
-
this._isInitialized = true;
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Returns a snapshot of the current list of presence objects being tracked.
|
|
75
|
-
* @returns Array of presence objects.
|
|
76
|
-
*/
|
|
77
|
-
toArray() {
|
|
78
|
-
return this.dataObject.toArray();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Updates the users presence state and/or shared data object.
|
|
82
|
-
*
|
|
83
|
-
* @remarks
|
|
84
|
-
* This will trigger the immediate broadcast of the users presence to all other clients.
|
|
85
|
-
* @param state Optional. Presence state to change.
|
|
86
|
-
* @param data Optional. Data object to change. A deep copy of the data object is saved to avoid any future changes.
|
|
87
|
-
*/
|
|
88
|
-
updatePresence(state, data) {
|
|
89
|
-
return this.dataObject.updatePresence(state, data);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Enumerates each user the object is tracking presence for.
|
|
93
|
-
* @param callback Function to call for each user.
|
|
94
|
-
* @param callback.user Current presence information for a user.
|
|
95
|
-
* @param filter Optional. Presence state to filter enumeration to.
|
|
96
|
-
*/
|
|
97
|
-
forEach(callback, filter) {
|
|
98
|
-
return this.dataObject.forEach(callback, filter);
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Counts the number of users that the object is tracking presence for.
|
|
102
|
-
* @param filter Optional. Presence state to filter count to.
|
|
103
|
-
* @returns Total number of other users we've seen or number of users with a given presence status.
|
|
104
|
-
*/
|
|
105
|
-
getCount(filter) {
|
|
106
|
-
return this.dataObject.getCount(filter);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Returns the current presence info for a specific client ID.
|
|
110
|
-
* @param clientId The ID of the client to retrieve.
|
|
111
|
-
* @returns The current presence information for the client if they've connected to the space.
|
|
112
|
-
*/
|
|
113
|
-
getPresenceForClient(clientId) {
|
|
114
|
-
return this.dataObject.getPresenceForClient(clientId);
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Returns the current presence info for a specific user.
|
|
118
|
-
* @param userId The ID of the user to retrieve.
|
|
119
|
-
* @returns The current presence information for the user if they've connected to the space.
|
|
120
|
-
*/
|
|
121
|
-
getPresenceForUser(userId) {
|
|
122
|
-
return this.dataObject.getPresenceForUser(userId);
|
|
123
|
-
}
|
|
124
|
-
static create(turboClient, uniqueKey, onDidFirstInitialize) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
-
const results = yield turboClient.getDDS(`<LivePresence>:${uniqueKey}`, (LivePresence), (dds) => {
|
|
127
|
-
return new TurboLivePresence(dds);
|
|
128
|
-
});
|
|
129
|
-
const dds = results.dds;
|
|
130
|
-
if (results.created) {
|
|
131
|
-
onDidFirstInitialize === null || onDidFirstInitialize === void 0 ? void 0 : onDidFirstInitialize(dds);
|
|
132
|
-
}
|
|
133
|
-
return dds;
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
//# sourceMappingURL=TurboLivePresence.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboLivePresence.js","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboLivePresence.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ILiveStateEvents, LiveState, UserMeetingRole } from "@microsoft/live-share";
|
|
2
|
-
import { IFluidTurboClient } from "../../live-share-react/bin/live-share-turbo/interfaces";
|
|
3
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
4
|
-
export declare class TurboLiveState<TData = undefined> extends TurboDataObject<ILiveStateEvents<TData>, LiveState<TData>> {
|
|
5
|
-
private _isInitialized;
|
|
6
|
-
private _allowedRoles?;
|
|
7
|
-
constructor(dataObject: LiveState<TData>);
|
|
8
|
-
get isInitialized(): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Optional data object for the current state.
|
|
11
|
-
*/
|
|
12
|
-
get data(): TData | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The current state.
|
|
15
|
-
*/
|
|
16
|
-
get state(): string;
|
|
17
|
-
/**
|
|
18
|
-
* initialize the object.
|
|
19
|
-
* @param allowedRoles Optional. List of roles allowed to send events.
|
|
20
|
-
*/
|
|
21
|
-
initialize(allowedRoles?: UserMeetingRole[], state?: string, data?: TData): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Changes to a new state with an optional data object.
|
|
24
|
-
* @param state New state name.
|
|
25
|
-
* @param data Optional. Data object to associate with the new state.
|
|
26
|
-
*/
|
|
27
|
-
changeState(state: string, data?: TData): void;
|
|
28
|
-
static create<TData = undefined>(turboClient: IFluidTurboClient, uniqueKey: string, onDidFirstInitialize?: (dds: TurboLiveState<TData>) => void): Promise<TurboLiveState<TData>>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=TurboLiveState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboLiveState.d.ts","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboLiveState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,eAAe,EAAmB,MAAM,uBAAuB,CAAC;AAEtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,cAAc,CAAC,KAAK,GAAG,SAAS,CAAE,SAAQ,eAAe,CAClE,gBAAgB,CAAC,KAAK,CAAC,EACvB,SAAS,CAAC,KAAK,CAAC,CACnB;IACG,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,aAAa,CAAC,CAAoB;gBAE9B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC;IAaxC,IAAW,aAAa,IAAI,OAAO,CAElC;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,KAAK,GAAG,SAAS,CAEnC;IAED;;OAEG;IACH,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED;;;OAGG;IACU,UAAU,CAAC,YAAY,CAAC,EAAE,eAAe,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtG;;;;OAIG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI;WAIjC,MAAM,CAAC,KAAK,GAAG,SAAS,EACxC,WAAW,EAAE,iBAAiB,EAC9B,SAAS,EAAE,MAAM,EACjB,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,IAAI,GAC5D,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;CAiBpC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { LiveState, LiveStateEvents } from "@microsoft/live-share";
|
|
11
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
12
|
-
export class TurboLiveState extends TurboDataObject {
|
|
13
|
-
constructor(dataObject) {
|
|
14
|
-
const onDidOverrideDataObject = () => __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
if (this._isInitialized) {
|
|
16
|
-
try {
|
|
17
|
-
yield this.dataObject.initialize(this._allowedRoles);
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error(error);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
super(dataObject, Object.keys(LiveStateEvents), onDidOverrideDataObject);
|
|
25
|
-
this._isInitialized = false;
|
|
26
|
-
}
|
|
27
|
-
get isInitialized() {
|
|
28
|
-
return this._isInitialized;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Optional data object for the current state.
|
|
32
|
-
*/
|
|
33
|
-
get data() {
|
|
34
|
-
return this.dataObject.data;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The current state.
|
|
38
|
-
*/
|
|
39
|
-
get state() {
|
|
40
|
-
return this.dataObject.state;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* initialize the object.
|
|
44
|
-
* @param allowedRoles Optional. List of roles allowed to send events.
|
|
45
|
-
*/
|
|
46
|
-
initialize(allowedRoles, state, data) {
|
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
yield this.dataObject.initialize(allowedRoles, state, data);
|
|
49
|
-
this._allowedRoles = allowedRoles;
|
|
50
|
-
this._isInitialized = true;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Changes to a new state with an optional data object.
|
|
55
|
-
* @param state New state name.
|
|
56
|
-
* @param data Optional. Data object to associate with the new state.
|
|
57
|
-
*/
|
|
58
|
-
changeState(state, data) {
|
|
59
|
-
return this.dataObject.changeState(state, data);
|
|
60
|
-
}
|
|
61
|
-
static create(turboClient, uniqueKey, onDidFirstInitialize) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const results = yield turboClient.getDDS(`<LiveState>:${uniqueKey}`, (LiveState), (dds) => {
|
|
64
|
-
return new TurboLiveState(dds);
|
|
65
|
-
});
|
|
66
|
-
const dds = results.dds;
|
|
67
|
-
if (results.created) {
|
|
68
|
-
onDidFirstInitialize === null || onDidFirstInitialize === void 0 ? void 0 : onDidFirstInitialize(dds);
|
|
69
|
-
}
|
|
70
|
-
return dds;
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=TurboLiveState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboLiveState.js","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboLiveState.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAoB,SAAS,EAAmB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGtG,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,cAAkC,SAAQ,eAGtD;IAIG,YAAY,UAA4B;QACpC,MAAM,uBAAuB,GAAG,GAAS,EAAE;YACvC,IAAI,IAAI,CAAC,cAAc,EAAE;gBACrB,IAAI;oBACA,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBACxD;gBAAC,OAAO,KAAU,EAAE;oBACjB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;iBACxB;aACJ;QACL,CAAC,CAAA,CAAC;QACF,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,uBAAuB,CAAC,CAAC;QAbrE,mBAAc,GAAY,KAAK,CAAC;IAcxC,CAAC;IAED,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;;OAGG;IACU,UAAU,CAAC,YAAgC,EAAE,KAAc,EAAE,IAAY;;YAClF,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;YAC5D,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC/B,CAAC;KAAA;IAED;;;;OAIG;IACI,WAAW,CAAC,KAAa,EAAE,IAAY;QAC1C,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAEM,MAAM,CAAO,MAAM,CACtB,WAA8B,EAC9B,SAAiB,EACjB,oBAA2D;;YAE3D,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,CAIpC,eAAe,SAAS,EAAE,EAC1B,CAAA,SAAgB,CAAA,EAChB,CAAC,GAAmB,EAAyB,EAAE;gBAC3C,OAAO,IAAI,cAAc,CAAC,GAAuB,CAAC,CAAC;YACvD,CAAC,CACJ,CAAC;YACF,MAAM,GAAG,GAAG,OAAO,CAAC,GAA4B,CAAC;YACjD,IAAI,OAAO,CAAC,OAAO,EAAE;gBACjB,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAG,GAAG,CAAC,CAAC;aAC/B;YACD,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CACJ"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { IFluidTurboClient } from "../../live-share-react/bin/live-share-turbo/interfaces";
|
|
2
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
3
|
-
import { ISharedMapEvents, SharedMap } from "fluid-framework";
|
|
4
|
-
export declare class TurboSharedMap extends TurboDataObject<ISharedMapEvents, SharedMap> {
|
|
5
|
-
constructor(dataObject: SharedMap);
|
|
6
|
-
/**
|
|
7
|
-
* Get an iterator over the keys in this map.
|
|
8
|
-
* @returns The iterator
|
|
9
|
-
*/
|
|
10
|
-
keys(): IterableIterator<string>;
|
|
11
|
-
/**
|
|
12
|
-
* Get an iterator over the entries in this map.
|
|
13
|
-
* @returns The iterator
|
|
14
|
-
*/
|
|
15
|
-
entries(): IterableIterator<[string, any]>;
|
|
16
|
-
/**
|
|
17
|
-
* Get an iterator over the values in this map.
|
|
18
|
-
* @returns The iterator
|
|
19
|
-
*/
|
|
20
|
-
values(): IterableIterator<any>;
|
|
21
|
-
/**
|
|
22
|
-
* Get an iterator over the entries in this map.
|
|
23
|
-
* @returns The iterator
|
|
24
|
-
*/
|
|
25
|
-
[Symbol.iterator](): IterableIterator<[string, any]>;
|
|
26
|
-
/**
|
|
27
|
-
* The number of key/value pairs stored in the map.
|
|
28
|
-
*/
|
|
29
|
-
get size(): number;
|
|
30
|
-
/**
|
|
31
|
-
* Executes the given callback on each entry in the map.
|
|
32
|
-
* @param callbackFn - Callback function
|
|
33
|
-
*/
|
|
34
|
-
forEach(callbackFn: (value: any, key: string, map: Map<string, any>) => void): void;
|
|
35
|
-
/**
|
|
36
|
-
* {@inheritDoc ISharedMap.get}
|
|
37
|
-
*/
|
|
38
|
-
get<T = any>(key: string): T | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Check if a key exists in the map.
|
|
41
|
-
* @param key - The key to check
|
|
42
|
-
* @returns True if the key exists, false otherwise
|
|
43
|
-
*/
|
|
44
|
-
has(key: string): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* {@inheritDoc ISharedMap.set}
|
|
47
|
-
*/
|
|
48
|
-
set(key: string, value: any): this;
|
|
49
|
-
/**
|
|
50
|
-
* Delete a key from the map.
|
|
51
|
-
* @param key - Key to delete
|
|
52
|
-
* @returns True if the key existed and was deleted, false if it did not exist
|
|
53
|
-
*/
|
|
54
|
-
delete(key: string): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Clear all data from the map.
|
|
57
|
-
*/
|
|
58
|
-
clear(): void;
|
|
59
|
-
static create(turboClient: IFluidTurboClient, uniqueKey: string, onDidFirstInitialize?: (dds: TurboSharedMap) => void): Promise<TurboSharedMap>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=TurboSharedMap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboSharedMap.d.ts","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboSharedMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG9D,qBAAa,cAAe,SAAQ,eAAe,CAC/C,gBAAgB,EAChB,SAAS,CACZ;gBACe,UAAU,EAAE,SAAS;IAOjC;;;OAGG;IACI,IAAI,IAAI,gBAAgB,CAAC,MAAM,CAAC;IAIvC;;;OAGG;IACI,OAAO,IAAI,gBAAgB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAIjD;;;OAGG;IACI,MAAM,IAAI,gBAAgB,CAAC,GAAG,CAAC;IAItC;;;OAGG;IACI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAI3D;;OAEG;IACH,IAAW,IAAI,WAEd;IAED;;;OAGG;IACI,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,GAAG,IAAI;IAI1F;;OAEG;IACI,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAI/C;;;;OAIG;IACI,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIhC;;OAEG;IACI,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAKzC;;;;OAIG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAInC;;OAEG;IACI,KAAK,IAAI,IAAI;WAIA,MAAM,CACtB,WAAW,EAAE,iBAAiB,EAC9B,SAAS,EAAE,MAAM,EACjB,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,GACrD,OAAO,CAAC,cAAc,CAAC;CAiB7B"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { TurboDataObject } from "./TurboDataObject";
|
|
11
|
-
import { SharedMap } from "fluid-framework";
|
|
12
|
-
export class TurboSharedMap extends TurboDataObject {
|
|
13
|
-
constructor(dataObject) {
|
|
14
|
-
const onDidOverrideDataObject = () => __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
// this.emit("valueChanged", {}, false);
|
|
16
|
-
});
|
|
17
|
-
super(dataObject, ["valueChanged", "clear"], onDidOverrideDataObject);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get an iterator over the keys in this map.
|
|
21
|
-
* @returns The iterator
|
|
22
|
-
*/
|
|
23
|
-
keys() {
|
|
24
|
-
return this.dataObject.keys();
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Get an iterator over the entries in this map.
|
|
28
|
-
* @returns The iterator
|
|
29
|
-
*/
|
|
30
|
-
entries() {
|
|
31
|
-
return this.dataObject.entries();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Get an iterator over the values in this map.
|
|
35
|
-
* @returns The iterator
|
|
36
|
-
*/
|
|
37
|
-
values() {
|
|
38
|
-
return this.dataObject.values();
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Get an iterator over the entries in this map.
|
|
42
|
-
* @returns The iterator
|
|
43
|
-
*/
|
|
44
|
-
[Symbol.iterator]() {
|
|
45
|
-
return this.dataObject.entries();
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* The number of key/value pairs stored in the map.
|
|
49
|
-
*/
|
|
50
|
-
get size() {
|
|
51
|
-
return this.dataObject.size;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Executes the given callback on each entry in the map.
|
|
55
|
-
* @param callbackFn - Callback function
|
|
56
|
-
*/
|
|
57
|
-
forEach(callbackFn) {
|
|
58
|
-
this.dataObject.forEach(callbackFn);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* {@inheritDoc ISharedMap.get}
|
|
62
|
-
*/
|
|
63
|
-
get(key) {
|
|
64
|
-
return this.dataObject.get(key);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Check if a key exists in the map.
|
|
68
|
-
* @param key - The key to check
|
|
69
|
-
* @returns True if the key exists, false otherwise
|
|
70
|
-
*/
|
|
71
|
-
has(key) {
|
|
72
|
-
return this.dataObject.has(key);
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* {@inheritDoc ISharedMap.set}
|
|
76
|
-
*/
|
|
77
|
-
set(key, value) {
|
|
78
|
-
this.dataObject.set(key, value);
|
|
79
|
-
return this;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Delete a key from the map.
|
|
83
|
-
* @param key - Key to delete
|
|
84
|
-
* @returns True if the key existed and was deleted, false if it did not exist
|
|
85
|
-
*/
|
|
86
|
-
delete(key) {
|
|
87
|
-
return this.dataObject.delete(key);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Clear all data from the map.
|
|
91
|
-
*/
|
|
92
|
-
clear() {
|
|
93
|
-
return this.dataObject.clear();
|
|
94
|
-
}
|
|
95
|
-
static create(turboClient, uniqueKey, onDidFirstInitialize) {
|
|
96
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
const results = yield turboClient.getDDS(`<SharedMap>:${uniqueKey}`, SharedMap, (dds) => {
|
|
98
|
-
return new TurboSharedMap(dds);
|
|
99
|
-
});
|
|
100
|
-
const dds = results.dds;
|
|
101
|
-
if (results.created) {
|
|
102
|
-
onDidFirstInitialize === null || onDidFirstInitialize === void 0 ? void 0 : onDidFirstInitialize(dds);
|
|
103
|
-
}
|
|
104
|
-
return dds;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=TurboSharedMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TurboSharedMap.js","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/TurboSharedMap.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAoB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG9D,MAAM,OAAO,cAAe,SAAQ,eAGnC;IACG,YAAY,UAAqB;QAC7B,MAAM,uBAAuB,GAAG,GAAS,EAAE;YACvC,wCAAwC;QAC5C,CAAC,CAAA,CAAC;QACF,KAAK,CAAC,UAAU,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAED;;;OAGG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAChC,CAAC;IAED;;;OAGG;IACI,OAAO,CAAC,UAAoE;QAC/E,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,GAAG,CAAU,GAAW;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,GAAG,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACI,GAAG,CAAC,GAAW,EAAE,KAAU;QAC9B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,GAAW;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACI,KAAK;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IACnC,CAAC;IAEM,MAAM,CAAO,MAAM,CACtB,WAA8B,EAC9B,SAAiB,EACjB,oBAAoD;;YAEpD,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,MAAM,CAIpC,eAAe,SAAS,EAAE,EAC1B,SAAS,EACT,CAAC,GAAmB,EAAkB,EAAE;gBACpC,OAAO,IAAI,cAAc,CAAC,GAAgB,CAAC,CAAC;YAChD,CAAC,CACJ,CAAC;YACF,MAAM,GAAG,GAAG,OAAO,CAAC,GAAqB,CAAC;YAC1C,IAAI,OAAO,CAAC,OAAO,EAAE;gBACjB,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAG,GAAG,CAAC,CAAC;aAC/B;YACD,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CACJ"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./TurboDataObject";
|
|
2
|
-
export * from "./TurboLiveCanvas";
|
|
3
|
-
export * from "./TurboLiveEvent";
|
|
4
|
-
export * from "./TurboLiveMediaSession";
|
|
5
|
-
export * from "./TurboLivePresence";
|
|
6
|
-
export * from "./TurboLiveState";
|
|
7
|
-
export * from "./TurboSharedMap";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/live-share-turbo/dds-objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./TurboDataObject";
|
|
2
|
-
export * from "./TurboLiveCanvas";
|
|
3
|
-
export * from "./TurboLiveEvent";
|
|
4
|
-
export * from "./TurboLiveMediaSession";
|
|
5
|
-
export * from "./TurboLivePresence";
|
|
6
|
-
export * from "./TurboLiveState";
|
|
7
|
-
export * from "./TurboSharedMap";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|