@realsee/live 0.7.1 → 0.7.2

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 (62) hide show
  1. package/dist/index.cjs.js +3 -41
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.d.ts +5 -1336
  4. package/dist/index.es.js +6165 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/dist/live/controller.d.ts +118 -0
  7. package/dist/live/createLive.d.ts +8 -0
  8. package/dist/live/createLiveReact.d.ts +54 -0
  9. package/dist/live/live.d.ts +200 -0
  10. package/dist/rtc/BrowserRTC.d.ts +39 -0
  11. package/dist/rtc/BrowserRTC4Chime.d.ts +60 -0
  12. package/dist/rtc/CoreRTC.d.ts +23 -0
  13. package/dist/rtc/VRWebViewRTC.d.ts +97 -0
  14. package/dist/rtc/index.d.ts +5 -0
  15. package/dist/typings/chime/AttendeeResponse.d.ts +5 -0
  16. package/dist/typings/chime/MeetingResponse.d.ts +12 -0
  17. package/dist/typings/chime/MeetingSessionConfigurationOptions.d.ts +16 -0
  18. package/dist/typings/chime/index.d.ts +3 -0
  19. package/dist/typings/index.d.ts +4 -0
  20. package/dist/typings/live/EventType.d.ts +74 -0
  21. package/dist/typings/live/GetVoiceSign.d.ts +52 -0
  22. package/dist/typings/live/LiveConnectOptions.d.ts +24 -0
  23. package/dist/typings/live/LiveErrorType.d.ts +9 -0
  24. package/dist/typings/live/LiveMsg.d.ts +133 -0
  25. package/dist/typings/live/LiveOptions.d.ts +79 -0
  26. package/dist/typings/live/LiveState.d.ts +15 -0
  27. package/dist/typings/live/RoomInfo.d.ts +13 -0
  28. package/dist/typings/live/UserInfo.d.ts +103 -0
  29. package/dist/typings/live/UserVolume.d.ts +7 -0
  30. package/dist/typings/live/WebSocket.d.ts +82 -0
  31. package/dist/typings/live/index.d.ts +10 -0
  32. package/dist/typings/react/RTCActionReactCallback.d.ts +2 -0
  33. package/dist/typings/react/index.d.ts +1 -0
  34. package/dist/typings/rtc/VRWebViewRTCOptions.d.ts +6 -0
  35. package/dist/typings/rtc/eventType.d.ts +44 -0
  36. package/dist/typings/rtc/index.d.ts +5 -0
  37. package/dist/typings/rtc/joinedInfo.d.ts +38 -0
  38. package/dist/typings/rtc/protocol.d.ts +77 -0
  39. package/dist/typings/rtc/type.d.ts +12 -0
  40. package/dist/utils/RobustWebSocket.d.ts +160 -0
  41. package/dist/utils/appendUri.d.ts +1 -0
  42. package/dist/utils/clientDetector.d.ts +4 -0
  43. package/dist/utils/equal.d.ts +10 -0
  44. package/dist/utils/isServer.d.ts +5 -0
  45. package/dist/utils/logger.d.ts +19 -0
  46. package/dist/utils/subscribe.d.ts +75 -0
  47. package/dist/utils/uuid.d.ts +4 -0
  48. package/docs/classes/CoreRTC.md +7 -7
  49. package/docs/classes/Live.md +29 -56
  50. package/docs/globals.md +0 -6
  51. package/docs/interfaces/RTCProtocol.md +6 -6
  52. package/package.json +16 -21
  53. package/dist/index.d.cts +0 -1336
  54. package/dist/index.esm.js +0 -10
  55. package/docs/classes/Subscribe.md +0 -211
  56. package/docs/namespaces/SubscribeMixinType/README.md +0 -17
  57. package/docs/namespaces/SubscribeMixinType/interfaces/emit.md +0 -31
  58. package/docs/namespaces/SubscribeMixinType/interfaces/hasListener.md +0 -25
  59. package/docs/namespaces/SubscribeMixinType/interfaces/off.md +0 -31
  60. package/docs/namespaces/SubscribeMixinType/interfaces/on.md +0 -37
  61. package/docs/namespaces/SubscribeMixinType/interfaces/once.md +0 -35
  62. package/docs/type-aliases/EventMap.md +0 -17
