@helpai/elements 0.9.1 → 0.9.2

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/index.mjs CHANGED
@@ -3454,7 +3454,7 @@ function MessageBubble({ message, strings, responseMode, showReasoning, showTool
3454
3454
  const streaming = message.role === "assistant" && message.status === "streaming";
3455
3455
  const bufferedHold = responseMode === "buffered" && streaming;
3456
3456
  const working = streaming && !hasAnswerText.value;
3457
- const showTypingDots = !bufferedHold && working && !reasoningVisible.value;
3457
+ const showStreamDots = streaming && !bufferedHold && !(reasoningVisible.value && working);
3458
3458
  return /* @__PURE__ */ jsx10("div", { class: `${p9}-bubble-row`, "data-role": message.role, "data-testid": tid(TID.messageBubble, message.id), children: /* @__PURE__ */ jsxs7("div", { class: `${p9}-bubble`, children: [
3459
3459
  bufferedHold ? /* @__PURE__ */ jsx10(LoadingSpinner, { label: strings.loading }) : partList.map((part) => /* @__PURE__ */ jsx10(
3460
3460
  PartView,
@@ -3467,7 +3467,7 @@ function MessageBubble({ message, strings, responseMode, showReasoning, showTool
3467
3467
  },
3468
3468
  partKey(part)
3469
3469
  )),
3470
- showTypingDots && /* @__PURE__ */ jsx10(TypingDots, {}),
3470
+ showStreamDots && /* @__PURE__ */ jsx10(TypingDots, {}),
3471
3471
  message.status === "error" && message.errorText ? /* @__PURE__ */ jsx10("div", { class: `${p9}-error`, role: "alert", children: /* @__PURE__ */ jsx10("span", { children: message.errorText }) }) : null
3472
3472
  ] }) });
3473
3473
  }
package/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.9.1"
83
+ "version": "0.9.2"
84
84
  }
package/web-component.mjs CHANGED
@@ -3518,7 +3518,7 @@ function MessageBubble({ message, strings, responseMode, showReasoning, showTool
3518
3518
  const streaming = message.role === "assistant" && message.status === "streaming";
3519
3519
  const bufferedHold = responseMode === "buffered" && streaming;
3520
3520
  const working = streaming && !hasAnswerText.value;
3521
- const showTypingDots = !bufferedHold && working && !reasoningVisible.value;
3521
+ const showStreamDots = streaming && !bufferedHold && !(reasoningVisible.value && working);
3522
3522
  return /* @__PURE__ */ jsx10("div", { class: `${p9}-bubble-row`, "data-role": message.role, "data-testid": tid(TID.messageBubble, message.id), children: /* @__PURE__ */ jsxs7("div", { class: `${p9}-bubble`, children: [
3523
3523
  bufferedHold ? /* @__PURE__ */ jsx10(LoadingSpinner, { label: strings.loading }) : partList.map((part) => /* @__PURE__ */ jsx10(
3524
3524
  PartView,
@@ -3531,7 +3531,7 @@ function MessageBubble({ message, strings, responseMode, showReasoning, showTool
3531
3531
  },
3532
3532
  partKey(part)
3533
3533
  )),
3534
- showTypingDots && /* @__PURE__ */ jsx10(TypingDots, {}),
3534
+ showStreamDots && /* @__PURE__ */ jsx10(TypingDots, {}),
3535
3535
  message.status === "error" && message.errorText ? /* @__PURE__ */ jsx10("div", { class: `${p9}-error`, role: "alert", children: /* @__PURE__ */ jsx10("span", { children: message.errorText }) }) : null
3536
3536
  ] }) });
3537
3537
  }