Repository navigation
Fixed Minor Issues
Introduces several updates across multiple files to enhance functionality, improve styling, and streamline the codebase for the chatbot widget. Key changes include updates to dependencies, refactoring of components, and adjustments to styling and configuration.
Dependency and Configuration Updates:
package.json: Updated the version to1.1.5, added new dependencies such asldrs,lucide-react, andvite-plugin-dts, and included new dev dependencies like@rollup/plugin-commonjsandterser. These additions enhance the build process and extend functionality. [1] [2] [3]
Component Enhancements:
src/App.tsx: Refactored theChatbotWidgetcomponent to include new hooks for handling edit modes and lead visibility, added Microsoft Clarity integration for analytics, and improved the structure for better maintainability. [1] [2]src/components/ChatBotButton.tsx: Enhanced theChatBotButtoncomponent to handle additional props for label visibility, added animations, and improved responsiveness.src/components/Chatbody/ChatBody.tsx: Adjusted theChatBodycomponent for better styling consistency, added brand-based dynamic colors, and removed unused survey-related code. [1] [2]
Styling Updates:
src/App.css: Removed outdated styles and animations, added a new font import, and introduced hover animations for the widget.index.html: Updated theviewportmeta tag to includeinteractive-widget=resizes-contentfor better responsiveness.
Environment and Development Setup:
.env.dev: Removed hardcoded API URLs to simplify environment configuration..vscode/settings.json: Added code actions on save for organizing imports, fixing issues, and formatting, streamlining the development workflow.
Export Adjustments:
index.ts: Added an export for theChatbotcomponent to facilitate external usage.