@100mslive/roomkit-react 0.1.18-alpha.1 → 0.1.19-alpha.0

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 (44) hide show
  1. package/dist/{HLSView-MR7RYQZB.js → HLSView-GG4WVUQY.js} +2 -2
  2. package/dist/Prebuilt/common/constants.d.ts +2 -6
  3. package/dist/Prebuilt/components/Chat/Chat.d.ts +2 -0
  4. package/dist/Prebuilt/components/Chat/ChatActions.d.ts +12 -0
  5. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +8 -0
  6. package/dist/Prebuilt/components/Chat/ChatFooter.d.ts +2 -2
  7. package/dist/Prebuilt/components/Chat/ChatStates.d.ts +1 -1
  8. package/dist/Prebuilt/components/Chat/MwebChatOption.d.ts +1 -1
  9. package/dist/Prebuilt/components/Chat/PinnedMessage.d.ts +1 -3
  10. package/dist/Prebuilt/components/hooks/useChatBlacklist.d.ts +4 -0
  11. package/dist/Prebuilt/components/hooks/useSetPinnedMessages.d.ts +3 -10
  12. package/dist/Prebuilt/components/hooks/useUnreadPollQuizPresent.d.ts +5 -0
  13. package/dist/{chunk-WFHOR7AP.js → chunk-GXJIUWTP.js} +10083 -4574
  14. package/dist/chunk-GXJIUWTP.js.map +7 -0
  15. package/dist/index.cjs.js +12716 -7192
  16. package/dist/index.cjs.js.map +4 -4
  17. package/dist/index.js +1 -1
  18. package/dist/meta.cjs.json +367 -240
  19. package/dist/meta.esbuild.json +377 -250
  20. package/package.json +6 -6
  21. package/src/Prebuilt/common/constants.ts +4 -4
  22. package/src/Prebuilt/components/Chat/Chat.tsx +108 -0
  23. package/src/Prebuilt/components/Chat/ChatActions.tsx +297 -0
  24. package/src/Prebuilt/components/Chat/ChatBody.tsx +444 -0
  25. package/src/Prebuilt/components/Chat/ChatFooter.tsx +9 -3
  26. package/src/Prebuilt/components/Chat/ChatStates.tsx +5 -0
  27. package/src/Prebuilt/components/Chat/MwebChatOption.tsx +1 -1
  28. package/src/Prebuilt/components/Chat/PinnedMessage.tsx +4 -2
  29. package/src/Prebuilt/components/Footer/PollsToggle.tsx +12 -3
  30. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
  31. package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx +3 -3
  32. package/src/Prebuilt/components/Polls/Voting/Leaderboard.tsx +9 -1
  33. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +6 -6
  34. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +20 -23
  35. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -1
  36. package/src/Prebuilt/components/SidePaneTabs.tsx +33 -11
  37. package/src/Prebuilt/components/hooks/useChatBlacklist.ts +7 -1
  38. package/src/Prebuilt/components/hooks/useSetPinnedMessages.ts +19 -11
  39. package/src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx +20 -0
  40. package/src/Prebuilt/provider/roomLayoutProvider/index.tsx +11 -2
  41. package/dist/chunk-WFHOR7AP.js.map +0 -7
  42. package/src/Prebuilt/components/Chat/Chat.jsx +0 -124
  43. package/src/Prebuilt/components/Chat/ChatBody.jsx +0 -726
  44. /package/dist/{HLSView-MR7RYQZB.js.map → HLSView-GG4WVUQY.js.map} +0 -0
@@ -23,7 +23,7 @@ import {
23
23
  styled,
24
24
  usePollViewToggle,
25
25
  useTheme
26
- } from "./chunk-WFHOR7AP.js";
26
+ } from "./chunk-GXJIUWTP.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-MR7RYQZB.js.map
972
+ //# sourceMappingURL=HLSView-GG4WVUQY.js.map
@@ -101,15 +101,11 @@ export declare enum INTERACTION_TYPE {
101
101
  }
102
102
  export declare enum QUESTION_TYPE_TITLE {
103
103
  'single-choice' = "Single Choice",
104
- 'multiple-choice' = "Multiple Choice",
105
- 'short-answer' = "Short Answer",
106
- 'long-answer' = "Long Answer"
104
+ 'multiple-choice' = "Multiple Choice"
107
105
  }
