@microsoft/live-share-react 2.0.0-internal.12 → 2.0.0-internal.14

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 (113) hide show
  1. package/package.json +9 -9
  2. package/bin/index.d.ts +0 -7
  3. package/bin/index.d.ts.map +0 -1
  4. package/bin/index.js +0 -7
  5. package/bin/index.js.map +0 -1
  6. package/bin/interfaces/LiveInterfaceExtensions.d.ts +0 -26
  7. package/bin/interfaces/LiveInterfaceExtensions.d.ts.map +0 -1
  8. package/bin/interfaces/LiveInterfaceExtensions.js +0 -6
  9. package/bin/interfaces/LiveInterfaceExtensions.js.map +0 -1
  10. package/bin/interfaces/index.d.ts +0 -2
  11. package/bin/interfaces/index.d.ts.map +0 -1
  12. package/bin/interfaces/index.js +0 -2
  13. package/bin/interfaces/index.js.map +0 -1
  14. package/bin/internal/errors.d.ts +0 -41
  15. package/bin/internal/errors.d.ts.map +0 -1
  16. package/bin/internal/errors.js +0 -42
  17. package/bin/internal/errors.js.map +0 -1
  18. package/bin/internal/index.d.ts +0 -3
  19. package/bin/internal/index.d.ts.map +0 -1
  20. package/bin/internal/index.js +0 -3
  21. package/bin/internal/index.js.map +0 -1
  22. package/bin/internal/type-guards.d.ts +0 -11
  23. package/bin/internal/type-guards.d.ts.map +0 -1
  24. package/bin/internal/type-guards.js +0 -20
  25. package/bin/internal/type-guards.js.map +0 -1
  26. package/bin/live-hooks/index.d.ts +0 -8
  27. package/bin/live-hooks/index.d.ts.map +0 -1
  28. package/bin/live-hooks/index.js +0 -8
  29. package/bin/live-hooks/index.js.map +0 -1
  30. package/bin/live-hooks/useLiveCanvas.d.ts +0 -29
  31. package/bin/live-hooks/useLiveCanvas.d.ts.map +0 -1
  32. package/bin/live-hooks/useLiveCanvas.js +0 -160
  33. package/bin/live-hooks/useLiveCanvas.js.map +0 -1
  34. package/bin/live-hooks/useLiveEvent.d.ts +0 -23
  35. package/bin/live-hooks/useLiveEvent.d.ts.map +0 -1
  36. package/bin/live-hooks/useLiveEvent.js +0 -108
  37. package/bin/live-hooks/useLiveEvent.js.map +0 -1
  38. package/bin/live-hooks/useLiveFollowMode.d.ts +0 -24
  39. package/bin/live-hooks/useLiveFollowMode.d.ts.map +0 -1
  40. package/bin/live-hooks/useLiveFollowMode.js +0 -211
  41. package/bin/live-hooks/useLiveFollowMode.js.map +0 -1
  42. package/bin/live-hooks/useLivePresence.d.ts +0 -26
  43. package/bin/live-hooks/useLivePresence.d.ts.map +0 -1
  44. package/bin/live-hooks/useLivePresence.js +0 -106
  45. package/bin/live-hooks/useLivePresence.js.map +0 -1
  46. package/bin/live-hooks/useLiveState.d.ts +0 -21
  47. package/bin/live-hooks/useLiveState.d.ts.map +0 -1
  48. package/bin/live-hooks/useLiveState.js +0 -83
  49. package/bin/live-hooks/useLiveState.js.map +0 -1
  50. package/bin/live-hooks/useLiveTimer.d.ts +0 -25
  51. package/bin/live-hooks/useLiveTimer.d.ts.map +0 -1
  52. package/bin/live-hooks/useLiveTimer.js +0 -172
  53. package/bin/live-hooks/useLiveTimer.js.map +0 -1
  54. package/bin/live-hooks/useMediaSynchronizer.d.ts +0 -25
  55. package/bin/live-hooks/useMediaSynchronizer.d.ts.map +0 -1
  56. package/bin/live-hooks/useMediaSynchronizer.js +0 -234
  57. package/bin/live-hooks/useMediaSynchronizer.js.map +0 -1
  58. package/bin/providers/AzureProvider.d.ts +0 -113
  59. package/bin/providers/AzureProvider.d.ts.map +0 -1
  60. package/bin/providers/AzureProvider.js +0 -119
  61. package/bin/providers/AzureProvider.js.map +0 -1
  62. package/bin/providers/LiveShareProvider.d.ts +0 -91
  63. package/bin/providers/LiveShareProvider.d.ts.map +0 -1
  64. package/bin/providers/LiveShareProvider.js +0 -95
  65. package/bin/providers/LiveShareProvider.js.map +0 -1
  66. package/bin/providers/index.d.ts +0 -3
  67. package/bin/providers/index.d.ts.map +0 -1
  68. package/bin/providers/index.js +0 -3
  69. package/bin/providers/index.js.map +0 -1
  70. package/bin/shared-hooks/index.d.ts +0 -5
  71. package/bin/shared-hooks/index.d.ts.map +0 -1
  72. package/bin/shared-hooks/index.js +0 -5
  73. package/bin/shared-hooks/index.js.map +0 -1
  74. package/bin/shared-hooks/useDynamicDDS.d.ts +0 -23
  75. package/bin/shared-hooks/useDynamicDDS.d.ts.map +0 -1
  76. package/bin/shared-hooks/useDynamicDDS.js +0 -72
  77. package/bin/shared-hooks/useDynamicDDS.js.map +0 -1
  78. package/bin/shared-hooks/useSharedMap.d.ts +0 -23
  79. package/bin/shared-hooks/useSharedMap.d.ts.map +0 -1
  80. package/bin/shared-hooks/useSharedMap.js +0 -114
  81. package/bin/shared-hooks/useSharedMap.js.map +0 -1
  82. package/bin/shared-hooks/useSharedState.d.ts +0 -22
  83. package/bin/shared-hooks/useSharedState.d.ts.map +0 -1
  84. package/bin/shared-hooks/useSharedState.js +0 -74
  85. package/bin/shared-hooks/useSharedState.js.map +0 -1
  86. package/bin/shared-hooks/useSharedStateRegistry.d.ts +0 -37
  87. package/bin/shared-hooks/useSharedStateRegistry.d.ts.map +0 -1
  88. package/bin/shared-hooks/useSharedStateRegistry.js +0 -105
  89. package/bin/shared-hooks/useSharedStateRegistry.js.map +0 -1
  90. package/bin/types/ActionTypes.d.ts +0 -112
  91. package/bin/types/ActionTypes.d.ts.map +0 -1
  92. package/bin/types/ActionTypes.js +0 -6
  93. package/bin/types/ActionTypes.js.map +0 -1
  94. package/bin/types/PropTypes.d.ts +0 -8
  95. package/bin/types/PropTypes.d.ts.map +0 -1
  96. package/bin/types/PropTypes.js +0 -6
  97. package/bin/types/PropTypes.js.map +0 -1
  98. package/bin/types/ResultTypes.d.ts +0 -302
  99. package/bin/types/ResultTypes.d.ts.map +0 -1
  100. package/bin/types/ResultTypes.js +0 -6
  101. package/bin/types/ResultTypes.js.map +0 -1
  102. package/bin/types/index.d.ts +0 -4
  103. package/bin/types/index.d.ts.map +0 -1
  104. package/bin/types/index.js +0 -4
  105. package/bin/types/index.js.map +0 -1
  106. package/bin/utils/index.d.ts +0 -2
  107. package/bin/utils/index.d.ts.map +0 -1
  108. package/bin/utils/index.js +0 -2
  109. package/bin/utils/index.js.map +0 -1
  110. package/bin/utils/type-check.d.ts +0 -15
  111. package/bin/utils/type-check.d.ts.map +0 -1
  112. package/bin/utils/type-check.js +0 -54
  113. package/bin/utils/type-check.js.map +0 -1
