@100mslive/roomkit-react 0.3.12-alpha.3 → 0.3.12-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -7672,7 +7672,7 @@
7672
7672
  "format": "esm"
7673
7673
  },
7674
7674
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7675
- "bytes": 4882,
7675
+ "bytes": 4997,
7676
7676
  "imports": [
7677
7677
  {
7678
7678
  "path": "react",
@@ -10944,7 +10944,7 @@
10944
10944
  ],
10945
10945
  "format": "esm"
10946
10946
  },
10947
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2acd33/tldraw.css": {
10947
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231ee82/tldraw.css": {
10948
10948
  "bytes": 80111,
10949
10949
  "imports": [
10950
10950
  {
@@ -10994,7 +10994,7 @@
10994
10994
  }
10995
10995
  ]
10996
10996
  },
10997
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2ac5f0/index.css": {
10997
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231e7a0/index.css": {
10998
10998
  "bytes": 597,
10999
10999
  "imports": [
11000
11000
  {
@@ -11003,7 +11003,7 @@
11003
11003
  "external": true
11004
11004
  },
11005
11005
  {
11006
- "path": "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2acd33/tldraw.css",
11006
+ "path": "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231ee82/tldraw.css",
11007
11007
  "kind": "import-rule",
11008
11008
  "original": "@tldraw/tldraw/tldraw.css"
11009
11009
  }
@@ -11078,7 +11078,7 @@
11078
11078
  "original": "../../common/constants"
11079
11079
  },
11080
11080
  {
11081
- "path": "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2ac5f0/index.css",
11081
+ "path": "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231e7a0/index.css",
11082
11082
  "kind": "import-statement",
11083
11083
  "original": "@100mslive/hms-whiteboard/index.css"
11084
11084
  },
@@ -13356,7 +13356,7 @@
13356
13356
  "format": "esm"
13357
13357
  },
