this repo has no description

feat: add serializable view types to message library

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+23 -1
+1 -1
idl/dune
··· 1 1 (library 2 2 (name js_top_worker_message) 3 3 (public_name js_top_worker-rpc.message) 4 - (modules message) 4 + (modules message widget_view) 5 5 (libraries js_of_ocaml) 6 6 (preprocess 7 7 (pps js_of_ocaml-ppx)))
+22
idl/widget_view.ml
··· 1 + (** Serializable view descriptions for interactive widgets. 2 + 3 + No closures, no JS references. Event handlers are symbolic 4 + string identifiers resolved by the worker's handler registry. *) 5 + 6 + type event_id = string 7 + 8 + type attr = 9 + | Property of string * string 10 + | Style of string * string 11 + | Class of string 12 + | Handler of string * event_id (** event name, handler id *) 13 + 14 + type node = 15 + | Text of string 16 + | Element of { tag : string; attrs : attr list; children : node list } 17 + 18 + type event_msg = { 19 + handler_id : event_id; 20 + event_type : string; 21 + value : string option; 22 + }