@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
|
@@ -535,13 +535,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
535
535
|
if (!items.length && !extra) return null;
|
|
536
536
|
return /* @__PURE__ */ jsxs3("section", { className: "matrx-alchemy-palette-section", children: [
|
|
537
537
|
/* @__PURE__ */ jsx7("h3", { children: title }),
|
|
538
|
-
items.map((item) =>
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
item.
|
|
543
|
-
|
|
544
|
-
|
|
538
|
+
items.map((item) => {
|
|
539
|
+
const label = item.copyLabel ?? item.label;
|
|
540
|
+
const hint = item.hint ?? fallbackHint;
|
|
541
|
+
return /* @__PURE__ */ jsxs3("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: [
|
|
542
|
+
item.icon ? /* @__PURE__ */ jsx7(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx7(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
543
|
+
/* @__PURE__ */ jsxs3("span", { children: [
|
|
544
|
+
label,
|
|
545
|
+
hint ? /* @__PURE__ */ jsx7("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
546
|
+
] })
|
|
547
|
+
] }, item.id);
|
|
548
|
+
}),
|
|
545
549
|
extra
|
|
546
550
|
] });
|
|
547
551
|
}
|
|
@@ -1502,15 +1506,18 @@ var structuredPayload = (value) => {
|
|
|
1502
1506
|
);
|
|
1503
1507
|
return {
|
|
1504
1508
|
kind: "json",
|
|
1505
|
-
value: normalizeTransferJson(
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1509
|
+
value: normalizeTransferJson(
|
|
1510
|
+
{
|
|
1511
|
+
kind: value.kind,
|
|
1512
|
+
location: value.location,
|
|
1513
|
+
description: value.description,
|
|
1514
|
+
data: value.data,
|
|
1515
|
+
...value.summary !== void 0 ? { summary: value.summary } : {},
|
|
1516
|
+
attributes: clean(value.attributes),
|
|
1517
|
+
context: clean(value.context)
|
|
1518
|
+
},
|
|
1519
|
+
{ omitUndefinedObjectProperties: true }
|
|
1520
|
+
)
|
|
1514
1521
|
};
|
|
1515
1522
|
};
|
|
1516
1523
|
var actionDone = (message) => ({
|
|
@@ -1565,12 +1572,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1565
1572
|
})) : void 0;
|
|
1566
1573
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1567
1574
|
kind: "json",
|
|
1568
|
-
value: normalizeTransferJson(resolve(props.json)
|
|
1575
|
+
value: normalizeTransferJson(resolve(props.json), {
|
|
1576
|
+
omitUndefinedObjectProperties: true
|
|
1577
|
+
})
|
|
1569
1578
|
})) : void 0;
|
|
1570
1579
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1571
1580
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1572
1581
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1573
|
-
const value = normalizeTransferJson(props.export.sheetRows()
|
|
1582
|
+
const value = normalizeTransferJson(props.export.sheetRows(), {
|
|
1583
|
+
omitUndefinedObjectProperties: true
|
|
1584
|
+
});
|
|
1574
1585
|
if (!Array.isArray(value) || value.some(
|
|
1575
1586
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1576
1587
|
))
|