@ai-matrx/design-system 0.18.13 → 0.18.14

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.
@@ -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.jsx)("span", { className: "matrx-alchemy-notice", role: "status", children: notice }) : null,
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
  }