@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.
- package/LICENSE +64 -61
- package/README.md +175 -164
- package/bin/esm/index.d.ts +7 -0
- package/bin/esm/index.d.ts.map +1 -0
- package/bin/esm/index.js +7 -0
- package/bin/esm/index.js.map +1 -0
- package/bin/esm/interfaces/LiveInterfaceExtensions.d.ts.map +1 -0
- package/bin/esm/interfaces/LiveInterfaceExtensions.js.map +1 -0
- package/bin/esm/interfaces/index.d.ts +2 -0
- package/bin/esm/interfaces/index.d.ts.map +1 -0
- package/bin/esm/interfaces/index.js +2 -0
- package/bin/esm/interfaces/index.js.map +1 -0
- package/bin/esm/internal/errors.d.ts.map +1 -0
- package/bin/esm/internal/errors.js.map +1 -0
- package/bin/esm/internal/index.d.ts +3 -0
- package/bin/esm/internal/index.d.ts.map +1 -0
- package/bin/esm/internal/index.js +3 -0
- package/bin/esm/internal/index.js.map +1 -0
- package/bin/{internal → esm/internal}/type-guards.d.ts +1 -1
- package/bin/esm/internal/type-guards.d.ts.map +1 -0
- package/bin/esm/internal/type-guards.js.map +1 -0
- package/bin/esm/live-hooks/index.d.ts +8 -0
- package/bin/esm/live-hooks/index.d.ts.map +1 -0
- package/bin/esm/live-hooks/index.js +8 -0
- package/bin/esm/live-hooks/index.js.map +1 -0
- package/bin/esm/live-hooks/useLiveCanvas.d.ts +80 -0
- package/bin/esm/live-hooks/useLiveCanvas.d.ts.map +1 -0
- package/bin/esm/live-hooks/useLiveCanvas.js +237 -0
- package/bin/esm/live-hooks/useLiveCanvas.js.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveEvent.d.ts +37 -1
- package/bin/esm/live-hooks/useLiveEvent.d.ts.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveEvent.js +45 -18
- package/bin/esm/live-hooks/useLiveEvent.js.map +1 -0
- package/bin/esm/live-hooks/useLiveFollowMode.d.ts +163 -0
- package/bin/esm/live-hooks/useLiveFollowMode.d.ts.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveFollowMode.js +173 -39
- package/bin/esm/live-hooks/useLiveFollowMode.js.map +1 -0
- package/bin/esm/live-hooks/useLivePresence.d.ts +76 -0
- package/bin/esm/live-hooks/useLivePresence.d.ts.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLivePresence.js +74 -25
- package/bin/esm/live-hooks/useLivePresence.js.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveState.d.ts +46 -1
- package/bin/esm/live-hooks/useLiveState.d.ts.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveState.js +58 -18
- package/bin/esm/live-hooks/useLiveState.js.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveTimer.d.ts +56 -1
- package/bin/esm/live-hooks/useLiveTimer.d.ts.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useLiveTimer.js +80 -34
- package/bin/esm/live-hooks/useLiveTimer.js.map +1 -0
- package/bin/esm/live-hooks/useMediaSynchronizer.d.ts +86 -0
- package/bin/esm/live-hooks/useMediaSynchronizer.d.ts.map +1 -0
- package/bin/{live-hooks → esm/live-hooks}/useMediaSynchronizer.js +89 -37
- package/bin/esm/live-hooks/useMediaSynchronizer.js.map +1 -0
- package/bin/{providers → esm/providers}/AzureProvider.d.ts +9 -9
- package/bin/esm/providers/AzureProvider.d.ts.map +1 -0
- package/bin/{providers → esm/providers}/AzureProvider.js +28 -33
- package/bin/esm/providers/AzureProvider.js.map +1 -0
- package/bin/{providers → esm/providers}/LiveShareProvider.d.ts +106 -4
- package/bin/esm/providers/LiveShareProvider.d.ts.map +1 -0
- package/bin/esm/providers/LiveShareProvider.js +196 -0
- package/bin/esm/providers/LiveShareProvider.js.map +1 -0
- package/bin/esm/providers/index.d.ts +3 -0
- package/bin/esm/providers/index.d.ts.map +1 -0
- package/bin/esm/providers/index.js +3 -0
- package/bin/esm/providers/index.js.map +1 -0
- package/bin/esm/shared-hooks/index.d.ts +7 -0
- package/bin/esm/shared-hooks/index.d.ts.map +1 -0
- package/bin/esm/shared-hooks/index.js +7 -0
- package/bin/esm/shared-hooks/index.js.map +1 -0
- package/bin/esm/shared-hooks/internals/tree-node-constants.d.ts +3 -0
- package/bin/esm/shared-hooks/internals/tree-node-constants.d.ts.map +1 -0
- package/bin/esm/shared-hooks/internals/tree-node-constants.js +3 -0
- package/bin/esm/shared-hooks/internals/tree-node-constants.js.map +1 -0
- package/bin/esm/shared-hooks/internals/tree-node-types.d.ts +10 -0
- package/bin/esm/shared-hooks/internals/tree-node-types.d.ts.map +1 -0
- package/bin/esm/shared-hooks/internals/tree-node-types.js +18 -0
- package/bin/esm/shared-hooks/internals/tree-node-types.js.map +1 -0
- package/bin/esm/shared-hooks/internals/tree-node-utils.d.ts +33 -0
- package/bin/esm/shared-hooks/internals/tree-node-utils.d.ts.map +1 -0
- package/bin/esm/shared-hooks/internals/tree-node-utils.js +186 -0
- package/bin/esm/shared-hooks/internals/tree-node-utils.js.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useDynamicDDS.d.ts +4 -4
- package/bin/esm/shared-hooks/useDynamicDDS.d.ts.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useDynamicDDS.js +22 -22
- package/bin/esm/shared-hooks/useDynamicDDS.js.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useSharedMap.d.ts +4 -2
- package/bin/esm/shared-hooks/useSharedMap.d.ts.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useSharedMap.js +28 -14
- package/bin/esm/shared-hooks/useSharedMap.js.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useSharedState.d.ts +1 -1
- package/bin/esm/shared-hooks/useSharedState.d.ts.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useSharedState.js +2 -2
- package/bin/esm/shared-hooks/useSharedState.js.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useSharedStateRegistry.d.ts +1 -1
- package/bin/esm/shared-hooks/useSharedStateRegistry.d.ts.map +1 -0
- package/bin/{shared-hooks → esm/shared-hooks}/useSharedStateRegistry.js +35 -24
- package/bin/esm/shared-hooks/useSharedStateRegistry.js.map +1 -0
- package/bin/esm/shared-hooks/useSharedTree.d.ts +57 -0
- package/bin/esm/shared-hooks/useSharedTree.d.ts.map +1 -0
- package/bin/esm/shared-hooks/useSharedTree.js +117 -0
- package/bin/esm/shared-hooks/useSharedTree.js.map +1 -0
- package/bin/esm/shared-hooks/useTreeNode.d.ts +96 -0
- package/bin/esm/shared-hooks/useTreeNode.d.ts.map +1 -0
- package/bin/esm/shared-hooks/useTreeNode.js +132 -0
- package/bin/esm/shared-hooks/useTreeNode.js.map +1 -0
- package/bin/{types → esm/types}/ActionTypes.d.ts +7 -7
- package/bin/esm/types/ActionTypes.d.ts.map +1 -0
- package/bin/esm/types/ActionTypes.js.map +1 -0
- package/bin/esm/types/FluidMap.d.ts +151 -0
- package/bin/esm/types/FluidMap.d.ts.map +1 -0
- package/bin/esm/types/FluidMap.js +24 -0
- package/bin/esm/types/FluidMap.js.map +1 -0
- package/bin/esm/types/PropTypes.d.ts +56 -0
- package/bin/esm/types/PropTypes.d.ts.map +1 -0
- package/bin/esm/types/PropTypes.js.map +1 -0
- package/bin/{types → esm/types}/ResultTypes.d.ts +62 -18
- package/bin/esm/types/ResultTypes.d.ts.map +1 -0
- package/bin/esm/types/ResultTypes.js.map +1 -0
- package/bin/esm/types/index.d.ts +4 -0
- package/bin/esm/types/index.d.ts.map +1 -0
- package/bin/esm/types/index.js +4 -0
- package/bin/esm/types/index.js.map +1 -0
- package/bin/esm/utils/index.d.ts +2 -0
- package/bin/esm/utils/index.d.ts.map +1 -0
- package/bin/esm/utils/index.js +2 -0
- package/bin/esm/utils/index.js.map +1 -0
- package/bin/esm/utils/type-check.d.ts.map +1 -0
- package/bin/{utils → esm/utils}/type-check.js +1 -1
- package/bin/esm/utils/type-check.js.map +1 -0
- package/package.json +51 -47
- package/src/index.ts +6 -6
- package/src/interfaces/index.ts +1 -1
- package/src/internal/index.ts +2 -2
- package/src/internal/type-guards.ts +1 -1
- package/src/live-hooks/index.ts +7 -7
- package/src/live-hooks/useLiveCanvas.ts +154 -82
- package/src/live-hooks/useLiveEvent.ts +43 -7
- package/src/live-hooks/useLiveFollowMode.ts +149 -6
- package/src/live-hooks/useLivePresence.ts +80 -17
- package/src/live-hooks/useLiveState.ts +54 -6
- package/src/live-hooks/useLiveTimer.ts +59 -4
- package/src/live-hooks/useMediaSynchronizer.ts +71 -6
- package/src/providers/AzureProvider.tsx +21 -21
- package/src/providers/LiveShareProvider.tsx +115 -13
- package/src/providers/index.ts +2 -2
- package/src/shared-hooks/index.ts +6 -4
- package/src/shared-hooks/internals/tree-node-constants.ts +2 -0
- package/src/shared-hooks/internals/tree-node-types.ts +26 -0
- package/src/shared-hooks/internals/tree-node-utils.ts +269 -0
- package/src/shared-hooks/useDynamicDDS.ts +28 -17
- package/src/shared-hooks/useSharedMap.ts +42 -17
- package/src/shared-hooks/useSharedState.ts +6 -3
- package/src/shared-hooks/useSharedStateRegistry.ts +44 -22
- package/src/shared-hooks/useSharedTree.ts +144 -0
- package/src/shared-hooks/useTreeNode.ts +147 -0
- package/src/types/ActionTypes.ts +13 -9
- package/src/types/FluidMap.ts +169 -0
- package/src/types/PropTypes.ts +57 -0
- package/src/types/ResultTypes.ts +88 -17
- package/src/types/index.ts +3 -3
- package/src/utils/index.ts +1 -1
- package/tsconfig.json +64 -70
- package/.nycrc.json +0 -10
- package/bin/index.d.ts +0 -7
- package/bin/index.d.ts.map +0 -1
- package/bin/index.js +0 -7
- package/bin/index.js.map +0 -1
- package/bin/interfaces/LiveInterfaceExtensions.d.ts.map +0 -1
- package/bin/interfaces/LiveInterfaceExtensions.js.map +0 -1
- package/bin/interfaces/index.d.ts +0 -2
- package/bin/interfaces/index.d.ts.map +0 -1
- package/bin/interfaces/index.js +0 -2
- package/bin/interfaces/index.js.map +0 -1
- package/bin/internal/errors.d.ts.map +0 -1
- package/bin/internal/errors.js.map +0 -1
- package/bin/internal/index.d.ts +0 -3
- package/bin/internal/index.d.ts.map +0 -1
- package/bin/internal/index.js +0 -3
- package/bin/internal/index.js.map +0 -1
- package/bin/internal/type-guards.d.ts.map +0 -1
- package/bin/internal/type-guards.js.map +0 -1
- package/bin/live-hooks/index.d.ts +0 -8
- package/bin/live-hooks/index.d.ts.map +0 -1
- package/bin/live-hooks/index.js +0 -8
- package/bin/live-hooks/index.js.map +0 -1
- package/bin/live-hooks/useLiveCanvas.d.ts +0 -29
- package/bin/live-hooks/useLiveCanvas.d.ts.map +0 -1
- package/bin/live-hooks/useLiveCanvas.js +0 -160
- package/bin/live-hooks/useLiveCanvas.js.map +0 -1
- package/bin/live-hooks/useLiveEvent.d.ts.map +0 -1
- package/bin/live-hooks/useLiveEvent.js.map +0 -1
- package/bin/live-hooks/useLiveFollowMode.d.ts +0 -24
- package/bin/live-hooks/useLiveFollowMode.d.ts.map +0 -1
- package/bin/live-hooks/useLiveFollowMode.js.map +0 -1
- package/bin/live-hooks/useLivePresence.d.ts +0 -26
- package/bin/live-hooks/useLivePresence.d.ts.map +0 -1
- package/bin/live-hooks/useLivePresence.js.map +0 -1
- package/bin/live-hooks/useLiveState.d.ts.map +0 -1
- package/bin/live-hooks/useLiveState.js.map +0 -1
- package/bin/live-hooks/useLiveTimer.d.ts.map +0 -1
- package/bin/live-hooks/useLiveTimer.js.map +0 -1
- package/bin/live-hooks/useMediaSynchronizer.d.ts +0 -25
- package/bin/live-hooks/useMediaSynchronizer.d.ts.map +0 -1
- package/bin/live-hooks/useMediaSynchronizer.js.map +0 -1
- package/bin/providers/AzureProvider.d.ts.map +0 -1
- package/bin/providers/AzureProvider.js.map +0 -1
- package/bin/providers/LiveShareProvider.d.ts.map +0 -1
- package/bin/providers/LiveShareProvider.js +0 -95
- package/bin/providers/LiveShareProvider.js.map +0 -1
- package/bin/providers/index.d.ts +0 -3
- package/bin/providers/index.d.ts.map +0 -1
- package/bin/providers/index.js +0 -3
- package/bin/providers/index.js.map +0 -1
- package/bin/shared-hooks/index.d.ts +0 -5
- package/bin/shared-hooks/index.d.ts.map +0 -1
- package/bin/shared-hooks/index.js +0 -5
- package/bin/shared-hooks/index.js.map +0 -1
- package/bin/shared-hooks/useDynamicDDS.d.ts.map +0 -1
- package/bin/shared-hooks/useDynamicDDS.js.map +0 -1
- package/bin/shared-hooks/useSharedMap.d.ts.map +0 -1
- package/bin/shared-hooks/useSharedMap.js.map +0 -1
- package/bin/shared-hooks/useSharedState.d.ts.map +0 -1
- package/bin/shared-hooks/useSharedState.js.map +0 -1
- package/bin/shared-hooks/useSharedStateRegistry.d.ts.map +0 -1
- package/bin/shared-hooks/useSharedStateRegistry.js.map +0 -1
- package/bin/types/ActionTypes.d.ts.map +0 -1
- package/bin/types/ActionTypes.js.map +0 -1
- package/bin/types/PropTypes.d.ts +0 -8
- package/bin/types/PropTypes.d.ts.map +0 -1
- package/bin/types/PropTypes.js.map +0 -1
- package/bin/types/ResultTypes.d.ts.map +0 -1
- package/bin/types/ResultTypes.js.map +0 -1
- package/bin/types/index.d.ts +0 -4
- package/bin/types/index.d.ts.map +0 -1
- package/bin/types/index.js +0 -4
- package/bin/types/index.js.map +0 -1
- package/bin/utils/index.d.ts +0 -2
- package/bin/utils/index.d.ts.map +0 -1
- package/bin/utils/index.js +0 -2
- package/bin/utils/index.js.map +0 -1
- package/bin/utils/type-check.d.ts.map +0 -1
- package/bin/utils/type-check.js.map +0 -1
- package/tsconfig.build.json +0 -6
- /package/bin/{interfaces → esm/interfaces}/LiveInterfaceExtensions.d.ts +0 -0
- /package/bin/{interfaces → esm/interfaces}/LiveInterfaceExtensions.js +0 -0
- /package/bin/{internal → esm/internal}/errors.d.ts +0 -0
- /package/bin/{internal → esm/internal}/errors.js +0 -0
- /package/bin/{internal → esm/internal}/type-guards.js +0 -0
- /package/bin/{types → esm/types}/ActionTypes.js +0 -0
- /package/bin/{types → esm/types}/PropTypes.js +0 -0
- /package/bin/{types → esm/types}/ResultTypes.js +0 -0
- /package/bin/{utils → esm/utils}/type-check.d.ts +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
* furnished to do so, subject to the following conditions:
|
|
11
|
+
*
|
|
12
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
* copies or substantial portions of the Software.
|
|
14
|
+
*
|
|
15
|
+
* THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
* SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
// Copied from https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/src/fluidMap.ts
|
|
25
|
+
// Fluid 2.x does not export these types. Keep this copy out of the package barrel.
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Like TypeScript's built-in `Iterable` type.
|
|
29
|
+
*
|
|
30
|
+
* @privateRemarks
|
|
31
|
+
* This exists to be unaffected by TypeScript's version and configuration options.
|
|
32
|
+
*
|
|
33
|
+
* @sealed @public
|
|
34
|
+
*/
|
|
35
|
+
export interface FluidIterable<T> {
|
|
36
|
+
/**
|
|
37
|
+
* Returns an iterator over the elements in this iterable.
|
|
38
|
+
*
|
|
39
|
+
* @remarks Works like the built-in {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator | \[Symbol.iterator\]} protocol.
|
|
40
|
+
*/
|
|
41
|
+
[Symbol.iterator](): FluidIterableIterator<T>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Like TypeScript's built-in iterable iterator type.
|
|
46
|
+
*
|
|
47
|
+
* @privateRemarks
|
|
48
|
+
* The done branch uses `any` rather than `undefined` to match TypeScript's built-in IteratorReturnResult, which defaults to any for the same reason.
|
|
49
|
+
* Using `undefined` causes TypeScript to include it in type inference at call sites like `Array.from` which would infer `T | undefined` instead of `T`.
|
|
50
|
+
* The done value is rarely meaningful to callers since values are mainly consumed when done is false.
|
|
51
|
+
* Thus `any` is not particularly harmful here, and the unsafety is worth it as
|
|
52
|
+
* it interacts better with the existing TypeScript `IteratorResult` interfaces where `TReturn` defaults to any.
|
|
53
|
+
*
|
|
54
|
+
* @sealed @public
|
|
55
|
+
*/
|
|
56
|
+
export interface FluidIterableIterator<T> extends FluidIterable<T> {
|
|
57
|
+
/**
|
|
58
|
+
* Returns the next element in the iteration sequence.
|
|
59
|
+
*
|
|
60
|
+
* @remarks Works like the built-in {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterator_protocol | Iterator.next} method.
|
|
61
|
+
* When there are remaining elements, returns `\{ value: T; done?: false \}`.
|
|
62
|
+
* When the iteration is complete, returns `\{ value: any; done: true \}`.
|
|
63
|
+
*/
|
|
64
|
+
next(): { value: T; done?: false } | { value: any; done: true };
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Like TypeScript's built in `ReadonlyMap` type.
|
|
69
|
+
* Unlike the built in `ReadonlyMap`, this interface includes Symbol.toStringTag.
|
|
70
|
+
*
|
|
71
|
+
* @privateRemarks
|
|
72
|
+
* This exists so that Fluid has a `ReadonlyMap` type which is unaffected by TypeScript's version and configuration options,
|
|
73
|
+
* and safe to implement without being broken by changes to TypeScript's default ReadonlyMap type.
|
|
74
|
+
* All behavior exposed through this interface should be compatible with the corresponding behavior of built in ReadonlyMaps,
|
|
75
|
+
* but it may lack some of the newer APIs,
|
|
76
|
+
* and might express the type slightly different from how TypeScript does in its `ReadonlyMap` type.
|
|
77
|
+
*
|
|
78
|
+
* @sealed @public
|
|
79
|
+
*/
|
|
80
|
+
export interface FluidReadonlyMap<K, V> {
|
|
81
|
+
/**
|
|
82
|
+
* Returns an iterable of entries in the map.
|
|
83
|
+
*/
|
|
84
|
+
[Symbol.iterator](): FluidIterableIterator<[K, V]>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The number of entries in the map.
|
|
88
|
+
*/
|
|
89
|
+
readonly size: number;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Returns an iterable of key, value pairs for every entry in the map.
|
|
93
|
+
*/
|
|
94
|
+
entries(): FluidIterableIterator<[K, V]>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Executes the provided function once per each key/value pair in the map.
|
|
98
|
+
*/
|
|
99
|
+
forEach(
|
|
100
|
+
callbackfn: (value: V, key: K, map: FluidReadonlyMap<K, V>) => void,
|
|
101
|
+
// Typing inherited from ReadonlyMap.
|
|
102
|
+
thisArg?: any
|
|
103
|
+
): void;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Returns the value associated to the specified key, or undefined if there is none.
|
|
107
|
+
*/
|
|
108
|
+
get(key: K): V | undefined;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Returns a boolean indicating whether an element with the specified key exists or not.
|
|
112
|
+
*/
|
|
113
|
+
has(key: K): boolean;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Returns an iterable of keys in the map.
|
|
117
|
+
*/
|
|
118
|
+
keys(): FluidIterableIterator<K>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns an iterable of values in the map.
|
|
122
|
+
*/
|
|
123
|
+
values(): FluidIterableIterator<V>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag | Symbol.toStringTag}
|
|
127
|
+
*/
|
|
128
|
+
readonly [Symbol.toStringTag]: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Like TypeScript's built in `Map` type.
|
|
133
|
+
*
|
|
134
|
+
* @privateRemarks
|
|
135
|
+
* This exists so that Fluid has a `Map` type which is unaffected by TypeScript's version and configuration options,
|
|
136
|
+
* and safe to implement without being broken by changes to TypeScript's default Map type.
|
|
137
|
+
* All behavior exposed through this interface should be compatible with the corresponding behavior of JavaScript Maps,
|
|
138
|
+
* but it may lack some of the newer APIs,
|
|
139
|
+
* and might express the type slightly different from how TypeScript does in its `Map` type.
|
|
140
|
+
*
|
|
141
|
+
* @sealed @public
|
|
142
|
+
*/
|
|
143
|
+
export interface FluidMap<K, V> extends FluidReadonlyMap<K, V> {
|
|
144
|
+
/**
|
|
145
|
+
* Removes the specified element from the map by its key.
|
|
146
|
+
*
|
|
147
|
+
* @remarks
|
|
148
|
+
* Unlike the built-in `Map.delete`, this returns `void` instead of a boolean.
|
|
149
|
+
* This is intentional: in a distributed system, the caller often cannot reliably know
|
|
150
|
+
* whether the element existed at the time of deletion.
|
|
151
|
+
* Subtypes may override this to return a boolean if appropriate.
|
|
152
|
+
*/
|
|
153
|
+
delete(key: K): void;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Executes the provided function once per each key/value pair in the map.
|
|
157
|
+
*/
|
|
158
|
+
forEach(
|
|
159
|
+
callbackfn: (value: V, key: K, map: FluidMap<K, V>) => void,
|
|
160
|
+
// Typing inherited from Map.
|
|
161
|
+
thisArg?: any
|
|
162
|
+
): void;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Adds a new element with a specified key and value to the map.
|
|
166
|
+
* If an element with the same key already exists, the element will be updated.
|
|
167
|
+
*/
|
|
168
|
+
set(key: K, value: V): void;
|
|
169
|
+
}
|
package/src/types/PropTypes.ts
CHANGED
|
@@ -3,8 +3,65 @@
|
|
|
3
3
|
* Licensed under the Microsoft Live Share SDK License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { UserMeetingRole } from "@microsoft/live-share";
|
|
7
|
+
import {
|
|
8
|
+
CanvasReferencePoint,
|
|
9
|
+
IBrush,
|
|
10
|
+
IPoint,
|
|
11
|
+
InkingTool,
|
|
12
|
+
LiveCanvasTreeNode,
|
|
13
|
+
} from "@microsoft/live-share-canvas";
|
|
14
|
+
import { useLiveCanvas } from "../live-hooks/index.js";
|
|
15
|
+
|
|
6
16
|
export type SharedMapInitialData<T> =
|
|
7
17
|
| Map<string, T>
|
|
8
18
|
| readonly (readonly [string, T])[]
|
|
9
19
|
| { [key: string]: T }
|
|
10
20
|
| undefined;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Optional props for {@link useLiveCanvas}
|
|
24
|
+
*/
|
|
25
|
+
export interface IUseLiveCanvasOptionalProps {
|
|
26
|
+
/**
|
|
27
|
+
* Optional. Stateful boolean that will activate/de-activate `InkingManager` accordingly.
|
|
28
|
+
*/
|
|
29
|
+
active?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Optional. Stateful enum for what tool to use in the `InkingManager`.
|
|
32
|
+
*/
|
|
33
|
+
tool?: InkingTool;
|
|
34
|
+
/**
|
|
35
|
+
* Optional. Stateful lineBrush object for the selected lineBrush options to use in `InkingManager`.
|
|
36
|
+
*/
|
|
37
|
+
lineBrush?: IBrush;
|
|
38
|
+
/**
|
|
39
|
+
* Optional. Stateful offset point to use in the `InkingManager`. Gets the viewport offset. Defaults to 0,0.
|
|
40
|
+
*/
|
|
41
|
+
offset?: IPoint;
|
|
42
|
+
/**
|
|
43
|
+
* Optional. Stateful scale number to use in the `InkingManager`. Defaults to 1 and must be greater than 0.
|
|
44
|
+
*/
|
|
45
|
+
scale?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Optional. Stateful reference point enum to use in the `InkingManger`. Defaults to "center".
|
|
48
|
+
*/
|
|
49
|
+
referencePoint?: CanvasReferencePoint;
|
|
50
|
+
/**
|
|
51
|
+
* Optional. Stateful boolean flag for whether cursor should be shared in `LiveCanvas`. Defaults to false.
|
|
52
|
+
*/
|
|
53
|
+
isCursorShared?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Optional. url string for the local user to display alongside their cursor. Defaults to undefined.
|
|
56
|
+
*/
|
|
57
|
+
localUserPictureUrl?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Optional. A Fluid `LiveCanvasTree` `TreeNode` instance to swap out the underlying storage solution for strokes.
|
|
60
|
+
* To learn more, look at Fluid's [SharedTree](https://fluidframework.com/docs/data-structures/tree/) documentation.
|
|
61
|
+
*/
|
|
62
|
+
node?: LiveCanvasTreeNode;
|
|
63
|
+
/**
|
|
64
|
+
* Optional. The user roles that are allowed to start/stop/pause the timer.
|
|
65
|
+
*/
|
|
66
|
+
allowedRoles?: UserMeetingRole[];
|
|
67
|
+
}
|
package/src/types/ResultTypes.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
IFollowModeState,
|
|
14
14
|
FollowModePresenceUser,
|
|
15
15
|
LiveFollowMode,
|
|
16
|
+
LivePresenceData,
|
|
16
17
|
} from "@microsoft/live-share";
|
|
17
18
|
import { InkingManager, LiveCanvas } from "@microsoft/live-share-canvas";
|
|
18
19
|
import {
|
|
@@ -20,15 +21,36 @@ import {
|
|
|
20
21
|
ExtendedMediaMetadata,
|
|
21
22
|
MediaPlayerSynchronizer,
|
|
22
23
|
} from "@microsoft/live-share-media";
|
|
23
|
-
import {
|
|
24
|
-
|
|
24
|
+
import {
|
|
25
|
+
IFluidContainer,
|
|
26
|
+
ITree,
|
|
27
|
+
ImplicitFieldSchema,
|
|
28
|
+
TreeFieldFromImplicitField,
|
|
29
|
+
TreeView,
|
|
30
|
+
} from "fluid-framework";
|
|
31
|
+
import { SharedMap } from "fluid-framework/legacy";
|
|
32
|
+
import {
|
|
33
|
+
useSharedMap,
|
|
34
|
+
useTreeNode,
|
|
35
|
+
useSharedTree,
|
|
36
|
+
} from "../shared-hooks/index.js";
|
|
37
|
+
import {
|
|
38
|
+
useLiveEvent,
|
|
39
|
+
useLivePresence,
|
|
40
|
+
useMediaSynchronizer,
|
|
41
|
+
useLiveTimer,
|
|
42
|
+
useLiveCanvas,
|
|
43
|
+
useLiveFollowMode,
|
|
44
|
+
} from "../live-hooks/index.js";
|
|
45
|
+
import { IReceiveLiveEvent } from "../interfaces/index.js";
|
|
25
46
|
import {
|
|
26
47
|
OnPauseTimerAction,
|
|
27
48
|
OnPlayTimerAction,
|
|
28
49
|
OnStartTimerAction,
|
|
29
50
|
OnUpdateLivePresenceAction,
|
|
30
51
|
SendLiveEventAction,
|
|
31
|
-
} from "./ActionTypes";
|
|
52
|
+
} from "./ActionTypes.js";
|
|
53
|
+
import type { FluidMap } from "./FluidMap.js";
|
|
32
54
|
|
|
33
55
|
export interface IAzureContainerResults {
|
|
34
56
|
/**
|
|
@@ -49,13 +71,35 @@ export interface ILiveShareContainerResults extends IAzureContainerResults {
|
|
|
49
71
|
}
|
|
50
72
|
|
|
51
73
|
/**
|
|
52
|
-
*
|
|
74
|
+
* A value-typed SharedMap compatible with Fluid 2.x and 3.x.
|
|
75
|
+
* Uses SharedMap's mutators without changing FluidMap's forEach callback type.
|
|
76
|
+
*/
|
|
77
|
+
export type TypedSharedMap<TData> = Omit<
|
|
78
|
+
FluidMap<string, TData>,
|
|
79
|
+
"delete" | "set"
|
|
80
|
+
> &
|
|
81
|
+
SharedMap;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated use {@link useSharedTree} instead.
|
|
85
|
+
*
|
|
86
|
+
* Return type of {@link useSharedMap} hook.
|
|
53
87
|
*/
|
|
54
88
|
export interface IUseSharedMapResults<TData> {
|
|
55
89
|
/**
|
|
56
|
-
*
|
|
90
|
+
* The Fluid `SharedMap` object.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* Uses a local FluidMap type for value-typed get, forEach, values, and entries across Fluid 2.x and 3.x,
|
|
94
|
+
* while preserving ISharedMap's boolean delete result and chainable set method.
|
|
95
|
+
* Fluid 3.x maps are not assignable to the built-in Map type; use new Map(sharedMap)
|
|
96
|
+
* when a built-in Map is required.
|
|
97
|
+
*/
|
|
98
|
+
sharedMap: TypedSharedMap<TData> | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Callback method to get entries in the `SharedMap`.
|
|
57
101
|
*/
|
|
58
|
-
|
|
102
|
+
getEntry: (key: string) => TData | undefined;
|
|
59
103
|
/**
|
|
60
104
|
* Callback method to set/replace new entries in the `SharedMap`.
|
|
61
105
|
*/
|
|
@@ -64,14 +108,38 @@ export interface IUseSharedMapResults<TData> {
|
|
|
64
108
|
* Callback method to delete an existing entry in the `SharedMap`.
|
|
65
109
|
*/
|
|
66
110
|
deleteEntry: (key: string) => void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Return type of {@link useSharedTree} hook.
|
|
115
|
+
*/
|
|
116
|
+
export interface IUseSharedTreeResults<TSchema extends ImplicitFieldSchema> {
|
|
117
|
+
/**
|
|
118
|
+
* The Fluid `TreeView`.
|
|
119
|
+
*/
|
|
120
|
+
treeView: TreeView<TSchema> | undefined;
|
|
67
121
|
/**
|
|
68
|
-
* The Fluid `
|
|
122
|
+
* The Fluid `SharedTree` object, should you want to use it directly.
|
|
69
123
|
*/
|
|
70
|
-
|
|
124
|
+
sharedTree: ITree | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Root node
|
|
127
|
+
*/
|
|
128
|
+
root: TreeFieldFromImplicitField<TSchema> | undefined;
|
|
71
129
|
}
|
|
72
130
|
|
|
73
131
|
/**
|
|
74
|
-
* Return type of
|
|
132
|
+
* Return type of {@link useTreeNode} hook.
|
|
133
|
+
*/
|
|
134
|
+
export interface IUseTreeNodeResults<TNode = any> {
|
|
135
|
+
/**
|
|
136
|
+
* The Fluid `TreeNode`
|
|
137
|
+
*/
|
|
138
|
+
node: TNode;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Return type of {@link useLiveEvent} hook.
|
|
75
143
|
*/
|
|
76
144
|
export interface IUseLiveEventResults<TEvent = any> {
|
|
77
145
|
/**
|
|
@@ -95,7 +163,7 @@ export interface IUseLiveEventResults<TEvent = any> {
|
|
|
95
163
|
}
|
|
96
164
|
|
|
97
165
|
/**
|
|
98
|
-
* Return type of
|
|
166
|
+
* Return type of {@link useLiveTimer} hook.
|
|
99
167
|
*/
|
|
100
168
|
export interface IUseLiveTimerResults {
|
|
101
169
|
/**
|
|
@@ -129,9 +197,9 @@ export interface IUseLiveTimerResults {
|
|
|
129
197
|
}
|
|
130
198
|
|
|
131
199
|
/**
|
|
132
|
-
* Return type of
|
|
200
|
+
* Return type of {@link useLivePresence} hook.
|
|
133
201
|
*/
|
|
134
|
-
export interface IUseLivePresenceResults<TData extends
|
|
202
|
+
export interface IUseLivePresenceResults<TData extends LivePresenceData = any> {
|
|
135
203
|
/**
|
|
136
204
|
* The local user's presence object.
|
|
137
205
|
*/
|
|
@@ -140,6 +208,10 @@ export interface IUseLivePresenceResults<TData extends object = object> {
|
|
|
140
208
|
* List of non-local user's presence objects.
|
|
141
209
|
*/
|
|
142
210
|
otherUsers: LivePresenceUser<TData>[];
|
|
211
|
+
/**
|
|
212
|
+
* List of all online users.
|
|
213
|
+
*/
|
|
214
|
+
onlineUsers: LivePresenceUser<TData>[];
|
|
143
215
|
/**
|
|
144
216
|
* List of all user's presence objects.
|
|
145
217
|
*/
|
|
@@ -150,15 +222,14 @@ export interface IUseLivePresenceResults<TData extends object = object> {
|
|
|
150
222
|
livePresence: LivePresence<TData> | undefined;
|
|
151
223
|
/**
|
|
152
224
|
* Callback method to update the local user's presence.
|
|
153
|
-
* @param data
|
|
154
|
-
* @param state Optional. PresenceState to set for user.
|
|
225
|
+
* @param data TData to set for user.
|
|
155
226
|
* @returns void promise that will throw when user does not have required roles
|
|
156
227
|
*/
|
|
157
228
|
updatePresence: OnUpdateLivePresenceAction<TData>;
|
|
158
229
|
}
|
|
159
230
|
|
|
160
231
|
/**
|
|
161
|
-
* Return type of
|
|
232
|
+
* Return type of {@link useMediaSynchronizer} hook.
|
|
162
233
|
*/
|
|
163
234
|
export interface IUseMediaSynchronizerResults {
|
|
164
235
|
/**
|
|
@@ -208,7 +279,7 @@ export interface IUseMediaSynchronizerResults {
|
|
|
208
279
|
}
|
|
209
280
|
|
|
210
281
|
/**
|
|
211
|
-
* Return type of
|
|
282
|
+
* Return type of {@link useLiveCanvas} hook.
|
|
212
283
|
*/
|
|
213
284
|
export interface IUseLiveCanvasResults {
|
|
214
285
|
/**
|
|
@@ -222,7 +293,7 @@ export interface IUseLiveCanvasResults {
|
|
|
222
293
|
}
|
|
223
294
|
|
|
224
295
|
/**
|
|
225
|
-
* Return type of
|
|
296
|
+
* Return type of {@link useLiveFollowMode} hook.
|
|
226
297
|
*/
|
|
227
298
|
export interface IUseLiveFollowModeResults<TData = any> {
|
|
228
299
|
/**
|
package/src/types/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./ActionTypes";
|
|
2
|
-
export * from "./ResultTypes";
|
|
3
|
-
export * from "./PropTypes";
|
|
1
|
+
export * from "./ActionTypes.js";
|
|
2
|
+
export * from "./ResultTypes.js";
|
|
3
|
+
export * from "./PropTypes.js";
|
package/src/utils/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./type-check";
|
|
1
|
+
export * from "./type-check.js";
|
package/tsconfig.json
CHANGED
|
@@ -1,72 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
67
|
-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"src/index.ts"
|
|
71
|
-
]
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
+
/* Basic Options */
|
|
5
|
+
// "incremental": true, /* Enable incremental compilation */
|
|
6
|
+
"target": "ES2022" /* Specify ECMAScript target version. */,
|
|
7
|
+
"module": "Node16" /* Specify module code generation. */,
|
|
8
|
+
"lib": [
|
|
9
|
+
"ES2022",
|
|
10
|
+
"DOM"
|
|
11
|
+
] /* Specify library files to be included in the compilation. */,
|
|
12
|
+
"allowJs": false /* Allow javascript files to be compiled. */,
|
|
13
|
+
// "checkJs": true, /* Report errors in .js files. */
|
|
14
|
+
"jsx": "react-jsx" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
|
|
15
|
+
"declaration": true /* Generates corresponding '.d.ts' file. */,
|
|
16
|
+
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
|
|
17
|
+
"sourceMap": true /* Generates corresponding '.map' file. */,
|
|
18
|
+
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
19
|
+
"outDir": "./bin/esm" /* Redirect output structure to the directory. */,
|
|
20
|
+
// "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
21
|
+
// "composite": true, /* Enable project compilation */
|
|
22
|
+
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
23
|
+
// "removeComments": true, /* Do not emit comments to output. */
|
|
24
|
+
// "noEmit": true, /* Do not emit outputs. */
|
|
25
|
+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
26
|
+
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
27
|
+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
28
|
+
/* Strict Type-Checking Options */
|
|
29
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
30
|
+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
31
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
32
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
33
|
+
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
34
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
35
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
36
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
37
|
+
/* Additional Checks */
|
|
38
|
+
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
39
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
40
|
+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
41
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
42
|
+
/* Module Resolution Options */
|
|
43
|
+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
44
|
+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
45
|
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
46
|
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
47
|
+
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
48
|
+
// "types": [], /* Type declaration files to be included in compilation. */
|
|
49
|
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
50
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
51
|
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
52
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
53
|
+
/* Source Map Options */
|
|
54
|
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
55
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
56
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
57
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
58
|
+
/* Experimental Options */
|
|
59
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
60
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
61
|
+
/* Advanced Options */
|
|
62
|
+
"skipLibCheck": true /* Skip type checking of declaration files. */,
|
|
63
|
+
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
64
|
+
},
|
|
65
|
+
"files": ["src/index.ts"]
|
|
72
66
|
}
|
package/.nycrc.json
DELETED
package/bin/index.d.ts
DELETED
package/bin/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
package/bin/index.js
DELETED
package/bin/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiveInterfaceExtensions.d.ts","sourceRoot":"","sources":["../../src/interfaces/LiveInterfaceExtensions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,MAAM,GAAG,GAAG;IAC3C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiveInterfaceExtensions.js","sourceRoot":"","sources":["../../src/interfaces/LiveInterfaceExtensions.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|