From 09f3a0ccdcef0bba992d01f09949d7de222dd1d9 Mon Sep 17 00:00:00 2001 From: Mohammed S Date: Wed, 1 May 2024 17:31:17 +0530 Subject: [PATCH] Alpha (#1253) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.6 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.7 * feat(video-v2): add video v2 class and stream (#930) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * feat(video): update param names for video.initialize() * feat(video): add internal event handlers for stream in video SDK --------- Co-authored-by: Mohammed S * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.1 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.0 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.2 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.1 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.3 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.4 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.2 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.3 * Chat Preview List workable PoC (#987) * fix: revert space changes * fix: merge main * fix: signer compatibility with viem and ethers (#567) * fix: signer compatibility with viem and ethers * fix: revert space changes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.26 * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.3 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.27 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.4 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.5 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.6 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.7 * fix: add: scw sig verification (#593) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.28 * fix: url correction * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.29 * ci(socket): šŸŽ‰ cut release to socket-v0.5.2 * fix: fixed subscribe and unsubscribe * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.5 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.8 * Feat/chat components (#621) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson * fix: add alpha support to UI web * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.0 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.6 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.9 * Feat/chat components (#625) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.1 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.7 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.8 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.10 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.9 * 632 group access control sdk changes (#640) * fix: group access control changes * fix: get group access SDK fix * fix: removed unnecessary param * Update README.md * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.30 * Reduce profile creation signature to 2 (#639) * fix: reduced signatures * fix: fixed examples * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.31 * fix: Read me fixes * fix: Space rules * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.32 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.10 * Feat/chat components (#658) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.11 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.12 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.11 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.13 * fix: update read me file * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.14 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.15 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.12 * Feat/chat components (#679) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.2 * fix: dummy change * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.13 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.16 * Join group option (#681) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.3 * Join group option (#687) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr * fix: fixed minor issues rules * fix: fixed * fix: fixed --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.4 * Join group option (#688) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr * fix: fixed minor issues rules * fix: fixed * fix: fixed * fix: fixed socket issue * fix: fixed --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.5 * fix: fixed (#689) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.6 * chat Load issue fixed (#690) * fix: fixed * fix: fixed minor issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.7 * fix: fixed msg bubble width (#691) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.8 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.17 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.18 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.19 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.9 * Onboarding blocknative (#702) * fix: added reusable folder * fix: fixed theme for modal * fix: removed reusables from export * fix: fixed fallback for message input * feat: replaced rainbowkit with blocknative * fix: removed unused code --------- Co-authored-by: Monalisha Mishra * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.10 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * Fix connect button issue (#710) * fix: fixed connect button blocknative * fix: fixed message fetching * fix: removed console * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.11 * fix: added condition while showing tokengatedIcon (#715) * fix: added disconnect for wallet (#721) * fix: added disconnect for wallet * fix: added autoConnect * Wallet disconnect (#722) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * Wallet disconnect (#723) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.12 * Changed messageInput params Case (#725) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.13 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.20 * Wallet disconnect (#728) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * fix: added coinbase wallet * fix: img added * fix: fixed metamask not showing if not present in it --------- Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.14 * Wallet disconnect (#732) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * fix: added coinbase wallet * fix: img added * fix: fixed metamask not showing if not present in it * fix: fixed injected wallets --------- Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.15 * fix: added class based implementation for notification (#699) * fix: added class based implementation for notification * fix: class based implementation for notification * fix: small fixes * fix: minor fixes and testcases * fix: fixes for testcases * fix: updated core abi and minor fixes * fix: removed comment * fix: minor fixes and additional checks * fix: minor fixes * fix: viem support for contract and new folder structure * fix: changed typescript 5.0.2 and configured eslint * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.34 * 720 pushstream class implementation (#729) * chore: added an example of automated chat using the new class based initialization * fix: fixed usecases * chore: added an example of automated chat using the new class based iā€¦ (#712) * chore: added an example of automated chat using the new class based initialization * fix: fixed usecases --------- Co-authored-by: aman035 * chore(automated chat example): tweaked automated chat example * fix: stream changes * fix: stream changes * fix: added chat.decrypt (#726) * fix: added chat.decrypt * fix: fix examples * fix: stream changes * fix: PUSH Stream Changes * fix: chat classes split * fix: Notification socket initialisations and rules backward compatibility * fix: added message decrypt * fix: review comments * fix: socket events * fix: test case fix and UserInfo to user * fix: rip PushNotification class * fix: additional check --------- Co-authored-by: harshrajat Co-authored-by: aman035 Co-authored-by: Harsh | Push Co-authored-by: akp111 * fix: remove only from test * fix: error fixed * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.35 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.35 * fix: stream cases * 720 pushstream class implementation (#737) * fix: stream changes * fix: stream changes * fix: stream changes * fix: PUSH Stream Changes * fix: chat classes split * fix: Notification socket initialisations and rules backward compatibility * fix: added message decrypt * fix: review comments * fix: socket events * fix: test case fix and UserInfo to user * fix: rip PushNotification class * fix: additional check * fix: minor fixes --------- Co-authored-by: Mohammed S * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.21 * fix: corrected example * fix: some changes on stream * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.36 * fix: minor fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.37 * fix: error handling in socket events * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.38 * fix: more fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.39 * fix: minor fixes * fix: socket enabled * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.40 * fix: minor fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.41 * Add counter for update channel (#740) * fix: added counter to update group * fix: added counter logic, moved delegate and alias function to channel class * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.42 * Add counter for update channel (#741) * fix: added counter to update group * fix: added counter logic, moved delegate and alias function to channel class * fix: added readme for notification * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.43 * fix: minor fix * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.14 * fix: log removed * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.44 * docs: fix tests * Feat/space backup (#746) * refactor: added code for joining livekit room for listeners (#731) * feat: drop in livekit inplace of livepeer (#736) * feat: drop in livekit inplace of livepeer * feat: added microphone * feat: added mic * feat: added access control --------- Co-authored-by: Nilesh Gupta * fix: Notification event mutation * Notification setting changes (#752) * Arbitrum changes (#735) * fix: inital implementation for arbitrum changes * fix: more changes * fix: added final changes * fix: minor fixes * fix: fixed typo * fix: notification settings related changes * fix: added index parameter for notification * fix: restored config * Arnab/livekit fixes (#754) * refactor: added code for joining livekit room for listeners (#731) * feat: drop in livekit inplace of livepeer * feat: added microphone * feat: added mic * feat: added access control * feat: fixes for livekit API call --------- Co-authored-by: Nilesh Gupta * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.22 * fix: added settings * fix: added settings (#762) * fix: build fix * fix: minor fix * fix: minor fix * Added initial chat sidebar * fix: pagination done * fix: added fuse network * Working stream with hacks, working badges, working loading, partial loading, not working accept stream * fix: focus back to message input after sending the message (#1014) * fix: added support for ens (#1008) * feat: add video SDK v2 and video stream (#1017) * add: ethers support (#952) * fix: fix viem support, add ethers support * fix: remove @pushprotocol/socket dependency from restapi * fix: changed ethers fn * fix: fix ether changes * fix: fix subscribev2 * chore: readme changes * fix: fix ethers provider issue * fix: fix channel.update * feat(video-v2): add video v2 class and stream (#930) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * feat(video): update param names for video.initialize() * feat(video): add internal event handlers for stream in video SDK --------- Co-authored-by: Mohammed S --------- Co-authored-by: Aman Gupta Co-authored-by: Mohammed S * fix: Added ethersV6SignerType in uiweb signer types (#1018) * fix: added pushUser and stream (#1023) * fix: case sensative file inclusion (#1024) * fix: added themisation and ens resolve * fix: fixed a bug * 963 improvement proposal support for fuse network (#1026) * fix: case sensative file inclusion * fix: changed icon dimesnion * streaming tweaks * streaming tweaks with connected in restapi * fix(video stream): add video event type enum in CONSTANTS (#1032) * fix: added search for chatPreviewList * fix: added error codes * frontend react demo adjustment and rebasing * duplicate import fix * fix: refatored code * fix: changed chatSender to chatParticipant * adding onChatSelected and onUnreadCountChange * fix: name change fix --------- Co-authored-by: aman035 Co-authored-by: Mohammed S Co-authored-by: Mohammed S Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta Co-authored-by: Monalisha Mishra Co-authored-by: Kolade Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Ashis Kumar Pradhan <38760485+akp111@users.noreply.github.com> Co-authored-by: akp111 Co-authored-by: Pritipriya Singh * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * fix: fixed issues on chatpreviewlist (#1044) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * fix: added a dynamic component for no chatId (#1042) * fix: changed pushUser to user (#1058) * Chatpreview bug (#1063) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * fix: fixed pagination bug and added functions for preload * fix: added review comments --------- Co-authored-by: Mohammed S * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * fix: fixed minor limit bug (#1065) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * Bug fix (#1068) * fix: fixed minor limit bug * fix: exposed chatParticipant * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.4 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.5 * Chatprofile (#1040) * Added initial chat sidebar * fix: pagination done * Working stream with hacks, working badges, working loading, partial loading, not working accept stream * fix: added themisation and ens resolve * fix: fixed a bug * streaming tweaks * streaming tweaks with connected in restapi * fix: added search for chatPreviewList * fix: added error codes * frontend react demo adjustment and rebasing * duplicate import fix * fix: refatored code * fix: addec chat profile and create group changes * fix: changed chatSender to chatParticipant * fix: fixed scroll when not needed * fix: changed group size * fix: stream not getting connected * fix: tested socket events * fix: fixed bugs --------- Co-authored-by: harshrajat Co-authored-by: Pritipriya Singh Co-authored-by: KlausMikhaelson * fix: fixed preview bugs (#1078) * Userprofile (#1084) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * add: useStream.ts video-v2-example-app * add: videoV2.tsx in video-v2-example-app * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(videov2-example): refactor react example component & remove useStream hook * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * fix(video stream): call connect() for ApproveVideo event * feat(example-video-1.5): video v2 example app implementation * feat(sdk-frontend): few ui changes * fix(video-v2-example-app): initialisevdeo call after a call ends * feat(video stream): add request, deny evennt handlers * feat(sdk-frontend and sdk-frontend-react): added video-v2 example implementation * fix: few fixes * refactor: refator and remove console logs * fix: fix import error * feat(video): update param names for video.initialize() * fix: param name changes * chore: added few comments * chore: ui toast added * fix(video example): remove pushprotocol sdk direct dir reference for initVideoCallData * fix(video example): import React in examples & update SDK version in sdk-frontend * feat(video example): replace video events from CONSTANTS obj * Edited video example to make it more versatile * Update index.js * fix: added layout for userProfile * fix: added modal * fix: added modal * fix: added modal content * fix: added theme for userprofile * fix: fixed bugs in profile --------- Co-authored-by: Madhur Gupta Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> Co-authored-by: Siddesh Co-authored-by: harshrajat Co-authored-by: Harsh | Push * fix: removed console * fix: fixed length issue in test * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * fix: fixed pagination bug * fix: the messages disappearing on scroll (#1077) Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: fixed chat preview stream issues (#1085) * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.5 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.6 * 897 improvement proposal spaces high level functions (#898) * fix: spaces high level * fix: spaces high level function * fix: spaces test cases * fix: spaces stream changes * fix: removed unnecessary logs * Add spaces high level audio methods (#993) * feat(spaces): add high level audio methods * fix: socket url fix (#995) * feat(spaces-highlevel-audio-methods): add media function in Spaces class --------- Co-authored-by: Mohammed S * feat(space stream): add 'start', 'stop' events (#1027) * fix(high level spaces sdk): fix list() method to uses spaces(), requests() methods (#1061) --------- Co-authored-by: Madhur Gupta * fix(restapi): build errors from spaces (#1098) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * feat(spaces v2): update space.initialize() param name, rename media() in SpacesV2 (#1101) * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.7 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * fix: media emoji added * fix: sending first message now shows in the inbox * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.8 * fix: for requests for receivers * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: added notification widget layout (#1076) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * add: useStream.ts video-v2-example-app * add: videoV2.tsx in video-v2-example-app * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(videov2-example): refactor react example component & remove useStream hook * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * fix(video stream): call connect() for ApproveVideo event * feat(example-video-1.5): video v2 example app implementation * feat(sdk-frontend): few ui changes * fix(video-v2-example-app): initialisevdeo call after a call ends * feat(video stream): add request, deny evennt handlers * feat(sdk-frontend and sdk-frontend-react): added video-v2 example implementation * fix: few fixes * refactor: refator and remove console logs * fix: fix import error * feat(video): update param names for video.initialize() * fix: param name changes * chore: added few comments * chore: ui toast added * fix(video example): remove pushprotocol sdk direct dir reference for initVideoCallData * fix(video example): import React in examples & update SDK version in sdk-frontend * feat(video example): replace video events from CONSTANTS obj * Edited video example to make it more versatile * Update index.js * fix: fixed message parsing (#1051) * Minor fixes and improvements in video v2 (#1062) * feat(video v2): add VIDEO constants and types * feat(video v2): modify approve, deny to use internally stored peerInfo * fix(video constants): rename DEFAULT_DATA to INITIAL_DATA * 1050 update video example implementation in sdk-frontend (#1070) * fix: use latest imports in example app * feat: use latest rainbowkit library * chore: use latest restapi package * chore: remove unnecessary libs * fix: fixed signer bug (#1073) * fix: send intent in history and latest. (#1069) * fix: send intent in history and latest. * fix: get chat info API sdk changes * fix: stream helper functions * fix: caching implementation on user profile API (#1053) * fix: caching implementation on user profile API * fix: cache code review comments * fix: fix public key in read mode (#1074) * fix: added notification widget layout * fix: fixed naming convention * fix: added layout for hyperlink * Pub key cache to speed up chat messages verification (#1081) * fix: minor fixes * fix: cache implementation for public keys * fix: fix encV1 key decryption (#1088) * fix: add benchamark tests, fix reference msgs' (#1089) * fix: added resuables * bolierplate examples * bolierplate examples * bolierplate examples * fix: added connect button * fix: fixed lint * fix: v2 user creation / upgrades / downgrades (#1099) * fix: fix v2 user * test: remove only * Add filter for subscription (#1102) * fix: added parsing for settings * fix: minor fixes * fix: added manage notifiction * fix: added channel setting parse logic (#1107) * fix: fixed css * added user downgrade example * fix: fixed lint * fix: fixed connect modal * fix: added readmode * fix: fixed readMode --------- Co-authored-by: Madhur Gupta Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> Co-authored-by: Siddesh Co-authored-by: harshrajat Co-authored-by: Harsh | Push Co-authored-by: Aman Gupta Co-authored-by: Mohammed S Co-authored-by: Ashis Kumar Pradhan <38760485+akp111@users.noreply.github.com> Co-authored-by: Mohammed S * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * Alpha deployment (#1112) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues --------- Co-authored-by: Mohammed S * fix: fixed minor bugs * Alpha deployment (#1114) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs --------- Co-authored-by: Mohammed S * fix: fixed chatpreview and widget issues * Alpha deployment (#1116) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues --------- Co-authored-by: Mohammed S * fix: fixed chat bugs * 1119 read only mode bug fix (#1120) * fix: optimize chat.list (#1115) * fix: read only guest mode * fix: review comments --------- Co-authored-by: Aman Gupta * fix: fixed readmode * Alpha deployment (#1121) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode --------- Co-authored-by: Mohammed S * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * Mark ethers optional (#1124) * fix: optimize chat.list (#1115) * fix: allow groupImage and groupDesc to be updated to null (#1118) * fix: mark ethers as optional peer dependency * fix: change typeDataDomain * fix: update readme * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.9 * fix: added prefillChatList (#1122) * fix: troubleshoot * fix: fixed minor issue * Alpha deployment (#1132) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 --------- Co-authored-by: Mohammed S * fix: fixed gues mode user profile * fix: fixed subscription error * Minor changes in spaces v2 SDK (#1136) * refactor(spaces v2): call createUserAudio internally before start, join as speaker * fix(spaces v2): add a check before creating stream in start, join as speaker * fix(spaces v2): make 'private' param in space.create() as optional * feat(spaces v2): export space types, constants from TYPES, CONSTANTS * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.10 * Alpha deployment (#1134) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 --------- Co-authored-by: Mohammed S * fix: stream connection support chat + pushUser to user fix (#1066) * fix: stream connection support chat + pushUser to user fix * fix: change console messages * fix: ens added * fix: z-index re added --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * Alpha deployment (#1146) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * fix: fixed subscription error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 --------- Co-authored-by: Mohammed S * fix: z-index modal (#1152) * Revert "fix: z-index modal (#1152)" (#1153) This reverts commit 4e40221385750a240afde708c73d7b1221e5db0c. * Fix role change stream event (#1157) * fix: fix roleChange stream * fix: fix testcases * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.45 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.73 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.74 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.11 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.6 * Added channel.list API (#1160) * Added channel.list API * Added channel.list API * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.0 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.7 * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.1 * fix: some types are fixed * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.2 * fix: horizontal scroll (#1156) * fix: horizontal scroll * fix: z-index of prodile modal * fix: remove chat profile z-index * fix: remove chat profile z-index * fix: modal overlay z-index inc * fix: added word break to parent * fix: revert z-index profile * fix: fixed span * Alpha deployment (#1178) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * fix: fixed subscription error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.45 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.73 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.74 * fix: fixed span --------- Co-authored-by: Mohammed S * fix: support chat scroll (#1184) * fix: support chat scroll * fix: when the scroll touches the last message it does fluctuate * Group fixes (#1182) * fix: fixed group minor issues * fix: fixed group fiex * fix: fixed user giving undefined for info (#1194) * Chatviewlist migration (#1164) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: added fetch chT * fix: fix * fix: added fetching chat * fix: fixed lint issues * fix: fixed * fix: converted send to class based * fix: fixed * fix: debugging stream issue * fix: debugging stream issue * fix: hack for stream fix * fix: removed event listeners * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.15 * fix: fixed chat bugs * fix: fixing stream issue * fix: fixed lint * fix: temp fix for stream * fix: fixed --------- Co-authored-by: Mohammed S * Alpha deployment (#1200) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: fixed readmode * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.68 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.70 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.71 * fix: troubleshoot * fix: fixed gues mode user profile * fix: fixed subscription error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.72 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.45 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.73 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.74 * fix: fixed span --------- Co-authored-by: Mohammed S * Revert "Alpha deployment (#1200)" (#1201) This reverts commit 029e34d3a51a0ce4e0bc6adbad168e71b5c6129b. * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.75 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.75 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.77 * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.3 * Chatviewlist migration (#1202) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * fix: fix errors * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.64 * fix: changed stream type to any * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.16 * fix: minor change * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.17 * fix: minor fix * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.37 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.38 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.39 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.40 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.41 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.65 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.42 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.66 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.43 * fix: fixed build issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.36 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.44 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.67 * fix: fixed minor bugs * fix: fixed chatpreview and widget issues * fix: fixed chat bugs * fix: added fetch chT * fix: fix * fix: added fetching chat * fix: fixed lint issues * fix: fixed * fix: converted send to class based * fix: fixed * fix: debugging stream issue * fix: debugging stream issue * fix: hack for stream fix * fix: removed event listeners * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.15 * fix: fixed chat bugs * fix: fixing stream issue * fix: fixed lint * fix: temp fix for stream * fix: fixed * fix: fixed copy --------- Co-authored-by: Mohammed S * feat(uiweb): return response in createGroupModal (#1198) * feat(uiweb): return response in createGroupModal return group information when group is successfully created in uiweb createGroupModal * fix: fixed build issue --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * feat(uiweb): return response in createGroupModal (#1198) (#1215) * feat(uiweb): return response in createGroupModal return group information when group is successfully created in uiweb createGroupModal * fix: fixed build issue --------- Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> * Add Polygon Amoy Support (#1221) * feat: add Polygon Amoy Support * test: added amoy test cases --------- Co-authored-by: Pratham Bhatnagar Co-authored-by: aman035 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.78 * 1220 add polygon amoy support (#1222) * feat: add Polygon Amoy Support * test: added amoy test cases * fix: fix minor changes --------- Co-authored-by: Pratham Bhatnagar Co-authored-by: aman035 * fix: added instanceids for push user and stream (#1224) * 1223 return id for push api and stream init (#1226) * fix: added instanceids for push user and stream * fix: review comments * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.79 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.80 * fix: chat info changes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.81 * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.4 * fix: bug fixes * fix: renamed sender to account * fix: fix fn definitions (#1232) * fix: fix tmp error * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.82 * fix: update chat * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.83 * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.5 * fix: push api account public * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.6 * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.7 * fix: add public params * ci(restapi): šŸŽ‰ cut release to restapi-v1.7.8 * added .gitignore for .yarn * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.84 * fix: error meta fix * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.85 * feat: Add Polygon zkEvm Cardona support (#1243) * Alpha (#1237) * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.1 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.0 * add: ethers support (#952) * fix: fix viem support, add ethers support * fix: remove @pushprotocol/socket dependency from restapi * fix: changed ethers fn * fix: fix ether changes * fix: fix subscribev2 * chore: readme changes * fix: fix ethers provider issue * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.61 * fix: fix channel.update * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.62 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.2 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.3 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.4 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.5 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.6 * ci(restapi): šŸŽ‰ cut release to restapi-v1.5.7 * feat(video-v2): add video v2 class and stream (#930) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * feat(video): update param names for video.initialize() * feat(video): add internal event handlers for stream in video SDK --------- Co-authored-by: Mohammed S * ci(restapi): šŸŽ‰ cut release to restapi-v0.9.0 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.63 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.1 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.0 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.2 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.1 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.3 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.2.4 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.2 * ci(restapi): šŸŽ‰ cut release to restapi-v1.6.3 * Chat Preview List workable PoC (#987) * fix: revert space changes * fix: merge main * fix: signer compatibility with viem and ethers (#567) * fix: signer compatibility with viem and ethers * fix: revert space changes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.26 * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.3 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.27 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.4 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.5 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.6 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.7 * fix: add: scw sig verification (#593) * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.28 * fix: url correction * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.29 * ci(socket): šŸŽ‰ cut release to socket-v0.5.2 * fix: fixed subscribe and unsubscribe * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.5 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.8 * Feat/chat components (#621) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson * fix: add alpha support to UI web * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.0 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.6 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.9 * Feat/chat components (#625) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.1 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.7 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.8 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.10 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.9 * 632 group access control sdk changes (#640) * fix: group access control changes * fix: get group access SDK fix * fix: removed unnecessary param * Update README.md * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.30 * Reduce profile creation signature to 2 (#639) * fix: reduced signatures * fix: fixed examples * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.31 * fix: Read me fixes * fix: Space rules * Update README.md * Update README.md * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.32 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.10 * Feat/chat components (#658) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.11 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.12 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.11 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.13 * fix: update read me file * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.14 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.15 * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.12 * Feat/chat components (#679) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.2 * fix: dummy change * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.13 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.16 * Join group option (#681) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr --------- Co-authored-by: Monalisha Mishra Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.3 * Join group option (#687) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr * fix: fixed minor issues rules * fix: fixed * fix: fixed --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.4 * Join group option (#688) * feat: created architechture * fix: added context values (#594) * Chat dataprovider (#596) * feat: data provider for chat component * fix: replaced react.usestate to usestate * fix: added props as the initial state and changed state name * fix: reverted chat context changes and renamed values * fix: added test page for chat ui components (#597) * added chatbubble component (#602) * feat: added chatbubble component * fix: made the messageBubble's width to fit-content --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> * fix: added theme * Group chat bubble (#604) * feat: moved test component to testui folder & replaced dummy data with sdk response * feat: added twitter card and address for group chat received msg * feat: made the messageaddress reusable, added account from context * fix: removed unnecessary div and unused props and console logs * feat: adding pfp in text bubbles * fix: replaced hook with function and added pfp to messagebubble * fix: fixed image alignment * fix: changed border-radius of msg bubble and changed function name * fix: fixed theme and decryptedPrivateKey name (#616) * fix: fixed theme and decryptedPrivateKey name * fix: fixed bug * fix: fixed theme reviews * Message list (#615) * fix: message list comp * fix: message list comp * fix: added pagination * fix: added pagination * fix: pagination * fix: create useChatData hook * fix: fixed minor bug * fix: socket issues fixed * fix: added theme in msgbubble (#620) * fix: added theme in msgbubble * fix: fixed import --------- Co-authored-by: Monalisha Mishra * fix: exported the theme (#623) * fix: exported the theme * fix: fixed issues --------- Co-authored-by: Monalisha Mishra * Typebar component (#631) * feat: added typebar UI * feat: added functions to typebar * fix: added icon * fix: fixed theme issues --------- Co-authored-by: Monalisha Mishra * feat: added connectbutton * fix: fixed connectbtn ui and remove disconnect and fixed error on disconnect * fix: fixed create account getting called twice * Profile Header Component (#636) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * Message container (#635) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * fix: updated svg to react component * fix: changed svg to tsx component * fix: fixed review changes (#646) * fix: fixed review changes * fix: resolved issues --------- Co-authored-by: Nilesh Gupta * Profile Header -> Chat Profile fixes (#647) * feat: profile header * feat: update profile header * fix: update hooks * fix: video icon ui * feat: add group modal * fix: add modal info * fix: edit components * fix: commit modal theme * fix: updating UI * fix: ensname * fix: add notifs * fix: remove alerts * fix: remove alert logs * fix: push fixes * fix: conflicts * fix: notifs * fix: correct theme colors * fix: renaming profileHeader * fix: qa fixes * fix: loader * refactor: resolved issues * fix: edit types --------- Co-authored-by: Nilesh Gupta * fix: resolved package not added issue * Fix: modal issue in group info && alert remove members (#653) * fix: modal * fix: update changes * refactor: resolved issue --------- Co-authored-by: Nilesh Gupta * fix: QA fixes (#654) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * Connect btn revamp (#668) * fix: added theme in msgbubble * fix: fixed import * fix: fixed message-list * fix: added approve intent * fix: added fixes * fix: fixed socket bug * fix: fixed message from socket * fix: fixed minor issues * fix: fixed typebar theming * fix: fixed env issue * fix: fixed message not updating issue * refactor: added isConnected prop in msgContainer * refactor: resolve merge conflicts * fix: fixed request sending * fix: fixed decryption * fix: fixed env issue * feat: added profile header in message container * feat: adding rainbowkit for btn * fix: fix issues * fix: addec onnect functionality * fix: connect button * fix: added hack for rainbowkit css --------- Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta * Typebar UI issue (#666) * fix: fixed typebar space not working and theme * fix: fixed gif and emoji --------- Co-authored-by: KlausMikhaelson * fix: fixed theme colours * fix: added theme for brb * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added filter hat * fix: merged with main * fix: fixed msg border * fix: fixed theme * fix: fixed fonts * fix: fixed bug * Access control (#672) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * fix: added minor fix --------- Co-authored-by: Monalisha Mishra * fix: fixed padding issues * fix(f): fixed build issues * fix: fix for chat status test * feat: added verification option to show only on token gated groups * fix: fixing group access control * Check rules access control (#678) * fix: fixed typebar space not working and theme * feat: created access control UI * feat: created verify access control hook * fix: fixed access control hook issue * feat: added access control verification * feat: added onclick props for integration team to pass function and fixed btn ui * fix: added link for learn more * fix: fixed msg not updating in socket issue * 662 group access control v2 changes (#663) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix: origin in user creation (#665) * fix: origin in user creation * Update README.md * fix: review comments * 662 group access control v2 changes (#677) * fix: spaces access API * fix: custom endpoint doc impl * Update README.md * Update README.md * fix: review comments change * fix: read me update * Update README.md * Update README.md * fix(spaces): broadcast changes and UX fixes (#674) * fix: fix UI grid view (#642) * fix: fix UI grid view * refactor: conditional added * fix: resolved muting/unmuting try catch error (#657) * fix(spaces): fix livepeer broadcast (#656) * fix(spaces): fix livepeer broadcast * fix(spaces): fix data shown for unjoined space & promote listener logic --------- Co-authored-by: Madhur Gupta * refactor(spaces): use local state instead of get from server while meta message fire (#676) --------- Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * feat: added verification option to show only on token gated groups * fix: fixing group access control --------- Co-authored-by: Monalisha Mishra Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Nilesh Gupta * fix: fixed build * feat: added send request to join group * fix: fixed verification on send * fix: fixed verify access btn not showing after joining group * fix: fixed join group showing for members too * fix: fixed join group showing to members * 667 chat.send enhancement (#673) * fix: changes messageObj for meta and reaction message type * fix: enhance send fn * fix: fixed intent issues * 680 group rules cosmetic changes (#682) * fix: fixed guild condition * fix: add did validation * fix: fixed * fix: fixed minor issues * fix: fixe dissue * fix: fixed minor issues * fix: check for scroll * fix: fixed scrolling * fix: fixed theme * fix: fixed * fix: fixed * fix: fixed * fix: fixed issues * fix: fixed * feat: added toast in join group btn for pvt groups * fix: fixed blurr * fix: fixed minor issues rules * fix: fixed * fix: fixed * fix: fixed socket issue * fix: fixed --------- Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Kolade Co-authored-by: Nilesh Gupta Co-authored-by: Mohammed S Co-authored-by: Madhur Gupta Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Aman Gupta * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.5 * fix: fixed (#689) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.6 * chat Load issue fixed (#690) * fix: fixed * fix: fixed minor issues * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.7 * fix: fixed msg bubble width (#691) * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.8 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.17 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.18 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.19 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.9 * Onboarding blocknative (#702) * fix: added reusable folder * fix: fixed theme for modal * fix: removed reusables from export * fix: fixed fallback for message input * feat: replaced rainbowkit with blocknative * fix: removed unused code --------- Co-authored-by: Monalisha Mishra * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.10 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.33 * Fix connect button issue (#710) * fix: fixed connect button blocknative * fix: fixed message fetching * fix: removed console * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.11 * fix: added condition while showing tokengatedIcon (#715) * fix: added disconnect for wallet (#721) * fix: added disconnect for wallet * fix: added autoConnect * Wallet disconnect (#722) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * Wallet disconnect (#723) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.12 * Changed messageInput params Case (#725) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.13 * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.20 * Wallet disconnect (#728) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * fix: added coinbase wallet * fix: img added * fix: fixed metamask not showing if not present in it --------- Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.14 * Wallet disconnect (#732) * fix: added disconnect for wallet * fix: added autoConnect * fix: changed onClick to onGetTokenClick * fix: fixed errors * fix: added coinbase wallet * fix: img added * fix: fixed metamask not showing if not present in it * fix: fixed injected wallets --------- Co-authored-by: KlausMikhaelson * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.15 * fix: added class based implementation for notification (#699) * fix: added class based implementation for notification * fix: class based implementation for notification * fix: small fixes * fix: minor fixes and testcases * fix: fixes for testcases * fix: updated core abi and minor fixes * fix: removed comment * fix: minor fixes and additional checks * fix: minor fixes * fix: viem support for contract and new folder structure * fix: changed typescript 5.0.2 and configured eslint * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.34 * 720 pushstream class implementation (#729) * chore: added an example of automated chat using the new class based initialization * fix: fixed usecases * chore: added an example of automated chat using the new class based iā€¦ (#712) * chore: added an example of automated chat using the new class based initialization * fix: fixed usecases --------- Co-authored-by: aman035 * chore(automated chat example): tweaked automated chat example * fix: stream changes * fix: stream changes * fix: added chat.decrypt (#726) * fix: added chat.decrypt * fix: fix examples * fix: stream changes * fix: PUSH Stream Changes * fix: chat classes split * fix: Notification socket initialisations and rules backward compatibility * fix: added message decrypt * fix: review comments * fix: socket events * fix: test case fix and UserInfo to user * fix: rip PushNotification class * fix: additional check --------- Co-authored-by: harshrajat Co-authored-by: aman035 Co-authored-by: Harsh | Push Co-authored-by: akp111 * fix: remove only from test * fix: error fixed * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.35 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.35 * fix: stream cases * 720 pushstream class implementation (#737) * fix: stream changes * fix: stream changes * fix: stream changes * fix: PUSH Stream Changes * fix: chat classes split * fix: Notification socket initialisations and rules backward compatibility * fix: added message decrypt * fix: review comments * fix: socket events * fix: test case fix and UserInfo to user * fix: rip PushNotification class * fix: additional check * fix: minor fixes --------- Co-authored-by: Mohammed S * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.21 * fix: corrected example * fix: some changes on stream * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.36 * fix: minor fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.37 * fix: error handling in socket events * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.38 * fix: more fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.39 * fix: minor fixes * fix: socket enabled * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.40 * fix: minor fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.41 * Add counter for update channel (#740) * fix: added counter to update group * fix: added counter logic, moved delegate and alias function to channel class * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.42 * Add counter for update channel (#741) * fix: added counter to update group * fix: added counter logic, moved delegate and alias function to channel class * fix: added readme for notification * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.43 * fix: minor fix * ci(uiweb): šŸŽ‰ cut release to uiweb-v1.1.14 * fix: log removed * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.44 * docs: fix tests * Feat/space backup (#746) * refactor: added code for joining livekit room for listeners (#731) * feat: drop in livekit inplace of livepeer (#736) * feat: drop in livekit inplace of livepeer * feat: added microphone * feat: added mic * feat: added access control --------- Co-authored-by: Nilesh Gupta * fix: Notification event mutation * Notification setting changes (#752) * Arbitrum changes (#735) * fix: inital implementation for arbitrum changes * fix: more changes * fix: added final changes * fix: minor fixes * fix: fixed typo * fix: notification settings related changes * fix: added index parameter for notification * fix: restored config * Arnab/livekit fixes (#754) * refactor: added code for joining livekit room for listeners (#731) * feat: drop in livekit inplace of livepeer * feat: added microphone * feat: added mic * feat: added access control * feat: fixes for livekit API call --------- Co-authored-by: Nilesh Gupta * ci(restapi): šŸŽ‰ cut release to restapi-v1.4.22 * fix: added settings * fix: added settings (#762) * fix: build fix * fix: minor fix * fix: minor fix * Added initial chat sidebar * fix: pagination done * fix: added fuse network * Working stream with hacks, working badges, working loading, partial loading, not working accept stream * fix: focus back to message input after sending the message (#1014) * fix: added support for ens (#1008) * feat: add video SDK v2 and video stream (#1017) * add: ethers support (#952) * fix: fix viem support, add ethers support * fix: remove @pushprotocol/socket dependency from restapi * fix: changed ethers fn * fix: fix ether changes * fix: fix subscribev2 * chore: readme changes * fix: fix ethers provider issue * fix: fix channel.update * feat(video-v2): add video v2 class and stream (#930) * feat(video-v2): add highlevel video class * feat(video): add video stream * fix(sendnotification): modify rules.access.data to be an object & code cleanup * fix(video): remove signer from input, throw err if signer, decrypted pgp key not found * feat(video): add sendNotification calls in connect, disconnect methods * fix(videonotificationrules): typo in VideoNotificationRules interface * feat(video stream): handle connect, retry internally from the SDK * feat(video connect): remove the connect method from the videov2 SDK * fix(videov2): create push signer instance to get chain id in initialize() * fix(video stream): add backwards compatibilty to rules object for older SDK versions * fix(video stream): fix bug in rules object creation * feat(video): update param names for video.initialize() * feat(video): add internal event handlers for stream in video SDK --------- Co-authored-by: Mohammed S --------- Co-authored-by: Aman Gupta Co-authored-by: Mohammed S * fix: Added ethersV6SignerType in uiweb signer types (#1018) * fix: aā€¦ * test: fix test case * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.86 * ci(uiweb): šŸŽ‰ cut beta release to uiweb-v0.0.1-alpha.46 * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.87 * feat: support chat v2 added (#1236) * feat: support chat v2 added * fix: changed supportchatv2 to chatwidget * fix: changed support chat to chatwidget * feat: support chat v2 added (#1236) (#1248) * feat: support chat v2 added * fix: changed supportchatv2 to chatwidget * fix: changed support chat to chatwidget * fix: logs * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.88 * fix: stream fixes * ci(restapi): šŸŽ‰ cut beta release to restapi-v0.0.1-alpha.89 * fix: chat stream fixes --------- Co-authored-by: Madhur Gupta Co-authored-by: Harsh | Push Co-authored-by: aman035 Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Satyam <100528412+KlausMikhaelson@users.noreply.github.com> Co-authored-by: KlausMikhaelson Co-authored-by: Nilesh Gupta Co-authored-by: Monalisha Mishra Co-authored-by: Kolade Co-authored-by: Arnab Chatterjee <60937304+arn4b@users.noreply.github.com> Co-authored-by: Ashis Kumar Pradhan <38760485+akp111@users.noreply.github.com> Co-authored-by: akp111 Co-authored-by: Pritipriya Singh Co-authored-by: harshrajat Co-authored-by: Siddesh Sankhya <79219618+Siddesh7@users.noreply.github.com> Co-authored-by: Siddesh Co-authored-by: Pratham Bhatnagar <84272138+pratham-bhatnagar@users.noreply.github.com> Co-authored-by: Pratham Bhatnagar --- .../src/app/ChatSupportTest.tsx | 32 +- .../sdk-frontend-react/src/app/app.tsx | 2 +- packages/restapi/CHANGELOG.md | 23 + packages/restapi/package.json | 2 +- packages/restapi/src/lib/pushapi/chat.ts | 25 +- .../restapi/src/lib/pushstream/PushStream.ts | 654 ++++++++++-------- .../chat/ChatProfile/ChatProfile.tsx | 3 +- .../chat/ChatViewBubble/ChatViewBubble.tsx | 13 +- .../chat/ChatViewList/ChatViewList.tsx | 38 +- .../chat/MessageInput/MessageInput.tsx | 35 +- .../src/lib/components/chat/theme/index.ts | 50 +- .../lib/components/chatWidget/ChatWidget.tsx | 82 +++ .../src/lib/components/chatWidget/Modal.tsx | 109 +++ .../src/lib/components/chatWidget/index.ts | 1 + packages/uiweb/src/lib/components/index.ts | 3 +- .../lib/components/reusables/GlobalStyle.tsx | 10 + .../src/lib/components/reusables/index.tsx | 1 + .../lib/dataProviders/ChatDataProvider.tsx | 14 +- packages/uiweb/src/lib/helpers/chat/chat.ts | 5 +- packages/uiweb/src/lib/icons/SponserPush.tsx | 4 +- 20 files changed, 750 insertions(+), 356 deletions(-) create mode 100644 packages/uiweb/src/lib/components/chatWidget/ChatWidget.tsx create mode 100644 packages/uiweb/src/lib/components/chatWidget/Modal.tsx create mode 100644 packages/uiweb/src/lib/components/chatWidget/index.ts create mode 100644 packages/uiweb/src/lib/components/reusables/GlobalStyle.tsx diff --git a/packages/examples/sdk-frontend-react/src/app/ChatSupportTest.tsx b/packages/examples/sdk-frontend-react/src/app/ChatSupportTest.tsx index 905cd14ee..336586c14 100644 --- a/packages/examples/sdk-frontend-react/src/app/ChatSupportTest.tsx +++ b/packages/examples/sdk-frontend-react/src/app/ChatSupportTest.tsx @@ -1,6 +1,6 @@ import React, { useContext } from 'react'; import { Web3Provider } from '@ethersproject/providers'; -import { SupportChat, ITheme } from '@pushprotocol/uiweb'; +import { SupportChat, ITheme, ChatWidget } from '@pushprotocol/uiweb'; import { lightTheme } from '@pushprotocol/uiweb'; import { EnvContext, Web3Context } from './context'; @@ -32,13 +32,29 @@ export const ChatSupportTest = () => { return ( //works as Chat as well as Support Chat - +

Welcome

+

new chat

+

Welcome

+

new chat

+

Welcome

+

new chat

+

Welcome

+ + + } + /> + // ); }; diff --git a/packages/examples/sdk-frontend-react/src/app/app.tsx b/packages/examples/sdk-frontend-react/src/app/app.tsx index a021edfba..8237d5984 100644 --- a/packages/examples/sdk-frontend-react/src/app/app.tsx +++ b/packages/examples/sdk-frontend-react/src/app/app.tsx @@ -345,7 +345,7 @@ export function App() { diff --git a/packages/restapi/CHANGELOG.md b/packages/restapi/CHANGELOG.md index b63ac582d..d3df01c8f 100644 --- a/packages/restapi/CHANGELOG.md +++ b/packages/restapi/CHANGELOG.md @@ -2,6 +2,29 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.0.1-alpha.89](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.88...restapi-0.0.1-alpha.89) (2024-04-27) + + +### Bug Fixes + +* stream fixes ([72516df](https://github.com/push-protocol/push-sdk/commit/72516df0740eadc3da2bc990a4b8780b5067f34b)) + + + +## [0.0.1-alpha.88](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.87...restapi-0.0.1-alpha.88) (2024-04-25) + + +### Bug Fixes + +* logs ([05b8c22](https://github.com/push-protocol/push-sdk/commit/05b8c22638235a6af0acdf419e1c44614635e746)) +* Merge branch 'alpha' into alpha-deployment ([e30e7b6](https://github.com/push-protocol/push-sdk/commit/e30e7b6dc9c90585ffc66231ac20ef008bb1ded7)) + + + +## [0.0.1-alpha.87](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.86...restapi-0.0.1-alpha.87) (2024-04-25) + + + ## [0.0.1-alpha.86](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.85...restapi-0.0.1-alpha.86) (2024-04-23) diff --git a/packages/restapi/package.json b/packages/restapi/package.json index eb3fad6a2..1b737bd84 100644 --- a/packages/restapi/package.json +++ b/packages/restapi/package.json @@ -1,6 +1,6 @@ { "name": "@pushprotocol/restapi", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.89", "type": "commonjs", "publishConfig": { "registry": "https://registry.npmjs.org/" diff --git a/packages/restapi/src/lib/pushapi/chat.ts b/packages/restapi/src/lib/pushapi/chat.ts index 893ab2ed3..b3570b291 100644 --- a/packages/restapi/src/lib/pushapi/chat.ts +++ b/packages/restapi/src/lib/pushapi/chat.ts @@ -26,7 +26,11 @@ import { import * as PUSH_USER from '../user'; import * as PUSH_CHAT from '../chat'; import { PGPHelper } from '../chat/helpers'; -import { convertToValidDID, isValidPushCAIP } from '../helpers'; +import { + convertToValidDID, + isValidPushCAIP, + walletToPCAIP10, +} from '../helpers'; import { ChatUpdateGroupProfileType, updateGroupProfile, @@ -297,7 +301,22 @@ export class Chat { }; try { const chatInfo = await PUSH_CHAT.getChatInfo(request); - const finalRecipient = chatInfo.meta?.group ? chatInfo.chatId : recipient; + const isGroupChat = chatInfo.meta?.group ?? false; + let finalRecipient = recipient; // Default to recipient + if (isGroupChat) { + // If it's a group chat, use the chatId as the recipient + finalRecipient = chatInfo.chatId; + } else { + // If it's not a group chat, find the actual recipient among participants + const participants = chatInfo.participants ?? []; + // Find the participant that is not the account being used + const participant = participants.find( + (participant) => participant !== walletToPCAIP10(accountToUse) + ); + if (participant) { + finalRecipient = participant; + } + } const response: ChatInfoResponse = { meta: chatInfo.meta, list: chatInfo.list, @@ -729,4 +748,4 @@ export class Chat { }); }, }; -} \ No newline at end of file +} diff --git a/packages/restapi/src/lib/pushstream/PushStream.ts b/packages/restapi/src/lib/pushstream/PushStream.ts index 9126278ea..f7b09ebcf 100644 --- a/packages/restapi/src/lib/pushstream/PushStream.ts +++ b/packages/restapi/src/lib/pushstream/PushStream.ts @@ -31,6 +31,10 @@ export class PushStream extends EventEmitter { private listen: StreamType[]; private disconnected: boolean; public uid: string; + public chatSocketCount: number; + public notifSocketCount: number; + public chatSocketConnected: boolean; + public notifSocketConnected: boolean; constructor( account: string, private _listen: StreamType[], @@ -48,6 +52,10 @@ export class PushStream extends EventEmitter { this.listen = _listen; this.disconnected = false; this.uid = uuidv4(); + this.chatSocketCount = 0; + this.notifSocketCount = 0; + this.chatSocketConnected = false; + this.notifSocketConnected = false; this.chatInstance = new Chat( this.account, this.options.env as ENV, @@ -116,372 +124,428 @@ export class PushStream extends EventEmitter { } public async connect(): Promise { - const shouldInitializeChatSocket = - !this.listen || - this.listen.length === 0 || - this.listen.includes(STREAM.CHAT) || - this.listen.includes(STREAM.CHAT_OPS) || - this.listen.includes(STREAM.SPACE) || - this.listen.includes(STREAM.SPACE_OPS); - const shouldInitializeNotifSocket = - !this.listen || - this.listen.length === 0 || - this.listen.includes(STREAM.NOTIF) || - this.listen.includes(STREAM.NOTIF_OPS) || - this.listen.includes(STREAM.VIDEO); - - let isChatSocketConnected = false; - let isNotifSocketConnected = false; - - // Function to check and emit the STREAM.CONNECT event - const checkAndEmitConnectEvent = () => { - if ( - ((shouldInitializeChatSocket && isChatSocketConnected) || - !shouldInitializeChatSocket) && - ((shouldInitializeNotifSocket && isNotifSocketConnected) || - !shouldInitializeNotifSocket) - ) { - this.emit(STREAM.CONNECT); - //console.log('Emitted STREAM.CONNECT'); - } - }; + return new Promise(async (resolve, reject) => { + const shouldInitializeChatSocket = + !this.listen || + this.listen.length === 0 || + this.listen.includes(STREAM.CHAT) || + this.listen.includes(STREAM.CHAT_OPS) || + this.listen.includes(STREAM.SPACE) || + this.listen.includes(STREAM.SPACE_OPS); + const shouldInitializeNotifSocket = + !this.listen || + this.listen.length === 0 || + this.listen.includes(STREAM.NOTIF) || + this.listen.includes(STREAM.NOTIF_OPS) || + this.listen.includes(STREAM.VIDEO); + + let isChatSocketConnected = false; + let isNotifSocketConnected = false; + // Function to check and emit the STREAM.CONNECT event + const checkAndEmitConnectEvent = () => { + if ( + ((shouldInitializeChatSocket && isChatSocketConnected) || + !shouldInitializeChatSocket) && + ((shouldInitializeNotifSocket && isNotifSocketConnected) || + !shouldInitializeNotifSocket) + ) { + this.emit(STREAM.CONNECT); + console.log('RestAPI::PushStream::connect - Emitted STREAM.CONNECT'); + resolve(); + } + }; - const handleSocketDisconnection = async (socketType: 'chat' | 'notif') => { - //console.log(`${socketType.toUpperCase()} Socket Disconnected`); - - if (socketType === 'chat') { - isChatSocketConnected = false; - if (isNotifSocketConnected) { - if ( - this.pushNotificationSocket && - this.pushNotificationSocket.connected - ) { - //console.log('Disconnecting Notification Socket...'); - this.pushNotificationSocket.disconnect(); - } - } else { - // Emit STREAM.DISCONNECT only if the notification socket was already disconnected - this.emit(STREAM.DISCONNECT); - //console.log('Emitted STREAM.DISCONNECT '); + const TIMEOUT_DURATION = 5000; // Timeout duration in milliseconds + setTimeout(() => { + if (!(this.notifSocketConnected || this.chatSocketConnected)) { + reject(new Error('Connection timeout')); // Reject the promise if connect event is not emitted within the timeout } - } else if (socketType === 'notif') { - isNotifSocketConnected = false; - if (isChatSocketConnected) { - if (this.pushChatSocket && this.pushChatSocket.connected) { - //console.log('Disconnecting Chat Socket...'); - this.pushChatSocket.disconnect(); + }, TIMEOUT_DURATION); + + const handleSocketDisconnection = async ( + socketType: 'chat' | 'notif' + ) => { + if (socketType === 'chat') { + isChatSocketConnected = false; + this.chatSocketConnected = false; + this.chatSocketCount--; + if (isNotifSocketConnected) { + if ( + this.pushNotificationSocket && + this.pushNotificationSocket.connected + ) { + console.log( + 'RestAPI::PushStream::handleSocketDisconnection - Disconnecting Notification Socket...' + ); + this.pushNotificationSocket.disconnect(); + } + } else { + // Emit STREAM.DISCONNECT only if the notification socket was already disconnected + this.emit(STREAM.DISCONNECT); + console.log( + 'RestAPI::PushStream::handleSocketDisconnection - Emitted STREAM.DISCONNECT for chat.' + ); + } + } else if (socketType === 'notif') { + isNotifSocketConnected = false; + this.notifSocketConnected = false; + this.notifSocketCount--; + if (isChatSocketConnected) { + if (this.pushChatSocket && this.pushChatSocket.connected) { + console.log( + 'RestAPI::PushStream::handleSocketDisconnection - Disconnecting Chat Socket...' + ); + this.pushChatSocket.disconnect(); + } + } else { + // Emit STREAM.DISCONNECT only if the chat socket was already disconnected + this.emit(STREAM.DISCONNECT); + console.log( + 'RestAPI::PushStream::handleSocketDisconnection - Emitted STREAM.DISCONNECT for notification.' + ); } - } else { - // Emit STREAM.DISCONNECT only if the chat socket was already disconnected - this.emit(STREAM.DISCONNECT); - //console.log('Emitted STREAM.DISCONNECT'); } - } - }; - - if (shouldInitializeChatSocket) { - if (!this.pushChatSocket) { - // If pushChatSocket does not exist, create a new socket connection - this.pushChatSocket = await createSocketConnection({ - user: walletToPCAIP10(this.account), - socketType: 'chat', - socketOptions: { - autoConnect: this.options?.connection?.auto ?? true, - reconnectionAttempts: this.options?.connection?.retries ?? 3, - }, - env: this.options?.env as ENV, - }); + }; + if (shouldInitializeChatSocket) { if (!this.pushChatSocket) { - throw new Error('Push chat socket not connected'); - } - } else if (!this.pushChatSocket.connected) { - // If pushChatSocket exists but is not connected, attempt to reconnect - //console.log('Attempting to reconnect push chat socket...'); - this.pushChatSocket.connect(); // Assuming connect() is the method to re-establish connection - } else { - // If pushChatSocket is already connected - //console.log('Push chat socket already connected'); - } - } - - if (shouldInitializeNotifSocket) { - if (!this.pushNotificationSocket) { - // If pushNotificationSocket does not exist, create a new socket connection - this.pushNotificationSocket = await createSocketConnection({ - user: pCAIP10ToWallet(this.account), - env: this.options?.env as ENV, - socketOptions: { - autoConnect: this.options?.connection?.auto ?? true, - reconnectionAttempts: this.options?.connection?.retries ?? 3, - }, - }); + // If pushChatSocket does not exist, create a new socket connection + console.log( + 'RestAPI::PushStream::ChatSocket::Create - pushChatSocket does not exist, creating new socket connection...' + ); - if (!this.pushNotificationSocket) { - throw new Error('Push notification socket not connected'); + this.pushChatSocket = await createSocketConnection({ + user: walletToPCAIP10(this.account), + socketType: 'chat', + socketOptions: { + autoConnect: this.options?.connection?.auto ?? true, + reconnectionAttempts: this.options?.connection?.retries ?? 3, + }, + env: this.options?.env as ENV, + }); + + if (!this.pushChatSocket) { + reject( + new Error( + 'RestAPI::PushStream::ChatSocket::Error - Push chat socket not connected' + ) + ); + } + } else if (this.pushChatSocket && !this.chatSocketConnected) { + // If pushChatSocket exists but is not connected, attempt to reconnect + console.log( + 'RestAPI::PushStream::ChatSocket::Reconnect - Attempting to reconnect push chat socket...' + ); + this.pushChatSocket.connect(); // Assuming connect() is the method to re-establish connection + } else { + console.log( + 'RestAPI::PushStream::ChatSocket::Status - Push chat socket already connected' + ); } - } else if (!this.pushNotificationSocket.connected) { - // If pushNotificationSocket exists but is not connected, attempt to reconnect - //console.log('Attempting to reconnect push notification socket...'); - this.pushNotificationSocket.connect(); // Assuming connect() is the method to re-establish connection - } else { - // If pushNotificationSocket is already connected - //console.log('Push notification socket already connected'); } - } - - const shouldEmit = (eventType: STREAM): boolean => { - if (!this.listen || this.listen.length === 0) { - return true; - } - return this.listen.includes(eventType); - }; - if (this.pushChatSocket) { - this.pushChatSocket.on(EVENTS.CONNECT, async () => { - isChatSocketConnected = true; - checkAndEmitConnectEvent(); - //console.log(`Chat Socket Connected (ID: ${this.pushChatSocket.id})`); - }); - - this.pushChatSocket.on(EVENTS.DISCONNECT, async () => { - await handleSocketDisconnection('chat'); - }); - - this.pushChatSocket.on(EVENTS.CHAT_GROUPS, (data: any) => { - try { - const modifiedData = DataModifier.handleChatGroupEvent( - data, - this.raw - ); - modifiedData.event = DataModifier.convertToProposedName( - modifiedData.event + if (shouldInitializeNotifSocket) { + if (!this.pushNotificationSocket) { + // If pushNotificationSocket does not exist, create a new socket connection + console.log( + 'RestAPI::PushStream::NotifSocket::Create - pushNotificationSocket does not exist, creating new socket connection...' ); - modifiedData.streamUid = this.uid; - DataModifier.handleToField(modifiedData); - if (this.shouldEmitChat(data.chatId)) { - if ( - data.eventType === GroupEventType.JoinGroup || - data.eventType === GroupEventType.LeaveGroup || - data.eventType === MessageEventType.Request || - data.eventType === GroupEventType.Remove || - data.eventType === GroupEventType.RoleChange - ) { - if (shouldEmit(STREAM.CHAT)) { - this.emit(STREAM.CHAT, modifiedData); - } - } else { - if (shouldEmit(STREAM.CHAT_OPS)) { - this.emit(STREAM.CHAT_OPS, modifiedData); - } - } + this.pushNotificationSocket = await createSocketConnection({ + user: pCAIP10ToWallet(this.account), + env: this.options?.env as ENV, + socketOptions: { + autoConnect: this.options?.connection?.auto ?? true, + reconnectionAttempts: this.options?.connection?.retries ?? 3, + }, + }); + + if (!this.pushNotificationSocket) { + reject( + new Error( + 'RestAPI::PushStream::NotifSocket::Error - Push notification socket not connected' + ) + ); } - } catch (error) { - console.error( - 'Error handling CHAT_GROUPS event:', - error, - 'Data:', - data + } else if (this.pushNotificationSocket && !this.notifSocketConnected) { + // If pushNotificationSocket exists but is not connected, attempt to reconnect + console.log( + 'RestAPI::PushStream::NotifSocket::Reconnect - Attempting to reconnect push notification socket...' + ); + this.notifSocketCount++; + this.pushNotificationSocket.connect(); // Assuming connect() is the method to re-establish connection + } else { + // If pushNotificationSocket is already connected + console.log( + 'RestAPI::PushStream::NotifSocket::Status - Push notification socket already connected' ); } - }); + } - this.pushChatSocket.on( - EVENTS.CHAT_RECEIVED_MESSAGE, - async (data: any) => { - try { - if ( - data.messageCategory == 'Chat' || - data.messageCategory == 'Request' - ) { - // Dont call this if read only mode ? - if (this.decryptedPgpPvtKey) { - data = await this.chatInstance.decrypt([data]); - data = data[0]; - } - } + const shouldEmit = (eventType: STREAM): boolean => { + if (!this.listen || this.listen.length === 0) { + return true; + } + return this.listen.includes(eventType); + }; + + if (this.pushChatSocket) { + this.pushChatSocket.on(EVENTS.CONNECT, async () => { + isChatSocketConnected = true; + this.chatSocketCount++; + this.chatSocketConnected = true; + checkAndEmitConnectEvent(); + console.log( + `RestAPI::PushStream::EVENTS.CONNECT::Chat Socket Connected (ID: ${this.pushChatSocket.id})` + ); + }); + + this.pushChatSocket.on(EVENTS.DISCONNECT, async () => { + await handleSocketDisconnection('chat'); + }); - const modifiedData = DataModifier.handleChatEvent(data, this.raw); + this.pushChatSocket.on(EVENTS.CHAT_GROUPS, (data: any) => { + try { + const modifiedData = DataModifier.handleChatGroupEvent( + data, + this.raw + ); modifiedData.event = DataModifier.convertToProposedName( modifiedData.event ); modifiedData.streamUid = this.uid; DataModifier.handleToField(modifiedData); if (this.shouldEmitChat(data.chatId)) { - if (shouldEmit(STREAM.CHAT)) { - this.emit(STREAM.CHAT, modifiedData); + if ( + data.eventType === GroupEventType.JoinGroup || + data.eventType === GroupEventType.LeaveGroup || + data.eventType === MessageEventType.Request || + data.eventType === GroupEventType.Remove || + data.eventType === GroupEventType.RoleChange + ) { + if (shouldEmit(STREAM.CHAT)) { + this.emit(STREAM.CHAT, modifiedData); + } + } else { + if (shouldEmit(STREAM.CHAT_OPS)) { + this.emit(STREAM.CHAT_OPS, modifiedData); + } } } } catch (error) { console.error( - 'Error handling CHAT_RECEIVED_MESSAGE event:', + 'Error handling CHAT_GROUPS event:', error, 'Data:', data ); } - } - ); + }); - this.pushChatSocket.on('SPACES', (data: any) => { - try { - const modifiedData = DataModifier.handleSpaceEvent(data, this.raw); - modifiedData.event = DataModifier.convertToProposedNameForSpace( - modifiedData.event - ); + this.pushChatSocket.on( + EVENTS.CHAT_RECEIVED_MESSAGE, + async (data: any) => { + try { + if ( + data.messageCategory == 'Chat' || + data.messageCategory == 'Request' + ) { + // Dont call this if read only mode ? + if (this.decryptedPgpPvtKey) { + data = await this.chatInstance.decrypt([data]); + data = data[0]; + } + } + + const modifiedData = DataModifier.handleChatEvent(data, this.raw); + modifiedData.event = DataModifier.convertToProposedName( + modifiedData.event + ); + DataModifier.handleToField(modifiedData); + if (this.shouldEmitChat(data.chatId)) { + if (shouldEmit(STREAM.CHAT)) { + this.emit(STREAM.CHAT, modifiedData); + } + } + } catch (error) { + console.error( + 'Error handling CHAT_RECEIVED_MESSAGE event:', + error, + 'Data:', + data + ); + } + } + ); - DataModifier.handleToField(modifiedData); - modifiedData.streamUid = this.uid; + this.pushChatSocket.on('SPACES', (data: any) => { + try { + const modifiedData = DataModifier.handleSpaceEvent(data, this.raw); + modifiedData.event = DataModifier.convertToProposedNameForSpace( + modifiedData.event + ); - if (this.shouldEmitSpace(data.spaceId)) { - if ( - data.eventType === SpaceEventType.Join || - data.eventType === SpaceEventType.Leave || - data.eventType === MessageEventType.Request || - data.eventType === SpaceEventType.Remove || - data.eventType === SpaceEventType.Start || - data.eventType === SpaceEventType.Stop - ) { + DataModifier.handleToField(modifiedData); + + if (this.shouldEmitSpace(data.spaceId)) { + if ( + data.eventType === SpaceEventType.Join || + data.eventType === SpaceEventType.Leave || + data.eventType === MessageEventType.Request || + data.eventType === SpaceEventType.Remove || + data.eventType === SpaceEventType.Start || + data.eventType === SpaceEventType.Stop + ) { + if (shouldEmit(STREAM.SPACE)) { + this.emit(STREAM.SPACE, modifiedData); + } + } else { + if (shouldEmit(STREAM.SPACE_OPS)) { + this.emit(STREAM.SPACE_OPS, modifiedData); + } + } + } + } catch (error) { + console.error('Error handling SPACES event:', error, 'Data:', data); + } + }); + + this.pushChatSocket.on('SPACES_MESSAGES', (data: any) => { + try { + const modifiedData = DataModifier.handleSpaceEvent(data, this.raw); + modifiedData.event = DataModifier.convertToProposedNameForSpace( + modifiedData.event + ); + + DataModifier.handleToField(modifiedData); + + if (this.shouldEmitSpace(data.spaceId)) { if (shouldEmit(STREAM.SPACE)) { this.emit(STREAM.SPACE, modifiedData); } - } else { - if (shouldEmit(STREAM.SPACE_OPS)) { - this.emit(STREAM.SPACE_OPS, modifiedData); - } } + } catch (error) { + console.error('Error handling SPACES event:', error, 'Data:', data); } - } catch (error) { - console.error('Error handling SPACES event:', error, 'Data:', data); - } - }); + }); + } - this.pushChatSocket.on('SPACES_MESSAGES', (data: any) => { - try { - const modifiedData = DataModifier.handleSpaceEvent(data, this.raw); - modifiedData.event = DataModifier.convertToProposedNameForSpace( - modifiedData.event + if (this.pushNotificationSocket) { + this.pushNotificationSocket.on(EVENTS.CONNECT, async () => { + console.log( + `RestAPI::PushStream::NotifSocket::Connect - Notification Socket Connected (ID: ${this.pushNotificationSocket.id})` ); + isNotifSocketConnected = true; + this.notifSocketCount++; + this.notifSocketConnected = true; + checkAndEmitConnectEvent(); + }); - DataModifier.handleToField(modifiedData); - modifiedData.streamUid = this.uid; + this.pushNotificationSocket.on(EVENTS.DISCONNECT, async () => { + console.log( + 'RestAPI::PushStream::NotifSocket::Disconnect - Notification socket disconnected.' + ); + await handleSocketDisconnection('notif'); + }); - if (this.shouldEmitSpace(data.spaceId)) { - if (shouldEmit(STREAM.SPACE)) { - this.emit(STREAM.SPACE, modifiedData); + this.pushNotificationSocket.on(EVENTS.USER_FEEDS, (data: any) => { + try { + if ( + data.payload.data.additionalMeta?.type === + `${ADDITIONAL_META_TYPE.PUSH_VIDEO}+1` && + shouldEmit(STREAM.VIDEO) && + this.shouldEmitVideo(data.sender) + ) { + // Video Notification + const modifiedData = DataModifier.mapToVideoEvent( + data, + this.account === data.sender + ? MessageOrigin.Self + : MessageOrigin.Other, + this.raw + ); + + this.emit(STREAM.VIDEO, modifiedData); + } else { + // Channel Notification + const modifiedData = DataModifier.mapToNotificationEvent( + data, + NotificationEventType.INBOX, + this.account === data.sender ? 'self' : 'other', + this.raw + ); + + if (this.shouldEmitChannel(modifiedData.from)) { + if (shouldEmit(STREAM.NOTIF)) { + this.emit(STREAM.NOTIF, modifiedData); + } + } } + } catch (error) { + console.error( + `RestAPI::PushStream::NotifSocket::UserFeeds::Error - Error handling event: ${error}, Data: ${JSON.stringify( + data + )}` + ); } - } catch (error) { - console.error('Error handling SPACES event:', error, 'Data:', data); - } - }); - } + }); - if (this.pushNotificationSocket) { - this.pushNotificationSocket.on(EVENTS.CONNECT, async () => { - /*console.log( - `Notification Socket Connected (ID: ${this.pushNotificationSocket.id})` - );*/ - isNotifSocketConnected = true; - checkAndEmitConnectEvent(); - }); - - this.pushNotificationSocket.on(EVENTS.DISCONNECT, async () => { - await handleSocketDisconnection('notif'); - //console.log(`Notification Socket Disconnected`); - }); - - this.pushNotificationSocket.on(EVENTS.USER_FEEDS, (data: any) => { - try { - if ( - data.payload.data.additionalMeta?.type === - `${ADDITIONAL_META_TYPE.PUSH_VIDEO}+1` && - shouldEmit(STREAM.VIDEO) && - this.shouldEmitVideo(data.sender) - ) { - // Video Notification - const modifiedData = DataModifier.mapToVideoEvent( - data, - this.account === data.sender - ? MessageOrigin.Self - : MessageOrigin.Other, - this.raw - ); - modifiedData.streamUid = this.uid; - this.emit(STREAM.VIDEO, modifiedData); - } else { - // Channel Notification + this.pushNotificationSocket.on(EVENTS.USER_SPAM_FEEDS, (data: any) => { + try { const modifiedData = DataModifier.mapToNotificationEvent( data, - NotificationEventType.INBOX, + NotificationEventType.SPAM, this.account === data.sender ? 'self' : 'other', this.raw ); - modifiedData.streamUid = this.uid; - + modifiedData.origin = + this.account === modifiedData.from ? 'self' : 'other'; if (this.shouldEmitChannel(modifiedData.from)) { if (shouldEmit(STREAM.NOTIF)) { this.emit(STREAM.NOTIF, modifiedData); } } + } catch (error) { + console.error( + 'Error handling USER_SPAM_FEEDS event:', + error, + 'Data:', + data + ); } - } catch (error) { - console.error( - 'Error handling USER_FEEDS event:', - error, - 'Data:', - data - ); - } - }); - - this.pushNotificationSocket.on(EVENTS.USER_SPAM_FEEDS, (data: any) => { - try { - const modifiedData = DataModifier.mapToNotificationEvent( - data, - NotificationEventType.SPAM, - this.account === data.sender ? 'self' : 'other', - this.raw - ); - modifiedData.origin = - this.account === modifiedData.from ? 'self' : 'other'; - if (this.shouldEmitChannel(modifiedData.from)) { - if (shouldEmit(STREAM.NOTIF)) { - this.emit(STREAM.NOTIF, modifiedData); - } - } - } catch (error) { - console.error( - 'Error handling USER_SPAM_FEEDS event:', - error, - 'Data:', - data - ); - } - }); - } + }); + } - this.disconnected = false; + this.disconnected = false; + }); } public connected(): boolean { - return ( - (this.pushNotificationSocket && this.pushNotificationSocket.connected) || - (this.pushChatSocket && this.pushChatSocket.connected) + // Log the connection status of both sockets with detailed prefix + console.log( + `RestAPI::PushStream::connected::Notification Socket Connected: ${this.notifSocketConnected}` ); + console.log( + `RestAPI::PushStream::connected::Chat Socket Connected: ${this.chatSocketConnected}` + ); + + return this.notifSocketConnected || this.chatSocketConnected; } public async disconnect(): Promise { // Disconnect push chat socket if connected - if (this.pushChatSocket) { + if (this.pushChatSocket && this.chatSocketConnected) { this.pushChatSocket.disconnect(); - //console.log('Push chat socket disconnected.'); + console.log( + 'RestAPI::PushStream::disconnect::Push chat socket disconnected.' + ); } // Disconnect push notification socket if connected - if (this.pushNotificationSocket) { + if (this.pushNotificationSocket && this.notifSocketConnected) { this.pushNotificationSocket.disconnect(); - //console.log('Push notification socket disconnected.'); + console.log( + 'RestAPI::PushStream::disconnect::Push notification socket disconnected.' + ); } } diff --git a/packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx b/packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx index 33d71f339..63c4bcce5 100644 --- a/packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx @@ -183,7 +183,7 @@ export const ChatProfile: React.FC = ({ zIndex="unset" flexDirection="row" gap="10px" - margin="0 20px 0 auto" + margin="0 10px 0 auto" alignSelf="center" > {chatProfileRightHelperComponent && !groupInfo && ( @@ -259,7 +259,6 @@ export const ChatProfile: React.FC = ({ return null; } }; - const Container = styled.div` width: 100%; background: ${(props) => props.theme.backgroundColor.chatProfileBackground}; diff --git a/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx b/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx index e7a672dbb..9d5874222 100644 --- a/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx @@ -126,13 +126,18 @@ const MessageCard = ({ const time = moment(chat.timestamp).format('hh:mm a'); return ( -
{time} -
+
); }; @@ -391,3 +396,7 @@ const FileDownloadIcon = styled.i` const FileDownloadIconAnchor = styled.a` font-size: 20px; `; +const MessageSection = styled(Section)<{border:string}>` +border: ${(props) => props.border}; +`; + diff --git a/packages/uiweb/src/lib/components/chat/ChatViewList/ChatViewList.tsx b/packages/uiweb/src/lib/components/chat/ChatViewList/ChatViewList.tsx index c845676bc..5d2a0ca77 100644 --- a/packages/uiweb/src/lib/components/chat/ChatViewList/ChatViewList.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatViewList/ChatViewList.tsx @@ -14,6 +14,7 @@ import { chatLimit } from '../../../config'; import { appendUniqueMessages, dateToFromNowDaily, + getAddress, pCAIP10ToWallet, walletToPCAIP10, } from '../../../helpers'; @@ -33,7 +34,10 @@ import { ChatInfoResponse } from '../types'; import useUserProfile from '../../../hooks/useUserProfile'; import useGetGroupByIDnew from '../../../hooks/chat/useGetGroupByIDnew'; import useToast from '../reusables/NewToast'; -import { checkIfNewRequest, transformStreamToIMessageIPFSWithCID } from '../helpers'; +import { + checkIfNewRequest, + transformStreamToIMessageIPFSWithCID, +} from '../helpers'; /** * @interface IThemeProps @@ -82,6 +86,8 @@ export const ChatViewList: React.FC = ( const [participantJoinStream, setParticipantJoinStream] = useState({}); // to track if a participant joins a group const [groupUpdateStream, setGroupUpdateStream] = useState({}); + const [formattedChatId, setFormattedChatId] = useState(''); + // const { // chatStream, // groupUpdateStream, @@ -95,7 +101,9 @@ export const ChatViewList: React.FC = ( usePushChatStream(); useEffect(() => { window.addEventListener('chatStream', (e: any) => setChatStream(e.detail)); - window.addEventListener('chatRequestStream', (e: any) => setChatRequestStream(e.detail)); + window.addEventListener('chatRequestStream', (e: any) => + setChatRequestStream(e.detail) + ); window.addEventListener('chatAcceptStream', (e: any) => setChatAcceptStream(e.detail) ); @@ -115,7 +123,9 @@ export const ChatViewList: React.FC = ( window.removeEventListener('chatStream', (e: any) => setChatStream(e.detail) ); - window.removeEventListener('chatRequestStream', (e: any) => setChatRequestStream(e.detail)); + window.removeEventListener('chatRequestStream', (e: any) => + setChatRequestStream(e.detail) + ); window.removeEventListener('chatAcceptStream', (e: any) => setChatAcceptStream(e.detail) @@ -151,7 +161,12 @@ export const ChatViewList: React.FC = ( (async () => { if (!user) return; if (chatId) { - const chat = await fetchChat({ chatId: chatId }); + let formattedChatId; + if (chatId.includes('.')) { + formattedChatId = (await getAddress(chatId, env))!; + } else formattedChatId = chatId; + setFormattedChatId(formattedChatId); + const chat = await fetchChat({ chatId: formattedChatId }); if (Object.keys(chat || {}).length) { setChatInfo(chat as ChatInfoResponse); } @@ -173,7 +188,7 @@ export const ChatViewList: React.FC = ( profileId: pCAIP10ToWallet( chatInfo?.participants.find( (address) => address != walletToPCAIP10(account) - ) || chatId + ) || formattedChatId ), env, user, @@ -181,7 +196,7 @@ export const ChatViewList: React.FC = ( if (UserProfile) setUserInfo(UserProfile); setChatStatusText(ChatStatus.FIRST_CHAT); } else if (chatInfo && chatInfo?.meta?.group) { - GroupProfile = await getGroupByIDnew({ groupId: chatId }); + GroupProfile = await getGroupByIDnew({ groupId: formattedChatId }); if (GroupProfile) setGroupInfo(GroupProfile); else { setChatStatusText(ChatStatus.INVALID_CHAT); @@ -230,12 +245,15 @@ export const ChatViewList: React.FC = ( ) transformGroupDetails(groupUpdateStream); }, [groupUpdateStream]); - + const transformSteamMessage = (item: any) => { if (!user) { return; } - if (chatInfo && ((item?.chatId == chatInfo?.chatId) || checkIfNewRequest(item,chatId))) { + if ( + chatInfo && + (item?.chatId == chatInfo?.chatId || checkIfNewRequest(item, formattedChatId)) + ) { const transformedMessage = transformStreamToIMessageIPFSWithCID(item); if (messages && messages.length) { const newChatViewList = appendUniqueMessages( @@ -344,7 +362,7 @@ export const ChatViewList: React.FC = ( if (user) { const chatHistory = await historyMessages({ limit: limit, - chatId, + chatId:formattedChatId, reference, }); if (chatHistory?.length) { @@ -476,7 +494,7 @@ export const ChatViewList: React.FC = ( })} {chatInfo && chatInfo?.list === 'REQUESTS' && ( - + )} } diff --git a/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx b/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx index 9487cde83..5c77b10c9 100644 --- a/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx +++ b/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx @@ -22,6 +22,7 @@ import { ConnectButtonComp } from '../ConnectButton'; import useToast from '../reusables/NewToast'; import { ConditionsInformation } from '../ChatProfile/GroupInfoModal'; import { + getAddress, pCAIP10ToWallet, setAccessControl, walletToPCAIP10, @@ -106,6 +107,8 @@ export const MessageInput: React.FC = ({ const [fileUploading, setFileUploading] = useState(false); const [isRules, setIsRules] = useState(false); const [isMember, setIsMember] = useState(false); + const [formattedChatId, setFormattedChatId] = useState(''); + //hack for stream not working const [chatAcceptStream, setChatAcceptStream] = useState({}); // to track any new messages const [participantRemoveStream, setParticipantRemoveStream] = useState( @@ -215,7 +218,7 @@ export const MessageInput: React.FC = ({ setVerified(true); } else { setVerified(false); - setAccessControl(chatId, true); + setAccessControl(formattedChatId, true); } } } @@ -225,7 +228,12 @@ export const MessageInput: React.FC = ({ (async () => { if (!user) return; if (chatId) { - const chat = await fetchChat({ chatId: chatId }); + let formattedChatId; + if (chatId.includes('.')) { + formattedChatId = (await getAddress(chatId, env))!; + } else formattedChatId = chatId; + setFormattedChatId(formattedChatId); + const chat = await fetchChat({ chatId: formattedChatId }); if (Object.keys(chat || {}).length) { setChatInfo(chat as ChatInfoResponse); } @@ -237,7 +245,7 @@ export const MessageInput: React.FC = ({ (async () => { let GroupProfile; if (chatInfo && chatInfo?.meta?.group) { - GroupProfile = await getGroupByIDnew({ groupId: chatId }); + GroupProfile = await getGroupByIDnew({ groupId: formattedChatId }); if (GroupProfile) setGroupInfo(GroupProfile); } })(); @@ -311,13 +319,13 @@ export const MessageInput: React.FC = ({ }; const checkVerification = () => { - verifyAccessControl({ chatId, did: account! }); + verifyAccessControl({ chatId:formattedChatId, did: account! }); }; const handleJoinGroup = async () => { if (chatInfo && groupInfo && groupInfo?.isPublic) { const response = await joinGroup({ - chatId, + chatId:formattedChatId, }); if (typeof response !== 'string') { showSuccess('Success', 'Successfully joined group'); @@ -416,7 +424,7 @@ export const MessageInput: React.FC = ({ try { const sendMessageResponse = await sendMessage({ message: content, - chatId, + chatId:formattedChatId, messageType: type as any, }); if ( @@ -424,7 +432,7 @@ export const MessageInput: React.FC = ({ typeof sendMessageResponse === 'string' && sendMessageResponse.includes('403') ) { - setAccessControl(chatId, true); + setAccessControl(formattedChatId, true); setVerified(false); setVerificationSuccessfull(false); } @@ -479,7 +487,7 @@ export const MessageInput: React.FC = ({ alignItems="center" > = ({ {gif && (
= ({ {!fileUploading && file && ( <>
= ({
sendTextMsg()} > @@ -691,7 +700,7 @@ export const MessageInput: React.FC = ({ }; const TypebarSection = styled(Section)<{ border?: string }>` - gap: 10px; + // gap: 10px; border: ${(props) => props.border || 'none'}; @media ${device.mobileL} { gap: 0px; @@ -707,7 +716,7 @@ const MultiLineInput = styled.textarea` font-family: inherit; font-weight: 400; transform: translateY(3px); - font-size: 16px; + font-size: 15px; outline: none; overflow-y: auto; box-sizing: border-box; diff --git a/packages/uiweb/src/lib/components/chat/theme/index.ts b/packages/uiweb/src/lib/components/chat/theme/index.ts index d9d9acd80..71bffbffa 100644 --- a/packages/uiweb/src/lib/components/chat/theme/index.ts +++ b/packages/uiweb/src/lib/components/chat/theme/index.ts @@ -2,7 +2,15 @@ * @file theme file: all the predefined themes are defined here */ import { CHAT_THEME_OPTIONS } from '../exportedTypes'; - +// bgColorPrimary: "#fff", +// bgColorSecondary: "#D53A94", +// textColorPrimary: "#1e1e1e", +// textColorSecondary: "#fff", +// btnColorPrimary: "#D53A94", +// btnColorSecondary: "#494D5F", +// border: "1px solid #E4E8EF", done +// borderRadius:"24px", done +// moduleColor:"#fff", //theme type interface IBorder { chatViewComponent?: string; @@ -13,6 +21,9 @@ interface IBorder { modalInnerComponents?:string; chatPreview?:string; userProfile?:string; + chatWidget?:string; + chatSentBubble?: string; + chatReceivedBubble?: string; } interface IBorderRadius { chatViewComponent?: string; @@ -23,6 +34,7 @@ interface IBorderRadius { modalInnerComponents?:string; chatPreview?:string; userProfile?:string; + chatWidget?:string; } interface IBackgroundColor { chatViewComponentBackground?: string; @@ -46,6 +58,8 @@ interface IBackgroundColor { chatPreviewBadgeBackground?:string; chatPreviewHoverBackground?:string; userProfileBackground?:string; + chatWidgetModalBackground?:string; + } interface ITextColor { @@ -69,6 +83,7 @@ interface ITextColor { chatPreviewDateText?:string; chatPreviewBadgeText?:string; userProfileText?:string; + chatWidgetModalHeadingText?:string; } interface IFont { chatProfileText?: string; @@ -144,7 +159,8 @@ export const lightChatTheme: IChatTheme = { modal: '16px', modalInnerComponents:'12px', chatPreview:'24px', - userProfile:'0px' + userProfile:'0px', + chatWidget:'24px' }, backgroundColor: { @@ -171,7 +187,10 @@ export const lightChatTheme: IChatTheme = { chatPreviewSelectedBackground:'#f5f5f5', chatPreviewBadgeBackground:'rgb(226,8,128)', chatPreviewHoverBackground:'#f5f5f5', - userProfileBackground:'#fff' + userProfileBackground:'#fff', + + chatWidgetModalBackground:'#fff', + }, fontSize: { @@ -222,7 +241,10 @@ export const lightChatTheme: IChatTheme = { modal:'none', modalInnerComponents:'1px solid rgb(194, 203, 219)', chatPreview:'none', - userProfile:'none' + userProfile:'none', + chatWidget:'1px solid #E4E8EF', + chatReceivedBubble:'none', + chatSentBubble:'none' }, iconColor: { @@ -252,7 +274,9 @@ export const lightChatTheme: IChatTheme = { chatPreviewMessageText:'#888', chatPreviewDateText:'#888', chatPreviewBadgeText:'#fff', - userProfileText:'#000' + userProfileText:'#000', + chatWidgetModalHeadingText:'#000', + }, backdropFilter: 'none', spinnerColor: 'rgb(202, 89, 155)', @@ -268,7 +292,8 @@ export const darkChatTheme: IChatTheme = { modal: '16px', modalInnerComponents:'12px', chatPreview:'24px', - userProfile:'0px' + userProfile:'0px', + chatWidget:'24px' }, backgroundColor: { @@ -293,7 +318,10 @@ export const darkChatTheme: IChatTheme = { chatPreviewSelectedBackground:'rgb(64, 70, 80)', chatPreviewBadgeBackground:'rgb(226,8,128)', chatPreviewHoverBackground:'rgb(64, 70, 80)', - userProfileBackground:'rgb(47, 49, 55)' + userProfileBackground:'rgb(47, 49, 55)', + + chatWidgetModalBackground:'rgb(47, 49, 55)', + }, fontSize: { @@ -344,7 +372,9 @@ export const darkChatTheme: IChatTheme = { modal:'none', modalInnerComponents:'1px solid rgb(74, 79, 103)', chatPreview:'none', - userProfile:'none' + userProfile:'none', + chatReceivedBubble:'none', + chatSentBubble:'none' }, iconColor: { @@ -374,7 +404,9 @@ export const darkChatTheme: IChatTheme = { chatPreviewMessageText:'#888', chatPreviewDateText:'#888', chatPreviewBadgeText:'#fff', - userProfileText:'rgb(182, 188, 214)' + userProfileText:'rgb(182, 188, 214)', + chatWidgetModalHeadingText:'#fff', + }, backdropFilter: 'none', spinnerColor: 'rgb(202, 89, 155)', diff --git a/packages/uiweb/src/lib/components/chatWidget/ChatWidget.tsx b/packages/uiweb/src/lib/components/chatWidget/ChatWidget.tsx new file mode 100644 index 000000000..e827f8653 --- /dev/null +++ b/packages/uiweb/src/lib/components/chatWidget/ChatWidget.tsx @@ -0,0 +1,82 @@ +import React, { useContext, useEffect, useState } from 'react'; + +import styled from 'styled-components'; +import { ChatIcon } from '../../icons/ChatIcon'; +import { Modal } from './Modal'; +import { Div } from '../reusables/sharedStyling'; +import { ThemeContext } from '../chat/theme/ThemeProvider'; +import { IChatTheme } from '../chat'; + +import { Constants } from '../../config'; + + +/** + * @interface IThemeProps + * this interface is used for defining the props for styled components + */ +interface IThemeProps { + theme?: IChatTheme; +} + +export type ChatWidgetProps = { + chatId: string; + modalTitle?: string; + welcomeComponent?: React.ReactNode; +}; + +export const ChatWidget: React.FC = ({ + chatId, + modalTitle = Constants.DEFAULT_TITLE, + welcomeComponent = null +}) => { + const [isModalOpen, setIsModalOpen] = useState(false); + const theme = useContext(ThemeContext); + + + return ( + + {!isModalOpen && ( + + )} + {isModalOpen && ( + + )} + + ); +}; + +//styles + +const Container = styled.div` + font-family: 'Strawford'; + flex: 1; + display: flex; + position: fixed; + bottom: 0; + right: 0; + width: fit-content; + z-index: 9999999999; + margin: 0 3rem 2rem 0; + align-items: center; + justify-content: center; +`; + +const Button = styled.button` + background: ${(props) => props.theme?.backgroundColor?.buttonBackground}; + border: none; + cursor: pointer; + border-radius: 18px; + padding: 16.5px 16.5px 13px 18.5px; +`; + +const Image = styled.img``; diff --git a/packages/uiweb/src/lib/components/chatWidget/Modal.tsx b/packages/uiweb/src/lib/components/chatWidget/Modal.tsx new file mode 100644 index 000000000..e1ec12809 --- /dev/null +++ b/packages/uiweb/src/lib/components/chatWidget/Modal.tsx @@ -0,0 +1,109 @@ +import React, { useContext } from 'react'; +import styled from 'styled-components'; + +import { Div, Section, Span } from '../reusables/sharedStyling'; +import { ChatProfile, ChatViewList, IChatTheme, MessageInput } from '../chat'; +import { useChatData } from '../../hooks'; +import { SponserPushIcon } from '../../icons/SponserPush'; +import { ThemeContext } from '../chat/theme/ThemeProvider'; +import { MinimizeIcon } from '../../icons/Minimize'; + +/** + * @interface IThemeProps + * this interface is used for defining the props for styled components + */ +interface IThemeProps { + theme?: IChatTheme; +} + +type ModalProps = { + chatId: string; + isModalOpen: boolean; + setIsModalOpen: React.Dispatch>; + modalTitle: string; + welcomeComponent: React.ReactNode; +}; +export const Modal: React.FC = ({ + chatId, + isModalOpen, + setIsModalOpen, + modalTitle, + welcomeComponent, +}) => { + const { account, user, signer } = useChatData(); + const theme = useContext(ThemeContext); + return ( + + {/* check other inputs for the components */} + + + {modalTitle} + +
setIsModalOpen(!isModalOpen)} + > + +
+
+
+ +
+ {!user || (user && user?.readmode()) ? ( + <>{welcomeComponent} + ) : ( + + + + )} +
+ +
+ +
+
+
+ +
+
+ ); +}; + +//styles +const Container = styled.div` + display: flex; + gap: 10px; + flex-direction: column; + box-sizing: border-box; + background: ${(props) => + props.theme?.backgroundColor?.chatWidgetModalBackground}; + border: ${(props) => props.theme?.border?.chatWidget}; + + box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.07); + border-radius: ${(props) => props.theme?.borderRadius?.chatWidget}; + height: 585px; + max-height: 585px; + width: 350px; + max-width: 350px; + padding: 0 15px; +`; +const HeaderSection = styled(Section)` + border-bottom: ${(props) => props.theme.border?.chatWidget}; + align-items: center; + justify-content: center; + padding: 17px; +`; diff --git a/packages/uiweb/src/lib/components/chatWidget/index.ts b/packages/uiweb/src/lib/components/chatWidget/index.ts new file mode 100644 index 000000000..f5bbb0a9b --- /dev/null +++ b/packages/uiweb/src/lib/components/chatWidget/index.ts @@ -0,0 +1 @@ +export * from './ChatWidget'; \ No newline at end of file diff --git a/packages/uiweb/src/lib/components/index.ts b/packages/uiweb/src/lib/components/index.ts index a166c6e40..a8e67bb13 100644 --- a/packages/uiweb/src/lib/components/index.ts +++ b/packages/uiweb/src/lib/components/index.ts @@ -5,4 +5,5 @@ export * from './space'; export * from './supportChat'; export * from './chatAndNotification'; export * from './chat'; -export * from './widget'; \ No newline at end of file +export * from './widget'; +export * from './chatWidget'; \ No newline at end of file diff --git a/packages/uiweb/src/lib/components/reusables/GlobalStyle.tsx b/packages/uiweb/src/lib/components/reusables/GlobalStyle.tsx new file mode 100644 index 000000000..4c627c024 --- /dev/null +++ b/packages/uiweb/src/lib/components/reusables/GlobalStyle.tsx @@ -0,0 +1,10 @@ +import { createGlobalStyle } from "styled-components"; + +// Define global styles +export const GlobalStyle = createGlobalStyle` + :root { + --onboard-modal-z-index:9999999999999 !important; + /* Wallet connect modal z-index */ + --wcm-z-index: 9999999999999 !important; + } +`; \ No newline at end of file diff --git a/packages/uiweb/src/lib/components/reusables/index.tsx b/packages/uiweb/src/lib/components/reusables/index.tsx index 8e325f506..593224092 100644 --- a/packages/uiweb/src/lib/components/reusables/index.tsx +++ b/packages/uiweb/src/lib/components/reusables/index.tsx @@ -1,3 +1,4 @@ export * from './Spinner'; export * from './Tooltip'; export * from './sharedStyling'; +export * from './GlobalStyle'; diff --git a/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx b/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx index ee42f5d17..4b569936f 100644 --- a/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx +++ b/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx @@ -1,22 +1,22 @@ import { useState, ReactNode, useEffect } from 'react'; + +import { IUser, PushAPI, SignerType } from '@pushprotocol/restapi'; + + import { Constants, ENV, GUEST_MODE_ACCOUNT } from '../config'; import { ChatDataContext, IChatDataContextValues, } from '../context/chatContext'; import { ThemeContext } from '../components/chat/theme/ThemeProvider'; -import useGetChatProfile from '../hooks/useGetChatProfile'; -import { IUser, PushAPI, SignerType } from '@pushprotocol/restapi'; import { IChatTheme, lightChatTheme } from '../components/chat/theme'; import { getAddressFromSigner, pCAIP10ToWallet } from '../helpers'; -import useCreateChatProfile from '../hooks/useCreateChatProfile'; -import useDecryptPGPKey from '../hooks/useDecryptPGPKey'; -import useInitializePushUser from '../hooks/useInitializeUser'; import useInitializeUser from '../hooks/useInitializeUser'; -import useChatProfile from '../hooks/chat/useChatProfile'; import usePushUserInfoUtilities from '../hooks/chat/useUserInfoUtilities'; import useUserProfile from '../hooks/useUserProfile'; +import { GlobalStyle } from '../components/reusables'; + export interface IChatUIProviderProps { children: ReactNode; @@ -123,7 +123,6 @@ export const ChatUIProvider = ({ } })(); }, [account, env, pgpPrivateKey]); -console.debug('userval',userVal) const value: IChatDataContextValues = { account: accountVal, signer: signerVal, @@ -151,6 +150,7 @@ console.debug('userval',userVal) return ( + {children} diff --git a/packages/uiweb/src/lib/helpers/chat/chat.ts b/packages/uiweb/src/lib/helpers/chat/chat.ts index 74e3c8fce..45c335461 100644 --- a/packages/uiweb/src/lib/helpers/chat/chat.ts +++ b/packages/uiweb/src/lib/helpers/chat/chat.ts @@ -11,13 +11,13 @@ import type { IUser, } from '@pushprotocol/restapi'; import { isPCAIP, pCAIP10ToWallet, walletToPCAIP10 } from '../address'; -import { Group } from '../../components'; +import { Group, IChatTheme } from '../../components'; import { getData } from './localStorage'; import { ethers } from 'ethers'; import { PushAPI } from '@pushprotocol/restapi'; type HandleOnChatIconClickProps = { isModalOpen: boolean; - setIsModalOpen: (isModalOpen: boolean) => void; + setIsModalOpen: React.Dispatch>; }; type GetChatsType = { @@ -222,3 +222,4 @@ export const appendUniqueMessages = ( // ); return appendedArray; }; + diff --git a/packages/uiweb/src/lib/icons/SponserPush.tsx b/packages/uiweb/src/lib/icons/SponserPush.tsx index 92b05c2cb..a191b3776 100644 --- a/packages/uiweb/src/lib/icons/SponserPush.tsx +++ b/packages/uiweb/src/lib/icons/SponserPush.tsx @@ -1,10 +1,10 @@ import React from 'react'; -export const SponserPushIcon = () => { +export const SponserPushIcon = ({ color }: { color?: string }) => { return ( - +