From 9277e887c3c8a4dbf02a2614176f372883f060cd Mon Sep 17 00:00:00 2001 From: omenUchiha Date: Mon, 29 Apr 2024 15:04:57 +0530 Subject: [PATCH 1/4] added Edit feature for self messages --- .env | 2 +- src/index.tsx | 6 ++- .../chatroom-container/chatroomWrapper.tsx | 5 ++ src/modules/components/input-box/index.tsx | 54 ++++++++++++++++++- src/modules/components/input-box/input.tsx | 26 +++++++++ .../message-boxes-components/MessageBlock.tsx | 6 ++- .../message-boxes-components/MessageBox.tsx | 14 +++++ src/modules/contexts/chatroomContext.ts | 4 ++ src/modules/hooks/firebase.ts | 2 +- 9 files changed, 112 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 0827590..f18d5af 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -REACT_APP_API_KEY = +REACT_APP_API_KEY = 01b4e80f-29e7-45ad-b914-69d61ffc130d REACT_APP_XPLATFORM_CODE = rt REACT_APP_XVERSION_CODE = 38 SKIP_PREFLIGHT_CHECK=true \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index ca0eca2..8e2130e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,6 @@ import ReactDOM from "react-dom/client"; import { BrowserRouter } from "react-router-dom"; -import LMChatClient from "@likeminds.community/chat-js"; +import LMChatClient from "@likeminds.community/chat-js-beta"; import "./index.css"; import App from "./App"; @@ -11,8 +11,10 @@ const root = ReactDOM.createRoot( export const myClient: LMChatClient = LMChatClient.setApiKey( process.env.REACT_APP_API_KEY || "" ) + // .setPlatformCode(process.env.REACT_APP_XPLATFORM_CODE!) .setPlatformCode(process.env.REACT_APP_XPLATFORM_CODE!) - .setVersionCode(parseInt(process.env.REACT_APP_XVERSION_CODE!)) + // .setVersionCode(parseInt(process.env.REACT_APP_XVERSION_CODE!)) + .setVersionCode(9999) .build(); root.render( diff --git a/src/modules/components/chatroom-container/chatroomWrapper.tsx b/src/modules/components/chatroom-container/chatroomWrapper.tsx index 3a21d6a..7a8f331 100644 --- a/src/modules/components/chatroom-container/chatroomWrapper.tsx +++ b/src/modules/components/chatroom-container/chatroomWrapper.tsx @@ -35,6 +35,7 @@ const ChatroomWrapper: React.FC = () => { const [isSelectedConversation, setIsSelectedConversation] = useState(false); const [showReplyPrivately, setShowReplyPrivately] = useState(false); const [replyPrivatelyMode, setReplyPrivatelyMode] = useState(null); + const [editMessageObject, setEditMessageObject] = useState(null); const [showTitle, setShowTitle] = useState(false); const [openSearch, setOpenSearch] = useState(false); const generalContext = useContext(GeneralContext); @@ -66,6 +67,7 @@ const ChatroomWrapper: React.FC = () => { setShowReplyPrivately(false); setReplyPrivatelyMode(null); setOpenSearch(false); + setEditMessageObject(null); generalContext.setChatroomUrl(""); generalContext.setCurrentChatroom({}); generalContext.setCurrentProfile({}); @@ -77,6 +79,7 @@ const ChatroomWrapper: React.FC = () => { resetChatroomContext(); }; }, [mode]); + return ( { setShowReplyPrivately, replyPrivatelyMode, setReplyPrivatelyMode, + editMessageObject, + setEditMessageObject, }} > {!openSearch ? ( diff --git a/src/modules/components/input-box/index.tsx b/src/modules/components/input-box/index.tsx index 079d925..a99c77e 100644 --- a/src/modules/components/input-box/index.tsx +++ b/src/modules/components/input-box/index.tsx @@ -12,7 +12,11 @@ import ChatroomContext from "../../contexts/chatroomContext"; import pdfIcon from "../../../assets/svg/pdf-document.svg"; import paperclip from "../../../assets/svg/paperclip.svg"; import routeVariable from "../../../enums/routeVariables"; -import { clearInputFiles } from "../../../sdkFunctions"; +import { + clearInputFiles, + linkConverter, + tagExtracter, +} from "../../../sdkFunctions"; import SendIcon from "../../../assets/svg/send.svg"; import camera from "../../../assets/svg/camera.svg"; import smiley from "../../../assets/svg/smile.svg"; @@ -22,7 +26,9 @@ import ReplyBox from "./replyContainer"; import { sendMessage } from "./input"; import { myClient } from "../../.."; import Poll from "../../post-polls"; +import parse from "html-react-parser"; import "./Input.css"; +import { UserContext } from "../../contexts/userContext"; const Input = ({ setBufferMessage, disableInputBox }: any) => { const [messageText, setMessageText] = useState(""); @@ -117,6 +123,7 @@ const InputSearchField = ({ const [loadMoreMembers, setLoadMoreMembers] = useState(true); // const [debounceBool, setDebounceBool] = useState(true); const chatroomContext = useContext(ChatroomContext); + const userContext = useContext(UserContext); const inputFieldContext = useContext(InputFieldContext); const generalContext = useContext(GeneralContext); const { messageText, setMessageText } = inputFieldContext; @@ -145,6 +152,7 @@ const InputSearchField = ({ // log(error); } } + useEffect(() => { if (throttleScroll === false) { setTimeout(() => { @@ -182,6 +190,13 @@ const InputSearchField = ({ } }); + useEffect(() => { + const { editMessageObject } = chatroomContext; + if (editMessageObject) { + inputFieldContext.setMessageText(editMessageObject.answer); + } + }, [chatroomContext.editMessageObject]); + const keyObj = { enter: false, shift: false, @@ -233,6 +248,42 @@ const InputSearchField = ({ attachments={chatroomContext.selectedConversation.attachments} /> ) : null} + {/* For editing a conversation */} + {chatroomContext.editMessageObject ? ( +
+
+
+

{"Edit Message"}

+
+ {parse( + linkConverter( + tagExtracter( + chatroomContext.editMessageObject.answer, + userContext, + 1 + ) + ) + )} +
+
+
+
+ { + chatroomContext.setEditMessageObject(null); + }} + > + + +
+
+ ) : null} {/* for preview Image */} @@ -254,6 +305,7 @@ const InputSearchField = ({ mode ).then(() => { if (!generalContext.currentChatroom?.follow_status) { + // } }); }} diff --git a/src/modules/components/input-box/input.tsx b/src/modules/components/input-box/input.tsx index 51b526b..868de36 100644 --- a/src/modules/components/input-box/input.tsx +++ b/src/modules/components/input-box/input.tsx @@ -106,12 +106,38 @@ const sendMessage = async ( ) { return; } + if (chatroomContext.editMessageObject) { + const editMessage = chatroomContext.editMessageObject; + + const call: any = await myClient.editConversation({ + conversationId: editMessage.id, + text: message, + }); + if (call.success) { + chatroomContext.setConversationList((conversationsArr: any) => { + const conversationArrayCopy = [...conversationsArr].map( + (conversation) => { + if (conversation?.id === editMessage?.id) { + return call?.data?.conversation; + } else { + return conversation; + } + } + ); + + return conversationArrayCopy; + }); + chatroomContext.setEditMessageObject(null); + } + return; + } const config: any = { text: message, createdAt: Date.now(), chatroomId: parseInt(chatroom_id.toString()), hasFiles: false, }; + if (filesArray.length) { config.hasFiles = true; config.attachmentCount = filesArray.length; diff --git a/src/modules/components/message-boxes-components/MessageBlock.tsx b/src/modules/components/message-boxes-components/MessageBlock.tsx index 56972d7..345f086 100644 --- a/src/modules/components/message-boxes-components/MessageBlock.tsx +++ b/src/modules/components/message-boxes-components/MessageBlock.tsx @@ -1,5 +1,5 @@ import { Box } from "@mui/material"; -import { useContext, useState } from "react"; +import { useContext, useEffect, useState } from "react"; import { UserContext } from "../../contexts/userContext"; import MessageBox from "./MessageBox"; @@ -13,7 +13,9 @@ const MessageBlock = ({ conversationObject, userId, index }: msgBlockType) => { const userContext = useContext(UserContext); const [convoDetails, setConvoDetails] = useState(conversationObject); const currentUser = userContext.currentUser?.id; - + useEffect(() => { + setConvoDetails(conversationObject); + }, [conversationObject]); return ( { } }, }, + { + title: "Edit Message", + clickFunction: () => { + chatroomContext.setEditMessageObject(convoObject); + }, + }, ]; if (convoObject.deleted_by !== undefined) { return ( @@ -594,6 +600,14 @@ const MoreOptions = ({ convoId, convoObject, index }: moreOptionsType) => { return null; } } + if (option.title === "Edit Message") { + if ( + convoObject.member.id !== userContext.currentUser.id || + convoObject.answer.length === 0 + ) { + return null; + } + } return ( ({ @@ -24,6 +26,8 @@ const ChatroomContext = createContext({ setShowReplyPrivately: null, replyPrivatelyMode: null, setReplyPrivatelyMode: null, + editMessageObject: null, + setEditMessageObject: null, }); export default ChatroomContext; diff --git a/src/modules/hooks/firebase.ts b/src/modules/hooks/firebase.ts index 9a303b3..e39650c 100644 --- a/src/modules/hooks/firebase.ts +++ b/src/modules/hooks/firebase.ts @@ -8,7 +8,7 @@ import { SEARCHED_CONVERSATION_ID } from "../../enums/localStorageConstants"; export function useFirebaseChatConversations( getChatroomConversations: any, setBufferMessage: any, - setNewMessage: any, + setNewMessage: any ) { const db = myClient.fbInstance(); const params = useParams(); From 8f12fec733bf4ca7a57b237dfefb61163a6475cb Mon Sep 17 00:00:00 2001 From: omenUchiha Date: Wed, 1 May 2024 12:59:33 +0530 Subject: [PATCH 2/4] added snackbar and implemented Dm_on_profile --- .env | 2 +- package.json | 1 + src/index.tsx | 12 +- .../components/channel-search/index.tsx | 153 ++++++--- .../channel-search/profile-tile.tsx | 124 +++++++- yarn.lock | 295 ++++++++++++------ 6 files changed, 450 insertions(+), 137 deletions(-) diff --git a/.env b/.env index 0827590..f18d5af 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -REACT_APP_API_KEY = +REACT_APP_API_KEY = 01b4e80f-29e7-45ad-b914-69d61ffc130d REACT_APP_XPLATFORM_CODE = rt REACT_APP_XVERSION_CODE = 38 SKIP_PREFLIGHT_CHECK=true \ No newline at end of file diff --git a/package.json b/package.json index c6a135c..8ed4c22 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "@emotion/styled": "11.10.5", "@giphy/react-components": "^9.2.3", "@likeminds.community/chat-js": "^1.5.0", + "@likeminds.community/chat-js-beta": "^1.1.88", "@mui/icons-material": "5.10.9", "@mui/material": "5.10.13", "@mui/x-date-pickers": "6.9.1", diff --git a/src/index.tsx b/src/index.tsx index ca0eca2..a84c71a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,6 @@ import ReactDOM from "react-dom/client"; import { BrowserRouter } from "react-router-dom"; -import LMChatClient from "@likeminds.community/chat-js"; +import LMChatClient from "@likeminds.community/chat-js-beta"; import "./index.css"; import App from "./App"; @@ -11,9 +11,15 @@ const root = ReactDOM.createRoot( export const myClient: LMChatClient = LMChatClient.setApiKey( process.env.REACT_APP_API_KEY || "" ) - .setPlatformCode(process.env.REACT_APP_XPLATFORM_CODE!) - .setVersionCode(parseInt(process.env.REACT_APP_XVERSION_CODE!)) + .setPlatformCode("rt") + .setVersionCode(50) .build(); +// export const myClient: LMChatClient = LMChatClient.setApiKey( +// process.env.REACT_APP_API_KEY || "" +// ) +// .setPlatformCode(process.env.REACT_APP_XPLATFORM_CODE!) +// .setVersionCode(parseInt(process.env.REACT_APP_XVERSION_CODE!)) +// .build(); root.render( diff --git a/src/modules/components/channel-search/index.tsx b/src/modules/components/channel-search/index.tsx index c2fcfa8..aa59da6 100644 --- a/src/modules/components/channel-search/index.tsx +++ b/src/modules/components/channel-search/index.tsx @@ -5,28 +5,41 @@ import { myClient } from "../../.."; import searchConversationsInsideChatroom from "../../../sdkFunctions/searchFunctions"; import routeVariable from "../../../enums/routeVariables"; import { useParams } from "react-router"; -import ProfileTile from "./profile-tile"; +import ProfileTile, { MemberSearchProfileTile } from "./profile-tile"; import { log } from "../../../sdkFunctions"; import { ref } from "@firebase/database"; import InfiniteScroll from "react-infinite-scroll-component"; import { GeneralContext } from "../../contexts/generalContext"; +import { useLocation } from "react-router-dom"; // import { log } from "console"; // log const ChannelSearch = ({ setOpenSearch }: any) => { + // states for member search + const [memberSearchKey, setMemberSearchkey] = useState(""); + const [loadMoreMembers, setLoadModeMembers] = useState(true); + const [searchMembersPageCount, setSearchMembersPageCount] = useState(1); + const [memberSearchArray, setMemberSearchArray] = useState([]); + const generalContext = useContext(GeneralContext); + // states for conversations search const [searchKey, setSearchKey] = useState(""); const [searchState, setSearchState] = useState(0); const [searchArray, setSearchArray] = useState([]); + const [loadMoreConversations, setLoadMoreConversations] = useState(true); const params = useParams(); - const id = params[routeVariable.id]; + const id = params[routeVariable.id]; + const operation = params[routeVariable.operation]; const searchInputBoxRef = useRef(null); - const generalContext = useContext(GeneralContext); function setSearchString(e: any) { setSearchKey(e.target.value); } + function setMemberSearchString(e: any) { + console.log(e.target.value); + setMemberSearchkey(e.target.value); + } async function searchFunction() { try { const pageNo = Math.floor(searchArray?.length / 20) + 1; @@ -44,7 +57,7 @@ const ChannelSearch = ({ setOpenSearch }: any) => { } })(), pageNo, - pageSize, + pageSize ); const response: any = call?.data?.conversations; log("the profiles after the search are"); @@ -60,15 +73,33 @@ const ChannelSearch = ({ setOpenSearch }: any) => { } } + async function searchMembers() { + try { + const call = await myClient.getParticipants({ + searchKey: memberSearchKey, + page: searchMembersPageCount, + pageSize: 10, + isSecret: generalContext.currentChatroom.is_secret || false, + chatroomID: parseInt(id || ""), + }); + const members: any = call?.data?.participants; + if (!members.length) { + setLoadModeMembers(false); + } else { + setSearchMembersPageCount((pageCount) => pageCount + 1); + setMemberSearchArray((currentMembers: any) => { + const newMemberList = [...currentMembers, ...members]; + return newMemberList; + }); + } + } catch (error) { + console.log(error); + } + } + useEffect(() => { function searchClickHandler(e: any) { - // if ( - // searchInputBoxRef.current && - // !searchInputBoxRef.current.contains(e.target) - // ) { - // setOpenSearch(false); - // log(e); - // } + // } document.addEventListener("click", searchClickHandler, true); return () => { @@ -77,14 +108,30 @@ const ChannelSearch = ({ setOpenSearch }: any) => { }, [searchInputBoxRef]); useEffect(() => { - const searchChatroomTimeOut = setTimeout(() => { - searchFunction(); - }, 500); - return () => { - clearTimeout(searchChatroomTimeOut); - }; + if (operation !== "info") { + const searchChatroomTimeOut = setTimeout(() => { + searchFunction(); + }, 500); + return () => { + clearTimeout(searchChatroomTimeOut); + }; + } }, [searchKey]); + useEffect(() => { + if (operation === "info") { + const memberSearchTimeout = setTimeout(() => { + searchMembers(); + }, 500); + return () => { + clearTimeout(memberSearchTimeout); + setSearchMembersPageCount((prev) => 1); + setLoadModeMembers(true); + setMemberSearchArray((p) => []); + }; + } + }, [memberSearchKey]); + // for rendering the profiles function renderProfiles() { try { @@ -100,6 +147,23 @@ const ChannelSearch = ({ setOpenSearch }: any) => { log(error); } } + function renderSearchMembersProfiles() { + try { + return memberSearchArray?.map((profile: any) => { + return ( +
+ +
+ ); + }); + } catch (error) { + log("error in renderProfiles"); + log(error); + } + } return (
{ @@ -132,21 +202,34 @@ const ChannelSearch = ({ setOpenSearch }: any) => { className="mx-4 max-h-[400px] overflow-auto" id="conversations-holder" > - { - if (searchArray) { - return 0; - } else { - return searchArray.length; - } - })()} - next={searchFunction} - loader={null} - > - {renderProfiles()} - + {operation === "info" ? ( + // for hadnling search for members within the groups + + {renderSearchMembersProfiles()} + + ) : ( + { + if (searchArray) { + return 0; + } else { + return searchArray.length; + } + })()} + next={searchFunction} + loader={null} + > + {renderProfiles()} + + )}
); diff --git a/src/modules/components/channel-search/profile-tile.tsx b/src/modules/components/channel-search/profile-tile.tsx index 807e3cd..d52ff40 100644 --- a/src/modules/components/channel-search/profile-tile.tsx +++ b/src/modules/components/channel-search/profile-tile.tsx @@ -1,11 +1,15 @@ import AccountCircleIcon from "@mui/icons-material/AccountCircle"; import { REGEX_USER_SPLITTING, REGEX_USER_TAGGING } from "../../../enums/regex"; -import { useContext } from "react"; +import { useContext, useState } from "react"; import parse from "html-react-parser"; import { GeneralContext } from "../../contexts/generalContext"; import { SEARCHED_CONVERSATION_ID } from "../../../enums/localStorageConstants"; import { linkConverter, tagExtracter } from "../../../sdkFunctions"; import { UserContext } from "../../contexts/userContext"; +import { myClient } from "../../.."; +import { useNavigate } from "react-router-dom"; +import { directMessageChatPath } from "../../../routes"; +import { Snackbar } from "@mui/material"; function renderAnswers(text: string) { const arr = []; @@ -32,6 +36,124 @@ function renderAnswers(text: string) { } } } +export const MemberSearchProfileTile = ({ profile, setOpenSearch }: any) => { + const generalContext = useContext(GeneralContext); + const navigate = useNavigate(); + const [openSnackbar, setOpenSnackbar] = useState(false); + const [snackbarMessage, setSnackbarMessage] = useState(""); + function closeSnackbar() { + setOpenSnackbar(false); + } + function showSnackbar() { + setOpenSnackbar(true); + } + function showMessage(message: string) { + setSnackbarMessage(message); + } + async function handleSearchNavigation() { + // generalContext.setShowLoadingBar(true); + // console.log("the profile time id is ", profile.id); + // sessionStorage.setItem(SEARCHED_CONVERSATION_ID, profile?.id?.toString()); + try { + const dmStatusCall = await myClient.checkDMStatus({ + requestFrom: "member_profile", + uuid: profile.uuid || "", + }); + console.log(dmStatusCall); + if (!dmStatusCall.data.show_dm) { + showMessage("Access to DM Denied"); + showSnackbar(); + return; + } + const chatroomId = dmStatusCall.data.chatroom_id; + if (chatroomId) { + // Route to another chatroom and return + navigate(`${directMessageChatPath}/${chatroomId}`); + return; + } else { + const dmLimitCall = await myClient.checkDMLimitWithUuid({ + uuid: profile.uuid || "", + }); + console.log(dmLimitCall); + if (!dmLimitCall.success) { + // show the error for dmLimitCall in snackbar and return + showMessage(`DM Limit exceeded`); + showSnackbar(); + return; + } + if (dmLimitCall.data.chatroomId) { + // Route to another chatroom and return + navigate(`${directMessageChatPath}/${dmLimitCall.data.chatroomId}`); + return; + } + if (!dmLimitCall.data.isRequestDmLimitExceeded) { + const createDMChatroomCall = await myClient.createDMChatroom({ + memberId: profile.id || "", + }); + console.log(createDMChatroomCall); + // Route to another chatroom and return + navigate( + `${directMessageChatPath}/${createDMChatroomCall.data.chatroom.id}` + ); + return; + } else { + // + showMessage("Some error occoured"); + showSnackbar(); + return; + } + } + } catch (error) { + console.log(error); + } finally { + setOpenSearch(false); + } + } + return ( +
+ + + +
+ ); +}; + +const MemberSearchProfileImageView = ({ imgSource }: any) => { + return ( +
+
+ {imgSource?.length !== 0 ? ( + profile data + ) : ( + + )} +
+
+ ); +}; +const MemberSearchProfileData = ({ userName }: any) => { + return ( +
+
{userName}
+
+ ); +}; const ProfileTile = ({ profile, setOpenSearch }: any) => { const generalContext = useContext(GeneralContext); diff --git a/yarn.lock b/yarn.lock index 9e4d668..d9e0e44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -623,7 +623,7 @@ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.1.tgz" integrity sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA== -"@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.12.3", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.8.0": +"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.0.0-0 || ^8.0.0-0 <8.0.0", "@babel/core@^7.1.0", "@babel/core@^7.11.0", "@babel/core@^7.11.1", "@babel/core@^7.12.0", "@babel/core@^7.12.3", "@babel/core@^7.13.0", "@babel/core@^7.16.0", "@babel/core@^7.4.0 || ^8.0.0-0 <8.0.0", "@babel/core@^7.7.2", "@babel/core@^7.8.0": version "7.24.3" resolved "https://registry.npmjs.org/@babel/core/-/core-7.24.3.tgz" integrity sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ== @@ -995,7 +995,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-flow@^7.24.1": +"@babel/plugin-syntax-flow@^7.14.5", "@babel/plugin-syntax-flow@^7.24.1": version "7.24.1" resolved "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.24.1.tgz" integrity sha512-sxi2kLTI5DeW5vDtMUsk4mTPwvlUDbjOnoWayhynCwrw4QXRld4QEYwqzY8JmQXaJUtgUuCIurtSRH5sn4c7mA== @@ -1442,7 +1442,7 @@ dependencies: "@babel/plugin-transform-react-jsx" "^7.22.5" -"@babel/plugin-transform-react-jsx@^7.22.5", "@babel/plugin-transform-react-jsx@^7.23.4": +"@babel/plugin-transform-react-jsx@^7.14.9", "@babel/plugin-transform-react-jsx@^7.22.5", "@babel/plugin-transform-react-jsx@^7.23.4": version "7.23.4" resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz" integrity sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA== @@ -1892,12 +1892,19 @@ dependencies: "@emotion/memoize" "^0.8.1" +"@emotion/is-prop-valid@1.2.1": + version "1.2.1" + resolved "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz" + integrity sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw== + dependencies: + "@emotion/memoize" "^0.8.1" + "@emotion/memoize@^0.8.1": version "0.8.1" resolved "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz" integrity sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA== -"@emotion/react@11.10.5": +"@emotion/react@^11.0.0-rc.0", "@emotion/react@^11.4.1", "@emotion/react@^11.5.0", "@emotion/react@^11.9.0", "@emotion/react@11.10.5": version "11.10.5" resolved "https://registry.npmjs.org/@emotion/react/-/react-11.10.5.tgz" integrity sha512-TZs6235tCJ/7iF6/rvTaOH4oxQg2gMAcdHemjwLKIjKz4rRuYe1HJ2TQJKnAcRAfOUDdU8XoDadCe1rl72iv8A== @@ -1927,7 +1934,7 @@ resolved "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz" integrity sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA== -"@emotion/styled@11.10.5": +"@emotion/styled@^11.3.0", "@emotion/styled@^11.8.1", "@emotion/styled@11.10.5": version "11.10.5" resolved "https://registry.npmjs.org/@emotion/styled/-/styled-11.10.5.tgz" integrity sha512-8EP6dD7dMkdku2foLoruPCNkRevzdcBaY6q0l0OsbyJK+x8D9HWjX27ARiSIKNF634hY9Zdoedh8bJCiva8yZw== @@ -1944,6 +1951,11 @@ resolved "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz" integrity sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ== +"@emotion/unitless@0.8.0": + version "0.8.0" + resolved "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.0.tgz" + integrity sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw== + "@emotion/use-insertion-effect-with-fallbacks@^1.0.0": version "1.0.1" resolved "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz" @@ -2050,7 +2062,7 @@ "@firebase/util" "1.8.0" tslib "^2.1.0" -"@firebase/app-compat@0.2.0": +"@firebase/app-compat@0.2.0", "@firebase/app-compat@0.x": version "0.2.0" resolved "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.0.tgz" integrity sha512-Y8Cpuheai61jCdVflt437I94n8cdRbXY0e1dQMmTWHCShJUfWwpa5y2ZMnxClWnorXy9hC/3yNZMVlu79f1zGA== @@ -2061,12 +2073,12 @@ "@firebase/util" "1.8.0" tslib "^2.1.0" -"@firebase/app-types@0.9.0": +"@firebase/app-types@0.9.0", "@firebase/app-types@0.x": version "0.9.0" resolved "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.0.tgz" integrity sha512-AeweANOIo0Mb8GiYm3xhTEBVCmPwTYAu9Hcd2qSkLuga/6+j9b1Jskl5bpiSQWy9eJ/j5pavxj6eYogmnuzm+Q== -"@firebase/app@0.9.0": +"@firebase/app@0.9.0", "@firebase/app@0.x": version "0.9.0" resolved "https://registry.npmjs.org/@firebase/app/-/app-0.9.0.tgz" integrity sha512-sa15stSK6FoGW4mCeAVDt0TvBFxPjvNcG2rhacGudOzMaW3g2TS326zXTFG+p5jnTCPZ2SO5TTSiGHn1NNcD9Q== @@ -2351,7 +2363,7 @@ node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/util@1.8.0": +"@firebase/util@1.8.0", "@firebase/util@1.x": version "1.8.0" resolved "https://registry.npmjs.org/@firebase/util/-/util-1.8.0.tgz" integrity sha512-clK6pTTxIiLMYz4UrvDTVAs2rIaOiroAuFdX67C0JalvEwzi6Vv8li6xAGj38tkj7Qax06mosM1fQkxf2h4VTg== @@ -2784,6 +2796,22 @@ resolved "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz" integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== +"@likeminds.community/chat-js-beta@^1.1.88": + version "1.1.88" + resolved "https://registry.npmjs.org/@likeminds.community/chat-js-beta/-/chat-js-beta-1.1.88.tgz" + integrity sha512-hX0UOv+IU3aJe8PVOFPzrvtM5mUeCBrTmePuM0QgxC4EcdiFnQjIMmerldroxBpniG8daxelbAS+pjaJrZ5E3g== + dependencies: + "@aws-sdk/client-s3" "^3.226.0" + "@babel/runtime" "^7.16.3" + "@types/jsonwebtoken" "~9.0.0" + "@types/ws" "^7.4.0" + aws-sdk "^2.1271.0" + axios "^0.22.0" + firebase "^9.15.0" + form-data "^4.0.0" + rxjs "^7.8.1" + ws "^7.4.4" + "@likeminds.community/chat-js@^1.5.0": version "1.6.0" resolved "https://registry.npmjs.org/@likeminds.community/chat-js/-/chat-js-1.6.0.tgz" @@ -2800,7 +2828,7 @@ rxjs "^7.8.1" ws "^7.4.4" -"@mui/base@5.0.0-alpha.105": +"@mui/base@^5.0.0-alpha.87", "@mui/base@5.0.0-alpha.105": version "5.0.0-alpha.105" resolved "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.105.tgz" integrity sha512-4IPBcJQIgVVXQvN6DQMoCHed52GBtwSqYs0jD0dDcMR3o76AodQtpEeWFz3p7mJoc6f/IHBl9U6jEfL1r/kM4g== @@ -2826,7 +2854,7 @@ dependencies: "@babel/runtime" "^7.19.0" -"@mui/material@5.10.13": +"@mui/material@^5.0.0", "@mui/material@^5.8.6", "@mui/material@5.10.13": version "5.10.13" resolved "https://registry.npmjs.org/@mui/material/-/material-5.10.13.tgz" integrity sha512-TkkT1rNc0/hhL4/+zv4gYcA6egNWBH/1Tz+azoTnQIUdZ32fgwFI2pFX2KVJNTt30xnLznxDWtTv7ilmJQ52xw== @@ -2863,7 +2891,7 @@ csstype "^3.1.3" prop-types "^15.8.1" -"@mui/system@^5.10.13": +"@mui/system@^5.10.13", "@mui/system@^5.8.0": version "5.15.14" resolved "https://registry.npmjs.org/@mui/system/-/system-5.15.14.tgz" integrity sha512-auXLXzUaCSSOLqJXmsAaq7P96VPRXg2Rrz6OHNV7lr+kB8lobUF+/N84Vd9C4G/wvCXYPs5TYuuGBRhcGbiBGg== @@ -3663,7 +3691,7 @@ "@svgr/plugin-svgo" "^5.5.0" loader-utils "^2.0.0" -"@testing-library/dom@^8.5.0": +"@testing-library/dom@^8.5.0", "@testing-library/dom@>=7.21.4": version "8.20.1" resolved "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.1.tgz" integrity sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g== @@ -3723,7 +3751,7 @@ resolved "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz" integrity sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw== -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": +"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14", "@types/babel__core@^7.1.9": version "7.20.5" resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz" integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== @@ -3978,7 +4006,7 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.2.48": +"@types/react@*", "@types/react@^17.0.0 || ^18.0.0", "@types/react@^18.2.48": version "18.2.54" resolved "https://registry.npmjs.org/@types/react/-/react-18.2.54.tgz" integrity sha512-039k+vrVJymDoe2y+HLk3O3oI3sa+C8KNjuDKofqrIJK26ramnqLNj9VJTaxAzFGMvpW/79HrrAJapHzpQ9fGQ== @@ -4045,6 +4073,11 @@ resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz" integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== +"@types/stylis@4.2.0": + version "4.2.0" + resolved "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.0.tgz" + integrity sha512-n4sx2bqL0mW1tvDf/loQ+aMX7GQD3lc3fkCMC55VFNDu/vBOabO+LTIeXKM14xK0ppk5TUGcWRjiSpIlUpghKw== + "@types/testing-library__jest-dom@^5.9.1": version "5.14.9" resolved "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.9.tgz" @@ -4090,23 +4123,7 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^5.5.0": - version "5.62.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz" - integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.62.0" - "@typescript-eslint/type-utils" "5.62.0" - "@typescript-eslint/utils" "5.62.0" - debug "^4.3.4" - graphemer "^1.4.0" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/eslint-plugin@^6.9.1": +"@typescript-eslint/eslint-plugin@^4.0.0 || ^5.0.0", "@typescript-eslint/eslint-plugin@^6.9.1": version "6.18.1" resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.18.1.tgz" integrity sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA== @@ -4123,6 +4140,22 @@ semver "^7.5.4" ts-api-utils "^1.0.1" +"@typescript-eslint/eslint-plugin@^5.5.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz" + integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag== + dependencies: + "@eslint-community/regexpp" "^4.4.0" + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/type-utils" "5.62.0" + "@typescript-eslint/utils" "5.62.0" + debug "^4.3.4" + graphemer "^1.4.0" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + semver "^7.3.7" + tsutils "^3.21.0" + "@typescript-eslint/experimental-utils@^5.0.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz" @@ -4130,7 +4163,7 @@ dependencies: "@typescript-eslint/utils" "5.62.0" -"@typescript-eslint/parser@^5.5.0": +"@typescript-eslint/parser@^5.0.0", "@typescript-eslint/parser@^5.5.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz" integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== @@ -4140,7 +4173,7 @@ "@typescript-eslint/typescript-estree" "5.62.0" debug "^4.3.4" -"@typescript-eslint/parser@^6.9.1": +"@typescript-eslint/parser@^6.0.0 || ^6.0.0-alpha", "@typescript-eslint/parser@^6.9.1": version "6.18.1" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.18.1.tgz" integrity sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA== @@ -4458,16 +4491,16 @@ acorn-walk@^7.1.1: resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8, acorn@^8.2.4, acorn@^8.7.1, acorn@^8.8.2, acorn@^8.9.0: + version "8.11.3" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz" + integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== + acorn@^7.1.1: version "7.4.1" resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.2.4, acorn@^8.7.1, acorn@^8.8.2, acorn@^8.9.0: - version "8.11.3" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz" - integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== - address@^1.0.1, address@^1.1.2: version "1.2.2" resolved "https://registry.npmjs.org/address/-/address-1.2.2.tgz" @@ -4495,7 +4528,12 @@ ajv-formats@^2.1.1: dependencies: ajv "^8.0.0" -ajv-keywords@^3.4.1, ajv-keywords@^3.5.2: +ajv-keywords@^3.4.1: + version "3.5.2" + resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv-keywords@^3.5.2: version "3.5.2" resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== @@ -4507,7 +4545,7 @@ ajv-keywords@^5.1.0: dependencies: fast-deep-equal "^3.1.3" -ajv@^6.12.2, ajv@^6.12.4, ajv@^6.12.5: +ajv@^6.12.2, ajv@^6.12.5, ajv@^6.9.1: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -4517,27 +4555,17 @@ ajv@^6.12.2, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.0: - version "8.12.0" - resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" - integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -ajv@^8.6.0: - version "8.12.0" - resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" - integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== +ajv@^6.12.4, ajv@^6.9.1: + version "6.12.6" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== dependencies: fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.9.0: +ajv@^8.0.0, ajv@^8.6.0, ajv@^8.8.2, ajv@^8.9.0, ajv@>=8: version "8.12.0" resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== @@ -5077,7 +5105,7 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@^4.0.0, browserslist@^4.18.1, browserslist@^4.21.10, browserslist@^4.21.4, browserslist@^4.22.2, browserslist@^4.23.0: +browserslist@^4.0.0, browserslist@^4.18.1, browserslist@^4.21.10, browserslist@^4.21.4, browserslist@^4.22.2, browserslist@^4.23.0, "browserslist@>= 4", "browserslist@>= 4.21.0", browserslist@>=4: version "4.23.0" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz" integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== @@ -5162,6 +5190,11 @@ camelcase@^6.2.0, camelcase@^6.2.1: resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== +camelize@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz" + integrity sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ== + caniuse-api@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz" @@ -5559,6 +5592,11 @@ css-blank-pseudo@^3.0.3: dependencies: postcss-selector-parser "^6.0.9" +css-color-keywords@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz" + integrity sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg== + css-declaration-sorter@^6.3.1: version "6.4.1" resolved "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz" @@ -5635,6 +5673,15 @@ css-select@^4.1.3: domutils "^2.8.0" nth-check "^2.0.1" +css-to-react-native@3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz" + integrity sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ== + dependencies: + camelize "^1.0.0" + css-color-keywords "^1.0.0" + postcss-value-parser "^4.0.2" + css-tree@^1.1.2, css-tree@^1.1.3: version "1.1.3" resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz" @@ -5754,6 +5801,11 @@ csstype@^3.0.2, csstype@^3.1.1, csstype@^3.1.2, csstype@^3.1.3: resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== +csstype@3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz" + integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ== + damerau-levenshtein@^1.0.8: version "1.0.8" resolved "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz" @@ -5795,7 +5847,7 @@ data-view-byte-offset@^1.0.0: es-errors "^1.3.0" is-data-view "^1.0.1" -dayjs@1.11.9: +dayjs@^1.10.7, dayjs@1.11.9: version "1.11.9" resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.9.tgz" integrity sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA== @@ -6588,7 +6640,7 @@ eslint-webpack-plugin@^3.1.1: normalize-path "^3.0.0" schema-utils "^4.0.0" -eslint@^8.3.0, eslint@^8.53.0: +eslint@*, "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8", "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0", "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^7.0.0 || ^8.0.0", "eslint@^7.5.0 || ^8.0.0", eslint@^8.0.0, eslint@^8.1.0, eslint@^8.3.0, eslint@^8.53.0, "eslint@>= 6": version "8.56.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz" integrity sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ== @@ -8322,7 +8374,7 @@ jest-resolve-dependencies@^27.5.1: jest-regex-util "^27.5.1" jest-snapshot "^27.5.1" -jest-resolve@^27.4.2, jest-resolve@^27.5.1: +jest-resolve@*, jest-resolve@^27.4.2, jest-resolve@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz" integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== @@ -8544,7 +8596,7 @@ jest-worker@^28.0.2: merge-stream "^2.0.0" supports-color "^8.0.0" -jest@^27.4.3: +"jest@^27.0.0 || ^28.0.0", jest@^27.4.3: version "27.5.1" resolved "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz" integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== @@ -9136,6 +9188,11 @@ nano-css@^5.3.1: stacktrace-js "^2.0.2" stylis "^4.3.0" +nanoid@^3.3.6: + version "3.3.7" + resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz" + integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== + nanoid@^3.3.7: version "3.3.7" resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz" @@ -10118,11 +10175,20 @@ postcss-unique-selectors@^5.1.1: dependencies: postcss-selector-parser "^6.0.5" -postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: +postcss-value-parser@^4.0.0, postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: version "4.2.0" resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== +"postcss@^7.0.0 || ^8.0.1", postcss@^8, postcss@^8.0.0, postcss@^8.0.3, postcss@^8.0.9, postcss@^8.1.0, postcss@^8.1.4, postcss@^8.2, postcss@^8.2.14, postcss@^8.2.15, postcss@^8.2.2, postcss@^8.3, postcss@^8.3.5, postcss@^8.4, postcss@^8.4.19, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.33, postcss@^8.4.4, postcss@^8.4.6, "postcss@>= 8", postcss@>=8, postcss@>=8.0.9: + version "8.4.38" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz" + integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== + dependencies: + nanoid "^3.3.7" + picocolors "^1.0.0" + source-map-js "^1.2.0" + postcss@^7.0.35: version "7.0.39" resolved "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz" @@ -10131,14 +10197,14 @@ postcss@^7.0.35: picocolors "^0.2.1" source-map "^0.6.1" -postcss@^8.3.5, postcss@^8.4.19, postcss@^8.4.23, postcss@^8.4.33, postcss@^8.4.4: - version "8.4.38" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz" - integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== +postcss@8.4.31: + version "8.4.31" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz" + integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ== dependencies: - nanoid "^3.3.7" + nanoid "^3.3.6" picocolors "^1.0.0" - source-map-js "^1.2.0" + source-map-js "^1.0.2" prelude-ls@^1.2.1: version "1.2.1" @@ -10401,6 +10467,14 @@ react-dev-utils@^12.0.1: strip-ansi "^6.0.1" text-table "^0.2.0" +react-dom@*, "react-dom@^16.3.0 || ^17.0.0 || ^18.0.0", "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0", "react-dom@^17.0.0 || ^18.0.0", react-dom@^18.0.0, "react-dom@>= 16.8.0", react-dom@>=16.6.0, react-dom@>=16.8, react-dom@>=16.8.3, react-dom@18.2.0: + version "18.2.0" + resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz" + integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== + dependencies: + loose-envify "^1.1.0" + scheduler "^0.23.0" + react-dom@17.0.2: version "17.0.2" resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz" @@ -10410,14 +10484,6 @@ react-dom@17.0.2: object-assign "^4.1.1" scheduler "^0.20.2" -react-dom@18.2.0: - version "18.2.0" - resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz" - integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== - dependencies: - loose-envify "^1.1.0" - scheduler "^0.23.0" - react-easy-swipe@^0.0.21: version "0.0.21" resolved "https://registry.npmjs.org/react-easy-swipe/-/react-easy-swipe-0.0.21.tgz" @@ -10516,7 +10582,7 @@ react-property@2.0.0: resolved "https://registry.npmjs.org/react-property/-/react-property-2.0.0.tgz" integrity sha512-kzmNjIgU32mO4mmH5+iUyrqlpFQhF8K2k7eZ4fdLSOPFrD1XgEuSBv9LDEgxRXTMBqMd8ppT0x6TIzqE5pdGdw== -react-refresh@^0.11.0: +react-refresh@^0.11.0, "react-refresh@>=0.10.0 <1.0.0": version "0.11.0" resolved "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz" integrity sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A== @@ -10635,6 +10701,13 @@ react-use@17.4.0: ts-easing "^0.2.0" tslib "^2.1.0" +react@*, "react@^0.14.9 || ^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^15.0.0 || ^16.0.0", "react@^16.3.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^17.0.0 || ^18.0.0", react@^18.0.0, react@^18.2.0, "react@>= 16", "react@>= 16.8.0", react@>=16, react@>=16.0.0, react@>=16.6.0, react@>=16.8, react@>=16.8.0, react@>=16.8.3, "react@0.14 || 15 || 16 || 17 || 18", "react@16.10.2 - 18", react@16.x, react@18.2.0: + version "18.2.0" + resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== + dependencies: + loose-envify "^1.1.0" + react@17.0.2: version "17.0.2" resolved "https://registry.npmjs.org/react/-/react-17.0.2.tgz" @@ -10643,13 +10716,6 @@ react@17.0.2: loose-envify "^1.1.0" object-assign "^4.1.1" -react@18.2.0: - version "18.2.0" - resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz" - integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== - dependencies: - loose-envify "^1.1.0" - read-cache@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz" @@ -10725,7 +10791,12 @@ regenerate@^1.4.2: resolved "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.9: +regenerator-runtime@^0.13.2: + version "0.13.11" + resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== + +regenerator-runtime@^0.13.9: version "0.13.11" resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== @@ -10890,7 +10961,7 @@ rollup-plugin-terser@^7.0.0: serialize-javascript "^4.0.0" terser "^5.0.0" -rollup@^2.43.1: +"rollup@^1.20.0 || ^2.0.0", rollup@^1.20.0||^2.0.0, rollup@^2.0.0, rollup@^2.43.1: version "2.79.1" resolved "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz" integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== @@ -11172,6 +11243,11 @@ setprototypeof@1.2.0: resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== +shallowequal@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz" + integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ== + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" @@ -11238,7 +11314,7 @@ source-list-map@^2.0.0, source-list-map@^2.0.1: resolved "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== -source-map-js@^1.0.1, source-map-js@^1.2.0: +source-map-js@^1.0.1, source-map-js@^1.0.2, source-map-js@^1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz" integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== @@ -11594,6 +11670,21 @@ style-to-object@0.3.0: dependencies: inline-style-parser "0.1.1" +"styled-components@>= 5": + version "6.1.8" + resolved "https://registry.npmjs.org/styled-components/-/styled-components-6.1.8.tgz" + integrity sha512-PQ6Dn+QxlWyEGCKDS71NGsXoVLKfE1c3vApkvDYS5KAK+V8fNWGhbSUEo9Gg2iaID2tjLXegEW3bZDUGpofRWw== + dependencies: + "@emotion/is-prop-valid" "1.2.1" + "@emotion/unitless" "0.8.0" + "@types/stylis" "4.2.0" + css-to-react-native "3.2.0" + csstype "3.1.2" + postcss "8.4.31" + shallowequal "1.1.0" + stylis "4.3.1" + tslib "2.5.0" + stylehacks@^5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz" @@ -11612,6 +11703,11 @@ stylis@4.2.0: resolved "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz" integrity sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw== +stylis@4.3.1: + version "4.3.1" + resolved "https://registry.npmjs.org/stylis/-/stylis-4.3.1.tgz" + integrity sha512-EQepAV+wMsIaGVGX1RECzgrcqRRU/0sYOHkeLsZ3fzHaHXZy4DaOOX0vOlGQdlsjkh3mFHAIlVimpwAs4dslyQ== + substyle@^9.1.0: version "9.4.1" resolved "https://registry.npmjs.org/substyle/-/substyle-9.4.1.tgz" @@ -11925,6 +12021,11 @@ tsconfig-paths@^3.15.0: minimist "^1.2.6" strip-bom "^3.0.0" +tslib@*, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.5.0: + version "2.5.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz" + integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== + tslib@^1.11.1: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" @@ -11935,10 +12036,10 @@ tslib@^1.8.1: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.5.0: - version "2.5.2" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz" - integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== +tslib@2.5.0: + version "2.5.0" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz" + integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== tsutils@^3.21.0: version "3.21.0" @@ -11971,7 +12072,7 @@ type-fest@^0.16.0: resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz" integrity sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg== -type-fest@^0.20.2: +type-fest@^0.20.2, "type-fest@>=0.17.0 <5.0.0": version "0.20.2" resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== @@ -12040,7 +12141,7 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^5.0.4: +"typescript@^3.2.1 || ^4", typescript@^5.0.4, "typescript@>= 2.7", "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta", typescript@>=4.2.0: version "5.0.4" resolved "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz" integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== @@ -12283,7 +12384,7 @@ webpack-dev-middleware@^5.3.4: range-parser "^1.2.1" schema-utils "^4.0.0" -webpack-dev-server@^4.6.0: +webpack-dev-server@^4.6.0, "webpack-dev-server@3.x || 4.x": version "4.15.2" resolved "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.2.tgz" integrity sha512-0XavAZbNJ5sDrCbkpWL8mia0o5WPOd2YGtxrEiZkBK9FjLppIUK2TgxK6qGD2P3hUXTJNNPVibrerKcx5WkR1g== @@ -12348,7 +12449,7 @@ webpack-sources@^3.2.3: resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@^5.64.4: +"webpack@^4.0.0 || ^5.0.0", "webpack@^4.37.0 || ^5.0.0", "webpack@^4.4.0 || ^5.9.0", "webpack@^4.44.2 || ^5.47.0", webpack@^5.0.0, webpack@^5.1.0, webpack@^5.20.0, webpack@^5.64.4, "webpack@>= 4", webpack@>=2, "webpack@>=4.43.0 <6.0.0": version "5.91.0" resolved "https://registry.npmjs.org/webpack/-/webpack-5.91.0.tgz" integrity sha512-rzVwlLeBWHJbmgTC/8TvAcu5vpJNII+MelQpylD4jNERPwpBJOE2lEcko1zJX3QJeLjTTAnQxn/OJ8bjDzVQaw== From d5da693f86a6d4514c5b50adf58909100910ba59 Mon Sep 17 00:00:00 2001 From: omenUchiha Date: Thu, 2 May 2024 21:26:49 +0530 Subject: [PATCH 3/4] Added: Member Search --- .env | 4 +- .firebase/hosting.YnVpbGQ.cache | 68 +++++++++--------- package.json | 3 +- src/App.css | 13 ++++ src/index.tsx | 12 +--- .../components/channel-search/index.tsx | 71 ++++++++++++------- .../channel-search/profile-tile.tsx | 4 +- src/modules/components/input-box/index.tsx | 11 ++- .../message-boxes-components/MessageBox.tsx | 3 + yarn.lock | 8 +-- 10 files changed, 115 insertions(+), 82 deletions(-) diff --git a/.env b/.env index f18d5af..5f36d61 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -REACT_APP_API_KEY = 01b4e80f-29e7-45ad-b914-69d61ffc130d +REACT_APP_API_KEY = REACT_APP_XPLATFORM_CODE = rt -REACT_APP_XVERSION_CODE = 38 +REACT_APP_XVERSION_CODE = 39 SKIP_PREFLIGHT_CHECK=true \ No newline at end of file diff --git a/.firebase/hosting.YnVpbGQ.cache b/.firebase/hosting.YnVpbGQ.cache index 453ab05..196ced1 100644 --- a/.firebase/hosting.YnVpbGQ.cache +++ b/.firebase/hosting.YnVpbGQ.cache @@ -1,34 +1,34 @@ -robots.txt,1711966042603,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2 -asset-manifest.json,1711966091947,70272fea83f0b3730cfb92cf25ba8cff0c9f6fe6c9d4f06fd36e5c81d4d19ca6 -manifest.json,1711966042602,341d52628782f8ac9290bbfc43298afccb47b7cbfcee146ae30cf0f46bc30900 -index.html,1711966091919,d8c23a1f71b1b3bd96615d54fb76d07b8c06ee8d80b7930fed46e674db1760fa -favicon.ico,1711966042600,b72f7455f00e4e58792d2bca892abb068e2213838c0316d6b7a0d6d16acd1955 -static/js/main.4cfb1026.js.LICENSE.txt,1711966091947,1dd5348860a98e6dd4035891cda394702fd6aeb1c6d22a08b60fb851371784f6 -static/media/abm.0c8d0a92900c532757d3d9affd120633.svg,1711966091916,567591cea3d1883031e623eda49e05bf26d32832d49e5aa7c285319e44f89406 -logo192.png,1711966042601,caff018b7f1e8fd481eb1c50d75b0ef236bcd5078b1d15c8bb348453fee30293 -logo512.png,1711966042602,191fc21360b4ccfb1cda11a1efb97f489ed22672ca83f4064316802bbfdd750e -static/media/arrow-left.1e1cbca73f3ffe7b532bf956255e7891.svg,1711966091916,ab7e6de688683a289f3b0fa7fd9b88f50bb9822a199963cc848600bf0ab5880b -static/media/accept.4e9da557a936c99bda6fe77927f9efb9.svg,1711966091942,931edbc52705e06e7f96c42354f0087188af31c5505d8fee515db9a579e38987 -static/media/camera.8c8136405c69e736dcd7c4f2fb117ffd.svg,1711966091917,a9ce31ef4b58f9cf698916bda7fd74ba43a13851273f3bf8d1341c6a2e4e73dc -static/media/cancel.b76a728373298319aa4162cc45fd32aa.svg,1711966091917,4124f410ec98059d6b0c877ff142ab0a4f80c0bc44cf6891850e18c6afb806ad -static/media/dm.ec00e8820014b69a9f11e229eacd53bd.svg,1711966091917,4f96a5d3916258d89c21ab6e8a123023d5021c142a26e848817062bace321255 -static/media/checkMark.120f6501b12ba27e123a95236330ad88.svg,1711966091950,793c00904aeb76c4e4b1c93689a35768cd32fb0b383c58bb086cecf787fdb464 -static/css/main.f92c7d92.css,1711966091947,aea4bc2844c25b913d4c17acd3133b38e5e778172b5bbcb2126ff1d6127f2af0 -static/media/forum.e804e6e6cde99822a29c8eb02599389b.svg,1711966091917,42a3b1d070aac3f54e603a42e2c0c10f96d19f802c9c2bf957fb77fc63815dda -static/media/events.2b4b8fdb79d01ebfe38f2a92bda2d1ab.svg,1711966091917,1e78063cab04ebe9bc585ca5c0c9371fa8ea72f5ea3e20ed6fc0df4232456263 -static/media/giffy.c9de18de750545bdd71ac8ebe81e1aa0.svg,1711966091917,133734fdd9b48b14c39f2b85ec48ea898e1552dfa1eca6bd64b427a72869b784 -static/media/groups.482b6aa7e78319d1fa9e77d609f1cf54.svg,1711966091916,98444fa800f478795ceeee4b387f2fe7e4c6c2169324ff87a7cd95c4a4df3b81 -static/media/more-vertical.260b2bef498c3e9834d9a47a22952fdc.svg,1711966091943,888cd38c98ad521379b4d3e79ada625ede3f024d54daea6b23448554a2ee1341 -static/media/menu.e6cfe0dc688d828f8bb50fba766e1cbe.svg,1711966091942,0a988f6608d1e787dcdd092f74095d843edc7a85d8cc8fee6dcf79dbb5bb5276 -static/media/pdf-document.79777399c9e50edf7fbd39ee3a28c230.svg,1711966091916,15519dee941e51fb66cb274fd5597810c9d51d3760257885114bbad95342ad2f -static/media/paperclip.bdfef3e16b5867497ec7d146471ec318.svg,1711966091918,f31276b2b8767bdf7faff0d31b9761a67dc2573f283e1ea98c6f8f833229699b -static/media/search.a176386538cf80eabcb8b415dc9f62d1.svg,1711966091916,ed409b7b2aecf0a672de20baa6cf2d1560e808ef4a17403bce8e01b040467a9f -static/media/right-arrow.3ecedc4c33bc5afc087d5e5a1c06dab3.svg,1711966091916,84b7d2e3996caba4f77b114f7264df832f688571546452f7365492ebea47c89e -static/media/searchBoxIcon.3d5b38edd72280bcfdcfb6fddb489336.svg,1711966091942,74a80552dd72073ded6bd6506cdb67d472014764389fa5e64fc60e7bbfa1ce5e -static/media/send.f9e22b549375df73794ecf361099b0d7.svg,1711966091916,e2cdd6a775b04e48b91cc97acfa12a0f99630e3b5ae78278f206b531349674a8 -static/media/smile.5656bc7ba72554d31789f300dd4073c4.svg,1711966091917,81df6977e8b3084f5f78a2528b7ed07082fb2b9e092032409f0118ce007d95a5 -static/css/main.f92c7d92.css.map,1711966091949,39149110cfd9973a5e9898ff9e17b5b1699d28a568409c2d4fa4954fe5b6fac9 -static/media/traya_logo.7609c303424b3afff3fd.webp,1711966091943,672bed057f8f8a81a5960ce64a8c78d0db8b25bc877bdb91fd465f02aa9e0723 -static/media/noResults.91392261b0d70ec333af73e2eb24826f.svg,1711966091942,f48be8ac669703f5693684a2e70a8d92d6c08d4b5f0e21bd65c7b7924c98705c -static/js/main.4cfb1026.js,1711966091947,3d750a88a22ad1aa4a9a4def36ed41f9435b76d66d7d3911b5a7b1c8f87083e0 -static/js/main.4cfb1026.js.map,1711966091945,bfe3da8f7437724855552f9cbbfa4d829443af66664a7416a9098eaf072341dd +asset-manifest.json,1714641848016,99c5a1fa9c35eba0618460cb3f284740e5b49a909765f617a8544b71c4a83596 +index.html,1714641847992,6f0be882e98769e13323084b3653f13cd513ae12a9e690d8ed01ddc038c35764 +favicon.ico,1714641786255,b72f7455f00e4e58792d2bca892abb068e2213838c0316d6b7a0d6d16acd1955 +manifest.json,1714641786258,341d52628782f8ac9290bbfc43298afccb47b7cbfcee146ae30cf0f46bc30900 +logo192.png,1714641786256,caff018b7f1e8fd481eb1c50d75b0ef236bcd5078b1d15c8bb348453fee30293 +robots.txt,1714641786258,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2 +logo512.png,1714641786257,191fc21360b4ccfb1cda11a1efb97f489ed22672ca83f4064316802bbfdd750e +static/js/main.fac608c6.js.LICENSE.txt,1714641848016,1dd5348860a98e6dd4035891cda394702fd6aeb1c6d22a08b60fb851371784f6 +static/css/main.982acfb1.css,1714641848152,83a8475dda8cf15d96ec9c5ec4de5e7141b90bda7e6a4b825ccd4bcfa126d626 +static/media/accept.4e9da557a936c99bda6fe77927f9efb9.svg,1714641848016,931edbc52705e06e7f96c42354f0087188af31c5505d8fee515db9a579e38987 +static/media/abm.0c8d0a92900c532757d3d9affd120633.svg,1714641847989,567591cea3d1883031e623eda49e05bf26d32832d49e5aa7c285319e44f89406 +static/media/arrow-left.1e1cbca73f3ffe7b532bf956255e7891.svg,1714641847990,ab7e6de688683a289f3b0fa7fd9b88f50bb9822a199963cc848600bf0ab5880b +static/media/cancel.b76a728373298319aa4162cc45fd32aa.svg,1714641848016,4124f410ec98059d6b0c877ff142ab0a4f80c0bc44cf6891850e18c6afb806ad +static/media/camera.8c8136405c69e736dcd7c4f2fb117ffd.svg,1714641847990,a9ce31ef4b58f9cf698916bda7fd74ba43a13851273f3bf8d1341c6a2e4e73dc +static/media/checkMark.120f6501b12ba27e123a95236330ad88.svg,1714641848016,793c00904aeb76c4e4b1c93689a35768cd32fb0b383c58bb086cecf787fdb464 +static/media/dm.ec00e8820014b69a9f11e229eacd53bd.svg,1714641847990,4f96a5d3916258d89c21ab6e8a123023d5021c142a26e848817062bace321255 +static/media/events.2b4b8fdb79d01ebfe38f2a92bda2d1ab.svg,1714641847990,1e78063cab04ebe9bc585ca5c0c9371fa8ea72f5ea3e20ed6fc0df4232456263 +static/media/forum.e804e6e6cde99822a29c8eb02599389b.svg,1714641847988,42a3b1d070aac3f54e603a42e2c0c10f96d19f802c9c2bf957fb77fc63815dda +static/media/groups.482b6aa7e78319d1fa9e77d609f1cf54.svg,1714641847990,98444fa800f478795ceeee4b387f2fe7e4c6c2169324ff87a7cd95c4a4df3b81 +static/media/giffy.c9de18de750545bdd71ac8ebe81e1aa0.svg,1714641847990,133734fdd9b48b14c39f2b85ec48ea898e1552dfa1eca6bd64b427a72869b784 +static/media/more-vertical.260b2bef498c3e9834d9a47a22952fdc.svg,1714641847990,888cd38c98ad521379b4d3e79ada625ede3f024d54daea6b23448554a2ee1341 +static/media/menu.e6cfe0dc688d828f8bb50fba766e1cbe.svg,1714641848016,0a988f6608d1e787dcdd092f74095d843edc7a85d8cc8fee6dcf79dbb5bb5276 +static/media/pdf-document.79777399c9e50edf7fbd39ee3a28c230.svg,1714641847989,15519dee941e51fb66cb274fd5597810c9d51d3760257885114bbad95342ad2f +static/media/paperclip.bdfef3e16b5867497ec7d146471ec318.svg,1714641847989,f31276b2b8767bdf7faff0d31b9761a67dc2573f283e1ea98c6f8f833229699b +static/media/search.a176386538cf80eabcb8b415dc9f62d1.svg,1714641847989,ed409b7b2aecf0a672de20baa6cf2d1560e808ef4a17403bce8e01b040467a9f +static/media/right-arrow.3ecedc4c33bc5afc087d5e5a1c06dab3.svg,1714641847989,84b7d2e3996caba4f77b114f7264df832f688571546452f7365492ebea47c89e +static/media/searchBoxIcon.3d5b38edd72280bcfdcfb6fddb489336.svg,1714641848016,74a80552dd72073ded6bd6506cdb67d472014764389fa5e64fc60e7bbfa1ce5e +static/media/smile.5656bc7ba72554d31789f300dd4073c4.svg,1714641847990,81df6977e8b3084f5f78a2528b7ed07082fb2b9e092032409f0118ce007d95a5 +static/css/main.982acfb1.css.map,1714641848152,c1444843f9aea63d2149d35477d7b873ed928dadef8a1bb629b43158c0f16ab7 +static/media/traya_logo.7609c303424b3afff3fd.webp,1714641848016,672bed057f8f8a81a5960ce64a8c78d0db8b25bc877bdb91fd465f02aa9e0723 +static/media/send.f9e22b549375df73794ecf361099b0d7.svg,1714641847989,e2cdd6a775b04e48b91cc97acfa12a0f99630e3b5ae78278f206b531349674a8 +static/media/noResults.91392261b0d70ec333af73e2eb24826f.svg,1714641848016,f48be8ac669703f5693684a2e70a8d92d6c08d4b5f0e21bd65c7b7924c98705c +static/js/main.fac608c6.js,1714641848151,3156c119d9e27ea9e3ac20fc290095873f250dc5d2c929e4f5c5b9ba33a1aa8b +static/js/main.fac608c6.js.map,1714641848102,d3309563fd560c215730eccaf941afc223090d473a18aea52a4495671eddfd63 diff --git a/package.json b/package.json index 8ed4c22..0f2e18b 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "@emotion/react": "11.10.5", "@emotion/styled": "11.10.5", "@giphy/react-components": "^9.2.3", - "@likeminds.community/chat-js": "^1.5.0", - "@likeminds.community/chat-js-beta": "^1.1.88", + "@likeminds.community/chat-js": "1.7.1", "@mui/icons-material": "5.10.9", "@mui/material": "5.10.13", "@mui/x-date-pickers": "6.9.1", diff --git a/src/App.css b/src/App.css index bd805f8..69a4d85 100644 --- a/src/App.css +++ b/src/App.css @@ -72,4 +72,17 @@ display: inline-block; line-height: 24px; z-index: 1; +} + +.isEdited-conversation-tag::after { + content: ""; + height: 2px; + width: 2px; + border-radius: 50%; + background-color: #323232; + display: inline-block; + color: #323232; + margin-bottom: 2px; + margin-right: 2px; + margin-left: 1px; } \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index a84c71a..ca0eca2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,6 @@ import ReactDOM from "react-dom/client"; import { BrowserRouter } from "react-router-dom"; -import LMChatClient from "@likeminds.community/chat-js-beta"; +import LMChatClient from "@likeminds.community/chat-js"; import "./index.css"; import App from "./App"; @@ -11,15 +11,9 @@ const root = ReactDOM.createRoot( export const myClient: LMChatClient = LMChatClient.setApiKey( process.env.REACT_APP_API_KEY || "" ) - .setPlatformCode("rt") - .setVersionCode(50) + .setPlatformCode(process.env.REACT_APP_XPLATFORM_CODE!) + .setVersionCode(parseInt(process.env.REACT_APP_XVERSION_CODE!)) .build(); -// export const myClient: LMChatClient = LMChatClient.setApiKey( -// process.env.REACT_APP_API_KEY || "" -// ) -// .setPlatformCode(process.env.REACT_APP_XPLATFORM_CODE!) -// .setVersionCode(parseInt(process.env.REACT_APP_XVERSION_CODE!)) -// .build(); root.render( diff --git a/src/modules/components/channel-search/index.tsx b/src/modules/components/channel-search/index.tsx index aa59da6..4db5a16 100644 --- a/src/modules/components/channel-search/index.tsx +++ b/src/modules/components/channel-search/index.tsx @@ -1,5 +1,11 @@ import { IconButton } from "@mui/material"; -import React, { useContext, useEffect, useRef, useState } from "react"; +import React, { + useCallback, + useContext, + useEffect, + useRef, + useState, +} from "react"; import ArrowBackIcon from "@mui/icons-material/ArrowBack"; import { myClient } from "../../.."; import searchConversationsInsideChatroom from "../../../sdkFunctions/searchFunctions"; @@ -73,29 +79,39 @@ const ChannelSearch = ({ setOpenSearch }: any) => { } } - async function searchMembers() { - try { - const call = await myClient.getParticipants({ - searchKey: memberSearchKey, - page: searchMembersPageCount, - pageSize: 10, - isSecret: generalContext.currentChatroom.is_secret || false, - chatroomID: parseInt(id || ""), - }); - const members: any = call?.data?.participants; - if (!members.length) { - setLoadModeMembers(false); - } else { - setSearchMembersPageCount((pageCount) => pageCount + 1); - setMemberSearchArray((currentMembers: any) => { - const newMemberList = [...currentMembers, ...members]; - return newMemberList; + const searchMembers = useCallback( + async function (pgNo?: number) { + try { + const call = await myClient.viewParticipants({ + // searchKey: memberSearchKey, + participantName: memberSearchKey, + page: pgNo || searchMembersPageCount, + pageSize: 10, + isSecret: generalContext.currentChatroom.is_secret || false, + chatroomId: parseInt(id || ""), }); + const members: any = call?.data?.participants; + if (!members.length) { + setLoadModeMembers(false); + } else { + setSearchMembersPageCount((pageCount) => pageCount + 1); + setMemberSearchArray((currentMembers: any) => { + const newMemberList = [...currentMembers, ...members]; + return newMemberList; + }); + } + } catch (error) { + console.log(error); } - } catch (error) { - console.log(error); - } - } + }, + [ + memberSearchArray, + memberSearchKey, + searchMembersPageCount, + generalContext, + id, + ] + ); useEffect(() => { function searchClickHandler(e: any) { @@ -121,7 +137,7 @@ const ChannelSearch = ({ setOpenSearch }: any) => { useEffect(() => { if (operation === "info") { const memberSearchTimeout = setTimeout(() => { - searchMembers(); + searchMembers(1); }, 500); return () => { clearTimeout(memberSearchTimeout); @@ -137,7 +153,7 @@ const ChannelSearch = ({ setOpenSearch }: any) => { try { return searchArray?.map((profile: any) => { return ( -
+
); @@ -149,9 +165,12 @@ const ChannelSearch = ({ setOpenSearch }: any) => { } function renderSearchMembersProfiles() { try { + if (!memberSearchArray.length) { + return
No Profile found
; + } return memberSearchArray?.map((profile: any) => { return ( -
+
{
{operation === "info" ? ( diff --git a/src/modules/components/channel-search/profile-tile.tsx b/src/modules/components/channel-search/profile-tile.tsx index 793cc2d..6618900 100644 --- a/src/modules/components/channel-search/profile-tile.tsx +++ b/src/modules/components/channel-search/profile-tile.tsx @@ -107,7 +107,7 @@ export const MemberSearchProfileTile = ({ profile, setOpenSearch }: any) => { } return (
@@ -161,7 +161,7 @@ const ProfileTile = ({ profile, setOpenSearch }: any) => { } return (
diff --git a/src/modules/components/input-box/index.tsx b/src/modules/components/input-box/index.tsx index a99c77e..00b2572 100644 --- a/src/modules/components/input-box/index.tsx +++ b/src/modules/components/input-box/index.tsx @@ -329,7 +329,7 @@ const InputSearchField = ({ placeholder={ disableInputBox ? "Input box has been disabled" - : "Write a Comment..." + : "Write a Message..." } value={messageText} customSuggestionsContainer={(children: any) => ( @@ -453,7 +453,7 @@ const InputOptions = ({ containerRef, disableInputBox, toggleGifRef }: any) => { const [openPollDialog, setOpenPollDialog] = useState(false); const inputFieldContext = useContext(InputFieldContext); const params = useParams(); - + const chatroomContext = useContext(ChatroomContext); const mode: any = params[routeVariable.mode]; const operation: any = params[routeVariable.operation]; const { @@ -524,6 +524,7 @@ const InputOptions = ({ containerRef, disableInputBox, toggleGifRef }: any) => { onClick={() => { toggleGifRef(); }} + disabled={chatroomContext.editMessageObject ? true : false} > gif @@ -539,6 +540,7 @@ const InputOptions = ({ containerRef, disableInputBox, toggleGifRef }: any) => { }} key={title} className="p-2" + disabled={chatroomContext.editMessageObject ? true : false} > { }; const OptionButtonBox = ({ icon, accept, setFile, file }: any) => { const inputFieldContext = useContext(InputFieldContext); + const chatroomContext = useContext(ChatroomContext); const ref = useRef(null); useEffect(() => { if (file?.length === 0) { @@ -606,7 +609,7 @@ const OptionButtonBox = ({ icon, accept, setFile, file }: any) => { } }); return ( - +
{userId === userContext.currentUser.id ? "you" : username}
+ {conversationObject?.is_edited && !conversationObject?.deleted_by ? ( + {`Edited `} + ) : null} {time}
diff --git a/yarn.lock b/yarn.lock index d9e0e44..6e8ae2c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2796,10 +2796,10 @@ resolved "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz" integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== -"@likeminds.community/chat-js-beta@^1.1.88": - version "1.1.88" - resolved "https://registry.npmjs.org/@likeminds.community/chat-js-beta/-/chat-js-beta-1.1.88.tgz" - integrity sha512-hX0UOv+IU3aJe8PVOFPzrvtM5mUeCBrTmePuM0QgxC4EcdiFnQjIMmerldroxBpniG8daxelbAS+pjaJrZ5E3g== +"@likeminds.community/chat-js@^1.1.89": + version "1.1.89" + resolved "https://registry.npmjs.org/@likeminds.community/chat-js/-/chat-js-beta-1.1.89.tgz" + integrity sha512-X5hhdQrGub55nC0EHTw4ryMyclX5wNZ/abwKX8vxlEScntpkBjEGtBPC5VhzRIxVSk2vrmewhmp9Y8vLooH9zA== dependencies: "@aws-sdk/client-s3" "^3.226.0" "@babel/runtime" "^7.16.3" From 3825174434a63ad8ca2cc2aef4e137e73fc3fd6f Mon Sep 17 00:00:00 2001 From: omenUchiha Date: Thu, 2 May 2024 21:31:31 +0530 Subject: [PATCH 4/4] Removed the log and replaced the package ID --- src/modules/components/channel-search/index.tsx | 3 --- src/modules/components/input-box/input.tsx | 1 - src/modules/components/message-boxes-components/MessageBox.tsx | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/components/channel-search/index.tsx b/src/modules/components/channel-search/index.tsx index 4db5a16..853962f 100644 --- a/src/modules/components/channel-search/index.tsx +++ b/src/modules/components/channel-search/index.tsx @@ -43,14 +43,11 @@ const ChannelSearch = ({ setOpenSearch }: any) => { setSearchKey(e.target.value); } function setMemberSearchString(e: any) { - console.log(e.target.value); setMemberSearchkey(e.target.value); } async function searchFunction() { try { const pageNo = Math.floor(searchArray?.length / 20) + 1; - // console.log("the page is"); - // console.log(searchArray); const pageSize = 20; const call = await searchConversationsInsideChatroom( id!.toString(), diff --git a/src/modules/components/input-box/input.tsx b/src/modules/components/input-box/input.tsx index 868de36..cbc171d 100644 --- a/src/modules/components/input-box/input.tsx +++ b/src/modules/components/input-box/input.tsx @@ -32,7 +32,6 @@ type UploadConfigType = { }; function base64ToBlob(base64String: string, contentType: string = ""): Blob { const byteCharacters = Buffer.from(base64String, "base64").toString("binary"); - // console.log(byteCharacters); const byteArray = new Uint8Array(byteCharacters.length); for (let i = 0; i < byteCharacters.length; i++) { diff --git a/src/modules/components/message-boxes-components/MessageBox.tsx b/src/modules/components/message-boxes-components/MessageBox.tsx index 462d0ce..657e778 100644 --- a/src/modules/components/message-boxes-components/MessageBox.tsx +++ b/src/modules/components/message-boxes-components/MessageBox.tsx @@ -45,7 +45,6 @@ async function getChatroomConversations( const response: any = await getConversationsForGroup(optionObject); if (!response.error) { const conversations = response?.data?.conversations; - console.log(conversations); sessionStorage.setItem("dmLastConvo", conversations[0].id); chatroomContext.setConversationList(conversations); } else { @@ -465,7 +464,7 @@ const MoreOptions = ({ convoId, convoObject, index }: moreOptionsType) => { }); setShouldShowBlock(!shouldShow); } catch (error) { - // // // console.log(error); + // console.log(error); } }