@stencil/core 5.0.0-beta.9 → 5.0.0-rc.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 (40) hide show
  1. package/dist/app-data/index.d.ts +1 -1
  2. package/dist/app-data/index.js +1 -0
  3. package/dist/{client-BRu0GtRn.mjs → client-ClM4H9-P.mjs} +204 -76
  4. package/dist/compiler/browser.d.ts +120 -81
  5. package/dist/compiler/browser.js +964 -402
  6. package/dist/compiler/index.d.mts +110 -2
  7. package/dist/compiler/index.mjs +3 -3
  8. package/dist/compiler/utils/index.d.mts +2 -2
  9. package/dist/compiler/utils/index.mjs +3 -3
  10. package/dist/{compiler-wLrjuSOK.mjs → compiler-DFanjq9z.mjs} +5300 -3005
  11. package/dist/declarations/stencil-public-compiler.d.ts +178 -133
  12. package/dist/declarations/stencil-public-docs.d.ts +23 -0
  13. package/dist/declarations/stencil-public-runtime.d.ts +81 -59
  14. package/dist/{index-BvF31nqP.d.mts → index-DvfFOkiJ.d.mts} +220 -133
  15. package/dist/{index-BXAcVN2j.d.ts → index-XQHZl0MW.d.ts} +70 -57
  16. package/dist/{index-BAP9T4CB.d.mts → index-aBMJC5F9.d.mts} +6 -2
  17. package/dist/index.d.mts +3 -0
  18. package/dist/index.mjs +1 -1
  19. package/dist/jsx-runtime.d.mts +6 -0
  20. package/dist/jsx-runtime.mjs +1 -1
  21. package/dist/{node-75gQKkFz.mjs → node-DJP8JuAS.mjs} +42 -48
  22. package/dist/runtime/client/lazy.js +522 -262
  23. package/dist/runtime/client/runtime.d.ts +100 -68
  24. package/dist/runtime/client/runtime.js +522 -262
  25. package/dist/runtime/index.d.ts +6 -6
  26. package/dist/runtime/index.js +521 -261
  27. package/dist/runtime/server/index.d.mts +36 -12
  28. package/dist/runtime/server/index.mjs +635 -304
  29. package/dist/runtime/server/runner.d.mts +49 -6
  30. package/dist/runtime/server/runner.mjs +385 -87
  31. package/dist/signals/index.d.ts +11 -2
  32. package/dist/signals/index.js +15 -35
  33. package/dist/sys/node/index.d.mts +1 -1
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.mjs +2 -2
  36. package/dist/testing/index.d.mts +152 -124
  37. package/dist/testing/index.mjs +535 -269
  38. package/dist/{util-IKfWWLJo.mjs → util-C-H1H84W.mjs} +8 -1
  39. package/dist/{validation-DAdGTrys.mjs → validation-ByYYKvnS.mjs} +37 -3
  40. package/package.json +8 -4
@@ -264,6 +264,11 @@ interface JsonDocsComponent {
264
264
  * A deprecation reason/description found following a `@deprecated` tag
265
265
  */
266
266
  deprecation?: string;
267
+ /**
268
+ * `true` if this is a "CSS-only component"
269
+ * discovered in .css file via `@component`-marked JSDoc block
270
+ */
271
+ cssOnly?: boolean;
267
272
  }
