@100mslive/roomkit-react 0.2.8-alpha.6 → 0.2.8-alpha.7

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-2ZFAT7KY.js";
65
+ } from "./chunk-DRBTAFKN.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -2205,7 +2205,7 @@
2205
2205
  "format": "esm"
2206
2206
  },
2207
2207
  "src/Prebuilt/components/AppData/useSidepane.js": {
2208
- "bytes": 2753,
2208
+ "bytes": 3164,
2209
2209
  "imports": [
2210
2210
  {
2211
2211
  "path": "react",
@@ -5186,7 +5186,7 @@
5186
5186
  "format": "esm"
5187
5187
  },
5188
5188
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
5189
- "bytes": 12769,
5189
+ "bytes": 12812,
5190
5190
  "imports": [
5191
5191
  {
5192
5192
  "path": "react",
@@ -13542,7 +13542,7 @@
13542
13542
  "imports": [],
13543
13543
  "exports": [],
13544
13544
  "inputs": {},
13545
- "bytes": 3250301
13545
+ "bytes": 3251031
13546
13546
  },
13547
13547
  "dist/index.cjs.js": {
13548
13548
  "imports": [
@@ -16431,7 +16431,7 @@
16431
16431
  "entryPoint": "src/index.ts",
16432
16432
  "inputs": {
16433
16433
  "<define:process.env>": {
16434
- "bytesInOutput": 18293
16434
+ "bytesInOutput": 18233
16435
16435
  },
16436
16436
  "src/Theme/base.config.ts": {
16437
16437
  "bytesInOutput": 6104
@@ -16725,7 +16725,7 @@
16725
16725
  "bytesInOutput": 3003
16726
16726
  },
16727
16727
  "src/Prebuilt/components/AppData/useSidepane.js": {
16728
- "bytesInOutput": 2838
16728
+ "bytesInOutput": 3258
16729
16729
  },
16730
16730
  "src/Prebuilt/components/AppData/AppData.tsx": {
16731
16731
  "bytesInOutput": 6542
@@ -16950,7 +16950,7 @@
16950
16950
  "bytesInOutput": 938
16951
16951
  },
16952
16952
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
16953
- "bytesInOutput": 13317
16953
+ "bytesInOutput": 13339
16954
16954
  },
16955
16955
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
16956
16956
  "bytesInOutput": 831
@@ -17475,7 +17475,7 @@
17475
17475
  "bytesInOutput": 2980
17476
17476
  }
17477
17477
  },
17478
- "bytes": 1541144
17478
+ "bytes": 1541526
17479
17479
  }
17480
17480
  }
17481
17481
  }
@@ -2205,7 +2205,7 @@
2205
2205
  "format": "esm"
2206
2206
  },
