@microsoft/live-share-react 1.3.0-preview.0 → 1.4.0-preview.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.
Files changed (53) hide show
  1. package/.nycrc.json +9 -9
  2. package/LICENSE +86 -86
  3. package/README.md +608 -608
  4. package/bin/live-hooks/useLiveEvent.d.ts.map +1 -1
  5. package/bin/live-hooks/useLiveEvent.js +6 -0
  6. package/bin/live-hooks/useLiveEvent.js.map +1 -1
  7. package/bin/live-hooks/useLiveFollowMode.d.ts.map +1 -1
  8. package/bin/live-hooks/useLiveFollowMode.js +2 -4
  9. package/bin/live-hooks/useLiveFollowMode.js.map +1 -1
  10. package/bin/live-hooks/useLivePresence.d.ts.map +1 -1
  11. package/bin/live-hooks/useLivePresence.js +1 -3
  12. package/bin/live-hooks/useLivePresence.js.map +1 -1
  13. package/bin/live-hooks/useLiveState.d.ts.map +1 -1
  14. package/bin/live-hooks/useLiveState.js +1 -3
  15. package/bin/live-hooks/useLiveState.js.map +1 -1
  16. package/bin/live-hooks/useLiveTimer.d.ts.map +1 -1
  17. package/bin/live-hooks/useLiveTimer.js +4 -0
  18. package/bin/live-hooks/useLiveTimer.js.map +1 -1
  19. package/package.json +50 -50
  20. package/src/index.ts +6 -6
  21. package/src/interfaces/LiveInterfaceExtensions.ts +26 -26
  22. package/src/interfaces/index.ts +1 -1
  23. package/src/internal/errors.ts +57 -57
  24. package/src/internal/index.ts +2 -2
  25. package/src/internal/type-guards.ts +9 -9
  26. package/src/live-hooks/index.ts +7 -7
  27. package/src/live-hooks/useLiveCanvas.ts +191 -191
  28. package/src/live-hooks/useLiveEvent.ts +146 -140
  29. package/src/live-hooks/useLiveFollowMode.ts +315 -316
  30. package/src/live-hooks/useLivePresence.ts +146 -147
  31. package/src/live-hooks/useLiveState.ts +108 -110
  32. package/src/live-hooks/useLiveTimer.ts +217 -213
  33. package/src/live-hooks/useMediaSynchronizer.ts +295 -295
  34. package/src/providers/AzureProvider.tsx +261 -261
  35. package/src/providers/LiveShareProvider.tsx +210 -210
  36. package/src/providers/index.ts +2 -2
  37. package/src/shared-hooks/index.ts +4 -4
  38. package/src/shared-hooks/useDynamicDDS.ts +82 -82
  39. package/src/shared-hooks/useSharedMap.ts +159 -159
  40. package/src/shared-hooks/useSharedState.ts +96 -96
  41. package/src/shared-hooks/useSharedStateRegistry.ts +170 -170
  42. package/src/types/ActionTypes.ts +161 -161
  43. package/src/types/PropTypes.ts +10 -10
  44. package/src/types/ResultTypes.ts +332 -332
  45. package/src/types/index.ts +3 -3
  46. package/src/utils/index.ts +1 -1
  47. package/src/utils/type-check.ts +69 -69
  48. package/tsconfig.build.json +5 -5
  49. package/tsconfig.json +72 -72
  50. package/bin/internal/useSharedStateRegistry.d.ts +0 -31
  51. package/bin/internal/useSharedStateRegistry.d.ts.map +0 -1
  52. package/bin/internal/useSharedStateRegistry.js +0 -102
  53. package/bin/internal/useSharedStateRegistry.js.map +0 -1
@@ -1,10 +1,10 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the Microsoft Live Share SDK License.
4
- */
5
-
6
- export type SharedMapInitialData<T> =
7
- | Map<string, T>
8
- | readonly (readonly [string, T])[]
9
- | { [key: string]: T }
10
- | undefined;
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the Microsoft Live Share SDK License.
4
+ */
5
+
6
+ export type SharedMapInitialData<T> =
7
+ | Map<string, T>
8
+ | readonly (readonly [string, T])[]
9
+ | { [key: string]: T }
10
+ | undefined;