@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.
@@ -1502,15 +1502,18 @@ var structuredPayload = (value) => {
1502
1502
  );
1503
1503
  return {
1504
1504
  kind: "json",
1505
- value: normalizeTransferJson({
1506
- kind: value.kind,
1507
- location: value.location,
1508
- description: value.description,
1509
- data: value.data,
1510
- ...value.summary !== void 0 ? { summary: value.summary } : {},
1511
- attributes: clean(value.attributes),
1512
- context: clean(value.context)
1513
- })
1505
+ value: normalizeTransferJson(
1506
+ {
1507
+ kind: value.kind,
1508
+ location: value.location,
1509
+ description: value.description,
1510
+ data: value.data,
1511
+ ...value.summary !== void 0 ? { summary: value.summary } : {},
1512
+ attributes: clean(value.attributes),
1513
+ context: clean(value.context)
1514
+ },
1515
+ { omitUndefinedObjectProperties: true }
1516
+ )
1514
1517
  };
1515
1518
  };
1516
1519
  var actionDone = (message) => ({
@@ -1565,12 +1568,16 @@ function MatrxCopyMenuSession(props) {
1565
1568
  })) : void 0;
1566
1569
  const json = aiVisible && props.json !== void 0 ? make("json", () => ({
1567
1570
  kind: "json",
1568
- value: normalizeTransferJson(resolve(props.json))
1571
+ value: normalizeTransferJson(resolve(props.json), {
1572
+ omitUndefinedObjectProperties: true
1573
+ })
1569
1574
  })) : void 0;
1570
1575
  const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
1571
1576
  const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
1572
1577
  const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
1573
- const value = normalizeTransferJson(props.export.sheetRows());
1578
+ const value = normalizeTransferJson(props.export.sheetRows(), {
1579
+ omitUndefinedObjectProperties: true
1580
+ });
1574
1581
  if (!Array.isArray(value) || value.some(
1575
1582
  (row) => row === null || typeof row !== "object" || Array.isArray(row)
1576
1583
  ))