@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
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/content-transfer/index.tsx
|
|
22
22
|
import * as React7 from "react";
|
|
23
|
+
import { createPortal } from "react-dom";
|
|
23
24
|
import {
|
|
24
25
|
applySectionSelection,
|
|
25
26
|
applyTransferLimits,
|
|
@@ -990,7 +991,10 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
990
991
|
}, children: /* @__PURE__ */ jsx7(MenuPresentation, { ...action, label: action.label }) }, action.id)) }) : null
|
|
991
992
|
] })
|
|
992
993
|
] }),
|
|
993
|
-
notice ? /* @__PURE__ */
|
|
994
|
+
notice && triggerRef.current ? createPortal(/* @__PURE__ */ jsxs3("div", { className: "matrx-alchemy-feedback", children: [
|
|
995
|
+
/* @__PURE__ */ jsx7("span", { role: "status", children: notice }),
|
|
996
|
+
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Dismiss Alchemy feedback", onClick: () => setNotice(null), children: "\xD7" })
|
|
997
|
+
] }), triggerRef.current.ownerDocument.body) : null,
|
|
994
998
|
Object.values(workspaces).map((saved) => /* @__PURE__ */ jsx7(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))
|
|
995
999
|
] });
|
|
996
1000
|
}
|
|
@@ -1498,15 +1502,18 @@ var structuredPayload = (value) => {
|
|
|
1498
1502
|
);
|
|
1499
1503
|
return {
|
|
1500
1504
|
kind: "json",
|
|
1501
|
-
value: normalizeTransferJson(
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
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
|
+
)
|
|
1510
1517
|
};
|
|
1511
1518
|
};
|
|
1512
1519
|
var actionDone = (message) => ({
|
|
@@ -1561,12 +1568,16 @@ function MatrxCopyMenuSession(props) {
|
|
|
1561
1568
|
})) : void 0;
|
|
1562
1569
|
const json = aiVisible && props.json !== void 0 ? make("json", () => ({
|
|
1563
1570
|
kind: "json",
|
|
1564
|
-
value: normalizeTransferJson(resolve(props.json)
|
|
1571
|
+
value: normalizeTransferJson(resolve(props.json), {
|
|
1572
|
+
omitUndefinedObjectProperties: true
|
|
1573
|
+
})
|
|
1565
1574
|
})) : void 0;
|
|
1566
1575
|
const agent = aiVisible && props.agent !== void 0 ? make("agent", () => asPayload(resolve(props.agent))) : void 0;
|
|
1567
1576
|
const structuredAgent = aiVisible && props.agent !== void 0 ? make("structured-agent", () => structuredPayload(resolve(props.agent))) : void 0;
|
|
1568
1577
|
const table = (exportVisible || props.primarySource === "table") && props.export?.sheetRows ? make("rows", () => {
|
|
1569
|
-
const value = normalizeTransferJson(props.export.sheetRows()
|
|
1578
|
+
const value = normalizeTransferJson(props.export.sheetRows(), {
|
|
1579
|
+
omitUndefinedObjectProperties: true
|
|
1580
|
+
});
|
|
1570
1581
|
if (!Array.isArray(value) || value.some(
|
|
1571
1582
|
(row) => row === null || typeof row !== "object" || Array.isArray(row)
|
|
1572
1583
|
))
|