@stencil/core 5.0.0-beta.1 → 5.0.0-beta.11

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 (32) hide show
  1. package/dist/app-data/index.d.ts +1 -1
  2. package/dist/{client-BRu0GtRn.mjs → client-CdFmjaQa.mjs} +40 -15
  3. package/dist/compiler/browser.d.ts +1 -1
  4. package/dist/compiler/browser.js +77 -41
  5. package/dist/compiler/index.d.mts +1 -1
  6. package/dist/compiler/index.mjs +2 -2
  7. package/dist/compiler/utils/index.d.mts +1 -1
  8. package/dist/{compiler-CJG6qvQt.mjs → compiler-2EypBn_Y.mjs} +346 -122
  9. package/dist/declarations/stencil-public-compiler.d.ts +6 -1
  10. package/dist/declarations/stencil-public-runtime.d.ts +57 -55
  11. package/dist/{index-BXAcVN2j.d.ts → index-BHciXst1.d.ts} +57 -55
  12. package/dist/{index-DmHmu3y0.d.mts → index-CKnzMkZC.d.mts} +1 -1
  13. package/dist/{index-BopBfjPu.d.mts → index-Cw1NW9FW.d.mts} +6 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/jsx-runtime.mjs +1 -1
  16. package/dist/{node-75gQKkFz.mjs → node-HKfDhPR3.mjs} +1 -1
  17. package/dist/runtime/client/lazy.js +63 -31
  18. package/dist/runtime/client/runtime.d.ts +57 -55
  19. package/dist/runtime/client/runtime.js +63 -31
  20. package/dist/runtime/index.d.ts +1 -1
  21. package/dist/runtime/index.js +63 -31
  22. package/dist/runtime/server/index.d.mts +2 -1
  23. package/dist/runtime/server/index.mjs +83 -44
  24. package/dist/runtime/server/runner.mjs +8 -5
  25. package/dist/signals/index.d.ts +11 -2
  26. package/dist/signals/index.js +11 -1
  27. package/dist/sys/node/index.d.mts +1 -1
  28. package/dist/sys/node/index.mjs +1 -1
  29. package/dist/sys/node/worker.mjs +2 -2
  30. package/dist/testing/index.d.mts +6 -1
  31. package/dist/testing/index.mjs +64 -32
  32. package/package.json +4 -4
@@ -1797,7 +1797,8 @@ interface StencilConfig {
1797
1797
  * Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
1798
1798
  * for each component in the build when `true`.
1799
1799
  *
1800
- * @default false
1800
+ * Defaults to `true` for "no-config" projects (no `stencil.config.ts`/`.js` file), and `false`
1801
+ * whenever a config file is present - set this explicitly to opt an existing project in or out.
1801
1802
  */
1802
1803
  generateExportMaps?: boolean;
1803
1804
  /**
@@ -3731,6 +3732,10 @@ interface OutputTargetSsr extends OutputTargetBase {
3731
3732
  */
3732
3733
  cjs?: boolean;
3733
3734
  }
