@namiruai/angular 1.6.0 → 1.8.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 +4 -16
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @namiruai/angular
|
|
2
2
|
|
|
3
|
-
Angular wrapper for the [Namiru.ai](https://namiru.ai) chat widget
|
|
3
|
+
Angular wrapper for the [Namiru.ai](https://namiru.ai) chat widget.
|
|
4
|
+
|
|
5
|
+
Namiru.ai lets you create AI-powered chat agents for your website in under 30 seconds. Paste your URL, and Namiru crawls your site to build a knowledge base. Your agent answers customer questions 24/7, collects leads through natural conversation, and tracks pain points so you can improve your product. One line of code to embed.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -24,15 +26,10 @@ import { NamiruChatComponent } from '@namiruai/angular';
|
|
|
24
26
|
<namiru-chat
|
|
25
27
|
[agentId]="'your-agent-id'"
|
|
26
28
|
[position]="'bottom-right'"
|
|
27
|
-
(leadCapture)="onLeadCapture($event)"
|
|
28
29
|
/>
|
|
29
30
|
`,
|
|
30
31
|
})
|
|
31
|
-
export class AppComponent {
|
|
32
|
-
onLeadCapture(lead: any) {
|
|
33
|
-
console.log('Lead captured:', lead);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
32
|
+
export class AppComponent {}
|
|
36
33
|
```
|
|
37
34
|
|
|
38
35
|
### Inline Mode
|
|
@@ -58,15 +55,6 @@ export class AppComponent {
|
|
|
58
55
|
| `width` | `string` | Width for inline mode. |
|
|
59
56
|
| `height` | `string` | Height for inline mode. |
|
|
60
57
|
|
|
61
|
-
### Outputs
|
|
62
|
-
|
|
63
|
-
| Output | Payload | Description |
|
|
64
|
-
|--------|---------|-------------|
|
|
65
|
-
| `leadCapture` | `LeadCaptureData` | Emitted when a lead is captured. |
|
|
66
|
-
| `feedback` | `'up' \| 'down'` | Emitted when user gives feedback. |
|
|
67
|
-
| `sessionStart` | `string` | Emitted with session ID when chat starts. |
|
|
68
|
-
| `sessionEnd` | `string` | Emitted with session ID when chat ends. |
|
|
69
|
-
|
|
70
58
|
## Requirements
|
|
71
59
|
|
|
72
60
|
Angular 15 or higher.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiruai/angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Angular wrapper for Namiru AI chat widget",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -21,10 +21,6 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "Namiru <hello@namiru.ai>",
|
|
23
23
|
"homepage": "https://namiru.ai",
|
|
24
|
-
"repository": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"url": "https://github.com/namiru-ai/namiru"
|
|
27
|
-
},
|
|
28
24
|
"keywords": [
|
|
29
25
|
"angular",
|
|
30
26
|
"chat",
|