0.1.14 • Published 11 months ago

@mitulabs/agent-widget v0.1.14

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

MituAI Agent Widget - Quick Setup Guide

I've created all the necessary components to fix the build errors. Here's how to properly set up your project:

2. Build Steps

  1. Clean your project:

    rm -rf node_modules
    rm -rf dist
    rm package-lock.json
  2. Install dependencies:

    npm install
  3. Build the package:

    npm run build

3. Testing Locally

To test your widget locally:

  1. Link the package:

    npm link
  2. Create a test React app:

    npx create-react-app mituai-test
    cd mituai-test
    npm link mituai-chat-widget
  3. In your test app's App.js:

    import React from 'react';
    import { MituChat } from '@mitulabs/agent-widget';
    
    function App() {
      const config = {
        apiKey: 'test-api-key',
        primaryColor: '#0088cc',
        enableVoiceChat: true,
      };
    
      return (
        <div className="App">
          <header className="App-header">
            <h1>MituAI Chat Widget Test</h1>
          </header>
          <MituChat config={config} />
        </div>
      );
    }
    
    export default App;
  4. Start your test app:

    npm start

Good luck with your MituAI chat widget! Let me know if you need any further assistance.

0.1.14

11 months ago

0.1.13

11 months ago

0.1.12

11 months ago

0.1.11

11 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago