From 7a96230360f8fcb0822908ba172e363feb821880 Mon Sep 17 00:00:00 2001 From: bang9 Date: Fri, 8 Mar 2024 16:11:07 +0900 Subject: [PATCH 1/4] chore: release 1.3.1 --- CHANGELOG.md | 15 ++++++++++++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d66be7929..ab987aa1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,20 @@ -## [v1.2.3] (Mar 4 2024) +## [v1.3.1] (Mar 8 2024) +#### Fix: +- Hide unused button icons +- Removed inherited margin and background-color from global CSS in the form +- Fixed a scroll issue in safari browser +- Added z-index to mobile container + +## [Internal] [v1.3.0] + +## [v1.2.5] (Mar 5 2024) #### Chore: - Internal change +## [Deprecated] [v1.2.4] + +## [Deprecated] [v1.2.3] + ## [v1.2.2] (Mar 4 2024) #### Feat: - Reduced initial loading time: diff --git a/package-lock.json b/package-lock.json index da084648b..207f41d36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sendbird/chat-ai-widget", - "version": "1.2.5", + "version": "1.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@sendbird/chat-ai-widget", - "version": "1.2.5", + "version": "1.3.1", "dependencies": { "@sendbird/chat": "^4.10.1", "@sendbird/uikit-react": "^3.13.1", diff --git a/package.json b/package.json index e3c1673fe..f5c538331 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sendbird/chat-ai-widget", - "version": "1.2.5", + "version": "1.3.1", "description": "Sendbird Chat AI Widget,\n Detailed documentation can be found at https://github.com/sendbird/chat-ai-widget#readme", "main": "./dist/index.umd.js", "module": "./dist/index.es.js", From 09db86b8f5d48fef028f8e5c9861fbbc0a31d12a Mon Sep 17 00:00:00 2001 From: bang9 Date: Fri, 8 Mar 2024 17:01:18 +0900 Subject: [PATCH 2/4] fix: apply uikit changes --- src/components/CustomChannelComponent.tsx | 59 +++++++++-------------- src/utils/index.ts | 4 +- src/utils/messages.ts | 2 +- 3 files changed, 26 insertions(+), 39 deletions(-) diff --git a/src/components/CustomChannelComponent.tsx b/src/components/CustomChannelComponent.tsx index cbecab904..252601de6 100644 --- a/src/components/CustomChannelComponent.tsx +++ b/src/components/CustomChannelComponent.tsx @@ -1,18 +1,15 @@ import { User } from '@sendbird/chat'; -import { - GroupChannel, - type SendbirdGroupChat, -} from '@sendbird/chat/groupChannel'; +import { GroupChannel } from '@sendbird/chat/groupChannel'; +import { SendableMessage } from '@sendbird/chat/lib/__definition'; import { SendingStatus } from '@sendbird/chat/message'; import { default as ChannelHeader } from '@sendbird/uikit-react/GroupChannel/components/GroupChannelHeader'; import ChannelUI from '@sendbird/uikit-react/GroupChannel/components/GroupChannelUI'; // import SuggestedReplies from '@sendbird/uikit-react/Channel/components/SuggestedReplies'; import { useGroupChannelContext } from '@sendbird/uikit-react/GroupChannel/context'; +import { Message } from '@sendbird/uikit-react/GroupChannel/components/Message'; import { default as useSendbirdStateContext } from '@sendbird/uikit-react/useSendbirdStateContext'; -import { useEffect, useState, useMemo, useRef } from 'react'; +import { useEffect, useMemo, useRef, useState } from 'react'; import ReactDOM from 'react-dom'; -// eslint-disable-next-line import/no-unresolved -import { ClientUserMessage, EveryMessage } from 'SendbirdUIKitGlobal'; import styled from 'styled-components'; import ChatBottom from './ChatBottom'; @@ -21,16 +18,12 @@ import CustomMessage from './CustomMessage'; import DynamicRepliesPanel from './DynamicRepliesPanel'; import { useConstantState } from '../context/ConstantContext'; import { useScrollOnStreaming } from '../hooks/useScrollOnStreaming'; -import { isSpecialMessage, scrollUtil, hideChatBottomBanner } from '../utils'; -import { - groupMessagesByShortSpanTime, - getBotWelcomeMessages, - isLastMessageInStreaming, -} from '../utils/messages'; +import { hideChatBottomBanner, isSpecialMessage, scrollUtil } from '../utils'; +import { getBotWelcomeMessages, groupMessagesByShortSpanTime, isLastMessageInStreaming } from '../utils/messages'; interface RootStyleProps { height: string; - isInputActive: boolean; + isInputActive?: boolean; } const Root = styled.div` & form { @@ -121,36 +114,30 @@ export function CustomChannelComponent(props: CustomChannelComponentProps) { const { messages: allMessages, currentChannel: channel } = useGroupChannelContext(); const lastMessageRef = useRef(null); - const lastMessage: ClientUserMessage = allMessages?.[ - allMessages?.length - 1 - ] as ClientUserMessage; + const lastMessage = allMessages?.[allMessages?.length - 1] as + | SendableMessage + | undefined; const isLastBotMessage = !(lastMessage?.messageType === 'admin') && - (lastMessage as ClientUserMessage)?.sender?.userId === botId; + lastMessage?.sender?.userId === botId; const [activeSpinnerId, setActiveSpinnerId] = useState(-1); const messageCount = allMessages?.length ?? 0; - const dynamicReplyOptions = - lastMessage?.extendedMessagePayload != null && - 'suggested_replies' in lastMessage.extendedMessagePayload && - lastMessage.extendedMessagePayload.suggested_replies != null - ? lastMessage.extendedMessagePayload.suggested_replies - : []; + const dynamicReplyOptions = (lastMessage?.extendedMessagePayload?.suggested_replies ?? []) as string[]; const isMessageInStreaming = useMemo(() => { - const result = isLastMessageInStreaming(lastMessage); - return result; + return isLastMessageInStreaming(lastMessage); }, [lastMessage?.data]); const isStaticReplyVisible = allMessages && messageCount > 1 && !(lastMessage?.messageType === 'admin') && - lastMessage.sender?.userId === botId && + lastMessage?.sender?.userId === botId && !isMessageInStreaming && !isSpecialMessage( - lastMessage.message, + lastMessage.isUserMessage() ? lastMessage.message : '', suggestedMessageContent.messageFilterList ); @@ -208,16 +195,16 @@ export function CustomChannelComponent(props: CustomChannelComponentProps) { ); }} - renderMessage={({ message }: { message: EveryMessage }) => { + renderMessage={({ message, ...props }) => { const grouppedMessage = grouppedMessages.find( (m) => m.messageId == message.messageId ); - - const isBotWelcomeMessage = !!botWelcomeMessages.find( - (welcomeMessage) => welcomeMessage.messageId === message.messageId + const isBotWelcomeMessage = botWelcomeMessages.some( + (m) => m.messageId === message.messageId ); + return ( - <> + - {message.messageId === lastMessage.messageId && + {message.messageId === lastMessage?.messageId && dynamicReplyOptions.length > 0 && ( // sendMessage(message)} // /> )} - + ); }} renderTypingIndicator={() => <>} @@ -249,7 +236,7 @@ export function CustomChannelComponent(props: CustomChannelComponentProps) { function Banner() { const store = useSendbirdStateContext(); - const sdk = store.stores.sdkStore.sdk as SendbirdGroupChat; + const sdk = store.stores.sdkStore.sdk; if (hideChatBottomBanner(sdk)) { return null; diff --git a/src/utils/index.ts b/src/utils/index.ts index 534065007..0453f7c0c 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,4 +1,4 @@ -import { type SendbirdGroupChat } from '@sendbird/chat/groupChannel'; +import type SendbirdChat from '@sendbird/chat'; import { LOCAL_MESSAGE_CUSTOM_TYPE } from '../const'; @@ -209,7 +209,7 @@ export function noop() {} export const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); -export function hideChatBottomBanner(sdk: SendbirdGroupChat): boolean { +export function hideChatBottomBanner(sdk: SendbirdChat): boolean { const REMOVE_POWERED_BY = 'remove_powered_by'; const applicationAttributes = sdk?.appInfo?.applicationAttributes; diff --git a/src/utils/messages.ts b/src/utils/messages.ts index c1da39d0f..f8d11f11a 100644 --- a/src/utils/messages.ts +++ b/src/utils/messages.ts @@ -56,7 +56,7 @@ export function groupMessagesByShortSpanTime( export function getBotWelcomeMessages( messages: EveryMessage[], - botUserId: string + botUserId: string | null ) { // if the list is empty or the first message is not from bot, // we just assume there's no welcome messages From 00881ac9499c1671575d101790c7417d352ad7bb Mon Sep 17 00:00:00 2001 From: bang9 Date: Fri, 8 Mar 2024 17:24:43 +0900 Subject: [PATCH 3/4] chore: update --- src/components/CustomChannelComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CustomChannelComponent.tsx b/src/components/CustomChannelComponent.tsx index 252601de6..26b88e729 100644 --- a/src/components/CustomChannelComponent.tsx +++ b/src/components/CustomChannelComponent.tsx @@ -137,7 +137,7 @@ export function CustomChannelComponent(props: CustomChannelComponentProps) { lastMessage?.sender?.userId === botId && !isMessageInStreaming && !isSpecialMessage( - lastMessage.isUserMessage() ? lastMessage.message : '', + lastMessage.message, suggestedMessageContent.messageFilterList ); From f8f6efe5016ed68071ab28143d0026cc3a45a06b Mon Sep 17 00:00:00 2001 From: bang9 Date: Fri, 8 Mar 2024 17:29:27 +0900 Subject: [PATCH 4/4] chore: update versions --- packages/self-service/package-lock.json | 111 ++++++++++++++++-------- packages/self-service/package.json | 2 +- packages/url-webdemo/package-lock.json | 111 ++++++++++++++++-------- packages/url-webdemo/package.json | 2 +- 4 files changed, 150 insertions(+), 76 deletions(-) diff --git a/packages/self-service/package-lock.json b/packages/self-service/package-lock.json index 430514917..8b4543def 100644 --- a/packages/self-service/package-lock.json +++ b/packages/self-service/package-lock.json @@ -8,7 +8,7 @@ "name": "self-service", "version": "0.0.0", "dependencies": { - "@sendbird/chat-ai-widget": "^1.2.5", + "@sendbird/chat-ai-widget": "^1.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -2416,9 +2416,9 @@ } }, "node_modules/@sendbird/chat": { - "version": "4.10.10", - "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.10.10.tgz", - "integrity": "sha512-SxJW0fHZ0sSYdOEfVACQ3cl+8+pepPpO4m2WLmYDYxfdcjOFYGskfHMZAtXyc45zbI/FYF3oLsMWYybmnH4bjw==", + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.11.2.tgz", + "integrity": "sha512-ea9GZ+vZdbHpsrCnexQh1fKxw52GfwH/D7NYAgt7mzSzoiL2KIViYL7FpwLifFHDtdMprdgoIZBUzOTwtf21rQ==", "peerDependencies": { "@react-native-async-storage/async-storage": "^1.17.6" }, @@ -2429,12 +2429,12 @@ } }, "node_modules/@sendbird/chat-ai-widget": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.2.5.tgz", - "integrity": "sha512-ilst69mAd1+jKbKcFcpEAtDJDqH0Fjy5IJC+whD2HI9gVmJcjiTClfDGalsdc1zNonY6ujAdCvBf1VQDrgIiWQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.3.1.tgz", + "integrity": "sha512-f5ib6Pj/QziQdr0SxatLY7Bxitecoc9OKDqb03VxB/LxKwAzv9bRcBJoH54dduRVhuEPGI1eYtGwr1E50KR7Sw==", "dependencies": { "@sendbird/chat": "^4.10.1", - "@sendbird/uikit-react": "^3.12.0", + "@sendbird/uikit-react": "^3.13.1", "@tanstack/react-query": "^5.17.19", "dompurify": "^3.0.4", "polished": "^2.3.1", @@ -2447,13 +2447,35 @@ "react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0" } }, + "node_modules/@sendbird/react-uikit-message-template-view": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/react-uikit-message-template-view/-/react-uikit-message-template-view-0.0.1-alpha.65.tgz", + "integrity": "sha512-WCGNYPkahAKwP633p0+lDUKqKB8s2aulVqIEc4UDp7DBNfeLor8VY/vsuQKxWDCtbQHiJZdTT2fPQrkZfpLxxg==", + "dependencies": { + "@sendbird/uikit-message-template": "^0.0.1-alpha.65" + }, + "peerDependencies": { + "@sendbird/chat": ">=4.3.0 <5", + "react": ">=16.8.6", + "react-dom": ">=16.8.6" + } + }, + "node_modules/@sendbird/uikit-message-template": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-message-template/-/uikit-message-template-0.0.1-alpha.65.tgz", + "integrity": "sha512-d2vRpEr2dEdO9M82zwW1vG8Dnnvi7NPfh2YPYFy2gHUNyGjTANb8jIKf+blh/qCmcXFGKbdcjrz4FxZNsXRdhA==", + "peerDependencies": { + "react": ">=16.8.6" + } + }, "node_modules/@sendbird/uikit-react": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.12.0.tgz", - "integrity": "sha512-L9W7Uu2U9ptedFKrdrRVqDBvYDxeeRlCj6LqRbSvUB1Dj95Spw1xgQrYvzKipjW0NyQcmp+sbaVJfDmyCchPDA==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.13.1.tgz", + "integrity": "sha512-e8ml2HE8cdCntZUIJW9clfRgTQr/fZkl8FhLxIK6keuIT7UymEg+8vLOjFFVxHNgNbaXuUzEofCg2gircdNwkw==", "dependencies": { - "@sendbird/chat": "^4.10.9", - "@sendbird/uikit-tools": "0.0.1-alpha.62", + "@sendbird/chat": "^4.11.0", + "@sendbird/react-uikit-message-template-view": "0.0.1-alpha.65", + "@sendbird/uikit-tools": "0.0.1-alpha.65", "css-vars-ponyfill": "^2.3.2", "date-fns": "^2.16.1", "dompurify": "^3.0.1" @@ -2464,9 +2486,9 @@ } }, "node_modules/@sendbird/uikit-tools": { - "version": "0.0.1-alpha.62", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.62.tgz", - "integrity": "sha512-/fFHmhlMivXlpvxGg4oEJaQBJdDDSsJn68xxdBu4HL2jrTleCyHo7VAYuEYMOYhGNe4Gk2uolby9qP1lo88BSA==", + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.65.tgz", + "integrity": "sha512-qUIN4pMtEP0F2n18ulmjNKXMhTbO+Q63y+o/77PPp03MpinPcRlMDHNwe9ido4el0fIkHextKta8bE8X7BLD3g==", "peerDependencies": { "@sendbird/chat": ">=4.10.5 <5", "react": ">=16.8.6" @@ -3226,9 +3248,9 @@ } }, "node_modules/css-vars-ponyfill": { - "version": "2.4.8", - "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.8.tgz", - "integrity": "sha512-4/j4AX4htytYHWyHVZ2BFQ+NoCGZEcOH2h4/2mmgE4SkrFg4Xq6tGYR77DtvvUIDsaXuJN+sj41bbgauA0Gfmg==", + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.9.tgz", + "integrity": "sha512-aZyLue5bdiGVNCiCclNjo123D8I7kyoYNUaAvz+H1JalX1ye4Ilz7jNRRH5YbM+dYD6ucejiydGwk7lol/GCXQ==", "dependencies": { "balanced-match": "^1.0.2", "get-css-data": "^2.0.2" @@ -7091,18 +7113,18 @@ } }, "@sendbird/chat": { - "version": "4.10.10", - "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.10.10.tgz", - "integrity": "sha512-SxJW0fHZ0sSYdOEfVACQ3cl+8+pepPpO4m2WLmYDYxfdcjOFYGskfHMZAtXyc45zbI/FYF3oLsMWYybmnH4bjw==", + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.11.2.tgz", + "integrity": "sha512-ea9GZ+vZdbHpsrCnexQh1fKxw52GfwH/D7NYAgt7mzSzoiL2KIViYL7FpwLifFHDtdMprdgoIZBUzOTwtf21rQ==", "requires": {} }, "@sendbird/chat-ai-widget": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.2.5.tgz", - "integrity": "sha512-ilst69mAd1+jKbKcFcpEAtDJDqH0Fjy5IJC+whD2HI9gVmJcjiTClfDGalsdc1zNonY6ujAdCvBf1VQDrgIiWQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.3.1.tgz", + "integrity": "sha512-f5ib6Pj/QziQdr0SxatLY7Bxitecoc9OKDqb03VxB/LxKwAzv9bRcBJoH54dduRVhuEPGI1eYtGwr1E50KR7Sw==", "requires": { "@sendbird/chat": "^4.10.1", - "@sendbird/uikit-react": "^3.12.0", + "@sendbird/uikit-react": "^3.13.1", "@tanstack/react-query": "^5.17.19", "dompurify": "^3.0.4", "polished": "^2.3.1", @@ -7111,22 +7133,37 @@ "styled-components": "^5.3.11" } }, + "@sendbird/react-uikit-message-template-view": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/react-uikit-message-template-view/-/react-uikit-message-template-view-0.0.1-alpha.65.tgz", + "integrity": "sha512-WCGNYPkahAKwP633p0+lDUKqKB8s2aulVqIEc4UDp7DBNfeLor8VY/vsuQKxWDCtbQHiJZdTT2fPQrkZfpLxxg==", + "requires": { + "@sendbird/uikit-message-template": "^0.0.1-alpha.65" + } + }, + "@sendbird/uikit-message-template": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-message-template/-/uikit-message-template-0.0.1-alpha.65.tgz", + "integrity": "sha512-d2vRpEr2dEdO9M82zwW1vG8Dnnvi7NPfh2YPYFy2gHUNyGjTANb8jIKf+blh/qCmcXFGKbdcjrz4FxZNsXRdhA==", + "requires": {} + }, "@sendbird/uikit-react": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.12.0.tgz", - "integrity": "sha512-L9W7Uu2U9ptedFKrdrRVqDBvYDxeeRlCj6LqRbSvUB1Dj95Spw1xgQrYvzKipjW0NyQcmp+sbaVJfDmyCchPDA==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.13.1.tgz", + "integrity": "sha512-e8ml2HE8cdCntZUIJW9clfRgTQr/fZkl8FhLxIK6keuIT7UymEg+8vLOjFFVxHNgNbaXuUzEofCg2gircdNwkw==", "requires": { - "@sendbird/chat": "^4.10.9", - "@sendbird/uikit-tools": "0.0.1-alpha.62", + "@sendbird/chat": "^4.11.0", + "@sendbird/react-uikit-message-template-view": "0.0.1-alpha.65", + "@sendbird/uikit-tools": "0.0.1-alpha.65", "css-vars-ponyfill": "^2.3.2", "date-fns": "^2.16.1", "dompurify": "^3.0.1" } }, "@sendbird/uikit-tools": { - "version": "0.0.1-alpha.62", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.62.tgz", - "integrity": "sha512-/fFHmhlMivXlpvxGg4oEJaQBJdDDSsJn68xxdBu4HL2jrTleCyHo7VAYuEYMOYhGNe4Gk2uolby9qP1lo88BSA==", + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.65.tgz", + "integrity": "sha512-qUIN4pMtEP0F2n18ulmjNKXMhTbO+Q63y+o/77PPp03MpinPcRlMDHNwe9ido4el0fIkHextKta8bE8X7BLD3g==", "requires": {} }, "@svgr/babel-plugin-add-jsx-attribute": { @@ -7628,9 +7665,9 @@ } }, "css-vars-ponyfill": { - "version": "2.4.8", - "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.8.tgz", - "integrity": "sha512-4/j4AX4htytYHWyHVZ2BFQ+NoCGZEcOH2h4/2mmgE4SkrFg4Xq6tGYR77DtvvUIDsaXuJN+sj41bbgauA0Gfmg==", + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.9.tgz", + "integrity": "sha512-aZyLue5bdiGVNCiCclNjo123D8I7kyoYNUaAvz+H1JalX1ye4Ilz7jNRRH5YbM+dYD6ucejiydGwk7lol/GCXQ==", "requires": { "balanced-match": "^1.0.2", "get-css-data": "^2.0.2" diff --git a/packages/self-service/package.json b/packages/self-service/package.json index b97c472b1..8d448e67e 100644 --- a/packages/self-service/package.json +++ b/packages/self-service/package.json @@ -14,7 +14,7 @@ "format": "npm run prettier:fix && npm run lint:fix" }, "dependencies": { - "@sendbird/chat-ai-widget": "^1.2.5", + "@sendbird/chat-ai-widget": "^1.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/url-webdemo/package-lock.json b/packages/url-webdemo/package-lock.json index c0516a6a2..82f082dfd 100644 --- a/packages/url-webdemo/package-lock.json +++ b/packages/url-webdemo/package-lock.json @@ -8,7 +8,7 @@ "name": "url-webdemo", "version": "0.0.0", "dependencies": { - "@sendbird/chat-ai-widget": "^1.2.5", + "@sendbird/chat-ai-widget": "^1.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -970,9 +970,9 @@ } }, "node_modules/@sendbird/chat": { - "version": "4.10.10", - "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.10.10.tgz", - "integrity": "sha512-SxJW0fHZ0sSYdOEfVACQ3cl+8+pepPpO4m2WLmYDYxfdcjOFYGskfHMZAtXyc45zbI/FYF3oLsMWYybmnH4bjw==", + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.11.2.tgz", + "integrity": "sha512-ea9GZ+vZdbHpsrCnexQh1fKxw52GfwH/D7NYAgt7mzSzoiL2KIViYL7FpwLifFHDtdMprdgoIZBUzOTwtf21rQ==", "peerDependencies": { "@react-native-async-storage/async-storage": "^1.17.6" }, @@ -983,12 +983,12 @@ } }, "node_modules/@sendbird/chat-ai-widget": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.2.5.tgz", - "integrity": "sha512-ilst69mAd1+jKbKcFcpEAtDJDqH0Fjy5IJC+whD2HI9gVmJcjiTClfDGalsdc1zNonY6ujAdCvBf1VQDrgIiWQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.3.1.tgz", + "integrity": "sha512-f5ib6Pj/QziQdr0SxatLY7Bxitecoc9OKDqb03VxB/LxKwAzv9bRcBJoH54dduRVhuEPGI1eYtGwr1E50KR7Sw==", "dependencies": { "@sendbird/chat": "^4.10.1", - "@sendbird/uikit-react": "^3.12.0", + "@sendbird/uikit-react": "^3.13.1", "@tanstack/react-query": "^5.17.19", "dompurify": "^3.0.4", "polished": "^2.3.1", @@ -1001,13 +1001,35 @@ "react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0" } }, + "node_modules/@sendbird/react-uikit-message-template-view": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/react-uikit-message-template-view/-/react-uikit-message-template-view-0.0.1-alpha.65.tgz", + "integrity": "sha512-WCGNYPkahAKwP633p0+lDUKqKB8s2aulVqIEc4UDp7DBNfeLor8VY/vsuQKxWDCtbQHiJZdTT2fPQrkZfpLxxg==", + "dependencies": { + "@sendbird/uikit-message-template": "^0.0.1-alpha.65" + }, + "peerDependencies": { + "@sendbird/chat": ">=4.3.0 <5", + "react": ">=16.8.6", + "react-dom": ">=16.8.6" + } + }, + "node_modules/@sendbird/uikit-message-template": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-message-template/-/uikit-message-template-0.0.1-alpha.65.tgz", + "integrity": "sha512-d2vRpEr2dEdO9M82zwW1vG8Dnnvi7NPfh2YPYFy2gHUNyGjTANb8jIKf+blh/qCmcXFGKbdcjrz4FxZNsXRdhA==", + "peerDependencies": { + "react": ">=16.8.6" + } + }, "node_modules/@sendbird/uikit-react": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.12.0.tgz", - "integrity": "sha512-L9W7Uu2U9ptedFKrdrRVqDBvYDxeeRlCj6LqRbSvUB1Dj95Spw1xgQrYvzKipjW0NyQcmp+sbaVJfDmyCchPDA==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.13.1.tgz", + "integrity": "sha512-e8ml2HE8cdCntZUIJW9clfRgTQr/fZkl8FhLxIK6keuIT7UymEg+8vLOjFFVxHNgNbaXuUzEofCg2gircdNwkw==", "dependencies": { - "@sendbird/chat": "^4.10.9", - "@sendbird/uikit-tools": "0.0.1-alpha.62", + "@sendbird/chat": "^4.11.0", + "@sendbird/react-uikit-message-template-view": "0.0.1-alpha.65", + "@sendbird/uikit-tools": "0.0.1-alpha.65", "css-vars-ponyfill": "^2.3.2", "date-fns": "^2.16.1", "dompurify": "^3.0.1" @@ -1018,9 +1040,9 @@ } }, "node_modules/@sendbird/uikit-tools": { - "version": "0.0.1-alpha.62", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.62.tgz", - "integrity": "sha512-/fFHmhlMivXlpvxGg4oEJaQBJdDDSsJn68xxdBu4HL2jrTleCyHo7VAYuEYMOYhGNe4Gk2uolby9qP1lo88BSA==", + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.65.tgz", + "integrity": "sha512-qUIN4pMtEP0F2n18ulmjNKXMhTbO+Q63y+o/77PPp03MpinPcRlMDHNwe9ido4el0fIkHextKta8bE8X7BLD3g==", "peerDependencies": { "@sendbird/chat": ">=4.10.5 <5", "react": ">=16.8.6" @@ -1648,9 +1670,9 @@ } }, "node_modules/css-vars-ponyfill": { - "version": "2.4.8", - "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.8.tgz", - "integrity": "sha512-4/j4AX4htytYHWyHVZ2BFQ+NoCGZEcOH2h4/2mmgE4SkrFg4Xq6tGYR77DtvvUIDsaXuJN+sj41bbgauA0Gfmg==", + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.9.tgz", + "integrity": "sha512-aZyLue5bdiGVNCiCclNjo123D8I7kyoYNUaAvz+H1JalX1ye4Ilz7jNRRH5YbM+dYD6ucejiydGwk7lol/GCXQ==", "dependencies": { "balanced-match": "^1.0.2", "get-css-data": "^2.0.2" @@ -4297,18 +4319,18 @@ } }, "@sendbird/chat": { - "version": "4.10.10", - "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.10.10.tgz", - "integrity": "sha512-SxJW0fHZ0sSYdOEfVACQ3cl+8+pepPpO4m2WLmYDYxfdcjOFYGskfHMZAtXyc45zbI/FYF3oLsMWYybmnH4bjw==", + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@sendbird/chat/-/chat-4.11.2.tgz", + "integrity": "sha512-ea9GZ+vZdbHpsrCnexQh1fKxw52GfwH/D7NYAgt7mzSzoiL2KIViYL7FpwLifFHDtdMprdgoIZBUzOTwtf21rQ==", "requires": {} }, "@sendbird/chat-ai-widget": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.2.5.tgz", - "integrity": "sha512-ilst69mAd1+jKbKcFcpEAtDJDqH0Fjy5IJC+whD2HI9gVmJcjiTClfDGalsdc1zNonY6ujAdCvBf1VQDrgIiWQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@sendbird/chat-ai-widget/-/chat-ai-widget-1.3.1.tgz", + "integrity": "sha512-f5ib6Pj/QziQdr0SxatLY7Bxitecoc9OKDqb03VxB/LxKwAzv9bRcBJoH54dduRVhuEPGI1eYtGwr1E50KR7Sw==", "requires": { "@sendbird/chat": "^4.10.1", - "@sendbird/uikit-react": "^3.12.0", + "@sendbird/uikit-react": "^3.13.1", "@tanstack/react-query": "^5.17.19", "dompurify": "^3.0.4", "polished": "^2.3.1", @@ -4317,22 +4339,37 @@ "styled-components": "^5.3.11" } }, + "@sendbird/react-uikit-message-template-view": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/react-uikit-message-template-view/-/react-uikit-message-template-view-0.0.1-alpha.65.tgz", + "integrity": "sha512-WCGNYPkahAKwP633p0+lDUKqKB8s2aulVqIEc4UDp7DBNfeLor8VY/vsuQKxWDCtbQHiJZdTT2fPQrkZfpLxxg==", + "requires": { + "@sendbird/uikit-message-template": "^0.0.1-alpha.65" + } + }, + "@sendbird/uikit-message-template": { + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-message-template/-/uikit-message-template-0.0.1-alpha.65.tgz", + "integrity": "sha512-d2vRpEr2dEdO9M82zwW1vG8Dnnvi7NPfh2YPYFy2gHUNyGjTANb8jIKf+blh/qCmcXFGKbdcjrz4FxZNsXRdhA==", + "requires": {} + }, "@sendbird/uikit-react": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.12.0.tgz", - "integrity": "sha512-L9W7Uu2U9ptedFKrdrRVqDBvYDxeeRlCj6LqRbSvUB1Dj95Spw1xgQrYvzKipjW0NyQcmp+sbaVJfDmyCchPDA==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-react/-/uikit-react-3.13.1.tgz", + "integrity": "sha512-e8ml2HE8cdCntZUIJW9clfRgTQr/fZkl8FhLxIK6keuIT7UymEg+8vLOjFFVxHNgNbaXuUzEofCg2gircdNwkw==", "requires": { - "@sendbird/chat": "^4.10.9", - "@sendbird/uikit-tools": "0.0.1-alpha.62", + "@sendbird/chat": "^4.11.0", + "@sendbird/react-uikit-message-template-view": "0.0.1-alpha.65", + "@sendbird/uikit-tools": "0.0.1-alpha.65", "css-vars-ponyfill": "^2.3.2", "date-fns": "^2.16.1", "dompurify": "^3.0.1" } }, "@sendbird/uikit-tools": { - "version": "0.0.1-alpha.62", - "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.62.tgz", - "integrity": "sha512-/fFHmhlMivXlpvxGg4oEJaQBJdDDSsJn68xxdBu4HL2jrTleCyHo7VAYuEYMOYhGNe4Gk2uolby9qP1lo88BSA==", + "version": "0.0.1-alpha.65", + "resolved": "https://registry.npmjs.org/@sendbird/uikit-tools/-/uikit-tools-0.0.1-alpha.65.tgz", + "integrity": "sha512-qUIN4pMtEP0F2n18ulmjNKXMhTbO+Q63y+o/77PPp03MpinPcRlMDHNwe9ido4el0fIkHextKta8bE8X7BLD3g==", "requires": {} }, "@svgr/babel-plugin-add-jsx-attribute": { @@ -4739,9 +4776,9 @@ } }, "css-vars-ponyfill": { - "version": "2.4.8", - "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.8.tgz", - "integrity": "sha512-4/j4AX4htytYHWyHVZ2BFQ+NoCGZEcOH2h4/2mmgE4SkrFg4Xq6tGYR77DtvvUIDsaXuJN+sj41bbgauA0Gfmg==", + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.9.tgz", + "integrity": "sha512-aZyLue5bdiGVNCiCclNjo123D8I7kyoYNUaAvz+H1JalX1ye4Ilz7jNRRH5YbM+dYD6ucejiydGwk7lol/GCXQ==", "requires": { "balanced-match": "^1.0.2", "get-css-data": "^2.0.2" diff --git a/packages/url-webdemo/package.json b/packages/url-webdemo/package.json index 0a42cb02b..a14b17354 100644 --- a/packages/url-webdemo/package.json +++ b/packages/url-webdemo/package.json @@ -16,7 +16,7 @@ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "@sendbird/chat-ai-widget": "^1.2.5" + "@sendbird/chat-ai-widget": "^1.3.1" }, "devDependencies": { "@types/react": "^18.0.37",