@100mslive/roomkit-react 0.3.16-alpha.8 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -2455,7 +2455,7 @@
2455
2455
  "format": "esm"
2456
2456
  },
2457
2457
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx": {
2458
- "bytes": 3577,
2458
+ "bytes": 3679,
2459
2459
  "imports": [
2460
2460
  {
2461
2461
  "path": "react",
@@ -2891,7 +2891,7 @@
2891
2891
  "format": "esm"
2892
2892
  },
2893
2893
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
2894
- "bytes": 13312,
2894
+ "bytes": 13166,
2895
2895
  "imports": [
2896
2896
  {
2897
2897
  "path": "react",
@@ -5601,7 +5601,7 @@
5601
5601
  "format": "cjs"
5602
5602
  },
5603
5603
  "../hms-video-store/dist/index.js": {
5604
- "bytes": 356549,
5604
+ "bytes": 356541,
5605
5605
  "imports": [
5606
5606
  {
5607
5607
  "path": "../../node_modules/reselect/es/index.js",
@@ -9796,7 +9796,7 @@
9796
9796
  "format": "esm"
9797
9797
  },
9798
9798
  "src/Prebuilt/components/VirtualBackground/VBOption.tsx": {
9799
- "bytes": 1246,
9799
+ "bytes": 1248,
9800
9800
  "imports": [
9801
9801
  {
9802
9802
  "path": "react",
@@ -11227,7 +11227,7 @@
11227
11227
  ],
11228
11228
  "format": "esm"
11229
11229
  },
11230
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafe272/tldraw.css": {
11230
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffaf02/tldraw.css": {
11231
11231
  "bytes": 80111,
11232
11232
  "imports": [
11233
11233
  {
@@ -11277,7 +11277,7 @@
11277
11277
  }
11278
11278
  ]
11279
11279
  },
11280
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafda00/index.css": {
11280
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/index.css": {
11281
11281
  "bytes": 597,
11282
11282
  "imports": [
11283
11283
  {
@@ -11286,7 +11286,7 @@
11286
11286
  "external": true
11287
11287
  },
11288
11288
  {
11289
- "path": "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafe272/tldraw.css",
11289
+ "path": "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffaf02/tldraw.css",
11290
11290
  "kind": "import-rule",
11291
11291
  "original": "@tldraw/tldraw/tldraw.css"
11292
11292
  }
@@ -11361,7 +11361,7 @@
11361
11361
  "original": "../../common/constants"
11362
11362
  },
11363
11363
  {
11364
- "path": "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafda00/index.css",
11364
+ "path": "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/index.css",
11365
11365
  "kind": "import-statement",
11366
11366
  "original": "@100mslive/hms-whiteboard/index.css"
11367
11367
  },
@@ -15248,7 +15248,7 @@
15248
15248
  "dist/index.js": {
15249
15249
  "imports": [
15250
15250
  {
15251
- "path": "dist/chunk-K72DGZUS.js",
15251
+ "path": "dist/chunk-PUO554VI.js",
15252
15252
  "kind": "import-statement"
15253
15253
  }
15254
15254
  ],
@@ -15324,16 +15324,16 @@
15324
15324
  "inputs": {},
15325
15325
  "bytes": 1882
15326
15326
  },
15327
- "dist/HLSView-2CIUO3JG.js.map": {
15327
+ "dist/HLSView-LGGWBBBT.js.map": {
15328
15328
  "imports": [],
15329
15329
  "exports": [],
15330
15330
  "inputs": {},
15331
15331
  "bytes": 100275
15332
15332
  },
15333
- "dist/HLSView-2CIUO3JG.js": {
15333
+ "dist/HLSView-LGGWBBBT.js": {
15334
15334
  "imports": [
15335
15335
  {
15336
- "path": "dist/chunk-K72DGZUS.js",
15336
+ "path": "dist/chunk-PUO554VI.js",
15337
15337
  "kind": "import-statement"
15338
15338
  },
15339
15339
  {
@@ -15511,7 +15511,7 @@
15511
15511
  "default"
15512
15512
  ],
15513
15513
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15514
- "cssBundle": "dist/HLSView-Z2QOYIDZ.css",
15514
+ "cssBundle": "dist/HLSView-H5N53WVF.css",
15515
15515
  "inputs": {
15516
15516
  "src/Prebuilt/layouts/HLSView.jsx": {
15517
15517
  "bytesInOutput": 27671
@@ -15570,13 +15570,13 @@
15570
15570
  },
15571
15571
  "bytes": 61702
15572
15572
  },
15573
- "dist/chunk-K72DGZUS.js.map": {
15573
+ "dist/chunk-PUO554VI.js.map": {
15574
15574
  "imports": [],
15575
15575
  "exports": [],
15576
15576
  "inputs": {},
15577
- "bytes": 3476478
15577
+ "bytes": 3476476
15578
15578
  },
15579
- "dist/chunk-K72DGZUS.js": {
15579
+ "dist/chunk-PUO554VI.js": {
15580
15580
  "imports": [
15581
15581
  {
15582
15582
  "path": "react",
@@ -18099,7 +18099,7 @@
18099
18099
  "external": true
18100
18100
  },
18101
18101
  {
18102
- "path": "dist/HLSView-2CIUO3JG.js",
18102
+ "path": "dist/HLSView-LGGWBBBT.js",
18103
18103
  "kind": "dynamic-import"
18104
18104
  },
18105
18105
  {
@@ -18698,7 +18698,7 @@
18698
18698
  ],
18699
18699
  "inputs": {
18700
18700
  "<define:process.env>": {
18701
- "bytesInOutput": 17961
18701
+ "bytesInOutput": 17897
18702
18702
  },
18703
18703
  "../../node_modules/lodash/lodash.js": {
18704
18704
  "bytesInOutput": 224289
@@ -19037,10 +19037,10 @@
19037
19037
  "bytesInOutput": 3306
19038
19038
  },
19039
19039
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
19040
- "bytesInOutput": 13613
19040
+ "bytesInOutput": 13563
19041
19041
  },
19042
19042
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx": {
19043
- "bytesInOutput": 3207
19043
+ "bytesInOutput": 3293
19044
19044
  },
19045
19045
  "src/Prebuilt/IconButton.tsx": {
19046
19046
  "bytesInOutput": 487
@@ -19232,7 +19232,7 @@
19232
19232
  "bytesInOutput": 9486
19233
19233
  },
19234
19234
  "../hms-video-store/dist/index.js": {
19235
- "bytesInOutput": 50057
19235
+ "bytesInOutput": 50049
19236
19236
  },
19237
19237
  "../../node_modules/reselect/es/index.js": {
19238
19238
  "bytesInOutput": 2539
@@ -19520,7 +19520,7 @@
19520
19520
  "bytesInOutput": 1157
19521
19521
  },
19522
19522
  "src/Prebuilt/components/VirtualBackground/VBOption.tsx": {
19523
- "bytesInOutput": 1154
19523
+ "bytesInOutput": 1156
19524
19524
  },
19525
19525
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19526
19526
  "bytesInOutput": 3443
@@ -19594,7 +19594,7 @@
19594
19594
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19595
19595
  "bytesInOutput": 2830
19596
19596
  },
19597
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafda00/index.css": {
19597
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/index.css": {
19598
19598
  "bytesInOutput": 0
19599
19599
  },
19600
19600
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19760,7 +19760,7 @@
19760
19760
  "bytesInOutput": 2632
19761
19761
  }
19762
19762
  },
19763
- "bytes": 1445722
19763
+ "bytes": 1445688
19764
19764
  },
19765
19765
  "dist/index.css.map": {
19766
19766
  "imports": [],
@@ -19822,22 +19822,22 @@
19822
19822
  }
19823
19823
  ],
19824
19824
  "inputs": {
19825
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafe272/tldraw.css": {
19825
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffaf02/tldraw.css": {
19826
19826
  "bytesInOutput": 75223
19827
19827
  },
19828
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafda00/index.css": {
19828
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/index.css": {
19829
19829
  "bytesInOutput": 401
19830
19830
  }
19831
19831
  },
19832
19832
  "bytes": 75901
19833
19833
  },
19834
- "dist/HLSView-Z2QOYIDZ.css.map": {
19834
+ "dist/HLSView-H5N53WVF.css.map": {
19835
19835
  "imports": [],
19836
19836
  "exports": [],
19837
19837
  "inputs": {},
19838
19838
  "bytes": 122402
19839
19839
  },
19840
- "dist/HLSView-Z2QOYIDZ.css": {
19840
+ "dist/HLSView-H5N53WVF.css": {
19841
19841
  "imports": [
19842
19842
  {
19843
19843
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -19891,10 +19891,10 @@
19891
19891
  }
19892
19892
  ],
19893
19893
  "inputs": {
19894
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafe272/tldraw.css": {
19894
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffaf02/tldraw.css": {
19895
19895
  "bytesInOutput": 75223
19896
19896
  },
19897
- "../../../../../../../tmp/tmp-2914-UzcT54PMWzaW/190cacafda00/index.css": {
19897
+ "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/index.css": {
19898
19898
  "bytesInOutput": 401
19899
19899
  }
19900
19900
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.16-alpha.8",
13
+ "version": "0.3.16",
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.16-alpha.8",
78
+ "@100mslive/hls-player": "0.3.16",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.16-alpha.8",
81
- "@100mslive/hms-whiteboard": "0.0.6-alpha.8",
82
- "@100mslive/react-icons": "0.10.16-alpha.8",
83
- "@100mslive/react-sdk": "0.10.16-alpha.8",
80
+ "@100mslive/hms-virtual-background": "1.13.16",
81
+ "@100mslive/hms-whiteboard": "0.0.6",
82
+ "@100mslive/react-icons": "0.10.16",
83
+ "@100mslive/react-sdk": "0.10.16",
84
84
  "@100mslive/types-prebuilt": "0.12.9",
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": "32fa8a2bb12f2a87329f7c2bb56cdae7b6014dd5"
120
+ "gitHead": "580d445154522296643833e00082e4f2c9f0103b"
121
121
  }
@@ -310,10 +310,9 @@ export const AudioVideoToggle = ({ hideOptions = false }: { hideOptions?: boolea
310
310
  disabled={!toggleAudio}
311
311
  hideOptions={hideOptions || !hasAudioDevices}
312
312
  onDisabledClick={toggleAudio}
313
+ testid="audio_toggle_btn"
313
314
  tooltipMessage={`Turn ${isLocalAudioEnabled ? 'off' : 'on'} audio (${isMacOS ? '⌘' : 'ctrl'} + d)`}
314
- icon={
315
- !isLocalAudioEnabled ? <MicOffIcon data-testid="audio_off_btn" /> : <MicOnIcon data-testid="audio_on_btn" />
316
- }
315
+ icon={!isLocalAudioEnabled ? <MicOffIcon /> : <MicOnIcon />}
317
316
  active={isLocalAudioEnabled}
318
317
  onClick={toggleAudio}
319
318
  key="toggleAudio"
@@ -353,13 +352,8 @@ export const AudioVideoToggle = ({ hideOptions = false }: { hideOptions?: boolea
353
352
  hideOptions={hideOptions || !hasVideoDevices}
354
353
  onDisabledClick={toggleVideo}
355
354
  tooltipMessage={`Turn ${isLocalVideoEnabled ? 'off' : 'on'} video (${isMacOS ? '⌘' : 'ctrl'} + e)`}
356
- icon={
357
- !isLocalVideoEnabled ? (
358
- <VideoOffIcon data-testid="video_off_btn" />
359
- ) : (
360
- <VideoOnIcon data-testid="video_on_btn" />
361
- )
362
- }
355
+ testid="video_toggle_btn"
356
+ icon={!isLocalVideoEnabled ? <VideoOffIcon /> : <VideoOnIcon />}
363
357
  key="toggleVideo"
364
358
  active={isLocalVideoEnabled}
365
359
  onClick={toggleVideo}
@@ -90,6 +90,7 @@ export const IconButtonWithOptions = ({
90
90
  onDisabledClick = () => {
91
91
  return;
92
92
  },
93
+ testid = '',
93
94
  tooltipMessage = '',
94
95
  icon,
95
96
  children,
@@ -103,6 +104,7 @@ export const IconButtonWithOptions = ({
103
104
  onDisabledClick: () => void;
104
105
  icon: React.ReactNode;
105
106
  children: React.ReactNode;
107
+ testid?: string;
106
108
  hideOptions?: boolean;
107
109
  active: boolean;
108
110
  disabled?: boolean;
@@ -111,7 +113,13 @@ export const IconButtonWithOptions = ({
111
113
  const commonProps = { disabled, active };
112
114
  return (
113
115
  <Flex>
114
- <IconSection {...commonProps} onClick={onClick} hideOptions={hideOptions} className="__cancel-drag-event">
116
+ <IconSection
117
+ data-testid={testid}
118
+ {...commonProps}
119
+ onClick={onClick}
120
+ hideOptions={hideOptions}
121
+ className="__cancel-drag-event"
122
+ >
115
123
  <Tooltip disabled={!tooltipMessage} title={tooltipMessage}>
116
124
  <Icon {...commonProps}>{icon}</Icon>
117
125
  </Tooltip>
@@ -26,7 +26,7 @@ const Root = ({
26
26
  border: `4px solid ${isActive ? '$primary_default' : '$surface_dim'}`,
27
27
  cursor: 'pointer',
28
28
  '&:hover': { border: '4px solid $primary_dim' },
29
- ...(mediaURL ? { height: '$20', backgroundImage: `url(${mediaURL})`, backgroundSize: 'cover' } : {}),
29
+ ...(mediaURL ? { height: '$20', backgroundImage: `url("${mediaURL}")`, backgroundSize: 'cover' } : {}),
30
30
  }}
31
31
  onClick={async () => {
32
32
  await onClick?.();