@native-sdk/cli 0.5.3 → 0.6.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/build/app.zig +91 -2
- package/build.zig +756 -5
- package/build.zig.zon +7 -0
- package/native-sdk.d.ts +19 -1
- package/package.json +9 -9
- package/packages/core/package-lock.json +2 -2
- package/packages/core/package.json +1 -1
- package/packages/core/rt/rt.zig +416 -9
- package/packages/core/sdk/core.ts +706 -5
- package/packages/core/sdk/events.ts +17 -8
- package/packages/core/src/checker.ts +305 -2
- package/packages/core/src/diagnostics.ts +12 -0
- package/packages/core/src/emitter.ts +3187 -264
- package/packages/core/src/typed_ast.ts +51 -4
- package/packages/core/src/types.ts +34 -1
- package/skill-data/native-ui/SKILL.md +42 -4
- package/skill-data/ts-core/SKILL.md +13 -3
- package/src/app_runner/root.zig +112 -10
- package/src/app_runner/ts_core_main.zig +4 -0
- package/src/automation/layout_fingerprint.zig +160 -0
- package/src/automation/protocol.zig +82 -33
- package/src/automation/root.zig +1 -0
- package/src/automation/server.zig +1 -1
- package/src/automation/snapshot.zig +68 -9
- package/src/automation/watcher.zig +1 -1
- package/src/embed/host.zig +5 -0
- package/src/embed/tests.zig +119 -1
- package/src/embed/ui_host.zig +13 -0
- package/src/platform/linux/gtk_host.c +639 -16
- package/src/platform/linux/gtk_host.h +25 -0
- package/src/platform/linux/root.zig +351 -7
- package/src/platform/macos/appkit_host.h +152 -8
- package/src/platform/macos/appkit_host.m +1816 -100
- package/src/platform/macos/cef_host.mm +372 -11
- package/src/platform/macos/root.zig +379 -11
- package/src/platform/null_platform.zig +696 -9
- package/src/platform/null_platform_tests.zig +35 -0
- package/src/platform/root.zig +42 -0
- package/src/platform/types.zig +524 -18
- package/src/platform/windows/root.zig +432 -9
- package/src/platform/windows/webview2_host.cpp +482 -45
- package/src/primitives/app_manifest/comptime_scene.zig +5 -0
- package/src/primitives/app_manifest/root.zig +1 -0
- package/src/primitives/app_manifest/types.zig +32 -0
- package/src/primitives/app_manifest/validation.zig +18 -0
- package/src/primitives/canvas/a11y_audit.zig +33 -11
- package/src/primitives/canvas/a11y_audit_tests.zig +20 -0
- package/src/primitives/canvas/drawing.zig +25 -0
- package/src/primitives/canvas/equality.zig +8 -0
- package/src/primitives/canvas/events.zig +103 -16
- package/src/primitives/canvas/frame.zig +125 -1
- package/src/primitives/canvas/layout_audit.zig +22 -5
- package/src/primitives/canvas/markdown_hostile_tests.zig +8 -4
- package/src/primitives/canvas/render_tests.zig +13 -10
- package/src/primitives/canvas/root.zig +48 -0
- package/src/primitives/canvas/terminal_box.zig +471 -0
- package/src/primitives/canvas/terminal_grid.zig +978 -0
- package/src/primitives/canvas/terminal_grid_tests.zig +1093 -0
- package/src/primitives/canvas/test_support.zig +1 -0
- package/src/primitives/canvas/tests.zig +2 -0
- package/src/primitives/canvas/text_tests.zig +39 -4
- package/src/primitives/canvas/tokens.zig +115 -12
- package/src/primitives/canvas/ui.zig +535 -12
- package/src/primitives/canvas/ui_markup.zig +253 -36
- package/src/primitives/canvas/ui_markup_binary.zig +4 -1
- package/src/primitives/canvas/ui_markup_compiled.zig +195 -9
- package/src/primitives/canvas/ui_markup_compiled_tests.zig +188 -8
- package/src/primitives/canvas/ui_markup_contract.zig +89 -6
- package/src/primitives/canvas/ui_markup_contract_tests.zig +65 -1
- package/src/primitives/canvas/ui_markup_huge_document_tests.zig +154 -0
- package/src/primitives/canvas/ui_markup_huge_model_tests.zig +1 -0
- package/src/primitives/canvas/ui_markup_reflect.zig +75 -24
- package/src/primitives/canvas/ui_markup_tests.zig +178 -9
- package/src/primitives/canvas/ui_markup_view.zig +220 -11
- package/src/primitives/canvas/ui_markup_view_tests.zig +553 -28
- package/src/primitives/canvas/ui_schema.zig +110 -17
- package/src/primitives/canvas/ui_schema_tests.zig +18 -10
- package/src/primitives/canvas/ui_tests.zig +141 -9
- package/src/primitives/canvas/widget_access.zig +28 -2
- package/src/primitives/canvas/widget_anchored_tests.zig +48 -0
- package/src/primitives/canvas/widget_invalidation.zig +81 -1
- package/src/primitives/canvas/widget_layout.zig +59 -11
- package/src/primitives/canvas/widget_layout_tests.zig +125 -4
- package/src/primitives/canvas/widget_render.zig +272 -18
- package/src/primitives/canvas/widget_render_scroll.zig +108 -27
- package/src/primitives/canvas/widget_routing.zig +59 -7
- package/src/primitives/canvas/widget_runtime.zig +23 -0
- package/src/primitives/canvas/widget_runtime_tests.zig +149 -0
- package/src/primitives/canvas/widget_semantics.zig +119 -11
- package/src/primitives/canvas/widget_semantics_tests.zig +409 -0
- package/src/primitives/canvas/widget_tree.zig +17 -0
- package/src/primitives/canvas/widgets.zig +132 -0
- package/src/root.zig +23 -0
- package/src/runtime/api.zig +76 -5
- package/src/runtime/automation_commands.zig +20 -1
- package/src/runtime/automation_snapshot.zig +25 -1
- package/src/runtime/automation_widget_dispatch.zig +73 -8
- package/src/runtime/bridge_payload.zig +8 -0
- package/src/runtime/bridge_responses.zig +5 -0
- package/src/runtime/builtin_bridge.zig +9 -4
- package/src/runtime/canvas_font_tests.zig +439 -2
- package/src/runtime/canvas_fonts.zig +61 -6
- package/src/runtime/canvas_frame.zig +62 -7
- package/src/runtime/canvas_frame_animation_tests.zig +5 -4
- package/src/runtime/canvas_frame_helpers.zig +190 -1
- package/src/runtime/canvas_frame_invalidation_tests.zig +531 -0
- package/src/runtime/canvas_frame_patch_tests.zig +161 -10
- package/src/runtime/canvas_frame_retained_tests.zig +5 -2
- package/src/runtime/canvas_image_tests.zig +195 -0
- package/src/runtime/canvas_images.zig +45 -12
- package/src/runtime/canvas_widget_accessibility_tests.zig +1 -1
- package/src/runtime/canvas_widget_clipboard_tests.zig +40 -0
- package/src/runtime/canvas_widget_context_menu.zig +269 -32
- package/src/runtime/canvas_widget_context_menu_tests.zig +640 -14
- package/src/runtime/canvas_widget_display.zig +1 -1
- package/src/runtime/canvas_widget_event_tests.zig +1823 -0
- package/src/runtime/canvas_widget_events.zig +240 -24
- package/src/runtime/canvas_widget_runtime.zig +213 -29
- package/src/runtime/canvas_widget_scroll_driver_tests.zig +170 -7
- package/src/runtime/canvas_widget_scroll_drivers.zig +151 -17
- package/src/runtime/canvas_widget_scroll_tests.zig +435 -23
- package/src/runtime/canvas_widget_state.zig +6 -0
- package/src/runtime/canvas_widget_text_tests.zig +1 -1
- package/src/runtime/core.zig +131 -13
- package/src/runtime/effects.zig +8136 -180
- package/src/runtime/effects_channel_tests.zig +3519 -0
- package/src/runtime/effects_fetch_tests.zig +89 -1
- package/src/runtime/effects_file_tests.zig +41 -1
- package/src/runtime/effects_image_tests.zig +1304 -0
- package/src/runtime/effects_pty_tests.zig +1362 -0
- package/src/runtime/effects_tests.zig +167 -9
- package/src/runtime/effects_video_tests.zig +3609 -0
- package/src/runtime/flow.zig +42 -4
- package/src/runtime/gpu_surface_events.zig +473 -13
- package/src/runtime/media_surface.zig +116 -11
- package/src/runtime/media_surface_tests.zig +61 -0
- package/src/runtime/pty.zig +1252 -0
- package/src/runtime/pty_windows.zig +1780 -0
- package/src/runtime/root.zig +36 -0
- package/src/runtime/runtime_event_tests.zig +20 -1
- package/src/runtime/session_blobs.zig +689 -0
- package/src/runtime/session_journal.zig +432 -62
- package/src/runtime/session_record.zig +43 -2
- package/src/runtime/session_replay.zig +556 -20
- package/src/runtime/session_tests.zig +2087 -1
- package/src/runtime/shell_layout.zig +7 -0
- package/src/runtime/terminal_session.zig +1569 -0
- package/src/runtime/terminal_session_tests.zig +450 -0
- package/src/runtime/terminal_vt_ghostty.zig +15 -0
- package/src/runtime/terminal_vt_stub.zig +13 -0
- package/src/runtime/testdata/fonts/NotoSansSC-Receipt.ttf +0 -0
- package/src/runtime/testdata/fonts/OFL.txt +93 -0
- package/src/runtime/tests.zig +8 -0
- package/src/runtime/ts_core_host.zig +1320 -45
- package/src/runtime/ts_core_host_tests.zig +1100 -1
- package/src/runtime/ts_ui_app.zig +23 -5
- package/src/runtime/ui_app.zig +2444 -69
- package/src/runtime/ui_app_tests.zig +3171 -744
- package/src/runtime/ui_app_virtual_variable_tests.zig +4 -2
- package/src/runtime/ui_app_window_tests.zig +736 -0
- package/src/runtime/view.zig +190 -2
- package/src/runtime/view_widget_scroll.zig +218 -68
- package/src/runtime/view_widget_text.zig +11 -2
- package/src/runtime/view_widget_tree.zig +111 -3
- package/src/runtime/window_command_bridge_tests.zig +117 -0
- package/src/runtime/window_storage.zig +77 -2
- package/src/runtime/window_view_runtime.zig +34 -2
- package/src/runtime/window_views.zig +62 -1
- package/src/terminal_session_tests_root.zig +15 -0
- package/src/tooling/manifest.zig +75 -0
- package/src/tooling/raw_manifest.zig +2 -0
- package/src/tooling/templates.zig +244 -8
|
@@ -41,11 +41,15 @@ const Ui = Md.Ui;
|
|
|
41
41
|
/// node buffer (64 nodes x a multi-KiB `Ui.Node`), and one table costs a
|
|
42
42
|
/// 64-row buffer (~315 KiB measured), so container-dense documents run
|
|
43
43
|
/// ~180x their source bytes (measured: 100-deep nesting 15 KiB -> 2.7 MiB).
|
|
44
|
-
///
|
|
45
|
-
///
|
|
46
|
-
///
|
|
44
|
+
/// The factor scales with `Ui.Node` itself — every handler field added to
|
|
45
|
+
/// `ElementOptions` (the hover pair moved the densest corpus doc from
|
|
46
|
+
/// ~1.45 MiB to ~1.54 MiB at 3.9 KiB source) grows those eager buffers
|
|
47
|
+
/// linearly, so the factor carries headroom over the measured densest
|
|
48
|
+
/// shape. 320x + a one-table floor keeps the assert green for every
|
|
49
|
+
/// legitimate shape while a quadratic join (megabytes-per-source-KiB)
|
|
50
|
+
/// still blows through it by orders of magnitude.
|
|
47
51
|
fn arenaBound(source_len: usize) usize {
|
|
48
|
-
return source_len *
|
|
52
|
+
return source_len * 320 + 512 * 1024;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
const BuildResult = struct {
|
|
@@ -2847,14 +2847,16 @@ test "canvas frame plan clips incremental dirty bounds to surface" {
|
|
|
2847
2847
|
try std.testing.expectEqual(@as(usize, 1), frame.changes.len);
|
|
2848
2848
|
try std.testing.expectEqual(DiffKind.changed, frame.changes[0].kind);
|
|
2849
2849
|
try std.testing.expectEqual(@as(?ObjectId, 1), frame.changes[0].id);
|
|
2850
|
-
|
|
2850
|
+
// Changed extents' union, inflated by the one-device-pixel AA
|
|
2851
|
+
// bleed and clipped to the 50x50 surface.
|
|
2852
|
+
try expectRect(geometry.RectF.init(0, 0, 50, 41), frame.dirty_bounds);
|
|
2851
2853
|
|
|
2852
2854
|
const render_pass = frame.renderPass();
|
|
2853
2855
|
try std.testing.expect(render_pass.requiresRender());
|
|
2854
2856
|
try std.testing.expectEqual(CanvasRenderPassLoadAction.load, render_pass.loadAction());
|
|
2855
2857
|
try std.testing.expectEqual(@as(usize, 2), render_pass.commandCount());
|
|
2856
2858
|
try std.testing.expectEqual(@as(usize, 1), render_pass.batchCount());
|
|
2857
|
-
try expectRect(geometry.RectF.init(0, 0, 50,
|
|
2859
|
+
try expectRect(geometry.RectF.init(0, 0, 50, 41), render_pass.scissorBounds());
|
|
2858
2860
|
|
|
2859
2861
|
var gpu_commands: [2]CanvasGpuCommand = undefined;
|
|
2860
2862
|
const packet = try frame.gpuPacket(&gpu_commands);
|
|
@@ -2867,27 +2869,27 @@ test "canvas frame plan clips incremental dirty bounds to surface" {
|
|
|
2867
2869
|
try std.testing.expectEqual(packet.commandCount(), packet_summary.command_count);
|
|
2868
2870
|
try std.testing.expectEqual(packet.cachedResourceCommandCount(), packet_summary.cached_resource_command_count);
|
|
2869
2871
|
try std.testing.expectEqual(packet.unsupported_command_count, packet_summary.unsupported_command_count);
|
|
2870
|
-
try expectRect(geometry.RectF.init(0, 0, 50,
|
|
2872
|
+
try expectRect(geometry.RectF.init(0, 0, 50, 41), packet.scissor.?);
|
|
2871
2873
|
var packet_json_buffer: [2048]u8 = undefined;
|
|
2872
2874
|
var packet_json_writer = std.Io.Writer.fixed(&packet_json_buffer);
|
|
2873
2875
|
try packet.writeJson(&packet_json_writer);
|
|
2874
2876
|
const packet_json = packet_json_writer.buffered();
|
|
2875
2877
|
try std.testing.expect(std.mem.indexOf(u8, packet_json, "\"loadAction\":\"load\"") != null);
|
|
2876
|
-
try std.testing.expect(std.mem.indexOf(u8, packet_json, "\"scissorBounds\":[0,0,50,
|
|
2878
|
+
try std.testing.expect(std.mem.indexOf(u8, packet_json, "\"scissorBounds\":[0,0,50,41]") != null);
|
|
2877
2879
|
|
|
2878
2880
|
const profile = frame.profile();
|
|
2879
2881
|
try std.testing.expect(profile.requires_render);
|
|
2880
2882
|
try std.testing.expect(!profile.full_repaint);
|
|
2881
2883
|
try std.testing.expectEqual(@as(f32, 2500), profile.surface_area);
|
|
2882
|
-
try std.testing.expectEqual(@as(f32,
|
|
2883
|
-
try std.testing.expectEqual(@as(f32, 0.
|
|
2884
|
+
try std.testing.expectEqual(@as(f32, 2050), profile.dirty_area);
|
|
2885
|
+
try std.testing.expectEqual(@as(f32, 2050.0 / 2500.0), profile.dirty_ratio);
|
|
2884
2886
|
try std.testing.expectEqual(CanvasFrameProfileRisk.high, profile.risk);
|
|
2885
2887
|
|
|
2886
2888
|
var profile_json_buffer: [1024]u8 = undefined;
|
|
2887
2889
|
var profile_json_writer = std.Io.Writer.fixed(&profile_json_buffer);
|
|
2888
2890
|
try frame.writeProfileJson(&profile_json_writer);
|
|
2889
2891
|
const profile_json = profile_json_writer.buffered();
|
|
2890
|
-
try std.testing.expect(std.mem.indexOf(u8, profile_json, "\"dirtyArea\":
|
|
2892
|
+
try std.testing.expect(std.mem.indexOf(u8, profile_json, "\"dirtyArea\":2050") != null);
|
|
2891
2893
|
try std.testing.expect(std.mem.indexOf(u8, profile_json, "\"risk\":\"high\"") != null);
|
|
2892
2894
|
}
|
|
2893
2895
|
|
|
@@ -2969,7 +2971,8 @@ test "canvas frame plan applies render overrides without display list changes" {
|
|
|
2969
2971
|
try std.testing.expect(!frame.full_repaint);
|
|
2970
2972
|
try std.testing.expect(frame.requiresRender());
|
|
2971
2973
|
try std.testing.expectEqual(@as(usize, 0), frame.changes.len);
|
|
2972
|
-
|
|
2974
|
+
// Override extents' union, inflated by the AA bleed and clipped.
|
|
2975
|
+
try expectRect(geometry.RectF.init(0, 0, 21, 11), frame.dirty_bounds);
|
|
2973
2976
|
try std.testing.expectEqual(@as(usize, 1), frame.render_plan.commandCount());
|
|
2974
2977
|
try std.testing.expectEqual(@as(f32, 0.5), frame.render_plan.commands[0].opacity);
|
|
2975
2978
|
try std.testing.expectEqualDeep(Affine.translate(10, 0), frame.render_plan.commands[0].transform);
|
|
@@ -2977,7 +2980,7 @@ test "canvas frame plan applies render overrides without display list changes" {
|
|
|
2977
2980
|
|
|
2978
2981
|
const render_pass = frame.renderPass();
|
|
2979
2982
|
try std.testing.expectEqual(CanvasRenderPassLoadAction.load, render_pass.loadAction());
|
|
2980
|
-
try expectRect(geometry.RectF.init(0, 0,
|
|
2983
|
+
try expectRect(geometry.RectF.init(0, 0, 21, 11), render_pass.scissorBounds());
|
|
2981
2984
|
|
|
2982
2985
|
var pixels: [40 * 20 * 4]u8 = undefined;
|
|
2983
2986
|
const surface = try ReferenceRenderSurface.init(40, 20, &pixels);
|
|
@@ -3053,7 +3056,7 @@ test "canvas render animations sample overrides for frame planning" {
|
|
|
3053
3056
|
});
|
|
3054
3057
|
|
|
3055
3058
|
try std.testing.expectEqual(@as(usize, 0), frame.changes.len);
|
|
3056
|
-
try expectRect(geometry.RectF.init(0, 0,
|
|
3059
|
+
try expectRect(geometry.RectF.init(0, 0, 21, 11), frame.dirty_bounds);
|
|
3057
3060
|
try std.testing.expectEqual(@as(f32, 0.5), frame.render_plan.commands[0].opacity);
|
|
3058
3061
|
try std.testing.expectEqualDeep(Affine.translate(10, 0), frame.render_plan.commands[0].transform);
|
|
3059
3062
|
|
|
@@ -74,6 +74,21 @@ pub fn mediaSurfaceTextureImageId(surface_id: u64) ImageId {
|
|
|
74
74
|
return surface_id | media_surface_image_id_bit;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/// The framework-owned media-surface id the SINGLE video playback
|
|
78
|
+
/// channel feeds (`fx.loadVideo` — one player is the whole surface) and
|
|
79
|
+
/// every `<video>` element composites. The `<video>` element always
|
|
80
|
+
/// binds this reserved id; apps composing custom video UI from the fx
|
|
81
|
+
/// vocabulary target it via `<media-surface surface={id}>` only when
|
|
82
|
+
/// they manage their own surface. A valid producer id: bit 63
|
|
83
|
+
/// (`media_surface_image_id_bit`) stays clear, so the id claims and
|
|
84
|
+
/// composites like any app surface — it is merely reserved by
|
|
85
|
+
/// convention for the declarative playback. BELOW 2^53 deliberately:
|
|
86
|
+
/// surface ids ride the TS wire as f64, and a source-less `<video>`
|
|
87
|
+
/// with custom controls is fed by the app's own `Cmd.videoLoad`
|
|
88
|
+
/// naming exactly this id — an id outside the exact-integer window
|
|
89
|
+
/// could never arrive intact.
|
|
90
|
+
pub const video_playback_surface_id: u64 = 0x0001_7669_6465_6f5f;
|
|
91
|
+
|
|
77
92
|
/// The media surface's deterministic id-derived placeholder color
|
|
78
93
|
/// (widget_render.zig): what the reference renderer — goldens,
|
|
79
94
|
/// screenshots, replay pixel marks — shows for a bound surface, live
|
|
@@ -124,6 +139,7 @@ pub const PathElement = drawing_model.PathElement;
|
|
|
124
139
|
pub const FillPath = drawing_model.FillPath;
|
|
125
140
|
pub const StrokePath = drawing_model.StrokePath;
|
|
126
141
|
pub const ImageFit = drawing_model.ImageFit;
|
|
142
|
+
pub const containDestinationRect = drawing_model.containDestinationRect;
|
|
127
143
|
pub const ImageSampling = drawing_model.ImageSampling;
|
|
128
144
|
pub const DrawImage = drawing_model.DrawImage;
|
|
129
145
|
pub const Shadow = drawing_model.Shadow;
|
|
@@ -355,6 +371,9 @@ pub const BlurTokenRef = token_model.BlurTokenRef;
|
|
|
355
371
|
pub const ScrollPhysics = token_model.ScrollPhysics;
|
|
356
372
|
pub const ScrollOverscroll = token_model.ScrollOverscroll;
|
|
357
373
|
pub const ScrollState = token_model.ScrollState;
|
|
374
|
+
pub const ScrollAxisState = token_model.ScrollAxisState;
|
|
375
|
+
pub const ScrollAxis = token_model.ScrollAxis;
|
|
376
|
+
pub const ScrollAxes = token_model.ScrollAxes;
|
|
358
377
|
pub const VirtualListOptions = token_model.VirtualListOptions;
|
|
359
378
|
pub const VirtualListRange = token_model.VirtualListRange;
|
|
360
379
|
pub const virtualListRange = token_model.virtualListRange;
|
|
@@ -411,6 +430,7 @@ pub const WidgetAnchorAlignment = widget_model.WidgetAnchorAlignment;
|
|
|
411
430
|
pub const WidgetStyle = widget_model.WidgetStyle;
|
|
412
431
|
pub const WidgetVariant = widget_model.WidgetVariant;
|
|
413
432
|
pub const WidgetOverscroll = widget_model.WidgetOverscroll;
|
|
433
|
+
pub const VideoControlVerb = widget_model.VideoControlVerb;
|
|
414
434
|
pub const WidgetIconPlacement = widget_model.WidgetIconPlacement;
|
|
415
435
|
pub const WidgetSize = widget_model.WidgetSize;
|
|
416
436
|
pub const WidgetRole = widget_model.WidgetRole;
|
|
@@ -462,6 +482,28 @@ pub const max_text_spans_per_paragraph = text_spans.max_text_spans_per_paragraph
|
|
|
462
482
|
pub const max_text_span_runs_per_paragraph = text_spans.max_text_span_runs_per_paragraph;
|
|
463
483
|
pub const max_text_span_lines_per_paragraph = text_spans.max_text_span_lines_per_paragraph;
|
|
464
484
|
|
|
485
|
+
// The terminal grid — the `.terminal` widget's resolved cell model and
|
|
486
|
+
// painter (real text runs, geometric box drawing, selection, cursor,
|
|
487
|
+
// scrollback indicator) — lives in `terminal_grid.zig`; the box-drawing
|
|
488
|
+
// geometry in `terminal_box.zig`.
|
|
489
|
+
pub const terminal_grid = @import("terminal_grid.zig");
|
|
490
|
+
pub const terminal_box = @import("terminal_box.zig");
|
|
491
|
+
pub const TerminalGrid = terminal_grid.TerminalGrid;
|
|
492
|
+
pub const TerminalRow = terminal_grid.TerminalRow;
|
|
493
|
+
pub const TerminalCell = terminal_grid.TerminalCell;
|
|
494
|
+
pub const TerminalWide = terminal_grid.TerminalWide;
|
|
495
|
+
pub const TerminalCursor = terminal_grid.TerminalCursor;
|
|
496
|
+
pub const TerminalCursorShape = terminal_grid.TerminalCursorShape;
|
|
497
|
+
pub const TerminalCellPos = terminal_grid.TerminalCellPos;
|
|
498
|
+
pub const TerminalScrollbar = terminal_grid.TerminalScrollbar;
|
|
499
|
+
pub const TerminalState = terminal_grid.TerminalState;
|
|
500
|
+
pub const TerminalCellMetrics = terminal_grid.TerminalCellMetrics;
|
|
501
|
+
pub const terminalCellMetrics = terminal_grid.cellMetrics;
|
|
502
|
+
pub const clampTerminalGrid = terminal_grid.clampGrid;
|
|
503
|
+
pub const max_terminal_cols = terminal_grid.max_cols;
|
|
504
|
+
pub const max_terminal_rows = terminal_grid.max_rows;
|
|
505
|
+
pub const max_terminal_cells = terminal_grid.max_cells;
|
|
506
|
+
|
|
465
507
|
// Chart plot data for the `.chart` widget kind (series, downsampling,
|
|
466
508
|
// domain) lives in `chart.zig`.
|
|
467
509
|
pub const chart = @import("chart.zig");
|
|
@@ -523,6 +565,7 @@ pub const MarkupFragment = ui_markup.MarkupFragment;
|
|
|
523
565
|
pub const markup_contract_specials = ui_markup.contract.Specials{
|
|
524
566
|
.TextInputEvent = TextInputEvent,
|
|
525
567
|
.ScrollState = ScrollState,
|
|
568
|
+
.TerminalState = TerminalState,
|
|
526
569
|
};
|
|
527
570
|
|
|
528
571
|
/// Reflect an app's Model/Msg into a markup contract (see
|
|
@@ -560,6 +603,7 @@ pub const StyleTokenRefs = ui_builder.StyleTokenRefs;
|
|
|
560
603
|
/// The fragment hot-reload seam between the app loop and compiled
|
|
561
604
|
/// markup fragments (Debug dev runs only; see `ui_builder`).
|
|
562
605
|
pub const MarkupFragmentHost = ui_builder.MarkupFragmentHost;
|
|
606
|
+
pub const TerminalGridLookup = ui_builder.TerminalGridLookup;
|
|
563
607
|
pub const MarkupFragmentDiagnostic = ui_builder.MarkupFragmentDiagnostic;
|
|
564
608
|
|
|
565
609
|
// Canvas widget event and semantics data lives in `events.zig`; root keeps the public API stable.
|
|
@@ -679,6 +723,8 @@ pub const widgetKindHitTarget = @import("widget_access.zig").widgetKindHitTarget
|
|
|
679
723
|
/// any widget with a bound press/toggle handler (stamped into
|
|
680
724
|
/// `semantics.actions` by the builder and both markup engines).
|
|
681
725
|
pub const widgetIsHitTarget = @import("widget_access.zig").isHitTarget;
|
|
726
|
+
pub const widgetIsHoverMsgHitTarget = @import("widget_access.zig").isHoverMsgHitTarget;
|
|
727
|
+
pub const widgetListensForHoverMsgs = @import("widget_access.zig").widgetListensForHoverMsgs;
|
|
682
728
|
/// Press-claiming predicates (widget_access.zig): where a press gesture
|
|
683
729
|
/// stops instead of falling through to the nearest pressable ancestor.
|
|
684
730
|
pub const widgetKindClaimsPress = @import("widget_access.zig").widgetKindClaimsPress;
|
|
@@ -711,6 +757,8 @@ pub const widgetIsAnchored = @import("widget_tree.zig").widgetIsAnchored;
|
|
|
711
757
|
/// and whose children are the built window, not the full item set.
|
|
712
758
|
pub const widgetVirtualRuntimeScrolled = @import("widget_tree.zig").widgetVirtualRuntimeScrolled;
|
|
713
759
|
pub const widgetScrollPhysics = @import("widget_tree.zig").widgetScrollPhysics;
|
|
760
|
+
pub const widgetScrollsAxis = @import("widget_tree.zig").widgetScrollsAxis;
|
|
761
|
+
pub const widgetScrollAxisMetrics = @import("widget_semantics.zig").widgetScrollAxisMetrics;
|
|
714
762
|
pub const isWidgetHiddenInAncestors = @import("widget_tree.zig").isWidgetHiddenInAncestors;
|
|
715
763
|
/// The disclosure family (widget_tree.zig): collapsible widgets whose
|
|
716
764
|
/// content lays out at full size and REVEALS, plus the settled/concealed
|