@100mslive/roomkit-react 0.2.2-alpha.0 → 0.2.2-alpha.1

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-ARSLHHAZ.js";
65
+ } from "./chunk-XXVJPGLN.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -7010,7 +7010,7 @@
7010
7010
  "format": "esm"
7011
7011
  },
7012
7012
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7013
- "bytes": 3231,
7013
+ "bytes": 3251,
7014
7014
  "imports": [
7015
7015
  {
7016
7016
  "path": "react",
@@ -8706,7 +8706,7 @@
8706
8706
  "format": "esm"
8707
8707
  },
8708
8708
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
8709
- "bytes": 6013,
8709
+ "bytes": 6047,
8710
8710
  "imports": [
8711
8711
  {
8712
8712
  "path": "react",
@@ -12572,7 +12572,7 @@
12572
12572
  "imports": [],
12573
12573
  "exports": [],
12574
12574
  "inputs": {},
12575
- "bytes": 3068205
12575
+ "bytes": 3068294
12576
12576
  },
12577
12577
  "dist/index.cjs.js": {
12578
12578
  "imports": [
@@ -15246,7 +15246,7 @@
15246
15246
  "entryPoint": "src/index.ts",
15247
15247
  "inputs": {
15248
15248
  "<define:process.env>": {
15249
- "bytesInOutput": 17193
15249
+ "bytesInOutput": 17194
15250
15250
  },
15251
15251
  "src/Theme/base.config.ts": {
15252
15252
  "bytesInOutput": 6104
@@ -15888,7 +15888,7 @@
15888
15888
  "bytesInOutput": 1338
15889
15889
  },
15890
15890
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
15891
- "bytesInOutput": 4021
15891
+ "bytesInOutput": 4052
15892
15892
  },
15893
15893
  "src/Prebuilt/components/Polls/Polls.tsx": {
15894
15894
  "bytesInOutput": 1177
@@ -15987,7 +15987,7 @@
15987
15987
  "bytesInOutput": 908
15988
15988
  },
15989
15989
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
15990
- "bytesInOutput": 7338
15990
+ "bytesInOutput": 7372
15991
15991
  },
15992
15992
  "src/Prebuilt/layouts/SidePane.tsx": {
15993
15993
  "bytesInOutput": 5399
@@ -16242,7 +16242,7 @@
16242
16242
  "bytesInOutput": 2980
16243
16243
  }
16244
16244
  },
16245
- "bytes": 1439105
16245
+ "bytes": 1439171
16246
16246
  }
16247
16247
  }
16248
16248
  }
@@ -7010,7 +7010,7 @@
7010
7010
  "format": "esm"
7011
7011
  },
