@namiruai/chat 1.2.0 → 1.3.0
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 +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @namiruai/chat
|
|
2
2
|
|
|
3
3
|
Core chat widget for [Namiru.ai](https://namiru.ai) -- embeddable AI customer support chat for any website.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @namiruai/chat
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -16,7 +16,7 @@ Add the widget to any website with a single script tag:
|
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
18
|
<script
|
|
19
|
-
src="https://cdn.jsdelivr.net/npm/@
|
|
19
|
+
src="https://cdn.jsdelivr.net/npm/@namiruai/chat/dist/namiru-chat.umd.js"
|
|
20
20
|
data-agent-id="your-agent-id"
|
|
21
21
|
data-position="bottom-right"
|
|
22
22
|
></script>
|
|
@@ -25,7 +25,7 @@ Add the widget to any website with a single script tag:
|
|
|
25
25
|
### ESM Import
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
import { init } from '@
|
|
28
|
+
import { init } from '@namiruai/chat';
|
|
29
29
|
|
|
30
30
|
const widget = init({
|
|
31
31
|
agentId: 'your-agent-id',
|
|
@@ -45,7 +45,7 @@ widget.destroy();
|
|
|
45
45
|
Embed the chat directly into a container element:
|
|
46
46
|
|
|
47
47
|
```js
|
|
48
|
-
import { init } from '@
|
|
48
|
+
import { init } from '@namiruai/chat';
|
|
49
49
|
|
|
50
50
|
const widget = init({
|
|
51
51
|
agentId: 'your-agent-id',
|
|
@@ -58,9 +58,9 @@ const widget = init({
|
|
|
58
58
|
|
|
59
59
|
## Framework Wrappers
|
|
60
60
|
|
|
61
|
-
- **React**: [@
|
|
62
|
-
- **Vue**: [@
|
|
63
|
-
- **Angular**: [@
|
|
61
|
+
- **React**: [@namiruai/react](https://www.npmjs.com/package/@namiruai/react)
|
|
62
|
+
- **Vue**: [@namiruai/vue](https://www.npmjs.com/package/@namiruai/vue)
|
|
63
|
+
- **Angular**: [@namiruai/angular](https://www.npmjs.com/package/@namiruai/angular)
|
|
64
64
|
|
|
65
65
|
## Documentation
|
|
66
66
|
|