@100mslive/roomkit-react 0.3.0 → 0.3.1-alpha.0

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/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-LCECN6XD.js";
65
+ } from "./chunk-RRXRF2KB.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -4681,7 +4681,7 @@
4681
4681
  "format": "cjs"
4682
4682
  },
4683
4683
  "../hms-video-store/dist/index.js": {
4684
- "bytes": 325880,
4684
+ "bytes": 326171,
4685
4685
  "imports": [
4686
4686
  {
4687
4687
  "path": "../../node_modules/reselect/es/index.js",
@@ -6495,7 +6495,7 @@
6495
6495
  "format": "esm"
6496
6496
  },
6497
6497
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6498
- "bytes": 8005,
6498
+ "bytes": 8017,
6499
6499
  "imports": [
6500
6500
  {
6501
6501
  "path": "react",
@@ -6623,7 +6623,7 @@
6623
6623
  "format": "esm"
6624
6624
  },
6625
6625
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6626
- "bytes": 1029,
6626
+ "bytes": 1041,
6627
6627
  "imports": [
6628
6628
  {
6629
6629
  "path": "react",
@@ -6788,7 +6788,7 @@
6788
6788
  "format": "esm"
6789
6789
  },
6790
6790
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6791
- "bytes": 10090,
6791
+ "bytes": 10102,
6792
6792
  "imports": [
6793
6793
  {
6794
6794
  "path": "react",
@@ -8365,7 +8365,7 @@
8365
8365
  "format": "esm"
8366
8366
  },
8367
8367
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8368
- "bytes": 5026,
8368
+ "bytes": 5099,
8369
8369
  "imports": [
8370
8370
  {
8371
8371
  "path": "react",
@@ -9311,7 +9311,7 @@
9311
9311
  "format": "esm"
9312
9312
  },
9313
9313
  "src/Prebuilt/layouts/SidePane.tsx": {
9314
- "bytes": 6575,
9314
+ "bytes": 6649,
9315
9315
  "imports": [
9316
9316
  {
9317
9317
  "path": "react",
@@ -10029,7 +10029,7 @@
10029
10029
  "format": "esm"
10030
10030
  },
10031
10031
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
10032
- "bytes": 2474,
10032
+ "bytes": 2542,
10033
10033
  "imports": [
10034
10034
  {
10035
10035
  "path": "react",
@@ -10431,7 +10431,7 @@
10431
10431
  "format": "esm"
10432
10432
  },
10433
10433
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10434
- "bytes": 3065,
10434
+ "bytes": 3118,
10435
10435
  "imports": [
10436
10436
  {
10437
10437
  "path": "react",
@@ -13612,7 +13612,7 @@
13612
13612
  "imports": [],
13613
13613
  "exports": [],
13614
13614
  "inputs": {},
13615
- "bytes": 3262735
13615
+ "bytes": 3263982
13616
13616
  },
13617
13617
  "dist/index.cjs.js": {
13618
13618
  "imports": [
@@ -16521,7 +16521,7 @@
16521
16521
  "entryPoint": "src/index.ts",
16522
16522
  "inputs": {
16523
16523
  "<define:process.env>": {
16524
- "bytesInOutput": 18150
16524
+ "bytesInOutput": 18253
16525
16525
  },
16526
16526
  "src/Theme/base.config.ts": {
16527
16527
  "bytesInOutput": 6104
@@ -17010,7 +17010,7 @@
17010
17010
  "bytesInOutput": 615
17011
17011
  },
17012
17012
  "../hms-video-store/dist/index.js": {
17013
- "bytesInOutput": 53127
17013
+ "bytesInOutput": 53135
17014
17014
  },
17015
17015
  "src/Prebuilt/components/hooks/usePlaylistMusic.js": {
17016
17016
  "bytesInOutput": 1384
@@ -17121,7 +17121,7 @@
17121
17121
  "bytesInOutput": 1170
17122
17122
  },
17123
17123
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17124
- "bytesInOutput": 9660
17124
+ "bytesInOutput": 9672
17125
17125
  },
17126
17126
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17127
17127
  "bytesInOutput": 2802
@@ -17130,7 +17130,7 @@
17130
17130
  "bytesInOutput": 394
17131
17131
  },
17132
17132
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17133
- "bytesInOutput": 1335
17133
+ "bytesInOutput": 1347
17134
17134
  },
17135
17135
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17136
17136
  "bytesInOutput": 587
@@ -17145,7 +17145,7 @@
17145
17145
  "bytesInOutput": 5422
17146
17146
  },
17147
17147
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17148
- "bytesInOutput": 10146
17148
+ "bytesInOutput": 10158
17149
17149
  },
17150
17150
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
17151
17151
  "bytesInOutput": 2034
@@ -17247,7 +17247,7 @@
17247
17247
  "bytesInOutput": 827
17248
17248
  },
17249
17249
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17250
- "bytesInOutput": 6106
17250
+ "bytesInOutput": 6242
17251
17251
  },
17252
17252
  "src/Prebuilt/components/Chat/Chat.tsx": {
17253
17253
  "bytesInOutput": 6161
@@ -17295,7 +17295,7 @@
17295
17295
  "bytesInOutput": 8756
17296
17296
  },
17297
17297
  "src/Prebuilt/layouts/SidePane.tsx": {
17298
- "bytesInOutput": 7752
17298
+ "bytesInOutput": 7830
17299
17299
  },
17300
17300
  "src/Prebuilt/components/Chip.tsx": {
17301
17301
  "bytesInOutput": 1118
@@ -17334,7 +17334,7 @@
17334
17334
  "bytesInOutput": 2453
17335
17335
  },
17336
17336
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
17337
- "bytesInOutput": 2978
17337
+ "bytesInOutput": 3074
17338
17338
  },
17339
17339
  "src/Prebuilt/components/SecondaryTiles.tsx": {
17340
17340
  "bytesInOutput": 3143
@@ -17355,7 +17355,7 @@
17355
17355
  "bytesInOutput": 5583
17356
17356
  },
17357
17357
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17358
- "bytesInOutput": 3419
17358
+ "bytesInOutput": 3475
17359
17359
  },
17360
17360
  "src/Prebuilt/common/PeersSorter.ts": {
17361
17361
  "bytesInOutput": 3604
@@ -17565,7 +17565,7 @@
17565
17565
  "bytesInOutput": 2980
17566
17566
  }
17567
17567
  },
17568
- "bytes": 1550047
17568
+ "bytes": 1550560
17569
17569
  }
17570
17570
  }
17571
17571
  }
