@aikaara/chat-sdk 1.1.14 → 1.1.16

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.
@@ -12518,7 +12518,7 @@ class Gh {
12518
12518
  this.client = new hh(e, {
12519
12519
  uploadAdapter: r?.uploadAdapter,
12520
12520
  historyAdapter: r?.historyAdapter
12521
- }), this.isEmbed = e.display === "embed", this.bubble = t.querySelector("aikaara-chat-bubble"), this.panel = t.querySelector(".aikaara-panel"), this.header = t.querySelector("aikaara-chat-header"), this.messageList = t.querySelector("aikaara-message-list"), this.input = t.querySelector("aikaara-chat-input"), this.errorBanner = t.querySelector("aikaara-error-banner"), e.welcomeMessage && this.messageList.setWelcomeMessage(e.welcomeMessage), e.showTimestamps !== void 0 && this.messageList.setShowTimestamps(e.showTimestamps), (e.linkHandlers || e.getLinkBearer) && this.messageList.setLinkConfig(e.linkHandlers ?? [], e.getLinkBearer), this.wireEvents();
12521
+ }), this.isEmbed = e.display === "embed", this.bubble = t.querySelector("aikaara-chat-bubble"), this.panel = t.querySelector(".aikaara-panel"), this.header = t.querySelector("aikaara-chat-header"), this.messageList = t.querySelector("aikaara-message-list"), this.input = t.querySelector("aikaara-chat-input"), this.errorBanner = t.querySelector("aikaara-error-banner"), e.welcomeMessage && this.messageList.setWelcomeMessage(e.welcomeMessage), e.showTimestamps !== void 0 && this.messageList.setShowTimestamps(e.showTimestamps), (e.linkHandlers || e.getLinkBearer) && this.messageList.setLinkConfig(e.linkHandlers ?? [], e.getLinkBearer), e.chatActions !== void 0 && this.header.setActions(e.chatActions), this.wireEvents();
12522
12522
  }
12523
12523
  async connect() {
12524
12524
  try {
@@ -12736,6 +12736,7 @@ class Kh extends HTMLElement {
12736
12736
  timestampFormat: this._config.timestampFormat,
12737
12737
  input: this._config.input,
12738
12738
  templateLayout: this._config.templateLayout,
12739
+ chatActions: this._config.chatActions,
12739
12740
  showBubble: this._config.showBubble ?? !0,
12740
12741
  display: (this.getAttribute("display") || this._config.display) ?? "popup",
12741
12742
  offset: this._config.offset || ql,
@@ -13223,6 +13224,7 @@ class Jh extends HTMLElement {
13223
13224
  ${t ? `<div class="subtitle">${t}</div>` : ""}
13224
13225
  </div>
13225
13226
  <div class="actions">
13227
+ ${this.actions.length > 0 ? `
13226
13228
  <div class="menu-wrap">
13227
13229
  <button class="icon-btn menu-btn" aria-label="More actions" type="button">
13228
13230
  <svg viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="5" r="1.6"/><circle cx="12" cy="12" r="1.6"/><circle cx="12" cy="19" r="1.6"/></svg>
@@ -13230,7 +13232,7 @@ class Jh extends HTMLElement {
13230
13232
  <div class="menu" role="menu">
13231
13233
  ${o}
13232
13234
  </div>
13233
- </div>
13235
+ </div>` : ""}
13234
13236
  <button class="icon-btn close-btn" aria-label="Close chat" type="button">
13235
13237
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
13236
13238
  <line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
@@ -16675,6 +16677,7 @@ async function lf(l) {
16675
16677
  timestampFormat: e.timestampFormat,
16676
16678
  input: e.input,
16677
16679
  templateLayout: e.templateLayout,
16680
+ chatActions: e.chatActions,
16678
16681
  tiledesk: p,
16679
16682
  tiledeskIdentity: {
16680
16683
  userId: n,