@100mslive/roomkit-react 0.1.18-alpha.0 → 0.1.18
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.
- package/dist/{HLSView-GYHK4ION.js → HLSView-XU2WQ4VV.js} +2 -2
- package/dist/Prebuilt/components/Chat/Chat.d.ts +2 -0
- package/dist/Prebuilt/components/Chat/ChatActions.d.ts +12 -0
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +8 -0
- package/dist/Prebuilt/components/Chat/ChatFooter.d.ts +2 -2
- package/dist/Prebuilt/components/Chat/ChatStates.d.ts +1 -1
- package/dist/Prebuilt/components/Chat/MwebChatOption.d.ts +1 -1
- package/dist/Prebuilt/components/Chat/PinnedMessage.d.ts +1 -3
- package/dist/Prebuilt/components/hooks/useChatBlacklist.d.ts +1 -0
- package/dist/Prebuilt/components/hooks/useSetPinnedMessages.d.ts +3 -10
- package/dist/Prebuilt/components/hooks/useUnreadPollQuizPresent.d.ts +5 -0
- package/dist/{chunk-75O2M72S.js → chunk-2FX6MFDM.js} +4541 -4502
- package/dist/chunk-2FX6MFDM.js.map +7 -0
- package/dist/index.cjs.js +5113 -5059
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +343 -225
- package/dist/meta.esbuild.json +353 -235
- package/package.json +6 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +108 -0
- package/src/Prebuilt/components/Chat/ChatActions.tsx +295 -0
- package/src/Prebuilt/components/Chat/ChatBody.tsx +444 -0
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +9 -3
- package/src/Prebuilt/components/Chat/ChatStates.tsx +5 -0
- package/src/Prebuilt/components/Chat/MwebChatOption.tsx +1 -1
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +4 -2
- package/src/Prebuilt/components/Footer/PollsToggle.tsx +12 -3
- package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +4 -3
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -1
- package/src/Prebuilt/components/SidePaneTabs.tsx +33 -11
- package/src/Prebuilt/components/hooks/useChatBlacklist.ts +7 -1
- package/src/Prebuilt/components/hooks/useSetPinnedMessages.ts +19 -11
- package/src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx +20 -0
- package/dist/chunk-75O2M72S.js.map +0 -7
- package/src/Prebuilt/components/Chat/Chat.jsx +0 -124
- package/src/Prebuilt/components/Chat/ChatBody.jsx +0 -726
- /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- | 
| 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- | 
| 972 | 
            +
            //# sourceMappingURL=HLSView-XU2WQ4VV.js.map
         | 
| @@ -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,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: ( | 
| 13 | 
            -
                removePinnedMessage: ( | 
| 14 | 
            -
                unpinBlacklistedMessages: ( | 
| 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 {};
         |