@akropolys/kiku 1.7.12 → 1.7.13
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 +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +69 -1
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -674,7 +674,20 @@ I couldn't find any matching products in the store.`;
|
|
|
674
674
|
/* @__PURE__ */ jsx6("div", { className: cn("hsk-msg-avatar", msg.role === "assistant" ? "ai" : "user"), children: msg.role === "assistant" ? /* @__PURE__ */ jsx6(SparkleIcon, {}) : "U" }),
|
|
675
675
|
/* @__PURE__ */ jsxs5("div", { className: cn("hsk-msg-bubble", msg.role, classNames.messageBubble), children: [
|
|
676
676
|
msg.imagePreview && /* @__PURE__ */ jsx6("div", { className: "kiku-vs-preview-bubble", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx6("img", { src: msg.imagePreview, alt: "Uploaded Preview", className: "kiku-vs-preview-bubble-img", style: { maxWidth: "200px", borderRadius: "8px" } }) }),
|
|
677
|
+
msg.thinking && /* @__PURE__ */ jsxs5("details", { className: "hsk-thinking-details", open: streaming && idx === chatHistory.length - 1 && !msg.content, children: [
|
|
678
|
+
/* @__PURE__ */ jsxs5("summary", { className: "hsk-thinking-summary", children: [
|
|
679
|
+
"Thought for ",
|
|
680
|
+
msg.thoughtForSeconds ?? 1,
|
|
681
|
+
"s"
|
|
682
|
+
] }),
|
|
683
|
+
/* @__PURE__ */ jsx6("div", { className: "hsk-thinking-text", children: msg.thinking })
|
|
684
|
+
] }),
|
|
685
|
+
msg.statusMessage && idx === chatHistory.length - 1 && !msg.content && /* @__PURE__ */ jsxs5("div", { className: "hsk-status-live", children: [
|
|
686
|
+
/* @__PURE__ */ jsx6("span", { className: "hsk-status-dot" }),
|
|
687
|
+
/* @__PURE__ */ jsx6("span", { children: msg.statusMessage })
|
|
688
|
+
] }),
|
|
677
689
|
renderMarkdown(msg.content),
|
|
690
|
+
streaming && idx === chatHistory.length - 1 && msg.role === "assistant" && /* @__PURE__ */ jsx6("span", { className: "hsk-streaming-cursor" }),
|
|
678
691
|
msg.styleDNA && /* @__PURE__ */ jsxs5("div", { className: "kiku-vs-preview-banner", style: { marginTop: "10px" }, children: [
|
|
679
692
|
chatHistory[idx - 1]?.imagePreview && /* @__PURE__ */ jsx6("img", { src: chatHistory[idx - 1].imagePreview, alt: "Visual Search Input", className: "kiku-vs-preview-img" }),
|
|
680
693
|
/* @__PURE__ */ jsxs5("div", { className: "kiku-vs-preview-info", children: [
|