From b8e64722a737976ad6d3fd791d40b7c908ddd6c9 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 10 Jun 2025 20:11:34 +0530 Subject: [PATCH] feat: correct name --- scripts/publish-react-components.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/publish-react-components.js b/scripts/publish-react-components.js index cbe894712..8efd04792 100644 --- a/scripts/publish-react-components.js +++ b/scripts/publish-react-components.js @@ -113,7 +113,7 @@ function generatePackageJson(packageDir) { ); const packageJson = { - name: '@chatwoot/react-components', + name: '@chatwoot/agent-react-components', version: finalVersion, description: 'React components for Chatwoot messaging interface with Vue Web Components', @@ -183,11 +183,11 @@ React components for embedding Chatwoot messaging interface with Vue Web Compone ## Installation \`\`\`bash -npm install @chatwoot/react-components +npm install @chatwoot/agent-react-components # or -yarn add @chatwoot/react-components +yarn add @chatwoot/agent-react-components # or -pnpm add @chatwoot/react-components +pnpm add @chatwoot/agent-react-components \`\`\` ## Usage @@ -196,8 +196,8 @@ pnpm add @chatwoot/react-components \`\`\`jsx import React from 'react'; -import { ChatwootProvider, ChatwootConversation } from '@chatwoot/react-components'; -import '@chatwoot/react-components/style.css'; +import { ChatwootProvider, ChatwootConversation } from '@chatwoot/agent-react-components'; +import '@chatwoot/agent-react-components/style.css'; function App() { return ( @@ -238,7 +238,7 @@ Component that renders a specific conversation interface. Hook to access the Chatwoot configuration within a ChatwootProvider. \`\`\`jsx -import { useChatwoot } from '@chatwoot/react-components'; +import { useChatwoot } from '@chatwoot/agent-react-components'; function MyComponent() { const { baseURL, userId, userToken } = useChatwoot();