hop2 0.11.43 → 0.11.44

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.
@@ -12,6 +12,7 @@ import {
12
12
  } from "react";
13
13
  import { Terminal } from "@xterm/xterm";
14
14
  import { FitAddon } from "@xterm/addon-fit";
15
+ import { WebLinksAddon } from "@xterm/addon-web-links";
15
16
  import { attachScrollFlywheel } from "../utils/scrollFlywheel";
16
17
  import { ContextMenu, type MenuRequest } from "./ContextMenu";
17
18
  import { CwdField } from "./CwdField";
@@ -473,6 +474,16 @@ const LiveTile = ({ wsBase, room, userName, theme, live, claudeApp, claimSize, a
473
474
  });
474
475
  const fit = new FitAddon();
475
476
  term.loadAddon(fit);
477
+ // Same as the full-screen terminal: URLs are links (line-wrapped OAuth
478
+ // and codex sign-in URLs included). The tile is where most reading
479
+ // happens now, and a URL you could click full-screen but not here read
480
+ // as "links don't work in hop". window.open inside the click handler
481
+ // keeps the popup-blocker happy; the tile's own click handler already
482
+ // stops the card from treating the click as a switch.
483
+ term.loadAddon(new WebLinksAddon((event, uri) => {
484
+ event.preventDefault();
485
+ window.open(uri, "_blank", "noopener");
486
+ }));
476
487
  term.open(box);
477
488
  termRef.current = term;
478
489
  fitRef.current = fit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hop2",
3
- "version": "0.11.43",
3
+ "version": "0.11.44",
4
4
  "description": "🐰 Hop into your terminal from anywhere. Secure remote shell access with 2FA via Cloudflare Tunnel. Next-gen rewrite with native terminal sharing.",
5
5
  "main": "hop",
6
6
  "bin": {