@microsoft/live-share-react 2.0.0-internal.2 → 2.0.0-internal.20

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.
Files changed (252) hide show
  1. package/LICENSE +64 -61
  2. package/README.md +175 -164
  3. package/bin/esm/index.d.ts +7 -0
  4. package/bin/esm/index.d.ts.map +1 -0
  5. package/bin/esm/index.js +7 -0
  6. package/bin/esm/index.js.map +1 -0
  7. package/bin/esm/interfaces/LiveInterfaceExtensions.d.ts.map +1 -0
  8. package/bin/esm/interfaces/LiveInterfaceExtensions.js.map +1 -0
  9. package/bin/esm/interfaces/index.d.ts +2 -0
  10. package/bin/esm/interfaces/index.d.ts.map +1 -0
  11. package/bin/esm/interfaces/index.js +2 -0
  12. package/bin/esm/interfaces/index.js.map +1 -0
  13. package/bin/esm/internal/errors.d.ts.map +1 -0
  14. package/bin/esm/internal/errors.js.map +1 -0
  15. package/bin/esm/internal/index.d.ts +3 -0
  16. package/bin/esm/internal/index.d.ts.map +1 -0
  17. package/bin/esm/internal/index.js +3 -0
  18. package/bin/esm/internal/index.js.map +1 -0
  19. package/bin/{internal → esm/internal}/type-guards.d.ts +1 -1
  20. package/bin/esm/internal/type-guards.d.ts.map +1 -0
  21. package/bin/esm/internal/type-guards.js.map +1 -0
  22. package/bin/esm/live-hooks/index.d.ts +8 -0
  23. package/bin/esm/live-hooks/index.d.ts.map +1 -0
  24. package/bin/esm/live-hooks/index.js +8 -0
  25. package/bin/esm/live-hooks/index.js.map +1 -0
  26. package/bin/esm/live-hooks/useLiveCanvas.d.ts +80 -0
  27. package/bin/esm/live-hooks/useLiveCanvas.d.ts.map +1 -0
  28. package/bin/esm/live-hooks/useLiveCanvas.js +237 -0
  29. package/bin/esm/live-hooks/useLiveCanvas.js.map +1 -0
  30. package/bin/{live-hooks → esm/live-hooks}/useLiveEvent.d.ts +37 -1
  31. package/bin/esm/live-hooks/useLiveEvent.d.ts.map +1 -0
  32. package/bin/{live-hooks → esm/live-hooks}/useLiveEvent.js +45 -18
  33. package/bin/esm/live-hooks/useLiveEvent.js.map +1 -0
  34. package/bin/esm/live-hooks/useLiveFollowMode.d.ts +163 -0
  35. package/bin/esm/live-hooks/useLiveFollowMode.d.ts.map +1 -0
  36. package/bin/{live-hooks → esm/live-hooks}/useLiveFollowMode.js +173 -39
  37. package/bin/esm/live-hooks/useLiveFollowMode.js.map +1 -0
  38. package/bin/esm/live-hooks/useLivePresence.d.ts +76 -0
  39. package/bin/esm/live-hooks/useLivePresence.d.ts.map +1 -0
  40. package/bin/{live-hooks → esm/live-hooks}/useLivePresence.js +74 -25
  41. package/bin/esm/live-hooks/useLivePresence.js.map +1 -0
  42. package/bin/{live-hooks → esm/live-hooks}/useLiveState.d.ts +46 -1
  43. package/bin/esm/live-hooks/useLiveState.d.ts.map +1 -0
  44. package/bin/{live-hooks → esm/live-hooks}/useLiveState.js +58 -18
  45. package/bin/esm/live-hooks/useLiveState.js.map +1 -0
  46. package/bin/{live-hooks → esm/live-hooks}/useLiveTimer.d.ts +56 -1
  47. package/bin/esm/live-hooks/useLiveTimer.d.ts.map +1 -0
  48. package/bin/{live-hooks → esm/live-hooks}/useLiveTimer.js +80 -34
  49. package/bin/esm/live-hooks/useLiveTimer.js.map +1 -0
  50. package/bin/esm/live-hooks/useMediaSynchronizer.d.ts +86 -0
  51. package/bin/esm/live-hooks/useMediaSynchronizer.d.ts.map +1 -0
  52. package/bin/{live-hooks → esm/live-hooks}/useMediaSynchronizer.js +89 -37
  53. package/bin/esm/live-hooks/useMediaSynchronizer.js.map +1 -0
  54. package/bin/{providers → esm/providers}/AzureProvider.d.ts +9 -9
  55. package/bin/esm/providers/AzureProvider.d.ts.map +1 -0
  56. package/bin/{providers → esm/providers}/AzureProvider.js +28 -33
  57. package/bin/esm/providers/AzureProvider.js.map +1 -0
  58. package/bin/{providers → esm/providers}/LiveShareProvider.d.ts +106 -4
  59. package/bin/esm/providers/LiveShareProvider.d.ts.map +1 -0
  60. package/bin/esm/providers/LiveShareProvider.js +196 -0
  61. package/bin/esm/providers/LiveShareProvider.js.map +1 -0
  62. package/bin/esm/providers/index.d.ts +3 -0
  63. package/bin/esm/providers/index.d.ts.map +1 -0
  64. package/bin/esm/providers/index.js +3 -0
  65. package/bin/esm/providers/index.js.map +1 -0
  66. package/bin/esm/shared-hooks/index.d.ts +7 -0
  67. package/bin/esm/shared-hooks/index.d.ts.map +1 -0
  68. package/bin/esm/shared-hooks/index.js +7 -0
  69. package/bin/esm/shared-hooks/index.js.map +1 -0
  70. package/bin/esm/shared-hooks/internals/tree-node-constants.d.ts +3 -0
  71. package/bin/esm/shared-hooks/internals/tree-node-constants.d.ts.map +1 -0
  72. package/bin/esm/shared-hooks/internals/tree-node-constants.js +3 -0
  73. package/bin/esm/shared-hooks/internals/tree-node-constants.js.map +1 -0
  74. package/bin/esm/shared-hooks/internals/tree-node-types.d.ts +10 -0
  75. package/bin/esm/shared-hooks/internals/tree-node-types.d.ts.map +1 -0
  76. package/bin/esm/shared-hooks/internals/tree-node-types.js +18 -0
  77. package/bin/esm/shared-hooks/internals/tree-node-types.js.map +1 -0
  78. package/bin/esm/shared-hooks/internals/tree-node-utils.d.ts +33 -0
  79. package/bin/esm/shared-hooks/internals/tree-node-utils.d.ts.map +1 -0
  80. package/bin/esm/shared-hooks/internals/tree-node-utils.js +186 -0
  81. package/bin/esm/shared-hooks/internals/tree-node-utils.js.map +1 -0
  82. package/bin/{shared-hooks → esm/shared-hooks}/useDynamicDDS.d.ts +4 -4
  83. package/bin/esm/shared-hooks/useDynamicDDS.d.ts.map +1 -0
  84. package/bin/{shared-hooks → esm/shared-hooks}/useDynamicDDS.js +22 -22
  85. package/bin/esm/shared-hooks/useDynamicDDS.js.map +1 -0
  86. package/bin/{shared-hooks → esm/shared-hooks}/useSharedMap.d.ts +4 -2
  87. package/bin/esm/shared-hooks/useSharedMap.d.ts.map +1 -0
  88. package/bin/{shared-hooks → esm/shared-hooks}/useSharedMap.js +28 -14
  89. package/bin/esm/shared-hooks/useSharedMap.js.map +1 -0
  90. package/bin/{shared-hooks → esm/shared-hooks}/useSharedState.d.ts +1 -1
  91. package/bin/esm/shared-hooks/useSharedState.d.ts.map +1 -0
  92. package/bin/{shared-hooks → esm/shared-hooks}/useSharedState.js +2 -2
  93. package/bin/esm/shared-hooks/useSharedState.js.map +1 -0
  94. package/bin/{shared-hooks → esm/shared-hooks}/useSharedStateRegistry.d.ts +1 -1
  95. package/bin/esm/shared-hooks/useSharedStateRegistry.d.ts.map +1 -0
  96. package/bin/{shared-hooks → esm/shared-hooks}/useSharedStateRegistry.js +35 -24
  97. package/bin/esm/shared-hooks/useSharedStateRegistry.js.map +1 -0
  98. package/bin/esm/shared-hooks/useSharedTree.d.ts +57 -0
  99. package/bin/esm/shared-hooks/useSharedTree.d.ts.map +1 -0
  100. package/bin/esm/shared-hooks/useSharedTree.js +117 -0
  101. package/bin/esm/shared-hooks/useSharedTree.js.map +1 -0
  102. package/bin/esm/shared-hooks/useTreeNode.d.ts +96 -0
  103. package/bin/esm/shared-hooks/useTreeNode.d.ts.map +1 -0
  104. package/bin/esm/shared-hooks/useTreeNode.js +132 -0
  105. package/bin/esm/shared-hooks/useTreeNode.js.map +1 -0
  106. package/bin/{types → esm/types}/ActionTypes.d.ts +7 -7
  107. package/bin/esm/types/ActionTypes.d.ts.map +1 -0
  108. package/bin/esm/types/ActionTypes.js.map +1 -0
  109. package/bin/esm/types/FluidMap.d.ts +151 -0
  110. package/bin/esm/types/FluidMap.d.ts.map +1 -0
  111. package/bin/esm/types/FluidMap.js +24 -0
  112. package/bin/esm/types/FluidMap.js.map +1 -0
  113. package/bin/esm/types/PropTypes.d.ts +56 -0
  114. package/bin/esm/types/PropTypes.d.ts.map +1 -0
  115. package/bin/esm/types/PropTypes.js.map +1 -0
  116. package/bin/{types → esm/types}/ResultTypes.d.ts +62 -18
  117. package/bin/esm/types/ResultTypes.d.ts.map +1 -0
  118. package/bin/esm/types/ResultTypes.js.map +1 -0
  119. package/bin/esm/types/index.d.ts +4 -0
  120. package/bin/esm/types/index.d.ts.map +1 -0
  121. package/bin/esm/types/index.js +4 -0
  122. package/bin/esm/types/index.js.map +1 -0
  123. package/bin/esm/utils/index.d.ts +2 -0
  124. package/bin/esm/utils/index.d.ts.map +1 -0
  125. package/bin/esm/utils/index.js +2 -0
  126. package/bin/esm/utils/index.js.map +1 -0
  127. package/bin/esm/utils/type-check.d.ts.map +1 -0
  128. package/bin/{utils → esm/utils}/type-check.js +1 -1
  129. package/bin/esm/utils/type-check.js.map +1 -0
  130. package/package.json +51 -47
  131. package/src/index.ts +6 -6
  132. package/src/interfaces/index.ts +1 -1
  133. package/src/internal/index.ts +2 -2
  134. package/src/internal/type-guards.ts +1 -1
  135. package/src/live-hooks/index.ts +7 -7
  136. package/src/live-hooks/useLiveCanvas.ts +154 -82
  137. package/src/live-hooks/useLiveEvent.ts +43 -7
  138. package/src/live-hooks/useLiveFollowMode.ts +149 -6
  139. package/src/live-hooks/useLivePresence.ts +80 -17
  140. package/src/live-hooks/useLiveState.ts +54 -6
  141. package/src/live-hooks/useLiveTimer.ts +59 -4
  142. package/src/live-hooks/useMediaSynchronizer.ts +71 -6
  143. package/src/providers/AzureProvider.tsx +21 -21
  144. package/src/providers/LiveShareProvider.tsx +115 -13
  145. package/src/providers/index.ts +2 -2
  146. package/src/shared-hooks/index.ts +6 -4
  147. package/src/shared-hooks/internals/tree-node-constants.ts +2 -0
  148. package/src/shared-hooks/internals/tree-node-types.ts +26 -0
  149. package/src/shared-hooks/internals/tree-node-utils.ts +269 -0
  150. package/src/shared-hooks/useDynamicDDS.ts +28 -17
  151. package/src/shared-hooks/useSharedMap.ts +42 -17
  152. package/src/shared-hooks/useSharedState.ts +6 -3
  153. package/src/shared-hooks/useSharedStateRegistry.ts +44 -22
  154. package/src/shared-hooks/useSharedTree.ts +144 -0
  155. package/src/shared-hooks/useTreeNode.ts +147 -0
  156. package/src/types/ActionTypes.ts +13 -9
  157. package/src/types/FluidMap.ts +169 -0
  158. package/src/types/PropTypes.ts +57 -0
  159. package/src/types/ResultTypes.ts +88 -17
  160. package/src/types/index.ts +3 -3
  161. package/src/utils/index.ts +1 -1
  162. package/tsconfig.json +64 -70
  163. package/.nycrc.json +0 -10
  164. package/bin/index.d.ts +0 -7
  165. package/bin/index.d.ts.map +0 -1
  166. package/bin/index.js +0 -7
  167. package/bin/index.js.map +0 -1
  168. package/bin/interfaces/LiveInterfaceExtensions.d.ts.map +0 -1
  169. package/bin/interfaces/LiveInterfaceExtensions.js.map +0 -1
  170. package/bin/interfaces/index.d.ts +0 -2
  171. package/bin/interfaces/index.d.ts.map +0 -1
  172. package/bin/interfaces/index.js +0 -2
  173. package/bin/interfaces/index.js.map +0 -1
  174. package/bin/internal/errors.d.ts.map +0 -1
  175. package/bin/internal/errors.js.map +0 -1
  176. package/bin/internal/index.d.ts +0 -3
  177. package/bin/internal/index.d.ts.map +0 -1
  178. package/bin/internal/index.js +0 -3
  179. package/bin/internal/index.js.map +0 -1
  180. package/bin/internal/type-guards.d.ts.map +0 -1
  181. package/bin/internal/type-guards.js.map +0 -1
  182. package/bin/live-hooks/index.d.ts +0 -8
  183. package/bin/live-hooks/index.d.ts.map +0 -1
  184. package/bin/live-hooks/index.js +0 -8
  185. package/bin/live-hooks/index.js.map +0 -1
  186. package/bin/live-hooks/useLiveCanvas.d.ts +0 -29
  187. package/bin/live-hooks/useLiveCanvas.d.ts.map +0 -1
  188. package/bin/live-hooks/useLiveCanvas.js +0 -160
  189. package/bin/live-hooks/useLiveCanvas.js.map +0 -1
  190. package/bin/live-hooks/useLiveEvent.d.ts.map +0 -1
  191. package/bin/live-hooks/useLiveEvent.js.map +0 -1
  192. package/bin/live-hooks/useLiveFollowMode.d.ts +0 -24
  193. package/bin/live-hooks/useLiveFollowMode.d.ts.map +0 -1
  194. package/bin/live-hooks/useLiveFollowMode.js.map +0 -1
  195. package/bin/live-hooks/useLivePresence.d.ts +0 -26
  196. package/bin/live-hooks/useLivePresence.d.ts.map +0 -1
  197. package/bin/live-hooks/useLivePresence.js.map +0 -1
  198. package/bin/live-hooks/useLiveState.d.ts.map +0 -1
  199. package/bin/live-hooks/useLiveState.js.map +0 -1
  200. package/bin/live-hooks/useLiveTimer.d.ts.map +0 -1
  201. package/bin/live-hooks/useLiveTimer.js.map +0 -1
  202. package/bin/live-hooks/useMediaSynchronizer.d.ts +0 -25
  203. package/bin/live-hooks/useMediaSynchronizer.d.ts.map +0 -1
  204. package/bin/live-hooks/useMediaSynchronizer.js.map +0 -1
  205. package/bin/providers/AzureProvider.d.ts.map +0 -1
  206. package/bin/providers/AzureProvider.js.map +0 -1
  207. package/bin/providers/LiveShareProvider.d.ts.map +0 -1
  208. package/bin/providers/LiveShareProvider.js +0 -95
  209. package/bin/providers/LiveShareProvider.js.map +0 -1
  210. package/bin/providers/index.d.ts +0 -3
  211. package/bin/providers/index.d.ts.map +0 -1
  212. package/bin/providers/index.js +0 -3
  213. package/bin/providers/index.js.map +0 -1
  214. package/bin/shared-hooks/index.d.ts +0 -5
  215. package/bin/shared-hooks/index.d.ts.map +0 -1
  216. package/bin/shared-hooks/index.js +0 -5
  217. package/bin/shared-hooks/index.js.map +0 -1
  218. package/bin/shared-hooks/useDynamicDDS.d.ts.map +0 -1
  219. package/bin/shared-hooks/useDynamicDDS.js.map +0 -1
  220. package/bin/shared-hooks/useSharedMap.d.ts.map +0 -1
  221. package/bin/shared-hooks/useSharedMap.js.map +0 -1
  222. package/bin/shared-hooks/useSharedState.d.ts.map +0 -1
  223. package/bin/shared-hooks/useSharedState.js.map +0 -1
  224. package/bin/shared-hooks/useSharedStateRegistry.d.ts.map +0 -1
  225. package/bin/shared-hooks/useSharedStateRegistry.js.map +0 -1
  226. package/bin/types/ActionTypes.d.ts.map +0 -1
  227. package/bin/types/ActionTypes.js.map +0 -1
  228. package/bin/types/PropTypes.d.ts +0 -8
  229. package/bin/types/PropTypes.d.ts.map +0 -1
  230. package/bin/types/PropTypes.js.map +0 -1
  231. package/bin/types/ResultTypes.d.ts.map +0 -1
  232. package/bin/types/ResultTypes.js.map +0 -1
  233. package/bin/types/index.d.ts +0 -4
  234. package/bin/types/index.d.ts.map +0 -1
  235. package/bin/types/index.js +0 -4
  236. package/bin/types/index.js.map +0 -1
  237. package/bin/utils/index.d.ts +0 -2
  238. package/bin/utils/index.d.ts.map +0 -1
  239. package/bin/utils/index.js +0 -2
  240. package/bin/utils/index.js.map +0 -1
  241. package/bin/utils/type-check.d.ts.map +0 -1
  242. package/bin/utils/type-check.js.map +0 -1
  243. package/tsconfig.build.json +0 -6
  244. /package/bin/{interfaces → esm/interfaces}/LiveInterfaceExtensions.d.ts +0 -0
  245. /package/bin/{interfaces → esm/interfaces}/LiveInterfaceExtensions.js +0 -0
  246. /package/bin/{internal → esm/internal}/errors.d.ts +0 -0
  247. /package/bin/{internal → esm/internal}/errors.js +0 -0
  248. /package/bin/{internal → esm/internal}/type-guards.js +0 -0
  249. /package/bin/{types → esm/types}/ActionTypes.js +0 -0
  250. /package/bin/{types → esm/types}/PropTypes.js +0 -0
  251. /package/bin/{types → esm/types}/ResultTypes.js +0 -0
  252. /package/bin/{utils → esm/utils}/type-check.d.ts +0 -0