@@ -4681,7 +4681,7 @@
4681
4681
  "format": "cjs"
4682
4682
  },
4683
4683
  "../hms-video-store/dist/index.js": {
4684
- "bytes": 325880,
4684
+ "bytes": 326171,
4685
4685
  "imports": [
4686
4686
  {
4687
4687
  "path": "../../node_modules/reselect/es/index.js",
@@ -6495,7 +6495,7 @@
6495
6495
  "format": "esm"
6496
6496
  },
6497
6497
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6498
- "bytes": 8005,
6498
+ "bytes": 8017,
6499
6499
  "imports": [
6500
6500
  {
6501
6501
  "path": "react",
@@ -6623,7 +6623,7 @@
6623
6623
  "format": "esm"
6624
6624
  },
6625
6625
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6626
- "bytes": 1029,
6626
+ "bytes": 1041,
6627
6627
  "imports": [
6628
6628
  {
6629
6629
  "path": "react",
@@ -6788,7 +6788,7 @@
6788
6788
  "format": "esm"
6789
6789
  },
6790
6790
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6791
- "bytes": 10090,
6791
+ "bytes": 10102,
6792
6792
  "imports": [
6793
6793
  {
6794
6794
  "path": "react",
@@ -8365,7 +8365,7 @@
8365
8365
  "format": "esm"
8366
8366
  },
8367
8367
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8368
- "bytes": 5026,
8368
+ "bytes": 5099,
8369
8369
  "imports": [
8370
8370
  {
8371
8371
  "path": "react",
@@ -9311,7 +9311,7 @@
9311
9311
  "format": "esm"
9312
9312
  },
9313
9313
  "src/Prebuilt/layouts/SidePane.tsx": {
9314
- "bytes": 6575,
9314
+ "bytes": 6649,
9315
9315
  "imports": [
9316
9316
  {
9317
9317
  "path": "react",
@@ -10029,7 +10029,7 @@
10029
10029
  "format": "esm"
10030
10030
  },
10031
10031
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
10032
- "bytes": 2474,
10032
+ "bytes": 2542,
10033
10033
  "imports": [
10034
10034
  {
10035
10035
  "path": "react",
@@ -10431,7 +10431,7 @@
10431
10431
  "format": "esm"
10432
10432
  },
10433
10433
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10434
- "bytes": 3065,
10434
+ "bytes": 3118,
10435
10435
  "imports": [
10436
10436
  {
10437
10437
  "path": "react",
@@ -13617,7 +13617,7 @@
13617
13617
  "dist/index.js": {
13618
13618
  "imports": [
13619
13619
  {
13620
- "path": "dist/chunk-LCECN6XD.js",
13620
+ "path": "dist/chunk-RRXRF2KB.js",
13621
13621
  "kind": "import-statement"
13622
13622
  }
13623
13623
  ],
@@ -13690,16 +13690,16 @@
13690
13690
  "inputs": {},
13691
13691
  "bytes": 1822
13692
13692
  },
13693
- "dist/HLSView-LZOTIUWE.js.map": {
13693
+ "dist/HLSView-VXHATNNQ.js.map": {
13694
13694
  "imports": [],
13695
13695
  "exports": [],
13696
13696
  "inputs": {},
13697
13697
  "bytes": 89215
13698
13698
  },
13699
- "dist/HLSView-LZOTIUWE.js": {
13699
+ "dist/HLSView-VXHATNNQ.js": {
13700
13700
  "imports": [
13701
13701
  {
13702
- "path": "dist/chunk-LCECN6XD.js",
13702
+ "path": "dist/chunk-RRXRF2KB.js",
13703
13703
  "kind": "import-statement"
13704
13704
  },
13705
13705
  {
@@ -13917,13 +13917,13 @@
13917
13917
  },
13918
13918
  "bytes": 54624
13919
13919
  },
13920
- "dist/chunk-LCECN6XD.js.map": {
13920
+ "dist/chunk-RRXRF2KB.js.map": {
13921
13921
  "imports": [],
13922
13922
  "exports": [],
13923
13923
  "inputs": {},
13924
- "bytes": 3168927
13924
+ "bytes": 3170173
13925
13925
  },
13926
- "dist/chunk-LCECN6XD.js": {
13926
+ "dist/chunk-RRXRF2KB.js": {
13927
13927
  "imports": [
13928
13928
  {
13929
13929
  "path": "react",
@@ -16291,7 +16291,7 @@
16291
16291
  "external": true
16292
16292
  },
16293
16293
  {
16294
- "path": "dist/HLSView-LZOTIUWE.js",
16294
+ "path": "dist/HLSView-VXHATNNQ.js",
16295
16295
  "kind": "dynamic-import"
16296
16296
  },
16297
16297
  {
@@ -16765,7 +16765,7 @@
16765
16765
  ],
16766
16766
  "inputs": {
16767
16767
  "<define:process.env>": {
16768
- "bytesInOutput": 18150
16768
+ "bytesInOutput": 18253
16769
16769
  },
16770
16770
  "../../node_modules/lodash/lodash.js": {
16771
16771
  "bytesInOutput": 224291
@@ -17203,7 +17203,7 @@
17203
17203
  "bytesInOutput": 10031
17204
17204
  },
17205
17205
  "../hms-video-store/dist/index.js": {
17206
- "bytesInOutput": 48556
17206
+ "bytesInOutput": 48564
17207
17207
  },
17208
17208
  "../../node_modules/reselect/es/index.js": {
17209
17209
  "bytesInOutput": 2539
@@ -17338,13 +17338,13 @@
17338
17338
  "bytesInOutput": 9637
17339
17339
  },
17340
17340
  "src/Prebuilt/layouts/SidePane.tsx": {
17341
- "bytesInOutput": 6271
17341
+ "bytesInOutput": 6345
17342
17342
  },
17343
17343
  "src/Prebuilt/components/Polls/Polls.tsx": {
17344
17344
  "bytesInOutput": 735
17345
17345
  },
17346
17346
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17347
- "bytesInOutput": 7987
17347
+ "bytesInOutput": 7999
17348
17348
  },
17349
17349
  "src/Prebuilt/components/Streaming/Common.jsx": {
17350
17350
  "bytesInOutput": 2247
@@ -17356,7 +17356,7 @@
17356
17356
  "bytesInOutput": 5110
17357
17357
  },
17358
17358
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17359
- "bytesInOutput": 8169
17359
+ "bytesInOutput": 8181
17360
17360
  },
17361
17361
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17362
17362
  "bytesInOutput": 2083
@@ -17368,7 +17368,7 @@
17368
17368
  "bytesInOutput": 3664
17369
17369
  },
17370
17370
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17371
- "bytesInOutput": 888
17371
+ "bytesInOutput": 900
17372
17372
  },
17373
17373
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17374
17374
  "bytesInOutput": 361
@@ -17473,7 +17473,7 @@
17473
17473
  "bytesInOutput": 2916
17474
17474
  },
17475
17475
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17476
- "bytesInOutput": 4944
17476
+ "bytesInOutput": 5076
17477
17477
  },
17478
17478
  "src/Prebuilt/components/Chat/ArrowNavigation.tsx": {
17479
17479
  "bytesInOutput": 1021
@@ -17563,13 +17563,13 @@
17563
17563
  "bytesInOutput": 2494
17564
17564
  },
17565
17565
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
17566
- "bytesInOutput": 2301
17566
+ "bytesInOutput": 2393
17567
17567
  },
17568
17568
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
17569
17569
  "bytesInOutput": 1046
17570
17570
  },
17571
17571
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17572
- "bytesInOutput": 2664
17572
+ "bytesInOutput": 2716
17573
17573
  },
17574
17574
  "src/Prebuilt/components/ScreenshareTile.tsx": {
17575
17575
  "bytesInOutput": 4447
@@ -17719,7 +17719,7 @@
17719
17719
  "bytesInOutput": 651
17720
17720
  }
17721
17721
  },
17722
- "bytes": 1298753
17722
+ "bytes": 1299250
17723
17723
  }
17724
17724
  }
17725
17725
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.0",
13
+ "version": "0.3.1-alpha.0",
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.3.0",
85
+ "@100mslive/hls-player": "0.3.1-alpha.0",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.13.0",
88
- "@100mslive/react-icons": "0.10.0",
89
- "@100mslive/react-sdk": "0.10.0",
87
+ "@100mslive/hms-virtual-background": "1.13.1-alpha.0",
88
+ "@100mslive/react-icons": "0.10.1-alpha.0",
89
+ "@100mslive/react-sdk": "0.10.1-alpha.0",
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": "eaed700cd6f04214d3aa7a691c3f1bd603e1ce0e"
125
+ "gitHead": "995fe879991b8b955f2ad917e8650a1abbbd5399"
126
126
  }
@@ -71,13 +71,14 @@ export const PinnedMessage = () => {
71
71
  <Flex
72
72
  css={{
73
73
  p: '$4',
74
- color: '$on_surface_medium',
75
- bg: isMobile ? 'rgba(0, 0, 0, 0.64)' : '$surface_default',
74
+ color: '$on_surface_high',
75
+ bg: isMobile && elements?.chat?.is_overlay ? 'rgba(0, 0, 0, 0.64)' : '$surface_brighter',
76
76
  r: '$1',
77
77
  gap: '$4',
78
78
  mb: '$8',
79
79
  mt: '$8',
80
80
  flexGrow: 1,
81
+ border: '1px solid $border_bright',
81
82
  }}
82
83
  align="center"
83
84
  justify="between"
@@ -98,7 +99,7 @@ export const PinnedMessage = () => {
98
99
  >
99
100
  <Text
100
101
  variant="sm"
101
- css={{ color: '$on_surface_medium' }}
102
+ css={{ color: '$on_surface_high' }}
102
103
  {...swipeHandlers}
103
104
  title={pinnedMessages[pinnedMessageIndex]?.text}
104
105
  >
@@ -140,7 +140,7 @@ const AddMenu = () => {
140
140
  type="text"
141
141
  placeholder="Enter a name to continue"
142
142
  value={title}
143
- onChange={event => setTitle(event.target.value)}
143
+ onChange={event => setTitle(event.target.value.trimStart())}
144
144
  css={{
145
145
  backgroundColor: '$surface_bright',
146
146
  border: '1px solid $border_default',
@@ -159,7 +159,7 @@ export const QuestionForm = ({
159
159
  maxHeight: '$32',
160
160
  }}
161
161
  value={text}
162
- onChange={event => setText(event.target.value)}
162
+ onChange={event => setText(event.target.value.trimStart())}
163
163
  />
164
164
  <Text variant="xs" css={{ color: '$on_surface_medium', textAlign: 'end', mt: '$4' }}>
165
165
  {text?.length || 0}/1024
@@ -27,7 +27,7 @@ export const OptionInputWithDelete = ({
27
27
  }}
28
28
  value={option?.text || ''}
29
29
  key={index}
30
- onChange={event => handleOptionTextChange(index, event.target.value)}
30
+ onChange={event => handleOptionTextChange(index, event.target.value.trimStart())}
31
31
  />
32
32
  <IconButton onClick={() => removeOption(index)} css={{ bg: 'transparent', border: 'none' }}>
33
33
  <TrashIcon />
@@ -36,6 +36,7 @@ const SecondarySection = ({
36
36
  hasSidebar,
37
37
  }: React.PropsWithChildren<{ tiles: TrackWithPeerAndDimensions[]; edgeToEdge?: boolean; hasSidebar?: boolean }>) => {
38
38
  const tileLayoutProps = useVideoTileContext();
39
+ console.log('secondary section', { tilesLength: tiles?.length });
39
40
  if (!tiles?.length) {
40
41
  return null;
41
42
  }
@@ -55,6 +55,8 @@ export const ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge
55
55
  };
56
56
  }, [activeSharePeer?.id, isMobile, setActiveScreenSharePeer]);
57
57
 
58
+ console.log({ activeSharePeer, secondaryPeers });
59
+
58
60
  return (
59
61
  <ProminenceLayout.Root edgeToEdge={edgeToEdge} hasSidebar={hasSidebar}>
60
62
  <ProminenceLayout.ProminentSection>
@@ -193,6 +193,7 @@ const SidePane = ({
193
193
  });
194
194
 
195
195
  if (!trackId && !SidepaneComponent) {
196
+ console.log('sidepane not rendered', { trackId, SidepaneComponent });
196
197
  return null;
197
198
  }
198
199