@ai-matrx/design-system 0.18.14 → 0.18.15

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.
@@ -1555,15 +1555,18 @@ var structuredPayload = (value) => {
1555
1555
  );
1556
1556
  return {
1557
1557
  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
- })
1558
+ value: normalizeTransferJson(
1559
+ {
1560
+ kind: value.kind,
1561
+ location: value.location,
1562
+ description: value.description,
1563
+ data: value.data,
1564
+ ...value.summary !== void 0 ? { summary: value.summary } : {},
1565
+ attributes: clean(value.attributes),
1566
+ context: clean(value.context)
1567
+ },
1568
+ { omitUndefinedObjectProperties: true }
1569
+ )
1567
1570
  };
1568
1571
  };
1569
1572
  var actionDone = (message) => ({
@@ -1618,12 +1621,16 @@ function MatrxCopyMenuSession(props) {
1618
1621
  })) : void 0;
1619
1622
  const json = aiVisible && props.json !== void 0 ? make("json", () => ({
1620
1623
  kind: "json",
1621
- value: normalizeTransferJson(resolve(props.json))
1624
+ value: normalizeTransferJson(resolve(props.json), {
1625
+ omitUndefinedObjectProperties: true
1626
+ })
1622
1627
  })) : void 0;
1623
1628
  const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
1624
1629
  const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
1625
1630
  const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
1626
- const value = normalizeTransferJson(props.export.sheetRows());
1631
+ const value = normalizeTransferJson(props.export.sheetRows(), {
1632
+ omitUndefinedObjectProperties: true
1633
+ });
1627
1634
  if (!Array.isArray(value) || value.some(
1628
1635
  (row) => row === null || typeof row !== "object" || Array.isArray(row)
1629
1636
  ))