3735
+ /**
3736
+ * Compiles the SSR hydrate app to a WASM plugin (via `extism-js`/QuickJS-ng) that can run
3737
+ * outside of Node
3738
+ */
3734
3739
  interface OutputTargetSsrWasm extends OutputTargetBase {
3735
3740
  type: 'ssr-wasm';
3736
3741
  /** Output directory. @default 'dist/ssr-wasm' */
@@ -961,7 +961,7 @@ declare namespace LocalJSX {
961
961
  interface IntrinsicElements {}
962
962
  }
963
963
  declare namespace JSXBase {
964
- interface IntrinsicElements {
964
+ export interface IntrinsicElements {
965
965
  slot: JSXBase.SlotAttributes<HTMLSlotElement>;
966
966
  a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
967
967
  abbr: JSXBase.HTMLAttributes;
@@ -1132,12 +1132,12 @@ declare namespace JSXBase {
1132
1132
  use: JSXBase.SVGAttributes;
1133
1133
  view: JSXBase.SVGAttributes;
1134
1134
  }
1135
- interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
1135
+ export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
1136
1136
  name?: string;
1137
1137
  slot?: string;
1138
1138
  onSlotchange?: (event: Event) => void;
1139
1139
  }
1140
- interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
1140
+ export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
1141
1141
  download?: any;
1142
1142
  href?: string;
1143
1143
  hrefLang?: string;
@@ -1148,8 +1148,8 @@ declare namespace JSXBase {
1148
1148
  target?: string;
1149
1149
  referrerPolicy?: ReferrerPolicy;
1150
1150
  }
1151
- interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
1152
- interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
1151
+ export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
1152
+ export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
1153
1153
  alt?: string;
1154
1154
  coords?: string;
1155
1155
  download?: any;
@@ -1161,14 +1161,14 @@ declare namespace JSXBase {
1161
1161
  shape?: string;
1162
1162
  target?: string;
1163
1163
  }
1164
- interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
1164
+ export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
1165
1165
  href?: string;
1166
1166
  target?: string;
1167
1167
  }
1168
- interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
1168
+ export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
1169
1169
  cite?: string;
1170
1170
  }
1171
- interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
1171
+ export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
1172
1172
  disabled?: boolean;
1173
1173
  form?: string;
1174
1174
  formAction?: string;
@@ -1191,45 +1191,45 @@ declare namespace JSXBase {
1191
1191
  commandFor?: string;
1192
1192
  commandfor?: string;
1193
1193
  }
1194
- interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
1194
+ export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
1195
1195
  height?: number | string;
1196
1196
  width?: number | string;
1197
1197
  }
1198
- interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
1198
+ export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
1199
1199
  span?: number;
1200
1200
  }
1201
- interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1201
+ export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1202
1202
  span?: number;
1203
1203
  }
1204
- interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
1204
+ export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
1205
1205
  open?: boolean;
1206
1206
  name?: string;
1207
1207
  onToggle?: (event: ToggleEvent) => void;
1208
1208
  }
1209
- interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1209
+ export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1210
1210
  cite?: string;
1211
1211
  dateTime?: string;
1212
1212
  datetime?: string;
1213
1213
  }
1214
- interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1214
+ export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1215
1215
  onCancel?: (event: Event) => void;
1216
1216
  onClose?: (event: Event) => void;
1217
1217
  open?: boolean;
1218
1218
  returnValue?: string;
1219
1219
  closedby?: 'any' | 'closerequest' | 'none';
1220
1220
  }
1221
- interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1221
+ export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1222
1222
  height?: number | string;
1223
1223
  src?: string;
1224
1224
  type?: string;
1225
1225
  width?: number | string;
1226
1226
  }
1227
- interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1227
+ export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1228
1228
  disabled?: boolean;
1229
1229
  form?: string;
1230
1230
  name?: string;
1231
1231
  }
1232
- interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1232
+ export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1233
1233
  acceptCharset?: string;
1234
1234
  acceptcharset?: string;
1235
1235
  action?: string;
@@ -1243,10 +1243,10 @@ declare namespace JSXBase {
1243
1243
  novalidate?: boolean | string;
1244
1244
  target?: string;
1245
1245
  }
1246
- interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1246
+ export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1247
1247
  manifest?: string;
1248
1248
  }
1249
- interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1249
+ export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1250
1250
  allow?: string;
1251
1251
  allowFullScreen?: boolean;
1252
1252
  allowfullScreen?: string | boolean;
@@ -1273,7 +1273,7 @@ declare namespace JSXBase {
1273
1273
  srcdoc?: string;
1274
1274
  width?: number | string;
1275
1275
  }
1276
- interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1276
+ export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1277
1277
  alt?: string;
1278
1278
  crossOrigin?: string;
1279
1279
  crossorigin?: string;
@@ -1292,12 +1292,12 @@ declare namespace JSXBase {
1292
1292
  usemap?: string;
1293
1293
  width?: number | string;
1294
1294
  }
1295
- interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1295
+ export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1296
1296
  cite?: string;
1297
1297
  dateTime?: string;
1298
1298
  datetime?: string;
1299
1299
  }
1300
- interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1300
+ export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1301
1301
  accept?: string;
1302
1302
  allowdirs?: boolean;
1303
1303
  alt?: string;
@@ -1360,7 +1360,7 @@ declare namespace JSXBase {
1360
1360
  popoverTargetElement?: globalThis.Element | null;
1361
1361
  popoverTarget?: string;
1362
1362
  }