13358
13358
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
13359
- "bytes": 8003,
13359
+ "bytes": 8034,
13360
13360
  "imports": [
13361
13361
  {
13362
13362
  "path": "react",
@@ -14302,7 +14302,7 @@
14302
14302
  "dist/index.js": {
14303
14303
  "imports": [
14304
14304
  {
14305
- "path": "dist/chunk-PPWKDU5P.js",
14305
+ "path": "dist/chunk-AKD6OMF6.js",
14306
14306
  "kind": "import-statement"
14307
14307
  }
14308
14308
  ],
@@ -14376,16 +14376,16 @@
14376
14376
  "inputs": {},
14377
14377
  "bytes": 1822
14378
14378
  },
14379
- "dist/HLSView-Y6XTCMLB.js.map": {
14379
+ "dist/HLSView-FFS2AZC5.js.map": {
14380
14380
  "imports": [],
14381
14381
  "exports": [],
14382
14382
  "inputs": {},
14383
14383
  "bytes": 100275
14384
14384
  },
14385
- "dist/HLSView-Y6XTCMLB.js": {
14385
+ "dist/HLSView-FFS2AZC5.js": {
14386
14386
  "imports": [
14387
14387
  {
14388
- "path": "dist/chunk-PPWKDU5P.js",
14388
+ "path": "dist/chunk-AKD6OMF6.js",
14389
14389
  "kind": "import-statement"
14390
14390
  },
14391
14391
  {
@@ -14563,7 +14563,7 @@
14563
14563
  "default"
14564
14564
  ],
14565
14565
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
14566
- "cssBundle": "dist/HLSView-3XOPXTNY.css",
14566
+ "cssBundle": "dist/HLSView-KS57W3WL.css",
14567
14567
  "inputs": {
14568
14568
  "src/Prebuilt/layouts/HLSView.jsx": {
14569
14569
  "bytesInOutput": 27671
@@ -14622,13 +14622,13 @@
14622
14622
  },
14623
14623
  "bytes": 61702
14624
14624
  },
14625
- "dist/chunk-PPWKDU5P.js.map": {
14625
+ "dist/chunk-AKD6OMF6.js.map": {
14626
14626
  "imports": [],
14627
14627
  "exports": [],
14628
14628
  "inputs": {},
14629
- "bytes": 3271733
14629
+ "bytes": 3271970
14630
14630
  },
14631
- "dist/chunk-PPWKDU5P.js": {
14631
+ "dist/chunk-AKD6OMF6.js": {
14632
14632
  "imports": [
14633
14633
  {
14634
14634
  "path": "react",
@@ -17101,7 +17101,7 @@
17101
17101
  "external": true
17102
17102
  },
17103
17103
  {
17104
- "path": "dist/HLSView-Y6XTCMLB.js",
17104
+ "path": "dist/HLSView-FFS2AZC5.js",
17105
17105
  "kind": "dynamic-import"
17106
17106
  },
17107
17107
  {
@@ -17603,7 +17603,7 @@
17603
17603
  ],
17604
17604
  "inputs": {
17605
17605
  "<define:process.env>": {
17606
- "bytesInOutput": 17908
17606
+ "bytesInOutput": 17925
17607
17607
  },
17608
17608
  "../../node_modules/lodash/lodash.js": {
17609
17609
  "bytesInOutput": 224310
@@ -18260,7 +18260,7 @@
18260
18260
  "bytesInOutput": 1874
18261
18261
  },
18262
18262
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
18263
- "bytesInOutput": 5037
18263
+ "bytesInOutput": 5206
18264
18264
  },
18265
18265
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
18266
18266
  "bytesInOutput": 1304
@@ -18290,7 +18290,7 @@
18290
18290
  "bytesInOutput": 5649
18291
18291
  },
18292
18292
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
18293
- "bytesInOutput": 14744
18293
+ "bytesInOutput": 14742
18294
18294
  },
18295
18295
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
18296
18296
  "bytesInOutput": 9785
@@ -18419,7 +18419,7 @@
18419
18419
  "bytesInOutput": 3834
18420
18420
  },
18421
18421
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
18422
- "bytesInOutput": 2181
18422
+ "bytesInOutput": 2183
18423
18423
  },
18424
18424
  "src/Prebuilt/components/SecondaryTiles.tsx": {
18425
18425
  "bytesInOutput": 2706
@@ -18445,7 +18445,7 @@
18445
18445
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
18446
18446
  "bytesInOutput": 2793
18447
18447
  },
18448
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2ac5f0/index.css": {
18448
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231e7a0/index.css": {
18449
18449
  "bytesInOutput": 0
18450
18450
  },
18451
18451
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -18506,7 +18506,7 @@
18506
18506
  "bytesInOutput": 27
18507
18507
  },
18508
18508
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
18509
- "bytesInOutput": 8048
18509
+ "bytesInOutput": 8113
18510
18510
  },
18511
18511
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
18512
18512
  "bytesInOutput": 1053
@@ -18587,7 +18587,7 @@
18587
18587
  "bytesInOutput": 651
18588
18588
  }
18589
18589
  },
18590
- "bytes": 1342507
18590
+ "bytes": 1342758
18591
18591
  },
18592
18592
  "dist/index.css.map": {
18593
18593
  "imports": [],
@@ -18649,22 +18649,22 @@
18649
18649
  }
18650
18650
  ],
18651
18651
  "inputs": {
18652
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2acd33/tldraw.css": {
18652
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231ee82/tldraw.css": {
18653
18653
  "bytesInOutput": 75223
18654
18654
  },
18655
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2ac5f0/index.css": {
18655
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231e7a0/index.css": {
18656
18656
  "bytesInOutput": 401
18657
18657
  }
18658
18658
  },
18659
18659
  "bytes": 75901
18660
18660
  },
