1
0
Fork
You've already forked slate
0
A personal, self-modifiable, agent-native computing environment: Emacs's soul, reborn web-native, mobile-first, and realtime. Built on Sigil.
  • HTML 100%
Find a file
David Wilson 2e6b1d30df slate: drive the log "tick" button through an on-*: closure
Prove the native event bridge end to end (slate-core.md §9 gap 1): convert
one event path off the data-slate-* delegation onto an on-click: Sigil
closure that dispatches into the reducer.
- New (slate dispatch): a settable dispatcher hook (set-slate-dispatch! /
 slate-dispatch!) so view modules can build closures that route into the
 reducer without a dependency cycle with (slate main); main installs the
 reducer at boot.
- button-on component: emits (on-click: <closure>) for local, trusted views
 (server-sent UI stays on the capability-safe event-string form).
- The log buffer's "tick" button now dispatches "tick" via a closure; "note"
 and "clear" keep the delegated path, so both coexist.
- Export sigil_wasm_dom_dispatch_event from the web build so the JS bridge
 can call the trampoline.
Validated headless (CDP): clicking the on-click: button fires the closure
and increments the reducer (0->1->2 events, tick #N lines), the delegated
buttons still work, zero console errors, desktop + mobile.
2026年07月13日 13:21:07 +03:00
assets Fix mobile selector typing (IME) + add C-x prefix chord keys 2026年07月13日 12:05:58 +03:00
design Add UI direction proposal (Fable): 'Inscribed stone' visual + interaction spec 2026年07月13日 10:02:43 +03:00
src/slate slate: drive the log "tick" button through an on-*: closure 2026年07月13日 13:21:07 +03:00
.gitignore Move Slate onto the framework spine (root-state, render, dispatch) 2026年07月12日 22:45:13 +03:00
package.sgl slate: drive the log "tick" button through an on-*: closure 2026年07月13日 13:21:07 +03:00
sigil.lock Move Slate onto the framework spine (root-state, render, dispatch) 2026年07月12日 22:45:13 +03:00