@100mslive/roomkit-react 0.2.8-alpha.13 → 0.2.8-alpha.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.
- package/dist/{HLSView-GW7SOMJR.js → HLSView-GJP4SJCZ.js} +4 -3
- package/dist/HLSView-GJP4SJCZ.js.map +7 -0
- package/dist/{chunk-NZYSHCWW.js → chunk-25BO27QT.js} +31 -9
- package/dist/{chunk-NZYSHCWW.js.map → chunk-25BO27QT.js.map} +2 -2
- package/dist/index.cjs.js +32 -8
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +16 -11
- package/dist/meta.esbuild.json +25 -20
- package/package.json +6 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +18 -3
- package/src/Prebuilt/components/Chat/EmptyChat.tsx +5 -1
- package/src/Prebuilt/layouts/HLSView.jsx +2 -1
- package/src/Prebuilt/layouts/SidePane.tsx +6 -0
- package/dist/HLSView-GW7SOMJR.js.map +0 -7
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
|
@@ -7784,7 +7784,7 @@
|
|
|
7784
7784
|
"imports": []
|
|
7785
7785
|
},
|
|
7786
7786
|
"src/Prebuilt/components/Chat/EmptyChat.tsx": {
|
|
7787
|
-
"bytes":
|
|
7787
|
+
"bytes": 2142,
|
|
7788
7788
|
"imports": [
|
|
7789
7789
|
{
|
|
7790
7790
|
"path": "react",
|
|
@@ -7826,6 +7826,11 @@
|
|
|
7826
7826
|
"kind": "import-statement",
|
|
7827
7827
|
"original": "../hooks/useChatBlacklist"
|
|
7828
7828
|
},
|
|
7829
|
+
{
|
|
7830
|
+
"path": "src/Prebuilt/common/hooks.ts",
|
|
7831
|
+
"kind": "import-statement",
|
|
7832
|
+
"original": "../../common/hooks"
|
|
7833
|
+
},
|
|
7829
7834
|
{
|
|
7830
7835
|
"path": "<define:process.env>",
|
|
7831
7836
|
"kind": "import-statement",
|
|
@@ -8446,7 +8451,7 @@
|
|
|
8446
8451
|
"format": "esm"
|
|
8447
8452
|
},
|
|
8448
8453
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
|
8449
|
-
"bytes":
|
|
8454
|
+
"bytes": 5393,
|
|
8450
8455
|
"imports": [
|
|
8451
8456
|
{
|
|
8452
8457
|
"path": "react",
|
|
@@ -9306,7 +9311,7 @@
|
|
|
9306
9311
|
"format": "esm"
|
|
9307
9312
|
},
|
|
9308
9313
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
|
9309
|
-
"bytes":
|
|
9314
|
+
"bytes": 6575,
|
|
9310
9315
|
"imports": [
|
|
9311
9316
|
{
|
|
9312
9317
|
"path": "react",
|
|
@@ -11315,7 +11320,7 @@
|
|
|
11315
11320
|
"format": "esm"
|
|
11316
11321
|
},
|
|
11317
11322
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
11318
|
-
"bytes":
|
|
11323
|
+
"bytes": 26749,
|
|
11319
11324
|
"imports": [
|
|
11320
11325
|
{
|
|
11321
11326
|
"path": "react",
|
|
@@ -13607,7 +13612,7 @@
|
|
|
13607
13612
|
"imports": [],
|
|
13608
13613
|
"exports": [],
|
|
13609
13614
|
"inputs": {},
|
|
13610
|
-
"bytes":
|
|
13615
|
+
"bytes": 3263322
|
|
13611
13616
|
},
|
|
13612
13617
|
"dist/index.cjs.js": {
|
|
13613
13618
|
"imports": [
|
|
@@ -16516,7 +16521,7 @@
|
|
|
16516
16521
|
"entryPoint": "src/index.ts",
|
|
16517
16522
|
"inputs": {
|
|
16518
16523
|
"<define:process.env>": {
|
|
16519
|
-
"bytesInOutput":
|
|
16524
|
+
"bytesInOutput": 18257
|
|
16520
16525
|
},
|
|
16521
16526
|
"src/Theme/base.config.ts": {
|
|
16522
16527
|
"bytesInOutput": 6104
|
|
@@ -17209,7 +17214,7 @@
|
|
|
17209
17214
|
"bytesInOutput": 2366
|
|
17210
17215
|
},
|
|
17211
17216
|
"src/Prebuilt/components/Chat/EmptyChat.tsx": {
|
|
17212
|
-
"bytesInOutput":
|
|
17217
|
+
"bytesInOutput": 2555
|
|
17213
17218
|
},
|
|
17214
17219
|
"src/Prebuilt/components/hooks/usePinnedBy.tsx": {
|
|
17215
17220
|
"bytesInOutput": 926
|
|
@@ -17245,7 +17250,7 @@
|
|
|
17245
17250
|
"bytesInOutput": 6106
|
|
17246
17251
|
},
|
|
17247
17252
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
|
17248
|
-
"bytesInOutput":
|
|
17253
|
+
"bytesInOutput": 6161
|
|
17249
17254
|
},
|
|
17250
17255
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
|
17251
17256
|
"bytesInOutput": 5344
|
|
@@ -17290,7 +17295,7 @@
|
|
|
17290
17295
|
"bytesInOutput": 8756
|
|
17291
17296
|
},
|
|
17292
17297
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
|
17293
|
-
"bytesInOutput":
|
|
17298
|
+
"bytesInOutput": 7752
|
|
17294
17299
|
},
|
|
17295
17300
|
"src/Prebuilt/components/Chip.tsx": {
|
|
17296
17301
|
"bytesInOutput": 1118
|
|
@@ -17422,7 +17427,7 @@
|
|
|
17422
17427
|
"bytesInOutput": 2886
|
|
17423
17428
|
},
|
|
17424
17429
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
17425
|
-
"bytesInOutput":
|
|
17430
|
+
"bytesInOutput": 31215
|
|
17426
17431
|
},
|
|
17427
17432
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx": {
|
|
17428
17433
|
"bytesInOutput": 5017
|
|
@@ -17560,7 +17565,7 @@
|
|
|
17560
17565
|
"bytesInOutput": 2980
|
|
17561
17566
|
}
|
|
17562
17567
|
},
|
|
17563
|
-
"bytes":
|
|
17568
|
+
"bytes": 1550163
|
|
17564
17569
|
}
|
|
17565
17570
|
}
|
|
17566
17571
|
}
|
package/dist/meta.esbuild.json
CHANGED
|
@@ -7784,7 +7784,7 @@
|
|
|
7784
7784
|
"imports": []
|
|
7785
7785
|
},
|
|
7786
7786
|
"src/Prebuilt/components/Chat/EmptyChat.tsx": {
|
|
7787
|
-
"bytes":
|
|
7787
|
+
"bytes": 2142,
|
|
7788
7788
|
"imports": [
|
|
7789
7789
|
{
|
|
7790
7790
|
"path": "react",
|
|
@@ -7826,6 +7826,11 @@
|
|
|
7826
7826
|
"kind": "import-statement",
|
|
7827
7827
|
"original": "../hooks/useChatBlacklist"
|
|
7828
7828
|
},
|
|
7829
|
+
{
|
|
7830
|
+
"path": "src/Prebuilt/common/hooks.ts",
|
|
7831
|
+
"kind": "import-statement",
|
|
7832
|
+
"original": "../../common/hooks"
|
|
7833
|
+
},
|
|
7829
7834
|
{
|
|
7830
7835
|
"path": "<define:process.env>",
|
|
7831
7836
|
"kind": "import-statement",
|
|
@@ -8446,7 +8451,7 @@
|
|
|
8446
8451
|
"format": "esm"
|
|
8447
8452
|
},
|
|
8448
8453
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
|
8449
|
-
"bytes":
|
|
8454
|
+
"bytes": 5393,
|
|
8450
8455
|
"imports": [
|
|
8451
8456
|
{
|
|
8452
8457
|
"path": "react",
|
|
@@ -9306,7 +9311,7 @@
|
|
|
9306
9311
|
"format": "esm"
|
|
9307
9312
|
},
|
|
9308
9313
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
|
9309
|
-
"bytes":
|
|
9314
|
+
"bytes": 6575,
|
|
9310
9315
|
"imports": [
|
|
9311
9316
|
{
|
|
9312
9317
|
"path": "react",
|
|
@@ -11315,7 +11320,7 @@
|
|
|
11315
11320
|
"format": "esm"
|
|
11316
11321
|
},
|
|
11317
11322
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
11318
|
-
"bytes":
|
|
11323
|
+
"bytes": 26749,
|
|
11319
11324
|
"imports": [
|
|
11320
11325
|
{
|
|
11321
11326
|
"path": "react",
|
|
@@ -13612,7 +13617,7 @@
|
|
|
13612
13617
|
"dist/index.js": {
|
|
13613
13618
|
"imports": [
|
|
13614
13619
|
{
|
|
13615
|
-
"path": "dist/chunk-
|
|
13620
|
+
"path": "dist/chunk-25BO27QT.js",
|
|
13616
13621
|
"kind": "import-statement"
|
|
13617
13622
|
}
|
|
13618
13623
|
],
|
|
@@ -13685,16 +13690,16 @@
|
|
|
13685
13690
|
"inputs": {},
|
|
13686
13691
|
"bytes": 1822
|
|
13687
13692
|
},
|
|
13688
|
-
"dist/HLSView-
|
|
13693
|
+
"dist/HLSView-GJP4SJCZ.js.map": {
|
|
13689
13694
|
"imports": [],
|
|
13690
13695
|
"exports": [],
|
|
13691
13696
|
"inputs": {},
|
|
13692
|
-
"bytes":
|
|
13697
|
+
"bytes": 89215
|
|
13693
13698
|
},
|
|
13694
|
-
"dist/HLSView-
|
|
13699
|
+
"dist/HLSView-GJP4SJCZ.js": {
|
|
13695
13700
|
"imports": [
|
|
13696
13701
|
{
|
|
13697
|
-
"path": "dist/chunk-
|
|
13702
|
+
"path": "dist/chunk-25BO27QT.js",
|
|
13698
13703
|
"kind": "import-statement"
|
|
13699
13704
|
},
|
|
13700
13705
|
{
|
|
@@ -13859,7 +13864,7 @@
|
|
|
13859
13864
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
|
13860
13865
|
"inputs": {
|
|
13861
13866
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
13862
|
-
"bytesInOutput":
|
|
13867
|
+
"bytesInOutput": 25580
|
|
13863
13868
|
},
|
|
13864
13869
|
"src/Prebuilt/components/HlsStatsOverlay.jsx": {
|
|
13865
13870
|
"bytesInOutput": 3521
|
|
@@ -13910,15 +13915,15 @@
|
|
|
13910
13915
|
"bytesInOutput": 2101
|
|
13911
13916
|
}
|
|
13912
13917
|
},
|
|
13913
|
-
"bytes":
|
|
13918
|
+
"bytes": 54624
|
|
13914
13919
|
},
|
|
13915
|
-
"dist/chunk-
|
|
13920
|
+
"dist/chunk-25BO27QT.js.map": {
|
|
13916
13921
|
"imports": [],
|
|
13917
13922
|
"exports": [],
|
|
13918
13923
|
"inputs": {},
|
|
13919
|
-
"bytes":
|
|
13924
|
+
"bytes": 3169514
|
|
13920
13925
|
},
|
|
13921
|
-
"dist/chunk-
|
|
13926
|
+
"dist/chunk-25BO27QT.js": {
|
|
13922
13927
|
"imports": [
|
|
13923
13928
|
{
|
|
13924
13929
|
"path": "react",
|
|
@@ -16286,7 +16291,7 @@
|
|
|
16286
16291
|
"external": true
|
|
16287
16292
|
},
|
|
16288
16293
|
{
|
|
16289
|
-
"path": "dist/HLSView-
|
|
16294
|
+
"path": "dist/HLSView-GJP4SJCZ.js",
|
|
16290
16295
|
"kind": "dynamic-import"
|
|
16291
16296
|
},
|
|
16292
16297
|
{
|
|
@@ -16760,7 +16765,7 @@
|
|
|
16760
16765
|
],
|
|
16761
16766
|
"inputs": {
|
|
16762
16767
|
"<define:process.env>": {
|
|
16763
|
-
"bytesInOutput":
|
|
16768
|
+
"bytesInOutput": 18257
|
|
16764
16769
|
},
|
|
16765
16770
|
"../../node_modules/lodash/lodash.js": {
|
|
16766
16771
|
"bytesInOutput": 224291
|
|
@@ -17333,7 +17338,7 @@
|
|
|
17333
17338
|
"bytesInOutput": 9637
|
|
17334
17339
|
},
|
|
17335
17340
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
|
17336
|
-
"bytesInOutput":
|
|
17341
|
+
"bytesInOutput": 6271
|
|
17337
17342
|
},
|
|
17338
17343
|
"src/Prebuilt/components/Polls/Polls.tsx": {
|
|
17339
17344
|
"bytesInOutput": 735
|
|
@@ -17423,7 +17428,7 @@
|
|
|
17423
17428
|
"bytesInOutput": 7554
|
|
17424
17429
|
},
|
|
17425
17430
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
|
17426
|
-
"bytesInOutput":
|
|
17431
|
+
"bytesInOutput": 4926
|
|
17427
17432
|
},
|
|
17428
17433
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
|
17429
17434
|
"bytesInOutput": 14396
|
|
@@ -17441,7 +17446,7 @@
|
|
|
17441
17446
|
"bytesInOutput": 2757
|
|
17442
17447
|
},
|
|
17443
17448
|
"src/Prebuilt/components/Chat/EmptyChat.tsx": {
|
|
17444
|
-
"bytesInOutput":
|
|
17449
|
+
"bytesInOutput": 1952
|
|
17445
17450
|
},
|
|
17446
17451
|
"src/Prebuilt/images/empty-chat.svg": {
|
|
17447
17452
|
"bytesInOutput": 2261
|
|
@@ -17714,7 +17719,7 @@
|
|
|
17714
17719
|
"bytesInOutput": 651
|
|
17715
17720
|
}
|
|
17716
17721
|
},
|
|
17717
|
-
"bytes":
|
|
17722
|
+
"bytes": 1298869
|
|
17718
17723
|
}
|
|
17719
17724
|
}
|
|
17720
17725
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"prebuilt",
|
|
11
11
|
"roomkit"
|
|
12
12
|
],
|
|
13
|
-
"version": "0.2.8-alpha.
|
|
13
|
+
"version": "0.2.8-alpha.14",
|
|
14
14
|
"author": "100ms",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": {
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"react": ">=17.0.2 <19.0.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@100mslive/hls-player": "0.2.8-alpha.
|
|
85
|
+
"@100mslive/hls-player": "0.2.8-alpha.14",
|
|
86
86
|
"@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
|
|
87
|
-
"@100mslive/hms-virtual-background": "1.12.8-alpha.
|
|
88
|
-
"@100mslive/react-icons": "0.9.8-alpha.
|
|
89
|
-
"@100mslive/react-sdk": "0.9.8-alpha.
|
|
87
|
+
"@100mslive/hms-virtual-background": "1.12.8-alpha.14",
|
|
88
|
+
"@100mslive/react-icons": "0.9.8-alpha.14",
|
|
89
|
+
"@100mslive/react-sdk": "0.9.8-alpha.14",
|
|
90
90
|
"@100mslive/types-prebuilt": "0.12.7",
|
|
91
91
|
"@emoji-mart/data": "^1.0.6",
|
|
92
92
|
"@emoji-mart/react": "^1.0.1",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"uuid": "^8.3.2",
|
|
123
123
|
"worker-timers": "^7.0.40"
|
|
124
124
|
},
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "5f9ed79ce780bcb47007efda5728e38b173e7674"
|
|
126
126
|
}
|
|
@@ -45,6 +45,7 @@ export const Chat = () => {
|
|
|
45
45
|
if (!elements?.chat) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
+
const streaming = isMobileHLSStream || isLandscapeStream;
|
|
48
49
|
|
|
49
50
|
return (
|
|
50
51
|
<Flex
|
|
@@ -55,12 +56,12 @@ export const Chat = () => {
|
|
|
55
56
|
gap: '$4',
|
|
56
57
|
}}
|
|
57
58
|
>
|
|
58
|
-
{isMobile && elements?.chat?.is_overlay ? null : <PinnedMessage />}
|
|
59
|
+
{isMobile && elements?.chat?.is_overlay && !streaming ? null : <PinnedMessage />}
|
|
59
60
|
<ChatBody ref={listRef} scrollToBottom={scrollToBottom} />
|
|
60
61
|
|
|
61
62
|
<ChatPaused />
|
|
62
63
|
<ChatBlocked />
|
|
63
|
-
{isMobile && elements?.chat?.is_overlay ? <PinnedMessage /> : null}
|
|
64
|
+
{isMobile && elements?.chat?.is_overlay && !streaming ? <PinnedMessage /> : null}
|
|
64
65
|
{isChatEnabled ? (
|
|
65
66
|
<ChatFooter onSend={scrollToBottom}>
|
|
66
67
|
<NewMessageIndicator scrollToBottom={scrollToBottom} listRef={listRef} />
|
|
@@ -70,7 +71,7 @@ export const Chat = () => {
|
|
|
70
71
|
<Box
|
|
71
72
|
css={{
|
|
72
73
|
position: 'absolute',
|
|
73
|
-
...match({ isLandscapeStream, isChatEnabled })
|
|
74
|
+
...match({ isLandscapeStream, isMobileHLSStream, isChatEnabled })
|
|
74
75
|
.with(
|
|
75
76
|
{
|
|
76
77
|
isLandscapeStream: true,
|
|
@@ -85,6 +86,20 @@ export const Chat = () => {
|
|
|
85
86
|
},
|
|
86
87
|
() => ({ bottom: '$20', right: '$10' }),
|
|
87
88
|
)
|
|
89
|
+
.with(
|
|
90
|
+
{
|
|
91
|
+
isMobileHLSStream: true,
|
|
92
|
+
isChatEnabled: false,
|
|
93
|
+
},
|
|
94
|
+
() => ({ bottom: '$19', right: '$8' }),
|
|
95
|
+
)
|
|
96
|
+
.with(
|
|
97
|
+
{
|
|
98
|
+
isMobileHLSStream: true,
|
|
99
|
+
isChatEnabled: true,
|
|
100
|
+
},
|
|
101
|
+
() => ({ bottom: '$17', right: '$8' }),
|
|
102
|
+
)
|
|
88
103
|
.with(
|
|
89
104
|
{
|
|
90
105
|
isLandscapeStream: false,
|
|
@@ -7,6 +7,7 @@ import { config as cssConfig } from '../../../Theme';
|
|
|
7
7
|
import emptyChat from '../../images/empty-chat.svg';
|
|
8
8
|
import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
|
9
9
|
import { useIsPeerBlacklisted } from '../hooks/useChatBlacklist';
|
|
10
|
+
import { useLandscapeHLSStream, useMobileHLSStream } from '../../common/hooks';
|
|
10
11
|
|
|
11
12
|
export const EmptyChat = () => {
|
|
12
13
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
@@ -18,8 +19,11 @@ export const EmptyChat = () => {
|
|
|
18
19
|
elements.chat.private_chat_enabled ||
|
|
19
20
|
(elements.chat.roles_whitelist && elements.chat.roles_whitelist.length)) &&
|
|
20
21
|
!isLocalPeerBlacklisted;
|
|
22
|
+
const isMobileHLSStream = useMobileHLSStream();
|
|
23
|
+
const isLandscapeStream = useLandscapeHLSStream();
|
|
24
|
+
const streaming = isMobileHLSStream || isLandscapeStream;
|
|
21
25
|
|
|
22
|
-
if (isMobile && elements?.chat?.is_overlay) return <></>;
|
|
26
|
+
if (isMobile && elements?.chat?.is_overlay && !streaming) return <></>;
|
|
23
27
|
|
|
24
28
|
return (
|
|
25
29
|
<Flex
|
|
@@ -188,10 +188,11 @@ const HLSView = () => {
|
|
|
188
188
|
action: (
|
|
189
189
|
<Button
|
|
190
190
|
onClick={() => {
|
|
191
|
-
hmsActions.setAppData({
|
|
191
|
+
hmsActions.setAppData(APP_DATA.pollState, {
|
|
192
192
|
[POLL_STATE.pollInView]: pollId,
|
|
193
193
|
[POLL_STATE.view]: POLL_VIEWS.VOTE,
|
|
194
194
|
});
|
|
195
|
+
hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
|
|
195
196
|
}}
|
|
196
197
|
variant="standard"
|
|
197
198
|
css={{
|
|
@@ -72,6 +72,11 @@ const Wrapper = styled('div', {
|
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
|
+
roomDescription: {
|
|
76
|
+
true: {
|
|
77
|
+
overflowY: 'auto',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
75
80
|
hideControls: {
|
|
76
81
|
true: {},
|
|
77
82
|
},
|
|
@@ -151,6 +156,7 @@ const SidePane = ({
|
|
|
151
156
|
mobileStream: isMobileHLSStream,
|
|
152
157
|
hideControls,
|
|
153
158
|
overlayChat: !!elements?.chat?.is_overlay,
|
|
159
|
+
roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS,
|
|
154
160
|
};
|
|
155
161
|
|
|
156
162
|
const SidepaneComponent = match(sidepane)
|