@100mslive/roomkit-react 0.3.3-alpha.1 → 0.3.3-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-ZDW56PPL.js";
65
+ } from "./chunk-KUFQ5ONV.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -6047,7 +6047,7 @@
6047
6047
  "format": "esm"
6048
6048
  },
6049
6049
  "src/Prebuilt/components/Footer/RoleAccordion.tsx": {
6050
- "bytes": 5767,
6050
+ "bytes": 5728,
6051
6051
  "imports": [
6052
6052
  {
6053
6053
  "path": "react",
@@ -6159,7 +6159,7 @@
6159
6159
  "format": "esm"
6160
6160
  },
6161
6161
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
6162
- "bytes": 12431,
6162
+ "bytes": 12459,
6163
6163
  "imports": [
6164
6164
  {
6165
6165
  "path": "react",
@@ -13704,7 +13704,7 @@
13704
13704
  "imports": [],
13705
13705
  "exports": [],
13706
13706
  "inputs": {},
13707
- "bytes": 3281946
13707
+ "bytes": 3281974
13708
13708
  },
13709
13709
  "dist/index.cjs.js": {
13710
13710
  "imports": [
@@ -16628,7 +16628,7 @@
16628
16628
  "entryPoint": "src/index.ts",
16629
16629
  "inputs": {
16630
16630
  "<define:process.env>": {
16631
- "bytesInOutput": 18238
16631
+ "bytesInOutput": 18236
16632
16632
  },
16633
16633
  "src/Theme/base.config.ts": {
16634
16634
  "bytesInOutput": 6104
@@ -17213,7 +17213,7 @@
17213
17213
  "bytesInOutput": 2181
17214
17214
  },
17215
17215
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
17216
- "bytesInOutput": 14347
17216
+ "bytesInOutput": 14387
17217
17217
  },
17218
17218
  "src/Prebuilt/components/Footer/PollsToggle.tsx": {
17219
17219
  "bytesInOutput": 1521
@@ -17678,7 +17678,7 @@
17678
17678
  "bytesInOutput": 2980
17679
17679
  }
17680
17680
  },
17681
- "bytes": 1561066
17681
+ "bytes": 1561104
17682
17682
  }
17683
17683
  }
17684
17684
  }
@@ -6047,7 +6047,7 @@
6047
6047
  "format": "esm"
6048
6048
  },
