@hivegpt/hiveai-angular 0.0.325 → 0.0.327

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.
@@ -1877,12 +1877,18 @@
1877
1877
  // events/${eventId}/users-connections
1878
1878
  ChatDrawerComponent.prototype.processMessageForDisplay = function (markdown) {
1879
1879
  try {
1880
- // Parse the markdown content to HTML using marked
1881
- var markdownContent = marked.parse(markdown);
1880
+ // Create a custom renderer to modify <a> tags
1881
+ var renderer = new marked.Renderer();
1882
+ // Customize anchor tags to include target="_blank"
1883
+ renderer.link = function (href, title, text) {
1884
+ return "<a href=\"" + href + "\" title=\"" + (title || '') + "\" target=\"_blank\">" + text + "</a>";
1885
+ };
1886
+ // Parse the markdown content to HTML using marked with the custom renderer
1887
+ var markdownContent = marked.parse(markdown, { renderer: renderer });
1882
1888
  // Sanitize the parsed HTML using Angular's DomSanitizer
1883
- // const sanitizedHtml = this.sanitizer.bypassSecurityTrustHtml(markdownContent);
1889
+ var sanitizedHtml = this.sanitizer.bypassSecurityTrustHtml(markdownContent);
1884
1890
  // Return the safe HTML content for display
1885
- return markdownContent;
1891
+ return sanitizedHtml;
1886
1892
  }
1887
1893
  catch (error) {
1888
1894
  console.error('Error processing markdown:', error);
@@ -2128,7 +2134,7 @@
2128
2134
  ChatDrawerComponent.prototype.makeAskRequest = function (inputMsg, agents, conversationId, msg, chat, workflowId, workflow_inputs) {
2129
2135
  var _this = this;
2130
2136
  var _a;
2131
- var url = this.environment.BASE_URL + "/ai/ask";
2137
+ var url = this.environment.BASE_URL + "/ai/ask?first_name=" + this.firstName + "&last_name=" + this.lastName;
2132
2138
  var body = {
2133
2139
  user_question: inputMsg,
2134
2140
  user_id: this.userId,