@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
@@ -1,5 +1,5 @@
1
1
  import { Diagnostic, Node as Node$1 } from "typescript";
2
- import { InputOptions, Plugin, RolldownError, SourceMap } from "rolldown";
2
+ import { InputOptions, OutputOptions, Plugin, RolldownError, SourceMap } from "rolldown";
3
3
  import { Serializable } from "child_process";
4
4
  //#region src/utils/constants.d.ts
5
5
  declare const MEMBER_FLAGS: {
@@ -459,6 +459,13 @@ declare const isOutputTargetLoaderBundle: (o: OutputTarget) => o is OutputTarget
459
459
  declare const isOutputTargetStandalone: (o: OutputTarget) => o is OutputTargetStandalone;
460
460
  declare const isOutputTargetSsr: (o: OutputTarget) => o is OutputTargetSsr;
461
461
  declare const isOutputTargetSsrWasm: (o: OutputTarget) => o is OutputTargetSsrWasm;
462
+ /**
463
+ * Whether an output target renders components on the server (`ssr` or `ssr-wasm`).
464
+ * When one is present, client builds must be able to hydrate server-rendered markup.
465
+ * @param o the output target to check
466
+ * @returns true if the output target server-renders components
467
+ */
468
+ declare const isOutputTargetServerRenderer: (o: OutputTarget) => o is OutputTargetSsr | OutputTargetSsrWasm;
462
469
  declare const isOutputTargetCollection: (o: OutputTarget) => o is OutputTargetCollection;
463
470
  declare const isOutputTargetTypes: (o: OutputTarget) => o is OutputTargetTypes;
464
471
  declare const isOutputTargetGlobalStyle: (o: OutputTarget) => o is OutputTargetGlobalStyle;
@@ -644,6 +651,25 @@ declare const getInlineSourceMappingUrlLinker: (sourceMapContents: string) => st
644
651
  * @returns a linker string, of the format {@link JS_SOURCE_MAPPING_URL_LINKER}=<url>.map, prepended with a newline
645
652
  */
646
653
  declare const getSourceMappingUrlForEndOfFile: (url: string) => string;
654
+ /**
655
+ * Rolldown source map output options. Stencil appends its own `sourceMappingURL` comment, so the map
656
+ * is `hidden`. A chunk can be written to several directories, so `sources` are made absolute here
657
+ * (query strings stripped) and relative to each destination by {@link relativizeSourceMap}.
658
+ * Virtual modules have no file and keep their id.
659
+ *
660
+ * @param config the validated Stencil configuration
661
+ * @returns the source map options to spread into Rolldown's output options
662
+ */
663
+ declare const getRolldownSourceMapOptions: (config: ValidatedConfig) => Pick<OutputOptions, "sourcemap" | "sourcemapPathTransform">;
664
+ /**
665
+ * Makes a source map's absolute `sources` relative to where the map is written, and names the
666
+ * file it maps.
667
+ *
668
+ * @param sourceMap the source map, with absolute `sources` from {@link getRolldownSourceMapOptions}
669
+ * @param filePath the path the mapped `.js` file is written to
670
+ * @returns the source map to write next to `filePath`
671
+ */
672
+ declare const relativizeSourceMap: (sourceMap: SourceMap$1, filePath: string) => SourceMap$1;
647
673
  //#endregion
648
674
  //#region src/utils/util.d.ts
649
675
  /**
@@ -1111,6 +1137,11 @@ interface JsonDocsComponent {
1111
1137
  * A deprecation reason/description found following a `@deprecated` tag
1112
1138
  */
1113
1139
  deprecation?: string;
1140
+ /**
1141
+ * `true` if this is a "CSS-only component"
1142
+ * discovered in .css file via `@component`-marked JSDoc block
1143
+ */
1144
+ cssOnly?: boolean;
1114
1145
  }
