@akropolys/kiku 1.7.9 → 1.7.11

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 CHANGED
@@ -1856,13 +1856,9 @@ function ThinkingBlock({ text, isComplete, seconds: fixedSeconds }) {
1856
1856
  onClick: expandable ? () => setIsOpen((o) => !o) : void 0,
1857
1857
  "aria-expanded": expandable ? isOpen : void 0,
1858
1858
  children: [
1859
- isComplete ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1859
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: !isComplete ? "hsk-cb-think-spin" : void 0, children: [
1860
1860
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
1861
1861
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M12 6v6l4 2" })
1862
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "hsk-cb-typing", "aria-hidden": "true", children: [
1863
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", {}),
1864
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", {}),
1865
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", {})
1866
1862
  ] }),
1867
1863
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: label }),
1868
1864
  expandable && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: cn("hsk-cb-think-chevron", isOpen && "hsk-cb-think-chevron--open"), children: "\u25B6" })
@@ -2344,21 +2340,27 @@ function ChatModal({
2344
2340
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Visualizing\u2026" })
2345
2341
  ] }),
2346
2342
  msg.visualization && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hsk-cb-viz", children: [
2347
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2348
- "img",
2349
- {
2350
- src: msg.visualization,
2351
- alt: "Product visualized in your photo",
2352
- className: "hsk-markdown-img",
2353
- onError: (e) => {
2354
- e.target.style.display = "none";
2343
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hsk-cb-viz-imgwrap", children: [
2344
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2345
+ "img",
2346
+ {
2347
+ src: msg.visualization,
2348
+ alt: "Product visualized in your photo",
2349
+ className: "hsk-markdown-img",
2350
+ onError: (e) => {
2351
+ e.target.style.display = "none";
2352
+ }
2355
2353
  }
2356
- }
2357
- ),
2358
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hsk-cb-viz-foot", children: [
2359
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hsk-cb-viz-disclaimer", children: "AI-generated preview \u2014 colours, size and placement may differ from the real product." }),
2360
- isLast && !streaming && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "hsk-cb-viz-mark", onClick: () => setMarkupSrc(msg.visualization), children: "Mark & edit" })
2361
- ] })
2354
+ ),
2355
+ isLast && !streaming && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { className: "hsk-cb-viz-mark", onClick: () => setMarkupSrc(msg.visualization), children: [
2356
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
2357
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M12 20h9" }),
2358
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z" })
2359
+ ] }),
2360
+ "Mark & edit"
2361
+ ] })
2362
+ ] }),
2363
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hsk-cb-viz-disclaimer", children: "AI-generated preview \u2014 colours, size and placement may differ from the real product." })
2362
2364
  ] }),
2363
2365
  !isUser && (msg.knowledgeImages?.length ?? 0) > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hsk-cb-kimgs", children: msg.knowledgeImages.map((ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hsk-cb-kimg-group", children: [
2364
2366
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hsk-cb-kimg-grid", children: ref.images.map((img, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(