@100mslive/roomkit-react 0.1.15 → 0.1.16

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 (57) hide show
  1. package/dist/{HLSView-MXBOUQBG.js → HLSView-EMUOLCTM.js} +2 -2
  2. package/dist/Prebuilt/common/PeersSorter.d.ts +1 -0
  3. package/dist/Prebuilt/common/constants.d.ts +7 -4
  4. package/dist/Prebuilt/common/hooks.d.ts +1 -0
  5. package/dist/Prebuilt/components/Footer/ParticipantList.d.ts +17 -0
  6. package/dist/Prebuilt/components/Footer/RoleAccordion.d.ts +3 -2
  7. package/dist/Prebuilt/components/Footer/WhiteboardToggle.d.ts +2 -0
  8. package/dist/Prebuilt/components/Notifications/HandRaisedNotifications.d.ts +1 -0
  9. package/dist/Prebuilt/components/PreviousRoleInMetadata.d.ts +1 -0
  10. package/dist/Prebuilt/components/RemoveParticipant.d.ts +5 -0
  11. package/dist/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.d.ts +4 -0
  12. package/dist/Prebuilt/layouts/WhiteboardView.d.ts +2 -0
  13. package/dist/{chunk-HEOH5H43.js → chunk-ZYR4B4KQ.js} +1886 -7116
  14. package/dist/chunk-ZYR4B4KQ.js.map +7 -0
  15. package/dist/index.cjs.js +2477 -7662
  16. package/dist/index.cjs.js.map +4 -4
  17. package/dist/index.js +1 -1
  18. package/dist/meta.cjs.json +438 -161
  19. package/dist/meta.esbuild.json +443 -166
  20. package/package.json +7 -7
  21. package/src/Prebuilt/AppStateContext.tsx +1 -1
  22. package/src/Prebuilt/common/PeersSorter.ts +12 -5
  23. package/src/Prebuilt/common/constants.ts +5 -6
  24. package/src/Prebuilt/common/hooks.ts +16 -0
  25. package/src/Prebuilt/common/utils.js +5 -6
  26. package/src/Prebuilt/components/AppData/AppData.tsx +1 -16
  27. package/src/Prebuilt/components/Chat/Chat.jsx +7 -30
  28. package/src/Prebuilt/components/Chat/ChatBody.jsx +107 -66
  29. package/src/Prebuilt/components/Chat/ChatFooter.tsx +21 -12
  30. package/src/Prebuilt/components/Chat/ChatSelector.tsx +25 -25
  31. package/src/Prebuilt/components/Chat/ChatSelectorContainer.tsx +15 -16
  32. package/src/Prebuilt/components/Chat/PinnedMessage.tsx +7 -2
  33. package/src/Prebuilt/components/ConferenceScreen.tsx +2 -0
  34. package/src/Prebuilt/components/Footer/ChatToggle.tsx +30 -7
  35. package/src/Prebuilt/components/Footer/Footer.tsx +2 -1
  36. package/src/Prebuilt/components/Footer/PaginatedParticipants.tsx +0 -1
  37. package/src/Prebuilt/components/Footer/{ParticipantList.jsx → ParticipantList.tsx} +169 -127
  38. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +23 -13
  39. package/src/Prebuilt/components/Footer/WhiteboardToggle.tsx +34 -0
  40. package/src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx +35 -0
  41. package/src/Prebuilt/components/Notifications/Notifications.tsx +14 -12
  42. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +7 -2
  43. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +10 -2
  44. package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +21 -0
  45. package/src/Prebuilt/components/RemoveParticipant.tsx +35 -0
  46. package/src/Prebuilt/components/RoleChangeModal.jsx +1 -1
  47. package/src/Prebuilt/components/SidePaneTabs.tsx +0 -1
  48. package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +1 -1
  49. package/src/Prebuilt/components/Toast/ToastConfig.jsx +15 -3
  50. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +5 -2
  51. package/src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx +24 -0
  52. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +20 -3
  53. package/src/Prebuilt/layouts/WhiteboardView.tsx +66 -0
  54. package/dist/chunk-HEOH5H43.js.map +0 -7
  55. package/src/Prebuilt/components/AppData/useAppLayout.js +0 -6
  56. package/src/Prebuilt/components/init/initUtils.js +0 -67
  57. /package/dist/{HLSView-MXBOUQBG.js.map → HLSView-EMUOLCTM.js.map} +0 -0
@@ -23,7 +23,7 @@ import {
23
23
  styled,
24
24
  usePollViewToggle,
25
25
  useTheme
26
- } from "./chunk-HEOH5H43.js";
26
+ } from "./chunk-ZYR4B4KQ.js";
27
27
 
28
28
  // src/Prebuilt/layouts/HLSView.jsx
29
29
  init_define_process_env();
@@ -969,4 +969,4 @@ var HLSView_default = HLSView;
969
969
  export {
970
970
  HLSView_default as default
971
971
  };
