@streamoid/catalogix-chat 0.2.17 → 0.2.18
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 +17 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1717,16 +1717,24 @@ function SelectProducts({
|
|
|
1717
1717
|
}));
|
|
1718
1718
|
}, []);
|
|
1719
1719
|
if (isSubmitted) {
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
/* @__PURE__ */ jsx16("
|
|
1720
|
+
const vals = localSubmittedValues;
|
|
1721
|
+
const uuids = Array.isArray(vals?.product_uuids) ? vals.product_uuids : [];
|
|
1722
|
+
const codes = Array.isArray(vals?.product_codes) ? vals.product_codes : [];
|
|
1723
|
+
const count = uuids.length || codes.length;
|
|
1724
|
+
return /* @__PURE__ */ jsx16("div", { className: "max-w-[50%] py-2 animate-in fade-in duration-300", children: /* @__PURE__ */ jsxs7("div", { className: "rounded-md border p-2.5 flex items-start gap-2 bg-emerald-50/50 border-emerald-200 dark:bg-muted/20 dark:border-border", children: [
|
|
1725
|
+
/* @__PURE__ */ jsx16("div", { className: "mt-px text-emerald-500", children: /* @__PURE__ */ jsx16(CheckCircle, { className: "w-4 h-4" }) }),
|
|
1726
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex-1 min-w-0", children: [
|
|
1727
|
+
/* @__PURE__ */ jsx16("p", { className: "text-xs font-medium leading-tight", children: "Submitted \u2014 Product Selection" }),
|
|
1728
|
+
count > 0 && /* @__PURE__ */ jsxs7("div", { className: "mt-1 text-[11px] leading-snug", children: [
|
|
1729
|
+
/* @__PURE__ */ jsx16("span", { className: "font-medium text-muted-foreground", children: "Products:" }),
|
|
1730
|
+
" ",
|
|
1731
|
+
/* @__PURE__ */ jsxs7("span", { className: "text-foreground/80", children: [
|
|
1732
|
+
count,
|
|
1733
|
+
" selected"
|
|
1734
|
+
] })
|
|
1735
|
+
] })
|
|
1728
1736
|
] })
|
|
1729
|
-
] });
|
|
1737
|
+
] }) });
|
|
1730
1738
|
}
|
|
1731
1739
|
if (!storeId || !workspaceId) {
|
|
1732
1740
|
return /* @__PURE__ */ jsx16(Card, { className: "p-6 text-center text-muted-foreground", children: "Store context missing. Please start from a store selection step." });
|
package/package.json
CHANGED