solid-js 1.9.1 → 1.9.3
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/README.md +1 -1
- package/dist/dev.cjs +1 -1
- package/dist/solid.cjs +1 -1
- package/h/jsx-runtime/types/jsx.d.ts +200 -61
- package/html/dist/html.cjs +1 -1
- package/package.json +1 -1
- package/types/jsx.d.ts +249 -115
- package/types/reactive/signal.d.ts +5 -5
- package/web/dist/dev.cjs +14 -14
- package/web/dist/server.cjs +27 -24
- package/web/dist/server.js +18 -10
- package/web/dist/web.cjs +14 -14
- package/web/types/client.d.ts +1 -1
- package/web/types/server.d.ts +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
**[Website](https://www.solidjs.com/) • [API Docs](https://docs.solidjs.com/) • [Features Tutorial](https://www.solidjs.com/tutorial/introduction_basics) • [Playground](https://playground.solidjs.com/?version=1.3.13#NobwRAdghgtgpmAXGGUCWEwBowBcCeADgsrgM4Ae2YZA9gK4BOAxiWGjIbY7gAQi9GcCABM4jXgF9eAM0a0YvADo1aAGzQiAtACsyAegDucAEYqA3EogcuPfr2ZCouOAGU0Ac2hqps+YpU6DW09CysrGXoIZlw0WgheAGEGCBdGAAoASn4rXgd4sj5gZhTcLF4yOFxkqNwAXV4AXgcnF3cvKDV0gAZMywT8iELeDEc4eFSm3iymgD4KqprU9JLamYBqXgBGPvCBoVwmBPTcvN4AHhN6XFx43gJiRpUrm-iVXnjEjWYAa0aQUZCCa4SSzU5nfirZaZSTgi76F63CBgga7CCwiBWISicTpGaNebnJZpXj6WblES0Zj0YEAOg8VQAompxsJcAAhfAASREJzAUEIhBUmTRYEkdSAA) • [Discord](https://discord.com/invite/solidjs)**
|
|
14
14
|
|
|
15
|
-
Solid is a declarative JavaScript library for creating user interfaces. Instead of using a Virtual DOM, it compiles its templates to real DOM nodes and updates them with fine-grained reactions. Declare your state and use it throughout your app, and when a piece of state changes, only the code that depends on it will rerun. Check out our [intro video](https://www.youtube.com/watch?v=
|
|
15
|
+
Solid is a declarative JavaScript library for creating user interfaces. Instead of using a Virtual DOM, it compiles its templates to real DOM nodes and updates them with fine-grained reactions. Declare your state and use it throughout your app, and when a piece of state changes, only the code that depends on it will rerun. Check out our [intro video](https://www.youtube.com/watch?v=cELFZQAMdhQ) or read on!
|
|
16
16
|
|
|
17
17
|
## Key Features
|
|
18
18
|
|
package/dist/dev.cjs
CHANGED
|
@@ -289,7 +289,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
289
289
|
id = null,
|
|
290
290
|
loadedUnderTransition = false,
|
|
291
291
|
scheduled = false,
|
|
292
|
-
resolved =
|
|
292
|
+
resolved = "initialValue" in options,
|
|
293
293
|
dynamic = typeof source === "function" && createMemo(source);
|
|
294
294
|
const contexts = new Set(),
|
|
295
295
|
[value, setValue] = (options.storage || createSignal)(options.initialValue),
|
package/dist/solid.cjs
CHANGED
|
@@ -271,7 +271,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
271
271
|
id = null,
|
|
272
272
|
loadedUnderTransition = false,
|
|
273
273
|
scheduled = false,
|
|
274
|
-
resolved =
|
|
274
|
+
resolved = "initialValue" in options,
|
|
275
275
|
dynamic = typeof source === "function" && createMemo(source);
|
|
276
276
|
const contexts = new Set(),
|
|
277
277
|
[value, setValue] = (options.storage || createSignal)(options.initialValue),
|
|
@@ -62,7 +62,7 @@ export namespace JSX {
|
|
|
62
62
|
) => void;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
type
|
|
65
|
+
type EventHandlerWithOptionsUnion<T, E extends Event> =
|
|
66
66
|
| EventHandler<T, E>
|
|
67
67
|
| EventHandlerWithOptions<T, E>;
|
|
68
68
|
|
|
@@ -91,9 +91,7 @@ export namespace JSX {
|
|
|
91
91
|
interface ExplicitAttributes {}
|
|
92
92
|
interface ExplicitBoolAttributes {}
|
|
93
93
|
interface CustomEvents {}
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated Replaced by CustomEvents
|
|
96
|
-
*/
|
|
94
|
+
/** @deprecated Replaced by CustomEvents */
|
|
97
95
|
interface CustomCaptureEvents {}
|
|
98
96
|
type DirectiveAttributes = {
|
|
99
97
|
[Key in keyof Directives as `use:${Key}`]?: Directives[Key];
|
|
@@ -124,7 +122,7 @@ export namespace JSX {
|
|
|
124
122
|
[Key in keyof ExplicitBoolAttributes as `bool:${Key}`]?: ExplicitBoolAttributes[Key];
|
|
125
123
|
};
|
|
126
124
|
type OnAttributes<T> = {
|
|
127
|
-
[Key in keyof CustomEvents as `on:${Key}`]?:
|
|
125
|
+
[Key in keyof CustomEvents as `on:${Key}`]?: EventHandlerWithOptionsUnion<T, CustomEvents[Key]>;
|
|
128
126
|
};
|
|
129
127
|
type OnCaptureAttributes<T> = {
|
|
130
128
|
[Key in keyof CustomCaptureEvents as `oncapture:${Key}`]?: EventHandler<
|
|
@@ -138,10 +136,12 @@ export namespace JSX {
|
|
|
138
136
|
DirectiveFunctionAttributes<T>,
|
|
139
137
|
PropAttributes,
|
|
140
138
|
AttrAttributes,
|
|
139
|
+
BoolAttributes,
|
|
141
140
|
OnAttributes<T>,
|
|
142
141
|
OnCaptureAttributes<T>,
|
|
143
142
|
CustomEventHandlersCamelCase<T>,
|
|
144
|
-
CustomEventHandlersLowerCase<T
|
|
143
|
+
CustomEventHandlersLowerCase<T>,
|
|
144
|
+
CustomEventHandlersNamespaced<T> {
|
|
145
145
|
children?: Element;
|
|
146
146
|
innerHTML?: string;
|
|
147
147
|
innerText?: string | number;
|
|
@@ -168,6 +168,17 @@ export namespace JSX {
|
|
|
168
168
|
onfocusin?: EventHandlerUnion<T, FocusEvent>;
|
|
169
169
|
onencrypted?: EventHandlerUnion<T, Event>;
|
|
170
170
|
ondragexit?: EventHandlerUnion<T, DragEvent>;
|
|
171
|
+
// namespaced events
|
|
172
|
+
"on:copy"?: EventHandlerWithOptionsUnion<T, ClipboardEvent>;
|
|
173
|
+
"on:cut"?: EventHandlerWithOptionsUnion<T, ClipboardEvent>;
|
|
174
|
+
"on:paste"?: EventHandlerWithOptionsUnion<T, ClipboardEvent>;
|
|
175
|
+
"on:compositionend"?: EventHandlerWithOptionsUnion<T, CompositionEvent>;
|
|
176
|
+
"on:compositionstart"?: EventHandlerWithOptionsUnion<T, CompositionEvent>;
|
|
177
|
+
"on:compositionupdate"?: EventHandlerWithOptionsUnion<T, CompositionEvent>;
|
|
178
|
+
"on:focusout"?: EventHandlerWithOptionsUnion<T, FocusEvent>;
|
|
179
|
+
"on:focusin"?: EventHandlerWithOptionsUnion<T, FocusEvent>;
|
|
180
|
+
"on:encrypted"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
181
|
+
"on:dragexit"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
171
182
|
}
|
|
172
183
|
interface CustomEventHandlersCamelCase<T> {
|
|
173
184
|
onAbort?: EventHandlerUnion<T, Event>;
|
|
@@ -234,12 +245,7 @@ export namespace JSX {
|
|
|
234
245
|
onSeeking?: EventHandlerUnion<T, Event>;
|
|
235
246
|
onSelect?: EventHandlerUnion<T, UIEvent>;
|
|
236
247
|
onStalled?: EventHandlerUnion<T, Event>;
|
|
237
|
-
onSubmit?: EventHandlerUnion<
|
|
238
|
-
T,
|
|
239
|
-
Event & {
|
|
240
|
-
submitter: HTMLElement;
|
|
241
|
-
}
|
|
242
|
-
>;
|
|
248
|
+
onSubmit?: EventHandlerUnion<T, SubmitEvent>;
|
|
243
249
|
onSuspend?: EventHandlerUnion<T, Event>;
|
|
244
250
|
onTimeUpdate?: EventHandlerUnion<T, Event>;
|
|
245
251
|
onToggle?: EventHandlerUnion<T, ToggleEvent>;
|
|
@@ -255,9 +261,7 @@ export namespace JSX {
|
|
|
255
261
|
onWaiting?: EventHandlerUnion<T, Event>;
|
|
256
262
|
onWheel?: EventHandlerUnion<T, WheelEvent>;
|
|
257
263
|
}
|
|
258
|
-
/**
|
|
259
|
-
* @type {GlobalEventHandlers}
|
|
260
|
-
*/
|
|
264
|
+
/** @type {GlobalEventHandlers} */
|
|
261
265
|
interface CustomEventHandlersLowerCase<T> {
|
|
262
266
|
onabort?: EventHandlerUnion<T, Event>;
|
|
263
267
|
onanimationend?: EventHandlerUnion<T, AnimationEvent>;
|
|
@@ -323,12 +327,7 @@ export namespace JSX {
|
|
|
323
327
|
onseeking?: EventHandlerUnion<T, Event>;
|
|
324
328
|
onselect?: EventHandlerUnion<T, UIEvent>;
|
|
325
329
|
onstalled?: EventHandlerUnion<T, Event>;
|
|
326
|
-
onsubmit?: EventHandlerUnion<
|
|
327
|
-
T,
|
|
328
|
-
Event & {
|
|
329
|
-
submitter: HTMLElement;
|
|
330
|
-
}
|
|
331
|
-
>;
|
|
330
|
+
onsubmit?: EventHandlerUnion<T, SubmitEvent>;
|
|
332
331
|
onsuspend?: EventHandlerUnion<T, Event>;
|
|
333
332
|
ontimeupdate?: EventHandlerUnion<T, Event>;
|
|
334
333
|
ontoggle?: EventHandlerUnion<T, ToggleEvent>;
|
|
@@ -344,6 +343,87 @@ export namespace JSX {
|
|
|
344
343
|
onwaiting?: EventHandlerUnion<T, Event>;
|
|
345
344
|
onwheel?: EventHandlerUnion<T, WheelEvent>;
|
|
346
345
|
}
|
|
346
|
+
interface CustomEventHandlersNamespaced<T> {
|
|
347
|
+
"on:abort"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
348
|
+
"on:animationend"?: EventHandlerWithOptionsUnion<T, AnimationEvent>;
|
|
349
|
+
"on:animationiteration"?: EventHandlerWithOptionsUnion<T, AnimationEvent>;
|
|
350
|
+
"on:animationstart"?: EventHandlerWithOptionsUnion<T, AnimationEvent>;
|
|
351
|
+
"on:auxclick"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
352
|
+
"on:beforeinput"?: EventHandlerWithOptionsUnion<T, InputEvent>;
|
|
353
|
+
"on:beforetoggle"?: EventHandlerWithOptionsUnion<T, ToggleEvent>;
|
|
354
|
+
"on:blur"?: EventHandlerWithOptionsUnion<T, FocusEvent>;
|
|
355
|
+
"on:canplay"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
356
|
+
"on:canplaythrough"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
357
|
+
"on:change"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
358
|
+
"on:click"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
359
|
+
"on:contextmenu"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
360
|
+
"on:dblclick"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
361
|
+
"on:drag"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
362
|
+
"on:dragend"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
363
|
+
"on:dragenter"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
364
|
+
"on:dragleave"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
365
|
+
"on:dragover"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
366
|
+
"on:dragstart"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
367
|
+
"on:drop"?: EventHandlerWithOptionsUnion<T, DragEvent>;
|
|
368
|
+
"on:durationchange"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
369
|
+
"on:emptied"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
370
|
+
"on:ended"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
371
|
+
"on:error"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
372
|
+
"on:focus"?: EventHandlerWithOptionsUnion<T, FocusEvent>;
|
|
373
|
+
"on:gotpointercapture"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
374
|
+
"on:input"?: EventHandlerWithOptionsUnion<T, InputEvent>;
|
|
375
|
+
"on:invalid"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
376
|
+
"on:keydown"?: EventHandlerWithOptionsUnion<T, KeyboardEvent>;
|
|
377
|
+
"on:keypress"?: EventHandlerWithOptionsUnion<T, KeyboardEvent>;
|
|
378
|
+
"on:keyup"?: EventHandlerWithOptionsUnion<T, KeyboardEvent>;
|
|
379
|
+
"on:load"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
380
|
+
"on:loadeddata"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
381
|
+
"on:loadedmetadata"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
382
|
+
"on:loadstart"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
383
|
+
"on:lostpointercapture"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
384
|
+
"on:mousedown"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
385
|
+
"on:mouseenter"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
386
|
+
"on:mouseleave"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
387
|
+
"on:mousemove"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
388
|
+
"on:mouseout"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
389
|
+
"on:mouseover"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
390
|
+
"on:mouseup"?: EventHandlerWithOptionsUnion<T, MouseEvent>;
|
|
391
|
+
"on:pause"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
392
|
+
"on:play"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
393
|
+
"on:playing"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
394
|
+
"on:pointercancel"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
395
|
+
"on:pointerdown"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
396
|
+
"on:pointerenter"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
397
|
+
"on:pointerleave"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
398
|
+
"on:pointermove"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
399
|
+
"on:pointerout"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
400
|
+
"on:pointerover"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
401
|
+
"on:pointerup"?: EventHandlerWithOptionsUnion<T, PointerEvent>;
|
|
402
|
+
"on:progress"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
403
|
+
"on:ratechange"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
404
|
+
"on:reset"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
405
|
+
"on:scroll"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
406
|
+
"on:scrollend"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
407
|
+
"on:seeked"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
408
|
+
"on:seeking"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
409
|
+
"on:select"?: EventHandlerWithOptionsUnion<T, UIEvent>;
|
|
410
|
+
"on:stalled"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
411
|
+
"on:submit"?: EventHandlerWithOptionsUnion<T, SubmitEvent>;
|
|
412
|
+
"on:suspend"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
413
|
+
"on:timeupdate"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
414
|
+
"on:toggle"?: EventHandlerWithOptionsUnion<T, ToggleEvent>;
|
|
415
|
+
"on:touchcancel"?: EventHandlerWithOptionsUnion<T, TouchEvent>;
|
|
416
|
+
"on:touchend"?: EventHandlerWithOptionsUnion<T, TouchEvent>;
|
|
417
|
+
"on:touchmove"?: EventHandlerWithOptionsUnion<T, TouchEvent>;
|
|
418
|
+
"on:touchstart"?: EventHandlerWithOptionsUnion<T, TouchEvent>;
|
|
419
|
+
"on:transitionstart"?: EventHandlerWithOptionsUnion<T, TransitionEvent>;
|
|
420
|
+
"on:transitionend"?: EventHandlerWithOptionsUnion<T, TransitionEvent>;
|
|
421
|
+
"on:transitionrun"?: EventHandlerWithOptionsUnion<T, TransitionEvent>;
|
|
422
|
+
"on:transitioncancel"?: EventHandlerWithOptionsUnion<T, TransitionEvent>;
|
|
423
|
+
"on:volumechange"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
424
|
+
"on:waiting"?: EventHandlerWithOptionsUnion<T, Event>;
|
|
425
|
+
"on:wheel"?: EventHandlerWithOptionsUnion<T, WheelEvent>;
|
|
426
|
+
}
|
|
347
427
|
|
|
348
428
|
interface CSSProperties extends csstype.PropertiesHyphen {
|
|
349
429
|
// Override
|
|
@@ -395,145 +475,203 @@ export namespace JSX {
|
|
|
395
475
|
|
|
396
476
|
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
|
397
477
|
interface AriaAttributes {
|
|
398
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* Identifies the currently active element when DOM focus is on a composite widget, textbox,
|
|
480
|
+
* group, or application.
|
|
481
|
+
*/
|
|
399
482
|
"aria-activedescendant"?: string;
|
|
400
|
-
/**
|
|
483
|
+
/**
|
|
484
|
+
* Indicates whether assistive technologies will present all, or only parts of, the changed
|
|
485
|
+
* region based on the change notifications defined by the aria-relevant attribute.
|
|
486
|
+
*/
|
|
401
487
|
"aria-atomic"?: boolean | "false" | "true";
|
|
402
488
|
/**
|
|
403
|
-
* Indicates whether inputting text could trigger display of one or more predictions of the
|
|
404
|
-
* presented if they
|
|
489
|
+
* Indicates whether inputting text could trigger display of one or more predictions of the
|
|
490
|
+
* user's intended value for an input and specifies how predictions would be presented if they
|
|
491
|
+
* are made.
|
|
405
492
|
*/
|
|
406
493
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both";
|
|
407
|
-
/**
|
|
494
|
+
/**
|
|
495
|
+
* Indicates an element is being modified and that assistive technologies MAY want to wait until
|
|
496
|
+
* the modifications are complete before exposing them to the user.
|
|
497
|
+
*/
|
|
408
498
|
"aria-busy"?: boolean | "false" | "true";
|
|
409
499
|
/**
|
|
410
500
|
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
501
|
+
*
|
|
411
502
|
* @see aria-pressed @see aria-selected.
|
|
412
503
|
*/
|
|
413
504
|
"aria-checked"?: boolean | "false" | "mixed" | "true";
|
|
414
505
|
/**
|
|
415
506
|
* Defines the total number of columns in a table, grid, or treegrid.
|
|
507
|
+
*
|
|
416
508
|
* @see aria-colindex.
|
|
417
509
|
*/
|
|
418
510
|
"aria-colcount"?: number | string;
|
|
419
511
|
/**
|
|
420
|
-
* Defines an element's column index or position with respect to the total number of columns
|
|
512
|
+
* Defines an element's column index or position with respect to the total number of columns
|
|
513
|
+
* within a table, grid, or treegrid.
|
|
514
|
+
*
|
|
421
515
|
* @see aria-colcount @see aria-colspan.
|
|
422
516
|
*/
|
|
423
517
|
"aria-colindex"?: number | string;
|
|
424
518
|
/**
|
|
425
|
-
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or
|
|
519
|
+
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or
|
|
520
|
+
* treegrid.
|
|
521
|
+
*
|
|
426
522
|
* @see aria-colindex @see aria-rowspan.
|
|
427
523
|
*/
|
|
428
524
|
"aria-colspan"?: number | string;
|
|
429
525
|
/**
|
|
430
|
-
* Identifies the element (or elements) whose contents or presence are controlled by the current
|
|
526
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current
|
|
527
|
+
* element.
|
|
528
|
+
*
|
|
431
529
|
* @see aria-owns.
|
|
432
530
|
*/
|
|
433
531
|
"aria-controls"?: string;
|
|
434
|
-
/**
|
|
532
|
+
/**
|
|
533
|
+
* Indicates the element that represents the current item within a container or set of related
|
|
534
|
+
* elements.
|
|
535
|
+
*/
|
|
435
536
|
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time";
|
|
436
537
|
/**
|
|
437
538
|
* Identifies the element (or elements) that describes the object.
|
|
539
|
+
*
|
|
438
540
|
* @see aria-labelledby
|
|
439
541
|
*/
|
|
440
542
|
"aria-describedby"?: string;
|
|
441
543
|
/**
|
|
442
544
|
* Identifies the element that provides a detailed, extended description for the object.
|
|
545
|
+
*
|
|
443
546
|
* @see aria-describedby.
|
|
444
547
|
*/
|
|
445
548
|
"aria-details"?: string;
|
|
446
549
|
/**
|
|
447
|
-
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise
|
|
550
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise
|
|
551
|
+
* operable.
|
|
552
|
+
*
|
|
448
553
|
* @see aria-hidden @see aria-readonly.
|
|
449
554
|
*/
|
|
450
555
|
"aria-disabled"?: boolean | "false" | "true";
|
|
451
556
|
/**
|
|
452
|
-
* Indicates what functions can be performed when a dragged object is released on the drop
|
|
453
|
-
*
|
|
557
|
+
* Indicates what functions can be performed when a dragged object is released on the drop
|
|
558
|
+
* target.
|
|
559
|
+
*
|
|
560
|
+
* @deprecated In ARIA 1.1
|
|
454
561
|
*/
|
|
455
562
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup";
|
|
456
563
|
/**
|
|
457
564
|
* Identifies the element that provides an error message for the object.
|
|
565
|
+
*
|
|
458
566
|
* @see aria-invalid @see aria-describedby.
|
|
459
567
|
*/
|
|
460
568
|
"aria-errormessage"?: string;
|
|
461
|
-
/**
|
|
569
|
+
/**
|
|
570
|
+
* Indicates whether the element, or another grouping element it controls, is currently expanded
|
|
571
|
+
* or collapsed.
|
|
572
|
+
*/
|
|
462
573
|
"aria-expanded"?: boolean | "false" | "true";
|
|
463
574
|
/**
|
|
464
|
-
* Identifies the next element (or elements) in an alternate reading order of content which, at
|
|
465
|
-
* allows assistive technology to override the general default of reading
|
|
575
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at
|
|
576
|
+
* the user's discretion, allows assistive technology to override the general default of reading
|
|
577
|
+
* in document source order.
|
|
466
578
|
*/
|
|
467
579
|
"aria-flowto"?: string;
|
|
468
580
|
/**
|
|
469
581
|
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
470
|
-
*
|
|
582
|
+
*
|
|
583
|
+
* @deprecated In ARIA 1.1
|
|
471
584
|
*/
|
|
472
585
|
"aria-grabbed"?: boolean | "false" | "true";
|
|
473
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* Indicates the availability and type of interactive popup element, such as menu or dialog,
|
|
588
|
+
* that can be triggered by an element.
|
|
589
|
+
*/
|
|
474
590
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
475
591
|
/**
|
|
476
592
|
* Indicates whether the element is exposed to an accessibility API.
|
|
593
|
+
*
|
|
477
594
|
* @see aria-disabled.
|
|
478
595
|
*/
|
|
479
596
|
"aria-hidden"?: boolean | "false" | "true";
|
|
480
597
|
/**
|
|
481
598
|
* Indicates the entered value does not conform to the format expected by the application.
|
|
599
|
+
*
|
|
482
600
|
* @see aria-errormessage.
|
|
483
601
|
*/
|
|
484
602
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling";
|
|
485
|
-
/**
|
|
603
|
+
/**
|
|
604
|
+
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an
|
|
605
|
+
* element.
|
|
606
|
+
*/
|
|
486
607
|
"aria-keyshortcuts"?: string;
|
|
487
608
|
/**
|
|
488
609
|
* Defines a string value that labels the current element.
|
|
610
|
+
*
|
|
489
611
|
* @see aria-labelledby.
|
|
490
612
|
*/
|
|
491
613
|
"aria-label"?: string;
|
|
492
614
|
/**
|
|
493
615
|
* Identifies the element (or elements) that labels the current element.
|
|
616
|
+
*
|
|
494
617
|
* @see aria-describedby.
|
|
495
618
|
*/
|
|
496
619
|
"aria-labelledby"?: string;
|
|
497
620
|
/** Defines the hierarchical level of an element within a structure. */
|
|
498
621
|
"aria-level"?: number | string;
|
|
499
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* Indicates that an element will be updated, and describes the types of updates the user
|
|
624
|
+
* agents, assistive technologies, and user can expect from the live region.
|
|
625
|
+
*/
|
|
500
626
|
"aria-live"?: "off" | "assertive" | "polite";
|
|
501
627
|
/** Indicates whether an element is modal when displayed. */
|
|
502
628
|
"aria-modal"?: boolean | "false" | "true";
|
|
503
629
|
/** Indicates whether a text box accepts multiple lines of input or only a single line. */
|
|
504
630
|
"aria-multiline"?: boolean | "false" | "true";
|
|
505
|
-
/**
|
|
631
|
+
/**
|
|
632
|
+
* Indicates that the user may select more than one item from the current selectable
|
|
633
|
+
* descendants.
|
|
634
|
+
*/
|
|
506
635
|
"aria-multiselectable"?: boolean | "false" | "true";
|
|
507
636
|
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
|
|
508
637
|
"aria-orientation"?: "horizontal" | "vertical";
|
|
509
638
|
/**
|
|
510
|
-
* Identifies an element (or elements) in order to define a visual, functional, or contextual
|
|
511
|
-
* between DOM elements where the DOM hierarchy cannot be used to
|
|
639
|
+
* Identifies an element (or elements) in order to define a visual, functional, or contextual
|
|
640
|
+
* parent/child relationship between DOM elements where the DOM hierarchy cannot be used to
|
|
641
|
+
* represent the relationship.
|
|
642
|
+
*
|
|
512
643
|
* @see aria-controls.
|
|
513
644
|
*/
|
|
514
645
|
"aria-owns"?: string;
|
|
515
646
|
/**
|
|
516
|
-
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when
|
|
517
|
-
* A hint could be a sample value or a brief description of the
|
|
647
|
+
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when
|
|
648
|
+
* the control has no value. A hint could be a sample value or a brief description of the
|
|
649
|
+
* expected format.
|
|
518
650
|
*/
|
|
519
651
|
"aria-placeholder"?: string;
|
|
520
652
|
/**
|
|
521
|
-
* Defines an element's number or position in the current set of listitems or treeitems. Not
|
|
653
|
+
* Defines an element's number or position in the current set of listitems or treeitems. Not
|
|
654
|
+
* required if all elements in the set are present in the DOM.
|
|
655
|
+
*
|
|
522
656
|
* @see aria-setsize.
|
|
523
657
|
*/
|
|
524
658
|
"aria-posinset"?: number | string;
|
|
525
659
|
/**
|
|
526
660
|
* Indicates the current "pressed" state of toggle buttons.
|
|
661
|
+
*
|
|
527
662
|
* @see aria-checked @see aria-selected.
|
|
528
663
|
*/
|
|
529
664
|
"aria-pressed"?: boolean | "false" | "mixed" | "true";
|
|
530
665
|
/**
|
|
531
666
|
* Indicates that the element is not editable, but is otherwise operable.
|
|
667
|
+
*
|
|
532
668
|
* @see aria-disabled.
|
|
533
669
|
*/
|
|
534
670
|
"aria-readonly"?: boolean | "false" | "true";
|
|
535
671
|
/**
|
|
536
|
-
* Indicates what notifications the user agent will trigger when the accessibility tree within a
|
|
672
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a
|
|
673
|
+
* live region is modified.
|
|
674
|
+
*
|
|
537
675
|
* @see aria-atomic.
|
|
538
676
|
*/
|
|
539
677
|
"aria-relevant"?:
|
|
@@ -553,26 +691,33 @@ export namespace JSX {
|
|
|
553
691
|
"aria-roledescription"?: string;
|
|
554
692
|
/**
|
|
555
693
|
* Defines the total number of rows in a table, grid, or treegrid.
|
|
694
|
+
*
|
|
556
695
|
* @see aria-rowindex.
|
|
557
696
|
*/
|
|
558
697
|
"aria-rowcount"?: number | string;
|
|
559
698
|
/**
|
|
560
|
-
* Defines an element's row index or position with respect to the total number of rows within a
|
|
699
|
+
* Defines an element's row index or position with respect to the total number of rows within a
|
|
700
|
+
* table, grid, or treegrid.
|
|
701
|
+
*
|
|
561
702
|
* @see aria-rowcount @see aria-rowspan.
|
|
562
703
|
*/
|
|
563
704
|
"aria-rowindex"?: number | string;
|
|
564
705
|
/**
|
|
565
706
|
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
707
|
+
*
|
|
566
708
|
* @see aria-rowindex @see aria-colspan.
|
|
567
709
|
*/
|
|
568
710
|
"aria-rowspan"?: number | string;
|
|
569
711
|
/**
|
|
570
712
|
* Indicates the current "selected" state of various widgets.
|
|
713
|
+
*
|
|
571
714
|
* @see aria-checked @see aria-pressed.
|
|
572
715
|
*/
|
|
573
716
|
"aria-selected"?: boolean | "false" | "true";
|
|
574
717
|
/**
|
|
575
|
-
* Defines the number of items in the current set of listitems or treeitems. Not required if all
|
|
718
|
+
* Defines the number of items in the current set of listitems or treeitems. Not required if all
|
|
719
|
+
* elements in the set are present in the DOM.
|
|
720
|
+
*
|
|
576
721
|
* @see aria-posinset.
|
|
577
722
|
*/
|
|
578
723
|
"aria-setsize"?: number | string;
|
|
@@ -584,6 +729,7 @@ export namespace JSX {
|
|
|
584
729
|
"aria-valuemin"?: number | string;
|
|
585
730
|
/**
|
|
586
731
|
* Defines the current value for a range widget.
|
|
732
|
+
*
|
|
587
733
|
* @see aria-valuetext.
|
|
588
734
|
*/
|
|
589
735
|
"aria-valuenow"?: number | string;
|
|
@@ -1101,6 +1247,7 @@ export namespace JSX {
|
|
|
1101
1247
|
playsinline?: FunctionMaybe<boolean>;
|
|
1102
1248
|
poster?: FunctionMaybe<string>;
|
|
1103
1249
|
width?: FunctionMaybe<number | string>;
|
|
1250
|
+
disablepictureinpicture?: FunctionMaybe<boolean>;
|
|
1104
1251
|
}
|
|
1105
1252
|
type SVGPreserveAspectRatio =
|
|
1106
1253
|
| "none"
|
|
@@ -1918,9 +2065,7 @@ export namespace JSX {
|
|
|
1918
2065
|
textLength?: FunctionMaybe<number | string>;
|
|
1919
2066
|
lengthAdjust?: FunctionMaybe<"spacing" | "spacingAndGlyphs">;
|
|
1920
2067
|
}
|
|
1921
|
-
/**
|
|
1922
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
|
|
1923
|
-
*/
|
|
2068
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use */
|
|
1924
2069
|
interface UseSVGAttributes<T>
|
|
1925
2070
|
extends CoreSVGAttributes<T>,
|
|
1926
2071
|
StylableSVGAttributes,
|
|
@@ -1942,9 +2087,7 @@ export namespace JSX {
|
|
|
1942
2087
|
ZoomAndPanSVGAttributes {
|
|
1943
2088
|
viewTarget?: FunctionMaybe<string>;
|
|
1944
2089
|
}
|
|
1945
|
-
/**
|
|
1946
|
-
* @type {HTMLElementTagNameMap}
|
|
1947
|
-
*/
|
|
2090
|
+
/** @type {HTMLElementTagNameMap} */
|
|
1948
2091
|
interface HTMLElementTags {
|
|
1949
2092
|
a: AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
1950
2093
|
abbr: HTMLAttributes<HTMLElement>;
|
|
@@ -2059,9 +2202,7 @@ export namespace JSX {
|
|
|
2059
2202
|
video: VideoHTMLAttributes<HTMLVideoElement>;
|
|
2060
2203
|
wbr: HTMLAttributes<HTMLElement>;
|
|
2061
2204
|
}
|
|
2062
|
-
/**
|
|
2063
|
-
* @type {HTMLElementDeprecatedTagNameMap}
|
|
2064
|
-
*/
|
|
2205
|
+
/** @type {HTMLElementDeprecatedTagNameMap} */
|
|
2065
2206
|
interface HTMLElementDeprecatedTags {
|
|
2066
2207
|
big: HTMLAttributes<HTMLElement>;
|
|
2067
2208
|
keygen: KeygenHTMLAttributes<HTMLElement>;
|
|
@@ -2069,9 +2210,7 @@ export namespace JSX {
|
|
|
2069
2210
|
noindex: HTMLAttributes<HTMLElement>;
|
|
2070
2211
|
param: ParamHTMLAttributes<HTMLParamElement>;
|
|
2071
2212
|
}
|
|
2072
|
-
/**
|
|
2073
|
-
* @type {SVGElementTagNameMap}
|
|
2074
|
-
*/
|
|
2213
|
+
/** @type {SVGElementTagNameMap} */
|
|
2075
2214
|
interface SVGElementTags {
|
|
2076
2215
|
animate: AnimateSVGAttributes<SVGAnimateElement>;
|
|
2077
2216
|
animateMotion: AnimateMotionSVGAttributes<SVGAnimateMotionElement>;
|
package/html/dist/html.cjs
CHANGED