@ai-matrx/vault 0.1.20 → 0.1.21

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/dist/index.js CHANGED
@@ -553,6 +553,8 @@ function ConfirmIdentityDialog({ open, identity, onDone, onCancel }) {
553
553
  import { useEffect as useEffect5, useState as useState5 } from "react";
554
554
  import { Badge, Button as Button2, Field as Field2, Textarea } from "@ai-matrx/design-system/controls";
555
555
  import { cn as cn3 } from "@ai-matrx/design-system";
556
+ import { withReferral } from "@ai-matrx/kit/outbound";
557
+ import { OutboundLink } from "@ai-matrx/kit/outbound-react";
556
558
  import { CopyIcon } from "@ai-matrx/design-system/icons";
557
559
 
558
560
  // src/hooks.ts
@@ -764,13 +766,13 @@ function PlainRow({ label, value, hint: hint2, openUrl, extra, multiline = false
764
766
  top: multiline,
765
767
  actions: /* @__PURE__ */ jsxs5(Fragment2, { children: [
766
768
  extra,
767
- isUrl && openUrl ? /* @__PURE__ */ jsx5(Button2, { variant: "quiet", icon: /* @__PURE__ */ jsx5(ExternalGlyph, {}), "aria-label": `Open ${value}`, onClick: () => openUrl(value) }) : null,
769
+ isUrl && openUrl ? /* @__PURE__ */ jsx5(Button2, { variant: "quiet", icon: /* @__PURE__ */ jsx5(ExternalGlyph, {}), "aria-label": `Open ${value}`, onClick: () => openUrl(withReferral(value)) }) : null,
768
770
  /* @__PURE__ */ jsx5(Button2, { variant: "quiet", icon: /* @__PURE__ */ jsx5(CopyIcon, {}), "aria-label": `Copy ${typeof label === "string" ? label : "value"}`, onClick: () => void copyValue2(value, typeof label === "string" && label ? label : "Value", { secret: false }) })
769
771
  ] }),
770
772
  children: isUrl && openUrl ? (
771
773
  // A real link (right-click, copy link address, open in a new tab); a click goes through the host's opener.
772
774
  /* @__PURE__ */ jsx5(
773
- "a",
775
+ OutboundLink,
774
776
  {
775
777
  href: value,
776
778
  target: "_blank",
@@ -778,7 +780,7 @@ function PlainRow({ label, value, hint: hint2, openUrl, extra, multiline = false
778
780
  className: "block max-w-full truncate text-primary hover:underline",
779
781
  onClick: (e) => {
780
782
  e.preventDefault();
781
- openUrl(value);
783
+ openUrl(withReferral(value));
782
784
  },
783
785
  children: value.replace(/^https?:\/\//i, "").replace(/\/$/, "")
784
786
  }