@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.
@@ -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) => /* @__PURE__ */ jsxs5("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
592
- item.icon ? /* @__PURE__ */ jsx10(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx10(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
593
- /* @__PURE__ */ jsxs5("span", { children: [
594
- item.copyLabel ?? item.label,
595
- item.hint ?? fallbackHint ? /* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
596
- ] })
597
- ] }, item.id)),
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
- kind: value.kind,
1560
- location: value.location,
1561
- description: value.description,
1562
- data: value.data,
1563
- ...value.summary !== void 0 ? { summary: value.summary } : {},
1564
- attributes: clean(value.attributes),
1565
- context: clean(value.context)
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
  ))