Commit Graph
103 Commits
Author SHA1 Message Date
waozi 1be70904a3 Remove the semantic DOM backend
No project used the dom profile, and it added a second browser host to
maintain beside Canvas. This removes dom_host, dom_tree, dom_paint, dom_run
and dom_app_run, the dom profile in the project tool, docs/dom.md, and the
DOM tests and their three make targets.

The shared browser code loses its DOM branches: page_events no longer tells
a DOM host about presses, blur and document layout, page_core and
page_texture drop the native DOM flag and the img decode kept for it, and
CanvasAppMainLoop takes no argument. The web template builds a Canvas2D
page. The cursor and rotated text tests cover the Canvas profile only.
2026-11-14 06:04:15 -03:00
waozi b9aed7589e Style Kryon with the CSS package
The KSS package is now kryonlabs/css, a CSS subset. The catalog themes are
converted to CSS, the unused KSS fixtures are gone, and the docs, website,
DOM interaction test and site test name the CSS package.

Also carries the EMCC lookup in mk/emcc.mk from a concurrent task.
2026-11-07 14:19:13 -03:00
waozi f912ce929d Retire the Plan 9 and plan9port Libdraw hosts 2026-10-23 23:08:47 -03:00
waozi dae0401fe7 Keep build and test gates on C, Go and ZX 2026-10-23 22:54:13 -03:00
waozi cb637eabcd Use ZX portable executables throughout players and project tools 2026-10-23 18:55:42 -03:00
waozi 214415b321 Add a first-class Android target as an installable APK
An android profile now builds a real Android application from the same
sources as the desktop: the kryon tool scaffolds a droid/ Gradle project
beside the application on the first build and assembles a debug APK with
the NDK. The canonical host (android_run) drives the session over
raylib's NativeActivity backend with the shared viewport policies; a
generated NativeActivity reports insets, cutouts, IME state, density,
dark mode and orientation through JNI natives written in Ziran, forwards
soft-keyboard text through the session-owned input queue, and an
unconsumed back key finishes the activity. Generation runs the whole Zi
graph through ziran ir --project so application module names may repeat
Kryon module names.
2026-10-08 03:18:27 -03:00
waozi 30d956b04d Improve text, accessibility, replay, profiling and browser presentation 2026-10-07 18:41:41 -03:00
waozi bf8e298a30 Load PNG assets in the native Plan 9 image provider 2026-09-30 23:23:08 -03:00
waozi 2a00c369d1 Move KSS into its own package
Style sheet parsing, formatting, the style packs, and their tests now
live in kryonlabs/kss, which depends on Kryon. Kryon keeps the rule
table and style resolution, so an app that builds its rules in code no
longer carries a parser; apps that read .kss text add the KSS package
and import kss/Kss or kss/SystemStyle.
2026-09-29 20:56:26 -03:00
waozi 2e74cf287b Move Plot, the data views, and Syntax into their own packages
PlotWidget now lives in kryonlabs/plot, TableView and TreeView in
kryonlabs/data-views, and the Ziran, C, and Make tokenizer in
ziranlang/syntax, which no longer depends on Kryon. Apps add them with
`ziran add URL` and import plot/Plot, data_views/TableView, or
syntax/Syntax.

Kryon exports the building blocks those packages draw with (session,
tree, surface, paint_queue, style, style_sheet, widget_kind, and the
rest), so a widget package imports kryon/NAME instead of reaching into
Kryon's source directories. The API guide describes writing one.
2026-09-29 19:47:57 -03:00
waozi 6690be9d3c Run the desktop hosts, sanitizers, and seeded KSS fuzzing in CI
CI ran only `make test`, so the desktop, raylib, and libdraw hosts that
the feature matrix calls supported were never checked automatically.
A new job installs SDL, Cairo, Mesa, and the X tools, builds plan9port
once (cached), and runs the three project tests, each on its own private
Xvfb display with DISPLAY, WAYLAND_DISPLAY, and XAUTHORITY removed.

