@100mslive/roomkit-react 0.3.19-alpha.6 → 0.3.19-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -801,7 +801,7 @@
801
801
  "format": "esm"
802
802
  },
803
803
  "src/Modal/Dialog.tsx": {
804
- "bytes": 1418,
804
+ "bytes": 1851,
805
805
  "imports": [
806
806
  {
807
807
  "path": "react",
@@ -832,6 +832,11 @@
832
832
  "path": "<define:process.env>",
833
833
  "kind": "import-statement",
834
834
  "external": true
835
+ },
836
+ {
837
+ "path": "<runtime>",
838
+ "kind": "import-statement",
839
+ "external": true
835
840
  }
836
841
  ],
837
842
  "format": "esm"
@@ -10943,7 +10948,7 @@
10943
10948
  "format": "esm"
10944
10949
  },
10945
10950
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
10946
- "bytes": 2591,
10951
+ "bytes": 2299,
10947
10952
  "imports": [
10948
10953
  {
10949
10954
  "path": "react",
@@ -10980,11 +10985,6 @@
10980
10985
  "kind": "import-statement",
10981
10986
  "original": "../SecondaryTiles"
10982
10987
  },
10983
- {
10984
- "path": "src/Prebuilt/components/Settings/LayoutSettings.tsx",
10985
- "kind": "import-statement",
10986
- "original": "../Settings/LayoutSettings"
10987
- },
10988
10988
  {
10989
10989
  "path": "src/Prebuilt/components/VideoLayouts/Grid.tsx",
10990
10990
  "kind": "import-statement",
@@ -11292,7 +11292,7 @@
11292
11292
  ],
11293
11293
  "format": "esm"
11294
11294
  },
11295
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067c52/tldraw.css": {
11295
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css": {
11296
11296
  "bytes": 80111,
11297
11297
  "imports": [
11298
11298
  {
@@ -11342,7 +11342,7 @@
11342
11342
  }
11343
11343
  ]
11344
11344
  },
11345
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067570/index.css": {
11345
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
11346
11346
  "bytes": 597,
11347
11347
  "imports": [
11348
11348
  {
@@ -11351,7 +11351,7 @@
11351
11351
  "external": true
11352
11352
  },
11353
11353
  {
11354
- "path": "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067c52/tldraw.css",
11354
+ "path": "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css",
11355
11355
  "kind": "import-rule",
11356
11356
  "original": "@tldraw/tldraw/tldraw.css"
11357
11357
  }
@@ -11426,7 +11426,7 @@
11426
11426
  "original": "../../common/constants"
11427
11427
  },
11428
11428
  {
11429
- "path": "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067570/index.css",
11429
+ "path": "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css",
11430
11430
  "kind": "import-statement",
11431
11431
  "original": "@100mslive/hms-whiteboard/index.css"
11432
11432
  },
@@ -15414,7 +15414,7 @@
15414
15414
  "dist/index.js": {
15415
15415
  "imports": [
15416
15416
  {
15417
- "path": "dist/chunk-KZIOZDJV.js",
15417
+ "path": "dist/chunk-P323KKZF.js",
15418
15418
  "kind": "import-statement"
15419
15419
  }
15420
15420
  ],
@@ -15490,16 +15490,16 @@
15490
15490
  "inputs": {},
15491
15491
  "bytes": 1882
15492
15492
  },
