@100mslive/roomkit-react 0.3.11-alpha.4 → 0.3.11-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2884,7 +2884,7 @@
2884
2884
  "format": "esm"
2885
2885
  },
2886
2886
  "src/Prebuilt/common/hooks.ts": {
2887
- "bytes": 8658,
2887
+ "bytes": 8890,
2888
2888
  "imports": [
2889
2889
  {
2890
2890
  "path": "react",
@@ -2936,6 +2936,11 @@
2936
2936
  "kind": "import-statement",
2937
2937
  "original": "../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
2938
2938
  },
2939
+ {
2940
+ "path": "src/Prebuilt/common/utils.js",
2941
+ "kind": "import-statement",
2942
+ "original": "../common/utils"
2943
+ },
2939
2944
  {
2940
2945
  "path": "src/Prebuilt/common/constants.ts",
2941
2946
  "kind": "import-statement",
@@ -3874,7 +3879,7 @@
3874
3879
  "format": "esm"
3875
3880
  },
3876
3881
  "src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
3877
- "bytes": 4785,
3882
+ "bytes": 4817,
3878
3883
  "imports": [
3879
3884
  {
3880
3885
  "path": "react",
@@ -10444,7 +10449,7 @@
10444
10449
  ],
10445
10450
  "format": "esm"
10446
10451
  },
10447
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f756302/tldraw.css": {
10452
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ece43/tldraw.css": {
10448
10453
  "bytes": 80111,
10449
10454
  "imports": [
10450
10455
  {
@@ -10494,7 +10499,7 @@
10494
10499
  }
10495
10500
  ]
10496
10501
  },
10497
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f755cd0/index.css": {
10502
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ecd31/index.css": {
10498
10503
  "bytes": 597,
10499
10504
  "imports": [
10500
10505
  {
@@ -10503,7 +10508,7 @@
10503
10508
  "external": true
10504
10509
  },
10505
10510
  {
10506
- "path": "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f756302/tldraw.css",
10511
+ "path": "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ece43/tldraw.css",
10507
10512
  "kind": "import-rule",
10508
10513
  "original": "@tldraw/tldraw/tldraw.css"
10509
10514
  }
@@ -10578,7 +10583,7 @@
10578
10583
  "original": "../../common/constants"
10579
10584
  },
10580
10585
  {
10581
- "path": "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f755cd0/index.css",
10586
+ "path": "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ecd31/index.css",
10582
10587
  "kind": "import-statement",
10583
10588
  "original": "@100mslive/hms-whiteboard/index.css"
10584
10589
  },
@@ -13666,7 +13671,7 @@
13666
13671
  "dist/index.js": {
13667
13672
  "imports": [
13668
13673
  {
13669
- "path": "dist/chunk-GSFPM77I.js",
13674
+ "path": "dist/chunk-PHQZKIIP.js",
13670
13675
  "kind": "import-statement"
13671
13676
  }
13672
13677
  ],
@@ -13740,16 +13745,16 @@
13740
13745
  "inputs": {},
13741
13746
  "bytes": 1822
13742
13747
  },
13743
- "dist/HLSView-MHOO2EMG.js.map": {
13748
+ "dist/HLSView-TEDNZN52.js.map": {
13744
13749
  "imports": [],
13745
13750
  "exports": [],
13746
13751
  "inputs": {},
13747
13752
  "bytes": 99904
13748
13753
  },
13749
- "dist/HLSView-MHOO2EMG.js": {
13754
+ "dist/HLSView-TEDNZN52.js": {
13750
13755
  "imports": [
13751
13756
  {
13752
- "path": "dist/chunk-GSFPM77I.js",
13757
+ "path": "dist/chunk-PHQZKIIP.js",
13753
13758
  "kind": "import-statement"
13754
13759
  },
13755
13760
  {
@@ -13927,7 +13932,7 @@
13927
13932
  "default"
13928
13933
  ],
13929
13934
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
13930
- "cssBundle": "dist/HLSView-GJNR5AIU.css",
13935
+ "cssBundle": "dist/HLSView-WKNIOI6B.css",
13931
13936
  "inputs": {
13932
13937
  "src/Prebuilt/layouts/HLSView.jsx": {
13933
13938
  "bytesInOutput": 25793
@@ -13986,13 +13991,13 @@
13986
13991
  },
13987
13992
  "bytes": 58515
13988
13993
  },
13989
- "dist/chunk-GSFPM77I.js.map": {
13994
+ "dist/chunk-PHQZKIIP.js.map": {
13990
13995
  "imports": [],
13991
13996
  "exports": [],
13992
13997
  "inputs": {},
13993
- "bytes": 3251941
13998
+ "bytes": 3252251
13994
13999
  },
13995
- "dist/chunk-GSFPM77I.js": {
14000
+ "dist/chunk-PHQZKIIP.js": {
13996
14001
  "imports": [
13997
14002
  {
13998
14003
  "path": "react",
@@ -16470,7 +16475,7 @@
16470
16475
  "external": true
16471
16476
  },
16472
16477
  {
16473
- "path": "dist/HLSView-MHOO2EMG.js",
16478
+ "path": "dist/HLSView-TEDNZN52.js",
16474
16479
  "kind": "dynamic-import"
16475
16480
  },
16476
16481
  {
@@ -16948,7 +16953,7 @@
16948
16953
  ],
16949
16954
  "inputs": {
16950
16955
  "<define:process.env>": {
16951
- "bytesInOutput": 17869
16956
+ "bytesInOutput": 17887
16952
16957
  },
16953
16958
  "../../node_modules/lodash/lodash.js": {
16954
16959
  "bytesInOutput": 224301
@@ -17305,7 +17310,7 @@
17305
17310
  "bytesInOutput": 606
17306
17311
  },
17307
17312
  "src/Prebuilt/common/hooks.ts": {
17308
- "bytesInOutput": 6276
17313
+ "bytesInOutput": 6357
17309
17314
  },
17310
17315
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
17311
17316
  "bytesInOutput": 2346
@@ -17371,7 +17376,7 @@
17371
17376
  "bytesInOutput": 989
17372
17377
  },
17373
17378
  "src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
17374
- "bytesInOutput": 4749
17379
+ "bytesInOutput": 4757
17375
17380
  },
17376
17381
  "src/Prebuilt/components/MoreSettings/FullScreenItem.tsx": {
17377
17382
  "bytesInOutput": 628
@@ -17790,7 +17795,7 @@
17790
17795
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
17791
17796
  "bytesInOutput": 2656
17792
17797
  },
17793
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f755cd0/index.css": {
17798
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ecd31/index.css": {
17794
17799
  "bytesInOutput": 0
17795
17800
  },
17796
17801
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -17929,7 +17934,7 @@
17929
17934
  "bytesInOutput": 651
17930
17935
  }
17931
17936
  },
17932
- "bytes": 1303464
17937
+ "bytes": 1303571
17933
17938
  },
17934
17939
  "dist/index.css.map": {
17935
17940
  "imports": [],
@@ -17991,22 +17996,22 @@
17991
17996
  }
17992
17997
  ],
17993
17998
  "inputs": {
17994
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f756302/tldraw.css": {
17999
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ece43/tldraw.css": {
17995
18000
  "bytesInOutput": 75223
17996
18001
  },
17997
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f755cd0/index.css": {
18002
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ecd31/index.css": {
17998
18003
  "bytesInOutput": 401
17999
18004
  }
18000
18005
  },
18001
18006
  "bytes": 75901
18002
18007
  },
