Skip to content

Commit 2929e34

Browse files
authored
feat: add console warn deprecation notice to react-chat (COR-4436) (#522)
1 parent 9660be2 commit 2929e34

File tree

1 file changed

+5
-0
lines changed
  • packages/react-chat/src/views/ChatWidget

1 file changed

+5
-0
lines changed

packages/react-chat/src/views/ChatWidget/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import ChatWindow from '@/views/ChatWindow';
1010

1111
import { ChatContainer, Container, LauncherContainer } from './styled';
1212

13+
console.warn(
14+
'%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',
15+
'font-size: 18px; font-weight: bold;'
16+
);
17+
1318
interface ChatWidgetProps extends React.PropsWithChildren {
1419
shadowRoot?: ShadowRoot;
1520
chatAPI: VoiceflowChat | undefined;

0 commit comments

Comments
 (0)