6049
6049
  "src/Prebuilt/components/Footer/RoleAccordion.tsx": {
6050
- "bytes": 5767,
6050
+ "bytes": 5728,
6051
6051
  "imports": [
6052
6052
  {
6053
6053
  "path": "react",
@@ -6159,7 +6159,7 @@
6159
6159
  "format": "esm"
6160
6160
  },
6161
6161
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
6162
- "bytes": 12431,
6162
+ "bytes": 12459,
6163
6163
  "imports": [
6164
6164
  {
6165
6165
  "path": "react",
@@ -13709,7 +13709,7 @@
13709
13709
  "dist/index.js": {
13710
13710
  "imports": [
13711
13711
  {
13712
- "path": "dist/chunk-ZDW56PPL.js",
13712
+ "path": "dist/chunk-KUFQ5ONV.js",
13713
13713
  "kind": "import-statement"
13714
13714
  }
13715
13715
  ],
@@ -13782,16 +13782,16 @@
13782
13782
  "inputs": {},
13783
13783
  "bytes": 1822
13784
13784
  },
13785
- "dist/HLSView-GDOF4655.js.map": {
13785
+ "dist/HLSView-GI5NXBYN.js.map": {
13786
13786
  "imports": [],
13787
13787
  "exports": [],
13788
13788
  "inputs": {},
13789
13789
  "bytes": 90585
13790
13790
  },
13791
- "dist/HLSView-GDOF4655.js": {
13791
+ "dist/HLSView-GI5NXBYN.js": {
13792
13792
  "imports": [
13793
13793
  {
13794
- "path": "dist/chunk-ZDW56PPL.js",
13794
+ "path": "dist/chunk-KUFQ5ONV.js",
13795
13795
  "kind": "import-statement"
13796
13796
  },
13797
13797
  {
@@ -14009,13 +14009,13 @@
14009
14009
  },
14010
14010
  "bytes": 55694
14011
14011
  },
14012
- "dist/chunk-ZDW56PPL.js.map": {
14012
+ "dist/chunk-KUFQ5ONV.js.map": {
14013
14013
  "imports": [],
14014
14014
  "exports": [],
14015
14015
  "inputs": {},
14016
- "bytes": 3186774
14016
+ "bytes": 3186802
14017
14017
  },
14018
- "dist/chunk-ZDW56PPL.js": {
14018
+ "dist/chunk-KUFQ5ONV.js": {
14019
14019
  "imports": [
14020
14020
  {
14021
14021
  "path": "react",
@@ -16398,7 +16398,7 @@
16398
16398
  "external": true
16399
16399
  },
16400
16400
  {
16401
- "path": "dist/HLSView-GDOF4655.js",
16401
+ "path": "dist/HLSView-GI5NXBYN.js",
16402
16402
  "kind": "dynamic-import"
16403
16403
  },
16404
16404
  {
@@ -16873,7 +16873,7 @@
16873
16873
  ],
16874
16874
  "inputs": {
16875
16875
  "<define:process.env>": {
16876
- "bytesInOutput": 18238
16876
+ "bytesInOutput": 18236
16877
16877
  },
16878
16878
  "../../node_modules/lodash/lodash.js": {
16879
16879
  "bytesInOutput": 224298
@@ -17413,7 +17413,7 @@
17413
17413
  "bytesInOutput": 1404
17414
17414
  },
17415
17415
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
17416
- "bytesInOutput": 11695
17416
+ "bytesInOutput": 11723
17417
17417
  },
17418
17418
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
17419
17419
  "bytesInOutput": 3749
@@ -17833,7 +17833,7 @@
17833
17833
  "bytesInOutput": 651
17834
17834
  }
17835
17835
  },
17836
- "bytes": 1306968
17836
+ "bytes": 1306994
17837
17837
  }
17838
17838
  }
17839
17839
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.3-alpha.1",
13
+ "version": "0.3.3-alpha.2",
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.3-alpha.1",
85
+ "@100mslive/hls-player": "0.3.3-alpha.2",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.13.3-alpha.1",
88
- "@100mslive/react-icons": "0.10.3-alpha.1",
89
- "@100mslive/react-sdk": "0.10.3-alpha.1",
87
+ "@100mslive/hms-virtual-background": "1.13.3-alpha.2",
88
+ "@100mslive/react-icons": "0.10.3-alpha.2",
89
+ "@100mslive/react-sdk": "0.10.3-alpha.2",
90
90
  "@100mslive/types-prebuilt": "0.12.8",
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": "8e27b80c474e3487828a60fce4aa1f444aa14577"
125
+ "gitHead": "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c"
126
126
  }
@@ -324,12 +324,15 @@ const HandRaisedAccordionParticipantActions = ({ peerId, role }: { peerId: strin
324
324
  peerId,
325
325
  role,
326
326
  });
327
+ if (!shouldShowStageRoleChange) {
328
+ return null;
329
+ }
327
330
  return (
328
331
  <>
329
332
  <Button variant="standard" css={quickActionStyle} onClick={lowerPeerHand}>
330
333
  <CrossIcon height={18} width={18} />
331
334
  </Button>
332
- {shouldShowStageRoleChange && !isInStage && (
335
+ {!isInStage && (
333
336
  <Button variant="primary" onClick={handleStageAction} css={quickActionStyle}>
334
337
  <AddIcon height={18} width={18} />
335
338
  </Button>
@@ -149,18 +149,17 @@ export const RoleAccordion = ({
149
149
  <ChevronRightIcon />
150
150
  </Flex>
151
151
  ) : null}
152
- {isHandRaisedAccordion && (
152
+ {isHandRaisedAccordion && canBringToStage && (
153
153
  <>
154
154
  <HorizontalDivider />
155
155
  <Flex css={{ w: '100%', p: '$6', gap: '$4' }} justify="center">
156
156
  <Button variant="standard" onClick={lowerAllHands} icon css={{ pl: '$2' }}>
157
157
  <CrossIcon /> Lower all hands
158
158
  </Button>
159
- {canBringToStage && (
160
- <Button onClick={bringAllToStage} icon css={{ pl: '$2' }}>
161
- <AddIcon /> {bring_to_stage_label}
162
- </Button>
163
- )}
159
+
160
+ <Button onClick={bringAllToStage} icon css={{ pl: '$2' }}>
161
+ <AddIcon /> {bring_to_stage_label}
162
+ </Button>
164
163
  </Flex>
165
164
  </>
166
165
  )}