Current section

17 Versions

Jump to

Compare versions

3 files changed
+28 additions
-16 deletions
  @@ -1,6 +1,6 @@
1 1 name = "redraw_dom"
2 2 target = "javascript"
3 - version = "19.1.0"
3 + version = "19.1.1"
4 4
5 5 description = "Redraw DOM renderer. Take a look at Redraw to use it."
6 6 licences = ["MIT"]
  @@ -1,6 +1,6 @@
1 1 {<<"name">>, <<"redraw_dom">>}.
2 2 {<<"app">>, <<"redraw_dom">>}.
3 - {<<"version">>, <<"19.1.0">>}.
3 + {<<"version">>, <<"19.1.1">>}.
4 4 {<<"description">>, <<"Redraw DOM renderer. Take a look at Redraw to use it."/utf8>>}.
5 5 {<<"licenses">>, [<<"MIT">>]}.
6 6 {<<"build_tools">>, [<<"gleam">>]}.
  @@ -202,66 +202,78 @@ pub fn on_double_click_capture(handler: fn(MouseEvent) -> Nil) {
202 202 attribute.attribute("onDoubleClickCapture", handler)
203 203 }
204 204
205 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/drag_event)
205 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
206 206 pub fn on_drag(handler: fn(DragEvent) -> Nil) {
207 207 attribute.attribute("onDrag", handler)
208 208 }
209 209
210 210 /// Alternative version of [`on_drag`](#on_drag) that runs during
211 211 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
212 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/drag_event)
212 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
213 213 pub fn on_drag_capture(handler: fn(DragEvent) -> Nil) {
214 214 attribute.attribute("onDragCapture", handler)
215 215 }
216 216
217 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragend_event)
217 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
218 218 pub fn on_drag_end(handler: fn(DragEvent) -> Nil) {
219 219 attribute.attribute("onDragEnd", handler)
220 220 }
221 221
222 222 /// Alternative version of [`on_drag_end`](#on_drag_end) that runs during
223 223 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
224 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragend_event)
224 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
225 225 pub fn on_drag_end_capture(handler: fn(DragEvent) -> Nil) {
226 226 attribute.attribute("onDragEndCapture", handler)
227 227 }
228 228
229 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragenter_event)
229 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
230 230 pub fn on_drag_enter(handler: fn(DragEvent) -> Nil) {
231 231 attribute.attribute("onDragEnter", handler)
232 232 }
233 233
234 234 /// Alternative version of [`on_drag_enter`](#on_drag_enter) that runs during
235 235 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
236 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragenter_event)
236 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
237 237 pub fn on_drag_enter_capture(handler: fn(DragEvent) -> Nil) {
238 238 attribute.attribute("onDragEnterCapture", handler)
239 239 }
240 240
241 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragover_event)
241 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
242 242 pub fn on_drag_over(handler: fn(DragEvent) -> Nil) {
243 243 attribute.attribute("onDragOver", handler)
244 244 }
245 245
246 246 /// Alternative version of [`on_drag_over`](#on_drag_over) that runs during
247 247 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
248 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragover_event)
248 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
249 249 pub fn on_drag_over_capture(handler: fn(DragEvent) -> Nil) {
250 250 attribute.attribute("onDragOverCapture", handler)
251 251 }
252 252
253 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragstart_event)
253 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
254 254 pub fn on_drag_start(handler: fn(DragEvent) -> Nil) {
255 255 attribute.attribute("onDragStart", handler)
256 256 }
257 257
258 258 /// Alternative version of [`on_drag_start`](#on_drag_start) that runs during
259 259 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
260 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/dragstart_event)
260 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
261 261 pub fn on_drag_start_capture(handler: fn(DragEvent) -> Nil) {
262 262 attribute.attribute("onDragStartCapture", handler)
263 263 }
264 264
265 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
266 + pub fn on_drag_leave(handler: fn(DragEvent) -> Nil) {
267 + attribute.attribute("onDragLeave", handler)
268 + }
269 +
270 + /// Alternative version of [`on_drag_leave`](#on_drag_leave) that runs during
271 + /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
272 + /// [Documentation](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
273 + pub fn on_drag_leave_capture(handler: fn(DragEvent) -> Nil) {
274 + attribute.attribute("onDragLeaveCapture", handler)
275 + }
276 +
265 277 /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/drop_event)
266 278 pub fn on_drop(handler: fn(DragEvent) -> Nil) {
267 279 attribute.attribute("onDrop", handler)
  @@ -934,26 +946,26 @@ pub fn on_time_update_capture(handler: fn(Event) -> Nil) {
934 946 attribute.attribute("onTimeUpdateCapture", handler)
935 947 }
936 948
937 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/volumechange_event)
949 + /// [Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/volumechange_event)
938 950 pub fn on_volume_change(handler: fn(Event) -> Nil) {
939 951 attribute.attribute("onVolumeChange", handler)
940 952 }
941 953
942 954 /// Alternative version of [`on_volume_change`](#on_volume_change) that runs during
943 955 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
944 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/volumechange_event)
956 + /// [Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/volumechange_event)
945 957 pub fn on_volume_change_capture(handler: fn(Event) -> Nil) {
946 958 attribute.attribute("onVolumeChangeCapture", handler)
947 959 }
948 960
949 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/waiting_event)
961 + /// [Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/waiting_event)
950 962 pub fn on_waiting(handler: fn(Event) -> Nil) {
951 963 attribute.attribute("onWaiting", handler)
952 964 }
953 965
954 966 /// Alternative version of [`on_waiting`](#on_waiting) that runs during
955 967 /// [capture phase](https://react.dev/learn/responding-to-events#capture-phase-events). \
956 - /// [Documentation](https://developer.mozilla.org/docs/Web/API/Element/waiting_event)
968 + /// [Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/waiting_event)
957 969 pub fn on_waiting_capture(handler: fn(Event) -> Nil) {
958 970 attribute.attribute("onWaitingCapture", handler)
959 971 }