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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/{HLSView-GYHK4ION.js → HLSView-XU2WQ4VV.js} +2 -2
  2. package/dist/Prebuilt/components/Chat/Chat.d.ts +2 -0
  3. package/dist/Prebuilt/components/Chat/ChatActions.d.ts +12 -0
  4. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +8 -0
  5. package/dist/Prebuilt/components/Chat/ChatFooter.d.ts +2 -2
  6. package/dist/Prebuilt/components/Chat/ChatStates.d.ts +1 -1
  7. package/dist/Prebuilt/components/Chat/MwebChatOption.d.ts +1 -1
  8. package/dist/Prebuilt/components/Chat/PinnedMessage.d.ts +1 -3
  9. package/dist/Prebuilt/components/hooks/useChatBlacklist.d.ts +1 -0
  10. package/dist/Prebuilt/components/hooks/useSetPinnedMessages.d.ts +3 -10
  11. package/dist/Prebuilt/components/hooks/useUnreadPollQuizPresent.d.ts +5 -0
  12. package/dist/{chunk-75O2M72S.js → chunk-2FX6MFDM.js} +4541 -4502
  13. package/dist/chunk-2FX6MFDM.js.map +7 -0
  14. package/dist/index.cjs.js +5113 -5059
  15. package/dist/index.cjs.js.map +4 -4
  16. package/dist/index.js +1 -1
  17. package/dist/meta.cjs.json +343 -225
  18. package/dist/meta.esbuild.json +353 -235
  19. package/package.json +6 -6
  20. package/src/Prebuilt/components/Chat/Chat.tsx +108 -0
  21. package/src/Prebuilt/components/Chat/ChatActions.tsx +295 -0
  22. package/src/Prebuilt/components/Chat/ChatBody.tsx +444 -0
  23. package/src/Prebuilt/components/Chat/ChatFooter.tsx +9 -3
  24. package/src/Prebuilt/components/Chat/ChatStates.tsx +5 -0
  25. package/src/Prebuilt/components/Chat/MwebChatOption.tsx +1 -1
  26. package/src/Prebuilt/components/Chat/PinnedMessage.tsx +4 -2
  27. package/src/Prebuilt/components/Footer/PollsToggle.tsx +12 -3
  28. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +4 -3
  29. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
  30. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -1
  31. package/src/Prebuilt/components/SidePaneTabs.tsx +33 -11
  32. package/src/Prebuilt/components/hooks/useChatBlacklist.ts +7 -1
  33. package/src/Prebuilt/components/hooks/useSetPinnedMessages.ts +19 -11
  34. package/src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx +20 -0
  35. package/dist/chunk-75O2M72S.js.map +0 -7
  36. package/src/Prebuilt/components/Chat/Chat.jsx +0 -124
  37. package/src/Prebuilt/components/Chat/ChatBody.jsx +0 -726
  38. /package/dist/{HLSView-GYHK4ION.js.map → HLSView-XU2WQ4VV.js.map} +0 -0
@@ -23,7 +23,7 @@ import {
23
23
  styled,
24
24
  usePollViewToggle,
25
25
  useTheme
26
- } from "./chunk-75O2M72S.js";
26
+ } from "./chunk-2FX6MFDM.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-GYHK4ION.js.map
972
+ //# sourceMappingURL=HLSView-XU2WQ4VV.js.map
@@ -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,4 @@ 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 useIsLocalPeerBlacklisted: () => 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
+ };