@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
|
@@ -544,13 +544,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
544
544
|
if (!items.length && !extra) return null;
|
|
545
545
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { className: "matrx-alchemy-palette-section", children: [
|
|
546
546
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h3", { children: title }),
|
|
547
|
-
items.map((item) =>
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
item.
|
|
552
|
-
|
|
553
|
-
|
|
547
|
+
items.map((item) => {
|
|
548
|
+
const label = item.copyLabel ?? item.label;
|
|
549
|
+
const hint = item.hint ?? fallbackHint;
|
|
550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.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: [
|
|
551
|
+
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
552
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
|
|
553
|
+
label,
|
|
554
|
+
hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
555
|
+
] })
|
|
556
|
+
] }, item.id);
|
|
557
|
+
}),
|
|
554
558
|
extra
|
|
555
559
|
] });
|
|
556
560
|
}
|
|
@@ -1511,15 +1515,18 @@ var structuredPayload = (value) => {
|
|
|
1511
1515
|
);
|
|
1512
1516
|
return {
|
|
1513
1517
|
kind: "json",
|
|
1514
|
-
value: (0, import_content_transfer2.normalizeTransferJson)(
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1518
|
+
value: (0, import_content_transfer2.normalizeTransferJson)(
|
|
1519
|
+
{
|
|
1520
|
+
kind: value.kind,
|
|
1521
|
+
location: value.location,
|
|
1522
|
+
description: value.description,
|
|
1523
|
+
data: value.data,
|
|
1524
|
+
...value.summary !== void 0 ? { summary: value.summary } : {},
|
|
1525
|
+
attributes: clean(value.attributes),
|
|
1526
|
+
context: clean(value.context)
|
|
1527
|
+
},
|
|
1528
|
+
{ omitUndefinedObjectProperties: true }
|
|
1529
|
+
)
|
|
1523
1530
|
};
|
|
1524
1531
|
};
|
|
1525
1532
|
var actionDone = (message) => ({
|
|
@@ -1574,12 +1581,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1574
1581
|
})) : void 0;
|
|
1575
1582
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1576
1583
|
kind: "json",
|
|
1577
|
-
value: (0, import_content_transfer2.normalizeTransferJson)(resolve(props.json)
|
|
1584
|
+
value: (0, import_content_transfer2.normalizeTransferJson)(resolve(props.json), {
|
|
1585
|
+
omitUndefinedObjectProperties: true
|
|
1586
|
+
})
|
|
1578
1587
|
})) : void 0;
|
|
1579
1588
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1580
1589
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1581
1590
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1582
|
-
const value = (0, import_content_transfer2.normalizeTransferJson)(props.export.sheetRows()
|
|
1591
|
+
const value = (0, import_content_transfer2.normalizeTransferJson)(props.export.sheetRows(), {
|
|
1592
|
+
omitUndefinedObjectProperties: true
|
|
1593
|
+
});
|
|
1583
1594
|
if (!Array.isArray(value) || value.some(
|
|
1584
1595
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1585
1596
|
))
|