18003
- "dist/HLSView-GJNR5AIU.css.map": {
18008
+ "dist/HLSView-WKNIOI6B.css.map": {
18004
18009
  "imports": [],
18005
18010
  "exports": [],
18006
18011
  "inputs": {},
18007
18012
  "bytes": 122402
18008
18013
  },
18009
- "dist/HLSView-GJNR5AIU.css": {
18014
+ "dist/HLSView-WKNIOI6B.css": {
18010
18015
  "imports": [
18011
18016
  {
18012
18017
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -18060,10 +18065,10 @@
18060
18065
  }
18061
18066
  ],
18062
18067
  "inputs": {
18063
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f756302/tldraw.css": {
18068
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ece43/tldraw.css": {
18064
18069
  "bytesInOutput": 75223
18065
18070
  },
18066
- "../../../../../../../tmp/tmp-2829-Ahld4ijGqZ75/18fa4f755cd0/index.css": {
18071
+ "../../../../../../../tmp/tmp-2798-5jb9q1yNZ07L/18fa958ecd31/index.css": {
18067
18072
  "bytesInOutput": 401
18068
18073
  }
18069
18074
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.11-alpha.4",
13
+ "version": "0.3.11-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.11-alpha.4",
77
+ "@100mslive/hls-player": "0.3.11-alpha.5",
78
78
  "@100mslive/hms-noise-cancellation": "0.0.1",
79
- "@100mslive/hms-virtual-background": "1.13.11-alpha.4",
80
- "@100mslive/hms-whiteboard": "0.0.1-alpha.4",
81
- "@100mslive/react-icons": "0.10.11-alpha.4",
82
- "@100mslive/react-sdk": "0.10.11-alpha.4",
79
+ "@100mslive/hms-virtual-background": "1.13.11-alpha.5",
80
+ "@100mslive/hms-whiteboard": "0.0.1-alpha.5",
81
+ "@100mslive/react-icons": "0.10.11-alpha.5",
82
+ "@100mslive/react-sdk": "0.10.11-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": "c39a01d169bc0ab2239fcc4baf7b6cb205653c5c"
118
+ "gitHead": "3f3876ece9bd4adb3df1774c7ceb0f7185204f92"
119
119
  }
@@ -28,6 +28,8 @@ import { useRoomLayout } from '../provider/roomLayoutProvider';
28
28
  // @ts-ignore
29
29
  import { useSetAppDataByKey } from '../components/AppData/useUISettings';
30
30
  import { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
31
+ // @ts-ignore: No implicit any
32
+ import { isScreenshareSupported } from '../common/utils';
31
33
  import { APP_DATA, CHAT_SELECTOR, RTMP_RECORD_DEFAULT_RESOLUTION } from './constants';
32
34
  /**
33
35
  * Hook to execute a callback when alone in room(after a certain 5d of time)
@@ -232,9 +234,11 @@ export interface WaitingRoomInfo {
232
234
  export function useWaitingRoomInfo(): WaitingRoomInfo {
233
235
  const localPeerRole = useHMSStore(selectLocalPeerRole);
234
236
  const { video, audio, screen } = useHMSStore(selectIsAllowedToPublish);
237
+ const isScreenShareAllowed = isScreenshareSupported();
235
238
  const roles = useHMSStore(selectRolesMap);
236
239
  const peersByRoles = useHMSStore(selectPeersByRoles(localPeerRole?.subscribeParams.subscribeToRoles || []));
237
- const isNotAllowedToPublish = !(video || audio || screen);
240
+ // show no publish as screenshare in mweb is not possible
241
+ const isNotAllowedToPublish = !(video || audio || (screen && isScreenShareAllowed));
238
242
  const isScreenOnlyPublishParams: boolean = screen && !(video || audio);
239
243
  const hasSubscribedRolePublishing: boolean = useMemo(() => {
240
244
  return peersByRoles.some((peer: HMSPeer) => {
@@ -38,7 +38,8 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
38
38
  </Text>
39
39
  {!isMobile ? (
40
40
  <Text variant="sm" css={{ color: '$on_surface_medium', pb: '$6', mb: '$8', '@md': { px: '$8', mt: '$4' } }}>
41
- This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You can
41
+ This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
42
+ can&nbsp;
42
43
  {isTranscriptionEnabled ? 'enable' : 'disable'} it later.
43
44
  </Text>
44
45
  ) : null}
@@ -123,7 +124,8 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
123
124
  </Flex>
124
125
  {isMobile && (
125
126
  <Text variant="sm" css={{ color: '$on_surface_medium', pb: '$6', mb: '$8', '@md': { px: '$8', mt: '$4' } }}>
126
- This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You can
127
+ This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
128
+ can&nbsp;
127
129
  {isTranscriptionEnabled ? 'enable' : 'disable'} it later.
128
130
  </Text>
129
131
  )}