@aquera/nile-visualization 0.8.0 → 1.0.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.
@@ -1,6 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { customElement, property, query, state } from 'lit/decorators.js';
3
3
  import { html, nothing } from 'lit';
4
+ import { unsafeHTML } from 'lit/directives/unsafe-html.js';
4
5
  import NileElement from '../internal/nile-element.js';
5
6
  import { styles } from './nile-ai-panel.css.js';
6
7
  import '../nile-ai-sender/index.js';
@@ -87,12 +88,12 @@ let NileAiPanel = class NileAiPanel extends NileElement {
87
88
  return html `
88
89
  <div class="messages">
89
90
  ${this.welcomeMessage
90
- ? html `<div class="message message--assistant">${this.welcomeMessage}</div>`
91
+ ? html `<div class="message message--assistant">${unsafeHTML(this.welcomeMessage)}</div>`
91
92
  : nothing}
92
93
  ${this.summaryMessage
93
- ? html `<div class="message message--summary">${this.summaryMessage}</div>`
94
+ ? html `<div class="message message--summary">${unsafeHTML(this.summaryMessage)}</div>`
94
95
  : nothing}
95
- ${this.messages.map(m => html `<div class="message message--${m.role}">${m.text}</div>`)}
96
+ ${this.messages.map(m => html `<div class="message message--${m.role}">${unsafeHTML(m.text)}</div>`)}
96
97
  ${this.loading
97
98
  ? html `<div class="typing">
98
99
  <span class="typing-dot"></span>
@@ -135,10 +135,9 @@ let NileChart = class NileChart extends NileElement {
135
135
  /** True when elements are projected into `header-actions` (used to show the header row). */
136
136
  this.hasHeaderActionsSlot = false;
137
137
  this.handleOutsideClick = (e) => {
138
- if (!this.contains(e.target)) {
138
+ if (!e.composedPath().includes(this)) {
139
139
  this.menuOpen = false;
140
140
  this.chatOpen = false;
141
- this.chatOpen = false;
142
141
  }
143
142
  };
144
143
  this.resolvedConfig = null;
@@ -15,7 +15,6 @@ export const styles = css `
15
15
  }
16
16
 
17
17
  .dashboard-cell {
18
- overflow: hidden;
19
18
  min-height: 0;
20
19
  min-width: 0;
21
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/nile-visualization",
3
- "version": "0.8.0",
3
+ "version": "1.0.0",
4
4
  "description": "A visualization Library for the Nile Design System",
5
5
  "license": "MIT",
6
6
  "author": "Aquera Inc",