@oh-my-pi/pi-tui 18.0.5 → 18.0.6

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,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [18.0.6] - 2026-08-26
6
+
7
+ ### Added
8
+
9
+ - Added `Markdown.getLastRenderStableText()` to expose the stable prefix of streamed Markdown text for append-only transcript publication.
10
+
5
11
  ## [18.0.5] - 2026-08-25
6
12
 
7
13
  ### Breaking Changes
@@ -83,6 +83,12 @@ export declare class Markdown implements Component {
83
83
  constructor(text: string, paddingX: number, paddingY: number, theme: MarkdownTheme, defaultTextStyle?: DefaultTextStyle, codeBlockIndent?: number);
84
84
  setText(text: string): boolean;
85
85
  invalidate(): void;
86
+ /**
87
+ * Width-independent source prefix of the last render ending at a frozen
88
+ * Markdown block boundary. Only meaningful while streaming (transient
89
+ * render cache on); grows monotonically under append-only `setText`.
90
+ */
91
+ getLastRenderStableText(): string;
86
92
  get transientRenderCache(): boolean;
87
93
  set transientRenderCache(value: boolean);
88
94
  render(width: number): readonly string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-tui",
4
- "version": "18.0.5",
4
+ "version": "18.0.6",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Stencil Labs, Inc.",
@@ -37,8 +37,8 @@
37
37
  "fmt": "biome format --write ."
38
38
  },
39
39
  "dependencies": {
40
- "@oh-my-pi/pi-natives": "18.0.5",
41
- "@oh-my-pi/pi-utils": "18.0.5"
40
+ "@oh-my-pi/pi-natives": "18.0.6",
41
+ "@oh-my-pi/pi-utils": "18.0.6"
42
42
  },
43
43
  "devDependencies": {
44
44
  "kitty-vt-wasm": "^0.2.0"
@@ -1866,6 +1866,15 @@ export class Markdown implements Component {
1866
1866
  this.#cachedLines = undefined;
1867
1867
  }
1868
1868
 
1869
+ /**
1870
+ * Width-independent source prefix of the last render ending at a frozen
1871
+ * Markdown block boundary. Only meaningful while streaming (transient
1872
+ * render cache on); grows monotonically under append-only `setText`.
1873
+ */
1874
+ getLastRenderStableText(): string {
1875
+ return this.#transientRenderCache ? (this.#streamPrefixText ?? "") : "";
1876
+ }
1877
+
1869
1878
  get transientRenderCache(): boolean {
1870
1879
  return this.#transientRenderCache;
1871
1880
  }