7012
7012
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7013
- "bytes": 3231,
7013
+ "bytes": 3251,
7014
7014
  "imports": [
7015
7015
  {
7016
7016
  "path": "react",
@@ -8706,7 +8706,7 @@
8706
8706
  "format": "esm"
8707
8707
  },
8708
8708
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
8709
- "bytes": 6013,
8709
+ "bytes": 6047,
8710
8710
  "imports": [
8711
8711
  {
8712
8712
  "path": "react",
@@ -12577,7 +12577,7 @@
12577
12577
  "dist/index.js": {
12578
12578
  "imports": [
12579
12579
  {
12580
- "path": "dist/chunk-ARSLHHAZ.js",
12580
+ "path": "dist/chunk-XXVJPGLN.js",
12581
12581
  "kind": "import-statement"
12582
12582
  }
12583
12583
  ],
@@ -12650,16 +12650,16 @@
12650
12650
  "inputs": {},
12651
12651
  "bytes": 1822
12652
12652
  },
12653
- "dist/HLSView-4TLGLPKO.js.map": {
12653
+ "dist/HLSView-2DSOSSTP.js.map": {
12654
12654
  "imports": [],
12655
12655
  "exports": [],
12656
12656
  "inputs": {},
12657
12657
  "bytes": 58852
12658
12658
  },
12659
- "dist/HLSView-4TLGLPKO.js": {
12659
+ "dist/HLSView-2DSOSSTP.js": {
12660
12660
  "imports": [
12661
12661
  {
12662
- "path": "dist/chunk-ARSLHHAZ.js",
12662
+ "path": "dist/chunk-XXVJPGLN.js",
12663
12663
  "kind": "import-statement"
12664
12664
  },
12665
12665
  {
@@ -12823,13 +12823,13 @@
12823
12823
  },
12824
12824
  "bytes": 36970
12825
12825
  },
12826
- "dist/chunk-ARSLHHAZ.js.map": {
12826
+ "dist/chunk-XXVJPGLN.js.map": {
12827
12827
  "imports": [],
12828
12828
  "exports": [],
12829
12829
  "inputs": {},
12830
- "bytes": 3004868
12830
+ "bytes": 3004956
12831
12831
  },
12832
- "dist/chunk-ARSLHHAZ.js": {
12832
+ "dist/chunk-XXVJPGLN.js": {
12833
12833
  "imports": [
12834
12834
  {
12835
12835
  "path": "react",
@@ -15047,7 +15047,7 @@
15047
15047
  "external": true
15048
15048
  },
15049
15049
  {
15050
- "path": "dist/HLSView-4TLGLPKO.js",
15050
+ "path": "dist/HLSView-2DSOSSTP.js",
15051
15051
  "kind": "dynamic-import"
15052
15052
  },
15053
15053
  {
@@ -15469,7 +15469,7 @@
15469
15469
  ],
15470
15470
  "inputs": {
15471
15471
  "<define:process.env>": {
15472
- "bytesInOutput": 17193
15472
+ "bytesInOutput": 17194
15473
15473
  },
15474
15474
  "../../node_modules/lodash/lodash.js": {
15475
15475
  "bytesInOutput": 224265
@@ -16087,7 +16087,7 @@
16087
16087
  "bytesInOutput": 1874
16088
16088
  },
16089
16089
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
16090
- "bytesInOutput": 3177
16090
+ "bytesInOutput": 3206
16091
16091
  },
16092
16092
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
16093
16093
  "bytesInOutput": 1221
@@ -16105,7 +16105,7 @@
16105
16105
  "bytesInOutput": 3444
16106
16106
  },
16107
16107
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
16108
- "bytesInOutput": 14278
16108
+ "bytesInOutput": 14276
16109
16109
  },
16110
16110
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
16111
16111
  "bytesInOutput": 9777
@@ -16180,7 +16180,7 @@
16180
16180
  "bytesInOutput": 1050
16181
16181
  },
16182
16182
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
16183
- "bytesInOutput": 5984
16183
+ "bytesInOutput": 6018
16184
16184
  },
16185
16185
  "src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
16186
16186
  "bytesInOutput": 1157
@@ -16384,7 +16384,7 @@
16384
16384
  "bytesInOutput": 651
16385
16385
  }
16386
16386
  },
16387
- "bytes": 1220075
16387
+ "bytes": 1220137
16388
16388
  }
16389
16389
  }
16390
16390
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.2-alpha.0",
13
+ "version": "0.2.2-alpha.1",
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.2-alpha.0",
86
- "@100mslive/hms-virtual-background": "1.12.2-alpha.0",
87
- "@100mslive/react-icons": "0.9.2-alpha.0",
88
- "@100mslive/react-sdk": "0.9.2-alpha.0",
85
+ "@100mslive/hls-player": "0.2.2-alpha.1",
86
+ "@100mslive/hms-virtual-background": "1.12.2-alpha.1",
87
+ "@100mslive/react-icons": "0.9.2-alpha.1",
88
+ "@100mslive/react-sdk": "0.9.2-alpha.1",
89
89
  "@100mslive/types-prebuilt": "0.12.5",
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": "8d716a49dfb9bfed4ee6863e9e55490b39b49ed5"
123
+ "gitHead": "470903541e619aa64cfa01ec9b3a59b32445e29d"
124
124
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
- selectLocalPeerID,
4
3
  selectPeerNameByID,
4
+ selectPermissions,
5
5
  selectPollByID,
6
6
  useHMSActions,
7
7
  useHMSStore,
@@ -21,7 +21,8 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
21
21
  const actions = useHMSActions();
22
22
  const poll = useHMSStore(selectPollByID(id));
23
23
  const pollCreatorName = useHMSStore(selectPeerNameByID(poll?.createdBy));
24
- const isLocalPeerCreator = useHMSStore(selectLocalPeerID) === poll?.createdBy;
24
+ const permissions = useHMSStore(selectPermissions);
25
+ const canEndActivity = !!permissions?.pollWrite;
25
26
  const { setPollView } = usePollViewState();
26
27
  // Sets view - linear or vertical, toggles timer indicator
27
28
  const showSingleView = poll?.type === 'quiz' && poll.state === 'started';
@@ -76,7 +77,7 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
76
77
 
77
78
  {showSingleView ? <TimedView poll={poll} /> : <StandardView poll={poll} />}
78
79
 
79
- {poll.state === 'started' && isLocalPeerCreator && (
80
+ {poll.state === 'started' && canEndActivity && (
80
81
  <Button
81
82
  variant="danger"
82
83
  css={{ fontWeight: '$semiBold', w: 'max-content', ml: 'auto', mt: '$8' }}
@@ -136,7 +136,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
136
136
  activeBackground={activeBackground}
137
137
  />
138
138
 
139
- {activeBackground === HMSVirtualBackgroundTypes.BLUR ? (
139
+ {activeBackground === HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? (
140
140
  <Slider
141
141
  value={[blurAmount]}
142
142
  onValueChange={async e => {