@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.js +25 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -29
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +36 -16
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
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__ */
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
e
|
|
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
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
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__ */
|
|
2402
|
-
/* @__PURE__ */
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
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
|
{
|