@akropolys/kiku 1.7.12 → 1.7.14
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 +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -1
- 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
|
@@ -569,7 +569,10 @@ function ChatWidget({
|
|
|
569
569
|
next[historyIdx] = {
|
|
570
570
|
...next[historyIdx],
|
|
571
571
|
content: messages[hookIdx].content,
|
|
572
|
-
actionType: messages[hookIdx].actionType
|
|
572
|
+
actionType: messages[hookIdx].actionType,
|
|
573
|
+
thinking: messages[hookIdx].thinking,
|
|
574
|
+
thoughtForSeconds: messages[hookIdx].thoughtForSeconds,
|
|
575
|
+
statusMessage: messages[hookIdx].statusMessage
|
|
573
576
|
};
|
|
574
577
|
break;
|
|
575
578
|
}
|
|
@@ -674,7 +677,20 @@ I couldn't find any matching products in the store.`;
|
|
|
674
677
|
/* @__PURE__ */ jsx6("div", { className: cn("hsk-msg-avatar", msg.role === "assistant" ? "ai" : "user"), children: msg.role === "assistant" ? /* @__PURE__ */ jsx6(SparkleIcon, {}) : "U" }),
|
|
675
678
|
/* @__PURE__ */ jsxs5("div", { className: cn("hsk-msg-bubble", msg.role, classNames.messageBubble), children: [
|
|
676
679
|
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" } }) }),
|
|
680
|
+
msg.thinking && /* @__PURE__ */ jsxs5("details", { className: "hsk-thinking-details", open: streaming && idx === chatHistory.length - 1 && !msg.content, children: [
|
|
681
|
+
/* @__PURE__ */ jsxs5("summary", { className: "hsk-thinking-summary", children: [
|
|
682
|
+
"Thought for ",
|
|
683
|
+
msg.thoughtForSeconds ?? 1,
|
|
684
|
+
"s"
|
|
685
|
+
] }),
|
|
686
|
+
/* @__PURE__ */ jsx6("div", { className: "hsk-thinking-text", children: msg.thinking })
|
|
687
|
+
] }),
|
|
688
|
+
msg.statusMessage && idx === chatHistory.length - 1 && !msg.content && /* @__PURE__ */ jsxs5("div", { className: "hsk-status-live", children: [
|
|
689
|
+
/* @__PURE__ */ jsx6("span", { className: "hsk-status-dot" }),
|
|
690
|
+
/* @__PURE__ */ jsx6("span", { children: msg.statusMessage })
|
|
691
|
+
] }),
|
|
677
692
|
renderMarkdown(msg.content),
|
|
693
|
+
streaming && idx === chatHistory.length - 1 && msg.role === "assistant" && /* @__PURE__ */ jsx6("span", { className: "hsk-streaming-cursor" }),
|
|
678
694
|
msg.styleDNA && /* @__PURE__ */ jsxs5("div", { className: "kiku-vs-preview-banner", style: { marginTop: "10px" }, children: [
|
|
679
695
|
chatHistory[idx - 1]?.imagePreview && /* @__PURE__ */ jsx6("img", { src: chatHistory[idx - 1].imagePreview, alt: "Visual Search Input", className: "kiku-vs-preview-img" }),
|
|
680
696
|
/* @__PURE__ */ jsxs5("div", { className: "kiku-vs-preview-info", children: [
|