From 0f547304d432ead7571853dd20f9067d4ff2e79c Mon Sep 17 00:00:00 2001 From: Rohit Malhotra Date: Mon, 7 Oct 2024 15:44:15 +0530 Subject: [PATCH 1/3] Main Release 1.5.0 (#1403) * fix: fixed font sizes and dark theme (#1376) * fix: fixed font sizes and dark theme * fix: fixed line height * Add erc1155 to token gating group conditions (#1382) * feat: add erc1155 to token gating group conditions * fix: add tokenId to fetchContractInfo function * lock file updated --------- Co-authored-by: rohitmalhotra1420 * Replaced useResolveWeb3Name hook with resolveWeb3Name helper function (#1390) * fix: added common resolveweb3 for domain name * fix: fixed review comments * Notification Ui change (#1396) * feat: new notification ui * fix: fixed review comments * lock file changed * fix: fixed color and cta hover * fix: fixed the review comments * fix: fixed link icon --------- Co-authored-by: rohitmalhotra1420 --------- Co-authored-by: Monalisha Mishra <42746736+mishramonalisha76@users.noreply.github.com> Co-authored-by: Kalash Shah <81062983+kalashshah@users.noreply.github.com> --- .../MinimisedModalHeader.tsx | 112 +- .../modal/sidebar/chatSidebar/ChatSnap.tsx | 126 +- .../src/lib/components/notification/index.tsx | 410 ++- .../components/notification/theme/index.ts | 81 +- packages/uiweb/src/lib/hooks/index.ts | 5 +- packages/uiweb/src/lib/hooks/useDomainName.ts | 20 + .../uiweb/src/lib/hooks/useResolveWeb3Name.ts | 39 - packages/uiweb/src/lib/icons/Link.tsx | 18 +- packages/uiweb/src/lib/utilities/time.ts | 59 +- packages/uiweb/yarn.lock | 659 +++-- yarn.lock | 2496 +++++++++-------- 11 files changed, 1993 insertions(+), 2032 deletions(-) create mode 100644 packages/uiweb/src/lib/hooks/useDomainName.ts delete mode 100644 packages/uiweb/src/lib/hooks/useResolveWeb3Name.ts diff --git a/packages/uiweb/src/lib/components/chatAndNotification/MinimisedModalHeader.tsx b/packages/uiweb/src/lib/components/chatAndNotification/MinimisedModalHeader.tsx index abb71f61c..627a4b56b 100644 --- a/packages/uiweb/src/lib/components/chatAndNotification/MinimisedModalHeader.tsx +++ b/packages/uiweb/src/lib/components/chatAndNotification/MinimisedModalHeader.tsx @@ -13,14 +13,13 @@ import { } from '../../context'; import type { PushSubTabs, PushTabs } from '../../types'; import { PUSH_SUB_TABS, PUSH_TABS } from '../../types'; -import { useResolveWeb3Name } from '../../hooks'; import { pCAIP10ToWallet, shortenText } from '../../helpers'; -import { ethers } from 'ethers'; import { PushSubTabTitle } from '../../config'; import { Tooltip } from '../reusables'; import type { ChatAndNotificationMainContextType } from '../../context/chatAndNotification/chatAndNotificationMainContext'; import type { ChatMainStateContextType } from '../../context/chatAndNotification/chat/chatMainStateContext'; import { ChatSnap } from './modal/sidebar/chatSidebar/ChatSnap'; +import { useDomianName } from '../../hooks'; type MinimisedModalHeaderPropType = { onMaximizeMinimizeToggle: () => void; @@ -52,39 +51,22 @@ export const UnreadChats = ({ export const MessageBoxHeader = () => { const { activeTab, setActiveTab, setActiveSubTab, activeSubTab } = - useContext( - ChatAndNotificationMainContext - ); - const { - selectedChatId, - chatsFeed, - requestsFeed, - web3NameList, - searchedChats, - setSearchedChats, - setSelectedChatId, - } = useContext(ChatMainStateContext); + useContext(ChatAndNotificationMainContext); + const { selectedChatId, chatsFeed, requestsFeed, searchedChats, setSearchedChats, setSelectedChatId } = + useContext(ChatMainStateContext); const { env } = useContext(ChatAndNotificationPropsContext); const { spamNotifsFeed } = useContext(NotificationMainStateContext); const selectedChat = chatsFeed[selectedChatId as string] || requestsFeed[selectedChatId as string] || - (Object.keys(searchedChats || {}).length - ? searchedChats![selectedChatId as string] - : null); - useResolveWeb3Name(selectedChat?.did, env); - const walletLowercase = pCAIP10ToWallet(selectedChat?.did)?.toLowerCase(); - const checksumWallet = walletLowercase - ? ethers.utils.getAddress(walletLowercase) - : null; - const web3Name = checksumWallet ? web3NameList[checksumWallet.toLowerCase()] : null; + (Object.keys(searchedChats || {}).length ? searchedChats![selectedChatId as string] : null); + const web3Name = useDomianName(selectedChat?.did, env); + const handleBack = () => { if ( activeSubTab && - ((activeSubTab === PUSH_SUB_TABS.REQUESTS && - Object.keys(requestsFeed || {}).length) || - (activeSubTab === PUSH_SUB_TABS.SPAM && - Object.keys(spamNotifsFeed || {}).length)) + ((activeSubTab === PUSH_SUB_TABS.REQUESTS && Object.keys(requestsFeed || {}).length) || + (activeSubTab === PUSH_SUB_TABS.SPAM && Object.keys(spamNotifsFeed || {}).length)) ) { setActiveSubTab(PUSH_SUB_TABS[activeSubTab as PushSubTabs]); } else { @@ -96,8 +78,11 @@ export const MessageBoxHeader = () => { setSearchedChats(null); } }; + return selectedChat ? ( -
{ content={pCAIP10ToWallet(selectedChat?.did)} direction="bottom-right" > - + {' '} {selectedChat?.name ? shortenText(selectedChat?.name, 30) @@ -134,16 +123,14 @@ export const MessageBoxHeader = () => { export const SubTabHeader = () => { const { activeTab, setActiveTab, activeSubTab } = - useContext( - ChatAndNotificationMainContext - ); - const { setSearchedChats, setSelectedChatId } = - useContext(ChatMainStateContext); - const { setSearchedNotifications } = useContext( - NotificationMainStateContext - ); + useContext(ChatAndNotificationMainContext); + const { setSearchedChats, setSelectedChatId } = useContext(ChatMainStateContext); + const { setSearchedNotifications } = useContext(NotificationMainStateContext); return ( -
+
{
- + {PushSubTabTitle[activeSubTab as PushSubTabs].title}
@@ -174,26 +164,16 @@ export const MinimisedModalHeader: React.FC = ({ modalOpen, }) => { const { newChat, setNewChat, setActiveTab, activeSubTab } = - useContext( - ChatAndNotificationMainContext - ); + useContext(ChatAndNotificationMainContext); - const { - selectedChatId, - chatsFeed, - requestsFeed, - setSearchedChats, - setSelectedChatId, - searchedChats, - } = useContext(ChatMainStateContext); + const { selectedChatId, chatsFeed, requestsFeed, setSearchedChats, setSelectedChatId, searchedChats } = + useContext(ChatMainStateContext); const SnapMessageHeader = () => { const selectedChat = - chatsFeed[selectedChatId as string] || - requestsFeed[selectedChatId as string] || - (Object.keys(searchedChats || {}).length - ? searchedChats![selectedChatId as string] - : null); + chatsFeed[selectedChatId as string] || + requestsFeed[selectedChatId as string] || + (Object.keys(searchedChats || {}).length ? searchedChats![selectedChatId as string] : null); return ( = ({ ); }; - const condition = - (selectedChatId && modalOpen) || - (!selectedChatId && modalOpen && activeSubTab); - const snapCondition = - (selectedChatId && !modalOpen); + const condition = (selectedChatId && modalOpen) || (!selectedChatId && modalOpen && activeSubTab); + const snapCondition = selectedChatId && !modalOpen; return ( = ({ padding={`${snapCondition ? '12px' : '0'} 0 `} borderWidth={`0 0 ${condition ? '1px' : '0'} 0 `} borderStyle={`none none ${condition ? 'dashed' : 'none'} none `} - borderColor={`transparent transparent ${condition ? '#ededee' : 'transparent' - } transparent`} + borderColor={`transparent transparent ${condition ? '#ededee' : 'transparent'} transparent`} > {selectedChatId && !!( @@ -229,13 +205,12 @@ export const MinimisedModalHeader: React.FC = ({ {selectedChatId && !modalOpen && } {!selectedChatId && modalOpen && activeSubTab && } - {((!selectedChatId && modalOpen && !activeSubTab) || - (!modalOpen && !selectedChatId)) && ( + {((!selectedChatId && modalOpen && !activeSubTab) || (!modalOpen && !selectedChatId)) && (
{ setActiveTab(PUSH_TABS.CHATS); @@ -251,8 +226,7 @@ export const MinimisedModalHeader: React.FC = ({
)}
- {((!selectedChatId && modalOpen && !activeSubTab && !newChat) || - (!modalOpen && !selectedChatId)) && ( + {((!selectedChatId && modalOpen && !activeSubTab && !newChat) || (!modalOpen && !selectedChatId)) && (
= ({ cursor="pointer" // alignSelf={selectedChatId && !modalOpen ? 'center' : 'baseline'} margin="0 0 10px 0" - alignSelf='center' + alignSelf="center" onClick={onMaximizeMinimizeToggle} > {modalOpen ? : } @@ -286,5 +260,3 @@ export const MinimisedModalHeader: React.FC = ({ const Container = styled(Section)` box-sizing: border-box; `; - - diff --git a/packages/uiweb/src/lib/components/chatAndNotification/modal/sidebar/chatSidebar/ChatSnap.tsx b/packages/uiweb/src/lib/components/chatAndNotification/modal/sidebar/chatSidebar/ChatSnap.tsx index a5b285906..9b7a115bd 100644 --- a/packages/uiweb/src/lib/components/chatAndNotification/modal/sidebar/chatSidebar/ChatSnap.tsx +++ b/packages/uiweb/src/lib/components/chatAndNotification/modal/sidebar/chatSidebar/ChatSnap.tsx @@ -1,24 +1,13 @@ import type { IFeeds } from '@pushprotocol/restapi'; -import { - ChatMainStateContext, - ChatAndNotificationPropsContext, -} from '../../../../../context'; -import { - checkIfUnread, - dateToFromNowDaily, - setData, - shortenText, -} from '../../../../../helpers'; +import { ChatMainStateContext, ChatAndNotificationPropsContext } from '../../../../../context'; +import { checkIfUnread, dateToFromNowDaily, setData, shortenText } from '../../../../../helpers'; import React, { useContext } from 'react'; import styled, { css } from 'styled-components'; import { Section, Span, Image } from '../../../../reusables/sharedStyling'; import { UnreadChats } from '../../../MinimisedModalHeader'; -import { pCAIP10ToWallet } from '../../../../../helpers'; -import { ethers } from 'ethers'; -import { useResolveWeb3Name } from '../../../../../hooks'; import { device } from '../../../../../config'; import type { ChatMainStateContextType } from '../../../../../context/chatAndNotification/chat/chatMainStateContext'; -import { useDeviceWidthCheck } from '../../../../../hooks'; +import { useDeviceWidthCheck, useDomianName } from '../../../../../hooks'; type ChatSnapPropType = { chat: IFeeds; @@ -27,13 +16,7 @@ type ChatSnapPropType = { }; //fix messageType type -const Message = ({ - messageContent, - messageType, -}: { - messageContent: string; - messageType: string; -}) => { +const Message = ({ messageContent, messageType }: { messageContent: string; messageType: string }) => { const isMobile = useDeviceWidthCheck(425); const digitsToDisplay = isMobile ? 27 : 48; return messageType === 'Text' ? ( @@ -54,7 +37,11 @@ const Message = ({ color="#62626A" cursor="pointer" > - Image + {' '} + Image ) : messageType === 'File' ? ( - File + {' '} + File ) : messageType === 'GIF' || messageType === 'MediaEmbed' ? ( - Media + {' '} + Media ) : null; }; -export const ChatSnap: React.FC = ({ - chat, - id, - modalOpen, -}) => { - const { setSelectedChatId, web3NameList } = - useContext(ChatMainStateContext); +export const ChatSnap: React.FC = ({ chat, id, modalOpen }) => { + const { setSelectedChatId } = useContext(ChatMainStateContext); const { env } = useContext(ChatAndNotificationPropsContext); - + const web3Name = useDomianName(chat?.did, env); const isMobile = useDeviceWidthCheck(425); const digitsToDisplay = chat?.name ? (isMobile ? 15 : 30) : isMobile ? 6 : 8; - useResolveWeb3Name(chat?.did, env); - //shift to helper - const walletLowercase = pCAIP10ToWallet(chat?.did)?.toLowerCase(); - const checksumWallet = walletLowercase - ? ethers.utils.getAddress(walletLowercase) - : null; - const web3Name = checksumWallet - ? web3NameList[checksumWallet.toLowerCase()] - : null; const handleOnClick = () => { setSelectedChatId(id); setData({ chatId: id, value: chat }); }; const open = modalOpen === undefined ? true : modalOpen; + return ( = ({ borderRadius="100%" cursor="pointer" /> -
+
- + {chat?.name ? shortenText(chat?.name, digitsToDisplay, false) - : web3Name ?? - shortenText(chat?.did?.split(':')[1], digitsToDisplay, true)} + : web3Name ?? shortenText(chat?.did?.split(':')[1], digitsToDisplay, true)} - {open && - {chat?.msg?.timestamp - ? dateToFromNowDaily(chat?.msg?.timestamp as number) - : ''} - } + {open && ( + + {chat?.msg?.timestamp ? dateToFromNowDaily(chat?.msg?.timestamp as number) : ''} + + )}
- -
- +
+ - {open && checkIfUnread(id, chat) && ( - - )} -
- + {open && checkIfUnread(id, chat) && ( + + )} +
); diff --git a/packages/uiweb/src/lib/components/notification/index.tsx b/packages/uiweb/src/lib/components/notification/index.tsx index 02a010ef0..a8751c65e 100644 --- a/packages/uiweb/src/lib/components/notification/index.tsx +++ b/packages/uiweb/src/lib/components/notification/index.tsx @@ -3,19 +3,19 @@ import * as React from 'react'; import styled, { css } from 'styled-components'; import { MediaHelper, convertTimeStamp, extractTimeStamp } from '../../utilities'; -import IPFSIcon from '../ipfsicon'; import Loader from '../loader/loader'; import ImageOverlayComponent from '../overlay'; import { ParseMarkdownText } from '../parsetext'; import chainDetails from './chainDetails'; import { DecryptButton, useDecrypt } from './decrypt'; -import ActionButton from './styled/ActionButton'; import { useDivOffsetWidth } from '../../hooks'; import { LinkIcon } from '../../icons/Link'; import type { INotificationItemTheme } from './theme'; import { getCustomTheme } from './theme'; +import { Button } from '../reusables'; +import { CloseIcon } from '../../icons/Close'; export { baseTheme as notificationBaseTheme, darkTheme as notificationDarkTheme, @@ -54,10 +54,12 @@ export type NotificationItemProps = { notificationBody: string | undefined; cta: string | undefined; app: string | undefined; + isToast?: boolean; icon: string | undefined; image: string | undefined; url: string | undefined; isSpam?: boolean; + onClose?: () => void; subscribeFn?: () => Promise; isSubscribedFn?: () => Promise; theme?: string | undefined; @@ -79,6 +81,10 @@ type OffsetWidthType = { offsetWidth: number; }; +type FontSizeType = { + fontSize: string; +}; + type CustomThemeProps = { themeObject: INotificationItemTheme; }; @@ -100,6 +106,7 @@ export const NotificationItem: React.FC = ({ app, icon, image, + isToast = false, url, isSpam, //for rendering the spam conterpart of the notification component isSubscribedFn, //A function for getting if a user is subscribed to the channel in question @@ -109,6 +116,7 @@ export const NotificationItem: React.FC = ({ customTheme, isSecret, decryptFn, + onClose, }) => { const { notificationBody: parsedBody, timeStamp } = extractTimeStamp(notificationBody || ''); const themeObject = getCustomTheme(theme, customTheme!); @@ -118,7 +126,7 @@ export const NotificationItem: React.FC = ({ isSecret ); - const isCtaURLValid = MediaHelper.validURL(notifCta); + const isCtaURLValid = MediaHelper.validURL(notifCta) && !isToast; const isChannelURLValid = MediaHelper.validURL(url); // store the image to be displayed in this state variable @@ -127,12 +135,6 @@ export const NotificationItem: React.FC = ({ const [isSubscribed, setIsSubscribed] = React.useState(true); //use this to confirm if this is s const [divRef, offsetWidth] = useDivOffsetWidth(); - const showMetaInfo = isSecret || timeStamp; - // console.log({ - // chainName, - // rightIcon, - // ai: ChainImages['CHAIN_ICONS'] - // }) const gotToCTA = (e: React.SyntheticEvent) => { e.stopPropagation(); if (!isCtaURLValid) return; @@ -192,9 +194,9 @@ export const NotificationItem: React.FC = ({ timestamp={timeStamp} offsetWidth={offsetWidth} ref={divRef} + cta={isCtaURLValid} themeObject={themeObject!} > - {/* header that only pops up on small devices */} = ({ alt="" /> - {app} + + {app} + + + {timeStamp ? {convertTimeStamp(timeStamp)} : null} - {chainName && chainDetails[chainName] ? ( - - {chainDetails[chainName].icon} - - ) : null} + + {chainName && chainDetails[chainName] ? ( + + {chainDetails[chainName].icon} + + ) : null} + {isToast && onClose && ( + + + + )} + - {/* header that only pops up on small devices */} {/* content of the component */} {/* section for media content */} {notifImage && @@ -231,6 +246,7 @@ export const NotificationItem: React.FC = ({ (!MediaHelper.isMediaSupportedVideo(notifImage) ? ( setImageOverlay(notifImage || '')} @@ -242,7 +258,10 @@ export const NotificationItem: React.FC = ({ ) : // if its a youtube url, RENDER THIS MediaHelper.isMediaYoutube(notifImage) ? ( - + - - ) : ( - // if its aN MP4 url, RENDER THIS - - - - ))} + + + ) : ( + // if its aN MP4 url, RENDER THIS + + + + ))} {/* section for media content */} {/* section for text content */} @@ -467,6 +467,7 @@ const ChainIconSVG = styled.div` const MobileImage = styled.div` overflow: hidden; + flex-shrink: 0; width: ${(props) => props?.size}; height: ${(props) => props?.size}; img, diff --git a/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx b/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx index 78f0ae73d..967de57f0 100644 --- a/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx +++ b/packages/uiweb/src/lib/dataProviders/ChatDataProvider.tsx @@ -10,8 +10,8 @@ import { pCAIP10ToWallet } from '../helpers'; import usePushUserInfoUtilities from '../hooks/chat/useUserInfoUtilities'; -import usePushUser from '../hooks/usePushUser'; import useToast from '../components/chat/reusables/NewToast'; // Re-write this later +import usePushUser from '../hooks/usePushUser'; // Internal Configs import { lightChatTheme } from '../components/chat/theme'; diff --git a/packages/uiweb/src/lib/helpers/utils.ts b/packages/uiweb/src/lib/helpers/utils.ts index f865e5567..4d13e1063 100644 --- a/packages/uiweb/src/lib/helpers/utils.ts +++ b/packages/uiweb/src/lib/helpers/utils.ts @@ -35,6 +35,34 @@ export const deriveChatId = async (chatId: string, user: PushAPI | undefined): P return chatId; }; +// Main Logic +// Deep Copy Helper Function +export function deepCopy(obj: T): T { + if (obj === null || typeof obj !== 'object') { + return obj; + } + + if (obj instanceof Date) { + return new Date(obj.getTime()) as any; + } + + if (obj instanceof Array) { + return obj.reduce((arr, item, i) => { + arr[i] = deepCopy(item); + return arr; + }, [] as any[]) as any; + } + + if (obj instanceof Object) { + return Object.keys(obj).reduce((newObj, key) => { + newObj[key as keyof T] = deepCopy((obj as any)[key]); + return newObj; + }, {} as T); + } + + throw new Error(`Unable to copy obj! Its type isn't supported.`); +} + export const isMessageEncrypted = (message: string) => { if (!message) return false; diff --git a/packages/uiweb/src/lib/hooks/chat/usePushSendMessage.ts b/packages/uiweb/src/lib/hooks/chat/usePushSendMessage.ts index 76d57742a..7600d1185 100644 --- a/packages/uiweb/src/lib/hooks/chat/usePushSendMessage.ts +++ b/packages/uiweb/src/lib/hooks/chat/usePushSendMessage.ts @@ -1,14 +1,15 @@ import * as PushAPI from '@pushprotocol/restapi'; import { useCallback, useContext, useState } from 'react'; -import useVerifyAccessControl from './useVerifyAccessControl'; import { useChatData } from '..'; import { ENV } from '../../config'; import { setAccessControl } from '../../helpers'; +import useVerifyAccessControl from './useVerifyAccessControl'; interface SendMessageParams { message: string; chatId: string; - messageType?: 'Text' | 'Image' | 'File' | 'GIF' | 'MediaEmbed'; + messageType?: 'Text' | 'Image' | 'File' | 'GIF' | 'MediaEmbed' | 'Reply'; + replyRef?: string; } const usePushSendMessage = () => { @@ -19,13 +20,26 @@ const usePushSendMessage = () => { const sendMessage = useCallback( async (options: SendMessageParams) => { - const { chatId, message, messageType } = options || {}; + const { chatId, message, messageType, replyRef } = options || {}; setLoading(true); - try { - const response = await user?.chat.send(chatId, { + + const messagePayload: any = { + type: messageType, + content: message, + }; + + if (replyRef !== undefined) { + messagePayload.type = 'Reply'; + messagePayload.content = { type: messageType, content: message, - }); + }; + messagePayload.reference = replyRef; + } + console.log(messagePayload); + + try { + const response = await user?.chat.send(chatId, messagePayload); setLoading(false); if (!response) { return false; diff --git a/packages/uiweb/src/lib/icons/PushIcons.tsx b/packages/uiweb/src/lib/icons/PushIcons.tsx index a9ffea5e4..c9c8e9743 100644 --- a/packages/uiweb/src/lib/icons/PushIcons.tsx +++ b/packages/uiweb/src/lib/icons/PushIcons.tsx @@ -6,19 +6,43 @@ enum ICON_COLOR { // HELPERS interface IconProps { - size: number | { width?: number; height?: number }; + size: number | { width?: number; height?: number } | string | undefined | null; color?: string | ICON_COLOR; } -const returnWSize = (size: number | { width?: number; height?: number }) => { +const returnWSize = (size: number | { width?: number; height?: number } | string | undefined | null) => { + if (typeof size === 'string') { + size = parseInt(size); + } + + if (typeof size === 'undefined' || size === null) { + return '100%'; + } + return typeof size === 'number' ? size.toString() : size.width ? size.width.toString() : '100%'; }; -const returnHSize = (size: number | { width?: number; height?: number }) => { +const returnHSize = (size: number | { width?: number; height?: number } | string | undefined | null) => { + if (typeof size === 'string') { + size = parseInt(size); + } + + if (typeof size === 'undefined' || size === null) { + return '100%'; + } + return typeof size === 'number' ? size.toString() : size.height ? size.height.toString() : '100%'; }; -const returnViewBox = (size: number | { width?: number; height?: number }, ratio = 1) => { +const returnViewBox = (size: number | { width?: number; height?: number } | string | undefined | null, ratio = 1) => { + if (typeof size === 'string') { + size = parseInt(size); + } + + if (typeof size === 'undefined' || size === null) { + size = 20; // default viewport size + } + if (typeof size === 'number') { return `0 0 ${size * ratio} ${size * ratio}`; } else if (size.width && size.height) { @@ -226,24 +250,25 @@ export const EmojiCircleIcon: React.FC = ({ size, color }) => { export const ReplyIcon: React.FC = ({ size, color }) => { return ( - - - + + ); diff --git a/packages/uiweb/yarn.lock b/packages/uiweb/yarn.lock index 21fa7077f..a568a6c25 100644 --- a/packages/uiweb/yarn.lock +++ b/packages/uiweb/yarn.lock @@ -1257,7 +1257,7 @@ __metadata: "@livepeer/react": "npm:^2.6.0" "@pushprotocol/socket": "npm:^0.5.0" "@unstoppabledomains/resolution": "npm:^8.5.0" - "@web3-name-sdk/core": "npm:^0.1.15" + "@web3-name-sdk/core": "npm:^0.2.0" "@web3-onboard/coinbase": "npm:^2.2.5" "@web3-onboard/core": "npm:^2.21.1" "@web3-onboard/injected-wallets": "npm:^2.10.5" @@ -2812,20 +2812,20 @@ __metadata: languageName: node linkType: hard -"@web3-name-sdk/core@npm:^0.1.15": - version: 0.1.18 - resolution: "@web3-name-sdk/core@npm:0.1.18" +"@web3-name-sdk/core@npm:^0.2.0": + version: 0.2.0 + resolution: "@web3-name-sdk/core@npm:0.2.0" dependencies: "@adraffy/ens-normalize": "npm:^1.10.0" "@ensdomains/ens-validation": "npm:^0.1.0" - viem: "npm:^1.20" peerDependencies: - "@bonfida/spl-name-service": ^1.4.0 + "@bonfida/spl-name-service": ^2.5.1 "@sei-js/core": ^3.1.0 "@siddomains/injective-sidjs": 0.0.2-beta "@siddomains/sei-sidjs": ^0.0.4 "@solana/web3.js": ^1.75.0 - checksum: 10c0/2f2c4611ba1868fbd683ec2249d2581d31aafaa24bdc187a1fd437cf08ffb13dcfda637b6b322afa12d6aea799c5a1fccbd03aacb808218fe315938be4005fd6 + viem: ^2.15.1 + checksum: 10c0/c7503dc312f23d3411def0dd76a4d02bc38ba1867c36ca28461336548fc78abdfac6607f960bbe1aee9199fe1b4aa1480c27b7f9403ec25377fc6bd3b0a47c82 languageName: node linkType: hard @@ -2939,21 +2939,6 @@ __metadata: languageName: node linkType: hard -"abitype@npm:0.9.8": - version: 0.9.8 - resolution: "abitype@npm:0.9.8" - peerDependencies: - typescript: ">=5.0.4" - zod: ^3 >=3.19.1 - peerDependenciesMeta: - typescript: - optional: true - zod: - optional: true - checksum: 10c0/ec559461d901d456820faf307e21b2c129583d44f4c68257ed9d0d44eae461114a7049046e715e069bc6fa70c410f644e06bdd2c798ac30d0ada794cd2a6c51e - languageName: node - linkType: hard - "abitype@npm:1.0.0": version: 1.0.0 resolution: "abitype@npm:1.0.0" @@ -4660,12 +4645,13 @@ __metadata: languageName: node linkType: hard -"isows@npm:1.0.3": - version: 1.0.3 - resolution: "isows@npm:1.0.3" - peerDependencies: - ws: "*" - checksum: 10c0/adec15db704bb66615dd8ef33f889d41ae2a70866b21fa629855da98cc82a628ae072ee221fe9779a9a19866cad2a3e72593f2d161a0ce0e168b4484c7df9cd2 +"isomorphic-unfetch@npm:3.1.0": + version: 3.1.0 + resolution: "isomorphic-unfetch@npm:3.1.0" + dependencies: + node-fetch: "npm:^2.6.1" + unfetch: "npm:^4.2.0" + checksum: 10c0/d3b61fca06304db692b7f76bdfd3a00f410e42cfa7403c3b250546bf71589d18cf2f355922f57198e4cc4a9872d3647b20397a5c3edf1a347c90d57c83cf2a89 languageName: node linkType: hard @@ -7028,27 +7014,6 @@ __metadata: languageName: node linkType: hard -"viem@npm:^1.20": - version: 1.21.4 - resolution: "viem@npm:1.21.4" - dependencies: - "@adraffy/ens-normalize": "npm:1.10.0" - "@noble/curves": "npm:1.2.0" - "@noble/hashes": "npm:1.3.2" - "@scure/bip32": "npm:1.3.2" - "@scure/bip39": "npm:1.2.1" - abitype: "npm:0.9.8" - isows: "npm:1.0.3" - ws: "npm:8.13.0" - peerDependencies: - typescript: ">=5.0.4" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/8b29c790181e44c4c95b9ffed1a8c1b6c2396eb949b95697cc390ca8c49d88ef9e2cd56bd4800b90a9bbc93681ae8d63045fc6fa06e00d84f532bef77967e751 - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1" From 52ecf452a2284181cb366e0b970f403cbbc19680 Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Wed, 9 Oct 2024 13:58:46 +0530 Subject: [PATCH 3/3] uiweb lock file updated --- packages/uiweb/yarn.lock | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/uiweb/yarn.lock b/packages/uiweb/yarn.lock index a568a6c25..044dd7da2 100644 --- a/packages/uiweb/yarn.lock +++ b/packages/uiweb/yarn.lock @@ -4645,16 +4645,6 @@ __metadata: languageName: node linkType: hard -"isomorphic-unfetch@npm:3.1.0": - version: 3.1.0 - resolution: "isomorphic-unfetch@npm:3.1.0" - dependencies: - node-fetch: "npm:^2.6.1" - unfetch: "npm:^4.2.0" - checksum: 10c0/d3b61fca06304db692b7f76bdfd3a00f410e42cfa7403c3b250546bf71589d18cf2f355922f57198e4cc4a9872d3647b20397a5c3edf1a347c90d57c83cf2a89 - languageName: node - linkType: hard - "isows@npm:1.0.4": version: 1.0.4 resolution: "isows@npm:1.0.4"