ovr 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/app/context.d.ts +1 -0
  2. package/dist/app/context.d.ts.map +1 -0
  3. package/dist/app/context.js +46 -27
  4. package/dist/app/{page.d.ts → get.d.ts} +5 -6
  5. package/dist/app/get.d.ts.map +1 -0
  6. package/dist/app/{page.js → get.js} +4 -6
  7. package/dist/app/index.d.ts +5 -4
  8. package/dist/app/index.d.ts.map +1 -0
  9. package/dist/app/index.js +7 -7
  10. package/dist/app/memo/index.d.ts +1 -0
  11. package/dist/app/memo/index.d.ts.map +1 -0
  12. package/dist/app/mw/csrf.d.ts +1 -0
  13. package/dist/app/mw/csrf.d.ts.map +1 -0
  14. package/dist/app/{action.d.ts → post.d.ts} +8 -9
  15. package/dist/app/post.d.ts.map +1 -0
  16. package/dist/app/{action.js → post.js} +1 -1
  17. package/dist/index.d.ts +3 -2
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +2 -2
  20. package/dist/jsx/chunk/index.d.ts +14 -11
  21. package/dist/jsx/chunk/index.d.ts.map +1 -0
  22. package/dist/jsx/chunk/index.js +26 -28
  23. package/dist/jsx/index.d.ts +13 -9
  24. package/dist/jsx/index.d.ts.map +1 -0
  25. package/dist/jsx/index.js +57 -36
  26. package/dist/jsx/{elements.d.ts → intrinsic-elements.d.ts} +2 -1
  27. package/dist/jsx/intrinsic-elements.d.ts.map +1 -0
  28. package/dist/jsx/{merge-async-iterables.d.ts → merge-async-generators.d.ts} +2 -4
  29. package/dist/jsx/merge-async-generators.d.ts.map +1 -0
  30. package/dist/jsx/{merge-async-iterables.js → merge-async-generators.js} +7 -9
  31. package/dist/jsx-dev-runtime.d.ts +1 -0
  32. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  33. package/dist/jsx-runtime.d.ts +1 -0
  34. package/dist/jsx-runtime.d.ts.map +1 -0
  35. package/dist/trie/index.d.ts +1 -0
  36. package/dist/trie/index.d.ts.map +1 -0
  37. package/dist/trie/insert-params.d.ts +1 -0
  38. package/dist/trie/insert-params.d.ts.map +1 -0
  39. package/dist/types/index.d.ts +1 -0
  40. package/dist/types/index.d.ts.map +1 -0
  41. package/dist/util/hash.d.ts +10 -0
  42. package/dist/util/hash.d.ts.map +1 -0
  43. package/dist/util/hash.js +9 -2
  44. package/package.json +4 -2
  45. package/src/app/context.ts +350 -0
  46. package/src/app/get.ts +54 -0
  47. package/src/app/index.ts +302 -0
  48. package/src/app/memo/index.ts +40 -0
  49. package/src/app/mw/csrf.ts +28 -0
  50. package/src/app/post.ts +79 -0
  51. package/src/index.ts +9 -0
  52. package/src/jsx/chunk/index.ts +68 -0
  53. package/src/jsx/index.ts +247 -0
  54. package/src/jsx/intrinsic-elements.ts +812 -0
  55. package/src/jsx/merge-async-generators.ts +42 -0
  56. package/src/jsx-dev-runtime.ts +1 -0
  57. package/src/jsx-runtime.ts +1 -0
  58. package/src/trie/index.ts +335 -0
  59. package/src/trie/insert-params.ts +31 -0
  60. package/src/types/index.ts +23 -0
  61. package/src/util/hash.ts +17 -0
  62. /package/dist/jsx/{elements.js → intrinsic-elements.js} +0 -0
