@akropolys/kiku 1.6.9 → 1.7.0
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 +20 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +33 -2
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1855,6 +1855,13 @@ function ChatModal({
|
|
|
1855
1855
|
bottomRef.current?.scrollIntoView({ behavior: "smooth" });
|
|
1856
1856
|
}
|
|
1857
1857
|
}, [messages, loading, selectedProduct]);
|
|
1858
|
+
(0, import_react5.useEffect)(() => {
|
|
1859
|
+
const prev = document.body.style.overflow;
|
|
1860
|
+
document.body.style.overflow = "hidden";
|
|
1861
|
+
return () => {
|
|
1862
|
+
document.body.style.overflow = prev;
|
|
1863
|
+
};
|
|
1864
|
+
}, []);
|
|
1858
1865
|
(0, import_react5.useEffect)(() => {
|
|
1859
1866
|
const h = (e) => {
|
|
1860
1867
|
if (e.key !== "Escape") return;
|
|
@@ -2061,6 +2068,19 @@ function ChatModal({
|
|
|
2061
2068
|
] })
|
|
2062
2069
|
] });
|
|
2063
2070
|
})(),
|
|
2071
|
+
msg.visualizing && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hsk-cb-viz hsk-cb-viz--loading", children: [
|
|
2072
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "hsk-cb-viz-spinner" }),
|
|
2073
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "Visualizing\u2026" })
|
|
2074
|
+
] }),
|
|
2075
|
+
msg.visualization && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hsk-cb-viz", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
2076
|
+
"img",
|
|
2077
|
+
{
|
|
2078
|
+
src: msg.visualization,
|
|
2079
|
+
alt: "Product visualized in your photo",
|
|
2080
|
+
className: "hsk-markdown-img",
|
|
2081
|
+
loading: "lazy"
|
|
2082
|
+
}
|
|
2083
|
+
) }),
|
|
2064
2084
|
isLast && lastIntent === "compare" && sources.length >= 2 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ComparisonMatrix, { sources, defaultCurrency }),
|
|
2065
2085
|
(() => {
|
|
2066
2086
|
const msgReferencedIds = isLast ? referencedIds : msg.referencedIds ?? [];
|