1363
- interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1363
+ export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1364
1364
  challenge?: string;
1365
1365
  disabled?: boolean;
1366
1366
  form?: string;
@@ -1370,14 +1370,14 @@ declare namespace JSXBase {
1370
1370
  keyparams?: string;
1371
1371
  name?: string;
1372
1372
  }
1373
- interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1373
+ export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1374
1374
  form?: string;
1375
1375
  htmlFor?: string;
1376
1376
  }
1377
- interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1377
+ export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1378
1378
  value?: string | string[] | number;
1379
1379
  }
1380
- interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1380
+ export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1381
1381
  as?: string;
1382
1382
  fetchPriority?: 'high' | 'low' | 'auto';
1383
1383
  fetchpriority?: 'high' | 'low' | 'auto';
@@ -1391,13 +1391,13 @@ declare namespace JSXBase {
1391
1391
  sizes?: string;
1392
1392
  type?: string;
1393
1393
  }
1394
- interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1394
+ export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1395
1395
  name?: string;
1396
1396
  }
1397
- interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1397
+ export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1398
1398
  type?: string;
1399
1399
  }
1400
- interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1400
+ export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1401
1401
  autoPlay?: boolean;
1402
1402
  autoplay?: boolean | string;
1403
1403
  controls?: boolean;
@@ -1437,7 +1437,7 @@ declare namespace JSXBase {
1437
1437
  onVolumeChange?: (event: Event) => void;
1438
1438
  onWaiting?: (event: Event) => void;
1439
1439
  }
1440
- interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1440
+ export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1441
1441
  charSet?: string;
1442
1442
  charset?: string;
1443
1443
  content?: string;
@@ -1445,7 +1445,7 @@ declare namespace JSXBase {
1445
1445
  httpequiv?: string;
1446
1446
  name?: string;
1447
1447
  }
1448
- interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1448
+ export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1449
1449
  form?: string;
1450
1450
  high?: number;
1451
1451
  low?: number;
@@ -1454,10 +1454,10 @@ declare namespace JSXBase {
1454
1454
  optimum?: number;
1455
1455
  value?: string | string[] | number;
1456
1456
  }
1457
- interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1457
+ export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1458
1458
  cite?: string;
1459
1459
  }
1460
- interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1460
+ export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1461
1461
  classID?: string;
1462
1462
  classid?: string;
1463
1463
  data?: string;
@@ -1470,34 +1470,34 @@ declare namespace JSXBase {
1470
1470
  width?: number | string;
1471
1471
  wmode?: string;
1472
1472
  }
1473
- interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1473
+ export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1474
1474
  reversed?: boolean;
1475
1475
  start?: number;
1476
1476
  }
1477
- interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1477
+ export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1478
1478
  disabled?: boolean;
1479
1479
  label?: string;
1480
1480
  }
1481
- interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1481
+ export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1482
1482
  disabled?: boolean;
1483
1483
  label?: string;
1484
1484
  selected?: boolean;
1485
1485
  value?: string | string[] | number;
1486
1486
  }
1487
- interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1487
+ export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1488
1488
  form?: string;
1489
1489
  htmlFor?: string;
1490
1490
  name?: string;
1491
1491
  }
1492
- interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1492
+ export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1493
1493
  name?: string;
1494
1494
  value?: string | string[] | number;
1495
1495
  }
1496
- interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1496
+ export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1497
1497
  max?: number | string;
1498
1498
  value?: string | string[] | number;
1499
1499
  }
1500
- interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1500
+ export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1501
1501
  async?: boolean;
1502
1502
  charSet?: string;
1503
1503
  charset?: string;
@@ -1512,7 +1512,7 @@ declare namespace JSXBase {
1512
1512
  src?: string;
1513
1513
  type?: string;
1514
1514
  }
1515
- interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1515
+ export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1516
1516
  disabled?: boolean;
1517
1517
  form?: string;
1518
1518
  multiple?: boolean;
@@ -1522,7 +1522,7 @@ declare namespace JSXBase {
1522
1522
  autoComplete?: string;
1523
1523
  autocomplete?: string;
1524
1524
  }
