@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.
@@ -2996,15 +2996,18 @@ var structuredPayload = (value) => {
2996
2996
  );
2997
2997
  return {
2998
2998
  kind: "json",
2999
- value: normalizeTransferJson({
3000
- kind: value.kind,
3001
- location: value.location,
3002
- description: value.description,
3003
- data: value.data,
3004
- ...value.summary !== void 0 ? { summary: value.summary } : {},
3005
- attributes: clean(value.attributes),
3006
- context: clean(value.context)
3007
- })
2999
+ value: normalizeTransferJson(
3000
+ {
3001
+ kind: value.kind,
3002
+ location: value.location,
3003
+ description: value.description,
3004
+ data: value.data,
3005
+ ...value.summary !== void 0 ? { summary: value.summary } : {},
3006
+ attributes: clean(value.attributes),
3007
+ context: clean(value.context)
3008
+ },
3009
+ { omitUndefinedObjectProperties: true }
3010
+ )
3008
3011
  };
3009
3012
  };
3010
3013
  var actionDone = (message) => ({
@@ -3059,12 +3062,16 @@ function MatrxCopyMenuSession(props) {
3059
3062
  })) : void 0;
3060
3063
  const json = aiVisible && props.json !== void 0 ? make("json", () => ({
3061
3064
  kind: "json",
3062
- value: normalizeTransferJson(resolve(props.json))
3065
+ value: normalizeTransferJson(resolve(props.json), {
3066
+ omitUndefinedObjectProperties: true
3067
+ })
3063
3068
  })) : void 0;
3064
3069
  const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
3065
3070
  const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
3066
3071
  const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
3067
- const value = normalizeTransferJson(props.export.sheetRows());
3072
+ const value = normalizeTransferJson(props.export.sheetRows(), {
3073
+ omitUndefinedObjectProperties: true
3074
+ });
3068
3075
  if (!Array.isArray(value) || value.some(
3069
3076
  (row) => row === null || typeof row !== "object" || Array.isArray(row)
3070
3077
  ))