1115
1146
  interface JsonDocsDependencyGraph {
1116
1147
  [tagName: string]: string[];
@@ -1270,6 +1301,16 @@ interface JsonDocsStyle {
1270
1301
  * The annotation used in the JSDoc of the style (e.g. `@prop`)
1271
1302
  */
1272
1303
  annotation: string;
1304
+ /**
1305
+ * The CSS `syntax` descriptor for a custom property, if it was registered via a native
1306
+ * `@property` at-rule (e.g. `"<length>"`).
1307
+ */
1308
+ syntax?: string;
1309
+ /**
1310
+ * The `initial-value` descriptor for a custom property, if it was registered via a native
1311
+ * `@property` at-rule.
1312
+ */
1313
+ default?: string;
1273
1314
  /**
1274
1315
  * The mode associated with the style
1275
1316
  */
@@ -1356,6 +1397,14 @@ interface StyleDoc {
1356
1397
  * The Stencil style-mode that is associated with this property.
1357
1398
  */
1358
1399
  mode: string | undefined;
1400
+ /**
1401
+ * The CSS `syntax` descriptor, if this property was registered via a native `@property` at-rule.
1402
+ */
1403
+ syntax?: string;
1404
+ /**
1405
+ * The `initial-value` descriptor, if this property was registered via a native `@property` at-rule.
1406
+ */
1407
+ default?: string;
1359
1408
  }
1360
1409
  //#endregion
1361
1410
  //#region src/declarations/stencil-public-runtime.d.ts
@@ -1412,7 +1461,7 @@ interface ComponentOptions {
1412
1461
  /**
1413
1462
  * Relative URL to an external stylesheet providing document-level styles for this component.
1414
1463
  * Unlike `styleUrl`, these styles are not scoped to shadow/scoped DOM - they are collected
1415
- * at build time and injected wherever `@import "stencil-globals"` appears in a global stylesheet.
1464
+ * at build time and injected wherever `@import "stencil-component-globals"` appears in a global stylesheet.
1416
1465
  *
1417
1466
  * Useful for
1418
1467
  * - pre-first-js-render styles (combatting cumulative layout shift)
@@ -1427,7 +1476,7 @@ interface ComponentOptions {
1427
1476
  globalStyleUrl?: string;
1428
1477
  /**
1429
1478
  * Inline CSS string providing document-level styles for this component.
1430
- * Collected at build time and injected wherever `@import "stencil-globals"` appears.
1479
+ * Collected at build time and injected wherever `@import "stencil-component-globals"` appears.
1431
1480
  * @see globalStyleUrl
1432
1481
  */
1433
1482
  globalStyle?: string;
@@ -1466,6 +1515,14 @@ interface ShadowEncapsulation {
1466
1515
  * element is serialized via `Element.getHTML({ serializableShadowRoots: true })`.
1467
1516
  */
1468
1517
  serializable?: boolean;
1518
+ /**
1519
+ * The `id` of an element inside the shadow root that IDREF attributes pointing at the host
1520
+ * (e.g. `<label for>`, `aria-labelledby`, `aria-describedby`) should resolve to instead.
1521
+ * Lets a label or ARIA relationship outside the component target an internal element.
1522
+ *
1523
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/referenceTarget
1524
+ */
1525
+ referenceTarget?: string;
1469
1526
  }
1470
1527
  /**
1471
1528
  * Patch types for non-shadow DOM components that use slots.
@@ -1784,10 +1841,18 @@ interface StencilConfig {
1784
1841
  * Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
1785
1842
  * for each component in the build when `true`.
1786
1843
  *
1787
- * Defaults to `true` for "no-config" projects (no `stencil.config.ts`/`.js` file), and `false`
1788
- * whenever a config file is present - set this explicitly to opt an existing project in or out.
1844
+ * @default false
1789
1845
  */
1790
1846
  generateExportMaps?: boolean;
1847
+ /**
1848
+ * Set to `false` to disable discovery of "CSS-only components" - pure-CSS custom-element
1849
+ * definitions marked with a `@component` JSDoc tag in `.css` files under `srcDir`. No JS
1850
+ * class, never registered via `customElements.define()` - just a documented,
1851
+ * type-checked tag name and its CSS custom properties/attribute variants.
1852
+ *
1853
+ * Defaults to `true`.
1854
+ */
1855
+ enableCssOnlyComponents?: boolean;
1791
1856
  /**
1792
1857
  * The namespace config is a string representing a namespace for the app.
1793
1858
  * For apps that are not meant to be a library of reusable components,
@@ -1830,7 +1895,7 @@ interface StencilConfig {
1830
1895
  */
1831
1896
  transformAliasedImportPaths?: boolean;
1832
1897
  /**
1833
- * Passes custom configuration down to the "@rolldown/plugin-node-resolve" that Stencil uses under the hood.
1898
+ * Passes custom configuration to Rolldown's module resolution (its `resolve` option), e.g. `alias`.
1834
1899
  * For further information: https://stenciljs.com/docs/module-bundling
1835
1900
  */
1836
1901
  nodeResolve?: NodeResolveConfig;
@@ -2045,7 +2110,7 @@ type LightDomPatches = {
2045
2110
  childNodes?: boolean;
2046
2111
  /** Patches `cloneNode()` to correctly deep-clone slotted content. */
2047
2112
  cloneNode?: boolean;
2048
- /** Patches `appendChild()`, `insertBefore()`, and `removeChild()` to route to the correct slot. */
2113
+ /** Patches `appendChild()`, `insertBefore()`, and `removeChild()` to route to the correct slot, and the `innerHTML` / `innerText` setters to replace only slotted content. */
2049
2114
  domMutations?: boolean;
2050
2115
  /** Patches `textContent` to act like shadow DOM (reads/writes slotted text only). */
2051
2116
  textContent?: boolean;
@@ -2110,11 +2175,6 @@ interface Config extends StencilConfig {
2110
2175
  tsWatchOptions?: any;
2111
2176
  _isValidated?: boolean;
2112
2177
  _isTesting?: boolean;
2113
- /**
2114
- * Internal flag set when --docs CLI flag is used.
2115
- * Forces docs output targets to build even in dev mode.
2116
- */
2117
- _docsFlag?: boolean;
2118
2178
  /**
2119
2179
  * Whether running in a CI environment (disables interactive features, adjusts worker count)
2120
2180
  */
@@ -2365,7 +2425,8 @@ interface DevServerConfig extends StencilDevServerConfig {
2365
2425
  * reloading updates.
2366
2426
  */
2367
2427
  excludeHmr?: string[];
2368
- historyApiFallback?: HistoryApiFallback;
2428
+ /** Serve `index` for page requests that match no file (single-page app routes). `null` turns it off. */
2429
+ historyApiFallback?: HistoryApiFallback | null;
2369
2430
  openBrowser?: boolean;
2370
2431
  prerenderConfig?: string;
2371
2432
  protocol?: 'http' | 'https';
@@ -2549,6 +2610,16 @@ interface SsrDocumentOptions {
2549
2610
  * Sets `document.referrer`
2550
2611
  */
2551
2612
  referrer?: string;
2613
+ /**
2614
+ * Render into one long-lived mock window, reset between renders, instead of creating a new one
2615
+ * for every call. Skips evaluating the whole SSR platform (runtime and every component)
2616
+ * on each render: most of the cost of rendering a small fragment, and a good part of a whole page.
2617
+ *
2618
+ * Applies to HTML string input (not a `Document`). One window per distinct `serializeShadowRoot` value,
2619
+ * and renders sharing a window run one at a time.
2620
+ * Defaults to `false`, except in the `ssr-wasm` output target, where it defaults to `true`.
2621
+ */
2622
+ reuseWindow?: boolean;
2552
2623
  /**
2553
2624
  * Removes every `<script>` element found in the `document`. Defaults to `false`.
2554
2625
  */
@@ -2634,7 +2705,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2634
2705
  * Note that this is "approximate", in that HTML may often not be able
2635
2706
  * to be split at an exact line width. Additionally, new lines created
2636
2707
  * is where HTML naturally already has whitespace, such as before an
2637
- * attribute or spaces between words. Defaults to `100`.
2708
+ * attribute or spaces between words. Defaults to no wrapping (`100` when prerendering).
2638
2709
  */
2639
2710
  approximateLineWidth?: number;
2640
2711
  /**
@@ -2652,12 +2723,12 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2652
2723
  prettyHtml?: boolean;
2653
2724
  /**
2654
2725
  * Remove quotes from attribute values when possible.
2655
- * Defaults to `true`.
2726
+ * Defaults to `false` (`true` when prerendering).
2656
2727
  */
2657
2728
  removeAttributeQuotes?: boolean;
2658
2729
  /**
2659
2730
  * Remove the `=""` from standardized `boolean` attributes,
2660
- * such as `hidden` or `checked`. Defaults to `true`.
2731
+ * such as `hidden` or `checked`. Defaults to `false` (`true` when prerendering).
2661
2732
  */
2662
2733
  removeBooleanAttributeQuotes?: boolean;
2663
2734
  /**
@@ -2666,7 +2737,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2666
2737
  */
2667
2738
  removeEmptyAttributes?: boolean;
2668
2739
  /**
2669
- * Remove HTML comments. Defaults to `true`.
2740
+ * Remove HTML comments. Defaults to `false` (`true` when prerendering).
2670
2741
  */
2671
2742
  removeHtmlComments?: boolean;
2672
2743
  /**
@@ -2685,6 +2756,12 @@ interface SsrFactoryOptions extends SerializeDocumentOptions {
2685
2756
  serializeToHtml: boolean;
2686
2757
  destroyWindow: boolean;
2687
2758
  destroyDocument: boolean;
2759
+ /**
2760
+ * A canonical key for `serializeShadowRoot`, set by the renderer. Renders with the same key
2761
+ * render every component the same way, so they can share an SSR platform.
2762
+ * @internal
2763
+ */
2764
+ serializeShadowRootKey?: string;
2688
2765
  }
2689
2766
  /**
2690
2767
  * Backwards compat for v4
@@ -2765,7 +2842,7 @@ interface CompilerSystem {
2765
2842
  name: 'node' | 'in-memory';
2766
2843
  version: string;
2767
2844
  events?: BuildEvents;
2768
- details?: SystemDetails;
2845
+ details: SystemDetails;
2769
2846
  /**
2770
2847
  * Add a callback which will be ran when destroy() is called.
2771
2848
  */
@@ -2778,14 +2855,15 @@ interface CompilerSystem {
2778
2855
  * SYNC! Always returns a boolean, does not throw.
2779
2856
  */
2780
2857
  accessSync(p: string): boolean;
2781
- applyGlobalPatch?(fromDir: string): Promise<void>;
2782
2858
  applyPrerenderGlobalPatch?(opts: {
2783
2859
  devServerHostUrl: string;
2784
2860
  window: any;
2785
2861
  }): void;
2786
- cacheStorage?: CacheStorage;
2787
- checkVersion?: (logger: Logger, currentVersion: string) => Promise<() => void>;
2788
- copy?(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
2862
+ /**
2863
+ * Check npm for a newer Stencil version. Resolves a function that logs the result.
2864
+ */
2865
+ checkVersion(logger: Logger, currentVersion: string): Promise<() => void>;
2866
+ copy(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
2789
2867
  /**
2790
2868
  * Always returns a boolean if the files were copied or not. Does not throw.
2791
2869
  */
@@ -2810,7 +2888,7 @@ interface CompilerSystem {
2810
2888
  /**
2811
2889
  * Each platform has a different way to dynamically import modules.
2812
2890
  */
2813
- dynamicImport?(p: string): Promise<any>;
2891
+ dynamicImport(p: string): Promise<any>;
2814
2892
  /**
2815
2893
  * Creates the worker controller for the current system.
2816
2894
  *
@@ -2824,20 +2902,14 @@ interface CompilerSystem {
2824
2902
  * process.exit()
2825
2903
  */
2826
2904
  exit(exitCode: number): Promise<void>;
2827
- /**
2828
- * Optionally provide a fetch() function rather than using the built-in fetch().
2829
- * First arg is a url string or Request object (RequestInfo).
2830
- * Second arg is the RequestInit. Returns the Response object
2831
- */
2832
- fetch?(input: string | any, init?: any): Promise<any>;
2833
2905
  /**
2834
2906
  * Generates a sha1 digest encoded as HEX
2835
2907
  */
2836
- generateContentHash?(content: string | any, length?: number): Promise<string>;
2908
+ generateContentHash(content: string | any, length?: number): Promise<string>;
2837
2909
  /**
2838
2910
  * Generates a sha1 digest encoded as HEX from a file path
2839
2911
  */
2840
- generateFileHash?(filePath: string | any, length?: number): Promise<string>;
2912
+ generateFileHash(filePath: string | any, length?: number): Promise<string>;
2841
2913
  /**
2842
2914
  * Get the current directory.
2843
2915
  */
@@ -2846,7 +2918,6 @@ interface CompilerSystem {
2846
2918
  * The compiler's executing path.
2847
2919
  */
2848
2920
  getCompilerExecutingPath(): string;
2849
- getEnvironmentVar?(key: string): string;
2850
2921
  /**
2851
2922
  * Gets the absolute file path when for a dependency module.
2852
2923
  */
@@ -2885,11 +2956,7 @@ interface CompilerSystem {
2885
2956
  * Normalize file system path.
2886
2957
  */
2887
2958
  normalizePath(p: string): string;
2888
- onProcessInterrupt?(cb: () => void): void;
2889
- parseYarnLockFile?: (content: string) => {
2890
- type: 'success' | 'merge' | 'conflict';
2891
- object: any;
2892
- };
2959
+ onProcessInterrupt(cb: () => void): void;
2893
2960
  platformPath: PlatformPath;
2894
2961
  /**
2895
2962
  * All return paths are full normalized paths, not just the basenames. Always returns an array, does not throw.
@@ -2925,6 +2992,9 @@ interface CompilerSystem {
2925
2992
  * Rename old path to new path. Does not throw.
2926
2993
  */
2927
2994
  rename(oldPath: string, newPath: string): Promise<CompilerSystemRenameResults>;
2995
+ /**
2996
+ * Assigned by the compiler. Used by plugins (e.g. `@stencil/sass`) to resolve `~` imports.
2997
+ */
2928
2998
  resolveModuleId?(opts: ResolveModuleIdOptions): Promise<ResolveModuleIdResults>;
2929
2999
  resolvePath(p: string): string;
2930
3000
  /**
@@ -3118,6 +3188,7 @@ interface CompilerBuildResults {
3118
3188
  buildId: number;
3119
3189
  componentGraph?: BuildResultsComponentGraph;
3120
3190
  components: ComponentCompilerMeta[];
3191
+ cssOnlyComponents: ComponentCompilerMeta[];
3121
3192
  diagnostics: Diagnostic$1[];
3122
3193
  dirsAdded: string[];
3123
3194
  dirsDeleted: string[];
@@ -3134,6 +3205,15 @@ interface CompilerBuildResults {
3134
3205
  namespace: string;
3135
3206
  fsNamespace: string;
3136
3207
  outputs: BuildOutput[];
3208
+ /**
3209
+ * Absolute paths to every global stylesheet, in cascade order: each `global-style` output
3210
+ * target's compiled CSS in the order those targets are declared in `config.outputTargets` - or,
3211
+ * with none configured, the generated `{fsNamespace}.css` holding Stencil's auto-placed CSS (when
3212
+ * emitted). Unlike `outputs`, which groups files by type and sorts them alphabetically, this
3213
+ * preserves author-intended order for consumers like the dev-server's auto-generated component
3214
+ * preview.
3215
+ */
3216
+ globalStyleFiles: string[];
3137
3217
  rootDir: string;
3138
3218
  srcDir: string;
3139
3219
  timestamp: string;
@@ -3149,6 +3229,7 @@ interface HotModuleReplacement {
3149
3229
  componentsUpdated?: string[];
3150
3230
  excludeHmr?: string[];
3151
3231
  externalStylesUpdated?: string[];
3232
+ globalStylesUpdated?: HmrGlobalStyleUpdate[];
3152
3233
  imagesUpdated?: string[];
3153
3234
  indexHtmlUpdated?: boolean;
3154
3235
  inlineStylesUpdated?: HmrStyleUpdate[];
@@ -3163,6 +3244,15 @@ interface HmrStyleUpdate {
3163
3244
  styleTag: string;
3164
3245
  styleText: string;
3165
3246
  }
3247
+ /**
3248
+ * A live-reload update for a `global-style` output target's CSS. Applied on
3249
+ * the client by matching `fileName` against the `<link>` that loads it and
3250
+ * inserting/updating an adjacent `<style>` override
3251
+ */
3252
+ interface HmrGlobalStyleUpdate {
3253
+ fileName: string;
3254
+ styleText: string;
3255
+ }
3166
3256
  type BuildOnEventRemove = () => boolean;
3167
3257
  interface BuildEvents extends BuildOnEvents, BuildEmitEvents {
3168
3258
  unsubscribeAll(): void;
@@ -3317,7 +3407,9 @@ interface CopyTask {
3317
3407
  /**
3318
3408
  * Additional glob patterns to exclude from the copy operation, merged with
3319
3409
  * the built-in defaults: `__mocks__`, `__fixtures__`, `dist`, hidden dirs,
3320
- * `.ds_store`, `.gitignore`, `desktop.ini`, `thumbs.db`.
3410
+ * `.ds_store`, `.gitignore`, `desktop.ini`, `thumbs.db`. For a directory
3411
+ * `src`, patterns match paths relative to that directory; an explicitly
3412
+ * named `src` file is never ignored.
3321
3413
  */
3322
3414
  ignore?: string[];
3323
3415
  /**
@@ -3555,7 +3647,7 @@ interface OutputTargetCollection extends OutputTargetBaseNext {
3555
3647
  * When `true` this flag will transform aliased import paths defined in
3556
3648
  * a project's `tsconfig.json` to relative import paths in the compiled output.
3557
3649
  *
3558
- * Paths will be left in aliased format if `false` or `undefined`.
3650
+ * Paths will be left in aliased format if `false`. Defaults to `true`.
3559
3651
  *
3560
3652
  * @example
3561
3653
  * // tsconfig.json
@@ -3657,11 +3749,11 @@ interface OutputTargetGlobalStyle extends OutputTargetBaseNext {
3657
3749
  * Controls whether this global stylesheet is injected into component shadow DOMs
3658
3750
  * as a constructable stylesheet at runtime.
3659
3751
  *
3660
- * - `'none'` (default): Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
3752
+ * - `'none'`: Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
3661
3753
  * - `'client'`: Inject only in client builds, not SSR (reduces SSR output size)
3662
3754
  * - `'all'`: Inject in both client and SSR builds
3663
3755
  *
3664
- * @default 'none'
3756
+ * @default 'client' when the stylesheet comes from `globalStyle` (or an auto-detected `src/global.*`), 'none' when `input` is set
3665
3757
  */
3666
3758
  inject?: 'none' | 'client' | 'all';
3667
3759
  }
@@ -3719,6 +3811,10 @@ interface OutputTargetSsr extends OutputTargetBase {
3719
3811
  */
3720
3812
  cjs?: boolean;
3721
3813
  }
3814
+ /**
3815
+ * Compiles the SSR hydrate app to a WASM plugin (via `extism-js`/QuickJS-ng) that can run
3816
+ * outside of Node
3817
+ */
3722
3818
  interface OutputTargetSsrWasm extends OutputTargetBase {
3723
3819
  type: 'ssr-wasm';
3724
3820
  /** Output directory. @default 'dist/ssr-wasm' */
@@ -3829,9 +3925,11 @@ interface OutputTargetDocsCustomElementsManifest extends OutputTargetBase {
3829
3925
  type: 'docs-custom-elements-manifest';
3830
3926
  /**
3831
3927
  * The file path where the custom-elements.json manifest will be written.
3832
- * Defaults to 'custom-elements.json' in the root directory.
3928
+ * Defaults to 'dist/custom-elements.json'.
3929
+ *
3930
+ * The `customElements` field of the project's `package.json` is set to this path.
3833
3931
  */
3834
- file: string;
3932
+ file?: string;
3835
3933
  strict?: boolean;
3836
3934
  }
3837
3935
  interface OutputTargetDocsCustom extends OutputTargetBase {
@@ -3856,7 +3954,7 @@ interface OutputTargetDocsAgentSkill extends OutputTargetBase {
3856
3954
  /**
3857
3955
  * The skill's name, used in the `SKILL.md` frontmatter.
3858
3956
  *
3859
- * Defaults to a kebab-cased form of {@link Config.namespace}.
3957
+ * Defaults to {@link Config.namespace}, lowercased, with anything other than letters and numbers replaced by `-`.
3860
3958
  */
3861
3959
  name?: string;
3862
3960
  /**
@@ -3919,10 +4017,8 @@ interface OutputTargetStandalone extends OutputTargetBaseNext {
3919
4017
  type: 'standalone';
3920
4018
  empty?: boolean;
3921
4019
  /**
3922
- * Triggers the following behaviors when enabled:
3923
- * 1. All `@stencil/core/*` module references are treated as external during bundling.
3924
- * 2. File names are not hashed.
3925
- * 3. File minification will follow the behavior defined at the root of the Stencil config.
4020
+ * When `true`, all `@stencil/core/*` module references are treated as external
4021
+ * during bundling rather than being included in the generated output.
3926
4022
  *
3927
4023
  * @default false
3928
4024
  */
@@ -3986,8 +4082,10 @@ interface OutputTargetBase {
3986
4082
  * This improves dev build times by not generating production-only artifacts.
3987
4083
  *
3988
4084
  * Defaults vary by output target type:
3989
- * - `loader-bundle`: `false` (always builds)
3990
- * - `standalone`: `true` (skips in dev)
4085
+ * - `loader-bundle`: `true` (skips the npm distribution files; the browser bundle always builds)
4086
+ * - `standalone`: `true` if `loader-bundle` is also configured, otherwise `false`
4087
+ * - `types`, `collection`, `ssr-wasm`: `true` (skips in dev)
4088
+ * - `assets`, `global-style`: `false` (always runs)
3991
4089
  * - `ssr`: `true` (skips in dev, unless `devServer.ssr` is enabled)
3992
4090
  * - `docs-*`: `true` (skips in dev)
3993
4091
  * - `custom`: `true` (skips in dev)
@@ -4182,10 +4280,6 @@ interface Diagnostic$1 {
4182
4280
  relFilePath?: string | undefined;
4183
4281
  type: string;
4184
4282
  }
4185
- interface CacheStorage {
4186
- get(key: string): Promise<any>;
4187
- set(key: string, value: any): Promise<void>;
4188
- }
4189
4283
  interface WorkerOptions {
4190
4284
  maxConcurrentWorkers?: number;
4191
4285
  maxConcurrentTasksPerWorker?: number;
@@ -4447,13 +4541,19 @@ interface TranspileOptions {
4447
4541
  * that the specified flags take effect for this component at runtime.
4448
4542
  */
4449
4543
  buildOverrides?: BuildOverrides;
4544
+ /**
4545
+ * When `true`, a `.css`/`.scss` transpile also collects CSS custom-property docs
4546
+ * onto {@link TranspileResults.styleDocs}. Off by default, since it costs an extra parse
4547
+ * of the style text.
4548
+ */
4549
+ docs?: boolean;
4450
4550
  }
4451
4551
  /**
4452
4552
  * Keys of {@link BuildConditionals} that can be meaningfully overridden at
4453
4553
  * transpile time — config-driven flags that are not derived from component
4454
4554
  * scanning or runtime environment detection.
4455
4555
  */
4456
- type BuildOverrideKeys = 'hotModuleReplacement' | 'signalBacking' | 'vdomSignals' | 'lightDomPatches' | 'slotChildNodes' | 'slotCloneNode' | 'slotDomMutations' | 'slotTextContent' | 'lifecycleDOMEvents' | 'initializeNextTick';
4556
+ type BuildOverrideKeys = 'isDev' | 'isTesting' | 'hotModuleReplacement' | 'signalBacking' | 'vdomSignals' | 'lightDomPatches' | 'slotChildNodes' | 'slotCloneNode' | 'slotDomMutations' | 'slotTextContent' | 'lifecycleDOMEvents' | 'initializeNextTick';
4457
4557
  /**
4458
4558
  * Subset of Stencil's BUILD feature flags that can be overridden at transpile
4459
4559
  * time. Derived from {@link BuildConditionals} via `Pick` so the field list
@@ -4472,6 +4572,7 @@ interface TranspileResults {
4472
4572
  inputFilePath: string;
4473
4573
  map: any;
4474
4574
  outputFilePath: string;
4575
+ styleDocs?: StyleDoc[];
4475
4576
  }
4476
4577
  interface TransformOptions {
4477
4578
  coreImportPath: string;
@@ -4515,8 +4616,35 @@ interface CliInitOptions {
4515
4616
  logger: Logger;
4516
4617
  sys: CompilerSystem;
4517
4618
  }
4619
+ /**
4620
+ * A Stencil `resolveId`/`load`/`transform` plugin, as accepted by {@link StencilConfig.plugins}.
4621
+ */
4622
+ interface Plugin$1 {
4623
+ name?: string;
4624
+ pluginType?: string;
4625
+ load?: (id: string, context: PluginCtx) => Promise<string> | string;
4626
+ resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
4627
+ transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
4628
+ }
4629
+ type PluginTransformResults = PluginTransformationDescriptor | string | null;
4630
+ interface PluginTransformationDescriptor {
4631
+ code?: string;
4632
+ map?: string;
4633
+ id?: string;
4634
+ diagnostics?: Diagnostic$1[];
4635
+ dependencies?: string[];
4636
+ }
4637
+ interface PluginCtx {
4638
+ config: Config;
4639
+ sys: CompilerSystem;
4640
+ fs: InMemoryFileSystem;
4641
+ cache: Cache;
4642
+ diagnostics: Diagnostic$1[];
4643
+ }
4518
4644
  //#endregion
4519
4645
  //#region src/declarations/stencil-private.d.ts
4646
+ /** Build-time virtual `@import`s a `global-style` input can use to place Stencil-generated CSS. */
4647
+ type StencilVirtualImport = 'stencil-hydrate' | 'stencil-component-globals' | 'stencil-css-components';
4520
4648
  interface SourceMap$1 {
4521
4649
  file: string;
4522
4650
  mappings: string;
@@ -4543,6 +4671,7 @@ interface BuildFeatures {
4543
4671
  shadowSlotAssignmentManual: boolean;
4544
4672
  shadowClonable: boolean;
4545
4673
  shadowSerializable: boolean;
4674
+ shadowReferenceTarget: boolean;
4546
4675
  scoped: boolean;
4547
4676
  /**
4548
4677
  * Every component has a render function
@@ -4655,6 +4784,7 @@ interface BuildCtx {
4655
4784
  esmComponentBundle: ReadonlyArray<BundleModule>;
4656
4785
  commonJsComponentBundle: ReadonlyArray<BundleModule>;
4657
4786
  components: ComponentCompilerMeta[];
4787
+ cssOnlyComponents: ComponentCompilerMeta[];
4658
4788
  componentGraph: Map<string, string[]>;
4659
4789
  config: ValidatedConfig;
4660
4790
  createTimeSpan(msg: string, debug?: boolean): LoggerTimeSpan;
@@ -4703,6 +4833,9 @@ interface BuildCtx {
4703
4833
  */
4704
4834
  stylesPromise: Promise<string>;
4705
4835
  stylesUpdated: BuildStyleUpdate[];
4836
+ globalStylesUpdated: BuildGlobalStyleLinkUpdate[];
4837
+ /** Absolute path of the generated `{fsNamespace}.css`, when this build emitted one */
4838
+ stencilCssFile?: string;
4706
4839
  timeSpan: LoggerTimeSpan;
4707
4840
  timestamp: string;
4708
4841
  transpileBuildCount: number;
@@ -4715,6 +4848,14 @@ interface BuildStyleUpdate {
4715
4848
  styleText: string;
4716
4849
  styleMode: string;
4717
4850
  }
4851
+ /**
4852
+ * A live-reload update for a `global-style` output target's CSS, matched on
4853
+ * the client by `fileName` against the `<link>`
4854
+ */
4855
+ interface BuildGlobalStyleLinkUpdate {
4856
+ fileName: string;
4857
+ styleText: string;
4858
+ }
4718
4859
  type BuildTask = any;
4719
4860
  interface CompilerBuildStats {
4720
4861
  timestamp: string;
@@ -4856,6 +4997,12 @@ interface CompilerCtx {
4856
4997
  cssModuleImports: Map<string, string[]>;
4857
4998
  /** Cache of built global styles, keyed by input file path */
4858
4999
  globalStyleCache: Map<string, string>;
5000
+ /** Cache of discovered CSS-only components from the last scan, keyed by absolute .css file path */
5001
+ cssOnlyComponentsCache: Map<string, ComponentCompilerMeta[]>;
5002
+ /** Contents of the last auto-placed `stencil-*` CSS, used to detect changes for HMR */
5003
+ stencilCss?: string;
5004
+ /** Virtual imports found in each built global style (post-preprocessing), keyed by input path */
5005
+ globalStyleVirtualImports: Map<string, Set<StencilVirtualImport>>;
4859
5006
  collections: CollectionCompilerMeta[];
4860
5007
  compilerOptions: any;
4861
5008
  events: BuildEvents;
@@ -5001,7 +5148,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
5001
5148
  * Custom states to initialize on the ElementInternals.states CustomStateSet.
5002
5149
  * These are defined via @AttachInternals({ states: {...} }).
5003
5150
  */
5004
- attachInternalsCustomStates: ComponentCompilerCustomState[];
5151
+ attachInternalsCustomStates: JsonDocsCustomState[];
5005
5152
  componentClassName: string;
5006
5153
  /**
5007
5154
  * A list of web component tag names that are either:
@@ -5062,6 +5209,11 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
5062
5209
  * using HTMLSlotElement.assign(). Only applicable when encapsulation is 'shadow'.
5063
5210
  */
5064
5211
  slotAssignment: 'manual' | null;
5212
+ /**
5213
+ * `id` of the element within the shadow root that IDREFs targeting the host resolve to.
5214
+ * Only applicable when encapsulation is 'shadow'.
5215
+ */
5216
+ shadowReferenceTarget: string | null;
5065
5217
  /**
5066
5218
  * Per-component slot patches for non-shadow DOM components.
5067
5219
  * These patches enable proper slot behavior without native Shadow DOM.
@@ -5071,7 +5223,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
5071
5223
  sourceFilePath: string;
5072
5224
  sourceMapPath: string;
5073
5225
  states: ComponentCompilerState[];
5074
- styleDocs: CompilerStyleDoc[];
5226
+ styleDocs: StyleDoc[];
5075
5227
  styles: StyleCompiler[];
5076
5228
  globalStyles: ComponentGlobalStyle[];
5077
5229
  tagName: string;
@@ -5274,20 +5426,6 @@ interface ComponentCompilerState {
5274
5426
  * Custom states are exposed via the ElementInternals.states CustomStateSet
5275
5427
  * and can be targeted with the CSS :state() pseudo-class.
5276
5428
  */
5277
- interface ComponentCompilerCustomState {
5278
- /**
5279
- * The name of the custom state (without dashes)
5280
- */
5281
- name: string;
5282
- /**
5283
- * The initial value of the state
5284
- */
5285
- initialValue: boolean;
5286
- /**
5287
- * Optional JSDoc description for the state
5288
- */
5289
- docs: string;
5290
- }
5291
5429
  /**
5292
5430
  * Representation of JSDoc that is pulled off a node in the AST
5293
5431
  */
@@ -5299,44 +5437,7 @@ interface CompilerJsDoc {
5299
5437
  /**
5300
5438
  * Tags included in the JSDoc
5301
5439
  */
5302
- tags: CompilerJsDocTagInfo[];
5303
- }
5304
- /**
5305
- * Representation of a tag that exists in a JSDoc
5306
- */
5307
- interface CompilerJsDocTagInfo {
5308
- /**
5309
- * The name of the tag - e.g. `@deprecated`
5310
- */
5311
- name: string;
5312
- /**
5313
- * Additional text that is associated with the tag - e.g. `@deprecated use v2 of this API`
5314
- */
5315
- text?: string;
5316
- }
5317
- /**
5318
- * The (internal) representation of a CSS block comment in a CSS, Sass, etc. file. This data structure is used during
5319
- * the initial compilation phases of Stencil, as a piece of {@link ComponentCompilerMeta}.
5320
- */
5321
- interface CompilerStyleDoc {
5322
- /**
5323
- * The name of the CSS property
5324
- */
5325
- name: string;
5326
- /**
5327
- * The user-defined description of the CSS property
5328
- */
5329
- docs: string;
5330
- /**
5331
- * The JSDoc-style annotation (e.g. `@prop`) that was used in the block comment to detect the comment.
5332
- * Used to inform Stencil where the start of a new property's description starts (and where the previous description
5333
- * ends).
5334
- */
5335
- annotation: 'prop';
5336
- /**
5337
- * The Stencil style-mode that is associated with this property.
5338
- */
5339
- mode: string;
5440
+ tags: JsonDocsTag[];
5340
5441
  }
5341
5442
  interface CompilerAssetDir {
5342
5443
  absolutePath?: string;
@@ -5367,6 +5468,8 @@ interface HostElement extends HTMLElement {
5367
5468
  host?: Element;
5368
5469
  forceUpdate?: () => void;
5369
5470
  __s_ghr?: () => HostRef;
5471
+ /** attaches the component's shadow root if it needs one and doesn't have one yet */
5472
+ __attachShadow?: () => void;
5370
5473
  /**
5371
5474
  * Unique stencil id for this element
5372
5475
  */
@@ -5557,28 +5660,6 @@ interface Module {
5557
5660
  hasVdomXlink: boolean;
5558
5661
  hasSignalsImport: boolean;
5559
5662
  }
5560
- interface Plugin$1 {
5561
- name?: string;
5562
- pluginType?: string;
5563
- load?: (id: string, context: PluginCtx) => Promise<string> | string;
5564
- resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
5565
- transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
5566
- }
5567
- type PluginTransformResults = PluginTransformationDescriptor | string | null;
5568
- interface PluginTransformationDescriptor {
5569
- code?: string;
5570
- map?: string;
5571
- id?: string;
5572
- diagnostics?: Diagnostic$1[];
5573
- dependencies?: string[];
5574
- }
5575
- interface PluginCtx {
5576
- config: Config;
5577
- sys: CompilerSystem;
5578
- fs: InMemoryFileSystem;
5579
- cache: Cache;
5580
- diagnostics: Diagnostic$1[];
5581
- }
5582
5663
  interface PrerenderUrlResults {
5583
5664
  anchorUrls: string[];
5584
5665
  diagnostics: Diagnostic$1[];
@@ -5836,7 +5917,9 @@ ComponentConstructorChangeHandlers?,
5836
5917
  /** serializers */
5837
5918
  ComponentConstructorChangeHandlers?,
5838
5919
  /** deserializers */
5839
- ComponentConstructorChangeHandlers?];
5920
+ ComponentConstructorChangeHandlers?,
5921
+ /** shadow root reference target */
5922
+ string?];
5840
5923
  /**
5841
5924
  * Runtime metadata for a Stencil component
5842
5925
  */
@@ -5883,6 +5966,10 @@ interface ComponentRuntimeMeta {
5883
5966
  * Information about which class members have attribute > prop deserializers attached on the component.
5884
5967
  */
5885
5968
  $deserializers$?: ComponentConstructorChangeHandlers;
5969
+ /**
5970
+ * `id` of the element within the shadow root that IDREFs targeting the host resolve to.
5971
+ */
5972
+ $referenceTarget$?: string;
5886
5973
  }
5887
5974
  /**
5888
5975
  * A mapping of the names of members on the component to some runtime-specific
@@ -6183,4 +6270,4 @@ type MsgToWorker<T extends WorkerContextMethod> = IPCSerializable<{
6183
6270
  */
6184
6271
  type WorkerMsgHandler = <T extends WorkerContextMethod>(msgToWorker: MsgToWorker<T>) => ReturnType<CompilerWorkerContext[T]>;
6185
6272
  //#endregion
6186
- export { CompilerSystemRemoveDirectoryResults as $, HOST_FLAGS as $i, JsonDocMethodParameter as $n, isOutputTargetDocsCustom as $r, OutputTargetDocsReadme as $t, CompilerDependency as A, isRolldownError as Ai, StencilDevServerConfig as An, isTsFile as Ar, LogLevel as At, CompilerEventFsChange as B, COPY as Bi, WatcherCloseResults as Bn, FilterComponentsResult as Br, OutputTarget as Bt, CacheStorage as C, escapeHtml as Ci, SerializeDocumentOptions as Cn, createJsVarName as Cr, HydrateFactoryOptions as Ct, Compiler as D, loadTypeScriptDiagnostic as Di, SsrDocumentOptions as Dn, isDtsFile as Dr, LightDomPatches as Dt, CompileTarget as E, augmentDiagnosticWithNode as Ei, SitemapXmpResults as En, hasDependency as Er, LazyRequire as Et, CompilerEventDirAdd as F, ASSETS as Fi, TranspileOptions as Fn, getInlineSourceMappingUrlLinker as Fr, NodeResolveConfig as Ft, CompilerFsStats as G, DOCS_CUSTOM as Gi, FunctionalComponent as Gn, getComponentsFromModules as Gr, OutputTargetCollection as Gt, CompilerFileWatcher as H, DEFAULT_STYLE_MODE as Hi, WorkerOptions as Hn, filterExcludedComponents as Hr, OutputTargetBase as Ht, CompilerEventDirDelete as I, CMP_FLAGS as Ii, TranspileResults as In, getSourceMappingUrlForEndOfFile as Ir, OptimizeCssInput as It, CompilerSystem as J, DOCS_README as Ji, ReactiveControllerHostInterface as Jn, isOutputTargetCopy as Jr, OutputTargetDistLazy as Jt, CompilerRequest as K, DOCS_CUSTOM_ELEMENTS_MANIFEST as Ki, MixedInCtor as Kn, isOutputTargetAssets as Kr, OutputTargetCopy as Kt, CompilerEventFileAdd as L, COLLECTION as Li, UnvalidatedConfig as Ln, getSourceMappingUrlLinker as Lr, OptimizeCssOutput as Lt, CompilerEventBuildLog as M, formatComponentRuntimeMeta as Mi, SystemDetails as Mn, parsePackageJson as Mr, LoggerLineUpdater as Mt, CompilerEventBuildNoChange as N, formatLazyBundleRuntimeMeta as Ni, TransformOptions as Nn, readOnlyArrayHasStringMember as Nr, LoggerTimeSpan as Nt, CompilerBuildResults as O, loadTypeScriptDiagnostics as Oi, SsrFactoryOptions as On, isJsFile as Or, LoadConfigInit as Ot, CompilerEventBuildStart as P, stringifyRuntimeData as Pi, TranspileOnlyResults as Pn, readPackageJson as Pr, ModeConfig as Pt, CompilerSystemRemoveDirectoryOptions as Q, GLOBAL_STYLE as Qi, VNode as Qn, isOutputTargetDocsAgentSkill as Qr, OutputTargetDocsJson as Qt, CompilerEventFileDelete as R, COLLECTION_APP_DATA_FILE_NAME as Ri, ValidatedConfig as Rn, rolldownToStencilSourceMap as Rr, OptimizeJsInput as Rt, BuildResultsComponentGraph as S, shouldIgnoreError as Si, RolldownConfig as Sn, addDocBlock as Sr, HydrateDocumentOptions as St, CompileScriptMinifyOptions as T, splitLineBreaks as Ti, SitemapXmpOpts as Tn, getTextDocs as Tr, LOG_LEVELS as Tt, CompilerFileWatcherCallback as U, DIST_LAZY as Ui, ComponentInterface as Un, getComponentsDtsSrcFilePath as Ur, OutputTargetBaseNext as Ut, CompilerEventName as V, CUSTOM as Vi, WorkerMainController as Vn, filterActiveTargets as Vr, OutputTargetAssets as Vt, CompilerFileWatcherEvent as W, DOCS_AGENT_SKILL as Wi, ErrorHandler as Wn, getComponentsDtsTypesFilePath as Wr, OutputTargetBuild as Wt, CompilerSystemCreateDirectoryResults as X, EVENT_FLAGS as Xi, TagTransformer as Xn, isOutputTargetDistLazy as Xr, OutputTargetDocsCustom as Xt, CompilerSystemCreateDirectoryOptions as Y, DOCS_VSCODE as Yi, ResolutionHandler as Yn, isOutputTargetCustom as Yr, OutputTargetDocsAgentSkill as Yt, CompilerSystemRealpathResults as Z, GENERATED_DTS as Zi, UserBuildConditionals as Zn, isOutputTargetDocs as Zr, OutputTargetDocsCustomElementsManifest as Zt, BuildNoChangeResults as _, buildJsonFileError as _i, ResolveModuleIdOptions as _n, FsWriteResults as _r, DocsReadmeCustomColumn as _t, HostElement as a, SSR as aa, isOutputTargetLoaderBundle as ai, OutputTargetStandalone as an, JsonDocsListener as ar, Config as at, BuildOutput as b, hasError as bi, RobotsTxtOpts as bn, validateComponentTag as br, HmrStyleUpdate as bt, PrintLine as c, STATS as ca, isOutputTargetStandalone as ci, OutputTargetWww as cn, JsonDocsPart as cr, CopyResults as ct, SsrResults as d, TYPES as da, isOutputTargetWww as di, PlatformPath as dn, JsonDocsStyle as dr, CustomElementsExportBehavior as dt, HTML_NS as ea, isOutputTargetDocsCustomElementsManifest as ei, OutputTargetDocsVscode as en, JsonDocs as er, CompilerSystemRemoveFileResults as et, WorkerMsgHandler as f, VALID_CONFIG_OUTPUT_TARGETS as fa, isValidConfigOutputTarget as fi, PrerenderConfig as fn, JsonDocsTag as fr, CustomElementsExportBehaviorOptions as ft, BuildLog as g, buildError as gi, PrerenderStartOptions as gn, StyleDoc as gr, Diagnostic$1 as gt, BuildEvents as h, XLINK_NS as ha, TASK_CANCELED_MSG as hi, PrerenderResults as hn, JsonDocsValue as hr, DevServerEditor as ht, ComponentCompilerTypeReferences as i, NODE_TYPES as ia, isOutputTargetGlobalStyle as ii, OutputTargetSsrWasm as in, JsonDocsEvent as ir, CompilerWatcher as it, CompilerEventBuildFinish as j, loadRolldownDiagnostics as ji, StencilDocsConfig as jn, isTsxFile as jr, Logger as jt, CompilerBuildStart as k, createOnWarnFn as ki, StencilConfig as kn, isJsxFile as kr, LoadConfigResults as kt, PropsType as l, STYLE_EXT as la, isOutputTargetStats as li, PageReloadStrategy as ln, JsonDocsProp as lr, CopyTask as lt, BuildEmitEvents as m, WWW as ma, shouldExcludeComponent as mi, PrerenderOptions as mn, JsonDocsUsage as mr, DevServerConfig as mt, CompilerWorkerContext as n, LOADER_BUNDLE as na, isOutputTargetDocsReadme as ni, OutputTargetLoaderBundle as nn, JsonDocsCustomState as nr, CompilerSystemRenamedPath as nt, LazyBundlesRuntimeData as o, SSR_WASM as oa, isOutputTargetSsr as oi, OutputTargetStats as on, JsonDocsMethod as or, ConfigBundle as ot, AutoprefixerOptions as p, WATCH_FLAGS as pa, relativeImport as pi, PrerenderHydrateOptions as pn, JsonDocsTypeLibrary as pr, DevServer as pt, CompilerRequestResponse as q, DOCS_JSON as qi, RafCallback as qn, isOutputTargetCollection as qr, OutputTargetCustom as qt, ComponentCompilerMeta as r, MEMBER_FLAGS as ra, isOutputTargetDocsVscode as ri, OutputTargetSsr as rn, JsonDocsDependencyGraph as rr, CompilerSystemWriteFileResults as rt, PackageJsonData as s, STANDALONE as sa, isOutputTargetSsrWasm as si, OutputTargetTypes as sn, JsonDocsMethodReturn as sr, ConfigCompat as st, ChildType as t, LISTENER_FLAGS as ta, isOutputTargetDocsJson as ti, OutputTargetGlobalStyle as tn, JsonDocsComponent as tr, CompilerSystemRenameResults as tt, RuntimeRef as u, SVG_NS as ua, isOutputTargetTypes as ui, ParsedPath as un, JsonDocsSlot as ur, Credentials as ut, BuildOnEventRemove as v, buildWarn as vi, ResolveModuleIdResults as vn, ModeValidationError as vr, FsWatchResults as vt, CliInitOptions as w, normalizeDiagnostics as wi, ServiceWorkerConfig as wn, generatePreamble as wr, HydratedFlag as wt, BuildOverrides as x, hasWarning as xi, RobotsTxtResults as xn, ParsePackageJsonResult as xr, HotModuleReplacement as xt, BuildOnEvents as y, catchError as yi, ResolveModuleOptions as yn, validateComponentModes as yr, HistoryApiFallback as yt, CompilerEventFileUpdate as z, COLLECTION_MANIFEST_FILE_NAME as zi, ValidatedOutputTargetWww as zn, result_d_exports as zr, OptimizeJsOutput as zt };
6273
+ export { CompilerFsStats as $, COLLECTION_APP_DATA_FILE_NAME as $i, WorkerMainController as $n, result_d_exports as $r, OutputTargetBuild as $t, BuildOverrides as A, XLINK_NS as Aa, TASK_CANCELED_MSG as Ai, ResolveModuleIdResults as An, ModeValidationError as Ar, HotModuleReplacement as At, CompilerEventBuildLog as B, splitLineBreaks as Bi, SsrFactoryOptions as Bn, isJsFile as Br, Logger as Bt, BuildEmitEvents as C, STATS as Ca, isOutputTargetStandalone as Ci, PluginTransformResults as Cn, JsonDocsStyle as Cr, DevServerEditor as Ct, BuildOnEventRemove as D, VALID_CONFIG_OUTPUT_TARGETS as Da, isValidConfigOutputTarget as Di, PrerenderResults as Dn, JsonDocsValue as Dr, HistoryApiFallback as Dt, BuildNoChangeResults as E, TYPES as Ea, isOutputTargetWww as Ei, PrerenderOptions as En, JsonDocsUsage as Er, FsWatchResults as Et, Compiler as F, hasError as Fi, SerializeDocumentOptions as Fn, createJsVarName as Fr, LazyRequire as Ft, CompilerEventFileAdd as G, isRolldownError as Gi, TransformOptions as Gn, readOnlyArrayHasStringMember as Gr, OptimizeCssInput as Gt, CompilerEventBuildStart as H, loadTypeScriptDiagnostic as Hi, StencilDevServerConfig as Hn, isTsFile as Hr, LoggerTimeSpan as Ht, CompilerBuildResults as I, hasWarning as Ii, ServiceWorkerConfig as In, generatePreamble as Ir, LightDomPatches as It, CompilerEventFsChange as J, formatLazyBundleRuntimeMeta as Ji, TranspileResults as Jn, getRolldownSourceMapOptions as Jr, OptimizeJsOutput as Jt, CompilerEventFileDelete as K, loadRolldownDiagnostics as Ki, TranspileOnlyResults as Kn, readPackageJson as Kr, OptimizeCssOutput as Kt, CompilerBuildStart as L, shouldIgnoreError as Li, SitemapXmpOpts as Ln, getTextDocs as Lr, LoadConfigInit as Lt, CliInitOptions as M, buildJsonFileError as Mi, RobotsTxtOpts as Mn, validateComponentTag as Mr, HydrateFactoryOptions as Mt, CompileScriptMinifyOptions as N, buildWarn as Ni, RobotsTxtResults as Nn, ParsePackageJsonResult as Nr, HydratedFlag as Nt, BuildOnEvents as O, WATCH_FLAGS as Oa, relativeImport as Oi, PrerenderStartOptions as On, StyleDoc as Or, HmrGlobalStyleUpdate as Ot, CompileTarget as P, catchError as Pi, RolldownConfig as Pn, addDocBlock as Pr, LOG_LEVELS as Pt, CompilerFileWatcherEvent as Q, COLLECTION as Qi, WatcherCloseResults as Qn, rolldownToStencilSourceMap as Qr, OutputTargetBaseNext as Qt, CompilerDependency as R, escapeHtml as Ri, SitemapXmpResults as Rn, hasDependency as Rr, LoadConfigResults as Rt, AutoprefixerOptions as S, STANDALONE as Sa, isOutputTargetSsrWasm as Si, PluginCtx as Sn, JsonDocsSlot as Sr, DevServerConfig as St, BuildLog as T, SVG_NS as Ta, isOutputTargetTypes as Ti, PrerenderHydrateOptions as Tn, JsonDocsTypeLibrary as Tr, DocsReadmeCustomColumn as Tt, CompilerEventDirAdd as U, loadTypeScriptDiagnostics as Ui, StencilDocsConfig as Un, isTsxFile as Ur, ModeConfig as Ut, CompilerEventBuildNoChange as V, augmentDiagnosticWithNode as Vi, StencilConfig as Vn, isJsxFile as Vr, LoggerLineUpdater as Vt, CompilerEventDirDelete as W, createOnWarnFn as Wi, SystemDetails as Wn, parsePackageJson as Wr, NodeResolveConfig as Wt, CompilerFileWatcher as X, ASSETS as Xi, ValidatedConfig as Xn, getSourceMappingUrlLinker as Xr, OutputTargetAssets as Xt, CompilerEventName as Y, stringifyRuntimeData as Yi, UnvalidatedConfig as Yn, getSourceMappingUrlForEndOfFile as Yr, OutputTarget as Yt, CompilerFileWatcherCallback as Z, CMP_FLAGS as Zi, ValidatedOutputTargetWww as Zn, relativizeSourceMap as Zr, OutputTargetBase as Zt, PrintLine as _, LOADER_BUNDLE as _a, isOutputTargetDocsVscode as _i, OutputTargetWww as _n, JsonDocsListener as _r, CopyTask as _t, ComponentCompilerEvent as a, DOCS_AGENT_SKILL as aa, getComponentsFromModules as ai, OutputTargetDocsCustom as an, RafCallback as ar, CompilerSystemRealpathResults as at, SsrResults as b, SSR as ba, isOutputTargetServerRenderer as bi, PlatformPath as bn, JsonDocsPart as br, CustomElementsExportBehaviorOptions as bt, ComponentCompilerMethod as c, DOCS_JSON as ca, isOutputTargetCopy as ci, OutputTargetDocsReadme as cn, TagTransformer as cr, CompilerSystemRemoveFileResults as ct, ComponentCompilerTypeReferences as d, EVENT_FLAGS as da, isOutputTargetDocs as di, OutputTargetLoaderBundle as dn, JsonDocMethodParameter as dr, CompilerSystemWriteFileResults as dt, COLLECTION_MANIFEST_FILE_NAME as ea, FilterComponentsResult as ei, OutputTargetCollection as en, WorkerOptions as er, CompilerRequest as et, ComponentGlobalStyle as f, GENERATED_DTS as fa, isOutputTargetDocsAgentSkill as fi, OutputTargetSsr as fn, JsonDocs as fr, CompilerWatcher as ft, PrerenderUrlResults as g, LISTENER_FLAGS as ga, isOutputTargetDocsReadme as gi, OutputTargetTypes as gn, JsonDocsEvent as gr, CopyResults as gt, PackageJsonData as h, HTML_NS as ha, isOutputTargetDocsJson as hi, OutputTargetStats as hn, JsonDocsDependencyGraph as hr, ConfigCompat as ht, CompilerWorkerContext as i, DIST_LAZY as ia, getComponentsDtsTypesFilePath as ii, OutputTargetDocsAgentSkill as in, MixedInCtor as ir, CompilerSystemCreateDirectoryResults as it, BuildResultsComponentGraph as j, buildError as ji, ResolveModuleOptions as jn, validateComponentModes as jr, HydrateDocumentOptions as jt, BuildOutput as k, WWW as ka, shouldExcludeComponent as ki, ResolveModuleIdOptions as kn, FsWriteResults as kr, HmrStyleUpdate as kt, ComponentCompilerProperty as l, DOCS_README as la, isOutputTargetCustom as li, OutputTargetDocsVscode as ln, UserBuildConditionals as lr, CompilerSystemRenameResults as lt, LazyBundlesRuntimeData as m, HOST_FLAGS as ma, isOutputTargetDocsCustomElementsManifest as mi, OutputTargetStandalone as mn, JsonDocsCustomState as mr, ConfigBundle as mt, ChildType as n, CUSTOM as na, filterExcludedComponents as ni, OutputTargetCustom as nn, ErrorHandler as nr, CompilerSystem as nt, ComponentCompilerListener as o, DOCS_CUSTOM as oa, isOutputTargetAssets as oi, OutputTargetDocsCustomElementsManifest as on, ReactiveControllerHostInterface as or, CompilerSystemRemoveDirectoryOptions as ot, HostElement as p, GLOBAL_STYLE as pa, isOutputTargetDocsCustom as pi, OutputTargetSsrWasm as pn, JsonDocsComponent as pr, Config as pt, CompilerEventFileUpdate as q, formatComponentRuntimeMeta as qi, TranspileOptions as qn, getInlineSourceMappingUrlLinker as qr, OptimizeJsInput as qt, CompilerCtx as r, DEFAULT_STYLE_MODE as ra, getComponentsDtsSrcFilePath as ri, OutputTargetDistLazy as rn, FunctionalComponent as rr, CompilerSystemCreateDirectoryOptions as rt, ComponentCompilerMeta as s, DOCS_CUSTOM_ELEMENTS_MANIFEST as sa, isOutputTargetCollection as si, OutputTargetDocsJson as sn, ResolutionHandler as sr, CompilerSystemRemoveDirectoryResults as st, BuildCtx as t, COPY as ta, filterActiveTargets as ti, OutputTargetCopy as tn, ComponentInterface as tr, CompilerRequestResponse as tt, ComponentCompilerState as u, DOCS_VSCODE as ua, isOutputTargetDistLazy as ui, OutputTargetGlobalStyle as un, VNode as ur, CompilerSystemRenamedPath as ut, PropsType as v, MEMBER_FLAGS as va, isOutputTargetGlobalStyle as vi, PageReloadStrategy as vn, JsonDocsMethod as vr, Credentials as vt, BuildEvents as w, STYLE_EXT as wa, isOutputTargetStats as wi, PrerenderConfig as wn, JsonDocsTag as wr, Diagnostic$1 as wt, WorkerMsgHandler as x, SSR_WASM as xa, isOutputTargetSsr as xi, Plugin$1 as xn, JsonDocsProp as xr, DevServer as xt, RuntimeRef as y, NODE_TYPES as ya, isOutputTargetLoaderBundle as yi, ParsedPath as yn, JsonDocsMethodReturn as yr, CustomElementsExportBehavior as yt, CompilerEventBuildFinish as z, normalizeDiagnostics as zi, SsrDocumentOptions as zn, isDtsFile as zr, LogLevel as zt };