972
- //# sourceMappingURL=HLSView-MXBOUQBG.js.map
972
+ //# sourceMappingURL=HLSView-EMUOLCTM.js.map
@@ -17,5 +17,6 @@ declare class PeersSorter {
17
17
  moveSpeakerToFront: (speaker?: HMSPeer) => void;
18
18
  onDominantSpeakerChange: (speaker: HMSPeer | null) => void;
19
19
  updateListeners: () => void;
20
+ private maintainLruSize;
20
21
  }
21
22
  export default PeersSorter;
@@ -14,7 +14,7 @@ export declare const RTMP_RECORD_DEFAULT_RESOLUTION: {
14
14
  };
15
15
  export declare const EMOJI_REACTION_TYPE = "EMOJI_REACTION";
16
16
  export declare const CHAT_SELECTOR: {
17
- PEER_ID: string;
17
+ PEER: string;
18
18
  ROLE: string;
19
19
  EVERYONE: string;
20
20
  };
@@ -29,7 +29,6 @@ export declare const APP_DATA: {
29
29
  waitingViewerRole: string;
30
30
  subscribedNotifications: string;
31
31
  logo: string;
32
- appLayout: string;
33
32
  hlsStarted: string;
34
33
  rtmpStarted: string;
35
34
  recordingStarted: string;
@@ -102,11 +101,15 @@ export declare enum INTERACTION_TYPE {
102
101
  }
103
102
  export declare enum QUESTION_TYPE_TITLE {
104
103
  'single-choice' = "Single Choice",
105
- 'multiple-choice' = "Multiple Choice"
104
+ 'multiple-choice' = "Multiple Choice",
105
+ 'short-answer' = "Short Answer",
106
+ 'long-answer' = "Long Answer"
106
107
  }
107
108
  export declare enum QUESTION_TYPE {
108
109
  SINGLE_CHOICE = "single-choice",
109
- MULTIPLE_CHOICE = "multiple-choice"
110
+ MULTIPLE_CHOICE = "multiple-choice",
111
+ SHORT_ANSWER = "short-answer",
112
+ LONG_ANSWER = "long-answer"
110
113
  }
111
114
  export declare const ROLE_CHANGE_DECLINED = "role_change_declined";
112
115
  export declare const DEFAULT_PORTAL_CONTAINER = "#prebuilt-container";
@@ -9,6 +9,7 @@ export declare const useWhenAloneInRoom: (thresholdMs?: number) => {
9
9
  aloneForLong: boolean;
10
10
  };
11
11
  export declare const useFilteredRoles: () => string[];
12
+ export declare const useDefaultChatSelection: () => string;
12
13
  export declare const useShowStreamingUI: () => boolean;
13
14
  export declare const useParticipants: (params?: {
14
15
  metadata?: {
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { HMSPeer, HMSRoleName } from '@100mslive/react-sdk';
3
+ export declare const ParticipantList: ({ offStageRoles, onActive, }: {
4
+ offStageRoles: HMSRoleName[];
5
+ onActive: (role: string) => void;
6
+ }) => React.JSX.Element | null;
7
+ export declare const ParticipantCount: () => React.JSX.Element | null;
8
+ export declare const Participant: ({ peer, isConnected, style, }: {
9
+ peer: HMSPeer;
10
+ isConnected: boolean;
11
+ style: React.CSSProperties;
12
+ }) => React.JSX.Element;
13
+ export declare const ParticipantSearch: ({ onSearch, placeholder, inSidePane, }: {
14
+ inSidePane?: boolean | undefined;
15
+ placeholder?: string | undefined;
16
+ onSearch: (val: string) => void;
17
+ }) => React.JSX.Element;
@@ -6,15 +6,16 @@ export interface ItemData {
6
6
  isConnected: boolean;
7
7
  }
8
8
  export declare function itemKey(index: number, data: ItemData): string;
9
- export declare const VirtualizedParticipantItem: React.MemoExoticComponent<({ index, data }: {
9
+ export declare const VirtualizedParticipantItem: React.MemoExoticComponent<({ index, data, style }: {
10
10
  index: number;
11
11
  data: ItemData;
12
+ style: React.CSSProperties;
12
13
  }) => React.JSX.Element>;
13
14
  export declare const RoleAccordion: ({ peerList, roleName, isConnected, filter, isHandRaisedAccordion, offStageRoles, onActive, }: ItemData & {
14
15
  roleName: string;
15
16
  isHandRaisedAccordion?: boolean | undefined;
16
17
  filter?: {
17
- search: string;
18
+ search?: string | undefined;
18
19
  } | undefined;
19
20
  offStageRoles: string[];
20
21
  onActive?: ((role: string) => void) | undefined;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const WhiteboardToggle: () => React.JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const HandRaisedNotifications: () => null;
@@ -0,0 +1 @@
1
+ export declare const PreviousRoleInMetadata: () => null;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { HMSPeerID } from '@100mslive/react-sdk';
3
+ export declare const RemoveParticipant: ({ peerId }: {
4
+ peerId: HMSPeerID;
5
+ }) => React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * close existing screenshare or whiteboard when the other is started
3
+ */
4
+ export declare const useCloseScreenshareWhiteboard: () => void;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const WhiteboardView: () => React.JSX.Element;