@myned-ai/avatar-chat-widget 0.1.0 → 0.3.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.
Binary file
@@ -71,6 +71,14 @@ declare class AvatarChatElement extends HTMLElement {
71
71
  * Setup UI event listeners
72
72
  */
73
73
  private setupUIEvents;
74
+ /**
75
+ * Escape HTML to prevent XSS in user-provided suggestions
76
+ */
77
+ private escapeHtml;
78
+ /**
79
+ * Expand the widget to full height (called on first interaction)
80
+ */
81
+ private expandWidgetHeight;
74
82
  /**
75
83
  * Update connection status (stub - connection indicator removed from UI)
76
84
  */
@@ -109,7 +117,16 @@ declare class AvatarChatElement extends HTMLElement {
109
117
  */
110
118
  reconnect(): Promise<void>;
111
119
  /**
112
- * Cleanup
120
+ * Web Component lifecycle: Called when element is removed from DOM
121
+ * Ensures cleanup happens even if element is removed externally (not via destroy())
122
+ */
123
+ disconnectedCallback(): void;
124
+ /**
125
+ * Internal cleanup logic (shared by destroy() and disconnectedCallback())
126
+ */
127
+ private cleanup;
128
+ /**
129
+ * Cleanup and remove from DOM
113
130
  */
114
131
  destroy(): void;
115
132
  }