@opentui/core 0.6.8 → 0.7.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/NativeScene.d.ts +5 -26
- package/Renderable.d.ts +27 -32
- package/audio.d.ts +1 -0
- package/{chunk-bun-ehr9v0n8.js → chunk-bun-qkpm62w1.js} +257 -69
- package/chunk-bun-qkpm62w1.js.map +35 -0
- package/{chunk-bun-4e5bpeqh.js → chunk-bun-zevtbcf6.js} +846 -785
- package/chunk-bun-zevtbcf6.js.map +70 -0
- package/{chunk-node-yyjd8p1g.js → chunk-node-7bcmqh18.js} +846 -785
- package/chunk-node-7bcmqh18.js.map +70 -0
- package/{chunk-node-jhq62x0c.js → chunk-node-mzgnr3sw.js} +257 -69
- package/chunk-node-mzgnr3sw.js.map +34 -0
- package/index.bun.js +313 -91
- package/index.bun.js.map +12 -11
- package/index.node.js +313 -91
- package/index.node.js.map +12 -10
- package/lib/detect-links.d.ts +2 -0
- package/lib/parse.keypress-kitty.d.ts +2 -0
- package/lib/scroll-chain.d.ts +16 -0
- package/lib/stdin-parser-native.d.ts +88 -0
- package/native-abi.generated.d.ts +394 -5
- package/package.json +9 -9
- package/renderables/Box.d.ts +2 -2
- package/renderables/Code.d.ts +2 -1
- package/renderables/Diff.d.ts +2 -2
- package/renderables/EditBufferRenderable.d.ts +2 -2
- package/renderables/EmbeddedTerminal.d.ts +2 -2
- package/renderables/FrameBuffer.d.ts +3 -3
- package/renderables/Image.d.ts +2 -2
- package/renderables/Markdown.d.ts +2 -2
- package/renderables/ScrollBar.d.ts +3 -3
- package/renderables/ScrollBox.d.ts +6 -3
- package/renderables/Slider.d.ts +2 -2
- package/renderables/Text.d.ts +2 -2
- package/renderables/TextBufferRenderable.d.ts +2 -4
- package/renderer.d.ts +8 -4
- package/testing/test-renderer.d.ts +2 -0
- package/testing.bun.js +11 -4
- package/testing.bun.js.map +3 -3
- package/testing.js +11 -4
- package/testing.js.map +3 -3
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
- package/zig-structs.d.ts +25 -0
- package/zig.d.ts +20 -7
- package/chunk-bun-4e5bpeqh.js.map +0 -69
- package/chunk-bun-ehr9v0n8.js.map +0 -35
- package/chunk-node-jhq62x0c.js.map +0 -34
- package/chunk-node-yyjd8p1g.js.map +0 -69
|
@@ -156,7 +156,7 @@ __export(exports_yoga, {
|
|
|
156
156
|
var nativeSymbols = {
|
|
157
157
|
ot_scene_set_hooks: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
158
158
|
ot_scene_frame_step_with_geometry: {
|
|
159
|
-
args: ["ptr", "buffer", "ptr", "buffer", "
|
|
159
|
+
args: ["ptr", "buffer", "ptr", "buffer", "ptr", "u32", "buffer", "buffer"],
|
|
160
160
|
returns: "i32"
|
|
161
161
|
},
|
|
162
162
|
ot_scene_frame_get_paint_slots: { args: ["ptr", "buffer", "buffer", "buffer", "u32", "buffer"], returns: "i32" },
|
|
@@ -191,6 +191,7 @@ var nativeSymbols = {
|
|
|
191
191
|
ot_scene_paint: { args: ["ptr", "buffer", "buffer", "u32", "u32", "buffer"], returns: "i32" },
|
|
192
192
|
ot_scene_hit_test: { args: ["ptr", "buffer", "i32", "i32", "buffer"], returns: "i32" },
|
|
193
193
|
ot_scene_get_stats: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
194
|
+
ot_scene_set_debug_flags: { args: ["ptr", "buffer", "u32"], returns: "i32" },
|
|
194
195
|
ot_scene_get_cursor_state: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
195
196
|
ot_scene_frame_copy_buffer: { args: ["ptr", "buffer", "buffer", "buffer"], returns: "i32" },
|
|
196
197
|
ot_scene_measure_layout: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
@@ -392,6 +393,12 @@ var nativeSymbols = {
|
|
|
392
393
|
ot_session_set_palette_state: { args: ["ptr", "buffer", "buffer", "u32", "buffer", "buffer", "u32"], returns: "i32" },
|
|
393
394
|
ot_session_notification: { args: ["ptr", "buffer", "buffer", "u32", "ptr", "u32", "buffer"], returns: "i32" },
|
|
394
395
|
ot_session_pump: { args: ["ptr", "buffer", "u64", "u32", "buffer"], returns: "i32" },
|
|
396
|
+
ot_session_input_feed: {
|
|
397
|
+
args: ["ptr", "buffer", "ptr", "u32", "u64", "buffer", "u32", "buffer", "u32", "buffer"],
|
|
398
|
+
returns: "i32"
|
|
399
|
+
},
|
|
400
|
+
ot_session_input_expect: { args: ["ptr", "buffer", "u32"], returns: "i32" },
|
|
401
|
+
ot_session_input_reset: { args: ["ptr", "buffer", "u32"], returns: "i32" },
|
|
395
402
|
ot_session_get_write_limit: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
396
403
|
ot_session_write: { args: ["ptr", "buffer", "ptr", "u32"], returns: "i32" },
|
|
397
404
|
ot_session_read_output: { args: ["ptr", "buffer", "ptr", "u32", "buffer"], returns: "i32" },
|
|
@@ -618,7 +625,7 @@ var nativeLayouts = {
|
|
|
618
625
|
}
|
|
619
626
|
},
|
|
620
627
|
ot_scene_stats: {
|
|
621
|
-
size:
|
|
628
|
+
size: 224,
|
|
622
629
|
alignment: 8,
|
|
623
630
|
fields: {
|
|
624
631
|
struct_size: { offset: 0, size: 4, alignment: 4, type: "u32" },
|
|
@@ -631,7 +638,29 @@ var nativeLayouts = {
|
|
|
631
638
|
cells_updated: { offset: 48, size: 4, alignment: 4, type: "u32" },
|
|
632
639
|
average_cells_updated: { offset: 52, size: 4, alignment: 4, type: "u32" },
|
|
633
640
|
render_time_valid: { offset: 56, size: 4, alignment: 4, type: "u32" },
|
|
634
|
-
stdout_write_time_valid: { offset: 60, size: 4, alignment: 4, type: "u32" }
|
|
641
|
+
stdout_write_time_valid: { offset: 60, size: 4, alignment: 4, type: "u32" },
|
|
642
|
+
work_frame_id: { offset: 64, size: 8, alignment: 8, type: "u64" },
|
|
643
|
+
candidate_visits: { offset: 72, size: 8, alignment: 8, type: "u64" },
|
|
644
|
+
paint_visits: { offset: 80, size: 8, alignment: 8, type: "u64" },
|
|
645
|
+
view_preparations: { offset: 88, size: 8, alignment: 8, type: "u64" },
|
|
646
|
+
geometry_reads: { offset: 96, size: 8, alignment: 8, type: "u64" },
|
|
647
|
+
yoga_solves: { offset: 104, size: 8, alignment: 8, type: "u64" },
|
|
648
|
+
feedback_operations: { offset: 112, size: 8, alignment: 8, type: "u64" },
|
|
649
|
+
visibility_steps: { offset: 120, size: 8, alignment: 8, type: "u64" },
|
|
650
|
+
viewport_child_refreshes: { offset: 128, size: 8, alignment: 8, type: "u64" },
|
|
651
|
+
overlap_tests: { offset: 136, size: 8, alignment: 8, type: "u64" },
|
|
652
|
+
members_painted: { offset: 144, size: 8, alignment: 8, type: "u64" },
|
|
653
|
+
member_cells: { offset: 152, size: 8, alignment: 8, type: "u64" },
|
|
654
|
+
cells_cleared: { offset: 160, size: 8, alignment: 8, type: "u64" },
|
|
655
|
+
hit_cells_written: { offset: 168, size: 8, alignment: 8, type: "u64" },
|
|
656
|
+
hit_cells_cleared: { offset: 176, size: 8, alignment: 8, type: "u64" },
|
|
657
|
+
hit_cells_compared: { offset: 184, size: 8, alignment: 8, type: "u64" },
|
|
658
|
+
rows_compared: { offset: 192, size: 8, alignment: 8, type: "u64" },
|
|
659
|
+
rows_diffed: { offset: 200, size: 8, alignment: 8, type: "u64" },
|
|
660
|
+
full_path_reasons: { offset: 208, size: 4, alignment: 4, type: "u32" },
|
|
661
|
+
host_requests: { offset: 212, size: 4, alignment: 4, type: "u32" },
|
|
662
|
+
layout_rounds: { offset: 216, size: 4, alignment: 4, type: "u32" },
|
|
663
|
+
reserved: { offset: 220, size: 4, alignment: 4, type: "u32" }
|
|
635
664
|
}
|
|
636
665
|
},
|
|
637
666
|
ot_scene_cursor_state: {
|
|
@@ -1357,6 +1386,37 @@ var nativeLayouts = {
|
|
|
1357
1386
|
deadline_ns: { offset: 16, size: 8, alignment: 8, type: "u64" }
|
|
1358
1387
|
}
|
|
1359
1388
|
},
|
|
1389
|
+
ot_input_event: {
|
|
1390
|
+
size: 32,
|
|
1391
|
+
alignment: 4,
|
|
1392
|
+
fields: {
|
|
1393
|
+
kind: { offset: 0, size: 1, alignment: 1, type: "u8" },
|
|
1394
|
+
action: { offset: 1, size: 1, alignment: 1, type: "u8" },
|
|
1395
|
+
modifiers: { offset: 2, size: 1, alignment: 1, type: "u8" },
|
|
1396
|
+
flags: { offset: 3, size: 1, alignment: 1, type: "u8" },
|
|
1397
|
+
code: { offset: 4, size: 4, alignment: 4, type: "u32" },
|
|
1398
|
+
base_code: { offset: 8, size: 4, alignment: 4, type: "u32" },
|
|
1399
|
+
x: { offset: 12, size: 2, alignment: 2, type: "u16" },
|
|
1400
|
+
y: { offset: 14, size: 2, alignment: 2, type: "u16" },
|
|
1401
|
+
raw_offset: { offset: 16, size: 4, alignment: 4, type: "u32" },
|
|
1402
|
+
raw_len: { offset: 20, size: 4, alignment: 4, type: "u32" },
|
|
1403
|
+
text_offset: { offset: 24, size: 4, alignment: 4, type: "u32" },
|
|
1404
|
+
text_len: { offset: 28, size: 4, alignment: 4, type: "u32" }
|
|
1405
|
+
}
|
|
1406
|
+
},
|
|
1407
|
+
ot_input_drain: {
|
|
1408
|
+
size: 32,
|
|
1409
|
+
alignment: 8,
|
|
1410
|
+
fields: {
|
|
1411
|
+
struct_size: { offset: 0, size: 4, alignment: 4, type: "u32" },
|
|
1412
|
+
abi_version: { offset: 4, size: 4, alignment: 4, type: "u32" },
|
|
1413
|
+
consumed: { offset: 8, size: 4, alignment: 4, type: "u32" },
|
|
1414
|
+
count: { offset: 12, size: 4, alignment: 4, type: "u32" },
|
|
1415
|
+
payload_len: { offset: 16, size: 4, alignment: 4, type: "u32" },
|
|
1416
|
+
discarded: { offset: 20, size: 4, alignment: 4, type: "u32" },
|
|
1417
|
+
deadline_ns: { offset: 24, size: 8, alignment: 8, type: "u64" }
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1360
1420
|
ot_context_options: {
|
|
1361
1421
|
size: 32,
|
|
1362
1422
|
alignment: 4,
|
|
@@ -1539,7 +1599,7 @@ var nativeLayouts = {
|
|
|
1539
1599
|
}
|
|
1540
1600
|
};
|
|
1541
1601
|
var nativeConstants = {
|
|
1542
|
-
OT_CONTEXT_ABI_VERSION:
|
|
1602
|
+
OT_CONTEXT_ABI_VERSION: 2,
|
|
1543
1603
|
OT_OK: 0,
|
|
1544
1604
|
OT_INVALID_ARGUMENT: -1,
|
|
1545
1605
|
OT_UNSUPPORTED_VERSION: -2,
|
|
@@ -1724,6 +1784,9 @@ var nativeConstants = {
|
|
|
1724
1784
|
OT_SCENE_TEXT_BACKGROUND: 2,
|
|
1725
1785
|
OT_SCENE_TEXT_LINK: 4,
|
|
1726
1786
|
OT_SCENE_MUTATIONS_MAX: 4096,
|
|
1787
|
+
OT_SCENE_FULL_PATH_FORCED: 1,
|
|
1788
|
+
OT_SCENE_FULL_PATH_SCREEN: 2,
|
|
1789
|
+
OT_SCENE_FULL_PATH_IMAGES: 4,
|
|
1727
1790
|
OT_SCENE_HOOK_UPDATE: 1,
|
|
1728
1791
|
OT_SCENE_HOOK_RESIZE: 2,
|
|
1729
1792
|
OT_SCENE_HOOK_LAYOUT_CHANGED: 4,
|
|
@@ -1736,7 +1799,6 @@ var nativeConstants = {
|
|
|
1736
1799
|
OT_SCENE_FRAME_RESIZE: 2,
|
|
1737
1800
|
OT_SCENE_FRAME_LAYOUT_CHANGED: 3,
|
|
1738
1801
|
OT_SCENE_FRAME_RECORD: 4,
|
|
1739
|
-
OT_SCENE_FRAME_YIELD: 5,
|
|
1740
1802
|
OT_SCENE_GEOMETRY_PAINT: 1,
|
|
1741
1803
|
OT_SCENE_GEOMETRY_PUBLIC: 2,
|
|
1742
1804
|
OT_SCENE_PROPERTY_Z_INDEX: 1,
|
|
@@ -1754,6 +1816,7 @@ var nativeConstants = {
|
|
|
1754
1816
|
OT_SCENE_PROPERTY_RESET_BORDER_CHARACTERS: 4096,
|
|
1755
1817
|
OT_SCENE_PROPERTY_RECORD_MAX: 88,
|
|
1756
1818
|
OT_SCENE_PROPERTY_BYTES_MAX: 360448,
|
|
1819
|
+
OT_SCENE_DEBUG_FULL_FRAME: 1,
|
|
1757
1820
|
OT_SESSION_OPEN: 0,
|
|
1758
1821
|
OT_SESSION_CLOSING: 1,
|
|
1759
1822
|
OT_SESSION_CLOSED_STATE: 2,
|
|
@@ -1848,6 +1911,7 @@ var nativeConstants = {
|
|
|
1848
1911
|
OT_EDIT_HIGHLIGHT_REMOVE_REF: 2,
|
|
1849
1912
|
OT_EDIT_HIGHLIGHT_CLEAR_LINE: 3,
|
|
1850
1913
|
OT_EDIT_HIGHLIGHT_CLEAR_ALL: 4,
|
|
1914
|
+
OT_STYLE_RUN_FLAG: 2147483648,
|
|
1851
1915
|
OT_EDITOR_MOVE_UP: 0,
|
|
1852
1916
|
OT_EDITOR_MOVE_DOWN: 1,
|
|
1853
1917
|
OT_EDITOR_GOTO_LINE_END: 2,
|
|
@@ -2015,6 +2079,117 @@ var nativeConstants = {
|
|
|
2015
2079
|
OT_PUMP_OUTPUT_PENDING: 2,
|
|
2016
2080
|
OT_PUMP_WAIT_UNTIL: 3,
|
|
2017
2081
|
OT_PUMP_CLOSED: 4,
|
|
2082
|
+
OT_INPUT_KEY: 1,
|
|
2083
|
+
OT_INPUT_MOUSE: 2,
|
|
2084
|
+
OT_INPUT_PASTE: 3,
|
|
2085
|
+
OT_INPUT_FOCUS: 4,
|
|
2086
|
+
OT_INPUT_REPLY: 5,
|
|
2087
|
+
OT_INPUT_KEY_PRESS: 1,
|
|
2088
|
+
OT_INPUT_KEY_REPEAT: 2,
|
|
2089
|
+
OT_INPUT_KEY_RELEASE: 3,
|
|
2090
|
+
OT_INPUT_MOUSE_DOWN: 1,
|
|
2091
|
+
OT_INPUT_MOUSE_UP: 2,
|
|
2092
|
+
OT_INPUT_MOUSE_MOVE: 3,
|
|
2093
|
+
OT_INPUT_MOUSE_DRAG: 4,
|
|
2094
|
+
OT_INPUT_MOUSE_SCROLL: 5,
|
|
2095
|
+
OT_INPUT_MOUSE_BUTTON_NONE: 255,
|
|
2096
|
+
OT_INPUT_FOCUS_OUT: 0,
|
|
2097
|
+
OT_INPUT_FOCUS_IN: 1,
|
|
2098
|
+
OT_INPUT_MOD_SHIFT: 1,
|
|
2099
|
+
OT_INPUT_MOD_ALT: 2,
|
|
2100
|
+
OT_INPUT_MOD_CTRL: 4,
|
|
2101
|
+
OT_INPUT_MOD_SUPER: 8,
|
|
2102
|
+
OT_INPUT_MOD_HYPER: 16,
|
|
2103
|
+
OT_INPUT_MOD_META: 32,
|
|
2104
|
+
OT_INPUT_MOD_CAPS_LOCK: 64,
|
|
2105
|
+
OT_INPUT_MOD_NUM_LOCK: 128,
|
|
2106
|
+
OT_INPUT_KEY_KITTY: 1,
|
|
2107
|
+
OT_INPUT_KEY_TEXT_TRUNCATED: 2,
|
|
2108
|
+
OT_INPUT_PASTE_START: 1,
|
|
2109
|
+
OT_INPUT_PASTE_END: 2,
|
|
2110
|
+
OT_INPUT_REPLY_FRAGMENT: 1,
|
|
2111
|
+
OT_INPUT_REPLY_CURSOR_POSITION: 2,
|
|
2112
|
+
OT_INPUT_REPLY_CSI: 1,
|
|
2113
|
+
OT_INPUT_REPLY_SS3: 2,
|
|
2114
|
+
OT_INPUT_REPLY_OSC: 3,
|
|
2115
|
+
OT_INPUT_REPLY_DCS: 4,
|
|
2116
|
+
OT_INPUT_REPLY_APC: 5,
|
|
2117
|
+
OT_INPUT_KEY_ESCAPE: 27,
|
|
2118
|
+
OT_INPUT_KEY_ENTER: 13,
|
|
2119
|
+
OT_INPUT_KEY_TAB: 9,
|
|
2120
|
+
OT_INPUT_KEY_BACKSPACE: 127,
|
|
2121
|
+
OT_INPUT_KEY_INSERT: 57348,
|
|
2122
|
+
OT_INPUT_KEY_DELETE: 57349,
|
|
2123
|
+
OT_INPUT_KEY_LEFT: 57350,
|
|
2124
|
+
OT_INPUT_KEY_RIGHT: 57351,
|
|
2125
|
+
OT_INPUT_KEY_UP: 57352,
|
|
2126
|
+
OT_INPUT_KEY_DOWN: 57353,
|
|
2127
|
+
OT_INPUT_KEY_PAGE_UP: 57354,
|
|
2128
|
+
OT_INPUT_KEY_PAGE_DOWN: 57355,
|
|
2129
|
+
OT_INPUT_KEY_HOME: 57356,
|
|
2130
|
+
OT_INPUT_KEY_END: 57357,
|
|
2131
|
+
OT_INPUT_KEY_CAPS_LOCK: 57358,
|
|
2132
|
+
OT_INPUT_KEY_SCROLL_LOCK: 57359,
|
|
2133
|
+
OT_INPUT_KEY_NUM_LOCK: 57360,
|
|
2134
|
+
OT_INPUT_KEY_PRINT_SCREEN: 57361,
|
|
2135
|
+
OT_INPUT_KEY_PAUSE: 57362,
|
|
2136
|
+
OT_INPUT_KEY_MENU: 57363,
|
|
2137
|
+
OT_INPUT_KEY_F1: 57364,
|
|
2138
|
+
OT_INPUT_KEY_F35: 57398,
|
|
2139
|
+
OT_INPUT_KEY_KP_0: 57399,
|
|
2140
|
+
OT_INPUT_KEY_KP_9: 57408,
|
|
2141
|
+
OT_INPUT_KEY_KP_DECIMAL: 57409,
|
|
2142
|
+
OT_INPUT_KEY_KP_DIVIDE: 57410,
|
|
2143
|
+
OT_INPUT_KEY_KP_MULTIPLY: 57411,
|
|
2144
|
+
OT_INPUT_KEY_KP_SUBTRACT: 57412,
|
|
2145
|
+
OT_INPUT_KEY_KP_ADD: 57413,
|
|
2146
|
+
OT_INPUT_KEY_KP_ENTER: 57414,
|
|
2147
|
+
OT_INPUT_KEY_KP_EQUAL: 57415,
|
|
2148
|
+
OT_INPUT_KEY_KP_SEPARATOR: 57416,
|
|
2149
|
+
OT_INPUT_KEY_KP_LEFT: 57417,
|
|
2150
|
+
OT_INPUT_KEY_KP_RIGHT: 57418,
|
|
2151
|
+
OT_INPUT_KEY_KP_UP: 57419,
|
|
2152
|
+
OT_INPUT_KEY_KP_DOWN: 57420,
|
|
2153
|
+
OT_INPUT_KEY_KP_PAGE_UP: 57421,
|
|
2154
|
+
OT_INPUT_KEY_KP_PAGE_DOWN: 57422,
|
|
2155
|
+
OT_INPUT_KEY_KP_HOME: 57423,
|
|
2156
|
+
OT_INPUT_KEY_KP_END: 57424,
|
|
2157
|
+
OT_INPUT_KEY_KP_INSERT: 57425,
|
|
2158
|
+
OT_INPUT_KEY_KP_DELETE: 57426,
|
|
2159
|
+
OT_INPUT_KEY_KP_BEGIN: 57427,
|
|
2160
|
+
OT_INPUT_KEY_MEDIA_PLAY: 57428,
|
|
2161
|
+
OT_INPUT_KEY_MEDIA_PAUSE: 57429,
|
|
2162
|
+
OT_INPUT_KEY_MEDIA_PLAY_PAUSE: 57430,
|
|
2163
|
+
OT_INPUT_KEY_MEDIA_REVERSE: 57431,
|
|
2164
|
+
OT_INPUT_KEY_MEDIA_STOP: 57432,
|
|
2165
|
+
OT_INPUT_KEY_MEDIA_FAST_FORWARD: 57433,
|
|
2166
|
+
OT_INPUT_KEY_MEDIA_REWIND: 57434,
|
|
2167
|
+
OT_INPUT_KEY_MEDIA_TRACK_NEXT: 57435,
|
|
2168
|
+
OT_INPUT_KEY_MEDIA_TRACK_PREVIOUS: 57436,
|
|
2169
|
+
OT_INPUT_KEY_MEDIA_RECORD: 57437,
|
|
2170
|
+
OT_INPUT_KEY_LOWER_VOLUME: 57438,
|
|
2171
|
+
OT_INPUT_KEY_RAISE_VOLUME: 57439,
|
|
2172
|
+
OT_INPUT_KEY_MUTE_VOLUME: 57440,
|
|
2173
|
+
OT_INPUT_KEY_LEFT_SHIFT: 57441,
|
|
2174
|
+
OT_INPUT_KEY_LEFT_CONTROL: 57442,
|
|
2175
|
+
OT_INPUT_KEY_LEFT_ALT: 57443,
|
|
2176
|
+
OT_INPUT_KEY_LEFT_SUPER: 57444,
|
|
2177
|
+
OT_INPUT_KEY_LEFT_HYPER: 57445,
|
|
2178
|
+
OT_INPUT_KEY_LEFT_META: 57446,
|
|
2179
|
+
OT_INPUT_KEY_RIGHT_SHIFT: 57447,
|
|
2180
|
+
OT_INPUT_KEY_RIGHT_CONTROL: 57448,
|
|
2181
|
+
OT_INPUT_KEY_RIGHT_ALT: 57449,
|
|
2182
|
+
OT_INPUT_KEY_RIGHT_SUPER: 57450,
|
|
2183
|
+
OT_INPUT_KEY_RIGHT_HYPER: 57451,
|
|
2184
|
+
OT_INPUT_KEY_RIGHT_META: 57452,
|
|
2185
|
+
OT_INPUT_KEY_ISO_LEVEL3_SHIFT: 57453,
|
|
2186
|
+
OT_INPUT_KEY_ISO_LEVEL5_SHIFT: 57454,
|
|
2187
|
+
OT_INPUT_EXPECT_REPLIES: 1,
|
|
2188
|
+
OT_INPUT_EXPECT_KITTY_KEYBOARD: 2,
|
|
2189
|
+
OT_INPUT_EXPECT_CURSOR_POSITION: 4,
|
|
2190
|
+
OT_INPUT_EVENTS_MIN: 4,
|
|
2191
|
+
OT_INPUT_PAYLOAD_BYTES_MIN: 4384,
|
|
2192
|
+
OT_INPUT_TIMEOUT_NS: 20000000,
|
|
2018
2193
|
OT_DIAGNOSTIC_MESSAGE_BYTES: 4096,
|
|
2019
2194
|
OT_DIAGNOSTIC_TRUNCATED: 1,
|
|
2020
2195
|
OT_SCENE_RECORD_BYTES_MAX: 67108864,
|
|
@@ -2037,6 +2212,7 @@ var nativeConstants = {
|
|
|
2037
2212
|
OT_SCENE_RECORD_GRAYSCALE_FOREGROUND: 1,
|
|
2038
2213
|
OT_SCENE_RECORD_GRAYSCALE_BACKGROUND: 2,
|
|
2039
2214
|
OT_SCENE_RECORD_GRAYSCALE_SUPERSAMPLED: 4,
|
|
2215
|
+
OT_INPUT_RESET_KEEP_REPLY: 1,
|
|
2040
2216
|
OT_CLIPBOARD_OPERATION_PENDING: 0,
|
|
2041
2217
|
OT_CLIPBOARD_OPERATION_READ: 1,
|
|
2042
2218
|
OT_CLIPBOARD_OPERATION_EMPTY: 2,
|
|
@@ -2069,7 +2245,6 @@ var nativeConstants = {
|
|
|
2069
2245
|
OT_CLIPBOARD_SHUTDOWN_READY: 1,
|
|
2070
2246
|
OT_CLIPBOARD_SHUTDOWN_INVALID_HANDLE: 2
|
|
2071
2247
|
};
|
|
2072
|
-
var nativeStyleEnumMaxima = [2, 3, 5, 8, 8, 8, 2, 2, 2, 1, 1];
|
|
2073
2248
|
|
|
2074
2249
|
// src/platform/ffi.ts
|
|
2075
2250
|
import { createRequire } from "node:module";
|
|
@@ -5561,7 +5736,6 @@ var NativeSceneFrame2;
|
|
|
5561
5736
|
NativeSceneFrame[NativeSceneFrame["Resize"] = nativeConstants.OT_SCENE_FRAME_RESIZE] = "Resize";
|
|
5562
5737
|
NativeSceneFrame[NativeSceneFrame["LayoutChanged"] = nativeConstants.OT_SCENE_FRAME_LAYOUT_CHANGED] = "LayoutChanged";
|
|
5563
5738
|
NativeSceneFrame[NativeSceneFrame["Record"] = nativeConstants.OT_SCENE_FRAME_RECORD] = "Record";
|
|
5564
|
-
NativeSceneFrame[NativeSceneFrame["Yield"] = nativeConstants.OT_SCENE_FRAME_YIELD] = "Yield";
|
|
5565
5739
|
})(NativeSceneFrame2 ||= {});
|
|
5566
5740
|
var NativeScenePaintPhase2;
|
|
5567
5741
|
((NativeScenePaintPhase) => {
|
|
@@ -5854,6 +6028,20 @@ var processLogLibraries = [];
|
|
|
5854
6028
|
var globalTraceSymbols = null;
|
|
5855
6029
|
var globalFFILogPath = null;
|
|
5856
6030
|
var exitHandlerRegistered = false;
|
|
6031
|
+
function readFrameWork(layout, output, words) {
|
|
6032
|
+
const result = {};
|
|
6033
|
+
let counting = false;
|
|
6034
|
+
for (const [field, { offset, type }] of Object.entries(layout.fields)) {
|
|
6035
|
+
if (field === "reserved")
|
|
6036
|
+
break;
|
|
6037
|
+
counting ||= field === "work_frame_id";
|
|
6038
|
+
if (!counting)
|
|
6039
|
+
continue;
|
|
6040
|
+
const name = field.replace(/_(.)/g, (_, letter) => letter.toUpperCase());
|
|
6041
|
+
result[name] = type === "u64" ? toNumber(output[offset / 8]) : words[offset / 4];
|
|
6042
|
+
}
|
|
6043
|
+
return result;
|
|
6044
|
+
}
|
|
5857
6045
|
function toNumber(value) {
|
|
5858
6046
|
return typeof value === "bigint" ? Number(value) : value;
|
|
5859
6047
|
}
|
|
@@ -6310,35 +6498,24 @@ function encodeScenePaint(paint, scratch) {
|
|
|
6310
6498
|
record[layout.fields.z_index.offset / 4] = toFFII32(zIndex, "Scene zIndex");
|
|
6311
6499
|
fields |= nativeConstants.OT_SCENE_PROPERTY_Z_INDEX;
|
|
6312
6500
|
}
|
|
6313
|
-
const
|
|
6314
|
-
if (
|
|
6315
|
-
|
|
6316
|
-
if (opacity < 0 || opacity > 1)
|
|
6317
|
-
throw new RangeError("Scene opacity must be within 0..1");
|
|
6318
|
-
floats[layout.fields.opacity.offset / 4] = opacity;
|
|
6501
|
+
const opacity = paint.opacity;
|
|
6502
|
+
if (opacity !== undefined) {
|
|
6503
|
+
floats[layout.fields.opacity.offset / 4] = toFFIF32(opacity, "Scene opacity");
|
|
6319
6504
|
fields |= nativeConstants.OT_SCENE_PROPERTY_OPACITY;
|
|
6320
6505
|
}
|
|
6321
6506
|
const translateX = paint.translateX;
|
|
6322
6507
|
const translateY = paint.translateY;
|
|
6323
6508
|
if (translateX !== undefined) {
|
|
6324
|
-
|
|
6325
|
-
throw new RangeError("Scene translations must be finite numbers");
|
|
6326
|
-
}
|
|
6327
|
-
doubles[layout.fields.translate_x.offset / 8] = translateX;
|
|
6509
|
+
doubles[layout.fields.translate_x.offset / 8] = toFFIF32(translateX, "Scene translateX");
|
|
6328
6510
|
fields |= nativeConstants.OT_SCENE_PROPERTY_TRANSLATE_X;
|
|
6329
6511
|
}
|
|
6330
6512
|
if (translateY !== undefined) {
|
|
6331
|
-
|
|
6332
|
-
throw new RangeError("Scene translations must be finite numbers");
|
|
6333
|
-
doubles[layout.fields.translate_y.offset / 8] = translateY;
|
|
6513
|
+
doubles[layout.fields.translate_y.offset / 8] = toFFIF32(translateY, "Scene translateY");
|
|
6334
6514
|
fields |= nativeConstants.OT_SCENE_PROPERTY_TRANSLATE_Y;
|
|
6335
6515
|
}
|
|
6336
|
-
const
|
|
6337
|
-
if (
|
|
6338
|
-
|
|
6339
|
-
if (borderSides > 15)
|
|
6340
|
-
throw new RangeError("Scene border sides must use four edge bits");
|
|
6341
|
-
record[layout.fields.border_sides.offset / 4] = borderSides;
|
|
6516
|
+
const border = paint.border;
|
|
6517
|
+
if (border !== undefined) {
|
|
6518
|
+
record[layout.fields.border_sides.offset / 4] = toSafeFFIU32Length(border, "Scene border");
|
|
6342
6519
|
fields |= nativeConstants.OT_SCENE_PROPERTY_BORDER;
|
|
6343
6520
|
}
|
|
6344
6521
|
const shouldFill = paint.shouldFill;
|
|
@@ -6382,34 +6559,6 @@ function encodeScenePaint(paint, scratch) {
|
|
|
6382
6559
|
}
|
|
6383
6560
|
return fields;
|
|
6384
6561
|
}
|
|
6385
|
-
function validateSceneStyle(group, kind, edge, unit, value, flags) {
|
|
6386
|
-
const c = nativeConstants;
|
|
6387
|
-
if (group > c.OT_STYLE_DIMENSION || group === c.OT_STYLE_BORDER || group !== c.OT_STYLE_DIMENSION && flags !== 0 || flags > c.OT_STYLE_DISABLE_FLEX_SHRINK) {
|
|
6388
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6389
|
-
}
|
|
6390
|
-
if ((group === c.OT_STYLE_ENUM || group === c.OT_STYLE_FLOAT) && (edge !== c.OT_EDGE_NONE || unit !== c.OT_UNIT_UNDEFINED)) {
|
|
6391
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6392
|
-
}
|
|
6393
|
-
if (group === c.OT_STYLE_DIMENSION && edge !== c.OT_EDGE_NONE)
|
|
6394
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6395
|
-
let valid = false;
|
|
6396
|
-
switch (group) {
|
|
6397
|
-
case c.OT_STYLE_ENUM:
|
|
6398
|
-
valid = kind < nativeStyleEnumMaxima.length && value <= nativeStyleEnumMaxima[kind];
|
|
6399
|
-
break;
|
|
6400
|
-
case c.OT_STYLE_FLOAT:
|
|
6401
|
-
valid = kind <= c.OT_STYLE_FLOAT_ASPECT_RATIO;
|
|
6402
|
-
break;
|
|
6403
|
-
case c.OT_STYLE_VALUE:
|
|
6404
|
-
valid = kind <= c.OT_STYLE_VALUE_GAP && unit <= c.OT_UNIT_AUTO && (kind < c.OT_STYLE_VALUE_MARGIN || edge <= (kind === c.OT_STYLE_VALUE_GAP ? c.OT_GUTTER_ALL : c.OT_EDGE_ALL)) && !(unit === c.OT_UNIT_AUTO && (kind >= c.OT_STYLE_VALUE_MIN_WIDTH && kind <= c.OT_STYLE_VALUE_MAX_HEIGHT || kind === c.OT_STYLE_VALUE_PADDING || kind === c.OT_STYLE_VALUE_GAP));
|
|
6405
|
-
break;
|
|
6406
|
-
case c.OT_STYLE_DIMENSION:
|
|
6407
|
-
valid = kind <= c.OT_DIMENSION_HEIGHT && unit <= c.OT_UNIT_AUTO;
|
|
6408
|
-
break;
|
|
6409
|
-
}
|
|
6410
|
-
if (!valid)
|
|
6411
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6412
|
-
}
|
|
6413
6562
|
var scenePropertyWords = [
|
|
6414
6563
|
["z_index", nativeConstants.OT_SCENE_PROPERTY_Z_INDEX],
|
|
6415
6564
|
["opacity", nativeConstants.OT_SCENE_PROPERTY_OPACITY],
|
|
@@ -6541,7 +6690,8 @@ class SceneStaging {
|
|
|
6541
6690
|
unit = toSafeFFIU32Length(unit, "Scene style unit");
|
|
6542
6691
|
value = SceneStaging.checkStyleValue(group, value);
|
|
6543
6692
|
flags = toSafeFFIU32Length(flags, "Scene style flags");
|
|
6544
|
-
|
|
6693
|
+
if (Math.max(group, kind, edge, unit) > 255)
|
|
6694
|
+
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6545
6695
|
if (group === nativeConstants.OT_STYLE_VALUE && kind < nativeConstants.OT_STYLE_VALUE_MARGIN)
|
|
6546
6696
|
edge = 0;
|
|
6547
6697
|
const handle = encodedContextHandle(context, node);
|
|
@@ -9584,6 +9734,41 @@ class FFIRenderLib2 {
|
|
|
9584
9734
|
nativeResult("ot_session_pump_exit", this.opentui.symbols.ot_session_pump_exit(pointer, handle, output));
|
|
9585
9735
|
return output[0];
|
|
9586
9736
|
}
|
|
9737
|
+
sessionInputFeed(context, session, bytes, nowNs, records, payload) {
|
|
9738
|
+
const layout = nativeLayouts.ot_input_drain;
|
|
9739
|
+
const handle = encodeContextHandle(context, session);
|
|
9740
|
+
const input = sessionBytes(bytes, "Session input length");
|
|
9741
|
+
const now = toFFIU64(nowNs, "Session input nowNs");
|
|
9742
|
+
const recordView = sessionBytes(records, "Session input records length");
|
|
9743
|
+
const payloadView = sessionBytes(payload, "Session input payload length");
|
|
9744
|
+
if (recordView.byteOffset % nativeLayouts.ot_input_event.alignment !== 0) {
|
|
9745
|
+
throw new RangeError("Session input records must be aligned to ot_input_event");
|
|
9746
|
+
}
|
|
9747
|
+
const capacity = Math.floor(recordView.byteLength / nativeLayouts.ot_input_event.size);
|
|
9748
|
+
const output = new BigUint64Array(layout.size / 8);
|
|
9749
|
+
const words = new Uint32Array(output.buffer);
|
|
9750
|
+
words[layout.fields.struct_size.offset / 4] = layout.size;
|
|
9751
|
+
words[layout.fields.abi_version.offset / 4] = nativeConstants.OT_CONTEXT_ABI_VERSION;
|
|
9752
|
+
const pointer = this.nativeContextPointer(context, "ot_session_input_feed");
|
|
9753
|
+
nativeResult("ot_session_input_feed", this.opentui.symbols.ot_session_input_feed(pointer, handle, input.byteLength === 0 ? null : input, input.byteLength, now, recordView, capacity, payloadView, payloadView.byteLength, output));
|
|
9754
|
+
const deadline = output[layout.fields.deadline_ns.offset / 8];
|
|
9755
|
+
return {
|
|
9756
|
+
consumed: words[layout.fields.consumed.offset / 4],
|
|
9757
|
+
count: words[layout.fields.count.offset / 4],
|
|
9758
|
+
deadlineNs: deadline === 0n ? null : deadline
|
|
9759
|
+
};
|
|
9760
|
+
}
|
|
9761
|
+
sessionInputExpect(context, session, flags) {
|
|
9762
|
+
const handle = encodeContextHandle(context, session);
|
|
9763
|
+
const value = toSafeFFIU32Length(flags, "Session input expectations");
|
|
9764
|
+
const pointer = this.nativeContextPointer(context, "ot_session_input_expect");
|
|
9765
|
+
nativeResult("ot_session_input_expect", this.opentui.symbols.ot_session_input_expect(pointer, handle, value));
|
|
9766
|
+
}
|
|
9767
|
+
sessionInputReset(context, session, flags) {
|
|
9768
|
+
const handle = encodeContextHandle(context, session);
|
|
9769
|
+
const pointer = this.nativeContextPointer(context, "ot_session_input_reset");
|
|
9770
|
+
nativeResult("ot_session_input_reset", this.opentui.symbols.ot_session_input_reset(pointer, handle, flags));
|
|
9771
|
+
}
|
|
9587
9772
|
terminalFlushInput() {
|
|
9588
9773
|
nativeResult("ot_terminal_flush_input", this.opentui.symbols.ot_terminal_flush_input());
|
|
9589
9774
|
}
|
|
@@ -10362,7 +10547,7 @@ class FFIRenderLib2 {
|
|
|
10362
10547
|
this.sceneHooksRecord ??= scratch;
|
|
10363
10548
|
}
|
|
10364
10549
|
}
|
|
10365
|
-
sceneFrameStep(context, session, previous, options,
|
|
10550
|
+
sceneFrameStep(context, session, previous, options, recording = null) {
|
|
10366
10551
|
const layout = nativeLayouts.ot_scene_frame_options;
|
|
10367
10552
|
this.getYogaHost().assertMutable();
|
|
10368
10553
|
const scratch = this.sceneFrameRecord ?? createSceneFrameRecord();
|
|
@@ -10376,9 +10561,6 @@ class FFIRenderLib2 {
|
|
|
10376
10561
|
config[layout.fields.max_layout_rounds.offset / 4] = toSafeFFIU32Length(options.maxLayoutRounds, "Scene layout round limit");
|
|
10377
10562
|
config[layout.fields.max_host_requests.offset / 4] = toSafeFFIU32Length(options.maxHostRequests, "Scene host request limit");
|
|
10378
10563
|
config[layout.fields.preserve_unwritten.offset / 4] = toFFIBool(options.preserveUnwritten ?? false, "Scene preserve unwritten cells");
|
|
10379
|
-
const workBudget = maxWorkItems === undefined ? 4294967295 : toSafeFFIU32Length(maxWorkItems, "Scene work budget");
|
|
10380
|
-
if (workBudget === 0)
|
|
10381
|
-
throw new RangeError("Scene work budget must be positive");
|
|
10382
10564
|
const recordingLength = recording === null ? 0 : toSafeFFIU32Length(recording.byteLength, "Scene recording");
|
|
10383
10565
|
const recordingView = recordingLength === 0 ? null : recording;
|
|
10384
10566
|
const output = encodeSceneFrameRequest(context, previous, scratch);
|
|
@@ -10388,9 +10570,9 @@ class FFIRenderLib2 {
|
|
|
10388
10570
|
this.getYogaHost().flushSceneMutations();
|
|
10389
10571
|
const pointer = this.nativeContextPointer(context, operation);
|
|
10390
10572
|
if (measures) {
|
|
10391
|
-
this.sceneFrameStepWithMeasures(context, pointer, handle, previous === null ? null : output, config, output,
|
|
10573
|
+
this.sceneFrameStepWithMeasures(context, pointer, handle, previous === null ? null : output, config, output, recordingView, recordingLength, geometry);
|
|
10392
10574
|
} else {
|
|
10393
|
-
nativeResult(operation, this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous === null ? null : output, config,
|
|
10575
|
+
nativeResult(operation, this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous === null ? null : output, config, recordingView, recordingLength, output, geometry));
|
|
10394
10576
|
}
|
|
10395
10577
|
try {
|
|
10396
10578
|
const fields = nativeLayouts.ot_scene_frame_geometry.fields;
|
|
@@ -10408,8 +10590,7 @@ class FFIRenderLib2 {
|
|
|
10408
10590
|
width: words[nativeLayouts.ot_scene_frame_request.fields.width.offset / 4],
|
|
10409
10591
|
height: words[nativeLayouts.ot_scene_frame_request.fields.height.offset / 4],
|
|
10410
10592
|
paintLayout: flags & nativeConstants.OT_SCENE_GEOMETRY_PAINT ? decodeSceneLayout(scratch.geometryValues, scratch.geometryCoordinates, fields.paint.offset) : undefined,
|
|
10411
|
-
publicLayout: flags & nativeConstants.OT_SCENE_GEOMETRY_PUBLIC ? decodeSceneLayout(scratch.geometryValues, scratch.geometryCoordinates, fields.public_layout.offset) : undefined
|
|
10412
|
-
geometryRevision: undefined
|
|
10593
|
+
publicLayout: flags & nativeConstants.OT_SCENE_GEOMETRY_PUBLIC ? decodeSceneLayout(scratch.geometryValues, scratch.geometryCoordinates, fields.public_layout.offset) : undefined
|
|
10413
10594
|
};
|
|
10414
10595
|
} catch (error) {
|
|
10415
10596
|
const livePointer = this.nativeContexts.get(context);
|
|
@@ -10421,11 +10602,11 @@ class FFIRenderLib2 {
|
|
|
10421
10602
|
this.sceneFrameRecord ??= scratch;
|
|
10422
10603
|
}
|
|
10423
10604
|
}
|
|
10424
|
-
sceneFrameStepWithMeasures(context, pointer, handle, previous, config, output,
|
|
10605
|
+
sceneFrameStepWithMeasures(context, pointer, handle, previous, config, output, recording, recordingLength, geometry) {
|
|
10425
10606
|
let accepted = false;
|
|
10426
10607
|
try {
|
|
10427
10608
|
this.getYogaHost().runMutation(() => {
|
|
10428
|
-
nativeResult("ot_scene_frame_step_with_geometry", this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous, config,
|
|
10609
|
+
nativeResult("ot_scene_frame_step_with_geometry", this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous, config, recording, recordingLength, output, geometry));
|
|
10429
10610
|
accepted = true;
|
|
10430
10611
|
});
|
|
10431
10612
|
} catch (error) {
|
|
@@ -10515,6 +10696,12 @@ class FFIRenderLib2 {
|
|
|
10515
10696
|
nativeResult("ot_scene_hit_test", this.opentui.symbols.ot_scene_hit_test(pointer, handle, x, y, output));
|
|
10516
10697
|
return output[0];
|
|
10517
10698
|
}
|
|
10699
|
+
sceneSetDebugFlags(context, session, flags) {
|
|
10700
|
+
const handle = encodeContextHandle(context, session);
|
|
10701
|
+
const value = toSafeFFIU32Length(flags, "Scene debug flags");
|
|
10702
|
+
const pointer = this.nativeContextPointer(context, "ot_scene_set_debug_flags");
|
|
10703
|
+
nativeResult("ot_scene_set_debug_flags", this.opentui.symbols.ot_scene_set_debug_flags(pointer, handle, value));
|
|
10704
|
+
}
|
|
10518
10705
|
sceneGetStats(context, session) {
|
|
10519
10706
|
const layout = nativeLayouts.ot_scene_stats;
|
|
10520
10707
|
const handle = encodeContextHandle(context, session);
|
|
@@ -10532,7 +10719,8 @@ class FFIRenderLib2 {
|
|
|
10532
10719
|
cellsUpdated: words[layout.fields.cells_updated.offset / 4],
|
|
10533
10720
|
averageCellsUpdated: words[layout.fields.average_cells_updated.offset / 4],
|
|
10534
10721
|
nativeRenderTime: words[layout.fields.render_time_valid.offset / 4] !== 0 ? times[layout.fields.render_time.offset / 8] : undefined,
|
|
10535
|
-
nativeStdoutWriteTime: words[layout.fields.stdout_write_time_valid.offset / 4] !== 0 ? times[layout.fields.stdout_write_time.offset / 8] : undefined
|
|
10722
|
+
nativeStdoutWriteTime: words[layout.fields.stdout_write_time_valid.offset / 4] !== 0 ? times[layout.fields.stdout_write_time.offset / 8] : undefined,
|
|
10723
|
+
frameWork: readFrameWork(layout, output, words)
|
|
10536
10724
|
};
|
|
10537
10725
|
}
|
|
10538
10726
|
sceneGetCursorState(context, session) {
|
|
@@ -12607,7 +12795,7 @@ var Yoga = {
|
|
|
12607
12795
|
};
|
|
12608
12796
|
var yoga_default = Yoga;
|
|
12609
12797
|
|
|
12610
|
-
export { nativeConstants, toArrayBuffer, singleton, getSingleton, destroySingleton, envRegistry2, registerEnvVar2, clearEnvCache2, generateEnvMarkdown2, generateEnvColored2, env2, stringWidth, resolveBundledFilePath2, Worker, TextAttributes2, ATTRIBUTE_BASE_BITS2, ATTRIBUTE_BASE_MASK2, getBaseAttributes2, DebugOverlayCorner2, TargetChannel2, DEFAULT_FOREGROUND_RGB2, DEFAULT_BACKGROUND_RGB2, normalizeIndexedColorIndex2, ansi256IndexToRgb2, RGBA2, normalizeColorValue2, hexToRgb2, rgbToHex2, hsvToRgb2, parseColor2, createTextAttributes2, attributesWithLink2, getLinkId2, visualizeRenderableTree2, isStyledText2, StyledText2, stringToStyledText2, black2, red2, green2, yellow2, blue2, magenta2, cyan2, white2, brightBlack2, brightRed2, brightGreen2, brightYellow2, brightBlue2, brightMagenta2, brightCyan2, brightWhite2, bgBlack2, bgRed2, bgGreen2, bgYellow2, bgBlue2, bgMagenta2, bgCyan2, bgWhite2, bold2, italic2, underline2, strikethrough2, dim2, reverse2, blink2, fg2, bg2, link2, t2, YogaEnumKind, YogaFloatKind, YogaValueKind, sceneSetEnum, sceneGetEnum, sceneSetFloat, sceneGetFloat, sceneSetValue, sceneGetValue, sceneSetDimension, UNDEFINED_VALUE, parseYogaValue, SpanInfoStruct, NativeAudioStreamFormat2, NativeAudioStreamState2, NativeAudioStreamStateNames, NativeAudioStreamCloseReason2, isBunfsPath, normalizeBunfsPath, resolveDefaultParserAsset, resolveDefaultTreeSitterWorkerPath, resolveTreeSitterWasm, NativeAudioStreamState3, NativeAudioStreamCloseReason3, NativeAudioStreamFormat3, MAX_LINK_URL_BYTES2, NativeTextViewCommand2, NativeEditCommand2, NativeEditPositionQuery2, NativeEditorStyleMask2, NativeEditHighlightOperation2, NativeEditorCommand2, NativeEditorSelectionOperation2, NativeEditorPositionQuery2, NativeEditEvent2, NativeStyleGroup, NativeStyleFlags, NATIVE_EDGE_NONE2, NativeBorder2, NativeSceneHook2, NativeSceneFrame2, NativeScenePaintPhase2, NATIVE_BUFFER_TEXT_BYTES_MAX2, NativeSessionState2, NativeSessionRenderStatus2, NATIVE_SESSION_CONTROL_PACKET_BYTES2, NativeSessionTerminalPhase2, NativeSessionPumpStatus2, NativeStatus2, NativeError2, NativeClipboardOperationStatus2, NativeClipboardStartStatus2, NativeClipboardCancelStatus2, NativeClipboardCopyStatus2, NativeClipboardDestroyStatus2, NativeClipboardShutdownStatus2, SceneStaging, NativePaintRecorder, LogLevel2, FFIRenderLib2, setRenderLibPath2, resolveRenderLib2, Align2, BoxSizing2, Dimension2, Direction2, Display2, Edge2, Errata2, ExperimentalFeature2, FlexDirection2, Gutter2, Justify2, LogLevel3, MeasureMode2, NodeType2, Overflow2, PositionType2, Unit2, Wrap2, ALIGN_AUTO2, ALIGN_FLEX_START2, ALIGN_CENTER2, ALIGN_FLEX_END2, ALIGN_STRETCH2, ALIGN_BASELINE2, ALIGN_SPACE_BETWEEN2, ALIGN_SPACE_AROUND2, ALIGN_SPACE_EVENLY2, BOX_SIZING_BORDER_BOX2, BOX_SIZING_CONTENT_BOX2, DIMENSION_WIDTH2, DIMENSION_HEIGHT2, DIRECTION_INHERIT2, DIRECTION_LTR2, DIRECTION_RTL2, DISPLAY_FLEX2, DISPLAY_NONE2, DISPLAY_CONTENTS2, EDGE_LEFT2, EDGE_TOP2, EDGE_RIGHT2, EDGE_BOTTOM2, EDGE_START2, EDGE_END2, EDGE_HORIZONTAL2, EDGE_VERTICAL2, EDGE_ALL2, ERRATA_NONE2, ERRATA_STRETCH_FLEX_BASIS2, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING2, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE2, ERRATA_ALL2, ERRATA_CLASSIC2, EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS2, FLEX_DIRECTION_COLUMN2, FLEX_DIRECTION_COLUMN_REVERSE2, FLEX_DIRECTION_ROW2, FLEX_DIRECTION_ROW_REVERSE2, GUTTER_COLUMN2, GUTTER_ROW2, GUTTER_ALL2, JUSTIFY_FLEX_START2, JUSTIFY_CENTER2, JUSTIFY_FLEX_END2, JUSTIFY_SPACE_BETWEEN2, JUSTIFY_SPACE_AROUND2, JUSTIFY_SPACE_EVENLY2, LOG_LEVEL_ERROR2, LOG_LEVEL_WARN2, LOG_LEVEL_INFO2, LOG_LEVEL_DEBUG2, LOG_LEVEL_VERBOSE2, LOG_LEVEL_FATAL2, MEASURE_MODE_UNDEFINED2, MEASURE_MODE_EXACTLY2, MEASURE_MODE_AT_MOST2, NODE_TYPE_DEFAULT2, NODE_TYPE_TEXT2, OVERFLOW_VISIBLE2, OVERFLOW_HIDDEN2, OVERFLOW_SCROLL2, POSITION_TYPE_STATIC2, POSITION_TYPE_RELATIVE2, POSITION_TYPE_ABSOLUTE2, UNIT_UNDEFINED2, UNIT_POINT2, UNIT_PERCENT2, UNIT_AUTO2, WRAP_NO_WRAP2, WRAP_WRAP2, WRAP_WRAP_REVERSE2, YogaStatus2, YogaError2, Config2, Node2, exports_yoga, yoga_default };
|
|
12798
|
+
export { nativeLayouts, nativeConstants, toArrayBuffer, singleton, getSingleton, destroySingleton, envRegistry2, registerEnvVar2, clearEnvCache2, generateEnvMarkdown2, generateEnvColored2, env2, stringWidth, resolveBundledFilePath2, Worker, TextAttributes2, ATTRIBUTE_BASE_BITS2, ATTRIBUTE_BASE_MASK2, getBaseAttributes2, DebugOverlayCorner2, TargetChannel2, DEFAULT_FOREGROUND_RGB2, DEFAULT_BACKGROUND_RGB2, normalizeIndexedColorIndex2, ansi256IndexToRgb2, RGBA2, normalizeColorValue2, hexToRgb2, rgbToHex2, hsvToRgb2, parseColor2, createTextAttributes2, attributesWithLink2, getLinkId2, visualizeRenderableTree2, isStyledText2, StyledText2, stringToStyledText2, black2, red2, green2, yellow2, blue2, magenta2, cyan2, white2, brightBlack2, brightRed2, brightGreen2, brightYellow2, brightBlue2, brightMagenta2, brightCyan2, brightWhite2, bgBlack2, bgRed2, bgGreen2, bgYellow2, bgBlue2, bgMagenta2, bgCyan2, bgWhite2, bold2, italic2, underline2, strikethrough2, dim2, reverse2, blink2, fg2, bg2, link2, t2, YogaEnumKind, YogaFloatKind, YogaValueKind, sceneSetEnum, sceneGetEnum, sceneSetFloat, sceneGetFloat, sceneSetValue, sceneGetValue, sceneSetDimension, UNDEFINED_VALUE, parseYogaValue, SpanInfoStruct, NativeAudioStreamFormat2, NativeAudioStreamState2, NativeAudioStreamStateNames, NativeAudioStreamCloseReason2, isBunfsPath, normalizeBunfsPath, resolveDefaultParserAsset, resolveDefaultTreeSitterWorkerPath, resolveTreeSitterWasm, NativeAudioStreamState3, NativeAudioStreamCloseReason3, NativeAudioStreamFormat3, MAX_LINK_URL_BYTES2, NativeTextViewCommand2, NativeEditCommand2, NativeEditPositionQuery2, NativeEditorStyleMask2, NativeEditHighlightOperation2, NativeEditorCommand2, NativeEditorSelectionOperation2, NativeEditorPositionQuery2, NativeEditEvent2, NativeStyleGroup, NativeStyleFlags, NATIVE_EDGE_NONE2, NativeBorder2, NativeSceneHook2, NativeSceneFrame2, NativeScenePaintPhase2, NATIVE_BUFFER_TEXT_BYTES_MAX2, NativeSessionState2, NativeSessionRenderStatus2, NATIVE_SESSION_CONTROL_PACKET_BYTES2, NativeSessionTerminalPhase2, NativeSessionPumpStatus2, NativeStatus2, NativeError2, NativeClipboardOperationStatus2, NativeClipboardStartStatus2, NativeClipboardCancelStatus2, NativeClipboardCopyStatus2, NativeClipboardDestroyStatus2, NativeClipboardShutdownStatus2, SceneStaging, NativePaintRecorder, LogLevel2, FFIRenderLib2, setRenderLibPath2, resolveRenderLib2, Align2, BoxSizing2, Dimension2, Direction2, Display2, Edge2, Errata2, ExperimentalFeature2, FlexDirection2, Gutter2, Justify2, LogLevel3, MeasureMode2, NodeType2, Overflow2, PositionType2, Unit2, Wrap2, ALIGN_AUTO2, ALIGN_FLEX_START2, ALIGN_CENTER2, ALIGN_FLEX_END2, ALIGN_STRETCH2, ALIGN_BASELINE2, ALIGN_SPACE_BETWEEN2, ALIGN_SPACE_AROUND2, ALIGN_SPACE_EVENLY2, BOX_SIZING_BORDER_BOX2, BOX_SIZING_CONTENT_BOX2, DIMENSION_WIDTH2, DIMENSION_HEIGHT2, DIRECTION_INHERIT2, DIRECTION_LTR2, DIRECTION_RTL2, DISPLAY_FLEX2, DISPLAY_NONE2, DISPLAY_CONTENTS2, EDGE_LEFT2, EDGE_TOP2, EDGE_RIGHT2, EDGE_BOTTOM2, EDGE_START2, EDGE_END2, EDGE_HORIZONTAL2, EDGE_VERTICAL2, EDGE_ALL2, ERRATA_NONE2, ERRATA_STRETCH_FLEX_BASIS2, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING2, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE2, ERRATA_ALL2, ERRATA_CLASSIC2, EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS2, FLEX_DIRECTION_COLUMN2, FLEX_DIRECTION_COLUMN_REVERSE2, FLEX_DIRECTION_ROW2, FLEX_DIRECTION_ROW_REVERSE2, GUTTER_COLUMN2, GUTTER_ROW2, GUTTER_ALL2, JUSTIFY_FLEX_START2, JUSTIFY_CENTER2, JUSTIFY_FLEX_END2, JUSTIFY_SPACE_BETWEEN2, JUSTIFY_SPACE_AROUND2, JUSTIFY_SPACE_EVENLY2, LOG_LEVEL_ERROR2, LOG_LEVEL_WARN2, LOG_LEVEL_INFO2, LOG_LEVEL_DEBUG2, LOG_LEVEL_VERBOSE2, LOG_LEVEL_FATAL2, MEASURE_MODE_UNDEFINED2, MEASURE_MODE_EXACTLY2, MEASURE_MODE_AT_MOST2, NODE_TYPE_DEFAULT2, NODE_TYPE_TEXT2, OVERFLOW_VISIBLE2, OVERFLOW_HIDDEN2, OVERFLOW_SCROLL2, POSITION_TYPE_STATIC2, POSITION_TYPE_RELATIVE2, POSITION_TYPE_ABSOLUTE2, UNIT_UNDEFINED2, UNIT_POINT2, UNIT_PERCENT2, UNIT_AUTO2, WRAP_NO_WRAP2, WRAP_WRAP2, WRAP_WRAP_REVERSE2, YogaStatus2, YogaError2, Config2, Node2, exports_yoga, yoga_default };
|
|
12611
12799
|
|
|
12612
|
-
//# debugId=
|
|
12613
|
-
//# sourceMappingURL=chunk-node-
|
|
12800
|
+
//# debugId=9D19C75C6B5AFEDA64756E2164756E21
|
|
12801
|
+
//# sourceMappingURL=chunk-node-mzgnr3sw.js.map
|