15493
- "dist/HLSView-2P2FVCEW.js.map": {
15493
+ "dist/HLSView-72N5Y4QP.js.map": {
15494
15494
  "imports": [],
15495
15495
  "exports": [],
15496
15496
  "inputs": {},
15497
15497
  "bytes": 100275
15498
15498
  },
15499
- "dist/HLSView-2P2FVCEW.js": {
15499
+ "dist/HLSView-72N5Y4QP.js": {
15500
15500
  "imports": [
15501
15501
  {
15502
- "path": "dist/chunk-KZIOZDJV.js",
15502
+ "path": "dist/chunk-P323KKZF.js",
15503
15503
  "kind": "import-statement"
15504
15504
  },
15505
15505
  {
@@ -15677,7 +15677,7 @@
15677
15677
  "default"
15678
15678
  ],
15679
15679
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15680
- "cssBundle": "dist/HLSView-GRUKIJTY.css",
15680
+ "cssBundle": "dist/HLSView-Y4ED3H3Z.css",
15681
15681
  "inputs": {
15682
15682
  "src/Prebuilt/layouts/HLSView.jsx": {
15683
15683
  "bytesInOutput": 27671
@@ -15736,13 +15736,13 @@
15736
15736
  },
15737
15737
  "bytes": 61702
15738
15738
  },
15739
- "dist/chunk-KZIOZDJV.js.map": {
15739
+ "dist/chunk-P323KKZF.js.map": {
15740
15740
  "imports": [],
15741
15741
  "exports": [],
15742
15742
  "inputs": {},
15743
- "bytes": 3518013
15743
+ "bytes": 3518275
15744
15744
  },
15745
- "dist/chunk-KZIOZDJV.js": {
15745
+ "dist/chunk-P323KKZF.js": {
15746
15746
  "imports": [
15747
15747
  {
15748
15748
  "path": "react",
@@ -18285,7 +18285,7 @@
18285
18285
  "external": true
18286
18286
  },
18287
18287
  {
18288
- "path": "dist/HLSView-2P2FVCEW.js",
18288
+ "path": "dist/HLSView-72N5Y4QP.js",
18289
18289
  "kind": "dynamic-import"
18290
18290
  },
18291
18291
  {
@@ -18904,7 +18904,7 @@
18904
18904
  ],
18905
18905
  "inputs": {
18906
18906
  "<define:process.env>": {
18907
- "bytesInOutput": 18005
18907
+ "bytesInOutput": 18025
18908
18908
  },
18909
18909
  "../../node_modules/lodash/lodash.js": {
18910
18910
  "bytesInOutput": 224301
@@ -19060,7 +19060,7 @@
19060
19060
  "bytesInOutput": 27
19061
19061
  },
19062
19062
  "src/Modal/Dialog.tsx": {
19063
- "bytesInOutput": 1131
19063
+ "bytesInOutput": 1426
19064
19064
  },
19065
19065
  "src/Modal/DialogContent.tsx": {
19066
19066
  "bytesInOutput": 1753
@@ -19285,7 +19285,7 @@
19285
19285
  "bytesInOutput": 2859
19286
19286
  },
19287
19287
  "src/Prebuilt/components/Settings/DeviceSettings.jsx": {
19288
- "bytesInOutput": 6570
19288
+ "bytesInOutput": 6572
19289
19289
  },
19290
19290
  "src/Prebuilt/primitives/DropdownTrigger.jsx": {
19291
19291
  "bytesInOutput": 1308
@@ -19774,7 +19774,7 @@
19774
19774
  "bytesInOutput": 3837
19775
19775
  },
19776
19776
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
19777
- "bytesInOutput": 2183
19777
+ "bytesInOutput": 1948
19778
19778
  },
19779
19779
  "src/Prebuilt/components/SecondaryTiles.tsx": {
19780
19780
  "bytesInOutput": 2706
@@ -19800,7 +19800,7 @@
19800
19800
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19801
19801
  "bytesInOutput": 2830
19802
19802
  },
19803
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067570/index.css": {
19803
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
19804
19804
  "bytesInOutput": 0
19805
19805
  },
19806
19806
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19969,7 +19969,7 @@
19969
19969
  "bytesInOutput": 2628
19970
19970
  }
19971
19971
  },
19972
- "bytes": 1459098
19972
+ "bytes": 1459180
19973
19973
  },
19974
19974
  "dist/index.css.map": {
19975
19975
  "imports": [],
@@ -20031,22 +20031,22 @@
20031
20031
  }
20032
20032
  ],
20033
20033
  "inputs": {
20034
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067c52/tldraw.css": {
20034
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css": {
20035
20035
  "bytesInOutput": 75223
20036
20036
  },
20037
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067570/index.css": {
20037
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
20038
20038
  "bytesInOutput": 401
20039
20039
  }
20040
20040
  },
20041
20041
  "bytes": 75901
20042
20042
  },
