@oh-my-pi/pi-tui 15.10.12 → 15.11.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [15.11.0] - 2026-06-10
6
+ ### Added
7
+
8
+ - Added support for asynchronous `onSubmit` handlers by allowing the callback to return a `Promise<void>`
9
+
5
10
  ## [15.10.11] - 2026-06-10
6
11
 
7
12
  ### Added
@@ -1273,4 +1278,4 @@ Initial release under @oh-my-pi scope. See previous releases at [badlogic/pi-mon
1273
1278
 
1274
1279
  ### Fixed
1275
1280
 
1276
- - **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
1281
+ - **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
@@ -43,7 +43,7 @@ export declare class Editor implements Component, Focusable {
43
43
  * stray text. MUST be a global regex; the editor recompiles a private copy so its `lastIndex`
44
44
  * is never shared with the caller. */
45
45
  atomicTokenPattern: RegExp | undefined;
46
- onSubmit?: (text: string) => void;
46
+ onSubmit?: (text: string) => void | Promise<void>;
47
47
  onAltEnter?: (text: string) => void;
48
48
  onChange?: (text: string) => void;
49
49
  onAutocompleteCancel?: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-tui",
4
- "version": "15.10.12",
4
+ "version": "15.11.0",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -37,8 +37,8 @@
37
37
  "fmt": "biome format --write ."
38
38
  },
39
39
  "dependencies": {
40
- "@oh-my-pi/pi-natives": "15.10.12",
41
- "@oh-my-pi/pi-utils": "15.10.12",
40
+ "@oh-my-pi/pi-natives": "15.11.0",
41
+ "@oh-my-pi/pi-utils": "15.11.0",
42
42
  "lru-cache": "11.5.1",
43
43
  "marked": "^18.0.4"
44
44
  },
@@ -450,7 +450,7 @@ export class Editor implements Component, Focusable {
450
450
  // Debounce timer for autocomplete updates
451
451
  #autocompleteTimeout?: NodeJS.Timeout;
452
452
 
453
- onSubmit?: (text: string) => void;
453
+ onSubmit?: (text: string) => void | Promise<void>;
454
454
  onAltEnter?: (text: string) => void;
455
455
  onChange?: (text: string) => void;
456
456
  onAutocompleteCancel?: () => void;