@streamoid/catalogix-chat 0.2.16 → 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 +20 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1257,11 +1257,11 @@ function ProductTable({
|
|
|
1257
1257
|
] })
|
|
1258
1258
|
] }),
|
|
1259
1259
|
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-3", children: [
|
|
1260
|
-
onConfirmSelection &&
|
|
1260
|
+
onConfirmSelection && /* @__PURE__ */ jsx13(
|
|
1261
1261
|
Button,
|
|
1262
1262
|
{
|
|
1263
1263
|
onClick: onConfirmSelection,
|
|
1264
|
-
disabled: isSubmitting,
|
|
1264
|
+
disabled: isSubmitting || table.getFilteredSelectedRowModel().rows.length === 0,
|
|
1265
1265
|
size: "sm",
|
|
1266
1266
|
className: "h-7",
|
|
1267
1267
|
children: isSubmitting ? /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
@@ -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." });
|
|
@@ -1734,7 +1742,7 @@ function SelectProducts({
|
|
|
1734
1742
|
if (!loading && products.length === 0) {
|
|
1735
1743
|
return /* @__PURE__ */ jsx16(Card, { className: "p-6 text-center text-muted-foreground", children: "No products found for this store." });
|
|
1736
1744
|
}
|
|
1737
|
-
return /* @__PURE__ */ jsxs7("div", { className: "flex h-[580px] flex-col gap-3 rounded-lg border border-border bg-card p-3 shadow-sm", children: [
|
|
1745
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex max-h-[580px] flex-col gap-3 rounded-lg border border-border bg-card p-3 shadow-sm", children: [
|
|
1738
1746
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-2", children: [
|
|
1739
1747
|
/* @__PURE__ */ jsxs7("div", { className: "relative flex-1", children: [
|
|
1740
1748
|
/* @__PURE__ */ jsx16(Search2, { className: "absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" }),
|
package/package.json
CHANGED