@namiruai/angular 1.6.0 → 1.7.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 +1 -15
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -24,15 +24,10 @@ import { NamiruChatComponent } from '@namiruai/angular';
|
|
|
24
24
|
<namiru-chat
|
|
25
25
|
[agentId]="'your-agent-id'"
|
|
26
26
|
[position]="'bottom-right'"
|
|
27
|
-
(leadCapture)="onLeadCapture($event)"
|
|
28
27
|
/>
|
|
29
28
|
`,
|
|
30
29
|
})
|
|
31
|
-
export class AppComponent {
|
|
32
|
-
onLeadCapture(lead: any) {
|
|
33
|
-
console.log('Lead captured:', lead);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
30
|
+
export class AppComponent {}
|
|
36
31
|
```
|
|
37
32
|
|
|
38
33
|
### Inline Mode
|
|
@@ -58,15 +53,6 @@ export class AppComponent {
|
|
|
58
53
|
| `width` | `string` | Width for inline mode. |
|
|
59
54
|
| `height` | `string` | Height for inline mode. |
|
|
60
55
|
|
|
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
56
|
## Requirements
|
|
71
57
|
|
|
72
58
|
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.7.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",
|