@f5xc-salesdemos/pi-tui 19.29.0 → 19.29.2

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/keys.ts +4 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@f5xc-salesdemos/pi-tui",
4
- "version": "19.29.0",
4
+ "version": "19.29.2",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://github.com/f5xc-salesdemos/xcsh",
7
7
  "author": "Can Boluk",
@@ -37,8 +37,8 @@
37
37
  "fmt": "biome format --write ."
38
38
  },
39
39
  "dependencies": {
40
- "@f5xc-salesdemos/pi-natives": "19.29.0",
41
- "@f5xc-salesdemos/pi-utils": "19.29.0",
40
+ "@f5xc-salesdemos/pi-natives": "19.29.2",
41
+ "@f5xc-salesdemos/pi-utils": "19.29.2",
42
42
  "marked": "^17.0"
43
43
  },
44
44
  "devDependencies": {
package/src/keys.ts CHANGED
@@ -367,6 +367,10 @@ function decodeKittyPrintable(data: string): string | undefined {
367
367
  export function extractPrintableText(data: string): string | undefined {
368
368
  const kittyText = decodeKittyPrintable(data);
369
369
  if (kittyText) return kittyText;
370
+ // Reject raw Kitty CSI-u sequences that decodeKittyPrintable didn't handle
371
+ // (e.g. release events arriving while protocol is in a transitional state).
372
+ // Without this, the fallback below would insert the escape sequence as text.
373
+ if (/^\x1b\[\d+(?:[;:]\d+)*u$/.test(data)) return undefined;
370
374
  if (data.length === 0 || hasControlChars(data)) return undefined;
371
375
  return data;
372
376
  }