@akropolys/kiku 1.5.13 → 1.5.15
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 +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -688,7 +688,7 @@ I couldn't find any matching products in the store.`;
|
|
|
688
688
|
}) }) });
|
|
689
689
|
}
|
|
690
690
|
const featured = sources.filter((src) => src.id && referencedIds.includes(src.id));
|
|
691
|
-
const general = sources.filter((src) => !src.id || !referencedIds.includes(src.id));
|
|
691
|
+
const general = featured.length > 0 ? [] : sources.filter((src) => !src.id || !referencedIds.includes(src.id));
|
|
692
692
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "hsk-sources-container", children: [
|
|
693
693
|
featured.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "hsk-sources-group", style: { marginBottom: "10px" }, children: [
|
|
694
694
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "hsk-sources-group-title", children: "\u2B50 Featured in response" }),
|
|
@@ -1359,8 +1359,10 @@ function SourcesCarousel({ sources, defaultCurrency, onSelectSource, referencedI
|
|
|
1359
1359
|
const scrollNext = () => {
|
|
1360
1360
|
railRef.current?.scrollBy({ left: 170, behavior: "smooth" });
|
|
1361
1361
|
};
|
|
1362
|
+
const referenced = sources.filter((s) => s.id && referencedIds.includes(s.id));
|
|
1363
|
+
const display = referenced.length > 0 ? referenced : sources;
|
|
1362
1364
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hsk-cb-sources-wrap", children: [
|
|
1363
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hsk-cb-sources", ref: railRef, children:
|
|
1365
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hsk-cb-sources", ref: railRef, children: display.map((src, si) => {
|
|
1364
1366
|
const isReferenced = !!(src.id && referencedIds.includes(src.id));
|
|
1365
1367
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1366
1368
|
"div",
|
|
@@ -1984,10 +1986,7 @@ function ChatModal({
|
|
|
1984
1986
|
thinking && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ThinkingBlock, { text: thinking, isComplete }),
|
|
1985
1987
|
content && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hsk-cb-ai-text", children: [
|
|
1986
1988
|
renderMarkdown(content),
|
|
1987
|
-
isLast && streaming && /* @__PURE__ */ (0, import_jsx_runtime7.
|
|
1988
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("style", { children: `@keyframes hsk-blink { 0%,100%{opacity:.18} 50%{opacity:.9} }` }),
|
|
1989
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: { display: "inline-block", width: "0.5em", height: "1.05em", marginLeft: "2px", verticalAlign: "text-bottom", background: "currentColor", borderRadius: "1px", animation: "hsk-blink 1.1s ease-in-out infinite" } })
|
|
1990
|
-
] })
|
|
1989
|
+
isLast && streaming && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: { display: "inline-block", width: "0.5em", height: "1.05em", marginLeft: "2px", verticalAlign: "text-bottom", background: "currentColor", opacity: 0.55, borderRadius: "1px" } })
|
|
1991
1990
|
] })
|
|
1992
1991
|
] });
|
|
1993
1992
|
})(),
|