@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
|
@@ -588,13 +588,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
588
588
|
if (!items.length && !extra) return null;
|
|
589
589
|
return /* @__PURE__ */ jsxs5("section", { className: "matrx-alchemy-palette-section", children: [
|
|
590
590
|
/* @__PURE__ */ jsx10("h3", { children: title }),
|
|
591
|
-
items.map((item) =>
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
item.
|
|
596
|
-
|
|
597
|
-
|
|
591
|
+
items.map((item) => {
|
|
592
|
+
const label = item.copyLabel ?? item.label;
|
|
593
|
+
const hint = item.hint ?? fallbackHint;
|
|
594
|
+
return /* @__PURE__ */ jsxs5("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: [
|
|
595
|
+
item.icon ? /* @__PURE__ */ jsx10(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx10(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
596
|
+
/* @__PURE__ */ jsxs5("span", { children: [
|
|
597
|
+
label,
|
|
598
|
+
hint ? /* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
599
|
+
] })
|
|
600
|
+
] }, item.id);
|
|
601
|
+
}),
|
|
598
602
|
extra
|
|
599
603
|
] });
|
|
600
604
|
}
|
|
@@ -1555,15 +1559,18 @@ var structuredPayload = (value) => {
|
|
|
1555
1559
|
);
|
|
1556
1560
|
return {
|
|
1557
1561
|
kind: "json",
|
|
1558
|
-
value: normalizeTransferJson(
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1562
|
+
value: normalizeTransferJson(
|
|
1563
|
+
{
|
|
1564
|
+
kind: value.kind,
|
|
1565
|
+
location: value.location,
|
|
1566
|
+
description: value.description,
|
|
1567
|
+
data: value.data,
|
|
1568
|
+
...value.summary !== void 0 ? { summary: value.summary } : {},
|
|
1569
|
+
attributes: clean(value.attributes),
|
|
1570
|
+
context: clean(value.context)
|
|
1571
|
+
},
|
|
1572
|
+
{ omitUndefinedObjectProperties: true }
|
|
1573
|
+
)
|
|
1567
1574
|
};
|
|
1568
1575
|
};
|
|
1569
1576
|
var actionDone = (message) => ({
|
|
@@ -1618,12 +1625,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1618
1625
|
})) : void 0;
|
|
1619
1626
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1620
1627
|
kind: "json",
|
|
1621
|
-
value: normalizeTransferJson(resolve(props.json)
|
|
1628
|
+
value: normalizeTransferJson(resolve(props.json), {
|
|
1629
|
+
omitUndefinedObjectProperties: true
|
|
1630
|
+
})
|
|
1622
1631
|
})) : void 0;
|
|
1623
1632
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1624
1633
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1625
1634
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1626
|
-
const value = normalizeTransferJson(props.export.sheetRows()
|
|
1635
|
+
const value = normalizeTransferJson(props.export.sheetRows(), {
|
|
1636
|
+
omitUndefinedObjectProperties: true
|
|
1637
|
+
});
|
|
1627
1638
|
if (!Array.isArray(value) || value.some(
|
|
1628
1639
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1629
1640
|
))
|