@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.mjs CHANGED
@@ -1823,6 +1823,13 @@ function ChatModal({
1823
1823
  bottomRef.current?.scrollIntoView({ behavior: "smooth" });
1824
1824
  }
1825
1825
  }, [messages, loading, selectedProduct]);
1826
+ useEffect3(() => {
1827
+ const prev = document.body.style.overflow;
1828
+ document.body.style.overflow = "hidden";
1829
+ return () => {
1830
+ document.body.style.overflow = prev;
1831
+ };
1832
+ }, []);
1826
1833
  useEffect3(() => {
1827
1834
  const h = (e) => {
1828
1835
  if (e.key !== "Escape") return;
@@ -2029,6 +2036,19 @@ function ChatModal({
2029
2036
  ] })
2030
2037
  ] });
2031
2038
  })(),
2039
+ msg.visualizing && /* @__PURE__ */ jsxs6("div", { className: "hsk-cb-viz hsk-cb-viz--loading", children: [
2040
+ /* @__PURE__ */ jsx7("span", { className: "hsk-cb-viz-spinner" }),
2041
+ /* @__PURE__ */ jsx7("span", { children: "Visualizing\u2026" })
2042
+ ] }),
2043
+ msg.visualization && /* @__PURE__ */ jsx7("div", { className: "hsk-cb-viz", children: /* @__PURE__ */ jsx7(
2044
+ "img",
2045
+ {
2046
+ src: msg.visualization,
2047
+ alt: "Product visualized in your photo",
2048
+ className: "hsk-markdown-img",
2049
+ loading: "lazy"
2050
+ }
2051
+ ) }),
2032
2052
  isLast && lastIntent === "compare" && sources.length >= 2 && /* @__PURE__ */ jsx7(ComparisonMatrix, { sources, defaultCurrency }),
2033
2053
  (() => {
2034
2054
  const msgReferencedIds = isLast ? referencedIds : msg.referencedIds ?? [];