@100mslive/roomkit-react 0.2.6-alpha.4 → 0.2.6-alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-H6Q2FEMZ.js → HLSView-4B4DD2HF.js} +3 -3
- package/dist/{HLSView-H6Q2FEMZ.js.map → HLSView-4B4DD2HF.js.map} +1 -1
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +2 -1
- package/dist/{chunk-HRUQKLGN.js → chunk-EMFS7SME.js} +60 -52
- package/dist/{chunk-HRUQKLGN.js.map → chunk-EMFS7SME.js.map} +3 -3
- package/dist/index.cjs.js +60 -52
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +10 -10
- package/dist/meta.esbuild.json +17 -17
- package/package.json +6 -6
- package/src/Prebuilt/components/Chat/ChatBody.tsx +3 -3
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +2 -4
- package/src/Prebuilt/components/HMSVideo/VideoProgress.jsx +1 -1
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +8 -1
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -4523,7 +4523,7 @@
|
|
4523
4523
|
"format": "cjs"
|
4524
4524
|
},
|
4525
4525
|
"../hms-video-store/dist/index.js": {
|
4526
|
-
"bytes":
|
4526
|
+
"bytes": 322683,
|
4527
4527
|
"imports": [
|
4528
4528
|
{
|
4529
4529
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -6287,7 +6287,7 @@
|
|
6287
6287
|
"format": "esm"
|
6288
6288
|
},
|
6289
6289
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
6290
|
-
"bytes":
|
6290
|
+
"bytes": 8005,
|
6291
6291
|
"imports": [
|
6292
6292
|
{
|
6293
6293
|
"path": "react",
|
@@ -7489,7 +7489,7 @@
|
|
7489
7489
|
"format": "esm"
|
7490
7490
|
},
|
7491
7491
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
7492
|
-
"bytes":
|
7492
|
+
"bytes": 14835,
|
7493
7493
|
"imports": [
|
7494
7494
|
{
|
7495
7495
|
"path": "react",
|
@@ -7973,7 +7973,7 @@
|
|
7973
7973
|
"format": "esm"
|
7974
7974
|
},
|
7975
7975
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx": {
|
7976
|
-
"bytes":
|
7976
|
+
"bytes": 5026,
|
7977
7977
|
"imports": [
|
7978
7978
|
{
|
7979
7979
|
"path": "react",
|
@@ -12790,7 +12790,7 @@
|
|
12790
12790
|
"imports": [],
|
12791
12791
|
"exports": [],
|
12792
12792
|
"inputs": {},
|
12793
|
-
"bytes":
|
12793
|
+
"bytes": 3168374
|
12794
12794
|
},
|
12795
12795
|
"dist/index.cjs.js": {
|
12796
12796
|
"imports": [
|
@@ -15499,7 +15499,7 @@
|
|
15499
15499
|
"entryPoint": "src/index.ts",
|
15500
15500
|
"inputs": {
|
15501
15501
|
"<define:process.env>": {
|
15502
|
-
"bytesInOutput":
|
15502
|
+
"bytesInOutput": 18178
|
15503
15503
|
},
|
15504
15504
|
"src/Theme/base.config.ts": {
|
15505
15505
|
"bytesInOutput": 6104
|
@@ -16090,7 +16090,7 @@
|
|
16090
16090
|
"bytesInOutput": 1165
|
16091
16091
|
},
|
16092
16092
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
16093
|
-
"bytesInOutput":
|
16093
|
+
"bytesInOutput": 9610
|
16094
16094
|
},
|
16095
16095
|
"src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
|
16096
16096
|
"bytesInOutput": 2786
|
@@ -16177,7 +16177,7 @@
|
|
16177
16177
|
"bytesInOutput": 920
|
16178
16178
|
},
|
16179
16179
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
16180
|
-
"bytesInOutput":
|
16180
|
+
"bytesInOutput": 17147
|
16181
16181
|
},
|
16182
16182
|
"src/Prebuilt/components/Chat/ChatSelector.tsx": {
|
16183
16183
|
"bytesInOutput": 8560
|
@@ -16204,7 +16204,7 @@
|
|
16204
16204
|
"bytesInOutput": 827
|
16205
16205
|
},
|
16206
16206
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx": {
|
16207
|
-
"bytesInOutput":
|
16207
|
+
"bytesInOutput": 6106
|
16208
16208
|
},
|
16209
16209
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
16210
16210
|
"bytesInOutput": 4402
|
@@ -16507,7 +16507,7 @@
|
|
16507
16507
|
"bytesInOutput": 2980
|
16508
16508
|
}
|
16509
16509
|
},
|
16510
|
-
"bytes":
|
16510
|
+
"bytes": 1489182
|
16511
16511
|
}
|
16512
16512
|
}
|
16513
16513
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -4523,7 +4523,7 @@
|
|
4523
4523
|
"format": "cjs"
|
4524
4524
|
},
|
4525
4525
|
"../hms-video-store/dist/index.js": {
|
4526
|
-
"bytes":
|
4526
|
+
"bytes": 322683,
|
4527
4527
|
"imports": [
|
4528
4528
|
{
|
4529
4529
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -6287,7 +6287,7 @@
|
|
6287
6287
|
"format": "esm"
|
6288
6288
|
},
|
6289
6289
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
6290
|
-
"bytes":
|
6290
|
+
"bytes": 8005,
|
6291
6291
|
"imports": [
|
6292
6292
|
{
|
6293
6293
|
"path": "react",
|
@@ -7489,7 +7489,7 @@
|
|
7489
7489
|
"format": "esm"
|
7490
7490
|
},
|
7491
7491
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
7492
|
-
"bytes":
|
7492
|
+
"bytes": 14835,
|
7493
7493
|
"imports": [
|
7494
7494
|
{
|
7495
7495
|
"path": "react",
|
@@ -7973,7 +7973,7 @@
|
|
7973
7973
|
"format": "esm"
|
7974
7974
|
},
|
7975
7975
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx": {
|
7976
|
-
"bytes":
|
7976
|
+
"bytes": 5026,
|
7977
7977
|
"imports": [
|
7978
7978
|
{
|
7979
7979
|
"path": "react",
|
@@ -12795,7 +12795,7 @@
|
|
12795
12795
|
"dist/index.js": {
|
12796
12796
|
"imports": [
|
12797
12797
|
{
|
12798
|
-
"path": "dist/chunk-
|
12798
|
+
"path": "dist/chunk-EMFS7SME.js",
|
12799
12799
|
"kind": "import-statement"
|
12800
12800
|
}
|
12801
12801
|
],
|
@@ -12868,16 +12868,16 @@
|
|
12868
12868
|
"inputs": {},
|
12869
12869
|
"bytes": 1822
|
12870
12870
|
},
|
12871
|
-
"dist/HLSView-
|
12871
|
+
"dist/HLSView-4B4DD2HF.js.map": {
|
12872
12872
|
"imports": [],
|
12873
12873
|
"exports": [],
|
12874
12874
|
"inputs": {},
|
12875
12875
|
"bytes": 59619
|
12876
12876
|
},
|
12877
|
-
"dist/HLSView-
|
12877
|
+
"dist/HLSView-4B4DD2HF.js": {
|
12878
12878
|
"imports": [
|
12879
12879
|
{
|
12880
|
-
"path": "dist/chunk-
|
12880
|
+
"path": "dist/chunk-EMFS7SME.js",
|
12881
12881
|
"kind": "import-statement"
|
12882
12882
|
},
|
12883
12883
|
{
|
@@ -13041,13 +13041,13 @@
|
|
13041
13041
|
},
|
13042
13042
|
"bytes": 37344
|
13043
13043
|
},
|
13044
|
-
"dist/chunk-
|
13044
|
+
"dist/chunk-EMFS7SME.js.map": {
|
13045
13045
|
"imports": [],
|
13046
13046
|
"exports": [],
|
13047
13047
|
"inputs": {},
|
13048
|
-
"bytes":
|
13048
|
+
"bytes": 3104539
|
13049
13049
|
},
|
13050
|
-
"dist/chunk-
|
13050
|
+
"dist/chunk-EMFS7SME.js": {
|
13051
13051
|
"imports": [
|
13052
13052
|
{
|
13053
13053
|
"path": "react",
|
@@ -15300,7 +15300,7 @@
|
|
15300
15300
|
"external": true
|
15301
15301
|
},
|
15302
15302
|
{
|
15303
|
-
"path": "dist/HLSView-
|
15303
|
+
"path": "dist/HLSView-4B4DD2HF.js",
|
15304
15304
|
"kind": "dynamic-import"
|
15305
15305
|
},
|
15306
15306
|
{
|
@@ -15722,7 +15722,7 @@
|
|
15722
15722
|
],
|
15723
15723
|
"inputs": {
|
15724
15724
|
"<define:process.env>": {
|
15725
|
-
"bytesInOutput":
|
15725
|
+
"bytesInOutput": 18178
|
15726
15726
|
},
|
15727
15727
|
"../../node_modules/lodash/lodash.js": {
|
15728
15728
|
"bytesInOutput": 224267
|
@@ -16292,7 +16292,7 @@
|
|
16292
16292
|
"bytesInOutput": 735
|
16293
16293
|
},
|
16294
16294
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
16295
|
-
"bytesInOutput":
|
16295
|
+
"bytesInOutput": 7983
|
16296
16296
|
},
|
16297
16297
|
"src/Prebuilt/components/Streaming/Common.jsx": {
|
16298
16298
|
"bytesInOutput": 2247
|
@@ -16367,7 +16367,7 @@
|
|
16367
16367
|
"bytesInOutput": 3466
|
16368
16368
|
},
|
16369
16369
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
16370
|
-
"bytesInOutput":
|
16370
|
+
"bytesInOutput": 14396
|
16371
16371
|
},
|
16372
16372
|
"src/Prebuilt/components/Chat/ChatActions.tsx": {
|
16373
16373
|
"bytesInOutput": 9785
|
@@ -16409,7 +16409,7 @@
|
|
16409
16409
|
"bytesInOutput": 2916
|
16410
16410
|
},
|
16411
16411
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx": {
|
16412
|
-
"bytesInOutput":
|
16412
|
+
"bytesInOutput": 4944
|
16413
16413
|
},
|
16414
16414
|
"src/Prebuilt/components/Chat/ArrowNavigation.tsx": {
|
16415
16415
|
"bytesInOutput": 1021
|
@@ -16649,7 +16649,7 @@
|
|
16649
16649
|
"bytesInOutput": 651
|
16650
16650
|
}
|
16651
16651
|
},
|
16652
|
-
"bytes":
|
16652
|
+
"bytes": 1266711
|
16653
16653
|
}
|
16654
16654
|
}
|
16655
16655
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.6-alpha.
|
13
|
+
"version": "0.2.6-alpha.6",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -82,10 +82,10 @@
|
|
82
82
|
"react": ">=17.0.2 <19.0.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|
85
|
-
"@100mslive/hls-player": "0.2.6-alpha.
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.6-alpha.
|
87
|
-
"@100mslive/react-icons": "0.9.6-alpha.
|
88
|
-
"@100mslive/react-sdk": "0.9.6-alpha.
|
85
|
+
"@100mslive/hls-player": "0.2.6-alpha.6",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.6-alpha.6",
|
87
|
+
"@100mslive/react-icons": "0.9.6-alpha.6",
|
88
|
+
"@100mslive/react-sdk": "0.9.6-alpha.6",
|
89
89
|
"@100mslive/types-prebuilt": "0.12.6",
|
90
90
|
"@emoji-mart/data": "^1.0.6",
|
91
91
|
"@emoji-mart/react": "^1.0.1",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"uuid": "^8.3.2",
|
121
121
|
"worker-timers": "^7.0.40"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "8ddd1423edf4da888a64da4f3ae1becbd5f11b62"
|
124
124
|
}
|
@@ -136,7 +136,7 @@ const Link = styled('a', {
|
|
136
136
|
},
|
137
137
|
});
|
138
138
|
|
139
|
-
export const AnnotisedMessage = ({ message }: { message: string }) => {
|
139
|
+
export const AnnotisedMessage = ({ message, length }: { message: string; length?: number }) => {
|
140
140
|
if (!message) {
|
141
141
|
return <Fragment />;
|
142
142
|
}
|
@@ -149,10 +149,10 @@ export const AnnotisedMessage = ({ message }: { message: string }) => {
|
|
149
149
|
.map(part =>
|
150
150
|
URL_REGEX.test(part) ? (
|
151
151
|
<Link href={part} key={part} target="_blank" rel="noopener noreferrer">
|
152
|
-
{part}
|
152
|
+
{part.slice(0, length)}
|
153
153
|
</Link>
|
154
154
|
) : (
|
155
|
-
part
|
155
|
+
part.slice(0, length)
|
156
156
|
),
|
157
157
|
)}
|
158
158
|
</Fragment>
|
@@ -103,10 +103,8 @@ export const PinnedMessage = () => {
|
|
103
103
|
title={pinnedMessages[pinnedMessageIndex]?.text}
|
104
104
|
>
|
105
105
|
<AnnotisedMessage
|
106
|
-
message={
|
107
|
-
|
108
|
-
hideOverflow ? PINNED_MESSAGE_LENGTH : currentPinnedMessage.length,
|
109
|
-
)}`}
|
106
|
+
message={currentPinnedMessage}
|
107
|
+
length={hideOverflow ? PINNED_MESSAGE_LENGTH : currentPinnedMessage.length}
|
110
108
|
/>
|
111
109
|
{canOverflow ? (
|
112
110
|
<span style={{ cursor: 'pointer' }} onClick={() => setHideOverflow(prev => !prev)}>
|
@@ -44,7 +44,7 @@ export const VideoProgress = ({ onValueChange, hlsPlayer }) => {
|
|
44
44
|
return hlsPlayer.getVideoElement() ? (
|
45
45
|
<Flex
|
46
46
|
ref={progressRootRef}
|
47
|
-
css={{ cursor: 'pointer', h: '$
|
47
|
+
css={{ cursor: 'pointer', h: '$2', alignSelf: 'stretch' }}
|
48
48
|
onClick={onProgressChangeHandler}
|
49
49
|
>
|
50
50
|
<Box
|
@@ -195,6 +195,13 @@ const AddMenu = () => {
|
|
195
195
|
const PrevMenu = () => {
|
196
196
|
const hmsActions = useHMSActions();
|
197
197
|
const polls = useHMSStore(selectPolls);
|
198
|
+
const sortedPolls = useMemo(
|
199
|
+
() =>
|
200
|
+
polls
|
201
|
+
?.sort((a, b) => (b.createdAt?.getTime() || 0) - (a.createdAt?.getTime() || 0))
|
202
|
+
?.sort((a, b) => (b.state === 'started' ? 1 : 0) - (a.state === 'started' ? 1 : 0)),
|
203
|
+
[polls],
|
204
|
+
);
|
198
205
|
const permissions = useHMSStore(selectPermissions);
|
199
206
|
|
200
207
|
useEffect(() => {
|
@@ -217,7 +224,7 @@ const PrevMenu = () => {
|
|
217
224
|
Previous Polls and Quizzes
|
218
225
|
</Text>
|
219
226
|
<Flex direction="column" css={{ gap: '$10', mt: '$8' }}>
|
220
|
-
{
|
227
|
+
{sortedPolls?.map(poll => (
|
221
228
|
<InteractionCard key={poll.id} id={poll.id} title={poll.title} status={poll.state} />
|
222
229
|
))}
|
223
230
|
</Flex>
|