108
106
  export declare enum QUESTION_TYPE {
109
107
  SINGLE_CHOICE = "single-choice",
110
- MULTIPLE_CHOICE = "multiple-choice",
111
- SHORT_ANSWER = "short-answer",
112
- LONG_ANSWER = "long-answer"
108
+ MULTIPLE_CHOICE = "multiple-choice"
113
109
  }
114
110
  export declare const ROLE_CHANGE_DECLINED = "role_change_declined";
115
111
  export declare const DEFAULT_PORTAL_CONTAINER = "#prebuilt-container";
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Chat: () => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { HMSMessage } from '@100mslive/react-sdk';
3
+ export declare const ChatActions: ({ showPinAction, onReply, showReply, message, sentByLocalPeer, isMobile, openSheet, setOpenSheet, }: {
4
+ showPinAction: boolean;
5
+ onReply: () => void;
6
+ showReply: boolean;
7
+ message: HMSMessage;
8
+ sentByLocalPeer: boolean;
9
+ isMobile: boolean;
10
+ openSheet: boolean;
11
+ setOpenSheet: (value: boolean) => void;
12
+ }) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { VariableSizeList } from 'react-window';
3
+ export declare const AnnotisedMessage: ({ message }: {
4
+ message: string;
5
+ }) => React.JSX.Element;
6
+ export declare const ChatBody: React.ForwardRefExoticComponent<{
7
+ scrollToBottom: (count: number) => void;
8
+ } & React.RefAttributes<VariableSizeList<any>>>;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  export declare const ChatFooter: ({ onSend, children }: {
3
- onSend: () => void;
3
+ onSend: (count: number) => void;
4
4
  children: ReactNode;
5
- }) => React.JSX.Element;
5
+ }) => React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  export declare const ChatPaused: () => React.JSX.Element | null;
3
- export declare const ChatBlocked: () => React.JSX.Element;
3
+ export declare const ChatBlocked: () => React.JSX.Element | null;
@@ -3,5 +3,5 @@ export declare const MwebChatOption: ({ icon, text, onClick, color, }: {
3
3
  icon: any;
4
4
  text: string;
5
5
  onClick: () => void | Promise<void>;
6
- color: string;
6
+ color?: string | undefined;
7
7
  }) => React.JSX.Element;
@@ -1,4 +1,2 @@
1
1
  import React from 'react';
2
- export declare const PinnedMessage: ({ clearPinnedMessage }: {
3
- clearPinnedMessage: (index: number) => void;
4
- }) => React.JSX.Element | null;
2
+ export declare const PinnedMessage: () => React.JSX.Element | null;
@@ -3,3 +3,7 @@ export declare const useChatBlacklist: (sessionStoreKey: SESSION_STORE_KEY.CHAT_
3
3
  blacklistItem: (blacklistID: string) => Promise<void>;
4
4
  blacklistedIDs: any;
5
5
  };
6
+ export declare const useIsPeerBlacklisted: ({ local, peerCustomerUserId }: {
7
+ local?: boolean | undefined;
8
+ peerCustomerUserId?: string | undefined;
9
+ }) => any;
@@ -1,16 +1,9 @@
1
1
  import { HMSMessage } from '@100mslive/react-sdk';
2
- declare type PinnedMessage = {
3
- text: string;
4
- id: string;
5
- authorId: string;
6
- pinnedBy: string;
7
- };
8
2
  /**
9
3
  * set pinned chat message by updating the session store
10
4
  */
11
5
  export declare const useSetPinnedMessages: () => {
12
- setPinnedMessages: (pinnedMessages: PinnedMessage[] | undefined, message: HMSMessage, pinnedBy: string) => Promise<void>;
13
- removePinnedMessage: (pinnedMessages: PinnedMessage[] | undefined, indexToRemove: number) => Promise<void>;
14
- unpinBlacklistedMessages: (pinnedMessages: PinnedMessage[] | undefined, blacklistedMessageIDSet: Set<string>) => Promise<void>;
6
+ setPinnedMessages: (message: HMSMessage, pinnedBy: string) => Promise<void>;
7
+ removePinnedMessage: (indexToRemove: number) => Promise<void>;
8
+ unpinBlacklistedMessages: (blacklistedMessageIDSet: Set<string>) => Promise<void>;
15
9
  };
16
- export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const useUnreadPollQuizPresent: () => {
3
+ unreadPollQuiz: boolean;
4
+ setUnreadPollQuiz: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
+ };