@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.js
CHANGED
|
@@ -2344,21 +2344,27 @@ function ChatModal({
|
|
|
2344
2344
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Visualizing\u2026" })
|
|
2345
2345
|
] }),
|
|
2346
2346
|
msg.visualization && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hsk-cb-viz", children: [
|
|
2347
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
e
|
|
2347
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hsk-cb-viz-imgwrap", children: [
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
2349
|
+
"img",
|
|
2350
|
+
{
|
|
2351
|
+
src: msg.visualization,
|
|
2352
|
+
alt: "Product visualized in your photo",
|
|
2353
|
+
className: "hsk-markdown-img",
|
|
2354
|
+
onError: (e) => {
|
|
2355
|
+
e.target.style.display = "none";
|
|
2356
|
+
}
|
|
2355
2357
|
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2358
|
+
),
|
|
2359
|
+
isLast && !streaming && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { className: "hsk-cb-viz-mark", onClick: () => setMarkupSrc(msg.visualization), children: [
|
|
2360
|
+
/* @__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: [
|
|
2361
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M12 20h9" }),
|
|
2362
|
+
/* @__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" })
|
|
2363
|
+
] }),
|
|
2364
|
+
"Mark & edit"
|
|
2365
|
+
] })
|
|
2366
|
+
] }),
|
|
2367
|
+
/* @__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
2368
|
] }),
|
|
2363
2369
|
!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
2370
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hsk-cb-kimg-grid", children: ref.images.map((img, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
@@ -2430,21 +2436,11 @@ function ChatModal({
|
|
|
2430
2436
|
]
|
|
2431
2437
|
}
|
|
2432
2438
|
),
|
|
2433
|
-
loading && !streaming && /* @__PURE__ */ (0, import_jsx_runtime8.
|
|
2434
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-handle-ball" }),
|
|
2439
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-handle-ball" }),
|
|
2440
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-handle-ball" }),
|
|
2441
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-handle-ball" }),
|
|
2442
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-handle-ball" })
|
|
2443
|
-
] }) }),
|
|
2444
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-handle-rest" })
|
|
2445
|
-
] }),
|
|
2446
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hsk-cb-thinking-text", children: "Thinking\u2026" })
|
|
2447
|
-
] }),
|
|
2439
|
+
loading && !streaming && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "hsk-cb-typing-bubble", "aria-label": "Assistant is typing", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "hsk-cb-typing", children: [
|
|
2440
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", {}),
|
|
2441
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", {}),
|
|
2442
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", {})
|
|
2443
|
+
] }) }),
|
|
2448
2444
|
lastAction?.type === "open_memory" && lastAction.url && !loading && !streaming && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
2449
2445
|
"a",
|
|
2450
2446
|
{
|