@syntrologie/adapt-chatbot 2.8.0-canary.280 → 2.8.0-canary.281

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,8 +1,8 @@
1
1
  import {
2
2
  AdaptiveChatBar
3
3
  } from "./chunk-QELVKBQV.js";
4
- import "./chunk-LX2VCWH5.js";
5
- import "./chunk-BDFKAVVA.js";
4
+ import "./chunk-HZ55BLN3.js";
5
+ import "./chunk-DDZFWNVM.js";
6
6
  import "./chunk-UVKRO5ER.js";
7
7
  export {
8
8
  AdaptiveChatBar
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AdaptiveChatTrail
3
- } from "./chunk-LX2VCWH5.js";
4
- import "./chunk-BDFKAVVA.js";
3
+ } from "./chunk-HZ55BLN3.js";
4
+ import "./chunk-DDZFWNVM.js";
5
5
  import "./chunk-UVKRO5ER.js";
6
6
  export {
7
7
  AdaptiveChatTrail
@@ -2,7 +2,7 @@ import {
2
2
  ChatAssistantLitMountable,
3
3
  renderFallbackHtml
4
4
  } from "./chunk-FQ7QUZZ3.js";
5
- import "./chunk-BDFKAVVA.js";
5
+ import "./chunk-DDZFWNVM.js";
6
6
  import "./chunk-435KJD27.js";
7
7
  import "./chunk-UVKRO5ER.js";
8
8
  export {
@@ -2917,8 +2917,11 @@ function injectChatStyles(root = typeof document === "undefined" ? void 0 : docu
2917
2917
  const style = document.createElement("style");
2918
2918
  style.id = STYLE_ID;
2919
2919
  style.textContent = STYLE_RULES;
2920
- const target = root instanceof Document ? root.head : root;
2921
- target.appendChild(style);
2920
+ if (root instanceof Document) {
2921
+ root.head.appendChild(style);
2922
+ return;
2923
+ }
2924
+ root.insertBefore(style, root.firstChild ?? null);
2922
2925
  }
2923
2926
  var SyntroChat = class extends LitElement {
2924
2927
  constructor() {
@@ -3235,4 +3238,4 @@ export {
3235
3238
  dompurify/dist/purify.es.mjs:
3236
3239
  (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
3237
3240
  */
3238
- //# sourceMappingURL=chunk-BDFKAVVA.js.map
3241
+ //# sourceMappingURL=chunk-DDZFWNVM.js.map