@100mslive/roomkit-react 0.1.6-alpha.1 → 0.1.6-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{HLSView-HNVYG5VE.js → HLSView-HL455FYH.js} +3 -3
  2. package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +1 -3
  3. package/dist/Prebuilt/components/Leave/DesktopLeaveRoom.d.ts +2 -1
  4. package/dist/Prebuilt/components/Leave/MwebLeaveRoom.d.ts +2 -1
  5. package/dist/Prebuilt/components/SidePaneTabs.d.ts +7 -0
  6. package/dist/{VirtualBackground-UM2FOUHQ.js → VirtualBackground-6EP3X7MO.js} +6 -6
  7. package/dist/VirtualBackground-6EP3X7MO.js.map +7 -0
  8. package/dist/{chunk-LYSAET4G.js → chunk-6JF3GAOH.js} +109 -127
  9. package/dist/chunk-6JF3GAOH.js.map +7 -0
  10. package/dist/{chunk-POE7H4IE.js → chunk-KAJJ56J4.js} +2 -2
  11. package/dist/{chunk-POE7H4IE.js.map → chunk-KAJJ56J4.js.map} +1 -1
  12. package/dist/{chunk-364HP22I.js → chunk-UXBTLGWY.js} +2 -2
  13. package/dist/{conference-UWLJHMB2.js → conference-MPZNWHV5.js} +472 -415
  14. package/dist/conference-MPZNWHV5.js.map +7 -0
  15. package/dist/index.cjs.js +714 -678
  16. package/dist/index.cjs.js.map +4 -4
  17. package/dist/index.js +2 -2
  18. package/dist/meta.cjs.json +153 -153
  19. package/dist/meta.esbuild.json +185 -184
  20. package/package.json +6 -6
  21. package/src/Button/Button.tsx +6 -6
  22. package/src/Prebuilt/components/Chat/Chat.jsx +3 -9
  23. package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +1 -0
  24. package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -9
  25. package/src/Prebuilt/components/Footer/Footer.tsx +23 -7
  26. package/src/Prebuilt/components/Footer/ParticipantList.jsx +4 -5
  27. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +1 -1
  28. package/src/Prebuilt/components/Header/HeaderComponents.jsx +10 -9
  29. package/src/Prebuilt/components/InsetTile.tsx +1 -0
  30. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +7 -9
  31. package/src/Prebuilt/components/Leave/LeaveRoom.tsx +6 -2
  32. package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +7 -4
  33. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -1
  34. package/src/Prebuilt/components/Notifications/Notifications.jsx +4 -3
  35. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +2 -3
  36. package/src/Prebuilt/components/RoleChangeRequestModal.tsx +4 -3
  37. package/src/Prebuilt/components/ScreenshareTile.jsx +15 -7
  38. package/src/Prebuilt/components/SidePaneTabs.tsx +141 -0
  39. package/src/Prebuilt/components/conference.jsx +9 -1
  40. package/src/Prebuilt/components/hooks/useMetadata.jsx +7 -25
  41. package/src/Prebuilt/layouts/SidePane.tsx +12 -10
  42. package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +3 -3
  43. package/src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts +2 -2
  44. package/dist/VirtualBackground-UM2FOUHQ.js.map +0 -7
  45. package/dist/chunk-LYSAET4G.js.map +0 -7
  46. package/dist/conference-UWLJHMB2.js.map +0 -7
  47. package/src/Prebuilt/components/Chat/ChatParticipantHeader.jsx +0 -84
  48. /package/dist/{HLSView-HNVYG5VE.js.map → HLSView-HL455FYH.js.map} +0 -0
  49. /package/dist/{chunk-364HP22I.js.map → chunk-UXBTLGWY.js.map} +0 -0
@@ -1,84 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { selectPeerCount, useHMSStore } from '@100mslive/react-sdk';
3
- import { CrossIcon } from '@100mslive/react-icons';
4
- import { Flex, IconButton, Tabs, Text } from '../../..';
5
- import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
6
- import { useSidepaneToggle } from '../AppData/useSidepane';
7
- import { SIDE_PANE_OPTIONS } from '../../common/constants';
8
-
9
- const tabTriggerCSS = {
10
- color: '$on_surface_high',
11
- p: '$4',
12
- fontWeight: '$semiBold',
13
- fontSize: '$sm',
14
- w: '100%',
15
- justifyContent: 'center',
16
- };
17
-
18
- export const ChatParticipantHeader = React.memo(({ activeTabValue = SIDE_PANE_OPTIONS.CHAT }) => {
19
- const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
20
- const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
21
- const [activeTab, setActiveTab] = useState(activeTabValue);
22
- const peerCount = useHMSStore(selectPeerCount);
23
- const { elements } = useRoomLayoutConferencingScreen();
24
- const showChat = !!elements?.chat;
25
- const showParticipants = !!elements?.participant_list;
26
- const hideTabs = !(showChat && showParticipants);
27
-
28
- return (
29
- <Flex
30
- align="center"
31
- css={{
32
- color: '$on_primary_high',
33
- h: '$16',
34
- }}
35
- >
36
- {hideTabs ? (
37
- <Text variant="sm" css={{ fontWeight: '$semiBold', c: '$on_surface_high' }}>
38
- {showChat ? 'Chat' : `Participants (${peerCount})`}
39
- </Text>
40
- ) : (
41
- <Flex css={{ w: '100%', bg: '$surface_default', borderRadius: '$2' }}>
42
- <Tabs.Root value={activeTab} onValueChange={setActiveTab} css={{ w: '100%' }}>
43
- <Tabs.List css={{ w: '100%', p: '$2' }}>
44
- <Tabs.Trigger
45
- value={SIDE_PANE_OPTIONS.CHAT}
46
- onClick={toggleChat}
47
- css={{
48
- ...tabTriggerCSS,
49
- color: activeTab !== SIDE_PANE_OPTIONS.CHAT ? '$on_surface_low' : '$on_surface_high',
50
- }}
51
- >
52
- Chat
53
- </Tabs.Trigger>
54
- <Tabs.Trigger
55
- value={SIDE_PANE_OPTIONS.PARTICIPANTS}
56
- onClick={toggleParticipants}
57
- css={{
58
- ...tabTriggerCSS,
59
- color: activeTab !== SIDE_PANE_OPTIONS.PARTICIPANTS ? '$on_surface_low' : '$on_surface_high',
60
- }}
61
- >
62
- Participants ({peerCount})
63
- </Tabs.Trigger>
64
- </Tabs.List>
65
- </Tabs.Root>
66
- </Flex>
67
- )}
68
- <IconButton
69
- css={{ ml: 'auto' }}
70
- onClick={e => {
71
- e.stopPropagation();
72
- if (activeTab === SIDE_PANE_OPTIONS.CHAT) {
73
- toggleChat();
74
- } else {
75
- toggleParticipants();
76
- }
77
- }}
78
- data-testid="close_chat"
79
- >
80
- <CrossIcon />
81
- </IconButton>
82
- </Flex>
83
- );
84
- });