@a.izzuddin/ai-chat 0.2.21-beta.3 → 0.2.21-beta.4

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/dist/index.js CHANGED
@@ -5952,22 +5952,16 @@ ${this.welcomeSubtitle}` : this.welcomeMessage;
5952
5952
  <div class="message-content">
5953
5953
  <div class="message-text">${unsafeHtml_js.unsafeHTML(this.formatMessageContent(msg.content))}</div>
5954
5954
  ${msg.role === "assistant" && msg.confidence && !msg.confidence.is_confident ? lit.html`
5955
- <div class="low-confidence-warning">
5956
- <svg class="warning-icon" viewBox="0 0 24 24" fill="currentColor">
5957
- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
5958
- </svg>
5959
- <div style="display: flex; flex-direction: column; gap: 0.5rem;">
5960
- <span>${this.lowConfidenceMessage}</span>
5961
- <a
5962
- href="${this.contactSupportUrl}"
5963
- target="_blank"
5964
- rel="noopener noreferrer"
5965
- class="contact-support-button"
5966
- style="--primary-color: ${this.primaryColor}; --primary-color-hover: ${this.primaryColorHover};"
5967
- >
5968
- ${this.contactSupportMessage}
5969
- </a>
5970
- </div>
5955
+ <div class="contact-support-container">
5956
+ <a
5957
+ href="${this.contactSupportUrl}"
5958
+ target="_blank"
5959
+ rel="noopener noreferrer"
5960
+ class="contact-support-button"
5961
+ style="--primary-color: ${this.primaryColor}; --primary-color-hover: ${this.primaryColorHover};"
5962
+ >
5963
+ ${this.contactSupportMessage}
5964
+ </a>
5971
5965
  </div>
5972
5966
  ` : ""}
5973
5967
  ${msg.role === "assistant" && this.showRelatedFaqs && msg.faqs && msg.faqs.length > 0 ? lit.html`
@@ -6816,36 +6810,55 @@ exports.AIChat.styles = lit.css`
6816
6810
  color: #FCD34D;
6817
6811
  }
6818
6812
 
6813
+ .contact-support-container {
6814
+ position: sticky;
6815
+ bottom: 0.5rem;
6816
+ z-index: 10;
6817
+ margin-top: 0.75rem;
6818
+ padding-bottom: 0;
6819
+ display: flex;
6820
+ justify-content: center;
6821
+ pointer-events: none;
6822
+ }
6823
+
6819
6824
  .contact-support-button {
6820
- margin-top: 0.5rem;
6821
- padding: 0.5rem 1rem;
6822
- background: var(--primary-color, #3681D3);
6823
- color: #fff;
6824
- border: none;
6825
- border-radius: 0.5rem;
6825
+ padding: 0.625rem 1.25rem;
6826
+ background: #fff;
6827
+ color: var(--primary-color, #3681D3);
6828
+ border: 1.5px solid var(--primary-color, #3681D3);
6829
+ border-radius: 1.5rem;
6826
6830
  font-size: 0.875rem;
6827
6831
  font-weight: 500;
6828
6832
  cursor: pointer;
6829
- transition: background-color 0.2s, transform 0.1s;
6833
+ transition: all 0.2s ease;
6830
6834
  display: inline-block;
6831
6835
  text-decoration: none;
6836
+ white-space: nowrap;
6837
+ pointer-events: auto;
6838
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
6832
6839
  }
6833
6840
 
6834
6841
  .contact-support-button:hover {
6835
- background: var(--primary-color-hover, #3457C7);
6842
+ background: var(--primary-color, #3681D3);
6843
+ color: #fff;
6836
6844
  transform: translateY(-1px);
6845
+ box-shadow: 0 2px 8px rgba(54, 129, 211, 0.25);
6837
6846
  }
6838
6847
 
6839
6848
  .contact-support-button:active {
6840
6849
  transform: translateY(0);
6850
+ box-shadow: 0 1px 4px rgba(54, 129, 211, 0.2);
6841
6851
  }
6842
6852
 
6843
6853
  :host([theme="dark"]) .contact-support-button {
6844
- background: var(--primary-color, #3681D3);
6854
+ background: #18181b;
6855
+ color: var(--primary-color-light, #5B7FE8);
6856
+ border-color: var(--primary-color-light, #5B7FE8);
6845
6857
  }
6846
6858
 
6847
6859
  :host([theme="dark"]) .contact-support-button:hover {
6848
- background: var(--primary-color-hover, #3457C7);
6860
+ background: var(--primary-color-light, #5B7FE8);
6861
+ color: #18181b;
6849
6862
  }
6850
6863
 
6851
6864
  .loading {