max-agent-ui 0.0.15 → 0.0.17

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 CHANGED
@@ -35,14 +35,31 @@ and `MaxAssistantService`.
35
35
  import { MaxAssistantComponent } from 'max-agent-ui';
36
36
  ```
37
37
 
38
- Add `MaxAssistantComponent` to the consuming component imports and render:
38
+ Add `MaxAssistantComponent` to the consuming component imports and render:
39
39
 
40
40
  ```html
41
41
  <max-assistant
42
42
  assistantApiUrl="/agent-api/v1/chat"
43
43
  app="cortex"
44
- />
45
- ```
44
+ />
45
+ ```
46
+
47
+ `MaxAssistantComponent` renders the chat panel directly. It does not include a
48
+ launcher or manage open/close state, so the host application can place it
49
+ inline, in a drawer, or in a dialog. Host-specific header controls can be
50
+ projected into the chat header:
51
+
52
+ ```html
53
+ <max-assistant app="cortex">
54
+ <button
55
+ maxAssistantHeaderAction
56
+ type="button"
57
+ aria-label="Close assistant"
58
+ (click)="closeAssistant()">
59
+ Close
60
+ </button>
61
+ </max-assistant>
62
+ ```
46
63
 
47
64
  For authenticated host applications, provide shared configuration once. The
48
65
  current token and API version are sent as headers, while role, permissions,
@@ -108,7 +125,7 @@ Host apps should provide Angular `HttpClient` for real API calls and include the
108
125
  For local integration, install the generated tarball and peer UI dependencies in the consuming app:
109
126
 
110
127
  ```bash
111
- npm install C:/Users/Dev100/Documents/Maxtime/Projects/maxtime-ui-library/dist/max-agent-ui/max-agent-ui-0.0.24.tgz primeng primeicons @angular/cdk
128
+ npm install C:/Users/Dev100/Documents/Maxtime/Projects/maxtime-ui-library/dist/max-agent-ui/max-agent-ui-0.0.29.tgz primeng primeicons @angular/cdk
112
129
  ```
113
130
 
114
131
  ### Publishing the Library
@@ -125,7 +142,7 @@ Publish the generated tarball after logging in to npm:
125
142
 
126
143
  ```bash
127
144
  npm login
128
- npm publish max-agent-ui-0.0.24.tgz
145
+ npm publish max-agent-ui-0.0.29.tgz
129
146
  ```
130
147
 
131
148
  ## Running unit tests