From 049d0ba7bb60a30ee9bb76cd8f75aa710189802d Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 13 Jan 2025 11:06:18 +0100 Subject: [PATCH] feat: add console warn deprecation notice to react-chat --- packages/react-chat/src/views/ChatWidget/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-chat/src/views/ChatWidget/index.tsx b/packages/react-chat/src/views/ChatWidget/index.tsx index 8655788106..bba00ea56f 100644 --- a/packages/react-chat/src/views/ChatWidget/index.tsx +++ b/packages/react-chat/src/views/ChatWidget/index.tsx @@ -10,6 +10,11 @@ import ChatWindow from '@/views/ChatWindow'; import { ChatContainer, Container, LauncherContainer } from './styled'; +console.warn( + '%c⚠️ VoiceFlow Webchat V2 Deprecation Notice\n-------------------------------------------\nThis version will reach end-of-support on April 15th, 2025. To continue receiving updates and support, please upgrade to the latest version. Migration guide: https://docs.voiceflow.com/docs/web-chat-migration', + 'font-size: 18px; font-weight: bold;' +); + interface ChatWidgetProps extends React.PropsWithChildren { shadowRoot?: ShadowRoot; chatAPI: VoiceflowChat | undefined;