@ai-matrx/design-system 0.18.13 → 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.
- package/CHANGELOG.md +12 -0
- package/dist/content-transfer.cjs +23 -12
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +28 -6
- package/dist/content-transfer.js +23 -12
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +23 -12
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +23 -12
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +23 -12
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +23 -12
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +42 -29
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +42 -29
- package/dist/data-table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -387,6 +387,7 @@ import {
|
|
|
387
387
|
|
|
388
388
|
// src/content-transfer/index.tsx
|
|
389
389
|
import * as React7 from "react";
|
|
390
|
+
import { createPortal } from "react-dom";
|
|
390
391
|
import {
|
|
391
392
|
applySectionSelection,
|
|
392
393
|
applyTransferLimits,
|
|
@@ -1043,7 +1044,10 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1043
1044
|
}, children: /* @__PURE__ */ jsx10(MenuPresentation, { ...action, label: action.label }) }, action.id)) }) : null
|
|
1044
1045
|
] })
|
|
1045
1046
|
] }),
|
|
1046
|
-
notice ? /* @__PURE__ */
|
|
1047
|
+
notice && triggerRef.current ? createPortal(/* @__PURE__ */ jsxs5("div", { className: "matrx-alchemy-feedback", children: [
|
|
1048
|
+
/* @__PURE__ */ jsx10("span", { role: "status", children: notice }),
|
|
1049
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Dismiss Alchemy feedback", onClick: () => setNotice(null), children: "\xD7" })
|
|
1050
|
+
] }), triggerRef.current.ownerDocument.body) : null,
|
|
1047
1051
|
Object.values(workspaces).map((saved) => /* @__PURE__ */ jsx10(PreparationWorkspace, { restoreFocus: () => triggerRef.current?.focus(), open: workspaceOpen && workspaceKey === saved.key, state: saved, scopes, onClose: () => setWorkspaceOpen(false), onChange: (next) => setWorkspaces((current) => ({ ...current, [saved.key]: next })), transport, adapters, captureScope: workspaceCaptures.current.get(saved.key) ?? capturePrimary, ...ai ? { ai } : {}, onOutcome: report }, saved.key))
|
|
1048
1052
|
] });
|
|
1049
1053
|
}
|
|
@@ -1551,15 +1555,18 @@ var structuredPayload = (value) => {
|
|
|
1551
1555
|
);
|
|
1552
1556
|
return {
|
|
1553
1557
|
kind: "json",
|
|
1554
|
-
value: normalizeTransferJson(
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
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
|
+
)
|
|
1563
1570
|
};
|
|
1564
1571
|
};
|
|
1565
1572
|
var actionDone = (message) => ({
|
|
@@ -1614,12 +1621,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1614
1621
|
})) : void 0;
|
|
1615
1622
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1616
1623
|
kind: "json",
|
|
1617
|
-
value: normalizeTransferJson(resolve(props.json)
|
|
1624
|
+
value: normalizeTransferJson(resolve(props.json), {
|
|
1625
|
+
omitUndefinedObjectProperties: true
|
|
1626
|
+
})
|
|
1618
1627
|
})) : void 0;
|
|
1619
1628
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1620
1629
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1621
1630
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1622
|
-
const value = normalizeTransferJson(props.export.sheetRows()
|
|
1631
|
+
const value = normalizeTransferJson(props.export.sheetRows(), {
|
|
1632
|
+
omitUndefinedObjectProperties: true
|
|
1633
|
+
});
|
|
1623
1634
|
if (!Array.isArray(value) || value.some(
|
|
1624
1635
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1625
1636
|
))
|