@100mslive/roomkit-react 0.1.18-alpha.1 → 0.1.19-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-MR7RYQZB.js → HLSView-GG4WVUQY.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +2 -6
- 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 +4 -0
- package/dist/Prebuilt/components/hooks/useSetPinnedMessages.d.ts +3 -10
- package/dist/Prebuilt/components/hooks/useUnreadPollQuizPresent.d.ts +5 -0
- package/dist/{chunk-WFHOR7AP.js → chunk-GXJIUWTP.js} +10083 -4574
- package/dist/chunk-GXJIUWTP.js.map +7 -0
- package/dist/index.cjs.js +12716 -7192
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +367 -240
- package/dist/meta.esbuild.json +377 -250
- package/package.json +6 -6
- package/src/Prebuilt/common/constants.ts +4 -4
- package/src/Prebuilt/components/Chat/Chat.tsx +108 -0
- package/src/Prebuilt/components/Chat/ChatActions.tsx +297 -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/MoreSettings/SplitComponents/MwebOptions.tsx +5 -1
- package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx +3 -3
- package/src/Prebuilt/components/Polls/Voting/Leaderboard.tsx +9 -1
- package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +6 -6
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +20 -23
- 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/src/Prebuilt/provider/roomLayoutProvider/index.tsx +11 -2
- package/dist/chunk-WFHOR7AP.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-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-
|
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-
|
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,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>>>;
|
@@ -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: (
|
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 {};
|