1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
use *;
/// A wrapper around `Option<NativeEventHandler>` that enables `From<usize>` conversions.
///
/// For non-bubbling events, also stores the JavaScript `Function` reference
/// and `Element` needed to call `removeEventListener` during cleanup.
pub
/// Stores a signal update callback and its cleanup flag.
pub
/// A typed binding from a bridge `Signal<String>` to a specific DOM
/// mutation.
///
/// Replaces the older bridge-signal + `BridgeRefsCell::track` chain for
/// per-`{sig}` mount paths. The bridge's listener captures the typed
/// bridge by move and on every set fires a single typed mutation directly
/// without going through `BridgeRefsCell`, `is_connected()`, or an
/// `attr_name.to_string()` clone per signal set. The bridge struct is
/// stored in `ATTRIBUTE_BRIDGES` keyed by the bridge signal's address and
/// freed by `Registry::cleanup_attribute_bridge` at the same time
/// `Signal::<String>::clear_listeners` releases the bridge signal's
/// listener closure.
///
/// Variants:
/// - `SetAttribute` — write `attr_name = value` on an Element. Used by
/// `AttributeValue::Signal` mount paths.
/// - `SetInnerHtml` — replace `innerHTML` on an Element. Used by
/// `AttributeValue::InnerHtmlSignal` mount paths.
/// - `SetTextContent` — replace the text on a `Text` node. Used by the
/// text-signal mount path in `create_dom_with_doc`.
///
/// A `Sync` wrapper for single-threaded global `HashMap` access.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A `Sync` wrapper for single-threaded global `HashSet` access.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A `Sync` wrapper for single-threaded global `HashMap` access.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A `Sync` wrapper for single-threaded global `HashMap<usize, AttributeBridge>` access.
///
/// Stores the typed attribute bridges keyed by bridge signal address.
/// Populated by `Registry::register_attribute_bridge` and drained by
/// `Registry::cleanup_attribute_bridge` (called from
/// `Signal::<String>::clear_listeners`).
///
/// Replaces the older bridge-signal + `BridgeRefsCell::track` chain that
/// allocated a `HashSet<usize>` per bridge (the source-dependency set) and
/// required a `HashMap<usize, HashSet<usize>>` lookup on every
/// `Signal::deactivate` for every bridge ever registered. With this
/// registry the bridge struct is keyed by the bridge's address (already in
/// `data-euv-signal-addrs`) and freed at the same time as the bridge
/// signal — one `HashMap<usize, AttributeBridge>` lookup per cleanup
/// instead of one `HashMap<usize, HashSet<usize>>` lookup per
/// `Signal::deactivate` walk.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A `Sync` wrapper for single-threaded global `HashSet` access used by
/// the OPT 6 dirty-id fast path.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A `Sync` wrapper for single-threaded global `WindowEventRegistryMap` access.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A `Sync` wrapper for single-threaded global `NodeRefRegistryMap` access.
///
/// SAFETY: This type is only safe to use in single-threaded contexts
/// (e.g., WASM). It implements `Sync` to allow usage as a `static mut`
/// variable, but concurrent access from multiple threads would be
/// undefined behavior.
pub )]
pub ,
);
/// A zero-sized struct providing static methods for managing
/// the framework's internal registries (handlers, signal updates,
/// window events, and delegated events).
///
/// All methods are crate-internal associated functions that operate
/// on the global static registries.
pub ;