@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
|
@@ -414,6 +414,7 @@ var import_content_transfer2 = require("@ai-matrx/kit/content-transfer");
|
|
|
414
414
|
|
|
415
415
|
// src/content-transfer/index.tsx
|
|
416
416
|
var React7 = __toESM(require("react"), 1);
|
|
417
|
+
var import_react_dom = require("react-dom");
|
|
417
418
|
var import_content_transfer = require("@ai-matrx/kit/content-transfer");
|
|
418
419
|
|
|
419
420
|
// src/button.tsx
|
|
@@ -1050,7 +1051,10 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1050
1051
|
}, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(MenuPresentation, { ...action, label: action.label }) }, action.id)) }) : null
|
|
1051
1052
|
] })
|
|
1052
1053
|
] }),
|
|
1053
|
-
notice ? /* @__PURE__ */ (0, import_jsx_runtime10.
|
|
1054
|
+
notice && triggerRef.current ? (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "matrx-alchemy-feedback", children: [
|
|
1055
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { role: "status", children: notice }),
|
|
1056
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { type: "button", "aria-label": "Dismiss Alchemy feedback", onClick: () => setNotice(null), children: "\xD7" })
|
|
1057
|
+
] }), triggerRef.current.ownerDocument.body) : null,
|
|
1054
1058
|
Object.values(workspaces).map((saved) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(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))
|
|
1055
1059
|
] });
|
|
1056
1060
|
}
|
|
@@ -1558,15 +1562,18 @@ var structuredPayload = (value) => {
|
|
|
1558
1562
|
);
|
|
1559
1563
|
return {
|
|
1560
1564
|
kind: "json",
|
|
1561
|
-
value: (0, import_content_transfer2.normalizeTransferJson)(
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1565
|
+
value: (0, import_content_transfer2.normalizeTransferJson)(
|
|
1566
|
+
{
|
|
1567
|
+
kind: value.kind,
|
|
1568
|
+
location: value.location,
|
|
1569
|
+
description: value.description,
|
|
1570
|
+
data: value.data,
|
|
1571
|
+
...value.summary !== void 0 ? { summary: value.summary } : {},
|
|
1572
|
+
attributes: clean(value.attributes),
|
|
1573
|
+
context: clean(value.context)
|
|
1574
|
+
},
|
|
1575
|
+
{ omitUndefinedObjectProperties: true }
|
|
1576
|
+
)
|
|
1570
1577
|
};
|
|
1571
1578
|
};
|
|
1572
1579
|
var actionDone = (message) => ({
|
|
@@ -1621,12 +1628,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1621
1628
|
})) : void 0;
|
|
1622
1629
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1623
1630
|
kind: "json",
|
|
1624
|
-
value: (0, import_content_transfer2.normalizeTransferJson)(resolve(props.json)
|
|
1631
|
+
value: (0, import_content_transfer2.normalizeTransferJson)(resolve(props.json), {
|
|
1632
|
+
omitUndefinedObjectProperties: true
|
|
1633
|
+
})
|
|
1625
1634
|
})) : void 0;
|
|
1626
1635
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1627
1636
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1628
1637
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1629
|
-
const value = (0, import_content_transfer2.normalizeTransferJson)(props.export.sheetRows()
|
|
1638
|
+
const value = (0, import_content_transfer2.normalizeTransferJson)(props.export.sheetRows(), {
|
|
1639
|
+
omitUndefinedObjectProperties: true
|
|
1640
|
+
});
|
|
1630
1641
|
if (!Array.isArray(value) || value.some(
|
|
1631
1642
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1632
1643
|
))
|