max-agent-ui 0.0.33 → 0.0.35

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/index.d.ts CHANGED
@@ -181,13 +181,14 @@ interface AssistantDisplayResponse {
181
181
  rota?: AssistantRotaCalendar;
182
182
  markdown?: string;
183
183
  }
184
- type AssistantHelpIcon = 'budget' | 'calendar' | 'document' | 'knowledge' | 'megaphone' | 'people' | 'team' | 'time-off' | 'timesheet' | 'workflow';
184
+ type AssistantHelpIcon = 'action' | 'analytics' | 'budget' | 'calendar' | 'document' | 'knowledge' | 'megaphone' | 'people' | 'team' | 'time-off' | 'timesheet' | 'workflow';
185
185
  interface AssistantHelpGuide {
186
- kind?: 'procedure' | 'information';
186
+ kind?: 'help' | 'knowledge' | 'analytics' | 'action' | 'procedure' | 'information';
187
187
  title: string;
188
188
  summary: string;
189
189
  icon: AssistantHelpIcon;
190
190
  steps: string[];
191
+ continuation?: boolean;
191
192
  content?: string;
192
193
  tips?: string[];
193
194
  restrictions?: string[];
@@ -316,9 +317,6 @@ interface AssistantSupportTicketResponse {
316
317
  }
317
318
  type AssistantFeedbackCategory = 'incorrect' | 'incomplete' | 'unclear' | 'unexpected' | 'suggestion' | 'other';
318
319
  interface AssistantFeedbackRequest {
319
- name: string;
320
- email: string;
321
- phone?: string;
322
320
  category: AssistantFeedbackCategory;
323
321
  query: string;
324
322
  assistantResponse?: string;
@@ -461,10 +459,17 @@ declare class MaxAssistantService {
461
459
  }
462
460
 
463
461
  declare class MaxAssistantFeedbackService {
464
- readonly endpoint = "/agent-api/v1/feedback";
462
+ private readonly config;
463
+ private readonly http;
464
+ readonly endpoint: string;
465
465
  readonly method: "POST";
466
- submitFeedback(_feedback: AssistantFeedbackRequest): Observable<AssistantFeedbackResponse>;
467
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantFeedbackService, never>;
466
+ constructor(config: MaxAssistantConfig, http: HttpClient | null);
467
+ submitFeedback(feedback: AssistantFeedbackRequest, config?: MaxAssistantConfig): Observable<AssistantFeedbackResponse>;
468
+ private getFeedbackUrl;
469
+ private getHeaders;
470
+ private getUser;
471
+ private mergeConfig;
472
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantFeedbackService, [null, { optional: true; }]>;
468
473
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<MaxAssistantFeedbackService>;
469
474
  }
470
475
 
@@ -523,9 +528,6 @@ interface SupportTicketFormValue {
523
528
  tags: AssistantSupportTag[];
524
529
  }
525
530
  interface FeedbackFormValue {
526
- name: string;
527
- email: string;
528
- phone: string;
529
531
  category: AssistantFeedbackCategory;
530
532
  query: string;
531
533
  assistantResponse: string;
@@ -543,6 +545,7 @@ declare class MaxAssistantComponent implements OnInit {
543
545
  private readonly destroyRef;
544
546
  private readonly defaultConfig;
545
547
  private messagesViewport?;
548
+ private activeTurnAnchorMessageId?;
546
549
  private composerInput?;
547
550
  private supportQueryInput?;
548
551
  private feedbackInput?;
@@ -621,6 +624,9 @@ declare class MaxAssistantComponent implements OnInit {
621
624
  protected searchResultIcon(type: string): string;
622
625
  protected searchActionIcon(action: AssistantSearchResult['actions'][number]): string;
623
626
  protected helpIcon(icon: AssistantHelpGuide['icon']): string;
627
+ protected helpGuideLabel(kind: AssistantHelpGuide['kind']): string;
628
+ protected isContentGuide(kind: AssistantHelpGuide['kind']): boolean;
629
+ protected helpGuideMarkdownVariant(kind: AssistantHelpGuide['kind']): 'default' | 'information';
624
630
  protected getTableRowActions(table: AssistantResponseTable, rowIndex: number): AssistantResponseTableAction[];
625
631
  protected useTableAction(action: AssistantResponseTableAction): void;
626
632
  protected resolvePendingAction(message: AssistantMessage, decision: AssistantConfirmation['decision']): void;
@@ -681,6 +687,7 @@ declare class MaxAssistantComponent implements OnInit {
681
687
  private createAssistantResponseMessage;
682
688
  private createMessage;
683
689
  private createDisplayResponse;
690
+ private typedHelpGuide;
684
691
  private createExtractedIntent;
685
692
  private getToolApiCalls;
686
693
  private getSampleJsonResponseFallback;
@@ -697,6 +704,7 @@ declare class MaxAssistantComponent implements OnInit {
697
704
  private traceStepKey;
698
705
  private getConversationHistory;
699
706
  private scrollToLatest;
707
+ private scrollToMessage;
700
708
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantComponent, never>;
701
709
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAssistantComponent, "max-assistant", never, { "app": { "alias": "app"; "required": false; }; "assistantApiUrl": { "alias": "assistantApiUrl"; "required": false; }; "user": { "alias": "user"; "required": false; }; "context": { "alias": "context"; "required": false; }; "requestHeaders": { "alias": "requestHeaders"; "required": false; }; "developerDetailsEnabled": { "alias": "developerDetailsEnabled"; "required": false; }; }, { "hostAction": "hostAction"; "closeRequested": "closeRequested"; }, never, never, true, never>;
702
710
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "max-agent-ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },