proper-base 0.8.2 → 0.8.3
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/README.md +1 -1
- package/package.json +1 -4
- package/src/clipboard-selection.ts +3 -0
package/README.md
CHANGED
|
@@ -389,7 +389,7 @@ highlight. Custom replacement footers are not changed.
|
|
|
389
389
|
|
|
390
390
|
## Install
|
|
391
391
|
|
|
392
|
-
Node 22.19 or newer is required. The package is tested against Pi 1.
|
|
392
|
+
Node 22.19 or newer is required. The package is tested against Pi 1.5.0.
|
|
393
393
|
|
|
394
394
|
From npm:
|
|
395
395
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proper-base",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Baseline Pi behavior for session naming, history, prompt editing, fullscreen navigation, and footer styling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -59,9 +59,6 @@
|
|
|
59
59
|
"@types/node": "25.9.5",
|
|
60
60
|
"typescript": "6.0.2"
|
|
61
61
|
},
|
|
62
|
-
"overrides": {
|
|
63
|
-
"undici@8.10.2": "8.12.3"
|
|
64
|
-
},
|
|
65
62
|
"pi": {
|
|
66
63
|
"extensions": [
|
|
67
64
|
"./index.ts"
|
|
@@ -30,6 +30,7 @@ type MarkdownHost = Component & {
|
|
|
30
30
|
paddingY: number;
|
|
31
31
|
theme: { codeBlockIndent?: string };
|
|
32
32
|
cachedLines?: string[];
|
|
33
|
+
blocks?: unknown;
|
|
33
34
|
renderToken(token: Token, width: number, ...rest: unknown[]): string[];
|
|
34
35
|
};
|
|
35
36
|
type Layout = {
|
|
@@ -93,6 +94,8 @@ function markdownRows(component: MarkdownHost, width: number) {
|
|
|
93
94
|
component,
|
|
94
95
|
) as MarkdownHost;
|
|
95
96
|
delete clone.cachedLines;
|
|
97
|
+
// Pi 1.5.0 reuses rendered blocks across renders; drop them so every token replays.
|
|
98
|
+
delete clone.blocks;
|
|
96
99
|
const renderToken = component.renderToken;
|
|
97
100
|
const rows = new Map<number, Row>();
|
|
98
101
|
let depth = 0;
|