@data-netmonk/mona-chat-widget 2.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/index.cjs +258 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +19892 -0
- package/dist/netmonk-logo.ico +0 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +91 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Mona Chat Widget
|
|
2
|
+
|
|
3
|
+
Chat widget package developed by Netmonk data & solution team to be imported in Netmonk products
|
|
4
|
+
|
|
5
|
+
### Library (how to import on your project)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
1. Install package
|
|
10
|
+
```
|
|
11
|
+
npm install @aaiiccaa/mona-chat-widget
|
|
12
|
+
```
|
|
13
|
+
2. Import styles on your `App.jsx` or `index.jsx`
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
import "@aaiiccaa/mona-chat-widget/dist/style.css";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. Import & use component
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
import { ChatWidget } from "@aaiiccaa/mona-chat-widget";
|
|
23
|
+
|
|
24
|
+
<ChatWidget type={"prime"} userId={"1234"} sourceId={"1"}/>;
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### Standalone app (for demonstration)
|
|
30
|
+
|
|
31
|
+
1. **How to run locally** (access at `http://localhost:${PORT}/${APP_PREFIX}`)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
npm run dev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
2. **How to build as a standalone app** (build file at `/dist-app` directory)
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
npm run build-app
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
3. **How to serve standalone app** (access at `http://localhost:${PORT}/${APP_PREFIX}`)
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
npm run serve
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
4. **How to run on docker** (access at `http://localhost:${PORT}/${APP_PREFIX}`)
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
docker-compose up --build
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|