18661
- "dist/HLSView-3XOPXTNY.css.map": {
18661
+ "dist/HLSView-KS57W3WL.css.map": {
18662
18662
  "imports": [],
18663
18663
  "exports": [],
18664
18664
  "inputs": {},
18665
18665
  "bytes": 122402
18666
18666
  },
18667
- "dist/HLSView-3XOPXTNY.css": {
18667
+ "dist/HLSView-KS57W3WL.css": {
18668
18668
  "imports": [
18669
18669
  {
18670
18670
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -18718,10 +18718,10 @@
18718
18718
  }
18719
18719
  ],
18720
18720
  "inputs": {
18721
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2acd33/tldraw.css": {
18721
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231ee82/tldraw.css": {
18722
18722
  "bytesInOutput": 75223
18723
18723
  },
18724
- "../../../../../../../tmp/tmp-2787-3hTzrwL7tbR5/18fc9c2ac5f0/index.css": {
18724
+ "../../../../../../../tmp/tmp-2820-qIAsQhpY2UjE/18fe8231e7a0/index.css": {
18725
18725
  "bytesInOutput": 401
18726
18726
  }
18727
18727
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.12-alpha.3",
13
+ "version": "0.3.12-alpha.5",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -74,12 +74,12 @@
74
74
  "react": ">=17.0.2 <19.0.0"
75
75
  },
76
76
  "dependencies": {
77
- "@100mslive/hls-player": "0.3.12-alpha.3",
77
+ "@100mslive/hls-player": "0.3.12-alpha.5",
78
78
  "@100mslive/hms-noise-cancellation": "0.0.1",
79
- "@100mslive/hms-virtual-background": "1.13.12-alpha.3",
80
- "@100mslive/hms-whiteboard": "0.0.2-alpha.3",
81
- "@100mslive/react-icons": "0.10.12-alpha.3",
82
- "@100mslive/react-sdk": "0.10.12-alpha.3",
79
+ "@100mslive/hms-virtual-background": "1.13.12-alpha.5",
80
+ "@100mslive/hms-whiteboard": "0.0.2-alpha.5",
81
+ "@100mslive/react-icons": "0.10.12-alpha.5",
82
+ "@100mslive/react-sdk": "0.10.12-alpha.5",
83
83
  "@100mslive/types-prebuilt": "0.12.8",
84
84
  "@emoji-mart/data": "^1.0.6",
85
85
  "@emoji-mart/react": "^1.0.1",
@@ -115,5 +115,5 @@
115
115
  "uuid": "^8.3.2",
116
116
  "worker-timers": "^7.0.40"
117
117
  },
118
- "gitHead": "86fc40486a11a97f83ad8c21ccd78eeede6a5b30"
118
+ "gitHead": "09711a75695943a34c79faf0c018f57b80ad0fa7"
119
119
  }
@@ -172,7 +172,7 @@ export function Notifications() {
172
172
  }
173
173
  break;
174
174
  case HMSNotificationTypes.NEW_MESSAGE:
175
- if (amIScreenSharing) {
175
+ if (amIScreenSharing && !notification.data?.ignored) {
176
176
  showNotification(`New message from ${notification.data.senderName}`, {
177
177
  body: notification.data.message,
178
178
  icon: logoURL,
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef, useState } from 'react';
2
2
  import {
3
- selectLocalPeerID,
3
+ selectLocalPeer,
4
4
  selectPeerNameByID,
5
5
  selectPermissions,
6
6
  selectPollByID,
@@ -31,7 +31,9 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
31
31
  const showSingleView = poll?.type === 'quiz' && poll.state === 'started';
32
32
  const fetchedInitialResponses = useRef(false);
33
33
  const [savedResponses, setSavedResponses] = useState<Record<any, any>>({});
34
- const localPeerId = useHMSStore(selectLocalPeerID);
34
+ const localPeer = useHMSStore(selectLocalPeer);
35
+ const localPeerId = localPeer?.id;
36
+ const customerUserId = localPeer?.customerUserId;
35
37
 
36
38
  // To reset whenever a different poll is opened
37
39
  useEffect(() => {
@@ -51,7 +53,7 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
51
53
 
52
54
  useEffect(() => {
53
55
  if (poll?.questions) {
54
- const localPeerResponses = getPeerResponses(poll.questions, localPeerId);
56
+ const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
55
57
  // @ts-ignore
56
58
  localPeerResponses?.forEach(response => {
57
59
  if (response) {
@@ -63,7 +65,7 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
63
65
  }
64
66
  });
65
67
  }
66
- }, [localPeerId, poll?.questions, id]);
68
+ }, [localPeerId, poll?.questions, id, customerUserId]);
67
69
 
68
70
  if (!poll) {
69
71
  return null;