@ai-matrx/design-system 0.18.14 → 0.18.16
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/CHANGELOG.md +18 -0
- package/dist/content-transfer.cjs +29 -18
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +8 -0
- package/dist/content-transfer.js +29 -18
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +29 -18
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +29 -18
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +29 -18
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +29 -18
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +30 -19
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +30 -19
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
|
@@ -595,13 +595,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
595
595
|
if (!items.length && !extra) return null;
|
|
596
596
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { className: "matrx-alchemy-palette-section", children: [
|
|
597
597
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { children: title }),
|
|
598
|
-
items.map((item) =>
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
item.
|
|
603
|
-
|
|
604
|
-
|
|
598
|
+
items.map((item) => {
|
|
599
|
+
const label = item.copyLabel ?? item.label;
|
|
600
|
+
const hint = item.hint ?? fallbackHint;
|
|
601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel ?? `${label}${hint ? ` ${hint}` : ""}`, onClick: () => onRun?.(item), children: [
|
|
602
|
+
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
603
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { children: [
|
|
604
|
+
label,
|
|
605
|
+
hint ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
606
|
+
] })
|
|
607
|
+
] }, item.id);
|
|
608
|
+
}),
|
|
605
609
|
extra
|
|
606
610
|
] });
|
|
607
611
|
}
|
|
@@ -1562,15 +1566,18 @@ var structuredPayload = (value) => {
|
|
|
1562
1566
|
);
|
|
1563
1567
|
return {
|
|
1564
1568
|
kind: "json",
|
|
1565
|
-
value: (0, import_content_transfer2.normalizeTransferJson)(
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1569
|
+
value: (0, import_content_transfer2.normalizeTransferJson)(
|
|
1570
|
+
{
|
|
1571
|
+
kind: value.kind,
|
|
1572
|
+
location: value.location,
|
|
1573
|
+
description: value.description,
|
|
1574
|
+
data: value.data,
|
|
1575
|
+
...value.summary !== void 0 ? { summary: value.summary } : {},
|
|
1576
|
+
attributes: clean(value.attributes),
|
|
1577
|
+
context: clean(value.context)
|
|
1578
|
+
},
|
|
1579
|
+
{ omitUndefinedObjectProperties: true }
|
|
1580
|
+
)
|
|
1574
1581
|
};
|
|
1575
1582
|
};
|
|
1576
1583
|
var actionDone = (message) => ({
|
|
@@ -1625,12 +1632,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1625
1632
|
})) : void 0;
|
|
1626
1633
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1627
1634
|
kind: "json",
|
|
1628
|
-
value: (0, import_content_transfer2.normalizeTransferJson)(resolve(props.json)
|
|
1635
|
+
value: (0, import_content_transfer2.normalizeTransferJson)(resolve(props.json), {
|
|
1636
|
+
omitUndefinedObjectProperties: true
|
|
1637
|
+
})
|
|
1629
1638
|
})) : void 0;
|
|
1630
1639
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1631
1640
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1632
1641
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1633
|
-
const value = (0, import_content_transfer2.normalizeTransferJson)(props.export.sheetRows()
|
|
1642
|
+
const value = (0, import_content_transfer2.normalizeTransferJson)(props.export.sheetRows(), {
|
|
1643
|
+
omitUndefinedObjectProperties: true
|
|
1644
|
+
});
|
|
1634
1645
|
if (!Array.isArray(value) || value.some(
|
|
1635
1646
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1636
1647
|
))
|