@cplieger/web-terminal-ui 2.1.3 → 2.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/web-terminal-ui",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "type": "module",
5
5
  "description": "Reference touch-first browser UI for @cplieger/web-terminal-engine: textarea input model, mobile key toolbar, context menu, IME, predictive echo, viewport/keyboard-inset handling, and CSS. One mount() call.",
6
6
  "license": "GPL-3.0-or-later",
@@ -21,7 +21,7 @@
21
21
  "verify": "bash scripts/verify.sh"
22
22
  },
23
23
  "peerDependencies": {
24
- "@cplieger/web-terminal-engine": ">=1.2.0"
24
+ "@cplieger/web-terminal-engine": ">=1.4.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@eslint/js": "10.0.1",
@@ -32,11 +32,11 @@
32
32
  "happy-dom": "20.10.6",
33
33
  "html-validate": "11.5.3",
34
34
  "knip": "6.23.0",
35
- "prettier": "3.9.1",
35
+ "prettier": "3.9.3",
36
36
  "stylelint": "17.14.0",
37
37
  "stylelint-config-standard": "40.0.0",
38
38
  "typescript": "6.0.3",
39
- "typescript-eslint": "8.62.0",
39
+ "typescript-eslint": "8.62.1",
40
40
  "vitest": "4.1.9"
41
41
  },
42
42
  "publishConfig": {
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover,interactive-widget=resizes-content">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover,interactive-widget=resizes-content">
6
6
  <meta name="color-scheme" content="dark">
7
7
  <title>Web Terminal</title>
8
8
  <!-- App icons and web-app manifest are deployment-specific; add your own. -->
package/src/mount.ts CHANGED
@@ -469,6 +469,11 @@ export function mount(root: HTMLElement, opts: MountOptions = {}): TerminalUI {
469
469
  document.title = msg.title;
470
470
  } else if (msg.type === "modes") {
471
471
  render.updateReverseVideo();
472
+ } else if (msg.type === "clipboard") {
473
+ // An app copied via OSC 52; mirror it to the system clipboard. This is
474
+ // an async push (not a user gesture), so Safari/Firefox may reject
475
+ // writeText — copyToClipboard surfaces that as a "Copy failed" toast.
476
+ copyToClipboard(msg.text);
472
477
  }
473
478
  },
474
479
  onOpen() {