`make sanitize-test` repeats the behavior tests with every C and C++
program they build compiled under AddressSanitizer and
UndefinedBehaviorSanitizer, through $CC/$CXX wrappers; CI runs it in a
parallel job. The main job also fuzzes KSS with the run number as seed,
so each run adds sheets, and keeps a failing sheet as an artifact.
2026-09-29 17:18:03 -03:00
waozi 258802f526 Complete native Plan 9 raster validation 2026-09-27 20:10:46 -03:00
waozi 40e9d13cba Add a native Plan 9 libdraw raster 2026-09-27 18:37:37 -03:00
waozi 7bf94d8bb4 Classify experimental hosts in the feature matrix 2026-09-27 17:12:55 -03:00
waozi 535235d81e Complete semantic DOM browser host and modular Canvas rastering 2026-09-27 16:49:34 -03:00
waozi 9ee38f6cae Add Canvas2D and semantic DOM browser backends
Kryon projects can select the canvas or dom backend to build a single-file
browser app through Emscripten. Images and links carry semantic detail so the
DOM backend can expose real image sources and link targets.
2026-09-27 15:39:38 -03:00
waozi b3689e3a37 Document Ziran test hosts 2026-09-27 12:28:23 -03:00
waozi fdf1a0fc20 Keep current feature status without completed migration history 2026-09-27 11:18:52 -03:00
waozi 467283bc40 Render links in current feature matrix 2026-09-27 10:38:44 -03:00
waozi a63545f44d Remove obsolete Kryon runtime and migration archives 2026-09-27 10:36:49 -03:00
waozi 58f06d67d3 Pause JavaScript web target 2026-09-18 23:09:02 -03:00
waozi f68b792642 Remove UI prefixes from widget review surface 2026-09-14 07:14:48 -03:00
waozi 924b5dfb0e Remove duplicate web-native widget aliases 2026-09-14 07:09:58 -03:00
waozi fb836b4967 Add StyleElement web-native node 2026-09-13 15:02:06 -03:00
waozi 967d9e56d2 Add native line break aliases 2026-09-13 13:51:43 -03:00
waozi f0aae13c4e Add native metadata aliases 2026-09-13 13:44:35 -03:00
waozi 22e75ac20c Add native script aliases 2026-09-13 13:32:02 -03:00
waozi e32d8b3051 Add native embedded object aliases 2026-09-13 13:24:01 -03:00
waozi d6af1182a0 Add native template and slot aliases 2026-09-13 13:01:21 -03:00
waozi 28b65bdbcc Add native image map relations 2026-09-13 12:50:44 -03:00
waozi 7ba261adf9 Add native search and hgroup aliases 2026-09-13 12:34:10 -03:00
waozi 6d5051dc45 Add native ruby and bidi aliases 2026-09-13 12:21:31 -03:00
waozi f654039814 Add native datalist relations 2026-09-13 12:09:45 -03:00
waozi b148f4a4dd Add native optgroup aliases 2026-09-13 12:02:58 -03:00
waozi 0dbd26344b Remove Picture from canonical widget surface 2026-09-13 11:03:52 -03:00
waozi 96924ffa35 Remove public ButtonProps style override 2026-09-13 03:39:52 -03:00
waozi 06f95313a6 Canonicalize Kryon widget surface 2026-09-13 02:57:22 -03:00
waozi 93e223a7fe Regenerate feature matrix block-only docs 2026-09-12 21:57:46 -03:00
waozi e2d85c6b53 Clean up canonical widget surface 2026-09-12 18:43:05 -03:00
waozi de93f3a569 Use canonical DragDrop surface 2026-09-12 16:38:02 -03:00
waozi 7fcc9112f9 Use Button props for invisible hit tests 2026-09-12 16:16:22 -03:00
waozi 5c4b3be910 Avoid legacy menu names in public docs 2026-09-12 12:56:18 -03:00
waozi 63c29ad977 Prefer Menu in public API docs 2026-09-12 12:53:04 -03:00
waozi ec36883c8e Sync feature matrix widget whitelist 2026-09-12 12:51:06 -03:00
waozi ba664e8636 Document drag drop as one widget concept 2026-09-12 12:48:46 -03:00
waozi 45b2db5017 Document invisible button as host support 2026-09-12 12:48:03 -03:00
waozi db2091c735 Document menu as canonical widget concept 2026-09-12 12:46:57 -03:00
waozi 51786f6322 Use canonical block names in widget docs 2026-09-12 12:43:23 -03:00
waozi 502013dd0a Canonicalize Kryon widget surface 2026-09-12 10:38:55 -03:00
waozi 968e19a176 Clean icon type names 2026-09-12 00:16:41 -03:00