@oh-my-pi/pi-wire 18.4.11 → 18.4.12
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/types/tsp.d.ts +10 -0
- package/package.json +1 -1
- package/src/tsp.ts +6 -0
package/dist/types/tsp.d.ts
CHANGED
|
@@ -1028,6 +1028,16 @@ export type TspEvent = {
|
|
|
1028
1028
|
cursor: number;
|
|
1029
1029
|
len: number;
|
|
1030
1030
|
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Undo the last change to the text of `editor`/`input` node `id` through the
|
|
1033
|
+
* program's own undo history (an applied `edit` is one unit, as typing is); a
|
|
1034
|
+
* no-op when there is nothing to undo. Sent only when `hello` lists `"undo"`.
|
|
1035
|
+
*/
|
|
1036
|
+
| {
|
|
1037
|
+
ev: "undo";
|
|
1038
|
+
sf: string;
|
|
1039
|
+
id: string;
|
|
1040
|
+
}
|
|
1031
1041
|
/**
|
|
1032
1042
|
* The user clicked into node `id` (an `editor`/`input` without the focus, or
|
|
1033
1043
|
* a `prefs` sheet while the focus is outside it): the program moves its
|
package/package.json
CHANGED
package/src/tsp.ts
CHANGED
|
@@ -948,6 +948,12 @@ export type TspEvent =
|
|
|
948
948
|
* text length the terminal saw, a mismatch makes the edit stale).
|
|
949
949
|
*/
|
|
950
950
|
| { ev: "edit"; sf: string; id: string; from: number; to: number; text: string; cursor: number; len: number }
|
|
951
|
+
/**
|
|
952
|
+
* Undo the last change to the text of `editor`/`input` node `id` through the
|
|
953
|
+
* program's own undo history (an applied `edit` is one unit, as typing is); a
|
|
954
|
+
* no-op when there is nothing to undo. Sent only when `hello` lists `"undo"`.
|
|
955
|
+
*/
|
|
956
|
+
| { ev: "undo"; sf: string; id: string }
|
|
951
957
|
/**
|
|
952
958
|
* The user clicked into node `id` (an `editor`/`input` without the focus, or
|
|
953
959
|
* a `prefs` sheet while the focus is outside it): the program moves its
|