@@ -6,27 +6,14 @@
6
6
 
7
7
  # Class: Live\<KeyframesSnapshot\>
8
8
 
9
- 监听者模式
10
-
11
- ## Example
12
-
13
- ```
14
- new Subscribe<{
15
- "foo": [arg1: number, arg2: string],
16
- "bar": [arg: boolean],
17
- }>()
18
- ```
19
-
20
9
  ## Extends
21
10
 
22
- - [`Subscribe`](Subscribe.md)\<[`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>\>
11
+ - `Subscribe`\<[`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>\>
23
12
 
24
13
  ## Type Parameters
25
14
 
26
15
  • **KeyframesSnapshot** *extends* `Record`\<`string`, `any`\>
27
16
 
28
- 预设的监听回调类型
29
-
30
17
  ## Constructors
31
18
 
32
19
  ### new Live()
@@ -43,7 +30,7 @@ new Subscribe<{
43
30
 
44
31
  #### Overrides
45
32
 
46
- [`Subscribe`](Subscribe.md).[`constructor`](Subscribe.md#constructors)
33
+ `Subscribe<EventType<KeyframesSnapshot>>.constructor`
47
34
 
48
35
  #### Defined in
49
36
 
@@ -53,7 +40,7 @@ live/live.ts:123
53
40
 
54
41
  ### keyframes
55
42
 
56
- > **keyframes**: [`Subscribe`](Subscribe.md)\<[`KeyframeEventType`](../type-aliases/KeyframeEventType.md)\<`KeyframesSnapshot`\>\>
43
+ > **keyframes**: `Subscribe`\<[`KeyframeEventType`](../type-aliases/KeyframeEventType.md)\<`KeyframesSnapshot`\>\>
57
44
 
58
45
  帧数据监听
59
46
 
@@ -63,20 +50,6 @@ live/live.ts:111
63
50
 
64
51
  ## Accessors
65
52
 
66
- ### \_buildInKeyframes
67
-
68
- > `get` **\_buildInKeyframes**(): `YMap`\<`KeyframesSnapshot`\>
69
-
70
- #### Returns
71
-
72
- `YMap`\<`KeyframesSnapshot`\>
73
-
74
- #### Defined in
75
-
76
- live/live.ts:139
77
-
78
- ***
79
-
80
53
  ### $RTC
81
54
 
82
55
  > `get` **$RTC**(): [`RTCProtocol`](../interfaces/RTCProtocol.md)
@@ -155,7 +128,7 @@ live/live.ts:82
155
128
 
156
129
  #### Defined in
157
130
 
158
- live/live.ts:238
131
+ live/live.ts:233
159
132
 
160
133
  ***
161
134
 
@@ -171,7 +144,7 @@ live/live.ts:238
171
144
 
172
145
  #### Defined in
173
146
 
174
- live/live.ts:224
147
+ live/live.ts:219
175
148
 
176
149
  ***
177
150
 
@@ -187,7 +160,7 @@ live/live.ts:224
187
160
 
188
161
  #### Defined in
189
162
 
190
- live/live.ts:146
163
+ live/live.ts:141
191
164
 
192
165
  ***
193
166
 
@@ -239,7 +212,7 @@ live/live.ts:90
239
212
 
240
213
  #### Defined in
241
214
 
242
- live/live.ts:231
215
+ live/live.ts:226
243
216
 
244
217
  ## Methods
245
218
 
@@ -255,7 +228,7 @@ live/live.ts:231
255
228
 
256
229
  #### Defined in
257
230
 
258
- live/live.ts:609
231
+ live/live.ts:604
259
232
 
260
233
  ***
261
234
 
@@ -273,7 +246,7 @@ live/live.ts:609
273
246
 
274
247
  #### Defined in
275
248
 
276
- live/live.ts:154
249
+ live/live.ts:149
277
250
 
278
251
  ***
279
252
 
@@ -287,7 +260,7 @@ live/live.ts:154
287
260
 
288
261
  #### Defined in
289
262
 
290
- live/live.ts:150
263
+ live/live.ts:145
291
264
 
292
265
  ***
293
266
 
@@ -319,7 +292,7 @@ live/live.ts:150
319
292
 
320
293
  #### Defined in
321
294
 
322
- live/live.ts:693
295
+ live/live.ts:688
323
296
 
324
297
  ***
325
298
 
@@ -337,7 +310,7 @@ live/live.ts:693
337
310
 
338
311
  #### Defined in
339
312
 
340
- live/live.ts:631
313
+ live/live.ts:626
341
314
 
342
315
  ***
343
316
 
@@ -361,7 +334,7 @@ live/live.ts:631
361
334
 
362
335
  #### Defined in
363
336
 
364
- live/live.ts:559
337
+ live/live.ts:554
365
338
 
366
339
  ***
367
340
 
@@ -377,7 +350,7 @@ live/live.ts:559
377
350
 
378
351
  #### Defined in
379
352
 
380
- live/live.ts:646
353
+ live/live.ts:641
381
354
 
382
355
  ***
383
356
 
@@ -411,7 +384,7 @@ canceled 是否被触发取消
411
384
 
412
385
  #### Inherited from
413
386
 
414
- [`Subscribe`](Subscribe.md).[`emit`](Subscribe.md#emit)
387
+ `Subscribe.emit`
415
388
 
416
389
  #### Defined in
417
390
 
@@ -431,7 +404,7 @@ utils/subscribe.ts:113
431
404
 
432
405
  #### Defined in
433
406
 
434
- live/live.ts:625
407
+ live/live.ts:620
435
408
 
436
409
  ***
437
410
 
@@ -453,7 +426,7 @@ live/live.ts:625
453
426
 
454
427
  #### Defined in
455
428
 
456
- live/live.ts:752
429
+ live/live.ts:747
457
430
 
458
431
  ***
459
432
 
@@ -475,7 +448,7 @@ live/live.ts:752
475
448
 
476
449
  #### Defined in
477
450
 
478
- live/live.ts:777
451
+ live/live.ts:772
479
452
 
480
453
  ***
481
454
 
@@ -501,7 +474,7 @@ live/live.ts:777
501
474
 
502
475
  #### Defined in
503
476
 
504
- live/live.ts:193
477
+ live/live.ts:188
505
478
 
506
479
  ***
507
480
 
@@ -525,7 +498,7 @@ live/live.ts:193
525
498
 
526
499
  #### Defined in
527
500
 
528
- live/live.ts:821
501
+ live/live.ts:816
529
502
 
530
503
  ***
531
504
 
@@ -547,7 +520,7 @@ live/live.ts:821
547
520
 
548
521
  #### Inherited from
549
522
 
550
- [`Subscribe`](Subscribe.md).[`hasListener`](Subscribe.md#haslistener)
523
+ `Subscribe.hasListener`
551
524
 
552
525
  #### Defined in
553
526
 
@@ -571,7 +544,7 @@ utils/subscribe.ts:41
571
544
 
572
545
  #### Defined in
573
546
 
574
- live/live.ts:799
547
+ live/live.ts:794
575
548
 
576
549
  ***
577
550
 
@@ -606,7 +579,7 @@ live/live.ts:799
606
579
 
607
580
  #### Inherited from
608
581
 
609
- [`Subscribe`](Subscribe.md).[`off`](Subscribe.md#off)
582
+ `Subscribe.off`
610
583
 
611
584
  #### Defined in
612
585
 
@@ -652,7 +625,7 @@ utils/subscribe.ts:87
652
625
 
653
626
  #### Inherited from
654
627
 
655
- [`Subscribe`](Subscribe.md).[`on`](Subscribe.md#on)
628
+ `Subscribe.on`
656
629
 
657
630
  #### Defined in
658
631
 
@@ -694,7 +667,7 @@ utils/subscribe.ts:55
694
667
 
695
668
  #### Inherited from
696
669
 
697
- [`Subscribe`](Subscribe.md).[`once`](Subscribe.md#once)
670
+ `Subscribe.once`
698
671
 
699
672
  #### Defined in
700
673
 
@@ -730,7 +703,7 @@ utils/subscribe.ts:74
730
703
 
731
704
  #### Defined in
732
705
 
733
- live/live.ts:202
706
+ live/live.ts:197
734
707
 
735
708
  ***
736
709
 
@@ -750,7 +723,7 @@ live/live.ts:202
750
723
 
751
724
  #### Defined in
752
725
 
753
- live/live.ts:683
726
+ live/live.ts:678
754
727
 
755
728
  ***
756
729
 
@@ -768,7 +741,7 @@ live/live.ts:683
768
741
 
769
742
  #### Defined in
770
743
 
771
- live/live.ts:728
744
+ live/live.ts:723
772
745
 
773
746
  ***
774
747
 
@@ -794,4 +767,4 @@ live/live.ts:728
794
767
 
795
768
  #### Defined in
796
769
 
797
- live/live.ts:660
770
+ live/live.ts:655
package/docs/globals.md CHANGED
@@ -4,10 +4,6 @@
4
4
 
5
5
  # 如视 Live SDK
6
6
 
7
- ## Namespaces
8
-
9
- - [SubscribeMixinType](namespaces/SubscribeMixinType/README.md)
10
-
11
7
  ## Enumerations
12
8
 
13
9
  - [BuiltinActionType](enumerations/BuiltinActionType.md)
@@ -30,7 +26,6 @@
30
26
  - [BrowserRTC4Chime](classes/BrowserRTC4Chime.md)
31
27
  - [CoreRTC](classes/CoreRTC.md)
32
28
  - [Live](classes/Live.md)
33
- - [Subscribe](classes/Subscribe.md)
34
29
  - [VRWebViewRTC](classes/VRWebViewRTC.md)
35
30
 
36
31
  ## Interfaces
@@ -47,7 +42,6 @@
47
42
  ## Type Aliases
48
43
 
49
44
  - [BuiltinMsg](type-aliases/BuiltinMsg.md)
50
- - [EventMap](type-aliases/EventMap.md)
51
45
  - [EventType](type-aliases/EventType.md)
52
46
  - [GetVoiceSign](type-aliases/GetVoiceSign.md)
53
47
  - [GetVoiceSignParams](type-aliases/GetVoiceSignParams.md)
@@ -10,7 +10,7 @@ rtc 协议接口
10
10
 
11
11
  ## Extends
12
12
 
13
- - [`Subscribe`](../classes/Subscribe.md)\<[`RTCEventType`](../type-aliases/RTCEventType.md)\>
13
+ - `Subscribe`\<[`RTCEventType`](../type-aliases/RTCEventType.md)\>
14
14
 
15
15
  ## Properties
16
16
 
@@ -128,7 +128,7 @@ canceled 是否被触发取消
128
128
 
129
129
  #### Inherited from
130
130
 
131
- [`Subscribe`](../classes/Subscribe.md).[`emit`](../classes/Subscribe.md#emit)
131
+ `Subscribe.emit`
132
132
 
133
133
  #### Defined in
134
134
 
@@ -154,7 +154,7 @@ utils/subscribe.ts:113
154
154
 
155
155
  #### Inherited from
156
156
 
157
- [`Subscribe`](../classes/Subscribe.md).[`hasListener`](../classes/Subscribe.md#haslistener)
157
+ `Subscribe.hasListener`
158
158
 
159
159
  #### Defined in
160
160
 
@@ -233,7 +233,7 @@ typings/rtc/protocol.ts:51
233
233
 
234
234
  #### Inherited from
235
235
 
236
- [`Subscribe`](../classes/Subscribe.md).[`off`](../classes/Subscribe.md#off)
236
+ `Subscribe.off`
237
237
 
238
238
  #### Defined in
239
239
 
@@ -279,7 +279,7 @@ utils/subscribe.ts:87
279
279
 
280
280
  #### Inherited from
281
281
 
282
- [`Subscribe`](../classes/Subscribe.md).[`on`](../classes/Subscribe.md#on)
282
+ `Subscribe.on`
283
283
 
284
284
  #### Defined in
285
285
 
@@ -321,7 +321,7 @@ utils/subscribe.ts:55
321
321
 
322
322
  #### Inherited from
323
323
 
324
- [`Subscribe`](../classes/Subscribe.md).[`once`](../classes/Subscribe.md#once)
324
+ `Subscribe.once`
325
325
 
326
326
  #### Defined in
327
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/live",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "如视 Live SDK:基于如视 WebSocket 长链双工通信能力的前端封装,借助此 SDK 您可以快捷地实现具备同屏连线、实时语音的 VR 带看业务能力。",
5
5
  "author": "BEIKE REALSEE TECHNOLOGY (HK) LIMITED",
6
6
  "license": "SEE LICENSE IN TERMS.txt",
@@ -8,30 +8,21 @@
8
8
  "access": "public",
9
9
  "registry": "https://registry.npmjs.org/"
10
10
  },
11
- "type": "module",
12
- "types": "./dist/index.d.ts",
13
- "main": "./dist/index.cjs.js",
14
- "import": "./dist/index.esm.js",
15
- "sideEffects": false,
16
- "files": [
17
- "dist",
18
- "docs",
19
- "TERMS.txt"
20
- ],
21
- "exports": {
22
- ".": {
23
- "types": "./dist/index.d.ts",
24
- "import": "./dist/index.esm.js",
25
- "default": "./dist/index.cjs.js"
26
- }
27
- },
28
11
  "scripts": {
29
- "dev": "tsup --watch",
30
- "build": "tsup",
12
+ "dev": "tsc && vite build --mode development --watch",
13
+ "build": "tsc && vite build",
31
14
  "docs": "npx typedoc",
32
15
  "prepublishOnly": "npm run build && npm run docs",
33
16
  "prepack": "npm run build && npm run docs"
34
17
  },
18
+ "main": "dist/index.cjs.js",
19
+ "module": "dist/index.es.js",
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "docs",
23
+ "dist",
24
+ "TERMS.txt"
25
+ ],
35
26
  "devDependencies": {
36
27
  "@realsee/jsbridge-x": "0.2.11",
37
28
  "@types/react": "^18",
@@ -43,7 +34,8 @@
43
34
  "typedoc": "0.26.9",
44
35
  "typedoc-plugin-markdown": "4.2.9",
45
36
  "typescript": "5.6.3",
46
- "yjs": "13.6.20"
37
+ "vite": "5.4.10",
38
+ "vite-plugin-dts": "4.3.0"
47
39
  },
48
40
  "peerDependencies": {
49
41
  "@realsee/jsbridge-x": ">=0.2.6",
@@ -52,5 +44,8 @@
52
44
  "amazon-chime-sdk-js": ">=3.0.0",
53
45
  "react": "^18",
54
46
  "trtc-js-sdk": ">=4.15.3"
47
+ },
48
+ "dependencies": {
49
+ "yjs": "13.6.20"
55
50
  }
56
51
  }