@100mslive/roomkit-react 0.3.19-alpha.5 → 0.3.19-alpha.7

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"
@@ -6679,7 +6684,7 @@
6679
6684
  "format": "esm"
6680
6685
  },
6681
6686
  "src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
6682
- "bytes": 1791,
6687
+ "bytes": 1831,
6683
6688
  "imports": [
6684
6689
  {
6685
6690
  "path": "react",
@@ -6687,7 +6692,7 @@
6687
6692
  "external": true
6688
6693
  },
6689
6694
  {
6690
- "path": "@100mslive/hms-virtual-background",
6695
+ "path": "@100mslive/hms-virtual-background/hmsvbplugin",
6691
6696
  "kind": "import-statement",
6692
6697
  "external": true
6693
6698
  },
@@ -11292,7 +11297,7 @@
11292
11297
  ],
11293
11298
  "format": "esm"
11294
11299
  },
11295
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a91b93/tldraw.css": {
11300
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b26240513/tldraw.css": {
11296
11301
  "bytes": 80111,
11297
11302
  "imports": [
11298
11303
  {
@@ -11342,7 +11347,7 @@
11342
11347
  }
11343
11348
  ]
11344
11349
  },
11345
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a915e1/index.css": {
11350
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b262400a1/index.css": {
11346
11351
  "bytes": 597,
11347
11352
  "imports": [
11348
11353
  {
@@ -11351,7 +11356,7 @@
11351
11356
  "external": true
11352
11357
  },
11353
11358
  {
11354
- "path": "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a91b93/tldraw.css",
11359
+ "path": "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b26240513/tldraw.css",
11355
11360
  "kind": "import-rule",
11356
11361
  "original": "@tldraw/tldraw/tldraw.css"
11357
11362
  }
@@ -11426,7 +11431,7 @@
11426
11431
  "original": "../../common/constants"
11427
11432
  },
11428
11433
  {
11429
- "path": "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a915e1/index.css",
11434
+ "path": "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b262400a1/index.css",
11430
11435
  "kind": "import-statement",
11431
11436
  "original": "@100mslive/hms-whiteboard/index.css"
11432
11437
  },
@@ -15414,7 +15419,7 @@
15414
15419
  "dist/index.js": {
15415
15420
  "imports": [
15416
15421
  {
15417
- "path": "dist/chunk-V5SUEML3.js",
15422
+ "path": "dist/chunk-LDTFZNHE.js",
15418
15423
  "kind": "import-statement"
15419
15424
  }
15420
15425
  ],
@@ -15490,16 +15495,16 @@
15490
15495
  "inputs": {},
15491
15496
  "bytes": 1882
15492
15497
  },
