@ai-matrx/design-system 0.20.5 → 0.20.6
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 +4 -0
- package/dist/content-transfer.cjs +35 -15
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +10 -2
- package/dist/content-transfer.js +35 -15
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +33 -13
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +33 -13
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +33 -13
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +33 -13
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +33 -13
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +33 -13
- package/dist/data-table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1146,7 +1146,7 @@ var useContentTransferCapabilities = () => React9.useContext(CapabilityContext);
|
|
|
1146
1146
|
var SurfaceContext = React9.createContext(null);
|
|
1147
1147
|
function MenuPresentation({ label, hint, icon: Icon2 }) {
|
|
1148
1148
|
return /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
1149
|
-
Icon2 ? /* @__PURE__ */ jsx10(Icon2, { className: "matrx-alchemy-menu-icon" }) :
|
|
1149
|
+
Icon2 ? /* @__PURE__ */ jsx10(Icon2, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx10(PaletteGlyph, { file: true }),
|
|
1150
1150
|
/* @__PURE__ */ jsxs5("span", { children: [
|
|
1151
1151
|
label,
|
|
1152
1152
|
hint ? /* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
@@ -1168,8 +1168,11 @@ function DestinationPresentation({ action }) {
|
|
|
1168
1168
|
};
|
|
1169
1169
|
const path = paths[action.id.replace(/^matrx:/, "")];
|
|
1170
1170
|
return /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
1171
|
-
|
|
1172
|
-
/* @__PURE__ */
|
|
1171
|
+
action.icon ? /* @__PURE__ */ jsx10(action.icon, { className: "matrx-alchemy-menu-icon" }) : path ? /* @__PURE__ */ jsx10("svg", { className: "matrx-alchemy-palette-glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx10("path", { d: path }) }) : /* @__PURE__ */ jsx10(PaletteGlyph, { file: true }),
|
|
1172
|
+
/* @__PURE__ */ jsxs5("span", { children: [
|
|
1173
|
+
action.label,
|
|
1174
|
+
action.hint ? /* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: action.hint }) : null
|
|
1175
|
+
] })
|
|
1173
1176
|
] });
|
|
1174
1177
|
}
|
|
1175
1178
|
function ReceiptLink({ target }) {
|
|
@@ -1179,6 +1182,11 @@ function ReceiptLink({ target }) {
|
|
|
1179
1182
|
] }) : null;
|
|
1180
1183
|
}
|
|
1181
1184
|
function PaletteGlyph({ format, ai = false, file = false, kind }) {
|
|
1185
|
+
if (kind === "link") return /* @__PURE__ */ jsx10("svg", { className: "matrx-alchemy-palette-glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx10("path", { d: "M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-2 2M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l2-2" }) });
|
|
1186
|
+
if (kind === "surface") return /* @__PURE__ */ jsxs5("svg", { className: "matrx-alchemy-palette-glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
1187
|
+
/* @__PURE__ */ jsx10("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1188
|
+
/* @__PURE__ */ jsx10("path", { d: "M3 9h18M9 9v12" })
|
|
1189
|
+
] });
|
|
1182
1190
|
if (kind === "ai-copy") return /* @__PURE__ */ jsxs5("svg", { className: "matrx-alchemy-palette-glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
1183
1191
|
/* @__PURE__ */ jsx10("rect", { x: "5", y: "5", width: "11", height: "14", rx: "2" }),
|
|
1184
1192
|
/* @__PURE__ */ jsx10("path", { d: "M9 3h6a2 2 0 0 1 2 2v10" }),
|
|
@@ -1659,7 +1667,7 @@ function ContentTransferMenuSession({ references = [], referenceActions = [], so
|
|
|
1659
1667
|
const presentation = options.action;
|
|
1660
1668
|
const Icon2 = presentation?.icon;
|
|
1661
1669
|
const fallbackLabel = options.file && !/^download\b/i.test(label2) ? `Download ${label2}` : label2;
|
|
1662
|
-
return /* @__PURE__ */ jsxs5("button", { type: "button", className: "matrx-alchemy-palette-tile", "aria-label": presentation?.ariaLabel ?? (presentation ? fallbackLabel : options.ariaLabel ?? `${resolvedMode === "copy" ? "Copy" : "Download"} ${label2}`), onClick: () => {
|
|
1670
|
+
return /* @__PURE__ */ jsxs5("button", { type: "button", className: "matrx-alchemy-palette-tile", title: id === "table-data" ? "JSON using column display names" : id === "table-schema" ? "Table schema and rows" : label2, "aria-label": presentation?.ariaLabel ?? (presentation ? fallbackLabel : options.ariaLabel ?? `${resolvedMode === "copy" ? "Copy" : "Download"} ${label2}`), onClick: () => {
|
|
1663
1671
|
closePalette();
|
|
1664
1672
|
onClick();
|
|
1665
1673
|
}, children: [
|
|
@@ -1721,7 +1729,7 @@ function ContentTransferMenuSession({ references = [], referenceActions = [], so
|
|
|
1721
1729
|
/* @__PURE__ */ jsx10(PaletteGlyph, { kind: "ai-copy" }),
|
|
1722
1730
|
/* @__PURE__ */ jsxs5("span", { children: [
|
|
1723
1731
|
"Copy with AI context",
|
|
1724
|
-
/* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: "
|
|
1732
|
+
/* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: "Include source context" })
|
|
1725
1733
|
] })
|
|
1726
1734
|
] }) : null, items: quickVariants("ai"), onRun: (variant) => {
|
|
1727
1735
|
closePalette();
|
|
@@ -1734,32 +1742,44 @@ function ContentTransferMenuSession({ references = [], referenceActions = [], so
|
|
|
1734
1742
|
/* @__PURE__ */ jsx10(PaletteGlyph, { kind: "sliders" }),
|
|
1735
1743
|
/* @__PURE__ */ jsxs5("span", { children: [
|
|
1736
1744
|
"Prepare for AI",
|
|
1737
|
-
/* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: "
|
|
1745
|
+
/* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: "Trim, edit or summarize" })
|
|
1738
1746
|
] })
|
|
1739
1747
|
] }) })
|
|
1740
1748
|
] }) : null,
|
|
1741
1749
|
prepareAvailable && (nearestWorkspaceKey || variants.length) ? /* @__PURE__ */ jsx10(PaletteRows, { title: "Other sources", items: [], extra: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
1742
|
-
nearestWorkspaceKey && nearestSurface ? /* @__PURE__ */
|
|
1750
|
+
nearestWorkspaceKey && nearestSurface ? /* @__PURE__ */ jsxs5("button", { type: "button", className: "matrx-alchemy-palette-row", onClick: () => {
|
|
1743
1751
|
closePalette();
|
|
1744
1752
|
void openWorkspace(nearestWorkspaceKey, { source: nearestSurface, label: nearestSurface.surfaceName });
|
|
1745
|
-
}, children:
|
|
1753
|
+
}, children: [
|
|
1754
|
+
/* @__PURE__ */ jsx10(PaletteGlyph, { kind: "surface" }),
|
|
1755
|
+
/* @__PURE__ */ jsx10("span", { children: "Prepare this page" })
|
|
1756
|
+
] }) : null,
|
|
1746
1757
|
variants.map((variant) => /* @__PURE__ */ jsx10("button", { type: "button", className: "matrx-alchemy-palette-row", "aria-label": variant.ariaLabel, onClick: () => {
|
|
1747
1758
|
closePalette();
|
|
1748
1759
|
void openWorkspace(variantWorkspaceKeys.get(variant.id), variant);
|
|
1749
1760
|
}, children: /* @__PURE__ */ jsx10(MenuPresentation, { ...variant, label: `Prepare ${variant.label}` }) }, variant.id))
|
|
1750
1761
|
] }) }) : null,
|
|
1751
1762
|
references.length || referenceActions.length ? /* @__PURE__ */ jsxs5("section", { className: "matrx-alchemy-palette-section", children: [
|
|
1752
|
-
/* @__PURE__ */ jsx10("h3", { children: "
|
|
1753
|
-
/* @__PURE__ */
|
|
1754
|
-
|
|
1755
|
-
|
|
1763
|
+
/* @__PURE__ */ jsx10("h3", { children: "References" }),
|
|
1764
|
+
referenceActions.map((action) => /* @__PURE__ */ jsxs5("button", { type: "button", className: "matrx-alchemy-palette-row", onClick: () => void openReference(action), children: [
|
|
1765
|
+
/* @__PURE__ */ jsx10(PaletteGlyph, { kind: "link" }),
|
|
1766
|
+
/* @__PURE__ */ jsx10("span", { children: action.label }),
|
|
1767
|
+
/* @__PURE__ */ jsx10("svg", { className: "matrx-alchemy-disclosure", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ jsx10("path", { d: "m6 4 4 4-4 4" }) })
|
|
1768
|
+
] }, action.id)),
|
|
1769
|
+
references.map((reference) => /* @__PURE__ */ jsxs5("button", { type: "button", className: "matrx-alchemy-palette-row", title: "Copies a reference to saved data", onClick: () => void copyReference(reference), children: [
|
|
1770
|
+
/* @__PURE__ */ jsx10(PaletteGlyph, { kind: "link" }),
|
|
1771
|
+
/* @__PURE__ */ jsx10("span", { children: reference.label })
|
|
1772
|
+
] }, reference.id))
|
|
1756
1773
|
] }) : null,
|
|
1757
1774
|
["save", "chat", "email", "other"].map((group) => {
|
|
1758
1775
|
const entries = ordinaryActions.filter((action) => (action.group ?? "other") === group);
|
|
1759
1776
|
return entries.length ? /* @__PURE__ */ jsxs5("details", { className: "matrx-alchemy-palette-destinations", children: [
|
|
1760
1777
|
/* @__PURE__ */ jsxs5("summary", { children: [
|
|
1761
1778
|
group === "save" ? "Save to Matrx" : group === "chat" ? "Continue with AI" : group === "email" ? "Email to me" : "Actions",
|
|
1762
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ jsxs5("span", { className: "matrx-alchemy-disclosure-meta", children: [
|
|
1780
|
+
/* @__PURE__ */ jsx10("span", { children: entries.length }),
|
|
1781
|
+
/* @__PURE__ */ jsx10("svg", { className: "matrx-alchemy-disclosure", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ jsx10("path", { d: "m6 4 4 4-4 4" }) })
|
|
1782
|
+
] })
|
|
1763
1783
|
] }),
|
|
1764
1784
|
/* @__PURE__ */ jsx10("div", { children: entries.map((action) => /* @__PURE__ */ jsx10("button", { type: "button", className: "matrx-alchemy-palette-row", "aria-label": action.ariaLabel, onClick: () => {
|
|
1765
1785
|
closePalette();
|