@@ -3,12 +3,14 @@
3
3
  * Licensed under the Microsoft Live Share SDK License.
4
4
  */
5
5
  import { AzureContainerServices } from "@fluidframework/azure-client";
6
- import { ITimerConfig, LivePresenceUser, LiveEvent, LivePresence, LiveTimer, IFollowModeState, FollowModePresenceUser, LiveFollowMode } from "@microsoft/live-share";
6
+ import { ITimerConfig, LivePresenceUser, LiveEvent, LivePresence, LiveTimer, IFollowModeState, FollowModePresenceUser, LiveFollowMode, LivePresenceData } from "@microsoft/live-share";
7
7
  import { InkingManager, LiveCanvas } from "@microsoft/live-share-canvas";
8
8
  import { CoordinationWaitPoint, ExtendedMediaMetadata, MediaPlayerSynchronizer } from "@microsoft/live-share-media";
9
- import { IFluidContainer, SharedMap } from "fluid-framework";
10
- import { IReceiveLiveEvent } from "../interfaces";
11
- import { OnPauseTimerAction, OnPlayTimerAction, OnStartTimerAction, OnUpdateLivePresenceAction, SendLiveEventAction } from "./ActionTypes";
9
+ import { IFluidContainer, ITree, ImplicitFieldSchema, TreeFieldFromImplicitField, TreeView } from "fluid-framework";
10
+ import { SharedMap } from "fluid-framework/legacy";
11
+ import { IReceiveLiveEvent } from "../interfaces/index.js";
12
+ import { OnPauseTimerAction, OnPlayTimerAction, OnStartTimerAction, OnUpdateLivePresenceAction, SendLiveEventAction } from "./ActionTypes.js";
13
+ import type { FluidMap } from "./FluidMap.js";
12
14
  export interface IAzureContainerResults {
13
15
  /**
14
16
  * Fluid Container.
@@ -26,13 +28,30 @@ export interface ILiveShareContainerResults extends IAzureContainerResults {
26
28
  created: boolean;
27
29
  }
28
30
  /**
29
- * Return type of `useSharedMap` hook.
31
+ * A value-typed SharedMap compatible with Fluid 2.x and 3.x.
32
+ * Uses SharedMap's mutators without changing FluidMap's forEach callback type.
33
+ */
34
+ export type TypedSharedMap<TData> = Omit<FluidMap<string, TData>, "delete" | "set"> & SharedMap;
35
+ /**
36
+ * @deprecated use {@link useSharedTree} instead.
37
+ *
38
+ * Return type of {@link useSharedMap} hook.
30
39
  */
31
40
  export interface IUseSharedMapResults<TData> {
32
41
  /**
33
- * Stateful map of most recent values from `SharedMap`.
42
+ * The Fluid `SharedMap` object.
43
+ *
44
+ * @remarks
45
+ * Uses a local FluidMap type for value-typed get, forEach, values, and entries across Fluid 2.x and 3.x,
46
+ * while preserving ISharedMap's boolean delete result and chainable set method.
47
+ * Fluid 3.x maps are not assignable to the built-in Map type; use new Map(sharedMap)
48
+ * when a built-in Map is required.
49
+ */
50
+ sharedMap: TypedSharedMap<TData> | undefined;
51
+ /**
52
+ * Callback method to get entries in the `SharedMap`.
34
53
  */
35
- map: ReadonlyMap<string, TData>;
54
+ getEntry: (key: string) => TData | undefined;
36
55
  /**
37
56
  * Callback method to set/replace new entries in the `SharedMap`.
38
57
  */
@@ -41,13 +60,35 @@ export interface IUseSharedMapResults<TData> {
41
60
  * Callback method to delete an existing entry in the `SharedMap`.
42
61
  */
43
62
  deleteEntry: (key: string) => void;
63
+ }
64
+ /**
65
+ * Return type of {@link useSharedTree} hook.
66
+ */
67
+ export interface IUseSharedTreeResults<TSchema extends ImplicitFieldSchema> {
68
+ /**
69
+ * The Fluid `TreeView`.
70
+ */
71
+ treeView: TreeView<TSchema> | undefined;
72
+ /**
73
+ * The Fluid `SharedTree` object, should you want to use it directly.
74
+ */
75
+ sharedTree: ITree | undefined;
76
+ /**
77
+ * Root node
78
+ */
79
+ root: TreeFieldFromImplicitField<TSchema> | undefined;
80
+ }
81
+ /**
82
+ * Return type of {@link useTreeNode} hook.
83
+ */
84
+ export interface IUseTreeNodeResults<TNode = any> {
44
85
  /**
45
- * The Fluid `SharedMap` object, should you want to use it directly.
86
+ * The Fluid `TreeNode`
46
87
  */
47
- sharedMap: SharedMap | undefined;
88
+ node: TNode;
48
89
  }
49
90
  /**
50
- * Return type of `useLiveEvent` hook.
91
+ * Return type of {@link useLiveEvent} hook.
51
92
  */
52
93
  export interface IUseLiveEventResults<TEvent = any> {
53
94
  /**
@@ -70,7 +111,7 @@ export interface IUseLiveEventResults<TEvent = any> {
70
111
  liveEvent: LiveEvent | undefined;
71
112
  }
72
113
  /**
73
- * Return type of `useLiveTimer` hook.
114
+ * Return type of {@link useLiveTimer} hook.
74
115
  */
75
116
  export interface IUseLiveTimerResults {
76
117
  /**
@@ -103,9 +144,9 @@ export interface IUseLiveTimerResults {
103
144
  pause: OnPauseTimerAction;
104
145
  }
105
146
  /**
106
- * Return type of `useLivePresence` hook.
147
+ * Return type of {@link useLivePresence} hook.
107
148
  */
108
- export interface IUseLivePresenceResults<TData extends object = object> {
149
+ export interface IUseLivePresenceResults<TData extends LivePresenceData = any> {
109
150
  /**
110
151
  * The local user's presence object.
111
152
  */
@@ -114,6 +155,10 @@ export interface IUseLivePresenceResults<TData extends object = object> {
114
155
  * List of non-local user's presence objects.
115
156
  */
116
157
  otherUsers: LivePresenceUser<TData>[];
158
+ /**
159
+ * List of all online users.
160
+ */
161
+ onlineUsers: LivePresenceUser<TData>[];
117
162
  /**
118
163
  * List of all user's presence objects.
119
164
  */
@@ -124,14 +169,13 @@ export interface IUseLivePresenceResults<TData extends object = object> {
124
169
  livePresence: LivePresence<TData> | undefined;
125
170
  /**
126
171
  * Callback method to update the local user's presence.
127
- * @param data Optional. TData to set for user.
128
- * @param state Optional. PresenceState to set for user.
172
+ * @param data TData to set for user.
129
173
  * @returns void promise that will throw when user does not have required roles
130
174
  */
131
175
  updatePresence: OnUpdateLivePresenceAction<TData>;
132
176
  }
133
177
  /**
134
- * Return type of `useMediaSynchronizer` hook.
178
+ * Return type of {@link useMediaSynchronizer} hook.
135
179
  */
136
180
  export interface IUseMediaSynchronizerResults {
137
181
  /**
@@ -178,7 +222,7 @@ export interface IUseMediaSynchronizerResults {
178
222
  mediaSynchronizer: MediaPlayerSynchronizer | undefined;
179
223
  }
180
224
  /**
181
- * Return type of `useLiveCanvas` hook.
225
+ * Return type of {@link useLiveCanvas} hook.
182
226
  */
183
227
  export interface IUseLiveCanvasResults {
184
228
  /**
@@ -191,7 +235,7 @@ export interface IUseLiveCanvasResults {
191
235
  liveCanvas: LiveCanvas | undefined;
192
236
  }
193
237
  /**
194
- * Return type of `useLiveFollowMode` hook.
238
+ * Return type of {@link useLiveFollowMode} hook.
195
239
  */
196
240
  export interface IUseLiveFollowModeResults<TData = any> {
197
241
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResultTypes.d.ts","sourceRoot":"","sources":["../../../src/types/ResultTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACH,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EACnB,MAAM,uBAAuB,CAAC;AAC/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AAG;IAClD;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,SAAS,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,UAAU,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;IAC5C;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;IAC1C;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAClD;;;;;;;;;;;;;OAaG;IACH,MAAM,EAAE,CAAC,UAAU,EAAE,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;;;;;;;;;;;;;OAcG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC;;;;;;;;;;;;;OAaG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C;;;;;;;OAOG;IACH,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResultTypes.js","sourceRoot":"","sources":["../../../src/types/ResultTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,4 @@
1
+ export * from "./ActionTypes.js";
2
+ export * from "./ResultTypes.js";
3
+ export * from "./PropTypes.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./ActionTypes.js";
2
+ export * from "./ResultTypes.js";
3
+ export * from "./PropTypes.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./type-check.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./type-check.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-check.d.ts","sourceRoot":"","sources":["../../../src/utils/type-check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,qBAAqB,EACrB,YAAY,EACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAEtE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,YAAY,CAoBhE;AAED,wBAAgB,uBAAuB,CACnC,KAAK,EAAE,GAAG,GACX,KAAK,IAAI,qBAAqB,CAEhC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAE3D;AAED,wBAAgB,SAAS,CACrB,KAAK,EAAE,GAAG,GACX,KAAK,IAAI,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAU9C;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAOlE"}
@@ -25,7 +25,7 @@ export function isMediaElement(value) {
25
25
  return false;
26
26
  }
27
27
  export function isExtendedMediaMetadata(value) {
28
- return value === null || !!(value === null || value === void 0 ? void 0 : value.trackIdentifier);
28
+ return value === null || !!value?.trackIdentifier;
29
29
  }
30
30
  export function isMap(value) {
31
31
  return value instanceof Map;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-check.js","sourceRoot":"","sources":["../../../src/utils/type-check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,UAAU,WAAW,CAAI,KAAU;IACrC,OAAO,KAAK,CAAC,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAU;IACrC,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CACH,KAAK,CAAC,UAAU,KAAK,SAAS;YAC9B,KAAK,CAAC,WAAW,KAAK,SAAS;YAC/B,KAAK,CAAC,QAAQ,KAAK,SAAS;YAC5B,KAAK,CAAC,KAAK,KAAK,SAAS;YACzB,KAAK,CAAC,KAAK,KAAK,SAAS;YACzB,KAAK,CAAC,MAAM,KAAK,SAAS;YAC1B,KAAK,CAAC,YAAY,KAAK,SAAS;YAChC,KAAK,CAAC,GAAG,KAAK,SAAS;YACvB,KAAK,CAAC,MAAM,KAAK,SAAS;YAC1B,KAAK,CAAC,IAAI,KAAK,SAAS;YACxB,KAAK,CAAC,KAAK,KAAK,SAAS;YACzB,KAAK,CAAC,IAAI,KAAK,SAAS;YACxB,KAAK,CAAC,gBAAgB,KAAK,SAAS;YACpC,KAAK,CAAC,mBAAmB,KAAK,SAAS,CAC1C,CAAC;IACN,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,uBAAuB,CACnC,KAAU;IAEV,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,eAAe,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,KAAU;IAC5B,OAAO,KAAK,YAAY,GAAG,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,SAAS,CACrB,KAAU;IAEV,IAAI,CAAC;QACD,MAAM,QAAQ,GAAG,KAAyC,CAAC;QAC3D,IAAI,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,KAAU;IAC7B,IAAI,CAAC;QACD,MAAM,QAAQ,GAAG,KAA+B,CAAC;QACjD,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,48 +1,52 @@
1
1
  {
2
- "name": "@microsoft/live-share-react",
3
- "version": "2.0.0-internal.2",
4
- "description": "Build collaborative React apps using Microsoft's Fluid & Live Share frameworks with ease.",
5
- "author": "Microsoft",
6
- "license": "SEE LICENSE IN LICENSE",
7
- "main": "./bin/index.js",
8
- "types": "./bin/index.d.ts",
9
- "scripts": {
10
- "clean": "npx shx rm -rf bin",
11
- "build": "tsc -p tsconfig.build.json",
12
- "typecheck": "tsc"
13
- },
14
- "dependencies": {
15
- "@microsoft/live-share-turbo": "2.0.0-internal.2",
16
- "url": "^0.11.0",
17
- "uuid": "^9.0.0"
18
- },
19
- "devDependencies": {
20
- "@babel/core": "^7.21.8",
21
- "@microsoft/live-share": "2.0.0-internal.2",
22
- "@microsoft/live-share-canvas": "2.0.0-internal.2",
23
- "@microsoft/live-share-media": "2.0.0-internal.2",
24
- "@types/react": "^18.0.0",
25
- "@types/react-dom": "^18.0.0",
26
- "@types/uuid": "^9.0.1",
27
- "babel-loader": "^9.1.2",
28
- "fluid-framework": "^2.0.0-rc.1",
29
- "typescript": "^5.0.4"
30
- },
31
- "peerDependencies": {
32
- "@microsoft/live-share": "2.0.0-internal.2",
33
- "@microsoft/live-share-canvas": "2.0.0-internal.2",
34
- "@microsoft/live-share-media": "2.0.0-internal.2",
35
- "fluid-framework": "^2.0.0-rc || ^2.0.0-internal",
36
- "react": "^16.8.0 || ^17 || ^18",
37
- "react-dom": "^16.8.0 || ^17 || ^18"
38
- },
39
- "repository": {
40
- "directory": "packages/live-share-react",
41
- "type": "git",
42
- "url": "https://github.com/microsoft/live-share-sdk"
43
- },
44
- "homepage": "https://aka.ms/teamsliveshare",
45
- "bugs": {
46
- "url": "https://github.com/microsoft/live-share-sdk/issues"
47
- }
48
- }
2
+ "name": "@microsoft/live-share-react",
3
+ "version": "2.0.0-internal.20",
4
+ "description": "Build collaborative React apps using Microsoft's Fluid & Live Share frameworks with ease.",
5
+ "author": "Microsoft",
6
+ "license": "SEE LICENSE IN LICENSE",
7
+ "type": "module",
8
+ "scripts": {
9
+ "clean": "npx shx rm -rf bin",
10
+ "build": "node ../../internal/build-tools/build-package.js --esm",
11
+ "typecheck": "tsc"
12
+ },
13
+ "exports": {
14
+ "./package.json": "./package.json",
15
+ ".": {
16
+ "import": "./bin/esm/index.js"
17
+ }
18
+ },
19
+ "dependencies": {
20
+ "url": "^0.11.0",
21
+ "uuid": "^9.0.0"
22
+ },
23
+ "devDependencies": {
24
+ "@babel/core": "^7.21.8",
25
+ "@microsoft/live-share": "2.0.0-internal.20",
26
+ "@microsoft/live-share-canvas": "2.0.0-internal.20",
27
+ "@microsoft/live-share-media": "2.0.0-internal.20",
28
+ "@types/react": "^18.0.0",
29
+ "@types/react-dom": "^18.0.0",
30
+ "@types/uuid": "^9.0.1",
31
+ "babel-loader": "^9.1.2",
32
+ "fluid-framework": ">=2.102 <2.120 || >=3.0.0 <3.20.0",
33
+ "typescript": "~5.5.3"
34
+ },
35
+ "peerDependencies": {
36
+ "@microsoft/live-share": "2.0.0-internal.20",
37
+ "@microsoft/live-share-canvas": "2.0.0-internal.20",
38
+ "@microsoft/live-share-media": "2.0.0-internal.20",
39
+ "fluid-framework": ">=2.102 <2.120 || >=3.0.0 <3.20.0",
40
+ "react": "^16.8.0 || ^17 || ^18",
41
+ "react-dom": "^16.8.0 || ^17 || ^18"
42
+ },
43
+ "repository": {
44
+ "directory": "packages/live-share-react",
45
+ "type": "git",
46
+ "url": "https://github.com/microsoft/live-share-sdk"
47
+ },
48
+ "homepage": "https://aka.ms/teamsliveshare",
49
+ "bugs": {
50
+ "url": "https://github.com/microsoft/live-share-sdk/issues"
51
+ }
52
+ }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./providers";
2
- export * from "./shared-hooks";
3
- export * from "./live-hooks";
4
- export * from "./types";
5
- export * from "./providers";
6
- export * from "./interfaces";
1
+ export * from "./providers/index.js";
2
+ export * from "./shared-hooks/index.js";
3
+ export * from "./live-hooks/index.js";
4
+ export * from "./types/index.js";
5
+ export * from "./providers/index.js";
6
+ export * from "./interfaces/index.js";
@@ -1 +1 @@
1
- export * from "./LiveInterfaceExtensions";
1
+ export * from "./LiveInterfaceExtensions.js";
@@ -1,2 +1,2 @@
1
- export * from "./errors";
2
- export * from "./type-guards";
1
+ export * from "./errors.js";
2
+ export * from "./type-guards.js";
@@ -1,4 +1,4 @@
1
- import { ITeamsJsSdkError } from "./errors";
1
+ import { ITeamsJsSdkError } from "./errors.js";
2
2
 
3
3
  /**
4
4
  * @hidden
@@ -1,7 +1,7 @@
1
- export * from "./useLivePresence";
2
- export * from "./useLiveFollowMode";
3
- export * from "./useLiveState";
4
- export * from "./useMediaSynchronizer";
5
- export * from "./useLiveEvent";
6
- export * from "./useLiveCanvas";
7
- export * from "./useLiveTimer";
1
+ export * from "./useLivePresence.js";
2
+ export * from "./useLiveFollowMode.js";
3
+ export * from "./useLiveState.js";
4
+ export * from "./useMediaSynchronizer.js";
5
+ export * from "./useLiveEvent.js";
6
+ export * from "./useLiveCanvas.js";
7
+ export * from "./useLiveTimer.js";