2207
2207
  "src/Prebuilt/components/AppData/useSidepane.js": {
2208
- "bytes": 2753,
2208
+ "bytes": 3164,
2209
2209
  "imports": [
2210
2210
  {
2211
2211
  "path": "react",
@@ -5186,7 +5186,7 @@
5186
5186
  "format": "esm"
5187
5187
  },
5188
5188
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
5189
- "bytes": 12769,
5189
+ "bytes": 12812,
5190
5190
  "imports": [
5191
5191
  {
5192
5192
  "path": "react",
@@ -13547,7 +13547,7 @@
13547
13547
  "dist/index.js": {
13548
13548
  "imports": [
13549
13549
  {
13550
- "path": "dist/chunk-2ZFAT7KY.js",
13550
+ "path": "dist/chunk-DRBTAFKN.js",
13551
13551
  "kind": "import-statement"
13552
13552
  }
13553
13553
  ],
@@ -13620,16 +13620,16 @@
13620
13620
  "inputs": {},
13621
13621
  "bytes": 1822
13622
13622
  },
13623
- "dist/HLSView-53PDKIS2.js.map": {
13623
+ "dist/HLSView-MYKM5AXS.js.map": {
13624
13624
  "imports": [],
13625
13625
  "exports": [],
13626
13626
  "inputs": {},
13627
13627
  "bytes": 87240
13628
13628
  },
13629
- "dist/HLSView-53PDKIS2.js": {
13629
+ "dist/HLSView-MYKM5AXS.js": {
13630
13630
  "imports": [
13631
13631
  {
13632
- "path": "dist/chunk-2ZFAT7KY.js",
13632
+ "path": "dist/chunk-DRBTAFKN.js",
13633
13633
  "kind": "import-statement"
13634
13634
  },
13635
13635
  {
@@ -13847,13 +13847,13 @@
13847
13847
  },
13848
13848
  "bytes": 52721
13849
13849
  },
13850
- "dist/chunk-2ZFAT7KY.js.map": {
13850
+ "dist/chunk-DRBTAFKN.js.map": {
13851
13851
  "imports": [],
13852
13852
  "exports": [],
13853
13853
  "inputs": {},
13854
- "bytes": 3158788
13854
+ "bytes": 3159515
13855
13855
  },
13856
- "dist/chunk-2ZFAT7KY.js": {
13856
+ "dist/chunk-DRBTAFKN.js": {
13857
13857
  "imports": [
13858
13858
  {
13859
13859
  "path": "react",
@@ -16206,7 +16206,7 @@
16206
16206
  "external": true
16207
16207
  },
16208
16208
  {
16209
- "path": "dist/HLSView-53PDKIS2.js",
16209
+ "path": "dist/HLSView-MYKM5AXS.js",
16210
16210
  "kind": "dynamic-import"
16211
16211
  },
16212
16212
  {
@@ -16672,7 +16672,7 @@
16672
16672
  ],
16673
16673
  "inputs": {
16674
16674
  "<define:process.env>": {
16675
- "bytesInOutput": 18293
16675
+ "bytesInOutput": 18233
16676
16676
  },
16677
16677
  "../../node_modules/lodash/lodash.js": {
16678
16678
  "bytesInOutput": 224280
@@ -16960,7 +16960,7 @@
16960
16960
  "bytesInOutput": 3210
16961
16961
  },
16962
16962
  "src/Prebuilt/components/AppData/useSidepane.js": {
16963
- "bytesInOutput": 2131
16963
+ "bytesInOutput": 2499
16964
16964
  },
16965
16965
  "src/Prebuilt/components/AuthToken.jsx": {
16966
16966
  "bytesInOutput": 3652
@@ -17104,7 +17104,7 @@
17104
17104
  "bytesInOutput": 1948
17105
17105
  },
17106
17106
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
17107
- "bytesInOutput": 10857
17107
+ "bytesInOutput": 10879
17108
17108
  },
17109
17109
  "src/Prebuilt/components/Header/StreamActions.tsx": {
17110
17110
  "bytesInOutput": 10031
@@ -17626,7 +17626,7 @@
17626
17626
  "bytesInOutput": 651
17627
17627
  }
17628
17628
  },
17629
- "bytes": 1293454
17629
+ "bytes": 1293784
17630
17630
  }
17631
17631
  }
17632
17632
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.8-alpha.6",
13
+ "version": "0.2.8-alpha.7",
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.6",
85
+ "@100mslive/hls-player": "0.2.8-alpha.7",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.12.8-alpha.6",
88
- "@100mslive/react-icons": "0.9.8-alpha.6",
89
- "@100mslive/react-sdk": "0.9.8-alpha.6",
87
+ "@100mslive/hms-virtual-background": "1.12.8-alpha.7",
88
+ "@100mslive/react-icons": "0.9.8-alpha.7",
89
+ "@100mslive/react-sdk": "0.9.8-alpha.7",
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": "666634daeed360298e28b87d08d82b96639e0f70"
125
+ "gitHead": "48bc1b57113a4245b79055a80f4f1f5d3b8795aa"
126
126
  }
@@ -46,27 +46,39 @@ export const usePollViewToggle = () => {
46
46
 
47
47
  const togglePollView = useCallback(
48
48
  id => {
49
- const newView = match({ id, isOpen, view })
49
+ match({ id, isOpen, view })
50
50
  .with(
51
51
  {
52
52
  id: P.string,
53
53
  },
54
- () => POLL_VIEWS.VOTE,
54
+ () => {
55
+ setPollState({
56
+ [POLL_STATE.pollInView]: id,
57
+ [POLL_STATE.view]: POLL_VIEWS.VOTE,
58
+ });
59
+ hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
60
+ },
55
61
  )
56
62
  .with(
57
63
  {
58
64
  isOpen: true,
59
65
  view: P.when(view => !!view),
60
66
  },
61
- () => null,
67
+ () => {
68
+ setPollState({
69
+ [POLL_STATE.pollInView]: undefined,
70
+ [POLL_STATE.view]: null,
71
+ });
72
+ hmsActions.setAppData(APP_DATA.sidePane, '');
73
+ },
62
74
  )
63
- .otherwise(() => POLL_VIEWS.CREATE_POLL_QUIZ);
64
-
65
- setPollState({
66
- [POLL_STATE.pollInView]: id,
67
- [POLL_STATE.view]: newView,
68
- });
69
- hmsActions.setAppData(APP_DATA.sidePane, newView ? SIDE_PANE_OPTIONS.POLLS : '');
75
+ .otherwise(() => {
76
+ setPollState({
77
+ [POLL_STATE.pollInView]: undefined,
78
+ [POLL_STATE.view]: POLL_VIEWS.CREATE_POLL_QUIZ,
79
+ });
80
+ hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
81
+ });
70
82
  },
71
83
  [hmsActions, view, setPollState, isOpen],
72
84
  );
@@ -291,7 +291,8 @@ export const MwebOptions = ({
291
291
  {match({ isBrowserRecordingOn, isRecordingLoading })
292
292
  .with({ isBrowserRecordingOn: true, isRecordingLoading: false }, () => 'Recording On')
293
293
  .with({ isRecordingLoading: true }, () => 'Starting Recording')
294
- .with({ isRecordingLoading: false }, () => 'Start Recording')}
294
+ .with({ isRecordingLoading: false }, () => 'Start Recording')
295
+ .otherwise(() => null)}
295
296
  </ActionTile.Title>
296
297
  </ActionTile.Root>
297
298
  ) : null}