@@ -0,0 +1,812 @@
1
+ // cspell: disable
2
+ import type { JSX, Props } from "./index.js";
3
+
4
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
5
+ type Attributes<
6
+ P extends Props = Props,
7
+ Children = JSX.Element, // for void elements `undefined` is passed in here
8
+ > = Partial<{
9
+ children: Children;
10
+ accesskey: string;
11
+ anchor: string;
12
+ autocapitalize: "on" | "off" | "characters" | "words" | "sentences";
13
+ autocorrect: "on" | "off";
14
+ autofocus: boolean;
15
+ class: string;
16
+ className: string;
17
+ contenteditable: string;
18
+ dir: string;
19
+ draggable: boolean;
20
+ enterkeyhint: string;
21
+ exportparts: string;
22
+ hidden: boolean;
23
+ id: string;
24
+ inert: boolean;
25
+ inputmode: string;
26
+ is: string;
27
+ itemid: string;
28
+ itemprop: string;
29
+ itemref: string;
30
+ itemscope: boolean;
31
+ itemtype: string;
32
+ lang: string;
33
+ nonce: string;
34
+ part: string;
35
+ popover: boolean | "auto" | "hint" | "manual";
36
+ // https://www.w3.org/TR/wai-aria-1.1/#role_definitions
37
+ role:
38
+ | "alert"
39
+ | "alertdialog"
40
+ | "application"
41
+ | "article"
42
+ | "banner"
43
+ | "button"
44
+ | "cell"
45
+ | "checkbox"
46
+ | "columnheader"
47
+ | "combobox"
48
+ | "complementary"
49
+ | "contentinfo"
50
+ | "definition"
51
+ | "dialog"
52
+ | "directory"
53
+ | "document"
54
+ | "feed"
55
+ | "figure"
56
+ | "form"
57
+ | "grid"
58
+ | "gridcell"
59
+ | "group"
60
+ | "heading"
61
+ | "img"
62
+ | "link"
63
+ | "list"
64
+ | "listbox"
65
+ | "listitem"
66
+ | "log"
67
+ | "main"
68
+ | "marquee"
69
+ | "math"
70
+ | "menu"
71
+ | "menubar"
72
+ | "menuitem"
73
+ | "menuitemcheckbox"
74
+ | "menuitemradio"
75
+ | "navigation"
76
+ | "none"
77
+ | "note"
78
+ | "option"
79
+ | "presentation"
80
+ | "progressbar"
81
+ | "radio"
82
+ | "radiogroup"
83
+ | "region"
84
+ | "row"
85
+ | "rowgroup"
86
+ | "rowheader"
87
+ | "scrollbar"
88
+ | "search"
89
+ | "searchbox"
90
+ | "separator"
91
+ | "slider"
92
+ | "spinbutton"
93
+ | "status"
94
+ | "switch"
95
+ | "tab"
96
+ | "table"
97
+ | "tablist"
98
+ | "tabpanel"
99
+ | "term"
100
+ | "textbox"
101
+ | "timer"
102
+ | "toolbar"
103
+ | "tooltip"
104
+ | "tree"
105
+ | "treegrid"
106
+ | "treeitem";
107
+ slot: string;
108
+ spellcheck: "true" | "false";
109
+ style: string;
110
+ tabindex: number;
111
+ title: string;
112
+ translate: string;
113
+ virtualkeyboardpolicy: string;
114
+ writingsuggestions: boolean;
115
+ "aria-atomic": "true" | "false";
116
+ "aria-busy": "true" | "false";
117
+ "aria-controls": string;
118
+ "aria-current":
119
+ | "page"
120
+ | "step"
121
+ | "location"
122
+ | "date"
123
+ | "time"
124
+ | "true"
125
+ | "false";
126
+ "aria-describedby": string;
127
+ "aria-description": string;
128
+ "aria-details": string;
129
+ "aria-disabled": "true" | "false";
130
+ "aria-dropeffect": "none" | "copy" | "execute" | "link" | "move" | "popup";
131
+ "aria-errormessage": string;
132
+ "aria-flowto": string;
133
+ "aria-grabbed": "true" | "false";
134
+ "aria-haspopup":
135
+ | "menu"
136
+ | "listbox"
137
+ | "tree"
138
+ | "grid"
139
+ | "dialog"
140
+ | "true"
141
+ | "false";
142
+ "aria-hidden": "true" | "false";
143
+ "aria-invalid": "grammar" | "false" | "spelling" | "true";
144
+ "aria-keyshortcuts": string;
145
+ "aria-label": string;
146
+ "aria-labelledby": string;
147
+ "aria-live": "assertive" | "off" | "polite";
148
+ "aria-owns": string;
149
+ "aria-relevant": "additions" | "all" | "removals" | "text" | "additions text";
150
+ "aria-roledescription": string;
151
+ }> &
152
+ Props &
153
+ Partial<P>;
154
+
155
+ // have lots of values and shared by some elements but not global
156
+ type SharedAttributes = {
157
+ autocomplete:
158
+ | "on"
159
+ | "off"
160
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#token-list
161
+ | (string & {});
162
+ blocking: "render";
163
+ crossorigin: "anonymous" | "use-credentials";
164
+ referrerpolicy:
165
+ | "no-referrer"
166
+ | "no-referrer-when-downgrade"
167
+ | "origin"
168
+ | "origin-when-cross-origin"
169
+ | "same-origin"
170
+ | "strict-origin"
171
+ | "strict-origin-when-cross-origin"
172
+ | "unsafe-url";
173
+ target: "_self" | "_blank" | "_parent" | "_top";
174
+ preload: "none" | "metadata" | "auto";
175
+ controlslist:
176
+ | "nodownload"
177
+ | "nofullscreen"
178
+ | "noremoteplayback"
179
+ // allows multiple
180
+ | (string & {});
181
+ enctype:
182
+ | "application/x-www-form-urlencoded"
183
+ | "multipart/form-data"
184
+ | "text/plain";
185
+ method: "get" | "post" | "dialog";
186
+ loading: "eager" | "lazy";
187
+ fetchpriority: "high" | "low" | "auto";
188
+ popovertargetaction: "hide" | "show" | "toggle";
189
+ };
190
+
191
+ type AAttributes = Attributes<{
192
+ download: string | boolean;
193
+ href: string;
194
+ hreflang: string;
195
+ ping: string;
196
+ referrerpolicy: SharedAttributes["referrerpolicy"];
197
+ rel:
198
+ | "alternate"
199
+ | "author"
200
+ | "bookmark"
201
+ | "external"
202
+ | "help"
203
+ | "license"
204
+ | "me"
205
+ | "next"
206
+ | "nofollow"
207
+ | "noopener"
208
+ | "noreferrer"
209
+ | "opener"
210
+ | "prev"
211
+ | "privacy-policy"
212
+ | "search"
213
+ | "tag"
214
+ | "terms-of-service"
215
+ // allows multiple
216
+ | (string & {});
217
+ target: SharedAttributes["target"];
218
+ type: string;
219
+ }>;
220
+
221
+ type AreaAttributes = Attributes<
222
+ {
223
+ alt: string;
224
+ coords: "rect" | "circle" | "poly";
225
+ download: string | boolean;
226
+ href: string;
227
+ ping: string;
228
+ referrerpolicy: SharedAttributes["referrerpolicy"];
229
+ rel: AAttributes["rel"];
230
+ shape: "rect" | "circle" | "poly" | "default";
231
+ target: SharedAttributes["target"];
232
+ },
233
+ never
234
+ >;
235
+
236
+ type AudioAttributes = Attributes<{
237
+ autoplay: boolean;
238
+ controls: boolean;
239
+ controlslist: SharedAttributes["controlslist"];
240
+ crossorigin: SharedAttributes["crossorigin"];
241
+ disableremoteplayback: boolean;
242
+ loop: boolean;
243
+ muted: boolean;
244
+ preload: SharedAttributes["preload"];
245
+ src: string;
246
+ }>;
247
+
248
+ type BaseAttributes = Attributes<
249
+ { href: string; target: SharedAttributes["target"] },
250
+ undefined
251
+ >;
252
+
253
+ type BlockquoteAttributes = Attributes<{ cite: string }>;
254
+
255
+ type BodyAttributes = Attributes<{
256
+ onafterprint: string;
257
+ onbeforeprint: string;
258
+ onbeforeunload: string;
259
+ onblur: string;
260
+ onerror: string;
261
+ onfocus: string;
262
+ onhashchange: string;
263
+ onlanguagechange: string;
264
+ onload: string;
265
+ onmessage: string;
266
+ onmessageerror: string;
267
+ onoffline: string;
268
+ ononline: string;
269
+ onpageswap: string;
270
+ onpagehide: string;
271
+ onpagereveal: string;
272
+ onpageshow: string;
273
+ onpopstate: string;
274
+ onresize: string;
275
+ onrejectionhandled: string;
276
+ onstorage: string;
277
+ onunhandledrejection: string;
278
+ onunload: string;
279
+ }>;
280
+
281
+ type ButtonAttributes = Attributes<{
282
+ command: string;
283
+ commandfor: string;
284
+ disabled: boolean;
285
+ form: string;
286
+ formaction: string;
287
+ formenctype: SharedAttributes["enctype"];
288
+ formmethod: SharedAttributes["method"];
289
+ formnovalidate: boolean;
290
+ formtarget: SharedAttributes["target"];
291
+ name: string;
292
+ popovertarget: string;
293
+ popovertargetaction: SharedAttributes["popovertargetaction"];
294
+ type: "button" | "submit" | "reset";
295
+ value: string;
296
+ }>;
297
+
298
+ type CanvasAttributes = Attributes<{
299
+ height: string;
300
+ ["moz-opaque"]: boolean;
301
+ width: string;
302
+ }>;
303
+
304
+ type ColAttributes = Attributes<{ span: string }, undefined>;
305
+
306
+ type ColgroupAttributes = Attributes<{ span: string }>;
307
+
308
+ type DataAttributes = Attributes<{ value: string }>;
309
+
310
+ type DelAttributes = Attributes<{ cite: string; datetime: string }>;
311
+
312
+ type DetailsAttributes = Attributes<{ open: boolean; name: string }>;
313
+
314
+ type DialogAttributes = Attributes<{ open: boolean }>;
315
+
316
+ type EmbedAttributes = Attributes<
317
+ { height: string; src: string; type: string; width: string },
318
+ undefined
319
+ >;
320
+
321
+ type FieldsetAttributes = Attributes<{
322
+ disabled: boolean;
323
+ form: string;
324
+ name: string;
325
+ }>;
326
+
327
+ type FormAttributes = Attributes<{
328
+ ["accept-charset"]: string;
329
+ autocomplete: SharedAttributes["autocomplete"];
330
+ name: string;
331
+ rel:
332
+ | "external"
333
+ | "help"
334
+ | "license"
335
+ | "next"
336
+ | "nofollow"
337
+ | "noopener"
338
+ | "noreferrer"
339
+ | "opener"
340
+ | "prev"
341
+ | "search";
342
+ action: string;
343
+ enctype: SharedAttributes["enctype"];
344
+ method: SharedAttributes["method"];
345
+ novalidate: boolean;
346
+ target: SharedAttributes["target"];
347
+ }>;
348
+
349
+ type HtmlAttributes = Attributes<{ xmlns: string }>;
350
+
351
+ type IframeAttributes = Attributes<{
352
+ allow: string;
353
+ allowfullscreen: boolean;
354
+ height: string;
355
+ loading: SharedAttributes["loading"];
356
+ name: string;
357
+ referrerpolicy: SharedAttributes["referrerpolicy"];
358
+ sandbox: string;
359
+ src: string;
360
+ srcdoc: string;
361
+ width: string;
362
+ }>;
363
+
364
+ type ImgAttributes = Attributes<
365
+ {
366
+ alt: string;
367
+ crossorigin: SharedAttributes["crossorigin"];
368
+ decoding: "sync" | "async" | "auto";
369
+ elementtiming: string;
370
+ fetchpriority: SharedAttributes["fetchpriority"];
371
+ height: string;
372
+ ismap: boolean;
373
+ loading: SharedAttributes["loading"];
374
+ referrerpolicy: SharedAttributes["referrerpolicy"];
375
+ sizes: string;
376
+ src: string;
377
+ srcset: string;
378
+ width: string;
379
+ usemap: string;
380
+ },
381
+ undefined
382
+ >;
383
+
384
+ type InputAttributes = Attributes<
385
+ {
386
+ accept: string;
387
+ alt: string;
388
+ autocomplete: SharedAttributes["autocomplete"];
389
+ capture: string;
390
+ checked: boolean;
391
+ dirname: string;
392
+ disabled: boolean;
393
+ form: string;
394
+ formaction: string;
395
+ formenctype: SharedAttributes["enctype"];
396
+ formmethod: SharedAttributes["method"];
397
+ formnovalidate: boolean;
398
+ formtarget: SharedAttributes["target"];
399
+ height: string;
400
+ list: string;
401
+ max: string;
402
+ maxlength: string;
403
+ min: string;
404
+ minlength: string;
405
+ multiple: boolean;
406
+ name: string;
407
+ pattern: string;
408
+ placeholder: string;
409
+ popovertarget: string;
410
+ popovertargetaction: SharedAttributes["popovertargetaction"];
411
+ readonly: boolean;
412
+ required: boolean;
413
+ size: string;
414
+ src: string;
415
+ step: string;
416
+ type:
417
+ | "button"
418
+ | "checkbox"
419
+ | "color"
420
+ | "date"
421
+ | "datetime-local"
422
+ | "email"
423
+ | "file"
424
+ | "hidden"
425
+ | "image"
426
+ | "month"
427
+ | "number"
428
+ | "password"
429
+ | "radio"
430
+ | "range"
431
+ | "reset"
432
+ | "search"
433
+ | "submit"
434
+ | "tel"
435
+ | "text"
436
+ | "time"
437
+ | "url"
438
+ | "week";
439
+ value: string;
440
+ webkitdirectory: boolean;
441
+ width: string;
442
+ },
443
+ never
444
+ >;
445
+
446
+ type InsAttributes = Attributes<{ cite: string; datetime: string }>;
447
+
448
+ type LabelAttributes = Attributes<{ for: string; htmlFor: string }>;
449
+
450
+ type LiAttributes = Attributes<{ value: string }>;
451
+
452
+ type AnchorAttributes = Attributes<
453
+ {
454
+ as:
455
+ | "audio"
456
+ | "document"
457
+ | "embed"
458
+ | "fetch"
459
+ | "font"
460
+ | "image"
461
+ | "object"
462
+ | "script"
463
+ | "style"
464
+ | "track"
465
+ | "video"
466
+ | "worker";
467
+ blocking: SharedAttributes["blocking"];
468
+ crossorigin: SharedAttributes["crossorigin"];
469
+ disabled: boolean;
470
+ fetchpriority: SharedAttributes["fetchpriority"];
471
+ href: string;
472
+ hreflang: string;
473
+ imagesizes: string;
474
+ imagesrcset: string;
475
+ integrity: string;
476
+ media: string;
477
+ // not all the same options as others
478
+ referrerpolicy:
479
+ | "no-referrer"
480
+ | "no-referrer-when-downgrade"
481
+ | "origin"
482
+ | "origin-when-cross-origin"
483
+ | "unsafe-url";
484
+ // not all the same options as others
485
+ rel:
486
+ | "alternate"
487
+ | "author"
488
+ | "canonical"
489
+ | "dns-prefetch"
490
+ | "expect"
491
+ | "help"
492
+ | "icon"
493
+ | "license"
494
+ | "manifest"
495
+ | "me"
496
+ | "modulepreload"
497
+ | "next"
498
+ | "pingback"
499
+ | "preconnect"
500
+ | "prefetch"
501
+ | "preload"
502
+ | "prerender"
503
+ | "prev"
504
+ | "privacy-policy"
505
+ | "search"
506
+ | "stylesheet"
507
+ | "terms-of-service"
508
+ // allows multiple
509
+ | (string & {});
510
+ sizes: string;
511
+ type: string;
512
+ },
513
+ undefined
514
+ >;
515
+
516
+ type MapAttributes = Attributes<{ name: string }>;
517
+
518
+ type MetaAttributes = Attributes<
519
+ {
520
+ charset: "utf-8";
521
+ content: string;
522
+ "http-equiv":
523
+ | "content-security-policy"
524
+ | "content-type"
525
+ | "default-style"
526
+ | "x-ua-compatible"
527
+ | "refresh";
528
+ media: string;
529
+ name:
530
+ | "application-name"
531
+ | "author"
532
+ | "description"
533
+ | "generator"
534
+ | "keywords"
535
+ | "theme-color"
536
+ | "viewport"
537
+ // allow non-standard meta names
538
+ | (string & {});
539
+ },
540
+ undefined
541
+ >;
542
+
543
+ type MeterAttributes = Attributes<{
544
+ value: string;
545
+ min: string;
546
+ max: string;
547
+ low: string;
548
+ high: string;
549
+ optimum: string;
550
+ form: string;
551
+ }>;
552
+
553
+ type ObjectAttributes = Attributes<{
554
+ data: string;
555
+ form: string;
556
+ height: string;
557
+ name: string;
558
+ type: string;
559
+ width: string;
560
+ }>;
561
+
562
+ type OlAttributes = Attributes<{
563
+ reversed: boolean;
564
+ start: string;
565
+ type: "a" | "A" | "i" | "I" | "1";
566
+ }>;
567
+
568
+ type OptgroupAttributes = Attributes<{ disabled: boolean; label: string }>;
569
+
570
+ type OptionAttributes = Attributes<{
571
+ disabled: boolean;
572
+ label: string;
573
+ selected: boolean;
574
+ value: string;
575
+ }>;
576
+
577
+ type OutputAttributes = Attributes<{
578
+ for: string;
579
+ htmlFor: string;
580
+ form: string;
581
+ name: string;
582
+ }>;
583
+
584
+ type ProgressAttributes = Attributes<{ max: string; value: string }>;
585
+
586
+ type QAttributes = Attributes<{ cite: string }>;
587
+
588
+ type ScriptAttributes = Attributes<{
589
+ async: boolean;
590
+ blocking: SharedAttributes["blocking"];
591
+ crossorigin: SharedAttributes["crossorigin"];
592
+ defer: boolean;
593
+ fetchpriority: SharedAttributes["fetchpriority"];
594
+ integrity: string;
595
+ nomodule: boolean;
596
+ referrerpolicy: SharedAttributes["referrerpolicy"];
597
+ src: string;
598
+ type: "module" | "importmap" | "speculationrules";
599
+ }>;
600
+
601
+ type SelectAttributes = Attributes<{
602
+ autocomplete: SharedAttributes["autocomplete"];
603
+ disabled: boolean;
604
+ form: string;
605
+ multiple: boolean;
606
+ name: string;
607
+ required: boolean;
608
+ size: string;
609
+ }>;
610
+
611
+ type SlotAttributes = Attributes<{ name: string }>;
612
+
613
+ type SourceAttributes = Attributes<
614
+ {
615
+ type: string;
616
+ src: string;
617
+ srcset: string;
618
+ sizes: string;
619
+ media: string;
620
+ height: string;
621
+ width: string;
622
+ },
623
+ undefined
624
+ >;
625
+
626
+ type StyleAttributes = Attributes<{
627
+ blocking: SharedAttributes["blocking"];
628
+ media: string;
629
+ }>;
630
+
631
+ type TdAttributes = Attributes<{
632
+ colspan: string;
633
+ headers: string;
634
+ rowspan: string;
635
+ }>;
636
+
637
+ type TemplateAttributes = Attributes<{
638
+ shadowrootmode: "open" | "closed";
639
+ shadowrootclonable: boolean;
640
+ shadowrootdelegatesfocus: boolean;
641
+ shadowrootserializable: boolean;
642
+ }>;
643
+
644
+ type TextareaAttributes = Attributes<{
645
+ autocomplete: SharedAttributes["autocomplete"];
646
+ cols: string;
647
+ dirname: string;
648
+ disabled: boolean;
649
+ form: string;
650
+ maxlength: string;
651
+ minlength: string;
652
+ name: string;
653
+ placeholder: string;
654
+ readonly: boolean;
655
+ required: boolean;
656
+ rows: string;
657
+ wrap: "hard" | "soft" | "off";
658
+ }>;
659
+
660
+ type ThAttributes = Attributes<{
661
+ abbr: string;
662
+ colspan: string;
663
+ headers: string;
664
+ rowspan: string;
665
+ scope: "row" | "col" | "rowgroup" | "colgroup" | (string & {});
666
+ }>;
667
+
668
+ type TimeAttributes = Attributes<{ datetime: string }>;
669
+
670
+ type TrackAttributes = Attributes<
671
+ {
672
+ default: boolean;
673
+ kind: "subtitles" | "captions" | "chapters" | "metadata";
674
+ label: string;
675
+ src: string;
676
+ srclang: string;
677
+ },
678
+ undefined
679
+ >;
680
+
681
+ type VideoAttributes = Attributes<{
682
+ autoplay: boolean;
683
+ controls: boolean;
684
+ controlslist: SharedAttributes["controlslist"];
685
+ crossorigin: SharedAttributes["crossorigin"];
686
+ disablepictureinpicture: boolean;
687
+ disableremoteplayback: boolean;
688
+ height: string;
689
+ loop: boolean;
690
+ muted: boolean;
691
+ playsinline: boolean;
692
+ poster: string;
693
+ preload: SharedAttributes["preload"];
694
+ src: string;
695
+ width: string;
696
+ }>;
697
+
698
+ export type IntrinsicElements =
699
+ // allows custom elements
700
+ Record<string, Attributes> & {
701
+ a: AAttributes;
702
+ abbr: Attributes;
703
+ address: Attributes;
704
+ area: AreaAttributes;
705
+ article: Attributes;
706
+ aside: Attributes;
707
+ audio: AudioAttributes;
708
+ base: BaseAttributes;
709
+ bdi: Attributes;
710
+ bdo: Attributes;
711
+ blockquote: BlockquoteAttributes;
712
+ body: BodyAttributes;
713
+ br: Attributes<Props, undefined>;
714
+ button: ButtonAttributes;
715
+ canvas: CanvasAttributes;
716
+ caption: Attributes;
717
+ cite: Attributes;
718
+ code: Attributes;
719
+ col: ColAttributes;
720
+ colgroup: ColgroupAttributes;
721
+ data: DataAttributes;
722
+ datalist: Attributes;
723
+ dd: Attributes;
724
+ del: DelAttributes;
725
+ details: DetailsAttributes;
726
+ dfn: Attributes;
727
+ dialog: DialogAttributes;
728
+ div: Attributes;
729
+ dl: Attributes;
730
+ dt: Attributes;
731
+ em: Attributes;
732
+ embed: EmbedAttributes;
733
+ fieldset: FieldsetAttributes;
734
+ figcaption: Attributes;
735
+ figure: Attributes;
736
+ footer: Attributes;
737
+ form: FormAttributes;
738
+ h1: Attributes;
739
+ h2: Attributes;
740
+ h3: Attributes;
741
+ h4: Attributes;
742
+ h5: Attributes;
743
+ h6: Attributes;
744
+ head: Attributes;
745
+ header: Attributes;
746
+ hgroup: Attributes;
747
+ hr: Attributes<Props, undefined>;
748
+ html: HtmlAttributes;
749
+ iframe: IframeAttributes;
750
+ i: Attributes;
751
+ img: ImgAttributes;
752
+ input: InputAttributes;
753
+ ins: InsAttributes;
754
+ kbd: Attributes;
755
+ label: LabelAttributes;
756
+ legend: Attributes;
757
+ li: LiAttributes;
758
+ link: AnchorAttributes;
759
+ main: Attributes;
760
+ map: MapAttributes;
761
+ mark: Attributes;
762
+ menu: Attributes;
763
+ meta: MetaAttributes;
764
+ meter: MeterAttributes;
765
+ nav: Attributes;
766
+ noscript: Attributes;
767
+ object: ObjectAttributes;
768
+ ol: OlAttributes;
769
+ optgroup: OptgroupAttributes;
770
+ option: OptionAttributes;
771
+ output: OutputAttributes;
772
+ p: Attributes;
773
+ picture: Attributes;
774
+ pre: Attributes;
775
+ progress: ProgressAttributes;
776
+ q: QAttributes;
777
+ rp: Attributes;
778
+ rt: Attributes;
779
+ ruby: Attributes;
780
+ s: Attributes;
781
+ samp: Attributes;
782
+ script: ScriptAttributes;
783
+ search: Attributes;
784
+ section: Attributes;
785
+ select: SelectAttributes;
786
+ slot: SlotAttributes;
787
+ small: Attributes;
788
+ source: SourceAttributes;
789
+ span: Attributes;
790
+ strong: Attributes;
791
+ style: StyleAttributes;
792
+ sub: Attributes;
793
+ summary: Attributes;
794
+ sup: Attributes;
795
+ table: Attributes;
796
+ tbody: Attributes;
797
+ td: TdAttributes;
798
+ template: TemplateAttributes;
799
+ textarea: TextareaAttributes;
800
+ tfoot: Attributes;
801
+ th: ThAttributes;
802
+ thead: Attributes;
803
+ time: TimeAttributes;
804
+ title: Attributes;
805
+ tr: Attributes;
806
+ track: TrackAttributes;
807
+ u: Attributes;
808
+ ul: Attributes;
809
+ var: Attributes;
810
+ video: VideoAttributes;
811
+ wbr: Attributes<Props, undefined>;
812
+ };