15493
- "dist/HLSView-NCGEEGH7.js.map": {
15498
+ "dist/HLSView-XC3A2RPP.js.map": {
15494
15499
  "imports": [],
15495
15500
  "exports": [],
15496
15501
  "inputs": {},
15497
15502
  "bytes": 100275
15498
15503
  },
15499
- "dist/HLSView-NCGEEGH7.js": {
15504
+ "dist/HLSView-XC3A2RPP.js": {
15500
15505
  "imports": [
15501
15506
  {
15502
- "path": "dist/chunk-V5SUEML3.js",
15507
+ "path": "dist/chunk-LDTFZNHE.js",
15503
15508
  "kind": "import-statement"
15504
15509
  },
15505
15510
  {
@@ -15677,7 +15682,7 @@
15677
15682
  "default"
15678
15683
  ],
15679
15684
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15680
- "cssBundle": "dist/HLSView-ZEFRICMR.css",
15685
+ "cssBundle": "dist/HLSView-E3QNR32D.css",
15681
15686
  "inputs": {
15682
15687
  "src/Prebuilt/layouts/HLSView.jsx": {
15683
15688
  "bytesInOutput": 27671
@@ -15736,13 +15741,13 @@
15736
15741
  },
15737
15742
  "bytes": 61702
15738
15743
  },
15739
- "dist/chunk-V5SUEML3.js.map": {
15744
+ "dist/chunk-LDTFZNHE.js.map": {
15740
15745
  "imports": [],
15741
15746
  "exports": [],
15742
15747
  "inputs": {},
15743
- "bytes": 3517972
15748
+ "bytes": 3518697
15744
15749
  },
15745
- "dist/chunk-V5SUEML3.js": {
15750
+ "dist/chunk-LDTFZNHE.js": {
15746
15751
  "imports": [
15747
15752
  {
15748
15753
  "path": "react",
@@ -17095,7 +17100,7 @@
17095
17100
  "external": true
17096
17101
  },
17097
17102
  {
17098
- "path": "@100mslive/hms-virtual-background",
17103
+ "path": "@100mslive/hms-virtual-background/hmsvbplugin",
17099
17104
  "kind": "import-statement",
17100
17105
  "external": true
17101
17106
  },
@@ -18285,7 +18290,7 @@
18285
18290
  "external": true
18286
18291
  },
18287
18292
  {
18288
- "path": "dist/HLSView-NCGEEGH7.js",
18293
+ "path": "dist/HLSView-XC3A2RPP.js",
18289
18294
  "kind": "dynamic-import"
18290
18295
  },
18291
18296
  {
@@ -18904,7 +18909,7 @@
18904
18909
  ],
18905
18910
  "inputs": {
18906
18911
  "<define:process.env>": {
18907
- "bytesInOutput": 18005
18912
+ "bytesInOutput": 18004
18908
18913
  },
18909
18914
  "../../node_modules/lodash/lodash.js": {
18910
18915
  "bytesInOutput": 224301
@@ -19060,7 +19065,7 @@
19060
19065
  "bytesInOutput": 27
19061
19066
  },
19062
19067
  "src/Modal/Dialog.tsx": {
19063
- "bytesInOutput": 1131
19068
+ "bytesInOutput": 1426
19064
19069
  },
19065
19070
  "src/Modal/DialogContent.tsx": {
19066
19071
  "bytesInOutput": 1753
@@ -19285,7 +19290,7 @@
19285
19290
  "bytesInOutput": 2859
19286
19291
  },
19287
19292
  "src/Prebuilt/components/Settings/DeviceSettings.jsx": {
19288
- "bytesInOutput": 6570
19293
+ "bytesInOutput": 6572
19289
19294
  },
19290
19295
  "src/Prebuilt/primitives/DropdownTrigger.jsx": {
19291
19296
  "bytesInOutput": 1308
@@ -19531,7 +19536,7 @@
19531
19536
  "bytesInOutput": 823
19532
19537
  },
19533
19538
  "src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
19534
- "bytesInOutput": 1805
19539
+ "bytesInOutput": 1817
19535
19540
  },
19536
19541
  "src/Prebuilt/components/Footer/ChatToggle.tsx": {
19537
19542
  "bytesInOutput": 1564
@@ -19800,7 +19805,7 @@
19800
19805
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19801
19806
  "bytesInOutput": 2830
19802
19807
  },
19803
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a915e1/index.css": {
19808
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b262400a1/index.css": {
19804
19809
  "bytesInOutput": 0
19805
19810
  },
19806
19811
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19969,7 +19974,7 @@
19969
19974
  "bytesInOutput": 2628
19970
19975
  }
19971
19976
  },
19972
- "bytes": 1459086
19977
+ "bytes": 1459394
19973
19978
  },
19974
19979
  "dist/index.css.map": {
19975
19980
  "imports": [],
@@ -20031,22 +20036,22 @@
20031
20036
  }
20032
20037
  ],
20033
20038
  "inputs": {
20034
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a91b93/tldraw.css": {
20039
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b26240513/tldraw.css": {
20035
20040
  "bytesInOutput": 75223
20036
20041
  },
20037
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a915e1/index.css": {
20042
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b262400a1/index.css": {
20038
20043
  "bytesInOutput": 401
20039
20044
  }
20040
20045
  },
20041
20046
  "bytes": 75901
20042
20047
  },
20043
- "dist/HLSView-ZEFRICMR.css.map": {
20048
+ "dist/HLSView-E3QNR32D.css.map": {
20044
20049
  "imports": [],
20045
20050
  "exports": [],
20046
20051
  "inputs": {},
20047
20052
  "bytes": 122402
20048
20053
  },
20049
- "dist/HLSView-ZEFRICMR.css": {
20054
+ "dist/HLSView-E3QNR32D.css": {
20050
20055
  "imports": [
20051
20056
  {
20052
20057
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -20100,10 +20105,10 @@
20100
20105
  }
20101
20106
  ],
20102
20107
  "inputs": {
20103
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a91b93/tldraw.css": {
20108
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b26240513/tldraw.css": {
20104
20109
  "bytesInOutput": 75223
20105
20110
  },
20106
- "../../../../../../../tmp/tmp-2805-DfTw0BVdVQIi/191a35a915e1/index.css": {
20111
+ "../../../../../../../tmp/tmp-2883-n0E249CpKC2H/191b262400a1/index.css": {
20107
20112
  "bytesInOutput": 401
20108
20113
  }
20109
20114
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.5",
13
+ "version": "0.3.19-alpha.7",
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.5",
78
+ "@100mslive/hls-player": "0.3.19-alpha.7",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.5",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.5",
82
- "@100mslive/react-icons": "0.10.19-alpha.5",
83
- "@100mslive/react-sdk": "0.10.19-alpha.5",
80
+ "@100mslive/hms-virtual-background": "1.13.19-alpha.7",
81
+ "@100mslive/hms-whiteboard": "0.0.9-alpha.7",
82
+ "@100mslive/react-icons": "0.10.19-alpha.7",
83
+ "@100mslive/react-sdk": "0.10.19-alpha.7",
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": "da2bf7b3dc5e63d27f56b52c9a8796436908be85"
120
+ "gitHead": "50b8b39de066c76d8275b383a40e7d4b60d6851e"
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,
@@ -1,5 +1,6 @@
1
1
  import React, { useEffect } from 'react';
2
- import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background';
2
+ // eslint-disable-next-line
3
+ import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';
3
4
  import {
4
5
  selectAppData,
5
6
  selectIsEffectsEnabled,