20043
- "dist/HLSView-GRUKIJTY.css.map": {
20043
+ "dist/HLSView-Y4ED3H3Z.css.map": {
20044
20044
  "imports": [],
20045
20045
  "exports": [],
20046
20046
  "inputs": {},
20047
20047
  "bytes": 122402
20048
20048
  },
20049
- "dist/HLSView-GRUKIJTY.css": {
20049
+ "dist/HLSView-Y4ED3H3Z.css": {
20050
20050
  "imports": [
20051
20051
  {
20052
20052
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -20100,10 +20100,10 @@
20100
20100
  }
20101
20101
  ],
20102
20102
  "inputs": {
20103
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067c52/tldraw.css": {
20103
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css": {
20104
20104
  "bytesInOutput": 75223
20105
20105
  },
20106
- "../../../../../../../tmp/tmp-2864-zIyGbz3XurZj/191b1a067570/index.css": {
20106
+ "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
20107
20107
  "bytesInOutput": 401
20108
20108
  }
20109
20109
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.6",
13
+ "version": "0.3.19-alpha.8",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.19-alpha.6",
78
+ "@100mslive/hls-player": "0.3.19-alpha.8",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.6",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.6",
82
- "@100mslive/react-icons": "0.10.19-alpha.6",
83
- "@100mslive/react-sdk": "0.10.19-alpha.6",
80
+ "@100mslive/hms-virtual-background": "1.13.19-alpha.8",
81
+ "@100mslive/hms-whiteboard": "0.0.9-alpha.8",
82
+ "@100mslive/react-icons": "0.10.19-alpha.8",
83
+ "@100mslive/react-sdk": "0.10.19-alpha.8",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "bff1ab1173426dcefe0c58e22ac406f01a110443"
120
+ "gitHead": "da4d46cf000a606d2f48261536d8e00a03c1fdb0"
121
121
  }
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, useRef } from 'react';
1
+ import React, { ReactNode, useEffect, useRef } from 'react';
2
2
  import { Root } from '@radix-ui/react-dialog';
3
3
  import { styled } from '@stitches/react';
4
4
  import {
@@ -15,6 +15,17 @@ import { useDialogContainerSelector } from '../hooks/useDialogContainerSelector'
15
15
 
16
16
  const StyledDialog = styled(Root, {});
17
17
 
18
+ // Handles race conditions when multiple elements with dismissable layer are present
19
+ // https://github.com/radix-ui/primitives/issues/2122
20
+ const DialogRoot = <T extends React.ComponentProps<typeof StyledDialog>>(props: T) => {
21
+ useEffect(() => {
22
+ return () => {
23
+ if (document) setTimeout(() => (document.body.style.pointerEvents = 'auto'), 0);
24
+ };
25
+ }, []);
26
+ return <StyledDialog {...(props as object)} />;
27
+ };
28
+
18
29
  const CustomDialogPortal = ({ children, container }: { children: ReactNode; container?: HTMLElement | null }) => {
19
30
  const dialogContainerSelector = useDialogContainerSelector();
20
31
  const containerRef = useRef<HTMLElement | null>(null);
@@ -34,7 +45,7 @@ const CustomDialogPortal = ({ children, container }: { children: ReactNode; cont
34
45
  };
35
46
 
36
47
  export const Dialog = {
37
- Root: StyledDialog,
48
+ Root: DialogRoot,
38
49
  Trigger: StyledDialogTrigger,
39
50
  Overlay: CustomDialogOverlay,
40
51
  Content: CustomDialogContent,
@@ -5,7 +5,6 @@ import { config as cssConfig } from '../../../Theme';
5
5
  import { InsetTile } from '../InsetTile';
6
6
  import { Pagination } from '../Pagination';
7
7
  import { SecondaryTiles } from '../SecondaryTiles';
8
- import { LayoutMode } from '../Settings/LayoutSettings';
9
8
  import { Grid } from './Grid';
10
9
  import { LayoutProps } from './interface';
11
10
  import { ProminenceLayout } from './ProminenceLayout';
@@ -25,7 +24,6 @@ export function RoleProminence({
25
24
  }: LayoutProps) {
26
25
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
27
26
  const localPeer = useHMSStore(selectLocalPeer);
28
- const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29
27
  const isMobile = useMedia(cssConfig.media.md);
30
28
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
31
29
  maxTileCount = isMobile ? 4 : maxTileCount;
@@ -47,7 +45,7 @@ export function RoleProminence({
47
45
  }, [pageSize, onPageSize]);
48
46
 
49
47
  return (
50
- <ProminenceLayout.Root hasSidebar={layoutMode === LayoutMode.SIDEBAR}>
48
+ <ProminenceLayout.Root>
51
49
  <ProminenceLayout.ProminentSection>
52
50
  <Grid ref={ref} tiles={pagesWithTiles[page]} />
53
51
  </ProminenceLayout.ProminentSection>
@@ -61,12 +59,7 @@ export function RoleProminence({
61
59
  numPages={pagesWithTiles.length}
62
60
  />
63
61
  )}
64
- <SecondaryTiles
65
- peers={layoutMode === LayoutMode.SPOTLIGHT ? [] : secondaryPeers}
66
- isInsetEnabled={isInsetEnabled}
67
- edgeToEdge={edgeToEdge}
68
- hasSidebar={layoutMode === LayoutMode.SIDEBAR}
69
- />
62
+ <SecondaryTiles peers={secondaryPeers} isInsetEnabled={isInsetEnabled} edgeToEdge={edgeToEdge} />
70
63
  {isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && <InsetTile />}
71
64
  </ProminenceLayout.Root>
72
65
  );