@fairyhunter13/opentui-core 0.1.102 → 0.1.104

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 CHANGED
@@ -13,7 +13,7 @@ OpenTUI is a native terminal UI core written in Zig with TypeScript bindings. Th
13
13
  ## Install
14
14
 
15
15
  ```bash
16
- bun install @fairyhunter13/opentui-core
16
+ bun install @opentui/core
17
17
  ```
18
18
 
19
19
  ## Build
@@ -52,7 +52,7 @@ NativeSpanFeed TypeScript benchmarks:
52
52
  Renderables are hierarchical objects that can be positioned, nested, styled and rendered to the terminal:
53
53
 
54
54
  ```typescript
55
- import { createCliRenderer, TextRenderable } from "@fairyhunter13/opentui-core"
55
+ import { createCliRenderer, TextRenderable } from "@opentui/core"
56
56
 
57
57
  const renderer = await createCliRenderer()
58
58
 
@@ -40,24 +40,37 @@
40
40
  "]" @conceal)
41
41
  (#set! conceal " "))
42
42
 
43
- ; Conceal image links
43
+ ; Style image link brackets and parens
44
44
  (image
45
- [
46
- "!"
47
- "["
48
- "]"
49
- "("
50
- (link_destination)
51
- ")"
52
- ] @markup.link
45
+ ["[" "(" ")"] @markup.link)
46
+
47
+ (image
48
+ "]" @markup.link)
49
+
50
+ ; Conceal image ! prefix
51
+ ((image
52
+ "!" @conceal)
53
+ (#set! conceal ""))
54
+
55
+ ; Conceal image opening bracket
56
+ ((image
57
+ "[" @conceal)
53
58
  (#set! conceal ""))
54
59
 
55
- ; Conceal full reference links
60
+ ; Conceal image closing bracket with space replacement (matches inline link behavior)
61
+ ((image
62
+ "]" @conceal)
63
+ (#set! conceal " "))
64
+
65
+ ; Style image link destination
66
+ (image
67
+ (link_destination) @markup.link.url)
68
+
69
+ ; Conceal full reference links - only conceal brackets, keep link_label visible
56
70
  (full_reference_link
57
71
  [
58
72
  "["
59
73
  "]"
60
- (link_label)
61
74
  ] @markup.link
62
75
  (#set! conceal ""))
63
76
 
@@ -92,7 +105,7 @@
92
105
  ; Replace common HTML entities.
93
106
  ((entity_reference) @character.special
94
107
  (#eq? @character.special " ")
95
- (#set! conceal ""))
108
+ (#set! conceal " "))
96
109
 
97
110
  ((entity_reference) @character.special
98
111
  (#eq? @character.special "<")
package/buffer.d.ts CHANGED
@@ -74,6 +74,8 @@ export declare class OptimizedBuffer {
74
74
  shouldFill?: boolean;
75
75
  title?: string;
76
76
  titleAlignment?: "left" | "center" | "right";
77
+ bottomTitle?: string;
78
+ bottomTitleAlignment?: "left" | "center" | "right";
77
79
  }): void;
78
80
  pushScissorRect(x: number, y: number, width: number, height: number): void;
79
81
  popScissorRect(): void;