@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 +21 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -19
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +19 -50
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1824,13 +1824,9 @@ function ThinkingBlock({ text, isComplete, seconds: fixedSeconds }) {
|
|
|
1824
1824
|
onClick: expandable ? () => setIsOpen((o) => !o) : void 0,
|
|
1825
1825
|
"aria-expanded": expandable ? isOpen : void 0,
|
|
1826
1826
|
children: [
|
|
1827
|
-
|
|
1827
|
+
/* @__PURE__ */ jsxs7("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: [
|
|
1828
1828
|
/* @__PURE__ */ jsx8("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1829
1829
|
/* @__PURE__ */ jsx8("path", { d: "M12 6v6l4 2" })
|
|
1830
|
-
] }) : /* @__PURE__ */ jsxs7("span", { className: "hsk-cb-typing", "aria-hidden": "true", children: [
|
|
1831
|
-
/* @__PURE__ */ jsx8("span", {}),
|
|
1832
|
-
/* @__PURE__ */ jsx8("span", {}),
|
|
1833
|
-
/* @__PURE__ */ jsx8("span", {})
|
|
1834
1830
|
] }),
|
|
1835
1831
|
/* @__PURE__ */ jsx8("span", { children: label }),
|
|
1836
1832
|
expandable && /* @__PURE__ */ jsx8("span", { className: cn("hsk-cb-think-chevron", isOpen && "hsk-cb-think-chevron--open"), children: "\u25B6" })
|
|
@@ -2312,21 +2308,27 @@ function ChatModal({
|
|
|
2312
2308
|
/* @__PURE__ */ jsx8("span", { children: "Visualizing\u2026" })
|
|
2313
2309
|
] }),
|
|
2314
2310
|
msg.visualization && /* @__PURE__ */ jsxs7("div", { className: "hsk-cb-viz", children: [
|
|
2315
|
-
/* @__PURE__ */
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
e
|
|
2311
|
+
/* @__PURE__ */ jsxs7("div", { className: "hsk-cb-viz-imgwrap", children: [
|
|
2312
|
+
/* @__PURE__ */ jsx8(
|
|
2313
|
+
"img",
|
|
2314
|
+
{
|
|
2315
|
+
src: msg.visualization,
|
|
2316
|
+
alt: "Product visualized in your photo",
|
|
2317
|
+
className: "hsk-markdown-img",
|
|
2318
|
+
onError: (e) => {
|
|
2319
|
+
e.target.style.display = "none";
|
|
2320
|
+
}
|
|
2323
2321
|
}
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2322
|
+
),
|
|
2323
|
+
isLast && !streaming && /* @__PURE__ */ jsxs7("button", { className: "hsk-cb-viz-mark", onClick: () => setMarkupSrc(msg.visualization), children: [
|
|
2324
|
+
/* @__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: [
|
|
2325
|
+
/* @__PURE__ */ jsx8("path", { d: "M12 20h9" }),
|
|
2326
|
+
/* @__PURE__ */ jsx8("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z" })
|
|
2327
|
+
] }),
|
|
2328
|
+
"Mark & edit"
|
|
2329
|
+
] })
|
|
2330
|
+
] }),
|
|
2331
|
+
/* @__PURE__ */ jsx8("div", { className: "hsk-cb-viz-disclaimer", children: "AI-generated preview \u2014 colours, size and placement may differ from the real product." })
|
|
2330
2332
|
] }),
|
|
2331
2333
|
!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
2334
|
/* @__PURE__ */ jsx8("div", { className: "hsk-cb-kimg-grid", children: ref.images.map((img, i) => /* @__PURE__ */ jsx8(
|