@@ -1,302 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the Microsoft Live Share SDK License.
4
- */
5
- import { AzureContainerServices } from "@fluidframework/azure-client";
6
- import { ITimerConfig, LivePresenceUser, LiveEvent, LivePresence, LiveTimer, IFollowModeState, FollowModePresenceUser, LiveFollowMode } from "@microsoft/live-share";
7
- import { InkingManager, LiveCanvas } from "@microsoft/live-share-canvas";
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";
12
- export interface IAzureContainerResults {
13
- /**
14
- * Fluid Container.
15
- */
16
- container: IFluidContainer;
17
- /**
18
- * Azure container services which has information such as current socket connections.
19
- */
20
- services: AzureContainerServices;
21
- }
22
- export interface ILiveShareContainerResults extends IAzureContainerResults {
23
- /**
24
- * Whether the local user/client initially created the container.
25
- */
26
- created: boolean;
27
- }
28
- /**
29
- * Return type of `useSharedMap` hook.
30
- */
31
- export interface IUseSharedMapResults<TData> {
32
- /**
33
- * Stateful map of most recent values from `SharedMap`.
34
- */
35
- map: ReadonlyMap<string, TData>;
36
- /**
37
- * Callback method to set/replace new entries in the `SharedMap`.
38
- */
39
- setEntry: (key: string, value: TData) => void;
40
- /**
41
- * Callback method to delete an existing entry in the `SharedMap`.
42
- */
43
- deleteEntry: (key: string) => void;
44
- /**
45
- * The Fluid `SharedMap` object, should you want to use it directly.
46
- */
47
- sharedMap: SharedMap | undefined;
48
- }
49
- /**
50
- * Return type of `useLiveEvent` hook.
51
- */
52
- export interface IUseLiveEventResults<TEvent = any> {
53
- /**
54
- * The most recent event that has been received in the session.
55
- */
56
- latestEvent: IReceiveLiveEvent<TEvent> | undefined;
57
- /**
58
- * All received events since initializing this component, sorted from oldest -> newest.
59
- */
60
- allEvents: IReceiveLiveEvent<TEvent>[];
61
- /**
62
- * Callback method to send a new event to users in the session.
63
- * @param TEvent to send.
64
- * @returns void promise that will throw when user does not have required roles
65
- */
66
- sendEvent: SendLiveEventAction<TEvent>;
67
- /**
68
- * The `LiveEvent` object, should you want to use it directly.
69
- */
70
- liveEvent: LiveEvent | undefined;
71
- }
72
- /**
73
- * Return type of `useLiveTimer` hook.
74
- */
75
- export interface IUseLiveTimerResults {
76
- /**
77
- * The current timer configuration.
78
- */
79
- timerConfig: ITimerConfig | undefined;
80
- /**
81
- * The time remaining in milliseconds.
82
- */
83
- milliRemaining: number | undefined;
84
- /**
85
- * The `LiveTimer` object, should you want to use it directly.
86
- */
87
- liveTimer: LiveTimer | undefined;
88
- /**
89
- * Callback to send event through `LiveTimer`
90
- * @param duration the duration for the timer in milliseconds
91
- * @returns void promise that will throw when user does not have required roles
92
- */
93
- start: OnStartTimerAction;
94
- /**
95
- * Callback to send event through `LiveTimer`
96
- * @returns void promise that will throw when user does not have required roles
97
- */
98
- play: OnPlayTimerAction;
99
- /**
100
- * Callback to send event through `LiveTimer`
101
- * @returns void promise that will throw when user does not have required roles
102
- */
103
- pause: OnPauseTimerAction;
104
- }
105
- /**
106
- * Return type of `useLivePresence` hook.
107
- */
108
- export interface IUseLivePresenceResults<TData extends object = object> {
109
- /**
110
- * The local user's presence object.
111
- */
112
- localUser: LivePresenceUser<TData> | undefined;
113
- /**
114
- * List of non-local user's presence objects.
115
- */
116
- otherUsers: LivePresenceUser<TData>[];
117
- /**
118
- * List of all user's presence objects.
119
- */
120
- allUsers: LivePresenceUser<TData>[];
121
- /**
122
- * Live Share `LivePresence` object, should you want to use it directly.
123
- */
124
- livePresence: LivePresence<TData> | undefined;
125
- /**
126
- * 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.
129
- * @returns void promise that will throw when user does not have required roles
130
- */
131
- updatePresence: OnUpdateLivePresenceAction<TData>;
132
- }
133
- /**
134
- * Return type of `useMediaSynchronizer` hook.
135
- */
136
- export interface IUseMediaSynchronizerResults {
137
- /**
138
- * Stateful boolean on whether the session has an active suspension.
139
- */
140
- suspended: boolean;
141
- /**
142
- * Callback to initiate a play action for the group media session.
143
- * @returns void promise that will throw when user does not have required roles
144
- */
145
- play: () => Promise<void>;
146
- /**
147
- * Callback to initiate a pause action for the group media session.
148
- * @returns void promise that will throw when user does not have required roles
149
- */
150
- pause: () => Promise<void>;
151
- /**
152
- * Callback to initiate a seek action for the group media session.
153
- * @param time timestamp of the video in seconds to seek to
154
- * @returns void promise that will throw when user does not have required roles
155
- */
156
- seekTo: (time: number) => Promise<void>;
157
- /**
158
- * Callback to change the track for the group media session.
159
- * @param track media metadata object, track src string, or null
160
- * @returns void promise that will throw when user does not have required roles
161
- */
162
- setTrack: (track: Partial<ExtendedMediaMetadata> | string | null) => Promise<void>;
163
- /**
164
- * Begin a new suspension. If a wait point is not set, the suspension will only impact the
165
- * local user.
166
- *
167
- * @param waitPoint Optional. Point in track to set the suspension at.
168
- * @see CoordinationWaitPoint
169
- */
170
- beginSuspension: (waitPoint?: CoordinationWaitPoint) => void;
171
- /**
172
- * End the currently active exception.
173
- */
174
- endSuspension: () => void;
175
- /**
176
- * Live Share `MediaPlayerSynchronizer` object, should you want to use it directly.
177
- */
178
- mediaSynchronizer: MediaPlayerSynchronizer | undefined;
179
- }
180
- /**
181
- * Return type of `useLiveCanvas` hook.
182
- */
183
- export interface IUseLiveCanvasResults {
184
- /**
185
- * Inking manager for the canvas, which is synchronized by `liveCanvas`. It is set when loaded and undefined while loading.
186
- */
187
- inkingManager: InkingManager | undefined;
188
- /**
189
- * Live Canvas data object which synchronizes inking & cursors in the session. It is set when loaded and undefined while loading.
190
- */
191
- liveCanvas: LiveCanvas | undefined;
192
- }
193
- /**
194
- * Return type of `useLiveFollowMode` hook.
195
- */
196
- export interface IUseLiveFollowModeResults<TData = any> {
197
- /**
198
- * Gets the current follow mode state.
199
- */
200
- state: IFollowModeState<TData> | undefined;
201
- /**
202
- * Local LivePresenceUser.
203
- */
204
- localUser: FollowModePresenceUser<TData> | undefined;
205
- /**
206
- * List of non-local user's presence objects.
207
- */
208
- otherUsers: FollowModePresenceUser<TData>[];
209
- /**
210
- * List of all user's presence objects.
211
- */
212
- allUsers: FollowModePresenceUser<TData>[];
213
- /**
214
- * LiveFollowMode DDS
215
- */
216
- liveFollowMode: LiveFollowMode<TData> | undefined;
217
- /**
218
- * Broadcast a new custom data value for the local user's current state.
219
- *
220
- * @remarks
221
- * Each user has their own state value, though it will differ from what is shown in {@link state} depending on the value of {@link FollowModeType}.
222
- * Will cause the user to become out of sync if another user is presenting or the local user is following another user.
223
- * To see each user's state, use the {@link getUsers} API, or listen to "presenceChanged" updates.
224
- *
225
- * @param newValue the state value for the local user's presence record.
226
- *
227
- * @returns a void promise that resolves once the update event has been sent to the server.
228
- *
229
- * @throws error if initialization has not yet succeeded.
230
- */
231
- update: (stateValue: TData) => Promise<void>;
232
- /**
233
- * Start presenting the local user's state.
234
- *
235
- * @remarks
236
- * If another user is already presenting, the local user will take control of presenting from the previous presenter.
237
- * To update the local user's state that both the local and remote users will reference, use the {@link update} function.
238
- * This API will override any `followingUserId` value that was set through {@link followUser} until presenting has stopped.
239
- * To stop presenting, use the {@link stopPresenting} API.
240
- *
241
- * @returns a void promise that resolves once the event has been sent to the server.
242
- *
243
- * @throws error if initialization has not yet succeeded.
244
- * @throws error if the local user is already the presenter.
245
- * @throws error if the local user does not have the required roles to present.
246
- */
247
- startPresenting: () => Promise<void>;
248
- /**
249
- * Stop presenting the presenting user's current state.
250
- *
251
- * @remarks
252
- * This API allows any user with valid roles to cancel presenting, though we generally recommend only allowing the active presenter to do so.
253
- * To start presenting, use the {@link startPresenting} API.
254
- *
255
- * @returns a void promise that resolves once the event has been sent to the server.
256
- *
257
- * @throws error if initialization has not yet succeeded.
258
- * @throws error if the local user does not have the required roles to stop presenting.
259
- */
260
- stopPresenting: () => Promise<void>;
261
- /**
262
- * Temporarily stop following presenter/follower.
263
- *
264
- * @returns a void promise once the operation succeeds.
265
- *
266
- * @throws error if initialization has not yet succeeded.
267
- */
268
- beginSuspension: () => Promise<void>;
269
- /**
270
- * Resume following presenter/follower.
271
- *
272
- * @returns a void promise once the operation succeeds.
273
- *
274
- * @throws error if initialization has not yet succeeded.
275
- */
276
- endSuspension: () => Promise<void>;
277
- /**
278
- * Follows another user in the session.
279
- *
280
- * @remarks
281
- * If another user is presenting, {@link state} will not reflect following this user until there is no longer a presenter.
282
- *
283
- * @param userId the userId for the user to follow.
284
- *
285
- * @returns a void promise that resolves once the event has been sent to the server.
286
- *
287
- * @throws error if initialization has not yet succeeded.
288
- * @throws error if attempting to follow a user that is not recognized by this object's `LivePresence` instance.
289
- * @throws error if the `userId` provided is equal to the local user's `userId`.
290
- */
291
- followUser: (userId: string) => Promise<void>;
292
- /**
293
- * Stop following the currently following user.
294
- *
295
- * @returns a void promise that resolves once the event has been sent to the server.
296
- *
297
- * @throws error if initialization has not yet succeeded.
298
- * @throws error if the user is not already following another user.
299
- */
300
- stopFollowing: () => Promise<void>;
301
- }
302
- //# sourceMappingURL=ResultTypes.d.ts.map
@@ -1 +0,0 @@
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,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AAO,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"}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the Microsoft Live Share SDK License.
4
- */
5
- export {};
6
- //# sourceMappingURL=ResultTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResultTypes.js","sourceRoot":"","sources":["../../src/types/ResultTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,4 +0,0 @@
1
- export * from "./ActionTypes";
2
- export * from "./ResultTypes";
3
- export * from "./PropTypes";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from "./ActionTypes";
2
- export * from "./ResultTypes";
3
- export * from "./PropTypes";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./type-check";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./type-check";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,15 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the Microsoft Live Share SDK License.
4
- */
5
- import { ExtendedMediaMetadata, IMediaPlayer } from "@microsoft/live-share-media";
6
- import React from "react";
7
- export declare function isRefObject<T>(value: any): value is React.RefObject<T>;
8
- export declare function isMediaElement(value: any): value is IMediaPlayer;
9
- export declare function isExtendedMediaMetadata(value: any): value is ExtendedMediaMetadata;
10
- export declare function isMap(value: any): value is Map<string, any>;
11
- export declare function isEntries(value: any): value is readonly (readonly [string, any])[];
12
- export declare function isJSON(value: any): value is {
13
- [key: string]: any;
14
- };
15
- //# sourceMappingURL=type-check.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,54 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the Microsoft Live Share SDK License.
4
- */
5
- export function isRefObject(value) {
6
- return value.current === null || !!value.current;
7
- }
8
- export function isMediaElement(value) {
9
- if (value) {
10
- return (value.currentSrc !== undefined &&
11
- value.currentTime !== undefined &&
12
- value.duration !== undefined &&
13
- value.ended !== undefined &&
14
- value.muted !== undefined &&
15
- value.paused !== undefined &&
16
- value.playbackRate !== undefined &&
17
- value.src !== undefined &&
18
- value.volume !== undefined &&
19
- value.load !== undefined &&
20
- value.pause !== undefined &&
21
- value.play !== undefined &&
22
- value.addEventListener !== undefined &&
23
- value.removeEventListener !== undefined);
24
- }
25
- return false;
26
- }
27
- export function isExtendedMediaMetadata(value) {
28
- return value === null || !!(value === null || value === void 0 ? void 0 : value.trackIdentifier);
29
- }
30
- export function isMap(value) {
31
- return value instanceof Map;
32
- }
33
- export function isEntries(value) {
34
- try {
35
- const tryValue = value;
36
- if (typeof tryValue[0][0] === "string") {
37
- return true;
38
- }
39
- return false;
40
- }
41
- catch (error) {
42
- return false;
43
- }
44
- }
45
- export function isJSON(value) {
46
- try {
47
- const tryValue = value;
48
- return Object.keys(tryValue).length > 0;
49
- }
50
- catch (error) {
51
- return false;
52
- }
53
- }
54
- //# sourceMappingURL=type-check.js.map
@@ -1 +0,0 @@
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;IACr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