@akropolys/kiku 1.7.9 → 1.7.10

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
@@ -2312,21 +2312,27 @@ function ChatModal({
2312
2312
  /* @__PURE__ */ jsx8("span", { children: "Visualizing\u2026" })
2313
2313
  ] }),
2314
2314
  msg.visualization && /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-viz", children: [
2315
- /* @__PURE__ */ jsx8(
2316
- "img",
2317
- {
2318
- src: msg.visualization,
2319
- alt: "Product visualized in your photo",
2320
- className: "hsk-markdown-img",
2321
- onError: (e) => {
2322
- e.target.style.display = "none";
2315
+ /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-viz-imgwrap", children: [
2316
+ /* @__PURE__ */ jsx8(
2317
+ "img",
2318
+ {
2319
+ src: msg.visualization,
2320
+ alt: "Product visualized in your photo",
2321
+ className: "hsk-markdown-img",
2322
+ onError: (e) => {
2323
+ e.target.style.display = "none";
2324
+ }
2323
2325
  }
2324
- }
2325
- ),
2326
- /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-viz-foot", children: [
2327
- /* @__PURE__ */ jsx8("div", { className: "hsk-cb-viz-disclaimer", children: "AI-generated preview \u2014 colours, size and placement may differ from the real product." }),
2328
- isLast && !streaming && /* @__PURE__ */ jsx8("button", { className: "hsk-cb-viz-mark", onClick: () => setMarkupSrc(msg.visualization), children: "Mark & edit" })
2329
- ] })
2326
+ ),
2327
+ isLast && !streaming && /* @__PURE__ */ jsxs7("button", { className: "hsk-cb-viz-mark", onClick: () => setMarkupSrc(msg.visualization), children: [
2328
+ /* @__PURE__ */ jsxs7("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
2329
+ /* @__PURE__ */ jsx8("path", { d: "M12 20h9" }),
2330
+ /* @__PURE__ */ jsx8("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z" })
2331
+ ] }),
2332
+ "Mark & edit"
2333
+ ] })
2334
+ ] }),
2335
+ /* @__PURE__ */ jsx8("div", { className: "hsk-cb-viz-disclaimer", children: "AI-generated preview \u2014 colours, size and placement may differ from the real product." })
2330
2336
  ] }),
2331
2337
  !isUser && (msg.knowledgeImages?.length ?? 0) > 0 && /* @__PURE__ */ jsx8("div", { className: "hsk-cb-kimgs", children: msg.knowledgeImages.map((ref) => /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-kimg-group", children: [
2332
2338
  /* @__PURE__ */ jsx8("div", { className: "hsk-cb-kimg-grid", children: ref.images.map((img, i) => /* @__PURE__ */ jsx8(
@@ -2398,21 +2404,11 @@ function ChatModal({
2398
2404
  ]
2399
2405
  }
2400
2406
  ),
2401
- loading && !streaming && /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-typing-row", style: { display: "flex", alignItems: "center", gap: "10px" }, children: [
2402
- /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-thinking-icon", children: [
2403
- /* @__PURE__ */ jsx8("svg", { className: "hsk-brand-mark", viewBox: "0 0 100 100", "aria-hidden": "true", children: /* @__PURE__ */ jsx8("path", { d: "M39.4 10.4 Q44 0 48.6 10.4 L86.1 95.8 Q88 100 83.4 100 L4.6 100 Q0 100 1.9 95.8 Z M24 100 L24 65 Q24 60 27.4 56.3 Q44 38 60.6 56.3 Q64 60 64 65 L64 100 Z", transform: "translate(22.7 19) scale(0.62)", fillRule: "evenodd" }) }),
2404
- /* @__PURE__ */ jsx8("svg", { className: "hsk-brand-mark hsk-brand-mark--sheen", viewBox: "0 0 100 100", "aria-hidden": "true", children: /* @__PURE__ */ jsx8("path", { d: "M39.4 10.4 Q44 0 48.6 10.4 L86.1 95.8 Q88 100 83.4 100 L4.6 100 Q0 100 1.9 95.8 Z M24 100 L24 65 Q24 60 27.4 56.3 Q44 38 60.6 56.3 Q64 60 64 65 L64 100 Z", transform: "translate(22.7 19) scale(0.62)", fillRule: "evenodd" }) }),
2405
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-orbit", children: /* @__PURE__ */ jsxs7("span", { className: "hsk-handle-ring", children: [
2406
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-ball" }),
2407
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-ball" }),
2408
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-ball" }),
2409
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-ball" }),
2410
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-ball" })
2411
- ] }) }),
2412
- /* @__PURE__ */ jsx8("span", { className: "hsk-handle-rest" })
2413
- ] }),
2414
- /* @__PURE__ */ jsx8("span", { className: "hsk-cb-thinking-text", children: "Thinking\u2026" })
2415
- ] }),
2407
+ loading && !streaming && /* @__PURE__ */ jsx8("div", { className: "hsk-cb-typing-bubble", "aria-label": "Assistant is typing", children: /* @__PURE__ */ jsxs7("span", { className: "hsk-cb-typing", children: [
2408
+ /* @__PURE__ */ jsx8("span", {}),
2409
+ /* @__PURE__ */ jsx8("span", {}),
2410
+ /* @__PURE__ */ jsx8("span", {})
2411
+ ] }) }),
2416
2412
  lastAction?.type === "open_memory" && lastAction.url && !loading && !streaming && /* @__PURE__ */ jsxs7(
2417
2413
  "a",
2418
2414
  {