solid-js 1.9.7 → 1.9.9
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.
- package/dist/dev.cjs +8 -7
- package/dist/dev.js +8 -7
- package/dist/server.cjs +10 -1
- package/dist/server.js +10 -1
- package/dist/solid.cjs +8 -7
- package/dist/solid.js +8 -7
- package/h/jsx-runtime/types/jsx.d.ts +246 -234
- package/package.json +1 -1
- package/store/dist/dev.cjs +9 -5
- package/store/dist/dev.js +9 -5
- package/store/dist/store.cjs +9 -5
- package/store/dist/store.js +9 -5
- package/types/index.d.ts +1 -1
- package/types/jsx.d.ts +245 -229
- package/universal/types/index.d.ts +1 -0
- package/universal/types/universal.d.ts +2 -2
- package/web/dist/dev.cjs +89 -6
- package/web/dist/dev.js +89 -7
- package/web/dist/server.cjs +89 -4
- package/web/dist/server.js +89 -5
- package/web/dist/web.cjs +89 -6
- package/web/dist/web.js +89 -7
package/types/jsx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
THIS FILE IS GENERATED BY `./jsx-update.mjs`.
|
|
3
|
-
PLEASE UPDATE `jsx-h.d.ts` INSTEAD AND RUN `
|
|
3
|
+
PLEASE UPDATE `jsx-h.d.ts` INSTEAD AND RUN `pnpm jsx-sync-types`.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as csstype from "csstype";
|
|
@@ -68,7 +68,8 @@ export namespace JSX {
|
|
|
68
68
|
> = EHandler | BoundEventHandler<T, E, EHandler>;
|
|
69
69
|
|
|
70
70
|
interface EventHandlerWithOptions<T, E extends Event, EHandler = EventHandler<T, E>>
|
|
71
|
-
extends AddEventListenerOptions
|
|
71
|
+
extends AddEventListenerOptions,
|
|
72
|
+
EventListenerOptions {
|
|
72
73
|
handleEvent: EHandler;
|
|
73
74
|
}
|
|
74
75
|
|
|
@@ -138,6 +139,7 @@ export namespace JSX {
|
|
|
138
139
|
}
|
|
139
140
|
interface CustomAttributes<T> {
|
|
140
141
|
ref?: T | ((el: T) => void) | undefined;
|
|
142
|
+
children?: Element | undefined;
|
|
141
143
|
classList?:
|
|
142
144
|
| {
|
|
143
145
|
[k: string]: boolean | undefined;
|
|
@@ -195,16 +197,12 @@ export namespace JSX {
|
|
|
195
197
|
};
|
|
196
198
|
|
|
197
199
|
// events
|
|
198
|
-
interface ElementEventMap<T> {
|
|
199
|
-
onFullscreenChange?: EventHandlerUnion<T, Event> | undefined;
|
|
200
|
-
onFullscreenError?: EventHandlerUnion<T, Event> | undefined;
|
|
201
|
-
|
|
202
|
-
"on:fullscreenchange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
203
|
-
"on:fullscreenerror"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
204
200
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
/**
|
|
202
|
+
* `Window` events, defined for `<body>`, `<svg>`, `<frameset>` tags.
|
|
203
|
+
*
|
|
204
|
+
* Excluding `Elements events` already defined as globals that all tags share, such as `onblur`.
|
|
205
|
+
*/
|
|
208
206
|
interface WindowEventMap<T> {
|
|
209
207
|
onAfterPrint?: EventHandlerUnion<T, Event> | undefined;
|
|
210
208
|
onBeforePrint?: EventHandlerUnion<T, Event> | undefined;
|
|
@@ -276,6 +274,14 @@ export namespace JSX {
|
|
|
276
274
|
"on:unload"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
277
275
|
}
|
|
278
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Global `Elements events`, defined for all tags.
|
|
279
|
+
*
|
|
280
|
+
* That's events defined and shared by all of the `HTMLElement/SVGElement/MathMLElement`
|
|
281
|
+
* interfaces.
|
|
282
|
+
*
|
|
283
|
+
* Includes events defined for the `Element` interface.
|
|
284
|
+
*/
|
|
279
285
|
interface CustomEventHandlersCamelCase<T> {
|
|
280
286
|
onAbort?: EventHandlerUnion<T, UIEvent> | undefined;
|
|
281
287
|
onAnimationCancel?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
@@ -283,20 +289,31 @@ export namespace JSX {
|
|
|
283
289
|
onAnimationIteration?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
284
290
|
onAnimationStart?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
285
291
|
onAuxClick?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
292
|
+
onBeforeCopy?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
293
|
+
onBeforeCut?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
286
294
|
onBeforeInput?: InputEventHandlerUnion<T, InputEvent> | undefined;
|
|
295
|
+
onBeforeMatch?: EventHandlerUnion<T, Event> | undefined;
|
|
296
|
+
onBeforePaste?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
287
297
|
onBeforeToggle?: EventHandlerUnion<T, ToggleEvent> | undefined;
|
|
298
|
+
onBeforeXRSelect?: EventHandlerUnion<T, Event> | undefined;
|
|
288
299
|
onBlur?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
289
300
|
onCancel?: EventHandlerUnion<T, Event> | undefined;
|
|
290
301
|
onCanPlay?: EventHandlerUnion<T, Event> | undefined;
|
|
291
302
|
onCanPlayThrough?: EventHandlerUnion<T, Event> | undefined;
|
|
292
303
|
onChange?: ChangeEventHandlerUnion<T, Event> | undefined;
|
|
293
304
|
onClick?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
305
|
+
onClose?: EventHandlerUnion<T, Event> | undefined;
|
|
294
306
|
// TODO `CommandEvent` is currently undefined in TS
|
|
295
307
|
onCommand?: EventHandlerUnion<T, Event> | undefined;
|
|
296
308
|
onCompositionEnd?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
297
309
|
onCompositionStart?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
298
310
|
onCompositionUpdate?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
311
|
+
onContentVisibilityAutoStateChange?:
|
|
312
|
+
| EventHandlerUnion<T, ContentVisibilityAutoStateChangeEvent>
|
|
313
|
+
| undefined;
|
|
314
|
+
onContextLost?: EventHandlerUnion<T, Event> | undefined;
|
|
299
315
|
onContextMenu?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
316
|
+
onContextRestored?: EventHandlerUnion<T, Event> | undefined;
|
|
300
317
|
onCopy?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
301
318
|
onCueChange?: EventHandlerUnion<T, Event> | undefined;
|
|
302
319
|
onCut?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
@@ -316,6 +333,9 @@ export namespace JSX {
|
|
|
316
333
|
onFocus?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
317
334
|
onFocusIn?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
318
335
|
onFocusOut?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
336
|
+
onFormData?: EventHandlerUnion<T, FormDataEvent> | undefined;
|
|
337
|
+
onFullscreenChange?: EventHandlerUnion<T, Event> | undefined;
|
|
338
|
+
onFullscreenError?: EventHandlerUnion<T, Event> | undefined;
|
|
319
339
|
onGotPointerCapture?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
320
340
|
onInput?: InputEventHandlerUnion<T, InputEvent> | undefined;
|
|
321
341
|
onInvalid?: EventHandlerUnion<T, Event> | undefined;
|
|
@@ -345,6 +365,7 @@ export namespace JSX {
|
|
|
345
365
|
onPointerMove?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
346
366
|
onPointerOut?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
347
367
|
onPointerOver?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
368
|
+
onPointerRawUpdate?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
348
369
|
onPointerUp?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
349
370
|
onProgress?: EventHandlerUnion<T, ProgressEvent> | undefined;
|
|
350
371
|
onRateChange?: EventHandlerUnion<T, Event> | undefined;
|
|
@@ -352,11 +373,16 @@ export namespace JSX {
|
|
|
352
373
|
onResize?: EventHandlerUnion<T, UIEvent> | undefined;
|
|
353
374
|
onScroll?: EventHandlerUnion<T, Event> | undefined;
|
|
354
375
|
onScrollEnd?: EventHandlerUnion<T, Event> | undefined;
|
|
376
|
+
// todo `SnapEvent` is currently undefined in TS
|
|
377
|
+
onScrollSnapChange?: EventHandlerUnion<T, Event> | undefined;
|
|
378
|
+
// todo `SnapEvent` is currently undefined in TS
|
|
379
|
+
onScrollSnapChanging?: EventHandlerUnion<T, Event> | undefined;
|
|
355
380
|
onSecurityPolicyViolation?: EventHandlerUnion<T, SecurityPolicyViolationEvent> | undefined;
|
|
356
381
|
onSeeked?: EventHandlerUnion<T, Event> | undefined;
|
|
357
382
|
onSeeking?: EventHandlerUnion<T, Event> | undefined;
|
|
358
383
|
onSelect?: EventHandlerUnion<T, Event> | undefined;
|
|
359
384
|
onSelectionChange?: EventHandlerUnion<T, Event> | undefined;
|
|
385
|
+
onSelectStart?: EventHandlerUnion<T, Event> | undefined;
|
|
360
386
|
onSlotChange?: EventHandlerUnion<T, Event> | undefined;
|
|
361
387
|
onStalled?: EventHandlerUnion<T, Event> | undefined;
|
|
362
388
|
onSubmit?: EventHandlerUnion<T, SubmitEvent> | undefined;
|
|
@@ -383,20 +409,31 @@ export namespace JSX {
|
|
|
383
409
|
onanimationiteration?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
384
410
|
onanimationstart?: EventHandlerUnion<T, AnimationEvent> | undefined;
|
|
385
411
|
onauxclick?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
412
|
+
onbeforecopy?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
413
|
+
onbeforecut?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
386
414
|
onbeforeinput?: InputEventHandlerUnion<T, InputEvent> | undefined;
|
|
415
|
+
onbeforematch?: EventHandlerUnion<T, Event> | undefined;
|
|
416
|
+
onbeforepaste?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
387
417
|
onbeforetoggle?: EventHandlerUnion<T, ToggleEvent> | undefined;
|
|
418
|
+
onbeforexrselect?: EventHandlerUnion<T, Event> | undefined;
|
|
388
419
|
onblur?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
389
420
|
oncancel?: EventHandlerUnion<T, Event> | undefined;
|
|
390
421
|
oncanplay?: EventHandlerUnion<T, Event> | undefined;
|
|
391
422
|
oncanplaythrough?: EventHandlerUnion<T, Event> | undefined;
|
|
392
423
|
onchange?: ChangeEventHandlerUnion<T, Event> | undefined;
|
|
393
424
|
onclick?: EventHandlerUnion<T, MouseEvent> | undefined;
|
|
425
|
+
onclose?: EventHandlerUnion<T, Event> | undefined;
|
|
394
426
|
// TODO `CommandEvent` is currently undefined in TS
|
|
395
427
|
oncommand?: EventHandlerUnion<T, Event> | undefined;
|
|
396
428
|
oncompositionend?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
397
429
|
oncompositionstart?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
398
430
|
oncompositionupdate?: EventHandlerUnion<T, CompositionEvent> | undefined;
|
|
431
|
+
oncontentvisibilityautostatechange?:
|
|
432
|
+
| EventHandlerUnion<T, ContentVisibilityAutoStateChangeEvent>
|
|
433
|
+
| undefined;
|
|
434
|
+
oncontextlost?: EventHandlerUnion<T, Event> | undefined;
|
|
399
435
|
oncontextmenu?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
436
|
+
oncontextrestored?: EventHandlerUnion<T, Event> | undefined;
|
|
400
437
|
oncopy?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
401
438
|
oncuechange?: EventHandlerUnion<T, Event> | undefined;
|
|
402
439
|
oncut?: EventHandlerUnion<T, ClipboardEvent> | undefined;
|
|
@@ -416,6 +453,9 @@ export namespace JSX {
|
|
|
416
453
|
onfocus?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
417
454
|
onfocusin?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
418
455
|
onfocusout?: FocusEventHandlerUnion<T, FocusEvent> | undefined;
|
|
456
|
+
onformdata?: EventHandlerUnion<T, FormDataEvent> | undefined;
|
|
457
|
+
onfullscreenchange?: EventHandlerUnion<T, Event> | undefined;
|
|
458
|
+
onfullscreenerror?: EventHandlerUnion<T, Event> | undefined;
|
|
419
459
|
ongotpointercapture?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
420
460
|
oninput?: InputEventHandlerUnion<T, InputEvent> | undefined;
|
|
421
461
|
oninvalid?: EventHandlerUnion<T, Event> | undefined;
|
|
@@ -445,6 +485,7 @@ export namespace JSX {
|
|
|
445
485
|
onpointermove?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
446
486
|
onpointerout?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
447
487
|
onpointerover?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
488
|
+
onpointerrawupdate?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
448
489
|
onpointerup?: EventHandlerUnion<T, PointerEvent> | undefined;
|
|
449
490
|
onprogress?: EventHandlerUnion<T, ProgressEvent> | undefined;
|
|
450
491
|
onratechange?: EventHandlerUnion<T, Event> | undefined;
|
|
@@ -452,11 +493,16 @@ export namespace JSX {
|
|
|
452
493
|
onresize?: EventHandlerUnion<T, UIEvent> | undefined;
|
|
453
494
|
onscroll?: EventHandlerUnion<T, Event> | undefined;
|
|
454
495
|
onscrollend?: EventHandlerUnion<T, Event> | undefined;
|
|
496
|
+
// todo `SnapEvent` is currently undefined in TS
|
|
497
|
+
onscrollsnapchange?: EventHandlerUnion<T, Event> | undefined;
|
|
498
|
+
// todo `SnapEvent` is currently undefined in TS
|
|
499
|
+
onscrollsnapchanging?: EventHandlerUnion<T, Event> | undefined;
|
|
455
500
|
onsecuritypolicyviolation?: EventHandlerUnion<T, SecurityPolicyViolationEvent> | undefined;
|
|
456
501
|
onseeked?: EventHandlerUnion<T, Event> | undefined;
|
|
457
502
|
onseeking?: EventHandlerUnion<T, Event> | undefined;
|
|
458
503
|
onselect?: EventHandlerUnion<T, Event> | undefined;
|
|
459
504
|
onselectionchange?: EventHandlerUnion<T, Event> | undefined;
|
|
505
|
+
onselectstart?: EventHandlerUnion<T, Event> | undefined;
|
|
460
506
|
onslotchange?: EventHandlerUnion<T, Event> | undefined;
|
|
461
507
|
onstalled?: EventHandlerUnion<T, Event> | undefined;
|
|
462
508
|
onsubmit?: EventHandlerUnion<T, SubmitEvent> | undefined;
|
|
@@ -483,10 +529,15 @@ export namespace JSX {
|
|
|
483
529
|
"on:animationiteration"?: EventHandlerWithOptionsUnion<T, AnimationEvent> | undefined;
|
|
484
530
|
"on:animationstart"?: EventHandlerWithOptionsUnion<T, AnimationEvent> | undefined;
|
|
485
531
|
"on:auxclick"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
532
|
+
"on:beforecopy"?: EventHandlerWithOptionsUnion<T, ClipboardEvent> | undefined;
|
|
533
|
+
"on:beforecut"?: EventHandlerWithOptionsUnion<T, ClipboardEvent> | undefined;
|
|
486
534
|
"on:beforeinput"?:
|
|
487
535
|
| EventHandlerWithOptionsUnion<T, InputEvent, InputEventHandler<T, InputEvent>>
|
|
488
536
|
| undefined;
|
|
537
|
+
"on:beforematch"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
538
|
+
"on:beforepaste"?: EventHandlerWithOptionsUnion<T, ClipboardEvent> | undefined;
|
|
489
539
|
"on:beforetoggle"?: EventHandlerWithOptionsUnion<T, ToggleEvent> | undefined;
|
|
540
|
+
"on:beforexrselect"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
490
541
|
"on:blur"?:
|
|
491
542
|
| EventHandlerWithOptionsUnion<T, FocusEvent, FocusEventHandler<T, FocusEvent>>
|
|
492
543
|
| undefined;
|
|
@@ -495,12 +546,18 @@ export namespace JSX {
|
|
|
495
546
|
"on:canplaythrough"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
496
547
|
"on:change"?: EventHandlerWithOptionsUnion<T, Event, ChangeEventHandler<T, Event>> | undefined;
|
|
497
548
|
"on:click"?: EventHandlerWithOptionsUnion<T, MouseEvent> | undefined;
|
|
549
|
+
"on:close"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
498
550
|
// TODO `CommandEvent` is currently undefined in TS
|
|
499
551
|
"on:command"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
500
552
|
"on:compositionend"?: EventHandlerWithOptionsUnion<T, CompositionEvent> | undefined;
|
|
501
553
|
"on:compositionstart"?: EventHandlerWithOptionsUnion<T, CompositionEvent> | undefined;
|
|
502
554
|
"on:compositionupdate"?: EventHandlerWithOptionsUnion<T, CompositionEvent> | undefined;
|
|
555
|
+
"on:contentvisibilityautostatechange"?:
|
|
556
|
+
| EventHandlerWithOptionsUnion<T, ContentVisibilityAutoStateChangeEvent>
|
|
557
|
+
| undefined;
|
|
558
|
+
"on:contextlost"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
503
559
|
"on:contextmenu"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
560
|
+
"on:contextrestored"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
504
561
|
"on:copy"?: EventHandlerWithOptionsUnion<T, ClipboardEvent> | undefined;
|
|
505
562
|
"on:cuechange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
506
563
|
"on:cut"?: EventHandlerWithOptionsUnion<T, ClipboardEvent> | undefined;
|
|
@@ -526,6 +583,9 @@ export namespace JSX {
|
|
|
526
583
|
"on:focusout"?:
|
|
527
584
|
| EventHandlerWithOptionsUnion<T, FocusEvent, FocusEventHandler<T, FocusEvent>>
|
|
528
585
|
| undefined;
|
|
586
|
+
"on:formdata"?: EventHandlerWithOptionsUnion<T, FormDataEvent> | undefined;
|
|
587
|
+
"on:fullscreenchange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
588
|
+
"on:fullscreenerror"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
529
589
|
"on:gotpointercapture"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
530
590
|
"on:input"?:
|
|
531
591
|
| EventHandlerWithOptionsUnion<T, InputEvent, InputEventHandler<T, InputEvent>>
|
|
@@ -557,6 +617,7 @@ export namespace JSX {
|
|
|
557
617
|
"on:pointermove"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
558
618
|
"on:pointerout"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
559
619
|
"on:pointerover"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
620
|
+
"on:pointerrawupdate"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
560
621
|
"on:pointerup"?: EventHandlerWithOptionsUnion<T, PointerEvent> | undefined;
|
|
561
622
|
"on:progress"?: EventHandlerWithOptionsUnion<T, ProgressEvent> | undefined;
|
|
562
623
|
"on:ratechange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
@@ -564,6 +625,10 @@ export namespace JSX {
|
|
|
564
625
|
"on:resize"?: EventHandlerWithOptionsUnion<T, UIEvent> | undefined;
|
|
565
626
|
"on:scroll"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
566
627
|
"on:scrollend"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
628
|
+
// todo `SnapEvent` is currently undefined in TS
|
|
629
|
+
"on:scrollsnapchange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
630
|
+
// todo `SnapEvent` is currently undefined in TS
|
|
631
|
+
"on:scrollsnapchanging"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
567
632
|
"on:securitypolicyviolation"?:
|
|
568
633
|
| EventHandlerWithOptionsUnion<T, SecurityPolicyViolationEvent>
|
|
569
634
|
| undefined;
|
|
@@ -571,6 +636,7 @@ export namespace JSX {
|
|
|
571
636
|
"on:seeking"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
572
637
|
"on:select"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
573
638
|
"on:selectionchange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
639
|
+
"on:selectstart"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
574
640
|
"on:slotchange"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
575
641
|
"on:stalled"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
576
642
|
"on:submit"?: EventHandlerWithOptionsUnion<T, SubmitEvent> | undefined;
|
|
@@ -590,6 +656,13 @@ export namespace JSX {
|
|
|
590
656
|
"on:wheel"?: EventHandlerWithOptionsUnion<T, WheelEvent> | undefined;
|
|
591
657
|
}
|
|
592
658
|
|
|
659
|
+
/**
|
|
660
|
+
* Global `Element` keys, defined for all tags regardless of their namespace.
|
|
661
|
+
*
|
|
662
|
+
* That's `keys` that are defined BY ALL `HTMLElement/SVGElement/MathMLElement` interfaces.
|
|
663
|
+
*
|
|
664
|
+
* Includes `keys` defined for the `Element` and `Node` interfaces.
|
|
665
|
+
*/
|
|
593
666
|
interface DOMAttributes<T>
|
|
594
667
|
extends CustomAttributes<T>,
|
|
595
668
|
DirectiveAttributes,
|
|
@@ -601,11 +674,25 @@ export namespace JSX {
|
|
|
601
674
|
OnCaptureAttributes<T>,
|
|
602
675
|
CustomEventHandlersCamelCase<T>,
|
|
603
676
|
CustomEventHandlersLowerCase<T>,
|
|
604
|
-
CustomEventHandlersNamespaced<T
|
|
605
|
-
|
|
677
|
+
CustomEventHandlersNamespaced<T>,
|
|
678
|
+
AriaAttributes {
|
|
679
|
+
// [key: ClassKeys]: boolean;
|
|
680
|
+
|
|
681
|
+
// properties
|
|
606
682
|
innerHTML?: string;
|
|
607
|
-
innerText?: string | number;
|
|
608
683
|
textContent?: string | number;
|
|
684
|
+
|
|
685
|
+
// attributes
|
|
686
|
+
autofocus?: boolean | undefined;
|
|
687
|
+
class?: string | undefined;
|
|
688
|
+
elementtiming?: string | undefined;
|
|
689
|
+
id?: string | undefined;
|
|
690
|
+
nonce?: string | undefined;
|
|
691
|
+
slot?: string | undefined;
|
|
692
|
+
style?: CSSProperties | string | undefined;
|
|
693
|
+
tabindex?: number | string | undefined;
|
|
694
|
+
|
|
695
|
+
tabIndex?: number | string | undefined;
|
|
609
696
|
}
|
|
610
697
|
|
|
611
698
|
interface CSSProperties extends csstype.PropertiesHyphen {
|
|
@@ -614,6 +701,70 @@ export namespace JSX {
|
|
|
614
701
|
}
|
|
615
702
|
|
|
616
703
|
type HTMLAutocapitalize = "off" | "none" | "on" | "sentences" | "words" | "characters";
|
|
704
|
+
type HTMLAutocomplete =
|
|
705
|
+
| "additional-name"
|
|
706
|
+
| "address-level1"
|
|
707
|
+
| "address-level2"
|
|
708
|
+
| "address-level3"
|
|
709
|
+
| "address-level4"
|
|
710
|
+
| "address-line1"
|
|
711
|
+
| "address-line2"
|
|
712
|
+
| "address-line3"
|
|
713
|
+
| "bday"
|
|
714
|
+
| "bday-day"
|
|
715
|
+
| "bday-month"
|
|
716
|
+
| "bday-year"
|
|
717
|
+
| "billing"
|
|
718
|
+
| "cc-additional-name"
|
|
719
|
+
| "cc-csc"
|
|
720
|
+
| "cc-exp"
|
|
721
|
+
| "cc-exp-month"
|
|
722
|
+
| "cc-exp-year"
|
|
723
|
+
| "cc-family-name"
|
|
724
|
+
| "cc-given-name"
|
|
725
|
+
| "cc-name"
|
|
726
|
+
| "cc-number"
|
|
727
|
+
| "cc-type"
|
|
728
|
+
| "country"
|
|
729
|
+
| "country-name"
|
|
730
|
+
| "current-password"
|
|
731
|
+
| "email"
|
|
732
|
+
| "family-name"
|
|
733
|
+
| "fax"
|
|
734
|
+
| "given-name"
|
|
735
|
+
| "home"
|
|
736
|
+
| "honorific-prefix"
|
|
737
|
+
| "honorific-suffix"
|
|
738
|
+
| "impp"
|
|
739
|
+
| "language"
|
|
740
|
+
| "mobile"
|
|
741
|
+
| "name"
|
|
742
|
+
| "new-password"
|
|
743
|
+
| "nickname"
|
|
744
|
+
| "off"
|
|
745
|
+
| "on"
|
|
746
|
+
| "organization"
|
|
747
|
+
| "organization-title"
|
|
748
|
+
| "pager"
|
|
749
|
+
| "photo"
|
|
750
|
+
| "postal-code"
|
|
751
|
+
| "sex"
|
|
752
|
+
| "shipping"
|
|
753
|
+
| "street-address"
|
|
754
|
+
| "tel"
|
|
755
|
+
| "tel-area-code"
|
|
756
|
+
| "tel-country-code"
|
|
757
|
+
| "tel-extension"
|
|
758
|
+
| "tel-local"
|
|
759
|
+
| "tel-local-prefix"
|
|
760
|
+
| "tel-local-suffix"
|
|
761
|
+
| "tel-national"
|
|
762
|
+
| "transaction-amount"
|
|
763
|
+
| "transaction-currency"
|
|
764
|
+
| "url"
|
|
765
|
+
| "username"
|
|
766
|
+
| "work"
|
|
767
|
+
| (string & {});
|
|
617
768
|
type HTMLDir = "ltr" | "rtl" | "auto";
|
|
618
769
|
type HTMLFormEncType = "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain";
|
|
619
770
|
type HTMLFormMethod = "post" | "get" | "dialog";
|
|
@@ -1051,23 +1202,20 @@ export namespace JSX {
|
|
|
1051
1202
|
// [key in CSSKeys as `style:${key}`]: csstype.PropertiesHyphen[key];
|
|
1052
1203
|
// };
|
|
1053
1204
|
|
|
1054
|
-
interface
|
|
1055
|
-
|
|
1056
|
-
|
|
1205
|
+
/** `HTMLElement` interface keys only. (ex not svg/math) */
|
|
1206
|
+
interface HTMLAttributes<T> extends DOMAttributes<T> {
|
|
1207
|
+
innerText?: string | number;
|
|
1208
|
+
|
|
1057
1209
|
accesskey?: string | undefined;
|
|
1058
1210
|
autocapitalize?: HTMLAutocapitalize | undefined;
|
|
1059
|
-
|
|
1060
|
-
color?: string | undefined;
|
|
1211
|
+
autocorrect?: "on" | "off" | undefined;
|
|
1061
1212
|
contenteditable?: "true" | "false" | boolean | "plaintext-only" | "inherit" | undefined;
|
|
1062
|
-
contextmenu?: string | undefined;
|
|
1063
|
-
datatype?: string | undefined;
|
|
1064
1213
|
dir?: HTMLDir | undefined;
|
|
1065
1214
|
draggable?: boolean | "false" | "true" | undefined;
|
|
1215
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
1066
1216
|
exportparts?: string | undefined;
|
|
1067
1217
|
hidden?: boolean | "hidden" | "until-found" | undefined;
|
|
1068
|
-
id?: string | undefined;
|
|
1069
1218
|
inert?: boolean | undefined;
|
|
1070
|
-
inlist?: any | undefined;
|
|
1071
1219
|
inputmode?:
|
|
1072
1220
|
| "decimal"
|
|
1073
1221
|
| "email"
|
|
@@ -1079,30 +1227,16 @@ export namespace JSX {
|
|
|
1079
1227
|
| "url"
|
|
1080
1228
|
| undefined;
|
|
1081
1229
|
is?: string | undefined;
|
|
1082
|
-
itemid?: string | undefined;
|
|
1083
|
-
itemprop?: string | undefined;
|
|
1084
|
-
itemref?: string | undefined;
|
|
1085
|
-
itemscope?: boolean | undefined;
|
|
1086
|
-
itemtype?: string | undefined;
|
|
1087
1230
|
lang?: string | undefined;
|
|
1088
1231
|
part?: string | undefined;
|
|
1089
1232
|
popover?: boolean | "manual" | "auto" | undefined;
|
|
1090
|
-
prefix?: string | undefined;
|
|
1091
|
-
property?: string | undefined;
|
|
1092
|
-
resource?: string | undefined;
|
|
1093
|
-
slot?: string | undefined;
|
|
1094
1233
|
spellcheck?: "true" | "false" | boolean | undefined;
|
|
1095
|
-
style?: CSSProperties | string | undefined;
|
|
1096
|
-
tabindex?: number | string | undefined;
|
|
1097
1234
|
title?: string | undefined;
|
|
1098
1235
|
translate?: "yes" | "no" | undefined;
|
|
1099
|
-
typeof?: string | undefined;
|
|
1100
|
-
vocab?: string | undefined;
|
|
1101
1236
|
|
|
1102
1237
|
accessKey?: string | undefined;
|
|
1103
1238
|
autoCapitalize?: HTMLAutocapitalize | undefined;
|
|
1104
1239
|
contentEditable?: boolean | "plaintext-only" | "inherit" | undefined;
|
|
1105
|
-
contextMenu?: string | undefined;
|
|
1106
1240
|
exportParts?: string | undefined;
|
|
1107
1241
|
inputMode?:
|
|
1108
1242
|
| "none"
|
|
@@ -1114,13 +1248,38 @@ export namespace JSX {
|
|
|
1114
1248
|
| "decimal"
|
|
1115
1249
|
| "search"
|
|
1116
1250
|
| undefined;
|
|
1251
|
+
|
|
1252
|
+
// Microdata
|
|
1253
|
+
itemid?: string | undefined;
|
|
1254
|
+
itemprop?: string | undefined;
|
|
1255
|
+
itemref?: string | undefined;
|
|
1256
|
+
itemscope?: boolean | undefined;
|
|
1257
|
+
itemtype?: string | undefined;
|
|
1258
|
+
|
|
1117
1259
|
itemId?: string | undefined;
|
|
1118
1260
|
itemProp?: string | undefined;
|
|
1119
1261
|
itemRef?: string | undefined;
|
|
1120
1262
|
itemScope?: boolean | undefined;
|
|
1121
1263
|
itemType?: string | undefined;
|
|
1122
|
-
|
|
1264
|
+
|
|
1265
|
+
// RDFa Attributes
|
|
1266
|
+
about?: string | undefined;
|
|
1267
|
+
datatype?: string | undefined;
|
|
1268
|
+
inlist?: any | undefined;
|
|
1269
|
+
prefix?: string | undefined;
|
|
1270
|
+
property?: string | undefined;
|
|
1271
|
+
resource?: string | undefined;
|
|
1272
|
+
typeof?: string | undefined;
|
|
1273
|
+
vocab?: string | undefined;
|
|
1274
|
+
|
|
1275
|
+
/** @deprecated */
|
|
1276
|
+
contextmenu?: string | undefined;
|
|
1277
|
+
/** @deprecated */
|
|
1278
|
+
contextMenu?: string | undefined;
|
|
1123
1279
|
}
|
|
1280
|
+
|
|
1281
|
+
// html elements
|
|
1282
|
+
|
|
1124
1283
|
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1125
1284
|
download?: string | undefined;
|
|
1126
1285
|
href?: string | undefined;
|
|
@@ -1171,15 +1330,14 @@ export namespace JSX {
|
|
|
1171
1330
|
href?: string | undefined;
|
|
1172
1331
|
target?: "_self" | "_blank" | "_parent" | "_top" | (string & {}) | undefined;
|
|
1173
1332
|
}
|
|
1333
|
+
interface BdoHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1334
|
+
dir?: "ltr" | "rtl" | undefined;
|
|
1335
|
+
}
|
|
1174
1336
|
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1175
1337
|
cite?: string | undefined;
|
|
1176
1338
|
}
|
|
1177
|
-
interface BodyHTMLAttributes<T>
|
|
1178
|
-
extends HTMLAttributes<T>,
|
|
1179
|
-
WindowEventMap<T>,
|
|
1180
|
-
ElementEventMap<T> {}
|
|
1339
|
+
interface BodyHTMLAttributes<T> extends HTMLAttributes<T>, WindowEventMap<T> {}
|
|
1181
1340
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1182
|
-
autofocus?: boolean | undefined;
|
|
1183
1341
|
disabled?: boolean | undefined;
|
|
1184
1342
|
form?: string | undefined;
|
|
1185
1343
|
formaction?: string | SerializableAttributeValue | undefined;
|
|
@@ -1217,14 +1375,6 @@ export namespace JSX {
|
|
|
1217
1375
|
height?: number | string | undefined;
|
|
1218
1376
|
width?: number | string | undefined;
|
|
1219
1377
|
|
|
1220
|
-
onContextLost?: EventHandlerUnion<T, Event> | undefined;
|
|
1221
|
-
"on:contextlost"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
1222
|
-
oncontextlost?: EventHandlerUnion<T, Event> | undefined;
|
|
1223
|
-
|
|
1224
|
-
onContextRestored?: EventHandlerUnion<T, Event> | undefined;
|
|
1225
|
-
"on:contextrestored"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
1226
|
-
oncontextrestored?: EventHandlerUnion<T, Event> | undefined;
|
|
1227
|
-
|
|
1228
1378
|
/**
|
|
1229
1379
|
* @deprecated
|
|
1230
1380
|
* @non-standard
|
|
@@ -1285,13 +1435,8 @@ export namespace JSX {
|
|
|
1285
1435
|
*/
|
|
1286
1436
|
tabindex?: never;
|
|
1287
1437
|
|
|
1288
|
-
|
|
1289
|
-
"
|
|
1290
|
-
onclose?: EventHandlerUnion<T, Event> | undefined;
|
|
1291
|
-
|
|
1292
|
-
onCancel?: EventHandlerUnion<T, Event> | undefined;
|
|
1293
|
-
"on:cancel"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
1294
|
-
oncancel?: EventHandlerUnion<T, Event> | undefined;
|
|
1438
|
+
/** @experimental */
|
|
1439
|
+
closedby?: "any" | "closerequest" | "none" | undefined;
|
|
1295
1440
|
}
|
|
1296
1441
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1297
1442
|
height?: number | string | undefined;
|
|
@@ -1321,10 +1466,6 @@ export namespace JSX {
|
|
|
1321
1466
|
rel?: string | undefined;
|
|
1322
1467
|
target?: "_self" | "_blank" | "_parent" | "_top" | (string & {}) | undefined;
|
|
1323
1468
|
|
|
1324
|
-
onFormData?: EventHandlerUnion<T, FormDataEvent> | undefined;
|
|
1325
|
-
"on:formdata"?: EventHandlerWithOptionsUnion<T, FormDataEvent> | undefined;
|
|
1326
|
-
onformdata?: EventHandlerUnion<T, FormDataEvent> | undefined;
|
|
1327
|
-
|
|
1328
1469
|
noValidate?: boolean | undefined;
|
|
1329
1470
|
|
|
1330
1471
|
/** @deprecated */
|
|
@@ -1386,7 +1527,6 @@ export namespace JSX {
|
|
|
1386
1527
|
alt?: string | undefined;
|
|
1387
1528
|
crossorigin?: HTMLCrossorigin | undefined;
|
|
1388
1529
|
decoding?: "sync" | "async" | "auto" | undefined;
|
|
1389
|
-
elementtiming?: string | undefined;
|
|
1390
1530
|
fetchpriority?: "high" | "low" | "auto" | undefined;
|
|
1391
1531
|
height?: number | string | undefined;
|
|
1392
1532
|
ismap?: boolean | undefined;
|
|
@@ -1428,80 +1568,14 @@ export namespace JSX {
|
|
|
1428
1568
|
}
|
|
1429
1569
|
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1430
1570
|
accept?: string | undefined;
|
|
1571
|
+
alpha?: boolean | undefined;
|
|
1431
1572
|
alt?: string | undefined;
|
|
1432
|
-
autocomplete?:
|
|
1433
|
-
| "additional-name"
|
|
1434
|
-
| "address-level1"
|
|
1435
|
-
| "address-level2"
|
|
1436
|
-
| "address-level3"
|
|
1437
|
-
| "address-level4"
|
|
1438
|
-
| "address-line1"
|
|
1439
|
-
| "address-line2"
|
|
1440
|
-
| "address-line3"
|
|
1441
|
-
| "bday"
|
|
1442
|
-
| "bday-day"
|
|
1443
|
-
| "bday-month"
|
|
1444
|
-
| "bday-year"
|
|
1445
|
-
| "billing"
|
|
1446
|
-
| "cc-additional-name"
|
|
1447
|
-
| "cc-csc"
|
|
1448
|
-
| "cc-exp"
|
|
1449
|
-
| "cc-exp-month"
|
|
1450
|
-
| "cc-exp-year"
|
|
1451
|
-
| "cc-family-name"
|
|
1452
|
-
| "cc-given-name"
|
|
1453
|
-
| "cc-name"
|
|
1454
|
-
| "cc-number"
|
|
1455
|
-
| "cc-type"
|
|
1456
|
-
| "country"
|
|
1457
|
-
| "country-name"
|
|
1458
|
-
| "current-password"
|
|
1459
|
-
| "email"
|
|
1460
|
-
| "family-name"
|
|
1461
|
-
| "fax"
|
|
1462
|
-
| "given-name"
|
|
1463
|
-
| "home"
|
|
1464
|
-
| "honorific-prefix"
|
|
1465
|
-
| "honorific-suffix"
|
|
1466
|
-
| "impp"
|
|
1467
|
-
| "language"
|
|
1468
|
-
| "mobile"
|
|
1469
|
-
| "name"
|
|
1470
|
-
| "new-password"
|
|
1471
|
-
| "nickname"
|
|
1472
|
-
| "off"
|
|
1473
|
-
| "on"
|
|
1474
|
-
| "organization"
|
|
1475
|
-
| "organization-title"
|
|
1476
|
-
| "pager"
|
|
1477
|
-
| "photo"
|
|
1478
|
-
| "postal-code"
|
|
1479
|
-
| "sex"
|
|
1480
|
-
| "shipping"
|
|
1481
|
-
| "street-address"
|
|
1482
|
-
| "tel"
|
|
1483
|
-
| "tel-area-code"
|
|
1484
|
-
| "tel-country-code"
|
|
1485
|
-
| "tel-extension"
|
|
1486
|
-
| "tel-local"
|
|
1487
|
-
| "tel-local-prefix"
|
|
1488
|
-
| "tel-local-suffix"
|
|
1489
|
-
| "tel-national"
|
|
1490
|
-
| "transaction-amount"
|
|
1491
|
-
| "transaction-currency"
|
|
1492
|
-
| "url"
|
|
1493
|
-
| "username"
|
|
1494
|
-
| "work"
|
|
1495
|
-
| (string & {})
|
|
1496
|
-
| undefined;
|
|
1497
|
-
autocorrect?: "on" | "off" | undefined;
|
|
1498
|
-
autofocus?: boolean | undefined;
|
|
1573
|
+
autocomplete?: HTMLAutocomplete | undefined;
|
|
1499
1574
|
capture?: "user" | "environment" | undefined;
|
|
1500
1575
|
checked?: boolean | undefined;
|
|
1501
|
-
|
|
1576
|
+
colorspace?: string | undefined;
|
|
1502
1577
|
dirname?: string | undefined;
|
|
1503
1578
|
disabled?: boolean | undefined;
|
|
1504
|
-
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
1505
1579
|
form?: string | undefined;
|
|
1506
1580
|
formaction?: string | SerializableAttributeValue | undefined;
|
|
1507
1581
|
formenctype?: HTMLFormEncType | undefined;
|
|
@@ -1558,7 +1632,6 @@ export namespace JSX {
|
|
|
1558
1632
|
/** @non-standard */
|
|
1559
1633
|
incremental?: boolean | undefined;
|
|
1560
1634
|
|
|
1561
|
-
crossOrigin?: HTMLCrossorigin | undefined;
|
|
1562
1635
|
formAction?: string | SerializableAttributeValue | undefined;
|
|
1563
1636
|
formEnctype?: HTMLFormEncType | undefined;
|
|
1564
1637
|
formMethod?: HTMLFormMethod | undefined;
|
|
@@ -1580,8 +1653,6 @@ export namespace JSX {
|
|
|
1580
1653
|
dateTime?: string | undefined;
|
|
1581
1654
|
}
|
|
1582
1655
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1583
|
-
/** @deprecated */
|
|
1584
|
-
autofocus?: boolean | undefined;
|
|
1585
1656
|
/** @deprecated */
|
|
1586
1657
|
challenge?: string | undefined;
|
|
1587
1658
|
/** @deprecated */
|
|
@@ -1597,7 +1668,6 @@ export namespace JSX {
|
|
|
1597
1668
|
}
|
|
1598
1669
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1599
1670
|
for?: string | undefined;
|
|
1600
|
-
form?: string | undefined;
|
|
1601
1671
|
}
|
|
1602
1672
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1603
1673
|
value?: number | string | undefined;
|
|
@@ -1608,6 +1678,7 @@ export namespace JSX {
|
|
|
1608
1678
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1609
1679
|
as?: HTMLLinkAs | undefined;
|
|
1610
1680
|
blocking?: "render" | undefined;
|
|
1681
|
+
color?: string | undefined;
|
|
1611
1682
|
crossorigin?: HTMLCrossorigin | undefined;
|
|
1612
1683
|
disabled?: boolean | undefined;
|
|
1613
1684
|
fetchpriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -1635,7 +1706,7 @@ export namespace JSX {
|
|
|
1635
1706
|
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1636
1707
|
name?: string | undefined;
|
|
1637
1708
|
}
|
|
1638
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T
|
|
1709
|
+
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1639
1710
|
autoplay?: boolean | undefined;
|
|
1640
1711
|
controls?: boolean | undefined;
|
|
1641
1712
|
controlslist?:
|
|
@@ -1787,7 +1858,6 @@ export namespace JSX {
|
|
|
1787
1858
|
fetchpriority?: "high" | "low" | "auto" | undefined;
|
|
1788
1859
|
integrity?: string | undefined;
|
|
1789
1860
|
nomodule?: boolean | undefined;
|
|
1790
|
-
nonce?: string | undefined;
|
|
1791
1861
|
referrerpolicy?: HTMLReferrerPolicy | undefined;
|
|
1792
1862
|
src?: string | undefined;
|
|
1793
1863
|
type?: "importmap" | "module" | "speculationrules" | (string & {}) | undefined;
|
|
@@ -1807,8 +1877,7 @@ export namespace JSX {
|
|
|
1807
1877
|
language?: string | undefined;
|
|
1808
1878
|
}
|
|
1809
1879
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1810
|
-
autocomplete?:
|
|
1811
|
-
autofocus?: boolean | undefined;
|
|
1880
|
+
autocomplete?: HTMLAutocomplete | undefined;
|
|
1812
1881
|
disabled?: boolean | undefined;
|
|
1813
1882
|
form?: string | undefined;
|
|
1814
1883
|
multiple?: boolean | undefined;
|
|
@@ -1832,7 +1901,6 @@ export namespace JSX {
|
|
|
1832
1901
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1833
1902
|
blocking?: "render" | undefined;
|
|
1834
1903
|
media?: string | undefined;
|
|
1835
|
-
nonce?: string | undefined;
|
|
1836
1904
|
|
|
1837
1905
|
/** @deprecated */
|
|
1838
1906
|
scoped?: boolean | undefined;
|
|
@@ -1872,87 +1940,18 @@ export namespace JSX {
|
|
|
1872
1940
|
}
|
|
1873
1941
|
interface TemplateHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1874
1942
|
shadowrootclonable?: boolean | undefined;
|
|
1943
|
+
shadowrootcustomelementregistry?: boolean | undefined;
|
|
1875
1944
|
shadowrootdelegatesfocus?: boolean | undefined;
|
|
1876
1945
|
shadowrootmode?: "open" | "closed" | undefined;
|
|
1877
1946
|
|
|
1878
1947
|
/** @experimental */
|
|
1879
1948
|
shadowrootserializable?: boolean | undefined;
|
|
1880
|
-
|
|
1881
|
-
/** @deprecated */
|
|
1882
|
-
content?: DocumentFragment | undefined;
|
|
1883
1949
|
}
|
|
1884
1950
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1885
|
-
autocomplete?:
|
|
1886
|
-
| "additional-name"
|
|
1887
|
-
| "address-level1"
|
|
1888
|
-
| "address-level2"
|
|
1889
|
-
| "address-level3"
|
|
1890
|
-
| "address-level4"
|
|
1891
|
-
| "address-line1"
|
|
1892
|
-
| "address-line2"
|
|
1893
|
-
| "address-line3"
|
|
1894
|
-
| "bday"
|
|
1895
|
-
| "bday-day"
|
|
1896
|
-
| "bday-month"
|
|
1897
|
-
| "bday-year"
|
|
1898
|
-
| "billing"
|
|
1899
|
-
| "cc-additional-name"
|
|
1900
|
-
| "cc-csc"
|
|
1901
|
-
| "cc-exp"
|
|
1902
|
-
| "cc-exp-month"
|
|
1903
|
-
| "cc-exp-year"
|
|
1904
|
-
| "cc-family-name"
|
|
1905
|
-
| "cc-given-name"
|
|
1906
|
-
| "cc-name"
|
|
1907
|
-
| "cc-number"
|
|
1908
|
-
| "cc-type"
|
|
1909
|
-
| "country"
|
|
1910
|
-
| "country-name"
|
|
1911
|
-
| "current-password"
|
|
1912
|
-
| "email"
|
|
1913
|
-
| "family-name"
|
|
1914
|
-
| "fax"
|
|
1915
|
-
| "given-name"
|
|
1916
|
-
| "home"
|
|
1917
|
-
| "honorific-prefix"
|
|
1918
|
-
| "honorific-suffix"
|
|
1919
|
-
| "impp"
|
|
1920
|
-
| "language"
|
|
1921
|
-
| "mobile"
|
|
1922
|
-
| "name"
|
|
1923
|
-
| "new-password"
|
|
1924
|
-
| "nickname"
|
|
1925
|
-
| "off"
|
|
1926
|
-
| "on"
|
|
1927
|
-
| "organization"
|
|
1928
|
-
| "organization-title"
|
|
1929
|
-
| "pager"
|
|
1930
|
-
| "photo"
|
|
1931
|
-
| "postal-code"
|
|
1932
|
-
| "sex"
|
|
1933
|
-
| "shipping"
|
|
1934
|
-
| "street-address"
|
|
1935
|
-
| "tel"
|
|
1936
|
-
| "tel-area-code"
|
|
1937
|
-
| "tel-country-code"
|
|
1938
|
-
| "tel-extension"
|
|
1939
|
-
| "tel-local"
|
|
1940
|
-
| "tel-local-prefix"
|
|
1941
|
-
| "tel-local-suffix"
|
|
1942
|
-
| "tel-national"
|
|
1943
|
-
| "transaction-amount"
|
|
1944
|
-
| "transaction-currency"
|
|
1945
|
-
| "url"
|
|
1946
|
-
| "username"
|
|
1947
|
-
| "work"
|
|
1948
|
-
| (string & {})
|
|
1949
|
-
| undefined;
|
|
1950
|
-
autocorrect?: "on" | "off" | undefined;
|
|
1951
|
-
autofocus?: boolean | undefined;
|
|
1951
|
+
autocomplete?: HTMLAutocomplete | undefined;
|
|
1952
1952
|
cols?: number | string | undefined;
|
|
1953
1953
|
dirname?: string | undefined;
|
|
1954
1954
|
disabled?: boolean | undefined;
|
|
1955
|
-
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
1956
1955
|
form?: string | undefined;
|
|
1957
1956
|
maxlength?: number | string | undefined;
|
|
1958
1957
|
minlength?: number | string | undefined;
|
|
@@ -2057,7 +2056,6 @@ export namespace JSX {
|
|
|
2057
2056
|
|
|
2058
2057
|
// does this exists?
|
|
2059
2058
|
allowfullscreen?: boolean | undefined;
|
|
2060
|
-
autofocus?: boolean | undefined;
|
|
2061
2059
|
autosize?: boolean | undefined;
|
|
2062
2060
|
|
|
2063
2061
|
/** @deprecated */
|
|
@@ -2068,6 +2066,7 @@ export namespace JSX {
|
|
|
2068
2066
|
guestinstance?: string | undefined;
|
|
2069
2067
|
}
|
|
2070
2068
|
|
|
2069
|
+
// svg elements
|
|
2071
2070
|
type SVGPreserveAspectRatio =
|
|
2072
2071
|
| "none"
|
|
2073
2072
|
| "xMinYMin"
|
|
@@ -2128,13 +2127,16 @@ export namespace JSX {
|
|
|
2128
2127
|
| "defer xMidYMax slice"
|
|
2129
2128
|
| "defer xMaxYMax slice";
|
|
2130
2129
|
type SVGUnits = "userSpaceOnUse" | "objectBoundingBox";
|
|
2131
|
-
|
|
2132
|
-
|
|
2130
|
+
|
|
2131
|
+
/** Global `SVGElement` interface keys only. (ex not html/math) */
|
|
2132
|
+
interface CoreSVGAttributes<T> extends DOMAttributes<T> {
|
|
2133
2133
|
lang?: string | undefined;
|
|
2134
2134
|
tabindex?: number | string | undefined;
|
|
2135
|
+
xmlns?: string | undefined;
|
|
2135
2136
|
|
|
2136
2137
|
tabIndex?: number | string | undefined;
|
|
2137
2138
|
}
|
|
2139
|
+
|
|
2138
2140
|
interface StylableSVGAttributes {
|
|
2139
2141
|
class?: string | undefined;
|
|
2140
2142
|
style?: CSSProperties | string | undefined;
|
|
@@ -2301,7 +2303,23 @@ export namespace JSX {
|
|
|
2301
2303
|
interface AnimationElementSVGAttributes<T>
|
|
2302
2304
|
extends CoreSVGAttributes<T>,
|
|
2303
2305
|
ExternalResourceSVGAttributes,
|
|
2304
|
-
ConditionalProcessingSVGAttributes {
|
|
2306
|
+
ConditionalProcessingSVGAttributes {
|
|
2307
|
+
// TODO TimeEvent is currently undefined on TS
|
|
2308
|
+
onBegin?: EventHandlerUnion<T, Event> | undefined;
|
|
2309
|
+
onbegin?: EventHandlerUnion<T, Event> | undefined;
|
|
2310
|
+
"on:begin"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
2311
|
+
|
|
2312
|
+
// TODO TimeEvent is currently undefined on TS
|
|
2313
|
+
onEnd?: EventHandlerUnion<T, Event> | undefined;
|
|
2314
|
+
onend?: EventHandlerUnion<T, Event> | undefined;
|
|
2315
|
+
"on:end"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
2316
|
+
|
|
2317
|
+
// TODO TimeEvent is currently undefined on TS
|
|
2318
|
+
onRepeat?: EventHandlerUnion<T, Event> | undefined;
|
|
2319
|
+
onrepeat?: EventHandlerUnion<T, Event> | undefined;
|
|
2320
|
+
"on:repeat"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2305
2323
|
interface ContainerElementSVGAttributes<T>
|
|
2306
2324
|
extends CoreSVGAttributes<T>,
|
|
2307
2325
|
ShapeElementSVGAttributes<T>,
|
|
@@ -2808,7 +2826,7 @@ export namespace JSX {
|
|
|
2808
2826
|
y?: number | string | undefined;
|
|
2809
2827
|
}
|
|
2810
2828
|
interface SetSVGAttributes<T>
|
|
2811
|
-
extends
|
|
2829
|
+
extends AnimationElementSVGAttributes<T>,
|
|
2812
2830
|
StylableSVGAttributes,
|
|
2813
2831
|
AnimationTimingSVGAttributes {}
|
|
2814
2832
|
interface StopSVGAttributes<T>
|
|
@@ -2826,8 +2844,7 @@ export namespace JSX {
|
|
|
2826
2844
|
FitToViewBoxSVGAttributes,
|
|
2827
2845
|
ZoomAndPanSVGAttributes,
|
|
2828
2846
|
PresentationSVGAttributes,
|
|
2829
|
-
WindowEventMap<T
|
|
2830
|
-
ElementEventMap<T> {
|
|
2847
|
+
WindowEventMap<T> {
|
|
2831
2848
|
"xmlns:xlink"?: string | undefined;
|
|
2832
2849
|
contentScriptType?: string | undefined;
|
|
2833
2850
|
contentStyleType?: string | undefined;
|
|
@@ -2935,8 +2952,15 @@ export namespace JSX {
|
|
|
2935
2952
|
viewTarget?: string | undefined;
|
|
2936
2953
|
}
|
|
2937
2954
|
|
|
2938
|
-
|
|
2955
|
+
// math elements
|
|
2956
|
+
|
|
2957
|
+
/** Global `MathMLElement` interface keys only. (ex not html/svg) */
|
|
2958
|
+
interface MathMLAttributes<T> extends DOMAttributes<T> {
|
|
2959
|
+
dir?: HTMLDir | undefined;
|
|
2939
2960
|
displaystyle?: boolean | undefined;
|
|
2961
|
+
scriptlevel?: string | undefined;
|
|
2962
|
+
xmlns?: string | undefined;
|
|
2963
|
+
|
|
2940
2964
|
/** @deprecated */
|
|
2941
2965
|
href?: string | undefined;
|
|
2942
2966
|
/** @deprecated */
|
|
@@ -2945,8 +2969,6 @@ export namespace JSX {
|
|
|
2945
2969
|
mathcolor?: string | undefined;
|
|
2946
2970
|
/** @deprecated */
|
|
2947
2971
|
mathsize?: string | undefined;
|
|
2948
|
-
nonce?: string | undefined;
|
|
2949
|
-
scriptlevel?: string | undefined;
|
|
2950
2972
|
}
|
|
2951
2973
|
|
|
2952
2974
|
interface MathMLAnnotationElementAttributes<T> extends MathMLAttributes<T> {
|
|
@@ -3222,7 +3244,7 @@ export namespace JSX {
|
|
|
3222
3244
|
* @url https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo
|
|
3223
3245
|
* @url https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
|
|
3224
3246
|
*/
|
|
3225
|
-
bdo:
|
|
3247
|
+
bdo: BdoHTMLAttributes<HTMLElement>;
|
|
3226
3248
|
/**
|
|
3227
3249
|
* @url https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote
|
|
3228
3250
|
* @url https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement
|
|
@@ -3751,12 +3773,6 @@ export namespace JSX {
|
|
|
3751
3773
|
* @url https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement
|
|
3752
3774
|
*/
|
|
3753
3775
|
menuitem: HTMLAttributes<HTMLUnknownElement>;
|
|
3754
|
-
/**
|
|
3755
|
-
* @deprecated
|
|
3756
|
-
* @url https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xxxxx
|
|
3757
|
-
* @url https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement
|
|
3758
|
-
*/
|
|
3759
|
-
noindex: HTMLAttributes<HTMLUnknownElement>;
|
|
3760
3776
|
/**
|
|
3761
3777
|
* @deprecated
|
|
3762
3778
|
* @url https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param
|