268
273
  interface JsonDocsDependencyGraph {
269
274
  [tagName: string]: string[];
@@ -423,6 +428,16 @@ interface JsonDocsStyle {
423
428
  * The annotation used in the JSDoc of the style (e.g. `@prop`)
424
429
  */
425
430
  annotation: string;
431
+ /**
432
+ * The CSS `syntax` descriptor for a custom property, if it was registered via a native
433
+ * `@property` at-rule (e.g. `"<length>"`).
434
+ */
435
+ syntax?: string;
436
+ /**
437
+ * The `initial-value` descriptor for a custom property, if it was registered via a native
438
+ * `@property` at-rule.
439
+ */
440
+ default?: string;
426
441
  /**
427
442
  * The mode associated with the style
428
443
  */
@@ -509,6 +524,14 @@ interface StyleDoc {
509
524
  * The Stencil style-mode that is associated with this property.
510
525
  */
511
526
  mode: string | undefined;
527
+ /**
528
+ * The CSS `syntax` descriptor, if this property was registered via a native `@property` at-rule.
529
+ */
530
+ syntax?: string;
531
+ /**
532
+ * The `initial-value` descriptor, if this property was registered via a native `@property` at-rule.
533
+ */
534
+ default?: string;
512
535
  }
513
536
  //#endregion
514
537
  export { JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, StyleDoc };
@@ -58,7 +58,7 @@ interface ComponentOptions {
58
58
  /**
59
59
  * Relative URL to an external stylesheet providing document-level styles for this component.
60
60
  * Unlike `styleUrl`, these styles are not scoped to shadow/scoped DOM - they are collected
61
- * at build time and injected wherever `@import "stencil-globals"` appears in a global stylesheet.
61
+ * at build time and injected wherever `@import "stencil-component-globals"` appears in a global stylesheet.
62
62
  *
63
63
  * Useful for
64
64
  * - pre-first-js-render styles (combatting cumulative layout shift)
@@ -73,7 +73,7 @@ interface ComponentOptions {
73
73
  globalStyleUrl?: string;
74
74
  /**
75
75
  * Inline CSS string providing document-level styles for this component.
76
- * Collected at build time and injected wherever `@import "stencil-globals"` appears.
76
+ * Collected at build time and injected wherever `@import "stencil-component-globals"` appears.
77
77
  * @see globalStyleUrl
78
78
  */
79
79
  globalStyle?: string;
@@ -112,6 +112,14 @@ interface ShadowEncapsulation {
112
112
  * element is serialized via `Element.getHTML({ serializableShadowRoots: true })`.
113
113
  */
114
114
  serializable?: boolean;
115
+ /**
116
+ * The `id` of an element inside the shadow root that IDREF attributes pointing at the host
117
+ * (e.g. `<label for>`, `aria-labelledby`, `aria-describedby`) should resolve to instead.
118
+ * Lets a label or ARIA relationship outside the component target an internal element.
119
+ *
120
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/referenceTarget
121
+ */
122
+ referenceTarget?: string;
115
123
  }
116
124
  /**
117
125
  * Patch types for non-shadow DOM components that use slots.
@@ -191,6 +199,16 @@ interface PropOptions {
191
199
  * In this case you can set the `reflect` option to `true`, since it defaults to `false`:
192
200
  */
193
201
  reflect?: boolean;
202
+ /**
203
+ * Carry the prop's value from a server render to the browser in its attribute, as JSON:
204
+ * shorthand for a `@PropSerialize()` that writes `JSON.stringify(value)` on the server and an
205
+ * `@AttrDeserialize()` that reads it back with `JSON.parse()`. Attribute values that aren't
206
+ * valid JSON leave the prop as it is (with a warning in dev builds).
207
+ *
208
+ * For other formats (a `Map`, a `Date`...), write the `@PropSerialize()` /
209
+ * `@AttrDeserialize()` pair yourself.
210
+ */
211
+ serialize?: 'json';
194
212
  }
195
213
  interface MethodDecorator {
196
214
  (opts?: MethodOptions): CustomMethodDecorator<any>;
@@ -483,7 +501,7 @@ declare function setAssetPath(path: string): string;
483
501
  /**
484
502
  * Used to specify a nonce value that corresponds with an application's
485
503
  * [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
486
- * When set, the nonce will be added to all dynamically created script and style tags at runtime.
504
+ * When set, the nonce will be added to all dynamically created style tags at runtime.
487
505
  * Alternatively, the nonce value can be set on a `meta` tag in the DOM head
488
506
  * (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
489
507
  * @param nonce The value to be used for the nonce attribute.
@@ -961,7 +979,7 @@ declare namespace LocalJSX {
961
979
  interface IntrinsicElements {}
962
980
  }
963
981
  declare namespace JSXBase {
964
- interface IntrinsicElements {
982
+ export interface IntrinsicElements {
965
983
  slot: JSXBase.SlotAttributes<HTMLSlotElement>;
966
984
  a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
967
985
  abbr: JSXBase.HTMLAttributes;
@@ -1132,12 +1150,12 @@ declare namespace JSXBase {
1132
1150
  use: JSXBase.SVGAttributes;
1133
1151
  view: JSXBase.SVGAttributes;
1134
1152
  }
1135
- interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
1153
+ export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
1136
1154
  name?: string;
1137
1155
  slot?: string;
1138
1156
  onSlotchange?: (event: Event) => void;
1139
1157
  }
1140
- interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
1158
+ export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
1141
1159
  download?: any;
1142
1160
  href?: string;
1143
1161
  hrefLang?: string;
@@ -1148,8 +1166,8 @@ declare namespace JSXBase {
1148
1166
  target?: string;
1149
1167
  referrerPolicy?: ReferrerPolicy;
1150
1168
  }
1151
- interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
1152
- interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
1169
+ export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
1170
+ export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
1153
1171
  alt?: string;
1154
1172
  coords?: string;
1155
1173
  download?: any;
@@ -1161,14 +1179,14 @@ declare namespace JSXBase {
1161
1179
  shape?: string;
1162
1180
  target?: string;
1163
1181
  }
1164
- interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
1182
+ export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
1165
1183
  href?: string;
1166
1184
  target?: string;
1167
1185
  }
1168
- interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
1186
+ export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
1169
1187
  cite?: string;
1170
1188
  }
1171
- interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
1189
+ export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
1172
1190
  disabled?: boolean;
1173
1191
  form?: string;
1174
1192
  formAction?: string;
@@ -1191,45 +1209,45 @@ declare namespace JSXBase {
1191
1209
  commandFor?: string;
1192
1210
  commandfor?: string;
1193
1211
  }
1194
- interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
1212
+ export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
1195
1213
  height?: number | string;
1196
1214
  width?: number | string;
1197
1215
  }
1198
- interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
1216
+ export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
1199
1217
  span?: number;
1200
1218
  }
1201
- interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1219
+ export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1202
1220
  span?: number;
1203
1221
  }
1204
- interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
1222
+ export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
1205
1223
  open?: boolean;
1206
1224
  name?: string;
1207
1225
  onToggle?: (event: ToggleEvent) => void;
1208
1226
  }
1209
- interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1227
+ export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1210
1228
  cite?: string;
1211
1229
  dateTime?: string;
1212
1230
  datetime?: string;
1213
1231
  }
1214
- interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1232
+ export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1215
1233
  onCancel?: (event: Event) => void;
1216
1234
  onClose?: (event: Event) => void;
1217
1235
  open?: boolean;
1218
1236
  returnValue?: string;
1219
1237
  closedby?: 'any' | 'closerequest' | 'none';
1220
1238
  }
1221
- interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1239
+ export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1222
1240
  height?: number | string;
1223
1241
  src?: string;
1224
1242
  type?: string;
1225
1243
  width?: number | string;
1226
1244
  }
1227
- interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1245
+ export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1228
1246
  disabled?: boolean;
1229
1247
  form?: string;
1230
1248
  name?: string;
1231
1249
  }
1232
- interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1250
+ export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1233
1251
  acceptCharset?: string;
1234
1252
  acceptcharset?: string;
1235
1253
  action?: string;
@@ -1243,10 +1261,10 @@ declare namespace JSXBase {
1243
1261
  novalidate?: boolean | string;
1244
1262
  target?: string;
1245
1263
  }
1246
- interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1264
+ export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1247
1265
  manifest?: string;
1248
1266
  }
1249
- interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1267
+ export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1250
1268
  allow?: string;
1251
1269
  allowFullScreen?: boolean;
1252
1270
  allowfullScreen?: string | boolean;
@@ -1273,7 +1291,7 @@ declare namespace JSXBase {
1273
1291
  srcdoc?: string;
1274
1292
  width?: number | string;
1275
1293
  }
1276
- interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1294
+ export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1277
1295
  alt?: string;
1278
1296
  crossOrigin?: string;
1279
1297
  crossorigin?: string;
@@ -1292,12 +1310,12 @@ declare namespace JSXBase {
1292
1310
  usemap?: string;
1293
1311
  width?: number | string;
1294
1312
  }
1295
- interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1313
+ export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1296
1314
  cite?: string;
1297
1315
  dateTime?: string;
1298
1316
  datetime?: string;
1299
1317
  }
1300
- interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1318
+ export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1301
1319
  accept?: string;
1302
1320
  allowdirs?: boolean;
1303
1321
  alt?: string;
@@ -1360,7 +1378,7 @@ declare namespace JSXBase {
1360
1378
  popoverTargetElement?: globalThis.Element | null;
1361
1379
  popoverTarget?: string;
1362
1380
  }
1363
- interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1381
+ export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1364
1382
  challenge?: string;
1365
1383
  disabled?: boolean;
1366
1384
  form?: string;
@@ -1370,14 +1388,14 @@ declare namespace JSXBase {
1370
1388
  keyparams?: string;
1371
1389
  name?: string;
1372
1390
  }
1373
- interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1391
+ export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1374
1392
  form?: string;
1375
1393
  htmlFor?: string;
1376
1394
  }
1377
- interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1395
+ export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1378
1396
  value?: string | string[] | number;
1379
1397
  }
1380
- interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1398
+ export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1381
1399
  as?: string;
1382
1400
  fetchPriority?: 'high' | 'low' | 'auto';
1383
1401
  fetchpriority?: 'high' | 'low' | 'auto';
@@ -1391,13 +1409,13 @@ declare namespace JSXBase {
1391
1409
  sizes?: string;
1392
1410
  type?: string;
1393
1411
  }
1394
- interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1412
+ export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1395
1413
  name?: string;
1396
1414
  }
1397
- interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1415
+ export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1398
1416
  type?: string;
1399
1417
  }
1400
- interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1418
+ export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1401
1419
  autoPlay?: boolean;
1402
1420
  autoplay?: boolean | string;
1403
1421
  controls?: boolean;
@@ -1437,7 +1455,7 @@ declare namespace JSXBase {
1437
1455
  onVolumeChange?: (event: Event) => void;
1438
1456
  onWaiting?: (event: Event) => void;
1439
1457
  }
1440
- interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1458
+ export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1441
1459
  charSet?: string;
1442
1460
  charset?: string;
1443
1461
  content?: string;
@@ -1445,7 +1463,7 @@ declare namespace JSXBase {
1445
1463
  httpequiv?: string;
1446
1464
  name?: string;
1447
1465
  }
1448
- interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1466
+ export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1449
1467
  form?: string;
1450
1468
  high?: number;
1451
1469
  low?: number;
@@ -1454,10 +1472,10 @@ declare namespace JSXBase {
1454
1472
  optimum?: number;
1455
1473
  value?: string | string[] | number;
1456
1474
  }
1457
- interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1475
+ export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1458
1476
  cite?: string;
1459
1477
  }
1460
- interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1478
+ export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1461
1479
  classID?: string;
1462
1480
  classid?: string;
1463
1481
  data?: string;
@@ -1470,34 +1488,34 @@ declare namespace JSXBase {
1470
1488
  width?: number | string;
1471
1489
  wmode?: string;
1472
1490
  }
1473
- interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1491
+ export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1474
1492
  reversed?: boolean;
1475
1493
  start?: number;
1476
1494
  }
1477
- interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1495
+ export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1478
1496
  disabled?: boolean;
1479
1497
  label?: string;
1480
1498
  }
1481
- interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1499
+ export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1482
1500
  disabled?: boolean;
1483
1501
  label?: string;
1484
1502
  selected?: boolean;
1485
1503
  value?: string | string[] | number;
1486
1504
  }
1487
- interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1505
+ export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1488
1506
  form?: string;
1489
1507
  htmlFor?: string;
1490
1508
  name?: string;
1491
1509
  }
1492
- interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1510
+ export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1493
1511
  name?: string;
1494
1512
  value?: string | string[] | number;
1495
1513
  }
1496
- interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1514
+ export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1497
1515
  max?: number | string;
1498
1516
  value?: string | string[] | number;
1499
1517
  }
1500
- interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1518
+ export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1501
1519
  async?: boolean;
1502
1520
  charSet?: string;
1503
1521
  charset?: string;
@@ -1512,7 +1530,7 @@ declare namespace JSXBase {
1512
1530
  src?: string;
1513
1531
  type?: string;
1514
1532
  }
1515
- interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1533
+ export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1516
1534
  disabled?: boolean;
1517
1535
  form?: string;
1518
1536
  multiple?: boolean;
@@ -1522,7 +1540,7 @@ declare namespace JSXBase {
1522
1540
  autoComplete?: string;
1523
1541
  autocomplete?: string;
1524
1542
  }
1525
- interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1543
+ export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1526
1544
  height?: number;
1527
1545
  media?: string;
1528
1546
  sizes?: string;
@@ -1531,20 +1549,20 @@ declare namespace JSXBase {
1531
1549
  type?: string;
1532
1550
  width?: number;
1533
1551
  }
1534
- interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1552
+ export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1535
1553
  media?: string;
1536
1554
  nonce?: string;
1537
1555
  scoped?: boolean;
1538
1556
  type?: string;
1539
1557
  }
1540
- interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1558
+ export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1541
1559
  cellPadding?: number | string;
1542
1560
  cellpadding?: number | string;
1543
1561
  cellSpacing?: number | string;
1544
1562
  cellspacing?: number | string;
1545
1563
  summary?: string;
1546
1564
  }
1547
- interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1565
+ export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1548
1566
  autoComplete?: string;
1549
1567
  autocomplete?: string;
1550
1568
  cols?: number;
@@ -1565,12 +1583,12 @@ declare namespace JSXBase {
1565
1583
  value?: string | string[] | number;
1566
1584
  wrap?: string;
1567
1585
  }
1568
- interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1586
+ export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1569
1587
  colSpan?: number;
1570
1588
  headers?: string;
1571
1589
  rowSpan?: number;
1572
1590
  }
1573
- interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1591
+ export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1574
1592
  abbr?: string;
1575
1593
  colSpan?: number;
1576
1594
  headers?: string;
@@ -1578,10 +1596,10 @@ declare namespace JSXBase {
1578
1596
  rowspan?: number | string;
1579
1597
  scope?: string;
1580
1598
  }
1581
- interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1599
+ export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1582
1600
  dateTime?: string;
1583
1601
  }
1584
- interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1602
+ export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1585
1603
  default?: boolean;
1586
1604
  kind?: string;
1587
1605
  label?: string;
@@ -1589,14 +1607,14 @@ declare namespace JSXBase {
1589
1607
  srcLang?: string;
1590
1608
  srclang?: string;
1591
1609
  }
1592
- interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1610
+ export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1593
1611
  height?: number | string;
1594
1612
  playsInline?: boolean;
1595
1613
  playsinline?: boolean | string;
1596
1614
  poster?: string;
1597
1615
  width?: number | string;
1598
1616
  }
1599
- interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1617
+ export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1600
1618
  innerHTML?: string;
1601
1619
  accessKey?: string;
1602
1620
  autoFocus?: boolean;
@@ -1610,7 +1628,7 @@ declare namespace JSXBase {
1610
1628
  contextmenu?: string;
1611
1629
  dir?: string;
1612
1630
  draggable?: boolean;
1613
- hidden?: boolean;
1631
+ hidden?: boolean | 'until-found';
1614
1632
  id?: string;
1615
1633
  inert?: boolean;
1616
1634
  lang?: string;
@@ -1662,7 +1680,7 @@ declare namespace JSXBase {
1662
1680
  security?: string;
1663
1681
  unselectable?: boolean;
1664
1682
  }
1665
- interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1683
+ export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1666
1684
  class?: string | {
1667
1685
  [className: string]: boolean;
1668
1686
  } | SignalRef<string>;
@@ -1924,13 +1942,15 @@ declare namespace JSXBase {
1924
1942
  zoomAndPan?: string;
1925
1943
  }
1926
1944
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1927
- interface ToggleEvent extends Event {
1945
+ export interface ToggleEvent extends Event {
1928
1946
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1929
1947
  readonly newState: string;
1930
1948
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1931
1949
  readonly oldState: string;
1932
1950
  }
1933
- interface DOMAttributes<T> extends JSXAttributes<T> {
1951
+ type AriaIDLPropertyName = { [K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never; }[keyof ARIAMixin];
1952
+ type JSXAriaProperties = { [K in AriaIDLPropertyName]?: string | boolean | undefined; };
1953
+ export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
1934
1954
  slot?: string;
1935
1955
  part?: string;
1936
1956
  exportparts?: string;
@@ -2060,13 +2080,15 @@ declare namespace JSXBase {
2060
2080
  onTransitionStart?: (event: TransitionEvent) => void;
2061
2081
  onTransitionStartCapture?: (event: TransitionEvent) => void;
2062
2082
  [key: `aria-${string}`]: string | boolean | undefined;
2063
- [key: `aria${string}`]: string | boolean | undefined;
2064
2083
  }
2084
+ export {};
2065
2085
  }
2066
2086
  interface JSXAttributes<T = globalThis.Element> {
2067
2087
  key?: string | number;
2068
2088
  ref?: (elm?: T) => void;
2069
2089
  children?: any;
2090
+ [key: `attr:${string}`]: any;
2091
+ [key: `prop:${string}`]: any;
2070
2092
  }
2071
2093
  interface CustomElementsDefineOptions {
2072
2094
  exclude?: string[];