1525
- interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1525
+ export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1526
1526
  height?: number;
1527
1527
  media?: string;
1528
1528
  sizes?: string;
@@ -1531,20 +1531,20 @@ declare namespace JSXBase {
1531
1531
  type?: string;
1532
1532
  width?: number;
1533
1533
  }
1534
- interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1534
+ export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1535
1535
  media?: string;
1536
1536
  nonce?: string;
1537
1537
  scoped?: boolean;
1538
1538
  type?: string;
1539
1539
  }
1540
- interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1540
+ export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1541
1541
  cellPadding?: number | string;
1542
1542
  cellpadding?: number | string;
1543
1543
  cellSpacing?: number | string;
1544
1544
  cellspacing?: number | string;
1545
1545
  summary?: string;
1546
1546
  }
1547
- interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1547
+ export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1548
1548
  autoComplete?: string;
1549
1549
  autocomplete?: string;
1550
1550
  cols?: number;
@@ -1565,12 +1565,12 @@ declare namespace JSXBase {
1565
1565
  value?: string | string[] | number;
1566
1566
  wrap?: string;
1567
1567
  }
1568
- interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1568
+ export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1569
1569
  colSpan?: number;
1570
1570
  headers?: string;
1571
1571
  rowSpan?: number;
1572
1572
  }
1573
- interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1573
+ export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1574
1574
  abbr?: string;
1575
1575
  colSpan?: number;
1576
1576
  headers?: string;
@@ -1578,10 +1578,10 @@ declare namespace JSXBase {
1578
1578
  rowspan?: number | string;
1579
1579
  scope?: string;
1580
1580
  }
1581
- interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1581
+ export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1582
1582
  dateTime?: string;
1583
1583
  }
1584
- interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1584
+ export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1585
1585
  default?: boolean;
1586
1586
  kind?: string;
1587
1587
  label?: string;
@@ -1589,14 +1589,14 @@ declare namespace JSXBase {
1589
1589
  srcLang?: string;
1590
1590
  srclang?: string;
1591
1591
  }
1592
- interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1592
+ export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1593
1593
  height?: number | string;
1594
1594
  playsInline?: boolean;
1595
1595
  playsinline?: boolean | string;
1596
1596
  poster?: string;
1597
1597
  width?: number | string;
1598
1598
  }
1599
- interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1599
+ export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1600
1600
  innerHTML?: string;
1601
1601
  accessKey?: string;
1602
1602
  autoFocus?: boolean;
@@ -1662,7 +1662,7 @@ declare namespace JSXBase {
1662
1662
  security?: string;
1663
1663
  unselectable?: boolean;
1664
1664
  }
1665
- interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1665
+ export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1666
1666
  class?: string | {
1667
1667
  [className: string]: boolean;
1668
1668
  } | SignalRef<string>;
@@ -1924,13 +1924,15 @@ declare namespace JSXBase {
1924
1924
  zoomAndPan?: string;
1925
1925
  }
1926
1926
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1927
- interface ToggleEvent extends Event {
1927
+ export interface ToggleEvent extends Event {
1928
1928
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1929
1929
  readonly newState: string;
1930
1930
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1931
1931
  readonly oldState: string;
1932
1932
  }
1933
- interface DOMAttributes<T> extends JSXAttributes<T> {
1933
+ type AriaIDLPropertyName = { [K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never; }[keyof ARIAMixin];
1934
+ type JSXAriaProperties = { [K in AriaIDLPropertyName]?: string | boolean | undefined; };
1935
+ export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
1934
1936
  slot?: string;
1935
1937
  part?: string;
1936
1938
  exportparts?: string;
@@ -2060,8 +2062,8 @@ declare namespace JSXBase {
2060
2062
  onTransitionStart?: (event: TransitionEvent) => void;
2061
2063
  onTransitionStartCapture?: (event: TransitionEvent) => void;
2062
2064
  [key: `aria-${string}`]: string | boolean | undefined;
2063
- [key: `aria${string}`]: string | boolean | undefined;
2064
2065
  }
2066
+ export {};
2065
2067
  }
2066
2068
  interface JSXAttributes<T = globalThis.Element> {
2067
2069
  key?: string | number;