@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.mjs
CHANGED
|
@@ -653,7 +653,7 @@ I couldn't find any matching products in the store.`;
|
|
|
653
653
|
}) }) });
|
|
654
654
|
}
|
|
655
655
|
const featured = sources.filter((src) => src.id && referencedIds.includes(src.id));
|
|
656
|
-
const general = sources.filter((src) => !src.id || !referencedIds.includes(src.id));
|
|
656
|
+
const general = featured.length > 0 ? [] : sources.filter((src) => !src.id || !referencedIds.includes(src.id));
|
|
657
657
|
return /* @__PURE__ */ jsxs4("div", { className: "hsk-sources-container", children: [
|
|
658
658
|
featured.length > 0 && /* @__PURE__ */ jsxs4("div", { className: "hsk-sources-group", style: { marginBottom: "10px" }, children: [
|
|
659
659
|
/* @__PURE__ */ jsx5("div", { className: "hsk-sources-group-title", children: "\u2B50 Featured in response" }),
|
|
@@ -1324,8 +1324,10 @@ function SourcesCarousel({ sources, defaultCurrency, onSelectSource, referencedI
|
|
|
1324
1324
|
const scrollNext = () => {
|
|
1325
1325
|
railRef.current?.scrollBy({ left: 170, behavior: "smooth" });
|
|
1326
1326
|
};
|
|
1327
|
+
const referenced = sources.filter((s) => s.id && referencedIds.includes(s.id));
|
|
1328
|
+
const display = referenced.length > 0 ? referenced : sources;
|
|
1327
1329
|
return /* @__PURE__ */ jsxs6("div", { className: "hsk-cb-sources-wrap", children: [
|
|
1328
|
-
/* @__PURE__ */ jsx7("div", { className: "hsk-cb-sources", ref: railRef, children:
|
|
1330
|
+
/* @__PURE__ */ jsx7("div", { className: "hsk-cb-sources", ref: railRef, children: display.map((src, si) => {
|
|
1329
1331
|
const isReferenced = !!(src.id && referencedIds.includes(src.id));
|
|
1330
1332
|
return /* @__PURE__ */ jsxs6(
|
|
1331
1333
|
"div",
|
|
@@ -1949,10 +1951,7 @@ function ChatModal({
|
|
|
1949
1951
|
thinking && /* @__PURE__ */ jsx7(ThinkingBlock, { text: thinking, isComplete }),
|
|
1950
1952
|
content && /* @__PURE__ */ jsxs6("div", { className: "hsk-cb-ai-text", children: [
|
|
1951
1953
|
renderMarkdown(content),
|
|
1952
|
-
isLast && streaming && /* @__PURE__ */
|
|
1953
|
-
/* @__PURE__ */ jsx7("style", { children: `@keyframes hsk-blink { 0%,100%{opacity:.18} 50%{opacity:.9} }` }),
|
|
1954
|
-
/* @__PURE__ */ jsx7("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" } })
|
|
1955
|
-
] })
|
|
1954
|
+
isLast && streaming && /* @__PURE__ */ jsx7("span", { style: { display: "inline-block", width: "0.5em", height: "1.05em", marginLeft: "2px", verticalAlign: "text-bottom", background: "currentColor", opacity: 0.55, borderRadius: "1px" } })
|
|
1956
1955
|
] })
|
|
1957
1956
|
] });
|
|
1958
1957
|
})(),
|